]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_controls_wrap.cpp
Compile fix. Seems to work too, at quick glance.
[wxWidgets.git] / wxPython / src / msw / _controls_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 /* for raw pointers */
989 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
990 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
991 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
992 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
993 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
994 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
995 #define swig_owntype int
996
997 /* for raw packed data */
998 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
999 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1000
1001 /* for class or struct pointers */
1002 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1003 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1004
1005 /* for C or C++ function pointers */
1006 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1007 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1008
1009 /* for C++ member pointers, ie, member methods */
1010 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1011 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1012
1013
1014 /* Runtime API */
1015
1016 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1017 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1018 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1019
1020 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1021 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1022 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1023 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1024 #define SWIG_fail goto fail
1025
1026
1027 /* Runtime API implementation */
1028
1029 /* Error manipulation */
1030
1031 SWIGINTERN void
1032 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1033 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1034 PyErr_SetObject(errtype, obj);
1035 Py_DECREF(obj);
1036 SWIG_PYTHON_THREAD_END_BLOCK;
1037 }
1038
1039 SWIGINTERN void
1040 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1041 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1042 PyErr_SetString(errtype, (char *) msg);
1043 SWIG_PYTHON_THREAD_END_BLOCK;
1044 }
1045
1046 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1047
1048 /* Set a constant value */
1049
1050 SWIGINTERN void
1051 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1052 PyDict_SetItemString(d, (char*) name, obj);
1053 Py_DECREF(obj);
1054 }
1055
1056 /* Append a value to the result obj */
1057
1058 SWIGINTERN PyObject*
1059 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1060 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1061 if (!result) {
1062 result = obj;
1063 } else if (result == Py_None) {
1064 Py_DECREF(result);
1065 result = obj;
1066 } else {
1067 if (!PyList_Check(result)) {
1068 PyObject *o2 = result;
1069 result = PyList_New(1);
1070 PyList_SetItem(result, 0, o2);
1071 }
1072 PyList_Append(result,obj);
1073 Py_DECREF(obj);
1074 }
1075 return result;
1076 #else
1077 PyObject* o2;
1078 PyObject* o3;
1079 if (!result) {
1080 result = obj;
1081 } else if (result == Py_None) {
1082 Py_DECREF(result);
1083 result = obj;
1084 } else {
1085 if (!PyTuple_Check(result)) {
1086 o2 = result;
1087 result = PyTuple_New(1);
1088 PyTuple_SET_ITEM(result, 0, o2);
1089 }
1090 o3 = PyTuple_New(1);
1091 PyTuple_SET_ITEM(o3, 0, obj);
1092 o2 = result;
1093 result = PySequence_Concat(o2, o3);
1094 Py_DECREF(o2);
1095 Py_DECREF(o3);
1096 }
1097 return result;
1098 #endif
1099 }
1100
1101 /* Unpack the argument tuple */
1102
1103 SWIGINTERN int
1104 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1105 {
1106 if (!args) {
1107 if (!min && !max) {
1108 return 1;
1109 } else {
1110 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1111 name, (min == max ? "" : "at least "), min);
1112 return 0;
1113 }
1114 }
1115 if (!PyTuple_Check(args)) {
1116 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1117 return 0;
1118 } else {
1119 register int l = PyTuple_GET_SIZE(args);
1120 if (l < min) {
1121 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1122 name, (min == max ? "" : "at least "), min, l);
1123 return 0;
1124 } else if (l > max) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at most "), max, l);
1127 return 0;
1128 } else {
1129 register int i;
1130 for (i = 0; i < l; ++i) {
1131 objs[i] = PyTuple_GET_ITEM(args, i);
1132 }
1133 for (; l < max; ++l) {
1134 objs[l] = 0;
1135 }
1136 return i + 1;
1137 }
1138 }
1139 }
1140
1141 /* A functor is a function object with one single object argument */
1142 #if PY_VERSION_HEX >= 0x02020000
1143 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1144 #else
1145 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1146 #endif
1147
1148 /*
1149 Helper for static pointer initialization for both C and C++ code, for example
1150 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1151 */
1152 #ifdef __cplusplus
1153 #define SWIG_STATIC_POINTER(var) var
1154 #else
1155 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1156 #endif
1157
1158 /* -----------------------------------------------------------------------------
1159 * Pointer declarations
1160 * ----------------------------------------------------------------------------- */
1161
1162 /* Flags for new pointer objects */
1163 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1164 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1165
1166 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1167
1168 #ifdef __cplusplus
1169 extern "C" {
1170 #if 0
1171 } /* cc-mode */
1172 #endif
1173 #endif
1174
1175 /* How to access Py_None */
1176 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1177 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1178 # ifndef SWIG_PYTHON_BUILD_NONE
1179 # define SWIG_PYTHON_BUILD_NONE
1180 # endif
1181 # endif
1182 #endif
1183
1184 #ifdef SWIG_PYTHON_BUILD_NONE
1185 # ifdef Py_None
1186 # undef Py_None
1187 # define Py_None SWIG_Py_None()
1188 # endif
1189 SWIGRUNTIMEINLINE PyObject *
1190 _SWIG_Py_None(void)
1191 {
1192 PyObject *none = Py_BuildValue("");
1193 Py_DECREF(none);
1194 return none;
1195 }
1196 SWIGRUNTIME PyObject *
1197 SWIG_Py_None(void)
1198 {
1199 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1200 return none;
1201 }
1202 #endif
1203
1204 /* The python void return value */
1205
1206 SWIGRUNTIMEINLINE PyObject *
1207 SWIG_Py_Void(void)
1208 {
1209 PyObject *none = Py_None;
1210 Py_INCREF(none);
1211 return none;
1212 }
1213
1214 /* PySwigClientData */
1215
1216 typedef struct {
1217 PyObject *klass;
1218 PyObject *newraw;
1219 PyObject *newargs;
1220 PyObject *destroy;
1221 int delargs;
1222 int implicitconv;
1223 } PySwigClientData;
1224
1225 SWIGRUNTIMEINLINE int
1226 SWIG_Python_CheckImplicit(swig_type_info *ty)
1227 {
1228 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1229 return data ? data->implicitconv : 0;
1230 }
1231
1232 SWIGRUNTIMEINLINE PyObject *
1233 SWIG_Python_ExceptionType(swig_type_info *desc) {
1234 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1235 PyObject *klass = data ? data->klass : 0;
1236 return (klass ? klass : PyExc_RuntimeError);
1237 }
1238
1239
1240 SWIGRUNTIME PySwigClientData *
1241 PySwigClientData_New(PyObject* obj)
1242 {
1243 if (!obj) {
1244 return 0;
1245 } else {
1246 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1247 /* the klass element */
1248 data->klass = obj;
1249 Py_INCREF(data->klass);
1250 /* the newraw method and newargs arguments used to create a new raw instance */
1251 if (PyClass_Check(obj)) {
1252 data->newraw = 0;
1253 data->newargs = obj;
1254 Py_INCREF(obj);
1255 } else {
1256 #if (PY_VERSION_HEX < 0x02020000)
1257 data->newraw = 0;
1258 #else
1259 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1260 #endif
1261 if (data->newraw) {
1262 Py_INCREF(data->newraw);
1263 data->newargs = PyTuple_New(1);
1264 PyTuple_SetItem(data->newargs, 0, obj);
1265 } else {
1266 data->newargs = obj;
1267 }
1268 Py_INCREF(data->newargs);
1269 }
1270 /* the destroy method, aka as the C++ delete method */
1271 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1272 if (PyErr_Occurred()) {
1273 PyErr_Clear();
1274 data->destroy = 0;
1275 }
1276 if (data->destroy) {
1277 int flags;
1278 Py_INCREF(data->destroy);
1279 flags = PyCFunction_GET_FLAGS(data->destroy);
1280 #ifdef METH_O
1281 data->delargs = !(flags & (METH_O));
1282 #else
1283 data->delargs = 0;
1284 #endif
1285 } else {
1286 data->delargs = 0;
1287 }
1288 data->implicitconv = 0;
1289 return data;
1290 }
1291 }
1292
1293 SWIGRUNTIME void
1294 PySwigClientData_Del(PySwigClientData* data)
1295 {
1296 Py_XDECREF(data->newraw);
1297 Py_XDECREF(data->newargs);
1298 Py_XDECREF(data->destroy);
1299 }
1300
1301 /* =============== PySwigObject =====================*/
1302
1303 typedef struct {
1304 PyObject_HEAD
1305 void *ptr;
1306 swig_type_info *ty;
1307 int own;
1308 PyObject *next;
1309 } PySwigObject;
1310
1311 SWIGRUNTIME PyObject *
1312 PySwigObject_long(PySwigObject *v)
1313 {
1314 return PyLong_FromVoidPtr(v->ptr);
1315 }
1316
1317 SWIGRUNTIME PyObject *
1318 PySwigObject_format(const char* fmt, PySwigObject *v)
1319 {
1320 PyObject *res = NULL;
1321 PyObject *args = PyTuple_New(1);
1322 if (args) {
1323 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1324 PyObject *ofmt = PyString_FromString(fmt);
1325 if (ofmt) {
1326 res = PyString_Format(ofmt,args);
1327 Py_DECREF(ofmt);
1328 }
1329 Py_DECREF(args);
1330 }
1331 }
1332 return res;
1333 }
1334
1335 SWIGRUNTIME PyObject *
1336 PySwigObject_oct(PySwigObject *v)
1337 {
1338 return PySwigObject_format("%o",v);
1339 }
1340
1341 SWIGRUNTIME PyObject *
1342 PySwigObject_hex(PySwigObject *v)
1343 {
1344 return PySwigObject_format("%x",v);
1345 }
1346
1347 SWIGRUNTIME PyObject *
1348 #ifdef METH_NOARGS
1349 PySwigObject_repr(PySwigObject *v)
1350 #else
1351 PySwigObject_repr(PySwigObject *v, PyObject *args)
1352 #endif
1353 {
1354 const char *name = SWIG_TypePrettyName(v->ty);
1355 PyObject *hex = PySwigObject_hex(v);
1356 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1357 Py_DECREF(hex);
1358 if (v->next) {
1359 #ifdef METH_NOARGS
1360 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1361 #else
1362 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1363 #endif
1364 PyString_ConcatAndDel(&repr,nrep);
1365 }
1366 return repr;
1367 }
1368
1369 SWIGRUNTIME int
1370 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1371 {
1372 #ifdef METH_NOARGS
1373 PyObject *repr = PySwigObject_repr(v);
1374 #else
1375 PyObject *repr = PySwigObject_repr(v, NULL);
1376 #endif
1377 if (repr) {
1378 fputs(PyString_AsString(repr), fp);
1379 Py_DECREF(repr);
1380 return 0;
1381 } else {
1382 return 1;
1383 }
1384 }
1385
1386 SWIGRUNTIME PyObject *
1387 PySwigObject_str(PySwigObject *v)
1388 {
1389 char result[SWIG_BUFFER_SIZE];
1390 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1391 PyString_FromString(result) : 0;
1392 }
1393
1394 SWIGRUNTIME int
1395 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1396 {
1397 void *i = v->ptr;
1398 void *j = w->ptr;
1399 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1400 }
1401
1402 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1403
1404 SWIGRUNTIME PyTypeObject*
1405 PySwigObject_type(void) {
1406 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1407 return type;
1408 }
1409
1410 SWIGRUNTIMEINLINE int
1411 PySwigObject_Check(PyObject *op) {
1412 return ((op)->ob_type == PySwigObject_type())
1413 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1414 }
1415
1416 SWIGRUNTIME PyObject *
1417 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1418
1419 SWIGRUNTIME void
1420 PySwigObject_dealloc(PyObject *v)
1421 {
1422 PySwigObject *sobj = (PySwigObject *) v;
1423 PyObject *next = sobj->next;
1424 if (sobj->own) {
1425 swig_type_info *ty = sobj->ty;
1426 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1427 PyObject *destroy = data ? data->destroy : 0;
1428 if (destroy) {
1429 /* destroy is always a VARARGS method */
1430 PyObject *res;
1431 if (data->delargs) {
1432 /* we need to create a temporal object to carry the destroy operation */
1433 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1434 res = SWIG_Python_CallFunctor(destroy, tmp);
1435 Py_DECREF(tmp);
1436 } else {
1437 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1438 PyObject *mself = PyCFunction_GET_SELF(destroy);
1439 res = ((*meth)(mself, v));
1440 }
1441 Py_XDECREF(res);
1442 } else {
1443 const char *name = SWIG_TypePrettyName(ty);
1444 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1445 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1446 #endif
1447 }
1448 }
1449 Py_XDECREF(next);
1450 PyObject_DEL(v);
1451 }
1452
1453 SWIGRUNTIME PyObject*
1454 PySwigObject_append(PyObject* v, PyObject* next)
1455 {
1456 PySwigObject *sobj = (PySwigObject *) v;
1457 #ifndef METH_O
1458 PyObject *tmp = 0;
1459 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1460 next = tmp;
1461 #endif
1462 if (!PySwigObject_Check(next)) {
1463 return NULL;
1464 }
1465 sobj->next = next;
1466 Py_INCREF(next);
1467 return SWIG_Py_Void();
1468 }
1469
1470 SWIGRUNTIME PyObject*
1471 #ifdef METH_NOARGS
1472 PySwigObject_next(PyObject* v)
1473 #else
1474 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1475 #endif
1476 {
1477 PySwigObject *sobj = (PySwigObject *) v;
1478 if (sobj->next) {
1479 Py_INCREF(sobj->next);
1480 return sobj->next;
1481 } else {
1482 return SWIG_Py_Void();
1483 }
1484 }
1485
1486 SWIGINTERN PyObject*
1487 #ifdef METH_NOARGS
1488 PySwigObject_disown(PyObject *v)
1489 #else
1490 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1491 #endif
1492 {
1493 PySwigObject *sobj = (PySwigObject *)v;
1494 sobj->own = 0;
1495 return SWIG_Py_Void();
1496 }
1497
1498 SWIGINTERN PyObject*
1499 #ifdef METH_NOARGS
1500 PySwigObject_acquire(PyObject *v)
1501 #else
1502 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1503 #endif
1504 {
1505 PySwigObject *sobj = (PySwigObject *)v;
1506 sobj->own = SWIG_POINTER_OWN;
1507 return SWIG_Py_Void();
1508 }
1509
1510 SWIGINTERN PyObject*
1511 PySwigObject_own(PyObject *v, PyObject *args)
1512 {
1513 PyObject *val = 0;
1514 #if (PY_VERSION_HEX < 0x02020000)
1515 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1516 #else
1517 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1518 #endif
1519 {
1520 return NULL;
1521 }
1522 else
1523 {
1524 PySwigObject *sobj = (PySwigObject *)v;
1525 PyObject *obj = PyBool_FromLong(sobj->own);
1526 if (val) {
1527 #ifdef METH_NOARGS
1528 if (PyObject_IsTrue(val)) {
1529 PySwigObject_acquire(v);
1530 } else {
1531 PySwigObject_disown(v);
1532 }
1533 #else
1534 if (PyObject_IsTrue(val)) {
1535 PySwigObject_acquire(v,args);
1536 } else {
1537 PySwigObject_disown(v,args);
1538 }
1539 #endif
1540 }
1541 return obj;
1542 }
1543 }
1544
1545 #ifdef METH_O
1546 static PyMethodDef
1547 swigobject_methods[] = {
1548 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1549 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1550 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1551 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1552 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1553 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1554 {0, 0, 0, 0}
1555 };
1556 #else
1557 static PyMethodDef
1558 swigobject_methods[] = {
1559 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1560 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1561 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1562 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1563 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1564 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1565 {0, 0, 0, 0}
1566 };
1567 #endif
1568
1569 #if PY_VERSION_HEX < 0x02020000
1570 SWIGINTERN PyObject *
1571 PySwigObject_getattr(PySwigObject *sobj,char *name)
1572 {
1573 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1574 }
1575 #endif
1576
1577 SWIGRUNTIME PyTypeObject*
1578 _PySwigObject_type(void) {
1579 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1580
1581 static PyNumberMethods PySwigObject_as_number = {
1582 (binaryfunc)0, /*nb_add*/
1583 (binaryfunc)0, /*nb_subtract*/
1584 (binaryfunc)0, /*nb_multiply*/
1585 (binaryfunc)0, /*nb_divide*/
1586 (binaryfunc)0, /*nb_remainder*/
1587 (binaryfunc)0, /*nb_divmod*/
1588 (ternaryfunc)0,/*nb_power*/
1589 (unaryfunc)0, /*nb_negative*/
1590 (unaryfunc)0, /*nb_positive*/
1591 (unaryfunc)0, /*nb_absolute*/
1592 (inquiry)0, /*nb_nonzero*/
1593 0, /*nb_invert*/
1594 0, /*nb_lshift*/
1595 0, /*nb_rshift*/
1596 0, /*nb_and*/
1597 0, /*nb_xor*/
1598 0, /*nb_or*/
1599 (coercion)0, /*nb_coerce*/
1600 (unaryfunc)PySwigObject_long, /*nb_int*/
1601 (unaryfunc)PySwigObject_long, /*nb_long*/
1602 (unaryfunc)0, /*nb_float*/
1603 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1604 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1605 #if PY_VERSION_HEX >= 0x02020000
1606 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1607 #elif PY_VERSION_HEX >= 0x02000000
1608 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1609 #endif
1610 };
1611
1612 static PyTypeObject pyswigobject_type;
1613 static int type_init = 0;
1614 if (!type_init) {
1615 const PyTypeObject tmp
1616 = {
1617 PyObject_HEAD_INIT(NULL)
1618 0, /* ob_size */
1619 (char *)"PySwigObject", /* tp_name */
1620 sizeof(PySwigObject), /* tp_basicsize */
1621 0, /* tp_itemsize */
1622 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1623 (printfunc)PySwigObject_print, /* tp_print */
1624 #if PY_VERSION_HEX < 0x02020000
1625 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1626 #else
1627 (getattrfunc)0, /* tp_getattr */
1628 #endif
1629 (setattrfunc)0, /* tp_setattr */
1630 (cmpfunc)PySwigObject_compare, /* tp_compare */
1631 (reprfunc)PySwigObject_repr, /* tp_repr */
1632 &PySwigObject_as_number, /* tp_as_number */
1633 0, /* tp_as_sequence */
1634 0, /* tp_as_mapping */
1635 (hashfunc)0, /* tp_hash */
1636 (ternaryfunc)0, /* tp_call */
1637 (reprfunc)PySwigObject_str, /* tp_str */
1638 PyObject_GenericGetAttr, /* tp_getattro */
1639 0, /* tp_setattro */
1640 0, /* tp_as_buffer */
1641 Py_TPFLAGS_DEFAULT, /* tp_flags */
1642 swigobject_doc, /* tp_doc */
1643 0, /* tp_traverse */
1644 0, /* tp_clear */
1645 0, /* tp_richcompare */
1646 0, /* tp_weaklistoffset */
1647 #if PY_VERSION_HEX >= 0x02020000
1648 0, /* tp_iter */
1649 0, /* tp_iternext */
1650 swigobject_methods, /* tp_methods */
1651 0, /* tp_members */
1652 0, /* tp_getset */
1653 0, /* tp_base */
1654 0, /* tp_dict */
1655 0, /* tp_descr_get */
1656 0, /* tp_descr_set */
1657 0, /* tp_dictoffset */
1658 0, /* tp_init */
1659 0, /* tp_alloc */
1660 0, /* tp_new */
1661 0, /* tp_free */
1662 0, /* tp_is_gc */
1663 0, /* tp_bases */
1664 0, /* tp_mro */
1665 0, /* tp_cache */
1666 0, /* tp_subclasses */
1667 0, /* tp_weaklist */
1668 #endif
1669 #if PY_VERSION_HEX >= 0x02030000
1670 0, /* tp_del */
1671 #endif
1672 #ifdef COUNT_ALLOCS
1673 0,0,0,0 /* tp_alloc -> tp_next */
1674 #endif
1675 };
1676 pyswigobject_type = tmp;
1677 pyswigobject_type.ob_type = &PyType_Type;
1678 type_init = 1;
1679 }
1680 return &pyswigobject_type;
1681 }
1682
1683 SWIGRUNTIME PyObject *
1684 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1685 {
1686 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1687 if (sobj) {
1688 sobj->ptr = ptr;
1689 sobj->ty = ty;
1690 sobj->own = own;
1691 sobj->next = 0;
1692 }
1693 return (PyObject *)sobj;
1694 }
1695
1696 /* -----------------------------------------------------------------------------
1697 * Implements a simple Swig Packed type, and use it instead of string
1698 * ----------------------------------------------------------------------------- */
1699
1700 typedef struct {
1701 PyObject_HEAD
1702 void *pack;
1703 swig_type_info *ty;
1704 size_t size;
1705 } PySwigPacked;
1706
1707 SWIGRUNTIME int
1708 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1709 {
1710 char result[SWIG_BUFFER_SIZE];
1711 fputs("<Swig Packed ", fp);
1712 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1713 fputs("at ", fp);
1714 fputs(result, fp);
1715 }
1716 fputs(v->ty->name,fp);
1717 fputs(">", fp);
1718 return 0;
1719 }
1720
1721 SWIGRUNTIME PyObject *
1722 PySwigPacked_repr(PySwigPacked *v)
1723 {
1724 char result[SWIG_BUFFER_SIZE];
1725 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1726 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1727 } else {
1728 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1729 }
1730 }
1731
1732 SWIGRUNTIME PyObject *
1733 PySwigPacked_str(PySwigPacked *v)
1734 {
1735 char result[SWIG_BUFFER_SIZE];
1736 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1737 return PyString_FromFormat("%s%s", result, v->ty->name);
1738 } else {
1739 return PyString_FromString(v->ty->name);
1740 }
1741 }
1742
1743 SWIGRUNTIME int
1744 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1745 {
1746 size_t i = v->size;
1747 size_t j = w->size;
1748 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1749 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1750 }
1751
1752 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1753
1754 SWIGRUNTIME PyTypeObject*
1755 PySwigPacked_type(void) {
1756 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1757 return type;
1758 }
1759
1760 SWIGRUNTIMEINLINE int
1761 PySwigPacked_Check(PyObject *op) {
1762 return ((op)->ob_type == _PySwigPacked_type())
1763 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1764 }
1765
1766 SWIGRUNTIME void
1767 PySwigPacked_dealloc(PyObject *v)
1768 {
1769 if (PySwigPacked_Check(v)) {
1770 PySwigPacked *sobj = (PySwigPacked *) v;
1771 free(sobj->pack);
1772 }
1773 PyObject_DEL(v);
1774 }
1775
1776 SWIGRUNTIME PyTypeObject*
1777 _PySwigPacked_type(void) {
1778 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1779 static PyTypeObject pyswigpacked_type;
1780 static int type_init = 0;
1781 if (!type_init) {
1782 const PyTypeObject tmp
1783 = {
1784 PyObject_HEAD_INIT(NULL)
1785 0, /* ob_size */
1786 (char *)"PySwigPacked", /* tp_name */
1787 sizeof(PySwigPacked), /* tp_basicsize */
1788 0, /* tp_itemsize */
1789 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1790 (printfunc)PySwigPacked_print, /* tp_print */
1791 (getattrfunc)0, /* tp_getattr */
1792 (setattrfunc)0, /* tp_setattr */
1793 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1794 (reprfunc)PySwigPacked_repr, /* tp_repr */
1795 0, /* tp_as_number */
1796 0, /* tp_as_sequence */
1797 0, /* tp_as_mapping */
1798 (hashfunc)0, /* tp_hash */
1799 (ternaryfunc)0, /* tp_call */
1800 (reprfunc)PySwigPacked_str, /* tp_str */
1801 PyObject_GenericGetAttr, /* tp_getattro */
1802 0, /* tp_setattro */
1803 0, /* tp_as_buffer */
1804 Py_TPFLAGS_DEFAULT, /* tp_flags */
1805 swigpacked_doc, /* tp_doc */
1806 0, /* tp_traverse */
1807 0, /* tp_clear */
1808 0, /* tp_richcompare */
1809 0, /* tp_weaklistoffset */
1810 #if PY_VERSION_HEX >= 0x02020000
1811 0, /* tp_iter */
1812 0, /* tp_iternext */
1813 0, /* tp_methods */
1814 0, /* tp_members */
1815 0, /* tp_getset */
1816 0, /* tp_base */
1817 0, /* tp_dict */
1818 0, /* tp_descr_get */
1819 0, /* tp_descr_set */
1820 0, /* tp_dictoffset */
1821 0, /* tp_init */
1822 0, /* tp_alloc */
1823 0, /* tp_new */
1824 0, /* tp_free */
1825 0, /* tp_is_gc */
1826 0, /* tp_bases */
1827 0, /* tp_mro */
1828 0, /* tp_cache */
1829 0, /* tp_subclasses */
1830 0, /* tp_weaklist */
1831 #endif
1832 #if PY_VERSION_HEX >= 0x02030000
1833 0, /* tp_del */
1834 #endif
1835 #ifdef COUNT_ALLOCS
1836 0,0,0,0 /* tp_alloc -> tp_next */
1837 #endif
1838 };
1839 pyswigpacked_type = tmp;
1840 pyswigpacked_type.ob_type = &PyType_Type;
1841 type_init = 1;
1842 }
1843 return &pyswigpacked_type;
1844 }
1845
1846 SWIGRUNTIME PyObject *
1847 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1848 {
1849 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1850 if (sobj) {
1851 void *pack = malloc(size);
1852 if (pack) {
1853 memcpy(pack, ptr, size);
1854 sobj->pack = pack;
1855 sobj->ty = ty;
1856 sobj->size = size;
1857 } else {
1858 PyObject_DEL((PyObject *) sobj);
1859 sobj = 0;
1860 }
1861 }
1862 return (PyObject *) sobj;
1863 }
1864
1865 SWIGRUNTIME swig_type_info *
1866 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1867 {
1868 if (PySwigPacked_Check(obj)) {
1869 PySwigPacked *sobj = (PySwigPacked *)obj;
1870 if (sobj->size != size) return 0;
1871 memcpy(ptr, sobj->pack, size);
1872 return sobj->ty;
1873 } else {
1874 return 0;
1875 }
1876 }
1877
1878 /* -----------------------------------------------------------------------------
1879 * pointers/data manipulation
1880 * ----------------------------------------------------------------------------- */
1881
1882 SWIGRUNTIMEINLINE PyObject *
1883 _SWIG_This(void)
1884 {
1885 return PyString_FromString("this");
1886 }
1887
1888 SWIGRUNTIME PyObject *
1889 SWIG_This(void)
1890 {
1891 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1892 return swig_this;
1893 }
1894
1895 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1896
1897 SWIGRUNTIME PySwigObject *
1898 SWIG_Python_GetSwigThis(PyObject *pyobj)
1899 {
1900 if (PySwigObject_Check(pyobj)) {
1901 return (PySwigObject *) pyobj;
1902 } else {
1903 PyObject *obj = 0;
1904 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1905 if (PyInstance_Check(pyobj)) {
1906 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1907 } else {
1908 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1909 if (dictptr != NULL) {
1910 PyObject *dict = *dictptr;
1911 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1912 } else {
1913 #ifdef PyWeakref_CheckProxy
1914 if (PyWeakref_CheckProxy(pyobj)) {
1915 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1916 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1917 }
1918 #endif
1919 obj = PyObject_GetAttr(pyobj,SWIG_This());
1920 if (obj) {
1921 Py_DECREF(obj);
1922 } else {
1923 if (PyErr_Occurred()) PyErr_Clear();
1924 return 0;
1925 }
1926 }
1927 }
1928 #else
1929 obj = PyObject_GetAttr(pyobj,SWIG_This());
1930 if (obj) {
1931 Py_DECREF(obj);
1932 } else {
1933 if (PyErr_Occurred()) PyErr_Clear();
1934 return 0;
1935 }
1936 #endif
1937 if (obj && !PySwigObject_Check(obj)) {
1938 /* a PyObject is called 'this', try to get the 'real this'
1939 PySwigObject from it */
1940 return SWIG_Python_GetSwigThis(obj);
1941 }
1942 return (PySwigObject *)obj;
1943 }
1944 }
1945
1946 /* Acquire a pointer value */
1947
1948 SWIGRUNTIME int
1949 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1950 if (own) {
1951 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1952 if (sobj) {
1953 int oldown = sobj->own;
1954 sobj->own = own;
1955 return oldown;
1956 }
1957 }
1958 return 0;
1959 }
1960
1961 /* Convert a pointer value */
1962
1963 SWIGRUNTIME int
1964 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1965 if (!obj) return SWIG_ERROR;
1966 if (obj == Py_None) {
1967 if (ptr) *ptr = 0;
1968 return SWIG_OK;
1969 } else {
1970 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1971 while (sobj) {
1972 void *vptr = sobj->ptr;
1973 if (ty) {
1974 swig_type_info *to = sobj->ty;
1975 if (to == ty) {
1976 /* no type cast needed */
1977 if (ptr) *ptr = vptr;
1978 break;
1979 } else {
1980 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1981 if (!tc) {
1982 sobj = (PySwigObject *)sobj->next;
1983 } else {
1984 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1985 break;
1986 }
1987 }
1988 } else {
1989 if (ptr) *ptr = vptr;
1990 break;
1991 }
1992 }
1993 if (sobj) {
1994 if (own) *own = sobj->own;
1995 if (flags & SWIG_POINTER_DISOWN) {
1996 sobj->own = 0;
1997 }
1998 return SWIG_OK;
1999 } else {
2000 int res = SWIG_ERROR;
2001 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2002 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2003 if (data && !data->implicitconv) {
2004 PyObject *klass = data->klass;
2005 if (klass) {
2006 PyObject *impconv;
2007 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2008 impconv = SWIG_Python_CallFunctor(klass, obj);
2009 data->implicitconv = 0;
2010 if (PyErr_Occurred()) {
2011 PyErr_Clear();
2012 impconv = 0;
2013 }
2014 if (impconv) {
2015 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2016 if (iobj) {
2017 void *vptr;
2018 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2019 if (SWIG_IsOK(res)) {
2020 if (ptr) {
2021 *ptr = vptr;
2022 /* transfer the ownership to 'ptr' */
2023 iobj->own = 0;
2024 res = SWIG_AddCast(res);
2025 res = SWIG_AddNewMask(res);
2026 } else {
2027 res = SWIG_AddCast(res);
2028 }
2029 }
2030 }
2031 Py_DECREF(impconv);
2032 }
2033 }
2034 }
2035 }
2036 return res;
2037 }
2038 }
2039 }
2040
2041 /* Convert a function ptr value */
2042
2043 SWIGRUNTIME int
2044 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2045 if (!PyCFunction_Check(obj)) {
2046 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2047 } else {
2048 void *vptr = 0;
2049
2050 /* here we get the method pointer for callbacks */
2051 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2052 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2053 if (desc) {
2054 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2055 if (!desc) return SWIG_ERROR;
2056 }
2057 if (ty) {
2058 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2059 if (!tc) return SWIG_ERROR;
2060 *ptr = SWIG_TypeCast(tc,vptr);
2061 } else {
2062 *ptr = vptr;
2063 }
2064 return SWIG_OK;
2065 }
2066 }
2067
2068 /* Convert a packed value value */
2069
2070 SWIGRUNTIME int
2071 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2072 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2073 if (!to) return SWIG_ERROR;
2074 if (ty) {
2075 if (to != ty) {
2076 /* check type cast? */
2077 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2078 if (!tc) return SWIG_ERROR;
2079 }
2080 }
2081 return SWIG_OK;
2082 }
2083
2084 /* -----------------------------------------------------------------------------
2085 * Create a new pointer object
2086 * ----------------------------------------------------------------------------- */
2087
2088 /*
2089 Create a new instance object, whitout calling __init__, and set the
2090 'this' attribute.
2091 */
2092
2093 SWIGRUNTIME PyObject*
2094 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2095 {
2096 #if (PY_VERSION_HEX >= 0x02020000)
2097 PyObject *inst = 0;
2098 PyObject *newraw = data->newraw;
2099 if (newraw) {
2100 inst = PyObject_Call(newraw, data->newargs, NULL);
2101 if (inst) {
2102 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2103 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2104 if (dictptr != NULL) {
2105 PyObject *dict = *dictptr;
2106 if (dict == NULL) {
2107 dict = PyDict_New();
2108 *dictptr = dict;
2109 PyDict_SetItem(dict, SWIG_This(), swig_this);
2110 }
2111 }
2112 #else
2113 PyObject *key = SWIG_This();
2114 PyObject_SetAttr(inst, key, swig_this);
2115 #endif
2116 }
2117 } else {
2118 PyObject *dict = PyDict_New();
2119 PyDict_SetItem(dict, SWIG_This(), swig_this);
2120 inst = PyInstance_NewRaw(data->newargs, dict);
2121 Py_DECREF(dict);
2122 }
2123 return inst;
2124 #else
2125 #if (PY_VERSION_HEX >= 0x02010000)
2126 PyObject *inst;
2127 PyObject *dict = PyDict_New();
2128 PyDict_SetItem(dict, SWIG_This(), swig_this);
2129 inst = PyInstance_NewRaw(data->newargs, dict);
2130 Py_DECREF(dict);
2131 return (PyObject *) inst;
2132 #else
2133 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2134 if (inst == NULL) {
2135 return NULL;
2136 }
2137 inst->in_class = (PyClassObject *)data->newargs;
2138 Py_INCREF(inst->in_class);
2139 inst->in_dict = PyDict_New();
2140 if (inst->in_dict == NULL) {
2141 Py_DECREF(inst);
2142 return NULL;
2143 }
2144 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2145 inst->in_weakreflist = NULL;
2146 #endif
2147 #ifdef Py_TPFLAGS_GC
2148 PyObject_GC_Init(inst);
2149 #endif
2150 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2151 return (PyObject *) inst;
2152 #endif
2153 #endif
2154 }
2155
2156 SWIGRUNTIME void
2157 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2158 {
2159 PyObject *dict;
2160 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2161 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2162 if (dictptr != NULL) {
2163 dict = *dictptr;
2164 if (dict == NULL) {
2165 dict = PyDict_New();
2166 *dictptr = dict;
2167 }
2168 PyDict_SetItem(dict, SWIG_This(), swig_this);
2169 return;
2170 }
2171 #endif
2172 dict = PyObject_GetAttrString(inst, "__dict__");
2173 PyDict_SetItem(dict, SWIG_This(), swig_this);
2174 Py_DECREF(dict);
2175 }
2176
2177
2178 SWIGINTERN PyObject *
2179 SWIG_Python_InitShadowInstance(PyObject *args) {
2180 PyObject *obj[2];
2181 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2182 return NULL;
2183 } else {
2184 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2185 if (sthis) {
2186 PySwigObject_append((PyObject*) sthis, obj[1]);
2187 } else {
2188 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2189 }
2190 return SWIG_Py_Void();
2191 }
2192 }
2193
2194 /* Create a new pointer object */
2195
2196 SWIGRUNTIME PyObject *
2197 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2198 if (!ptr) {
2199 return SWIG_Py_Void();
2200 } else {
2201 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2202 PyObject *robj = PySwigObject_New(ptr, type, own);
2203 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2204 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2205 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2206 if (inst) {
2207 Py_DECREF(robj);
2208 robj = inst;
2209 }
2210 }
2211 return robj;
2212 }
2213 }
2214
2215 /* Create a new packed object */
2216
2217 SWIGRUNTIMEINLINE PyObject *
2218 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2219 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2220 }
2221
2222 /* -----------------------------------------------------------------------------*
2223 * Get type list
2224 * -----------------------------------------------------------------------------*/
2225
2226 #ifdef SWIG_LINK_RUNTIME
2227 void *SWIG_ReturnGlobalTypeList(void *);
2228 #endif
2229
2230 SWIGRUNTIME swig_module_info *
2231 SWIG_Python_GetModule(void) {
2232 static void *type_pointer = (void *)0;
2233 /* first check if module already created */
2234 if (!type_pointer) {
2235 #ifdef SWIG_LINK_RUNTIME
2236 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2237 #else
2238 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2239 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2240 if (PyErr_Occurred()) {
2241 PyErr_Clear();
2242 type_pointer = (void *)0;
2243 }
2244 #endif
2245 }
2246 return (swig_module_info *) type_pointer;
2247 }
2248
2249 #if PY_MAJOR_VERSION < 2
2250 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2251 is copied out of Python/modsupport.c in python version 2.3.4 */
2252 SWIGINTERN int
2253 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2254 {
2255 PyObject *dict;
2256 if (!PyModule_Check(m)) {
2257 PyErr_SetString(PyExc_TypeError,
2258 "PyModule_AddObject() needs module as first arg");
2259 return SWIG_ERROR;
2260 }
2261 if (!o) {
2262 PyErr_SetString(PyExc_TypeError,
2263 "PyModule_AddObject() needs non-NULL value");
2264 return SWIG_ERROR;
2265 }
2266
2267 dict = PyModule_GetDict(m);
2268 if (dict == NULL) {
2269 /* Internal error -- modules must have a dict! */
2270 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2271 PyModule_GetName(m));
2272 return SWIG_ERROR;
2273 }
2274 if (PyDict_SetItemString(dict, name, o))
2275 return SWIG_ERROR;
2276 Py_DECREF(o);
2277 return SWIG_OK;
2278 }
2279 #endif
2280
2281 SWIGRUNTIME void
2282 SWIG_Python_DestroyModule(void *vptr)
2283 {
2284 swig_module_info *swig_module = (swig_module_info *) vptr;
2285 swig_type_info **types = swig_module->types;
2286 size_t i;
2287 for (i =0; i < swig_module->size; ++i) {
2288 swig_type_info *ty = types[i];
2289 if (ty->owndata) {
2290 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2291 if (data) PySwigClientData_Del(data);
2292 }
2293 }
2294 Py_DECREF(SWIG_This());
2295 }
2296
2297 SWIGRUNTIME void
2298 SWIG_Python_SetModule(swig_module_info *swig_module) {
2299 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2300
2301 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2302 swig_empty_runtime_method_table);
2303 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2304 if (pointer && module) {
2305 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2306 } else {
2307 Py_XDECREF(pointer);
2308 }
2309 }
2310
2311 /* The python cached type query */
2312 SWIGRUNTIME PyObject *
2313 SWIG_Python_TypeCache() {
2314 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2315 return cache;
2316 }
2317
2318 SWIGRUNTIME swig_type_info *
2319 SWIG_Python_TypeQuery(const char *type)
2320 {
2321 PyObject *cache = SWIG_Python_TypeCache();
2322 PyObject *key = PyString_FromString(type);
2323 PyObject *obj = PyDict_GetItem(cache, key);
2324 swig_type_info *descriptor;
2325 if (obj) {
2326 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2327 } else {
2328 swig_module_info *swig_module = SWIG_Python_GetModule();
2329 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2330 if (descriptor) {
2331 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2332 PyDict_SetItem(cache, key, obj);
2333 Py_DECREF(obj);
2334 }
2335 }
2336 Py_DECREF(key);
2337 return descriptor;
2338 }
2339
2340 /*
2341 For backward compatibility only
2342 */
2343 #define SWIG_POINTER_EXCEPTION 0
2344 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2345 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2346
2347 SWIGRUNTIME int
2348 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2349 {
2350 if (PyErr_Occurred()) {
2351 PyObject *type = 0;
2352 PyObject *value = 0;
2353 PyObject *traceback = 0;
2354 PyErr_Fetch(&type, &value, &traceback);
2355 if (value) {
2356 PyObject *old_str = PyObject_Str(value);
2357 Py_XINCREF(type);
2358 PyErr_Clear();
2359 if (infront) {
2360 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2361 } else {
2362 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2363 }
2364 Py_DECREF(old_str);
2365 }
2366 return 1;
2367 } else {
2368 return 0;
2369 }
2370 }
2371
2372 SWIGRUNTIME int
2373 SWIG_Python_ArgFail(int argnum)
2374 {
2375 if (PyErr_Occurred()) {
2376 /* add information about failing argument */
2377 char mesg[256];
2378 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2379 return SWIG_Python_AddErrMesg(mesg, 1);
2380 } else {
2381 return 0;
2382 }
2383 }
2384
2385 SWIGRUNTIMEINLINE const char *
2386 PySwigObject_GetDesc(PyObject *self)
2387 {
2388 PySwigObject *v = (PySwigObject *)self;
2389 swig_type_info *ty = v ? v->ty : 0;
2390 return ty ? ty->str : (char*)"";
2391 }
2392
2393 SWIGRUNTIME void
2394 SWIG_Python_TypeError(const char *type, PyObject *obj)
2395 {
2396 if (type) {
2397 #if defined(SWIG_COBJECT_TYPES)
2398 if (obj && PySwigObject_Check(obj)) {
2399 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2400 if (otype) {
2401 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2402 type, otype);
2403 return;
2404 }
2405 } else
2406 #endif
2407 {
2408 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2409 if (otype) {
2410 PyObject *str = PyObject_Str(obj);
2411 const char *cstr = str ? PyString_AsString(str) : 0;
2412 if (cstr) {
2413 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2414 type, otype, cstr);
2415 } else {
2416 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2417 type, otype);
2418 }
2419 Py_XDECREF(str);
2420 return;
2421 }
2422 }
2423 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2424 } else {
2425 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2426 }
2427 }
2428
2429
2430 /* Convert a pointer value, signal an exception on a type mismatch */
2431 SWIGRUNTIME void *
2432 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2433 void *result;
2434 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2435 PyErr_Clear();
2436 if (flags & SWIG_POINTER_EXCEPTION) {
2437 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2438 SWIG_Python_ArgFail(argnum);
2439 }
2440 }
2441 return result;
2442 }
2443
2444
2445 #ifdef __cplusplus
2446 #if 0
2447 { /* cc-mode */
2448 #endif
2449 }
2450 #endif
2451
2452
2453
2454 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2455
2456 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2457
2458
2459
2460 /* -------- TYPES TABLE (BEGIN) -------- */
2461
2462 #define SWIGTYPE_p_bool swig_types[0]
2463 #define SWIGTYPE_p_char swig_types[1]
2464 #define SWIGTYPE_p_form_ops_t swig_types[2]
2465 #define SWIGTYPE_p_int swig_types[3]
2466 #define SWIGTYPE_p_long swig_types[4]
2467 #define SWIGTYPE_p_unsigned_char swig_types[5]
2468 #define SWIGTYPE_p_unsigned_int swig_types[6]
2469 #define SWIGTYPE_p_unsigned_long swig_types[7]
2470 #define SWIGTYPE_p_void swig_types[8]
2471 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2472 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2473 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2474 #define SWIGTYPE_p_wxArrayInt swig_types[12]
2475 #define SWIGTYPE_p_wxArrayString swig_types[13]
2476 #define SWIGTYPE_p_wxBMPHandler swig_types[14]
2477 #define SWIGTYPE_p_wxBitmap swig_types[15]
2478 #define SWIGTYPE_p_wxBitmapButton swig_types[16]
2479 #define SWIGTYPE_p_wxBookCtrlBase swig_types[17]
2480 #define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18]
2481 #define SWIGTYPE_p_wxBoxSizer swig_types[19]
2482 #define SWIGTYPE_p_wxButton swig_types[20]
2483 #define SWIGTYPE_p_wxCURHandler swig_types[21]
2484 #define SWIGTYPE_p_wxCheckBox swig_types[22]
2485 #define SWIGTYPE_p_wxCheckListBox swig_types[23]
2486 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2487 #define SWIGTYPE_p_wxChoice swig_types[25]
2488 #define SWIGTYPE_p_wxChoicebook swig_types[26]
2489 #define SWIGTYPE_p_wxChoicebookEvent swig_types[27]
2490 #define SWIGTYPE_p_wxCloseEvent swig_types[28]
2491 #define SWIGTYPE_p_wxColour swig_types[29]
2492 #define SWIGTYPE_p_wxComboBox swig_types[30]
2493 #define SWIGTYPE_p_wxCommandEvent swig_types[31]
2494 #define SWIGTYPE_p_wxContextHelp swig_types[32]
2495 #define SWIGTYPE_p_wxContextHelpButton swig_types[33]
2496 #define SWIGTYPE_p_wxContextMenuEvent swig_types[34]
2497 #define SWIGTYPE_p_wxControl swig_types[35]
2498 #define SWIGTYPE_p_wxControlWithItems swig_types[36]
2499 #define SWIGTYPE_p_wxCursor swig_types[37]
2500 #define SWIGTYPE_p_wxDC swig_types[38]
2501 #define SWIGTYPE_p_wxDateEvent swig_types[39]
2502 #define SWIGTYPE_p_wxDatePickerCtrl swig_types[40]
2503 #define SWIGTYPE_p_wxDateTime swig_types[41]
2504 #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[42]
2505 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[43]
2506 #define SWIGTYPE_p_wxDropFilesEvent swig_types[44]
2507 #define SWIGTYPE_p_wxDuplexMode swig_types[45]
2508 #define SWIGTYPE_p_wxEraseEvent swig_types[46]
2509 #define SWIGTYPE_p_wxEvent swig_types[47]
2510 #define SWIGTYPE_p_wxEvtHandler swig_types[48]
2511 #define SWIGTYPE_p_wxFSFile swig_types[49]
2512 #define SWIGTYPE_p_wxFileSystem swig_types[50]
2513 #define SWIGTYPE_p_wxFlexGridSizer swig_types[51]
2514 #define SWIGTYPE_p_wxFocusEvent swig_types[52]
2515 #define SWIGTYPE_p_wxFont swig_types[53]
2516 #define SWIGTYPE_p_wxGBSizerItem swig_types[54]
2517 #define SWIGTYPE_p_wxGIFHandler swig_types[55]
2518 #define SWIGTYPE_p_wxGauge swig_types[56]
2519 #define SWIGTYPE_p_wxGenericDirCtrl swig_types[57]
2520 #define SWIGTYPE_p_wxGenericDragImage swig_types[58]
2521 #define SWIGTYPE_p_wxGridBagSizer swig_types[59]
2522 #define SWIGTYPE_p_wxGridSizer swig_types[60]
2523 #define SWIGTYPE_p_wxHelpEvent swig_types[61]
2524 #define SWIGTYPE_p_wxHelpProvider swig_types[62]
2525 #define SWIGTYPE_p_wxICOHandler swig_types[63]
2526 #define SWIGTYPE_p_wxIcon swig_types[64]
2527 #define SWIGTYPE_p_wxIconizeEvent swig_types[65]
2528 #define SWIGTYPE_p_wxIdleEvent swig_types[66]
2529 #define SWIGTYPE_p_wxImage swig_types[67]
2530 #define SWIGTYPE_p_wxImageHandler swig_types[68]
2531 #define SWIGTYPE_p_wxImageList swig_types[69]
2532 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[70]
2533 #define SWIGTYPE_p_wxInitDialogEvent swig_types[71]
2534 #define SWIGTYPE_p_wxItemContainer swig_types[72]
2535 #define SWIGTYPE_p_wxJPEGHandler swig_types[73]
2536 #define SWIGTYPE_p_wxKeyEvent swig_types[74]
2537 #define SWIGTYPE_p_wxLayoutConstraints swig_types[75]
2538 #define SWIGTYPE_p_wxListBox swig_types[76]
2539 #define SWIGTYPE_p_wxListEvent swig_types[77]
2540 #define SWIGTYPE_p_wxListItem swig_types[78]
2541 #define SWIGTYPE_p_wxListItemAttr swig_types[79]
2542 #define SWIGTYPE_p_wxListView swig_types[80]
2543 #define SWIGTYPE_p_wxListbook swig_types[81]
2544 #define SWIGTYPE_p_wxListbookEvent swig_types[82]
2545 #define SWIGTYPE_p_wxMaximizeEvent swig_types[83]
2546 #define SWIGTYPE_p_wxMemoryDC swig_types[84]
2547 #define SWIGTYPE_p_wxMenu swig_types[85]
2548 #define SWIGTYPE_p_wxMenuBar swig_types[86]
2549 #define SWIGTYPE_p_wxMenuEvent swig_types[87]
2550 #define SWIGTYPE_p_wxMenuItem swig_types[88]
2551 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[89]
2552 #define SWIGTYPE_p_wxMouseEvent swig_types[90]
2553 #define SWIGTYPE_p_wxMoveEvent swig_types[91]
2554 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[92]
2555 #define SWIGTYPE_p_wxNcPaintEvent swig_types[93]
2556 #define SWIGTYPE_p_wxNotebook swig_types[94]
2557 #define SWIGTYPE_p_wxNotebookEvent swig_types[95]
2558 #define SWIGTYPE_p_wxNotifyEvent swig_types[96]
2559 #define SWIGTYPE_p_wxObject swig_types[97]
2560 #define SWIGTYPE_p_wxPCXHandler swig_types[98]
2561 #define SWIGTYPE_p_wxPNGHandler swig_types[99]
2562 #define SWIGTYPE_p_wxPNMHandler swig_types[100]
2563 #define SWIGTYPE_p_wxPaintEvent swig_types[101]
2564 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[102]
2565 #define SWIGTYPE_p_wxPaperSize swig_types[103]
2566 #define SWIGTYPE_p_wxPoint swig_types[104]
2567 #define SWIGTYPE_p_wxPyApp swig_types[105]
2568 #define SWIGTYPE_p_wxPyCommandEvent swig_types[106]
2569 #define SWIGTYPE_p_wxPyControl swig_types[107]
2570 #define SWIGTYPE_p_wxPyEvent swig_types[108]
2571 #define SWIGTYPE_p_wxPyImageHandler swig_types[109]
2572 #define SWIGTYPE_p_wxPyListCtrl swig_types[110]
2573 #define SWIGTYPE_p_wxPySizer swig_types[111]
2574 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[112]
2575 #define SWIGTYPE_p_wxPyTreeItemData swig_types[113]
2576 #define SWIGTYPE_p_wxPyValidator swig_types[114]
2577 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[115]
2578 #define SWIGTYPE_p_wxRadioBox swig_types[116]
2579 #define SWIGTYPE_p_wxRadioButton swig_types[117]
2580 #define SWIGTYPE_p_wxRect swig_types[118]
2581 #define SWIGTYPE_p_wxScrollBar swig_types[119]
2582 #define SWIGTYPE_p_wxScrollEvent swig_types[120]
2583 #define SWIGTYPE_p_wxScrollWinEvent swig_types[121]
2584 #define SWIGTYPE_p_wxSetCursorEvent swig_types[122]
2585 #define SWIGTYPE_p_wxShowEvent swig_types[123]
2586 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[124]
2587 #define SWIGTYPE_p_wxSize swig_types[125]
2588 #define SWIGTYPE_p_wxSizeEvent swig_types[126]
2589 #define SWIGTYPE_p_wxSizer swig_types[127]
2590 #define SWIGTYPE_p_wxSizerItem swig_types[128]
2591 #define SWIGTYPE_p_wxSlider swig_types[129]
2592 #define SWIGTYPE_p_wxSpinButton swig_types[130]
2593 #define SWIGTYPE_p_wxSpinCtrl swig_types[131]
2594 #define SWIGTYPE_p_wxSpinEvent swig_types[132]
2595 #define SWIGTYPE_p_wxStaticBitmap swig_types[133]
2596 #define SWIGTYPE_p_wxStaticBox swig_types[134]
2597 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[135]
2598 #define SWIGTYPE_p_wxStaticLine swig_types[136]
2599 #define SWIGTYPE_p_wxStaticText swig_types[137]
2600 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[138]
2601 #define SWIGTYPE_p_wxString swig_types[139]
2602 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[140]
2603 #define SWIGTYPE_p_wxTIFFHandler swig_types[141]
2604 #define SWIGTYPE_p_wxTextAttr swig_types[142]
2605 #define SWIGTYPE_p_wxTextCtrl swig_types[143]
2606 #define SWIGTYPE_p_wxTextUrlEvent swig_types[144]
2607 #define SWIGTYPE_p_wxToggleButton swig_types[145]
2608 #define SWIGTYPE_p_wxToolBar swig_types[146]
2609 #define SWIGTYPE_p_wxToolBarBase swig_types[147]
2610 #define SWIGTYPE_p_wxToolBarToolBase swig_types[148]
2611 #define SWIGTYPE_p_wxToolbook swig_types[149]
2612 #define SWIGTYPE_p_wxToolbookEvent swig_types[150]
2613 #define SWIGTYPE_p_wxTreeCtrl swig_types[151]
2614 #define SWIGTYPE_p_wxTreeEvent swig_types[152]
2615 #define SWIGTYPE_p_wxTreeItemId swig_types[153]
2616 #define SWIGTYPE_p_wxTreebook swig_types[154]
2617 #define SWIGTYPE_p_wxTreebookEvent swig_types[155]
2618 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[156]
2619 #define SWIGTYPE_p_wxValidator swig_types[157]
2620 #define SWIGTYPE_p_wxVisualAttributes swig_types[158]
2621 #define SWIGTYPE_p_wxWindow swig_types[159]
2622 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[160]
2623 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[161]
2624 #define SWIGTYPE_p_wxXPMHandler swig_types[162]
2625 static swig_type_info *swig_types[164];
2626 static swig_module_info swig_module = {swig_types, 163, 0, 0, 0, 0};
2627 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2628 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2629
2630 /* -------- TYPES TABLE (END) -------- */
2631
2632 #if (PY_VERSION_HEX <= 0x02000000)
2633 # if !defined(SWIG_PYTHON_CLASSIC)
2634 # error "This python version requires to use swig with the '-classic' option"
2635 # endif
2636 #endif
2637 #if (PY_VERSION_HEX <= 0x02020000)
2638 # error "This python version requires to use swig with the '-nomodern' option"
2639 #endif
2640 #if (PY_VERSION_HEX <= 0x02020000)
2641 # error "This python version requires to use swig with the '-nomodernargs' option"
2642 #endif
2643 #ifndef METH_O
2644 # error "This python version requires to use swig with the '-nofastunpack' option"
2645 #endif
2646
2647 /*-----------------------------------------------
2648 @(target):= _controls_.so
2649 ------------------------------------------------*/
2650 #define SWIG_init init_controls_
2651
2652 #define SWIG_name "_controls_"
2653
2654 #define SWIGVERSION 0x010329
2655
2656
2657 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2658 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2659
2660
2661 #include <stdexcept>
2662
2663
2664 namespace swig {
2665 class PyObject_ptr {
2666 protected:
2667 PyObject *_obj;
2668
2669 public:
2670 PyObject_ptr() :_obj(0)
2671 {
2672 }
2673
2674 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2675 {
2676 Py_XINCREF(_obj);
2677 }
2678
2679 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2680 {
2681 if (initial_ref) Py_XINCREF(_obj);
2682 }
2683
2684 PyObject_ptr & operator=(const PyObject_ptr& item)
2685 {
2686 Py_XINCREF(item._obj);
2687 Py_XDECREF(_obj);
2688 _obj = item._obj;
2689 return *this;
2690 }
2691
2692 ~PyObject_ptr()
2693 {
2694 Py_XDECREF(_obj);
2695 }
2696
2697 operator PyObject *() const
2698 {
2699 return _obj;
2700 }
2701
2702 PyObject *operator->() const
2703 {
2704 return _obj;
2705 }
2706 };
2707 }
2708
2709
2710 namespace swig {
2711 struct PyObject_var : PyObject_ptr {
2712 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2713
2714 PyObject_var & operator = (PyObject* obj)
2715 {
2716 Py_XDECREF(_obj);
2717 _obj = obj;
2718 return *this;
2719 }
2720 };
2721 }
2722
2723
2724 #include "wx/wxPython/wxPython.h"
2725 #include "wx/wxPython/pyclasses.h"
2726
2727 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2728 static const wxString wxPyEmptyString(wxEmptyString);
2729 static const wxString wxPyControlNameStr(wxControlNameStr);
2730
2731 const wxArrayString wxPyEmptyStringArray;
2732
2733 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2734
2735 #define SWIG_From_long PyInt_FromLong
2736
2737
2738 SWIGINTERNINLINE PyObject *
2739 SWIG_From_int (int value)
2740 {
2741 return SWIG_From_long (value);
2742 }
2743
2744
2745 #include <limits.h>
2746 #ifndef LLONG_MIN
2747 # define LLONG_MIN LONG_LONG_MIN
2748 #endif
2749 #ifndef LLONG_MAX
2750 # define LLONG_MAX LONG_LONG_MAX
2751 #endif
2752 #ifndef ULLONG_MAX
2753 # define ULLONG_MAX ULONG_LONG_MAX
2754 #endif
2755
2756
2757 SWIGINTERN int
2758 SWIG_AsVal_long (PyObject* obj, long* val)
2759 {
2760 if (PyNumber_Check(obj)) {
2761 if (val) *val = PyInt_AsLong(obj);
2762 return SWIG_OK;
2763 }
2764 return SWIG_TypeError;
2765 }
2766
2767
2768 SWIGINTERN int
2769 SWIG_AsVal_int (PyObject * obj, int *val)
2770 {
2771 long v;
2772 int res = SWIG_AsVal_long (obj, &v);
2773 if (SWIG_IsOK(res)) {
2774 if ((v < INT_MIN || v > INT_MAX)) {
2775 return SWIG_OverflowError;
2776 } else {
2777 if (val) *val = static_cast< int >(v);
2778 }
2779 }
2780 return res;
2781 }
2782
2783 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
2784
2785 SWIGINTERN int
2786 SWIG_AsVal_bool (PyObject *obj, bool *val)
2787 {
2788 if (obj == Py_True) {
2789 if (val) *val = true;
2790 return SWIG_OK;
2791 } else if (obj == Py_False) {
2792 if (val) *val = false;
2793 return SWIG_OK;
2794 } else {
2795 long v = 0;
2796 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2797 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2798 return res;
2799 }
2800 }
2801
2802 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2803 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2804 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2805 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2806 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2807 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2808
2809 #include <wx/checklst.h>
2810
2811
2812 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
2813 SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
2814 if (clientData) {
2815 wxPyClientData* data = new wxPyClientData(clientData);
2816 self->Insert(item, pos, data);
2817 } else
2818 self->Insert(item, pos);
2819 }
2820 SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
2821 wxArrayInt lst;
2822 self->GetSelections(lst);
2823 PyObject *tup = PyTuple_New(lst.GetCount());
2824 for(size_t i=0; i<lst.GetCount(); i++) {
2825 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2826 }
2827 return tup;
2828 }
2829 SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
2830 #ifdef __WXMSW__
2831 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2832 self->GetItem(item)->SetTextColour(c);
2833 #endif
2834 }
2835 SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
2836 #ifdef __WXMSW__
2837 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2838 self->GetItem(item)->SetBackgroundColour(c);
2839 #endif
2840 }
2841 SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
2842 #ifdef __WXMSW__
2843 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2844 self->GetItem(item)->SetFont(f);
2845 #endif
2846 }
2847 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
2848
2849 SWIGINTERN int
2850 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2851 {
2852 long v = 0;
2853 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2854 return SWIG_TypeError;
2855 }
2856 else if (val)
2857 *val = (unsigned long)v;
2858 return SWIG_OK;
2859 }
2860
2861 SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
2862 self->AppendText(text);
2863 }
2864 SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
2865 return self->GetValue().Mid(from, to - from);
2866 }
2867 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2868 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2869 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2870 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2871 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2872
2873 #include <wx/slider.h>
2874
2875
2876 static const wxString wxPySliderNameStr(wxSliderNameStr);
2877 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2878
2879 #if !wxUSE_TOGGLEBTN
2880 // implement dummy items for platforms that don't have this class
2881
2882 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2883
2884 class wxToggleButton : public wxControl
2885 {
2886 public:
2887 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2888 const wxPoint&, const wxSize&, long,
2889 const wxValidator&, const wxString&)
2890 { wxPyRaiseNotImplemented(); }
2891
2892 wxToggleButton()
2893 { wxPyRaiseNotImplemented(); }
2894 };
2895 #endif
2896
2897 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
2898
2899 SWIGINTERNINLINE PyObject*
2900 SWIG_From_unsigned_SS_long (unsigned long value)
2901 {
2902 return (value > LONG_MAX) ?
2903 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2904 }
2905
2906
2907 SWIGINTERNINLINE PyObject *
2908 SWIG_From_size_t (size_t value)
2909 {
2910 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2911 }
2912
2913
2914 SWIGINTERNINLINE int
2915 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
2916 {
2917 unsigned long v;
2918 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2919 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2920 return res;
2921 }
2922
2923
2924 SWIGINTERNINLINE PyObject *
2925 SWIG_From_unsigned_SS_int (unsigned int value)
2926 {
2927 return SWIG_From_unsigned_SS_long (value);
2928 }
2929
2930
2931 SWIGINTERN int
2932 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2933 {
2934 unsigned long v;
2935 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2936 if (SWIG_IsOK(res)) {
2937 if ((v > UINT_MAX)) {
2938 return SWIG_OverflowError;
2939 } else {
2940 if (val) *val = static_cast< unsigned int >(v);
2941 }
2942 }
2943 return res;
2944 }
2945
2946 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
2947 SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
2948 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2949 if (udata) {
2950 Py_INCREF(udata->m_obj);
2951 return udata->m_obj;
2952 } else {
2953 Py_INCREF(Py_None);
2954 return Py_None;
2955 }
2956 }
2957 SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
2958 self->SetClientData(new wxPyUserData(clientData));
2959 }
2960 SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
2961 wxPyUserData* udata = NULL;
2962 if (clientData && clientData != Py_None)
2963 udata = new wxPyUserData(clientData);
2964 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2965 shortHelp, longHelp, udata);
2966 }
2967 SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
2968 wxPyUserData* udata = NULL;
2969 if (clientData && clientData != Py_None)
2970 udata = new wxPyUserData(clientData);
2971 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2972 shortHelp, longHelp, udata);
2973 }
2974 SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
2975 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2976 if (udata) {
2977 Py_INCREF(udata->m_obj);
2978 return udata->m_obj;
2979 } else {
2980 Py_INCREF(Py_None);
2981 return Py_None;
2982 }
2983 }
2984 SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
2985 self->SetToolClientData(id, new wxPyUserData(clientData));
2986 }
2987
2988 #include <wx/listctrl.h>
2989
2990 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
2991 SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
2992 // Python aware sorting function for wxPyListCtrl
2993 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
2994 int retval = 0;
2995 PyObject* func = (PyObject*)funcPtr;
2996 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2997
2998 PyObject* args = Py_BuildValue("(ii)", item1, item2);
2999 PyObject* result = PyEval_CallObject(func, args);
3000 Py_DECREF(args);
3001 if (result) {
3002 retval = PyInt_AsLong(result);
3003 Py_DECREF(result);
3004 }
3005
3006 wxPyEndBlockThreads(blocked);
3007 return retval;
3008 }
3009
3010 // C++ Version of a Python aware class
3011 class wxPyListCtrl : public wxListCtrl {
3012 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
3013 public:
3014 wxPyListCtrl() : wxListCtrl() {}
3015 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3016 const wxPoint& pos,
3017 const wxSize& size,
3018 long style,
3019 const wxValidator& validator,
3020 const wxString& name) :
3021 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3022
3023 bool Create(wxWindow* parent, wxWindowID id,
3024 const wxPoint& pos,
3025 const wxSize& size,
3026 long style,
3027 const wxValidator& validator,
3028 const wxString& name) {
3029 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3030 }
3031
3032 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
3033 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3034
3035 // use the virtual version to avoid a confusing assert in the base class
3036 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
3037 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
3038
3039 PYPRIVATE;
3040 };
3041
3042 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3043
3044 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
3045 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
3046 IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
3047 IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3048
3049
3050 SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
3051 wxListItem item;
3052 item.SetMask( wxLIST_MASK_STATE |
3053 wxLIST_MASK_TEXT |
3054 wxLIST_MASK_IMAGE |
3055 wxLIST_MASK_DATA |
3056 wxLIST_SET_ITEM |
3057 wxLIST_MASK_WIDTH |
3058 wxLIST_MASK_FORMAT
3059 );
3060 if (self->GetColumn(col, item))
3061 return new wxListItem(item);
3062 else
3063 return NULL;
3064 }
3065 SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
3066 wxListItem* info = new wxListItem;
3067 info->m_itemId = itemId;
3068 info->m_col = col;
3069 info->m_mask = 0xFFFF;
3070 self->GetItem(*info);
3071 return info;
3072 }
3073 SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
3074 wxPoint pos;
3075 self->GetItemPosition(item, pos);
3076 return pos;
3077 }
3078 SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
3079 wxRect rect;
3080 self->GetItemRect(item, rect, code);
3081 return rect;
3082 }
3083 SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
3084 if (!PyCallable_Check(func))
3085 return false;
3086 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3087 }
3088 SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
3089
3090 return self;
3091
3092
3093
3094 }
3095
3096 #include <wx/treectrl.h>
3097 #include "wx/wxPython/pytree.h"
3098
3099 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
3100 SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3101 SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3102 SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
3103 // C++ version of Python aware wxTreeCtrl
3104 class wxPyTreeCtrl : public wxTreeCtrl {
3105 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
3106 public:
3107 wxPyTreeCtrl() : wxTreeCtrl() {}
3108 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3109 const wxPoint& pos,
3110 const wxSize& size,
3111 long style,
3112 const wxValidator& validator,
3113 const wxString& name) :
3114 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3115
3116 bool Create(wxWindow *parent, wxWindowID id,
3117 const wxPoint& pos,
3118 const wxSize& size,
3119 long style,
3120 const wxValidator& validator,
3121 const wxString& name) {
3122 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3123 }
3124
3125
3126 int OnCompareItems(const wxTreeItemId& item1,
3127 const wxTreeItemId& item2) {
3128 int rval = 0;
3129 bool found;
3130 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3131 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
3132 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3133 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
3134 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3135 Py_DECREF(o1);
3136 Py_DECREF(o2);
3137 }
3138 wxPyEndBlockThreads(blocked);
3139 if (! found)
3140 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3141 return rval;
3142 }
3143 PYPRIVATE;
3144 };
3145
3146 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3147
3148
3149 SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3150 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3151 if (data == NULL) {
3152 data = new wxPyTreeItemData();
3153 data->SetId(item); // set the id
3154 self->SetItemData(item, data);
3155 }
3156 return data;
3157 }
3158 SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3159 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3160 if (data == NULL) {
3161 data = new wxPyTreeItemData();
3162 data->SetId(item); // set the id
3163 self->SetItemData(item, data);
3164 }
3165 return data->GetData();
3166 }
3167 SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
3168 data->SetId(item); // set the id
3169 self->SetItemData(item, data);
3170 }
3171 SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
3172 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3173 if (data == NULL) {
3174 data = new wxPyTreeItemData(obj);
3175 data->SetId(item); // set the id
3176 self->SetItemData(item, data);
3177 } else
3178 data->SetData(obj);
3179 }
3180 SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
3181 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3182 PyObject* rval = PyList_New(0);
3183 wxArrayTreeItemIds array;
3184 size_t num, x;
3185 num = self->GetSelections(array);
3186 for (x=0; x < num; x++) {
3187 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
3188 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
3189 PyList_Append(rval, item);
3190 Py_DECREF(item);
3191 }
3192 wxPyEndBlockThreads(blocked);
3193 return rval;
3194 }
3195 SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
3196 void* cookie = 0;
3197 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
3198 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3199 PyObject* tup = PyTuple_New(2);
3200 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3201 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3202 wxPyEndBlockThreads(blocked);
3203 return tup;
3204 }
3205 SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
3206 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
3207 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3208 PyObject* tup = PyTuple_New(2);
3209 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3210 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3211 wxPyEndBlockThreads(blocked);
3212 return tup;
3213 }
3214 SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
3215 wxRect rect;
3216 if (self->GetBoundingRect(item, rect, textOnly)) {
3217 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3218 wxRect* r = new wxRect(rect);
3219 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
3220 wxPyEndBlockThreads(blocked);
3221 return val;
3222 }
3223 else
3224 RETURN_NONE();
3225 }
3226 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
3227
3228 SWIGINTERNINLINE PyObject*
3229 SWIG_From_bool (bool value)
3230 {
3231 return PyBool_FromLong(value ? 1 : 0);
3232 }
3233
3234 // C++ version of Python aware wxControl
3235 class wxPyControl : public wxControl
3236 {
3237 DECLARE_DYNAMIC_CLASS(wxPyControl)
3238 public:
3239 wxPyControl() : wxControl() {}
3240 wxPyControl(wxWindow* parent, const wxWindowID id,
3241 const wxPoint& pos = wxDefaultPosition,
3242 const wxSize& size = wxDefaultSize,
3243 long style = 0,
3244 const wxValidator& validator=wxDefaultValidator,
3245 const wxString& name = wxPyControlNameStr)
3246 : wxControl(parent, id, pos, size, style, validator, name) {}
3247
3248 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
3249
3250 bool DoEraseBackground(wxDC* dc) {
3251 #ifdef __WXMSW__
3252 return wxWindow::DoEraseBackground(dc->GetHDC());
3253 #else
3254 dc->SetBackground(wxBrush(GetBackgroundColour()));
3255 dc->Clear();
3256 return true;
3257 #endif
3258 }
3259
3260 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3261 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3262 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3263 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3264
3265 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3266 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3267 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3268
3269 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3270 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3271
3272 DEC_PYCALLBACK__(InitDialog);
3273 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3274 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3275 DEC_PYCALLBACK_BOOL_(Validate);
3276
3277 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3278 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3279 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3280
3281 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3282 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3283
3284 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
3285 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
3286
3287 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3288
3289 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3290
3291 PYPRIVATE;
3292 };
3293
3294 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3295
3296 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3297 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3298 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3299 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3300
3301 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3302 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3303 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3304
3305 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3306 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3307
3308 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3309 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3310 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3311 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3312
3313 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3314 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3315 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3316
3317 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3318 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3319
3320 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
3321 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
3322
3323 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
3324
3325 IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3326
3327
3328
3329 SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
3330
3331 #include <wx/generic/dragimgg.h>
3332
3333 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
3334 SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
3335 wxDateTime rv;
3336 self->GetRange(&rv, NULL);
3337 return rv;
3338 }
3339 SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
3340 wxDateTime rv;
3341 self->GetRange(NULL, &rv);
3342 return rv;
3343 }
3344 #ifdef __cplusplus
3345 extern "C" {
3346 #endif
3347 SWIGINTERN int ButtonNameStr_set(PyObject *) {
3348 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3349 return 1;
3350 }
3351
3352
3353 SWIGINTERN PyObject *ButtonNameStr_get(void) {
3354 PyObject *pyobj = 0;
3355
3356 {
3357 #if wxUSE_UNICODE
3358 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3359 #else
3360 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3361 #endif
3362 }
3363 return pyobj;
3364 }
3365
3366
3367 SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3368 PyObject *resultobj = 0;
3369 wxWindow *arg1 = (wxWindow *) 0 ;
3370 int arg2 = (int) -1 ;
3371 wxString const &arg3_defvalue = wxPyEmptyString ;
3372 wxString *arg3 = (wxString *) &arg3_defvalue ;
3373 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3374 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3375 wxSize const &arg5_defvalue = wxDefaultSize ;
3376 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3377 long arg6 = (long) 0 ;
3378 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3379 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3380 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3381 wxString *arg8 = (wxString *) &arg8_defvalue ;
3382 wxButton *result = 0 ;
3383 void *argp1 = 0 ;
3384 int res1 = 0 ;
3385 int val2 ;
3386 int ecode2 = 0 ;
3387 bool temp3 = false ;
3388 wxPoint temp4 ;
3389 wxSize temp5 ;
3390 long val6 ;
3391 int ecode6 = 0 ;
3392 void *argp7 = 0 ;
3393 int res7 = 0 ;
3394 bool temp8 = false ;
3395 PyObject * obj0 = 0 ;
3396 PyObject * obj1 = 0 ;
3397 PyObject * obj2 = 0 ;
3398 PyObject * obj3 = 0 ;
3399 PyObject * obj4 = 0 ;
3400 PyObject * obj5 = 0 ;
3401 PyObject * obj6 = 0 ;
3402 PyObject * obj7 = 0 ;
3403 char * kwnames[] = {
3404 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3405 };
3406
3407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3409 if (!SWIG_IsOK(res1)) {
3410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3411 }
3412 arg1 = reinterpret_cast< wxWindow * >(argp1);
3413 if (obj1) {
3414 ecode2 = SWIG_AsVal_int(obj1, &val2);
3415 if (!SWIG_IsOK(ecode2)) {
3416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3417 }
3418 arg2 = static_cast< int >(val2);
3419 }
3420 if (obj2) {
3421 {
3422 arg3 = wxString_in_helper(obj2);
3423 if (arg3 == NULL) SWIG_fail;
3424 temp3 = true;
3425 }
3426 }
3427 if (obj3) {
3428 {
3429 arg4 = &temp4;
3430 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3431 }
3432 }
3433 if (obj4) {
3434 {
3435 arg5 = &temp5;
3436 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3437 }
3438 }
3439 if (obj5) {
3440 ecode6 = SWIG_AsVal_long(obj5, &val6);
3441 if (!SWIG_IsOK(ecode6)) {
3442 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3443 }
3444 arg6 = static_cast< long >(val6);
3445 }
3446 if (obj6) {
3447 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3448 if (!SWIG_IsOK(res7)) {
3449 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3450 }
3451 if (!argp7) {
3452 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3453 }
3454 arg7 = reinterpret_cast< wxValidator * >(argp7);
3455 }
3456 if (obj7) {
3457 {
3458 arg8 = wxString_in_helper(obj7);
3459 if (arg8 == NULL) SWIG_fail;
3460 temp8 = true;
3461 }
3462 }
3463 {
3464 if (!wxPyCheckForApp()) SWIG_fail;
3465 PyThreadState* __tstate = wxPyBeginAllowThreads();
3466 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3467 wxPyEndAllowThreads(__tstate);
3468 if (PyErr_Occurred()) SWIG_fail;
3469 }
3470 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3471 {
3472 if (temp3)
3473 delete arg3;
3474 }
3475 {
3476 if (temp8)
3477 delete arg8;
3478 }
3479 return resultobj;
3480 fail:
3481 {
3482 if (temp3)
3483 delete arg3;
3484 }
3485 {
3486 if (temp8)
3487 delete arg8;
3488 }
3489 return NULL;
3490 }
3491
3492
3493 SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3494 PyObject *resultobj = 0;
3495 wxButton *result = 0 ;
3496
3497 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3498 {
3499 if (!wxPyCheckForApp()) SWIG_fail;
3500 PyThreadState* __tstate = wxPyBeginAllowThreads();
3501 result = (wxButton *)new wxButton();
3502 wxPyEndAllowThreads(__tstate);
3503 if (PyErr_Occurred()) SWIG_fail;
3504 }
3505 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3506 return resultobj;
3507 fail:
3508 return NULL;
3509 }
3510
3511
3512 SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3513 PyObject *resultobj = 0;
3514 wxButton *arg1 = (wxButton *) 0 ;
3515 wxWindow *arg2 = (wxWindow *) 0 ;
3516 int arg3 = (int) -1 ;
3517 wxString const &arg4_defvalue = wxPyEmptyString ;
3518 wxString *arg4 = (wxString *) &arg4_defvalue ;
3519 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3520 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3521 wxSize const &arg6_defvalue = wxDefaultSize ;
3522 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3523 long arg7 = (long) 0 ;
3524 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3525 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3526 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3527 wxString *arg9 = (wxString *) &arg9_defvalue ;
3528 bool result;
3529 void *argp1 = 0 ;
3530 int res1 = 0 ;
3531 void *argp2 = 0 ;
3532 int res2 = 0 ;
3533 int val3 ;
3534 int ecode3 = 0 ;
3535 bool temp4 = false ;
3536 wxPoint temp5 ;
3537 wxSize temp6 ;
3538 long val7 ;
3539 int ecode7 = 0 ;
3540 void *argp8 = 0 ;
3541 int res8 = 0 ;
3542 bool temp9 = false ;
3543 PyObject * obj0 = 0 ;
3544 PyObject * obj1 = 0 ;
3545 PyObject * obj2 = 0 ;
3546 PyObject * obj3 = 0 ;
3547 PyObject * obj4 = 0 ;
3548 PyObject * obj5 = 0 ;
3549 PyObject * obj6 = 0 ;
3550 PyObject * obj7 = 0 ;
3551 PyObject * obj8 = 0 ;
3552 char * kwnames[] = {
3553 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3554 };
3555
3556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3558 if (!SWIG_IsOK(res1)) {
3559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3560 }
3561 arg1 = reinterpret_cast< wxButton * >(argp1);
3562 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3563 if (!SWIG_IsOK(res2)) {
3564 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3565 }
3566 arg2 = reinterpret_cast< wxWindow * >(argp2);
3567 if (obj2) {
3568 ecode3 = SWIG_AsVal_int(obj2, &val3);
3569 if (!SWIG_IsOK(ecode3)) {
3570 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3571 }
3572 arg3 = static_cast< int >(val3);
3573 }
3574 if (obj3) {
3575 {
3576 arg4 = wxString_in_helper(obj3);
3577 if (arg4 == NULL) SWIG_fail;
3578 temp4 = true;
3579 }
3580 }
3581 if (obj4) {
3582 {
3583 arg5 = &temp5;
3584 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3585 }
3586 }
3587 if (obj5) {
3588 {
3589 arg6 = &temp6;
3590 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3591 }
3592 }
3593 if (obj6) {
3594 ecode7 = SWIG_AsVal_long(obj6, &val7);
3595 if (!SWIG_IsOK(ecode7)) {
3596 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3597 }
3598 arg7 = static_cast< long >(val7);
3599 }
3600 if (obj7) {
3601 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3602 if (!SWIG_IsOK(res8)) {
3603 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3604 }
3605 if (!argp8) {
3606 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3607 }
3608 arg8 = reinterpret_cast< wxValidator * >(argp8);
3609 }
3610 if (obj8) {
3611 {
3612 arg9 = wxString_in_helper(obj8);
3613 if (arg9 == NULL) SWIG_fail;
3614 temp9 = true;
3615 }
3616 }
3617 {
3618 PyThreadState* __tstate = wxPyBeginAllowThreads();
3619 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3620 wxPyEndAllowThreads(__tstate);
3621 if (PyErr_Occurred()) SWIG_fail;
3622 }
3623 {
3624 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3625 }
3626 {
3627 if (temp4)
3628 delete arg4;
3629 }
3630 {
3631 if (temp9)
3632 delete arg9;
3633 }
3634 return resultobj;
3635 fail:
3636 {
3637 if (temp4)
3638 delete arg4;
3639 }
3640 {
3641 if (temp9)
3642 delete arg9;
3643 }
3644 return NULL;
3645 }
3646
3647
3648 SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3649 PyObject *resultobj = 0;
3650 wxButton *arg1 = (wxButton *) 0 ;
3651 void *argp1 = 0 ;
3652 int res1 = 0 ;
3653 PyObject *swig_obj[1] ;
3654
3655 if (!args) SWIG_fail;
3656 swig_obj[0] = args;
3657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3658 if (!SWIG_IsOK(res1)) {
3659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3660 }
3661 arg1 = reinterpret_cast< wxButton * >(argp1);
3662 {
3663 PyThreadState* __tstate = wxPyBeginAllowThreads();
3664 (arg1)->SetDefault();
3665 wxPyEndAllowThreads(__tstate);
3666 if (PyErr_Occurred()) SWIG_fail;
3667 }
3668 resultobj = SWIG_Py_Void();
3669 return resultobj;
3670 fail:
3671 return NULL;
3672 }
3673
3674
3675 SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3676 PyObject *resultobj = 0;
3677 wxSize result;
3678
3679 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3680 {
3681 PyThreadState* __tstate = wxPyBeginAllowThreads();
3682 result = wxButton::GetDefaultSize();
3683 wxPyEndAllowThreads(__tstate);
3684 if (PyErr_Occurred()) SWIG_fail;
3685 }
3686 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3687 return resultobj;
3688 fail:
3689 return NULL;
3690 }
3691
3692
3693 SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3694 PyObject *resultobj = 0;
3695 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3696 SwigValueWrapper<wxVisualAttributes > result;
3697 int val1 ;
3698 int ecode1 = 0 ;
3699 PyObject * obj0 = 0 ;
3700 char * kwnames[] = {
3701 (char *) "variant", NULL
3702 };
3703
3704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3705 if (obj0) {
3706 ecode1 = SWIG_AsVal_int(obj0, &val1);
3707 if (!SWIG_IsOK(ecode1)) {
3708 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3709 }
3710 arg1 = static_cast< wxWindowVariant >(val1);
3711 }
3712 {
3713 if (!wxPyCheckForApp()) SWIG_fail;
3714 PyThreadState* __tstate = wxPyBeginAllowThreads();
3715 result = wxButton::GetClassDefaultAttributes(arg1);
3716 wxPyEndAllowThreads(__tstate);
3717 if (PyErr_Occurred()) SWIG_fail;
3718 }
3719 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3720 return resultobj;
3721 fail:
3722 return NULL;
3723 }
3724
3725
3726 SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3727 PyObject *obj;
3728 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3729 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3730 return SWIG_Py_Void();
3731 }
3732
3733 SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3734 return SWIG_Python_InitShadowInstance(args);
3735 }
3736
3737 SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3738 PyObject *resultobj = 0;
3739 wxWindow *arg1 = (wxWindow *) 0 ;
3740 int arg2 = (int) -1 ;
3741 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3742 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3743 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3744 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3745 wxSize const &arg5_defvalue = wxDefaultSize ;
3746 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3747 long arg6 = (long) wxBU_AUTODRAW ;
3748 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3749 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3750 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3751 wxString *arg8 = (wxString *) &arg8_defvalue ;
3752 wxBitmapButton *result = 0 ;
3753 void *argp1 = 0 ;
3754 int res1 = 0 ;
3755 int val2 ;
3756 int ecode2 = 0 ;
3757 void *argp3 = 0 ;
3758 int res3 = 0 ;
3759 wxPoint temp4 ;
3760 wxSize temp5 ;
3761 long val6 ;
3762 int ecode6 = 0 ;
3763 void *argp7 = 0 ;
3764 int res7 = 0 ;
3765 bool temp8 = false ;
3766 PyObject * obj0 = 0 ;
3767 PyObject * obj1 = 0 ;
3768 PyObject * obj2 = 0 ;
3769 PyObject * obj3 = 0 ;
3770 PyObject * obj4 = 0 ;
3771 PyObject * obj5 = 0 ;
3772 PyObject * obj6 = 0 ;
3773 PyObject * obj7 = 0 ;
3774 char * kwnames[] = {
3775 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3776 };
3777
3778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3780 if (!SWIG_IsOK(res1)) {
3781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3782 }
3783 arg1 = reinterpret_cast< wxWindow * >(argp1);
3784 if (obj1) {
3785 ecode2 = SWIG_AsVal_int(obj1, &val2);
3786 if (!SWIG_IsOK(ecode2)) {
3787 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3788 }
3789 arg2 = static_cast< int >(val2);
3790 }
3791 if (obj2) {
3792 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3793 if (!SWIG_IsOK(res3)) {
3794 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3795 }
3796 if (!argp3) {
3797 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3798 }
3799 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3800 }
3801 if (obj3) {
3802 {
3803 arg4 = &temp4;
3804 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3805 }
3806 }
3807 if (obj4) {
3808 {
3809 arg5 = &temp5;
3810 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3811 }
3812 }
3813 if (obj5) {
3814 ecode6 = SWIG_AsVal_long(obj5, &val6);
3815 if (!SWIG_IsOK(ecode6)) {
3816 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3817 }
3818 arg6 = static_cast< long >(val6);
3819 }
3820 if (obj6) {
3821 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3822 if (!SWIG_IsOK(res7)) {
3823 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3824 }
3825 if (!argp7) {
3826 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3827 }
3828 arg7 = reinterpret_cast< wxValidator * >(argp7);
3829 }
3830 if (obj7) {
3831 {
3832 arg8 = wxString_in_helper(obj7);
3833 if (arg8 == NULL) SWIG_fail;
3834 temp8 = true;
3835 }
3836 }
3837 {
3838 if (!wxPyCheckForApp()) SWIG_fail;
3839 PyThreadState* __tstate = wxPyBeginAllowThreads();
3840 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3841 wxPyEndAllowThreads(__tstate);
3842 if (PyErr_Occurred()) SWIG_fail;
3843 }
3844 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3845 {
3846 if (temp8)
3847 delete arg8;
3848 }
3849 return resultobj;
3850 fail:
3851 {
3852 if (temp8)
3853 delete arg8;
3854 }
3855 return NULL;
3856 }
3857
3858
3859 SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3860 PyObject *resultobj = 0;
3861 wxBitmapButton *result = 0 ;
3862
3863 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3864 {
3865 if (!wxPyCheckForApp()) SWIG_fail;
3866 PyThreadState* __tstate = wxPyBeginAllowThreads();
3867 result = (wxBitmapButton *)new wxBitmapButton();
3868 wxPyEndAllowThreads(__tstate);
3869 if (PyErr_Occurred()) SWIG_fail;
3870 }
3871 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3872 return resultobj;
3873 fail:
3874 return NULL;
3875 }
3876
3877
3878 SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3879 PyObject *resultobj = 0;
3880 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3881 wxWindow *arg2 = (wxWindow *) 0 ;
3882 int arg3 = (int) -1 ;
3883 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3884 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3885 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3886 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3887 wxSize const &arg6_defvalue = wxDefaultSize ;
3888 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3889 long arg7 = (long) wxBU_AUTODRAW ;
3890 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3891 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3892 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3893 wxString *arg9 = (wxString *) &arg9_defvalue ;
3894 bool result;
3895 void *argp1 = 0 ;
3896 int res1 = 0 ;
3897 void *argp2 = 0 ;
3898 int res2 = 0 ;
3899 int val3 ;
3900 int ecode3 = 0 ;
3901 void *argp4 = 0 ;
3902 int res4 = 0 ;
3903 wxPoint temp5 ;
3904 wxSize temp6 ;
3905 long val7 ;
3906 int ecode7 = 0 ;
3907 void *argp8 = 0 ;
3908 int res8 = 0 ;
3909 bool temp9 = false ;
3910 PyObject * obj0 = 0 ;
3911 PyObject * obj1 = 0 ;
3912 PyObject * obj2 = 0 ;
3913 PyObject * obj3 = 0 ;
3914 PyObject * obj4 = 0 ;
3915 PyObject * obj5 = 0 ;
3916 PyObject * obj6 = 0 ;
3917 PyObject * obj7 = 0 ;
3918 PyObject * obj8 = 0 ;
3919 char * kwnames[] = {
3920 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3921 };
3922
3923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3925 if (!SWIG_IsOK(res1)) {
3926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3927 }
3928 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3929 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3930 if (!SWIG_IsOK(res2)) {
3931 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3932 }
3933 arg2 = reinterpret_cast< wxWindow * >(argp2);
3934 if (obj2) {
3935 ecode3 = SWIG_AsVal_int(obj2, &val3);
3936 if (!SWIG_IsOK(ecode3)) {
3937 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3938 }
3939 arg3 = static_cast< int >(val3);
3940 }
3941 if (obj3) {
3942 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3943 if (!SWIG_IsOK(res4)) {
3944 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3945 }
3946 if (!argp4) {
3947 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3948 }
3949 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3950 }
3951 if (obj4) {
3952 {
3953 arg5 = &temp5;
3954 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3955 }
3956 }
3957 if (obj5) {
3958 {
3959 arg6 = &temp6;
3960 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3961 }
3962 }
3963 if (obj6) {
3964 ecode7 = SWIG_AsVal_long(obj6, &val7);
3965 if (!SWIG_IsOK(ecode7)) {
3966 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
3967 }
3968 arg7 = static_cast< long >(val7);
3969 }
3970 if (obj7) {
3971 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3972 if (!SWIG_IsOK(res8)) {
3973 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3974 }
3975 if (!argp8) {
3976 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3977 }
3978 arg8 = reinterpret_cast< wxValidator * >(argp8);
3979 }
3980 if (obj8) {
3981 {
3982 arg9 = wxString_in_helper(obj8);
3983 if (arg9 == NULL) SWIG_fail;
3984 temp9 = true;
3985 }
3986 }
3987 {
3988 PyThreadState* __tstate = wxPyBeginAllowThreads();
3989 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3990 wxPyEndAllowThreads(__tstate);
3991 if (PyErr_Occurred()) SWIG_fail;
3992 }
3993 {
3994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3995 }
3996 {
3997 if (temp9)
3998 delete arg9;
3999 }
4000 return resultobj;
4001 fail:
4002 {
4003 if (temp9)
4004 delete arg9;
4005 }
4006 return NULL;
4007 }
4008
4009
4010 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4011 PyObject *resultobj = 0;
4012 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4013 wxBitmap result;
4014 void *argp1 = 0 ;
4015 int res1 = 0 ;
4016 PyObject *swig_obj[1] ;
4017
4018 if (!args) SWIG_fail;
4019 swig_obj[0] = args;
4020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4021 if (!SWIG_IsOK(res1)) {
4022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4023 }
4024 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4025 {
4026 PyThreadState* __tstate = wxPyBeginAllowThreads();
4027 result = (arg1)->GetBitmapLabel();
4028 wxPyEndAllowThreads(__tstate);
4029 if (PyErr_Occurred()) SWIG_fail;
4030 }
4031 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4032 return resultobj;
4033 fail:
4034 return NULL;
4035 }
4036
4037
4038 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4039 PyObject *resultobj = 0;
4040 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4041 wxBitmap result;
4042 void *argp1 = 0 ;
4043 int res1 = 0 ;
4044 PyObject *swig_obj[1] ;
4045
4046 if (!args) SWIG_fail;
4047 swig_obj[0] = args;
4048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4049 if (!SWIG_IsOK(res1)) {
4050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4051 }
4052 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4053 {
4054 PyThreadState* __tstate = wxPyBeginAllowThreads();
4055 result = (arg1)->GetBitmapDisabled();
4056 wxPyEndAllowThreads(__tstate);
4057 if (PyErr_Occurred()) SWIG_fail;
4058 }
4059 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4060 return resultobj;
4061 fail:
4062 return NULL;
4063 }
4064
4065
4066 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4067 PyObject *resultobj = 0;
4068 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4069 wxBitmap result;
4070 void *argp1 = 0 ;
4071 int res1 = 0 ;
4072 PyObject *swig_obj[1] ;
4073
4074 if (!args) SWIG_fail;
4075 swig_obj[0] = args;
4076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4077 if (!SWIG_IsOK(res1)) {
4078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4079 }
4080 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4081 {
4082 PyThreadState* __tstate = wxPyBeginAllowThreads();
4083 result = (arg1)->GetBitmapFocus();
4084 wxPyEndAllowThreads(__tstate);
4085 if (PyErr_Occurred()) SWIG_fail;
4086 }
4087 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4088 return resultobj;
4089 fail:
4090 return NULL;
4091 }
4092
4093
4094 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4095 PyObject *resultobj = 0;
4096 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4097 wxBitmap result;
4098 void *argp1 = 0 ;
4099 int res1 = 0 ;
4100 PyObject *swig_obj[1] ;
4101
4102 if (!args) SWIG_fail;
4103 swig_obj[0] = args;
4104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4105 if (!SWIG_IsOK(res1)) {
4106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4107 }
4108 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4109 {
4110 PyThreadState* __tstate = wxPyBeginAllowThreads();
4111 result = (arg1)->GetBitmapSelected();
4112 wxPyEndAllowThreads(__tstate);
4113 if (PyErr_Occurred()) SWIG_fail;
4114 }
4115 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4116 return resultobj;
4117 fail:
4118 return NULL;
4119 }
4120
4121
4122 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4123 PyObject *resultobj = 0;
4124 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4125 wxBitmap result;
4126 void *argp1 = 0 ;
4127 int res1 = 0 ;
4128 PyObject *swig_obj[1] ;
4129
4130 if (!args) SWIG_fail;
4131 swig_obj[0] = args;
4132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4133 if (!SWIG_IsOK(res1)) {
4134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4135 }
4136 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4137 {
4138 PyThreadState* __tstate = wxPyBeginAllowThreads();
4139 result = (arg1)->GetBitmapHover();
4140 wxPyEndAllowThreads(__tstate);
4141 if (PyErr_Occurred()) SWIG_fail;
4142 }
4143 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4144 return resultobj;
4145 fail:
4146 return NULL;
4147 }
4148
4149
4150 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4151 PyObject *resultobj = 0;
4152 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4153 wxBitmap *arg2 = 0 ;
4154 void *argp1 = 0 ;
4155 int res1 = 0 ;
4156 void *argp2 = 0 ;
4157 int res2 = 0 ;
4158 PyObject * obj0 = 0 ;
4159 PyObject * obj1 = 0 ;
4160 char * kwnames[] = {
4161 (char *) "self",(char *) "bitmap", NULL
4162 };
4163
4164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4166 if (!SWIG_IsOK(res1)) {
4167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4168 }
4169 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4170 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4171 if (!SWIG_IsOK(res2)) {
4172 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4173 }
4174 if (!argp2) {
4175 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4176 }
4177 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4178 {
4179 PyThreadState* __tstate = wxPyBeginAllowThreads();
4180 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4181 wxPyEndAllowThreads(__tstate);
4182 if (PyErr_Occurred()) SWIG_fail;
4183 }
4184 resultobj = SWIG_Py_Void();
4185 return resultobj;
4186 fail:
4187 return NULL;
4188 }
4189
4190
4191 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4192 PyObject *resultobj = 0;
4193 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4194 wxBitmap *arg2 = 0 ;
4195 void *argp1 = 0 ;
4196 int res1 = 0 ;
4197 void *argp2 = 0 ;
4198 int res2 = 0 ;
4199 PyObject * obj0 = 0 ;
4200 PyObject * obj1 = 0 ;
4201 char * kwnames[] = {
4202 (char *) "self",(char *) "bitmap", NULL
4203 };
4204
4205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4207 if (!SWIG_IsOK(res1)) {
4208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4209 }
4210 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4211 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4212 if (!SWIG_IsOK(res2)) {
4213 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4214 }
4215 if (!argp2) {
4216 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4217 }
4218 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4219 {
4220 PyThreadState* __tstate = wxPyBeginAllowThreads();
4221 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4222 wxPyEndAllowThreads(__tstate);
4223 if (PyErr_Occurred()) SWIG_fail;
4224 }
4225 resultobj = SWIG_Py_Void();
4226 return resultobj;
4227 fail:
4228 return NULL;
4229 }
4230
4231
4232 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4233 PyObject *resultobj = 0;
4234 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4235 wxBitmap *arg2 = 0 ;
4236 void *argp1 = 0 ;
4237 int res1 = 0 ;
4238 void *argp2 = 0 ;
4239 int res2 = 0 ;
4240 PyObject * obj0 = 0 ;
4241 PyObject * obj1 = 0 ;
4242 char * kwnames[] = {
4243 (char *) "self",(char *) "bitmap", NULL
4244 };
4245
4246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4248 if (!SWIG_IsOK(res1)) {
4249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4250 }
4251 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4252 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4253 if (!SWIG_IsOK(res2)) {
4254 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4255 }
4256 if (!argp2) {
4257 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4258 }
4259 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4260 {
4261 PyThreadState* __tstate = wxPyBeginAllowThreads();
4262 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4263 wxPyEndAllowThreads(__tstate);
4264 if (PyErr_Occurred()) SWIG_fail;
4265 }
4266 resultobj = SWIG_Py_Void();
4267 return resultobj;
4268 fail:
4269 return NULL;
4270 }
4271
4272
4273 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4274 PyObject *resultobj = 0;
4275 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4276 wxBitmap *arg2 = 0 ;
4277 void *argp1 = 0 ;
4278 int res1 = 0 ;
4279 void *argp2 = 0 ;
4280 int res2 = 0 ;
4281 PyObject * obj0 = 0 ;
4282 PyObject * obj1 = 0 ;
4283 char * kwnames[] = {
4284 (char *) "self",(char *) "bitmap", NULL
4285 };
4286
4287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4289 if (!SWIG_IsOK(res1)) {
4290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4291 }
4292 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4293 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4294 if (!SWIG_IsOK(res2)) {
4295 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4296 }
4297 if (!argp2) {
4298 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4299 }
4300 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4301 {
4302 PyThreadState* __tstate = wxPyBeginAllowThreads();
4303 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4304 wxPyEndAllowThreads(__tstate);
4305 if (PyErr_Occurred()) SWIG_fail;
4306 }
4307 resultobj = SWIG_Py_Void();
4308 return resultobj;
4309 fail:
4310 return NULL;
4311 }
4312
4313
4314 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4315 PyObject *resultobj = 0;
4316 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4317 wxBitmap *arg2 = 0 ;
4318 void *argp1 = 0 ;
4319 int res1 = 0 ;
4320 void *argp2 = 0 ;
4321 int res2 = 0 ;
4322 PyObject * obj0 = 0 ;
4323 PyObject * obj1 = 0 ;
4324 char * kwnames[] = {
4325 (char *) "self",(char *) "hover", NULL
4326 };
4327
4328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4330 if (!SWIG_IsOK(res1)) {
4331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4332 }
4333 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4334 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4335 if (!SWIG_IsOK(res2)) {
4336 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4337 }
4338 if (!argp2) {
4339 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4340 }
4341 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4342 {
4343 PyThreadState* __tstate = wxPyBeginAllowThreads();
4344 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4345 wxPyEndAllowThreads(__tstate);
4346 if (PyErr_Occurred()) SWIG_fail;
4347 }
4348 resultobj = SWIG_Py_Void();
4349 return resultobj;
4350 fail:
4351 return NULL;
4352 }
4353
4354
4355 SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4356 PyObject *resultobj = 0;
4357 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4358 int arg2 ;
4359 int arg3 ;
4360 void *argp1 = 0 ;
4361 int res1 = 0 ;
4362 int val2 ;
4363 int ecode2 = 0 ;
4364 int val3 ;
4365 int ecode3 = 0 ;
4366 PyObject * obj0 = 0 ;
4367 PyObject * obj1 = 0 ;
4368 PyObject * obj2 = 0 ;
4369 char * kwnames[] = {
4370 (char *) "self",(char *) "x",(char *) "y", NULL
4371 };
4372
4373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4375 if (!SWIG_IsOK(res1)) {
4376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4377 }
4378 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4379 ecode2 = SWIG_AsVal_int(obj1, &val2);
4380 if (!SWIG_IsOK(ecode2)) {
4381 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4382 }
4383 arg2 = static_cast< int >(val2);
4384 ecode3 = SWIG_AsVal_int(obj2, &val3);
4385 if (!SWIG_IsOK(ecode3)) {
4386 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4387 }
4388 arg3 = static_cast< int >(val3);
4389 {
4390 PyThreadState* __tstate = wxPyBeginAllowThreads();
4391 (arg1)->SetMargins(arg2,arg3);
4392 wxPyEndAllowThreads(__tstate);
4393 if (PyErr_Occurred()) SWIG_fail;
4394 }
4395 resultobj = SWIG_Py_Void();
4396 return resultobj;
4397 fail:
4398 return NULL;
4399 }
4400
4401
4402 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4403 PyObject *resultobj = 0;
4404 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4405 int result;
4406 void *argp1 = 0 ;
4407 int res1 = 0 ;
4408 PyObject *swig_obj[1] ;
4409
4410 if (!args) SWIG_fail;
4411 swig_obj[0] = args;
4412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4413 if (!SWIG_IsOK(res1)) {
4414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4415 }
4416 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4417 {
4418 PyThreadState* __tstate = wxPyBeginAllowThreads();
4419 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4420 wxPyEndAllowThreads(__tstate);
4421 if (PyErr_Occurred()) SWIG_fail;
4422 }
4423 resultobj = SWIG_From_int(static_cast< int >(result));
4424 return resultobj;
4425 fail:
4426 return NULL;
4427 }
4428
4429
4430 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4431 PyObject *resultobj = 0;
4432 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4433 int result;
4434 void *argp1 = 0 ;
4435 int res1 = 0 ;
4436 PyObject *swig_obj[1] ;
4437
4438 if (!args) SWIG_fail;
4439 swig_obj[0] = args;
4440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4441 if (!SWIG_IsOK(res1)) {
4442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4443 }
4444 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4445 {
4446 PyThreadState* __tstate = wxPyBeginAllowThreads();
4447 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4448 wxPyEndAllowThreads(__tstate);
4449 if (PyErr_Occurred()) SWIG_fail;
4450 }
4451 resultobj = SWIG_From_int(static_cast< int >(result));
4452 return resultobj;
4453 fail:
4454 return NULL;
4455 }
4456
4457
4458 SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4459 PyObject *obj;
4460 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4461 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4462 return SWIG_Py_Void();
4463 }
4464
4465 SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4466 return SWIG_Python_InitShadowInstance(args);
4467 }
4468
4469 SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4470 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4471 return 1;
4472 }
4473
4474
4475 SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4476 PyObject *pyobj = 0;
4477
4478 {
4479 #if wxUSE_UNICODE
4480 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4481 #else
4482 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4483 #endif
4484 }
4485 return pyobj;
4486 }
4487
4488
4489 SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4490 PyObject *resultobj = 0;
4491 wxWindow *arg1 = (wxWindow *) 0 ;
4492 int arg2 = (int) -1 ;
4493 wxString const &arg3_defvalue = wxPyEmptyString ;
4494 wxString *arg3 = (wxString *) &arg3_defvalue ;
4495 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4496 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4497 wxSize const &arg5_defvalue = wxDefaultSize ;
4498 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4499 long arg6 = (long) 0 ;
4500 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4501 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4502 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4503 wxString *arg8 = (wxString *) &arg8_defvalue ;
4504 wxCheckBox *result = 0 ;
4505 void *argp1 = 0 ;
4506 int res1 = 0 ;
4507 int val2 ;
4508 int ecode2 = 0 ;
4509 bool temp3 = false ;
4510 wxPoint temp4 ;
4511 wxSize temp5 ;
4512 long val6 ;
4513 int ecode6 = 0 ;
4514 void *argp7 = 0 ;
4515 int res7 = 0 ;
4516 bool temp8 = false ;
4517 PyObject * obj0 = 0 ;
4518 PyObject * obj1 = 0 ;
4519 PyObject * obj2 = 0 ;
4520 PyObject * obj3 = 0 ;
4521 PyObject * obj4 = 0 ;
4522 PyObject * obj5 = 0 ;
4523 PyObject * obj6 = 0 ;
4524 PyObject * obj7 = 0 ;
4525 char * kwnames[] = {
4526 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4527 };
4528
4529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4531 if (!SWIG_IsOK(res1)) {
4532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4533 }
4534 arg1 = reinterpret_cast< wxWindow * >(argp1);
4535 if (obj1) {
4536 ecode2 = SWIG_AsVal_int(obj1, &val2);
4537 if (!SWIG_IsOK(ecode2)) {
4538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4539 }
4540 arg2 = static_cast< int >(val2);
4541 }
4542 if (obj2) {
4543 {
4544 arg3 = wxString_in_helper(obj2);
4545 if (arg3 == NULL) SWIG_fail;
4546 temp3 = true;
4547 }
4548 }
4549 if (obj3) {
4550 {
4551 arg4 = &temp4;
4552 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4553 }
4554 }
4555 if (obj4) {
4556 {
4557 arg5 = &temp5;
4558 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4559 }
4560 }
4561 if (obj5) {
4562 ecode6 = SWIG_AsVal_long(obj5, &val6);
4563 if (!SWIG_IsOK(ecode6)) {
4564 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4565 }
4566 arg6 = static_cast< long >(val6);
4567 }
4568 if (obj6) {
4569 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4570 if (!SWIG_IsOK(res7)) {
4571 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4572 }
4573 if (!argp7) {
4574 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4575 }
4576 arg7 = reinterpret_cast< wxValidator * >(argp7);
4577 }
4578 if (obj7) {
4579 {
4580 arg8 = wxString_in_helper(obj7);
4581 if (arg8 == NULL) SWIG_fail;
4582 temp8 = true;
4583 }
4584 }
4585 {
4586 if (!wxPyCheckForApp()) SWIG_fail;
4587 PyThreadState* __tstate = wxPyBeginAllowThreads();
4588 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4589 wxPyEndAllowThreads(__tstate);
4590 if (PyErr_Occurred()) SWIG_fail;
4591 }
4592 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4593 {
4594 if (temp3)
4595 delete arg3;
4596 }
4597 {
4598 if (temp8)
4599 delete arg8;
4600 }
4601 return resultobj;
4602 fail:
4603 {
4604 if (temp3)
4605 delete arg3;
4606 }
4607 {
4608 if (temp8)
4609 delete arg8;
4610 }
4611 return NULL;
4612 }
4613
4614
4615 SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4616 PyObject *resultobj = 0;
4617 wxCheckBox *result = 0 ;
4618
4619 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4620 {
4621 if (!wxPyCheckForApp()) SWIG_fail;
4622 PyThreadState* __tstate = wxPyBeginAllowThreads();
4623 result = (wxCheckBox *)new wxCheckBox();
4624 wxPyEndAllowThreads(__tstate);
4625 if (PyErr_Occurred()) SWIG_fail;
4626 }
4627 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4628 return resultobj;
4629 fail:
4630 return NULL;
4631 }
4632
4633
4634 SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4635 PyObject *resultobj = 0;
4636 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4637 wxWindow *arg2 = (wxWindow *) 0 ;
4638 int arg3 = (int) -1 ;
4639 wxString const &arg4_defvalue = wxPyEmptyString ;
4640 wxString *arg4 = (wxString *) &arg4_defvalue ;
4641 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4642 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4643 wxSize const &arg6_defvalue = wxDefaultSize ;
4644 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4645 long arg7 = (long) 0 ;
4646 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4647 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4648 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4649 wxString *arg9 = (wxString *) &arg9_defvalue ;
4650 bool result;
4651 void *argp1 = 0 ;
4652 int res1 = 0 ;
4653 void *argp2 = 0 ;
4654 int res2 = 0 ;
4655 int val3 ;
4656 int ecode3 = 0 ;
4657 bool temp4 = false ;
4658 wxPoint temp5 ;
4659 wxSize temp6 ;
4660 long val7 ;
4661 int ecode7 = 0 ;
4662 void *argp8 = 0 ;
4663 int res8 = 0 ;
4664 bool temp9 = false ;
4665 PyObject * obj0 = 0 ;
4666 PyObject * obj1 = 0 ;
4667 PyObject * obj2 = 0 ;
4668 PyObject * obj3 = 0 ;
4669 PyObject * obj4 = 0 ;
4670 PyObject * obj5 = 0 ;
4671 PyObject * obj6 = 0 ;
4672 PyObject * obj7 = 0 ;
4673 PyObject * obj8 = 0 ;
4674 char * kwnames[] = {
4675 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4676 };
4677
4678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4680 if (!SWIG_IsOK(res1)) {
4681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4682 }
4683 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4684 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4685 if (!SWIG_IsOK(res2)) {
4686 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4687 }
4688 arg2 = reinterpret_cast< wxWindow * >(argp2);
4689 if (obj2) {
4690 ecode3 = SWIG_AsVal_int(obj2, &val3);
4691 if (!SWIG_IsOK(ecode3)) {
4692 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4693 }
4694 arg3 = static_cast< int >(val3);
4695 }
4696 if (obj3) {
4697 {
4698 arg4 = wxString_in_helper(obj3);
4699 if (arg4 == NULL) SWIG_fail;
4700 temp4 = true;
4701 }
4702 }
4703 if (obj4) {
4704 {
4705 arg5 = &temp5;
4706 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4707 }
4708 }
4709 if (obj5) {
4710 {
4711 arg6 = &temp6;
4712 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4713 }
4714 }
4715 if (obj6) {
4716 ecode7 = SWIG_AsVal_long(obj6, &val7);
4717 if (!SWIG_IsOK(ecode7)) {
4718 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4719 }
4720 arg7 = static_cast< long >(val7);
4721 }
4722 if (obj7) {
4723 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4724 if (!SWIG_IsOK(res8)) {
4725 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4726 }
4727 if (!argp8) {
4728 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4729 }
4730 arg8 = reinterpret_cast< wxValidator * >(argp8);
4731 }
4732 if (obj8) {
4733 {
4734 arg9 = wxString_in_helper(obj8);
4735 if (arg9 == NULL) SWIG_fail;
4736 temp9 = true;
4737 }
4738 }
4739 {
4740 PyThreadState* __tstate = wxPyBeginAllowThreads();
4741 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4742 wxPyEndAllowThreads(__tstate);
4743 if (PyErr_Occurred()) SWIG_fail;
4744 }
4745 {
4746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4747 }
4748 {
4749 if (temp4)
4750 delete arg4;
4751 }
4752 {
4753 if (temp9)
4754 delete arg9;
4755 }
4756 return resultobj;
4757 fail:
4758 {
4759 if (temp4)
4760 delete arg4;
4761 }
4762 {
4763 if (temp9)
4764 delete arg9;
4765 }
4766 return NULL;
4767 }
4768
4769
4770 SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4771 PyObject *resultobj = 0;
4772 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4773 bool result;
4774 void *argp1 = 0 ;
4775 int res1 = 0 ;
4776 PyObject *swig_obj[1] ;
4777
4778 if (!args) SWIG_fail;
4779 swig_obj[0] = args;
4780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4781 if (!SWIG_IsOK(res1)) {
4782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4783 }
4784 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4785 {
4786 PyThreadState* __tstate = wxPyBeginAllowThreads();
4787 result = (bool)(arg1)->GetValue();
4788 wxPyEndAllowThreads(__tstate);
4789 if (PyErr_Occurred()) SWIG_fail;
4790 }
4791 {
4792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4793 }
4794 return resultobj;
4795 fail:
4796 return NULL;
4797 }
4798
4799
4800 SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4801 PyObject *resultobj = 0;
4802 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4803 bool result;
4804 void *argp1 = 0 ;
4805 int res1 = 0 ;
4806 PyObject *swig_obj[1] ;
4807
4808 if (!args) SWIG_fail;
4809 swig_obj[0] = args;
4810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4811 if (!SWIG_IsOK(res1)) {
4812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4813 }
4814 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4815 {
4816 PyThreadState* __tstate = wxPyBeginAllowThreads();
4817 result = (bool)(arg1)->IsChecked();
4818 wxPyEndAllowThreads(__tstate);
4819 if (PyErr_Occurred()) SWIG_fail;
4820 }
4821 {
4822 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4823 }
4824 return resultobj;
4825 fail:
4826 return NULL;
4827 }
4828
4829
4830 SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4831 PyObject *resultobj = 0;
4832 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4833 bool arg2 ;
4834 void *argp1 = 0 ;
4835 int res1 = 0 ;
4836 bool val2 ;
4837 int ecode2 = 0 ;
4838 PyObject * obj0 = 0 ;
4839 PyObject * obj1 = 0 ;
4840 char * kwnames[] = {
4841 (char *) "self",(char *) "state", NULL
4842 };
4843
4844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4846 if (!SWIG_IsOK(res1)) {
4847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4848 }
4849 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4850 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4851 if (!SWIG_IsOK(ecode2)) {
4852 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4853 }
4854 arg2 = static_cast< bool >(val2);
4855 {
4856 PyThreadState* __tstate = wxPyBeginAllowThreads();
4857 (arg1)->SetValue(arg2);
4858 wxPyEndAllowThreads(__tstate);
4859 if (PyErr_Occurred()) SWIG_fail;
4860 }
4861 resultobj = SWIG_Py_Void();
4862 return resultobj;
4863 fail:
4864 return NULL;
4865 }
4866
4867
4868 SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4869 PyObject *resultobj = 0;
4870 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4871 wxCheckBoxState result;
4872 void *argp1 = 0 ;
4873 int res1 = 0 ;
4874 PyObject *swig_obj[1] ;
4875
4876 if (!args) SWIG_fail;
4877 swig_obj[0] = args;
4878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4879 if (!SWIG_IsOK(res1)) {
4880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4881 }
4882 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4883 {
4884 PyThreadState* __tstate = wxPyBeginAllowThreads();
4885 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4886 wxPyEndAllowThreads(__tstate);
4887 if (PyErr_Occurred()) SWIG_fail;
4888 }
4889 resultobj = SWIG_From_int(static_cast< int >(result));
4890 return resultobj;
4891 fail:
4892 return NULL;
4893 }
4894
4895
4896 SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4897 PyObject *resultobj = 0;
4898 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4899 wxCheckBoxState arg2 ;
4900 void *argp1 = 0 ;
4901 int res1 = 0 ;
4902 int val2 ;
4903 int ecode2 = 0 ;
4904 PyObject * obj0 = 0 ;
4905 PyObject * obj1 = 0 ;
4906 char * kwnames[] = {
4907 (char *) "self",(char *) "state", NULL
4908 };
4909
4910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4912 if (!SWIG_IsOK(res1)) {
4913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4914 }
4915 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4916 ecode2 = SWIG_AsVal_int(obj1, &val2);
4917 if (!SWIG_IsOK(ecode2)) {
4918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4919 }
4920 arg2 = static_cast< wxCheckBoxState >(val2);
4921 {
4922 PyThreadState* __tstate = wxPyBeginAllowThreads();
4923 (arg1)->Set3StateValue(arg2);
4924 wxPyEndAllowThreads(__tstate);
4925 if (PyErr_Occurred()) SWIG_fail;
4926 }
4927 resultobj = SWIG_Py_Void();
4928 return resultobj;
4929 fail:
4930 return NULL;
4931 }
4932
4933
4934 SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4935 PyObject *resultobj = 0;
4936 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4937 bool result;
4938 void *argp1 = 0 ;
4939 int res1 = 0 ;
4940 PyObject *swig_obj[1] ;
4941
4942 if (!args) SWIG_fail;
4943 swig_obj[0] = args;
4944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4945 if (!SWIG_IsOK(res1)) {
4946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4947 }
4948 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4949 {
4950 PyThreadState* __tstate = wxPyBeginAllowThreads();
4951 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4952 wxPyEndAllowThreads(__tstate);
4953 if (PyErr_Occurred()) SWIG_fail;
4954 }
4955 {
4956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4957 }
4958 return resultobj;
4959 fail:
4960 return NULL;
4961 }
4962
4963
4964 SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4965 PyObject *resultobj = 0;
4966 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4967 bool result;
4968 void *argp1 = 0 ;
4969 int res1 = 0 ;
4970 PyObject *swig_obj[1] ;
4971
4972 if (!args) SWIG_fail;
4973 swig_obj[0] = args;
4974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4975 if (!SWIG_IsOK(res1)) {
4976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4977 }
4978 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4979 {
4980 PyThreadState* __tstate = wxPyBeginAllowThreads();
4981 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
4982 wxPyEndAllowThreads(__tstate);
4983 if (PyErr_Occurred()) SWIG_fail;
4984 }
4985 {
4986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4987 }
4988 return resultobj;
4989 fail:
4990 return NULL;
4991 }
4992
4993
4994 SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4995 PyObject *resultobj = 0;
4996 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
4997 SwigValueWrapper<wxVisualAttributes > result;
4998 int val1 ;
4999 int ecode1 = 0 ;
5000 PyObject * obj0 = 0 ;
5001 char * kwnames[] = {
5002 (char *) "variant", NULL
5003 };
5004
5005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5006 if (obj0) {
5007 ecode1 = SWIG_AsVal_int(obj0, &val1);
5008 if (!SWIG_IsOK(ecode1)) {
5009 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5010 }
5011 arg1 = static_cast< wxWindowVariant >(val1);
5012 }
5013 {
5014 if (!wxPyCheckForApp()) SWIG_fail;
5015 PyThreadState* __tstate = wxPyBeginAllowThreads();
5016 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5017 wxPyEndAllowThreads(__tstate);
5018 if (PyErr_Occurred()) SWIG_fail;
5019 }
5020 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5021 return resultobj;
5022 fail:
5023 return NULL;
5024 }
5025
5026
5027 SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5028 PyObject *obj;
5029 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5030 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5031 return SWIG_Py_Void();
5032 }
5033
5034 SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5035 return SWIG_Python_InitShadowInstance(args);
5036 }
5037
5038 SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5039 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5040 return 1;
5041 }
5042
5043
5044 SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5045 PyObject *pyobj = 0;
5046
5047 {
5048 #if wxUSE_UNICODE
5049 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5050 #else
5051 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5052 #endif
5053 }
5054 return pyobj;
5055 }
5056
5057
5058 SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5059 PyObject *resultobj = 0;
5060 wxWindow *arg1 = (wxWindow *) 0 ;
5061 int arg2 = (int) -1 ;
5062 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5063 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5064 wxSize const &arg4_defvalue = wxDefaultSize ;
5065 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5066 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5067 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5068 long arg6 = (long) 0 ;
5069 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5070 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5071 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5072 wxString *arg8 = (wxString *) &arg8_defvalue ;
5073 wxChoice *result = 0 ;
5074 void *argp1 = 0 ;
5075 int res1 = 0 ;
5076 int val2 ;
5077 int ecode2 = 0 ;
5078 wxPoint temp3 ;
5079 wxSize temp4 ;
5080 bool temp5 = false ;
5081 long val6 ;
5082 int ecode6 = 0 ;
5083 void *argp7 = 0 ;
5084 int res7 = 0 ;
5085 bool temp8 = false ;
5086 PyObject * obj0 = 0 ;
5087 PyObject * obj1 = 0 ;
5088 PyObject * obj2 = 0 ;
5089 PyObject * obj3 = 0 ;
5090 PyObject * obj4 = 0 ;
5091 PyObject * obj5 = 0 ;
5092 PyObject * obj6 = 0 ;
5093 PyObject * obj7 = 0 ;
5094 char * kwnames[] = {
5095 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5096 };
5097
5098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5100 if (!SWIG_IsOK(res1)) {
5101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5102 }
5103 arg1 = reinterpret_cast< wxWindow * >(argp1);
5104 if (obj1) {
5105 ecode2 = SWIG_AsVal_int(obj1, &val2);
5106 if (!SWIG_IsOK(ecode2)) {
5107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5108 }
5109 arg2 = static_cast< int >(val2);
5110 }
5111 if (obj2) {
5112 {
5113 arg3 = &temp3;
5114 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5115 }
5116 }
5117 if (obj3) {
5118 {
5119 arg4 = &temp4;
5120 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5121 }
5122 }
5123 if (obj4) {
5124 {
5125 if (! PySequence_Check(obj4)) {
5126 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5127 SWIG_fail;
5128 }
5129 arg5 = new wxArrayString;
5130 temp5 = true;
5131 int i, len=PySequence_Length(obj4);
5132 for (i=0; i<len; i++) {
5133 PyObject* item = PySequence_GetItem(obj4, i);
5134 wxString* s = wxString_in_helper(item);
5135 if (PyErr_Occurred()) SWIG_fail;
5136 arg5->Add(*s);
5137 delete s;
5138 Py_DECREF(item);
5139 }
5140 }
5141 }
5142 if (obj5) {
5143 ecode6 = SWIG_AsVal_long(obj5, &val6);
5144 if (!SWIG_IsOK(ecode6)) {
5145 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5146 }
5147 arg6 = static_cast< long >(val6);
5148 }
5149 if (obj6) {
5150 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5151 if (!SWIG_IsOK(res7)) {
5152 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5153 }
5154 if (!argp7) {
5155 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5156 }
5157 arg7 = reinterpret_cast< wxValidator * >(argp7);
5158 }
5159 if (obj7) {
5160 {
5161 arg8 = wxString_in_helper(obj7);
5162 if (arg8 == NULL) SWIG_fail;
5163 temp8 = true;
5164 }
5165 }
5166 {
5167 if (!wxPyCheckForApp()) SWIG_fail;
5168 PyThreadState* __tstate = wxPyBeginAllowThreads();
5169 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5170 wxPyEndAllowThreads(__tstate);
5171 if (PyErr_Occurred()) SWIG_fail;
5172 }
5173 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5174 {
5175 if (temp5) delete arg5;
5176 }
5177 {
5178 if (temp8)
5179 delete arg8;
5180 }
5181 return resultobj;
5182 fail:
5183 {
5184 if (temp5) delete arg5;
5185 }
5186 {
5187 if (temp8)
5188 delete arg8;
5189 }
5190 return NULL;
5191 }
5192
5193
5194 SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5195 PyObject *resultobj = 0;
5196 wxChoice *result = 0 ;
5197
5198 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5199 {
5200 if (!wxPyCheckForApp()) SWIG_fail;
5201 PyThreadState* __tstate = wxPyBeginAllowThreads();
5202 result = (wxChoice *)new wxChoice();
5203 wxPyEndAllowThreads(__tstate);
5204 if (PyErr_Occurred()) SWIG_fail;
5205 }
5206 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5207 return resultobj;
5208 fail:
5209 return NULL;
5210 }
5211
5212
5213 SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5214 PyObject *resultobj = 0;
5215 wxChoice *arg1 = (wxChoice *) 0 ;
5216 wxWindow *arg2 = (wxWindow *) 0 ;
5217 int arg3 = (int) -1 ;
5218 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5219 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5220 wxSize const &arg5_defvalue = wxDefaultSize ;
5221 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5222 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5223 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5224 long arg7 = (long) 0 ;
5225 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5226 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5227 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5228 wxString *arg9 = (wxString *) &arg9_defvalue ;
5229 bool result;
5230 void *argp1 = 0 ;
5231 int res1 = 0 ;
5232 void *argp2 = 0 ;
5233 int res2 = 0 ;
5234 int val3 ;
5235 int ecode3 = 0 ;
5236 wxPoint temp4 ;
5237 wxSize temp5 ;
5238 bool temp6 = false ;
5239 long val7 ;
5240 int ecode7 = 0 ;
5241 void *argp8 = 0 ;
5242 int res8 = 0 ;
5243 bool temp9 = false ;
5244 PyObject * obj0 = 0 ;
5245 PyObject * obj1 = 0 ;
5246 PyObject * obj2 = 0 ;
5247 PyObject * obj3 = 0 ;
5248 PyObject * obj4 = 0 ;
5249 PyObject * obj5 = 0 ;
5250 PyObject * obj6 = 0 ;
5251 PyObject * obj7 = 0 ;
5252 PyObject * obj8 = 0 ;
5253 char * kwnames[] = {
5254 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5255 };
5256
5257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5259 if (!SWIG_IsOK(res1)) {
5260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5261 }
5262 arg1 = reinterpret_cast< wxChoice * >(argp1);
5263 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5264 if (!SWIG_IsOK(res2)) {
5265 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5266 }
5267 arg2 = reinterpret_cast< wxWindow * >(argp2);
5268 if (obj2) {
5269 ecode3 = SWIG_AsVal_int(obj2, &val3);
5270 if (!SWIG_IsOK(ecode3)) {
5271 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5272 }
5273 arg3 = static_cast< int >(val3);
5274 }
5275 if (obj3) {
5276 {
5277 arg4 = &temp4;
5278 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5279 }
5280 }
5281 if (obj4) {
5282 {
5283 arg5 = &temp5;
5284 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5285 }
5286 }
5287 if (obj5) {
5288 {
5289 if (! PySequence_Check(obj5)) {
5290 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5291 SWIG_fail;
5292 }
5293 arg6 = new wxArrayString;
5294 temp6 = true;
5295 int i, len=PySequence_Length(obj5);
5296 for (i=0; i<len; i++) {
5297 PyObject* item = PySequence_GetItem(obj5, i);
5298 wxString* s = wxString_in_helper(item);
5299 if (PyErr_Occurred()) SWIG_fail;
5300 arg6->Add(*s);
5301 delete s;
5302 Py_DECREF(item);
5303 }
5304 }
5305 }
5306 if (obj6) {
5307 ecode7 = SWIG_AsVal_long(obj6, &val7);
5308 if (!SWIG_IsOK(ecode7)) {
5309 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5310 }
5311 arg7 = static_cast< long >(val7);
5312 }
5313 if (obj7) {
5314 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5315 if (!SWIG_IsOK(res8)) {
5316 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5317 }
5318 if (!argp8) {
5319 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5320 }
5321 arg8 = reinterpret_cast< wxValidator * >(argp8);
5322 }
5323 if (obj8) {
5324 {
5325 arg9 = wxString_in_helper(obj8);
5326 if (arg9 == NULL) SWIG_fail;
5327 temp9 = true;
5328 }
5329 }
5330 {
5331 PyThreadState* __tstate = wxPyBeginAllowThreads();
5332 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5333 wxPyEndAllowThreads(__tstate);
5334 if (PyErr_Occurred()) SWIG_fail;
5335 }
5336 {
5337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5338 }
5339 {
5340 if (temp6) delete arg6;
5341 }
5342 {
5343 if (temp9)
5344 delete arg9;
5345 }
5346 return resultobj;
5347 fail:
5348 {
5349 if (temp6) delete arg6;
5350 }
5351 {
5352 if (temp9)
5353 delete arg9;
5354 }
5355 return NULL;
5356 }
5357
5358
5359 SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5360 PyObject *resultobj = 0;
5361 wxChoice *arg1 = (wxChoice *) 0 ;
5362 int result;
5363 void *argp1 = 0 ;
5364 int res1 = 0 ;
5365 PyObject *swig_obj[1] ;
5366
5367 if (!args) SWIG_fail;
5368 swig_obj[0] = args;
5369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5370 if (!SWIG_IsOK(res1)) {
5371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5372 }
5373 arg1 = reinterpret_cast< wxChoice * >(argp1);
5374 {
5375 PyThreadState* __tstate = wxPyBeginAllowThreads();
5376 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5377 wxPyEndAllowThreads(__tstate);
5378 if (PyErr_Occurred()) SWIG_fail;
5379 }
5380 resultobj = SWIG_From_int(static_cast< int >(result));
5381 return resultobj;
5382 fail:
5383 return NULL;
5384 }
5385
5386
5387 SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5388 PyObject *resultobj = 0;
5389 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5390 SwigValueWrapper<wxVisualAttributes > result;
5391 int val1 ;
5392 int ecode1 = 0 ;
5393 PyObject * obj0 = 0 ;
5394 char * kwnames[] = {
5395 (char *) "variant", NULL
5396 };
5397
5398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5399 if (obj0) {
5400 ecode1 = SWIG_AsVal_int(obj0, &val1);
5401 if (!SWIG_IsOK(ecode1)) {
5402 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5403 }
5404 arg1 = static_cast< wxWindowVariant >(val1);
5405 }
5406 {
5407 if (!wxPyCheckForApp()) SWIG_fail;
5408 PyThreadState* __tstate = wxPyBeginAllowThreads();
5409 result = wxChoice::GetClassDefaultAttributes(arg1);
5410 wxPyEndAllowThreads(__tstate);
5411 if (PyErr_Occurred()) SWIG_fail;
5412 }
5413 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5414 return resultobj;
5415 fail:
5416 return NULL;
5417 }
5418
5419
5420 SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5421 PyObject *obj;
5422 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5423 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5424 return SWIG_Py_Void();
5425 }
5426
5427 SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5428 return SWIG_Python_InitShadowInstance(args);
5429 }
5430
5431 SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5432 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5433 return 1;
5434 }
5435
5436
5437 SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5438 PyObject *pyobj = 0;
5439
5440 {
5441 #if wxUSE_UNICODE
5442 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5443 #else
5444 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5445 #endif
5446 }
5447 return pyobj;
5448 }
5449
5450
5451 SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5452 PyObject *resultobj = 0;
5453 wxWindow *arg1 = (wxWindow *) 0 ;
5454 int arg2 = (int) -1 ;
5455 wxString const &arg3_defvalue = wxPyEmptyString ;
5456 wxString *arg3 = (wxString *) &arg3_defvalue ;
5457 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5458 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5459 wxSize const &arg5_defvalue = wxDefaultSize ;
5460 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5461 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5462 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5463 long arg7 = (long) 0 ;
5464 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5465 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5466 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5467 wxString *arg9 = (wxString *) &arg9_defvalue ;
5468 wxComboBox *result = 0 ;
5469 void *argp1 = 0 ;
5470 int res1 = 0 ;
5471 int val2 ;
5472 int ecode2 = 0 ;
5473 bool temp3 = false ;
5474 wxPoint temp4 ;
5475 wxSize temp5 ;
5476 bool temp6 = false ;
5477 long val7 ;
5478 int ecode7 = 0 ;
5479 void *argp8 = 0 ;
5480 int res8 = 0 ;
5481 bool temp9 = false ;
5482 PyObject * obj0 = 0 ;
5483 PyObject * obj1 = 0 ;
5484 PyObject * obj2 = 0 ;
5485 PyObject * obj3 = 0 ;
5486 PyObject * obj4 = 0 ;
5487 PyObject * obj5 = 0 ;
5488 PyObject * obj6 = 0 ;
5489 PyObject * obj7 = 0 ;
5490 PyObject * obj8 = 0 ;
5491 char * kwnames[] = {
5492 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5493 };
5494
5495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5497 if (!SWIG_IsOK(res1)) {
5498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5499 }
5500 arg1 = reinterpret_cast< wxWindow * >(argp1);
5501 if (obj1) {
5502 ecode2 = SWIG_AsVal_int(obj1, &val2);
5503 if (!SWIG_IsOK(ecode2)) {
5504 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5505 }
5506 arg2 = static_cast< int >(val2);
5507 }
5508 if (obj2) {
5509 {
5510 arg3 = wxString_in_helper(obj2);
5511 if (arg3 == NULL) SWIG_fail;
5512 temp3 = true;
5513 }
5514 }
5515 if (obj3) {
5516 {
5517 arg4 = &temp4;
5518 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5519 }
5520 }
5521 if (obj4) {
5522 {
5523 arg5 = &temp5;
5524 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5525 }
5526 }
5527 if (obj5) {
5528 {
5529 if (! PySequence_Check(obj5)) {
5530 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5531 SWIG_fail;
5532 }
5533 arg6 = new wxArrayString;
5534 temp6 = true;
5535 int i, len=PySequence_Length(obj5);
5536 for (i=0; i<len; i++) {
5537 PyObject* item = PySequence_GetItem(obj5, i);
5538 wxString* s = wxString_in_helper(item);
5539 if (PyErr_Occurred()) SWIG_fail;
5540 arg6->Add(*s);
5541 delete s;
5542 Py_DECREF(item);
5543 }
5544 }
5545 }
5546 if (obj6) {
5547 ecode7 = SWIG_AsVal_long(obj6, &val7);
5548 if (!SWIG_IsOK(ecode7)) {
5549 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5550 }
5551 arg7 = static_cast< long >(val7);
5552 }
5553 if (obj7) {
5554 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5555 if (!SWIG_IsOK(res8)) {
5556 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5557 }
5558 if (!argp8) {
5559 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5560 }
5561 arg8 = reinterpret_cast< wxValidator * >(argp8);
5562 }
5563 if (obj8) {
5564 {
5565 arg9 = wxString_in_helper(obj8);
5566 if (arg9 == NULL) SWIG_fail;
5567 temp9 = true;
5568 }
5569 }
5570 {
5571 if (!wxPyCheckForApp()) SWIG_fail;
5572 PyThreadState* __tstate = wxPyBeginAllowThreads();
5573 result = (wxComboBox *)new wxComboBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5574 wxPyEndAllowThreads(__tstate);
5575 if (PyErr_Occurred()) SWIG_fail;
5576 }
5577 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5578 {
5579 if (temp3)
5580 delete arg3;
5581 }
5582 {
5583 if (temp6) delete arg6;
5584 }
5585 {
5586 if (temp9)
5587 delete arg9;
5588 }
5589 return resultobj;
5590 fail:
5591 {
5592 if (temp3)
5593 delete arg3;
5594 }
5595 {
5596 if (temp6) delete arg6;
5597 }
5598 {
5599 if (temp9)
5600 delete arg9;
5601 }
5602 return NULL;
5603 }
5604
5605
5606 SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5607 PyObject *resultobj = 0;
5608 wxComboBox *result = 0 ;
5609
5610 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5611 {
5612 if (!wxPyCheckForApp()) SWIG_fail;
5613 PyThreadState* __tstate = wxPyBeginAllowThreads();
5614 result = (wxComboBox *)new wxComboBox();
5615 wxPyEndAllowThreads(__tstate);
5616 if (PyErr_Occurred()) SWIG_fail;
5617 }
5618 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5619 return resultobj;
5620 fail:
5621 return NULL;
5622 }
5623
5624
5625 SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5626 PyObject *resultobj = 0;
5627 wxComboBox *arg1 = (wxComboBox *) 0 ;
5628 wxWindow *arg2 = (wxWindow *) 0 ;
5629 int arg3 = (int) -1 ;
5630 wxString const &arg4_defvalue = wxPyEmptyString ;
5631 wxString *arg4 = (wxString *) &arg4_defvalue ;
5632 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5633 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5634 wxSize const &arg6_defvalue = wxDefaultSize ;
5635 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5636 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5637 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5638 long arg8 = (long) 0 ;
5639 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5640 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5641 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5642 wxString *arg10 = (wxString *) &arg10_defvalue ;
5643 bool result;
5644 void *argp1 = 0 ;
5645 int res1 = 0 ;
5646 void *argp2 = 0 ;
5647 int res2 = 0 ;
5648 int val3 ;
5649 int ecode3 = 0 ;
5650 bool temp4 = false ;
5651 wxPoint temp5 ;
5652 wxSize temp6 ;
5653 bool temp7 = false ;
5654 long val8 ;
5655 int ecode8 = 0 ;
5656 void *argp9 = 0 ;
5657 int res9 = 0 ;
5658 bool temp10 = false ;
5659 PyObject * obj0 = 0 ;
5660 PyObject * obj1 = 0 ;
5661 PyObject * obj2 = 0 ;
5662 PyObject * obj3 = 0 ;
5663 PyObject * obj4 = 0 ;
5664 PyObject * obj5 = 0 ;
5665 PyObject * obj6 = 0 ;
5666 PyObject * obj7 = 0 ;
5667 PyObject * obj8 = 0 ;
5668 PyObject * obj9 = 0 ;
5669 char * kwnames[] = {
5670 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5671 };
5672
5673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5675 if (!SWIG_IsOK(res1)) {
5676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5677 }
5678 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5679 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5680 if (!SWIG_IsOK(res2)) {
5681 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5682 }
5683 arg2 = reinterpret_cast< wxWindow * >(argp2);
5684 if (obj2) {
5685 ecode3 = SWIG_AsVal_int(obj2, &val3);
5686 if (!SWIG_IsOK(ecode3)) {
5687 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5688 }
5689 arg3 = static_cast< int >(val3);
5690 }
5691 if (obj3) {
5692 {
5693 arg4 = wxString_in_helper(obj3);
5694 if (arg4 == NULL) SWIG_fail;
5695 temp4 = true;
5696 }
5697 }
5698 if (obj4) {
5699 {
5700 arg5 = &temp5;
5701 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5702 }
5703 }
5704 if (obj5) {
5705 {
5706 arg6 = &temp6;
5707 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5708 }
5709 }
5710 if (obj6) {
5711 {
5712 if (! PySequence_Check(obj6)) {
5713 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5714 SWIG_fail;
5715 }
5716 arg7 = new wxArrayString;
5717 temp7 = true;
5718 int i, len=PySequence_Length(obj6);
5719 for (i=0; i<len; i++) {
5720 PyObject* item = PySequence_GetItem(obj6, i);
5721 wxString* s = wxString_in_helper(item);
5722 if (PyErr_Occurred()) SWIG_fail;
5723 arg7->Add(*s);
5724 delete s;
5725 Py_DECREF(item);
5726 }
5727 }
5728 }
5729 if (obj7) {
5730 ecode8 = SWIG_AsVal_long(obj7, &val8);
5731 if (!SWIG_IsOK(ecode8)) {
5732 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5733 }
5734 arg8 = static_cast< long >(val8);
5735 }
5736 if (obj8) {
5737 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5738 if (!SWIG_IsOK(res9)) {
5739 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5740 }
5741 if (!argp9) {
5742 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5743 }
5744 arg9 = reinterpret_cast< wxValidator * >(argp9);
5745 }
5746 if (obj9) {
5747 {
5748 arg10 = wxString_in_helper(obj9);
5749 if (arg10 == NULL) SWIG_fail;
5750 temp10 = true;
5751 }
5752 }
5753 {
5754 PyThreadState* __tstate = wxPyBeginAllowThreads();
5755 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
5756 wxPyEndAllowThreads(__tstate);
5757 if (PyErr_Occurred()) SWIG_fail;
5758 }
5759 {
5760 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5761 }
5762 {
5763 if (temp4)
5764 delete arg4;
5765 }
5766 {
5767 if (temp7) delete arg7;
5768 }
5769 {
5770 if (temp10)
5771 delete arg10;
5772 }
5773 return resultobj;
5774 fail:
5775 {
5776 if (temp4)
5777 delete arg4;
5778 }
5779 {
5780 if (temp7) delete arg7;
5781 }
5782 {
5783 if (temp10)
5784 delete arg10;
5785 }
5786 return NULL;
5787 }
5788
5789
5790 SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5791 PyObject *resultobj = 0;
5792 wxComboBox *arg1 = (wxComboBox *) 0 ;
5793 wxString result;
5794 void *argp1 = 0 ;
5795 int res1 = 0 ;
5796 PyObject *swig_obj[1] ;
5797
5798 if (!args) SWIG_fail;
5799 swig_obj[0] = args;
5800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5801 if (!SWIG_IsOK(res1)) {
5802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5803 }
5804 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5805 {
5806 PyThreadState* __tstate = wxPyBeginAllowThreads();
5807 result = ((wxComboBox const *)arg1)->GetValue();
5808 wxPyEndAllowThreads(__tstate);
5809 if (PyErr_Occurred()) SWIG_fail;
5810 }
5811 {
5812 #if wxUSE_UNICODE
5813 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5814 #else
5815 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5816 #endif
5817 }
5818 return resultobj;
5819 fail:
5820 return NULL;
5821 }
5822
5823
5824 SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5825 PyObject *resultobj = 0;
5826 wxComboBox *arg1 = (wxComboBox *) 0 ;
5827 wxString *arg2 = 0 ;
5828 void *argp1 = 0 ;
5829 int res1 = 0 ;
5830 bool temp2 = false ;
5831 PyObject * obj0 = 0 ;
5832 PyObject * obj1 = 0 ;
5833 char * kwnames[] = {
5834 (char *) "self",(char *) "value", NULL
5835 };
5836
5837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5839 if (!SWIG_IsOK(res1)) {
5840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5841 }
5842 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5843 {
5844 arg2 = wxString_in_helper(obj1);
5845 if (arg2 == NULL) SWIG_fail;
5846 temp2 = true;
5847 }
5848 {
5849 PyThreadState* __tstate = wxPyBeginAllowThreads();
5850 (arg1)->SetValue((wxString const &)*arg2);
5851 wxPyEndAllowThreads(__tstate);
5852 if (PyErr_Occurred()) SWIG_fail;
5853 }
5854 resultobj = SWIG_Py_Void();
5855 {
5856 if (temp2)
5857 delete arg2;
5858 }
5859 return resultobj;
5860 fail:
5861 {
5862 if (temp2)
5863 delete arg2;
5864 }
5865 return NULL;
5866 }
5867
5868
5869 SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5870 PyObject *resultobj = 0;
5871 wxComboBox *arg1 = (wxComboBox *) 0 ;
5872 void *argp1 = 0 ;
5873 int res1 = 0 ;
5874 PyObject *swig_obj[1] ;
5875
5876 if (!args) SWIG_fail;
5877 swig_obj[0] = args;
5878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5879 if (!SWIG_IsOK(res1)) {
5880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5881 }
5882 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5883 {
5884 PyThreadState* __tstate = wxPyBeginAllowThreads();
5885 (arg1)->Copy();
5886 wxPyEndAllowThreads(__tstate);
5887 if (PyErr_Occurred()) SWIG_fail;
5888 }
5889 resultobj = SWIG_Py_Void();
5890 return resultobj;
5891 fail:
5892 return NULL;
5893 }
5894
5895
5896 SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5897 PyObject *resultobj = 0;
5898 wxComboBox *arg1 = (wxComboBox *) 0 ;
5899 void *argp1 = 0 ;
5900 int res1 = 0 ;
5901 PyObject *swig_obj[1] ;
5902
5903 if (!args) SWIG_fail;
5904 swig_obj[0] = args;
5905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5906 if (!SWIG_IsOK(res1)) {
5907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5908 }
5909 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5910 {
5911 PyThreadState* __tstate = wxPyBeginAllowThreads();
5912 (arg1)->Cut();
5913 wxPyEndAllowThreads(__tstate);
5914 if (PyErr_Occurred()) SWIG_fail;
5915 }
5916 resultobj = SWIG_Py_Void();
5917 return resultobj;
5918 fail:
5919 return NULL;
5920 }
5921
5922
5923 SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5924 PyObject *resultobj = 0;
5925 wxComboBox *arg1 = (wxComboBox *) 0 ;
5926 void *argp1 = 0 ;
5927 int res1 = 0 ;
5928 PyObject *swig_obj[1] ;
5929
5930 if (!args) SWIG_fail;
5931 swig_obj[0] = args;
5932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5933 if (!SWIG_IsOK(res1)) {
5934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5935 }
5936 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5937 {
5938 PyThreadState* __tstate = wxPyBeginAllowThreads();
5939 (arg1)->Paste();
5940 wxPyEndAllowThreads(__tstate);
5941 if (PyErr_Occurred()) SWIG_fail;
5942 }
5943 resultobj = SWIG_Py_Void();
5944 return resultobj;
5945 fail:
5946 return NULL;
5947 }
5948
5949
5950 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5951 PyObject *resultobj = 0;
5952 wxComboBox *arg1 = (wxComboBox *) 0 ;
5953 long arg2 ;
5954 void *argp1 = 0 ;
5955 int res1 = 0 ;
5956 long val2 ;
5957 int ecode2 = 0 ;
5958 PyObject * obj0 = 0 ;
5959 PyObject * obj1 = 0 ;
5960 char * kwnames[] = {
5961 (char *) "self",(char *) "pos", NULL
5962 };
5963
5964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5966 if (!SWIG_IsOK(res1)) {
5967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
5968 }
5969 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5970 ecode2 = SWIG_AsVal_long(obj1, &val2);
5971 if (!SWIG_IsOK(ecode2)) {
5972 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
5973 }
5974 arg2 = static_cast< long >(val2);
5975 {
5976 PyThreadState* __tstate = wxPyBeginAllowThreads();
5977 (arg1)->SetInsertionPoint(arg2);
5978 wxPyEndAllowThreads(__tstate);
5979 if (PyErr_Occurred()) SWIG_fail;
5980 }
5981 resultobj = SWIG_Py_Void();
5982 return resultobj;
5983 fail:
5984 return NULL;
5985 }
5986
5987
5988 SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5989 PyObject *resultobj = 0;
5990 wxComboBox *arg1 = (wxComboBox *) 0 ;
5991 long result;
5992 void *argp1 = 0 ;
5993 int res1 = 0 ;
5994 PyObject *swig_obj[1] ;
5995
5996 if (!args) SWIG_fail;
5997 swig_obj[0] = args;
5998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5999 if (!SWIG_IsOK(res1)) {
6000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6001 }
6002 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6003 {
6004 PyThreadState* __tstate = wxPyBeginAllowThreads();
6005 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6006 wxPyEndAllowThreads(__tstate);
6007 if (PyErr_Occurred()) SWIG_fail;
6008 }
6009 resultobj = SWIG_From_long(static_cast< long >(result));
6010 return resultobj;
6011 fail:
6012 return NULL;
6013 }
6014
6015
6016 SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6017 PyObject *resultobj = 0;
6018 wxComboBox *arg1 = (wxComboBox *) 0 ;
6019 long result;
6020 void *argp1 = 0 ;
6021 int res1 = 0 ;
6022 PyObject *swig_obj[1] ;
6023
6024 if (!args) SWIG_fail;
6025 swig_obj[0] = args;
6026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6027 if (!SWIG_IsOK(res1)) {
6028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6029 }
6030 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6031 {
6032 PyThreadState* __tstate = wxPyBeginAllowThreads();
6033 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6034 wxPyEndAllowThreads(__tstate);
6035 if (PyErr_Occurred()) SWIG_fail;
6036 }
6037 resultobj = SWIG_From_long(static_cast< long >(result));
6038 return resultobj;
6039 fail:
6040 return NULL;
6041 }
6042
6043
6044 SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6045 PyObject *resultobj = 0;
6046 wxComboBox *arg1 = (wxComboBox *) 0 ;
6047 long arg2 ;
6048 long arg3 ;
6049 wxString *arg4 = 0 ;
6050 void *argp1 = 0 ;
6051 int res1 = 0 ;
6052 long val2 ;
6053 int ecode2 = 0 ;
6054 long val3 ;
6055 int ecode3 = 0 ;
6056 bool temp4 = false ;
6057 PyObject * obj0 = 0 ;
6058 PyObject * obj1 = 0 ;
6059 PyObject * obj2 = 0 ;
6060 PyObject * obj3 = 0 ;
6061 char * kwnames[] = {
6062 (char *) "self",(char *) "_from",(char *) "to",(char *) "value", NULL
6063 };
6064
6065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6067 if (!SWIG_IsOK(res1)) {
6068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6069 }
6070 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6071 ecode2 = SWIG_AsVal_long(obj1, &val2);
6072 if (!SWIG_IsOK(ecode2)) {
6073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6074 }
6075 arg2 = static_cast< long >(val2);
6076 ecode3 = SWIG_AsVal_long(obj2, &val3);
6077 if (!SWIG_IsOK(ecode3)) {
6078 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6079 }
6080 arg3 = static_cast< long >(val3);
6081 {
6082 arg4 = wxString_in_helper(obj3);
6083 if (arg4 == NULL) SWIG_fail;
6084 temp4 = true;
6085 }
6086 {
6087 PyThreadState* __tstate = wxPyBeginAllowThreads();
6088 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6089 wxPyEndAllowThreads(__tstate);
6090 if (PyErr_Occurred()) SWIG_fail;
6091 }
6092 resultobj = SWIG_Py_Void();
6093 {
6094 if (temp4)
6095 delete arg4;
6096 }
6097 return resultobj;
6098 fail:
6099 {
6100 if (temp4)
6101 delete arg4;
6102 }
6103 return NULL;
6104 }
6105
6106
6107 SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6108 PyObject *resultobj = 0;
6109 wxComboBox *arg1 = (wxComboBox *) 0 ;
6110 long arg2 ;
6111 long arg3 ;
6112 void *argp1 = 0 ;
6113 int res1 = 0 ;
6114 long val2 ;
6115 int ecode2 = 0 ;
6116 long val3 ;
6117 int ecode3 = 0 ;
6118 PyObject * obj0 = 0 ;
6119 PyObject * obj1 = 0 ;
6120 PyObject * obj2 = 0 ;
6121 char * kwnames[] = {
6122 (char *) "self",(char *) "_from",(char *) "to", NULL
6123 };
6124
6125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6127 if (!SWIG_IsOK(res1)) {
6128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6129 }
6130 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6131 ecode2 = SWIG_AsVal_long(obj1, &val2);
6132 if (!SWIG_IsOK(ecode2)) {
6133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6134 }
6135 arg2 = static_cast< long >(val2);
6136 ecode3 = SWIG_AsVal_long(obj2, &val3);
6137 if (!SWIG_IsOK(ecode3)) {
6138 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6139 }
6140 arg3 = static_cast< long >(val3);
6141 {
6142 PyThreadState* __tstate = wxPyBeginAllowThreads();
6143 (arg1)->SetSelection(arg2,arg3);
6144 wxPyEndAllowThreads(__tstate);
6145 if (PyErr_Occurred()) SWIG_fail;
6146 }
6147 resultobj = SWIG_Py_Void();
6148 return resultobj;
6149 fail:
6150 return NULL;
6151 }
6152
6153
6154 SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6155 PyObject *resultobj = 0;
6156 wxComboBox *arg1 = (wxComboBox *) 0 ;
6157 long *arg2 = (long *) 0 ;
6158 long *arg3 = (long *) 0 ;
6159 void *argp1 = 0 ;
6160 int res1 = 0 ;
6161 long temp2 ;
6162 int res2 = SWIG_TMPOBJ ;
6163 long temp3 ;
6164 int res3 = SWIG_TMPOBJ ;
6165 PyObject *swig_obj[1] ;
6166
6167 arg2 = &temp2;
6168 arg3 = &temp3;
6169 if (!args) SWIG_fail;
6170 swig_obj[0] = args;
6171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6172 if (!SWIG_IsOK(res1)) {
6173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6174 }
6175 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6176 {
6177 PyThreadState* __tstate = wxPyBeginAllowThreads();
6178 (arg1)->GetSelection(arg2,arg3);
6179 wxPyEndAllowThreads(__tstate);
6180 if (PyErr_Occurred()) SWIG_fail;
6181 }
6182 resultobj = SWIG_Py_Void();
6183 if (SWIG_IsTmpObj(res2)) {
6184 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6185 } else {
6186 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6187 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6188 }
6189 if (SWIG_IsTmpObj(res3)) {
6190 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6191 } else {
6192 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6193 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6194 }
6195 return resultobj;
6196 fail:
6197 return NULL;
6198 }
6199
6200
6201 SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6202 PyObject *resultobj = 0;
6203 wxComboBox *arg1 = (wxComboBox *) 0 ;
6204 int result;
6205 void *argp1 = 0 ;
6206 int res1 = 0 ;
6207 PyObject *swig_obj[1] ;
6208
6209 if (!args) SWIG_fail;
6210 swig_obj[0] = args;
6211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6212 if (!SWIG_IsOK(res1)) {
6213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6214 }
6215 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6216 {
6217 PyThreadState* __tstate = wxPyBeginAllowThreads();
6218 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6219 wxPyEndAllowThreads(__tstate);
6220 if (PyErr_Occurred()) SWIG_fail;
6221 }
6222 resultobj = SWIG_From_int(static_cast< int >(result));
6223 return resultobj;
6224 fail:
6225 return NULL;
6226 }
6227
6228
6229 SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6230 PyObject *resultobj = 0;
6231 wxComboBox *arg1 = (wxComboBox *) 0 ;
6232 wxString *arg2 = 0 ;
6233 bool result;
6234 void *argp1 = 0 ;
6235 int res1 = 0 ;
6236 bool temp2 = false ;
6237 PyObject * obj0 = 0 ;
6238 PyObject * obj1 = 0 ;
6239 char * kwnames[] = {
6240 (char *) "self",(char *) "string", NULL
6241 };
6242
6243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6245 if (!SWIG_IsOK(res1)) {
6246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6247 }
6248 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6249 {
6250 arg2 = wxString_in_helper(obj1);
6251 if (arg2 == NULL) SWIG_fail;
6252 temp2 = true;
6253 }
6254 {
6255 PyThreadState* __tstate = wxPyBeginAllowThreads();
6256 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6257 wxPyEndAllowThreads(__tstate);
6258 if (PyErr_Occurred()) SWIG_fail;
6259 }
6260 {
6261 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6262 }
6263 {
6264 if (temp2)
6265 delete arg2;
6266 }
6267 return resultobj;
6268 fail:
6269 {
6270 if (temp2)
6271 delete arg2;
6272 }
6273 return NULL;
6274 }
6275
6276
6277 SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6278 PyObject *resultobj = 0;
6279 wxComboBox *arg1 = (wxComboBox *) 0 ;
6280 bool arg2 ;
6281 void *argp1 = 0 ;
6282 int res1 = 0 ;
6283 bool val2 ;
6284 int ecode2 = 0 ;
6285 PyObject * obj0 = 0 ;
6286 PyObject * obj1 = 0 ;
6287 char * kwnames[] = {
6288 (char *) "self",(char *) "editable", NULL
6289 };
6290
6291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6293 if (!SWIG_IsOK(res1)) {
6294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6295 }
6296 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6297 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6298 if (!SWIG_IsOK(ecode2)) {
6299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6300 }
6301 arg2 = static_cast< bool >(val2);
6302 {
6303 PyThreadState* __tstate = wxPyBeginAllowThreads();
6304 (arg1)->SetEditable(arg2);
6305 wxPyEndAllowThreads(__tstate);
6306 if (PyErr_Occurred()) SWIG_fail;
6307 }
6308 resultobj = SWIG_Py_Void();
6309 return resultobj;
6310 fail:
6311 return NULL;
6312 }
6313
6314
6315 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6316 PyObject *resultobj = 0;
6317 wxComboBox *arg1 = (wxComboBox *) 0 ;
6318 void *argp1 = 0 ;
6319 int res1 = 0 ;
6320 PyObject *swig_obj[1] ;
6321
6322 if (!args) SWIG_fail;
6323 swig_obj[0] = args;
6324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6325 if (!SWIG_IsOK(res1)) {
6326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6327 }
6328 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6329 {
6330 PyThreadState* __tstate = wxPyBeginAllowThreads();
6331 (arg1)->SetInsertionPointEnd();
6332 wxPyEndAllowThreads(__tstate);
6333 if (PyErr_Occurred()) SWIG_fail;
6334 }
6335 resultobj = SWIG_Py_Void();
6336 return resultobj;
6337 fail:
6338 return NULL;
6339 }
6340
6341
6342 SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6343 PyObject *resultobj = 0;
6344 wxComboBox *arg1 = (wxComboBox *) 0 ;
6345 long arg2 ;
6346 long arg3 ;
6347 void *argp1 = 0 ;
6348 int res1 = 0 ;
6349 long val2 ;
6350 int ecode2 = 0 ;
6351 long val3 ;
6352 int ecode3 = 0 ;
6353 PyObject * obj0 = 0 ;
6354 PyObject * obj1 = 0 ;
6355 PyObject * obj2 = 0 ;
6356 char * kwnames[] = {
6357 (char *) "self",(char *) "_from",(char *) "to", NULL
6358 };
6359
6360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6362 if (!SWIG_IsOK(res1)) {
6363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6364 }
6365 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6366 ecode2 = SWIG_AsVal_long(obj1, &val2);
6367 if (!SWIG_IsOK(ecode2)) {
6368 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6369 }
6370 arg2 = static_cast< long >(val2);
6371 ecode3 = SWIG_AsVal_long(obj2, &val3);
6372 if (!SWIG_IsOK(ecode3)) {
6373 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6374 }
6375 arg3 = static_cast< long >(val3);
6376 {
6377 PyThreadState* __tstate = wxPyBeginAllowThreads();
6378 (arg1)->Remove(arg2,arg3);
6379 wxPyEndAllowThreads(__tstate);
6380 if (PyErr_Occurred()) SWIG_fail;
6381 }
6382 resultobj = SWIG_Py_Void();
6383 return resultobj;
6384 fail:
6385 return NULL;
6386 }
6387
6388
6389 SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6390 PyObject *resultobj = 0;
6391 wxComboBox *arg1 = (wxComboBox *) 0 ;
6392 bool result;
6393 void *argp1 = 0 ;
6394 int res1 = 0 ;
6395 PyObject *swig_obj[1] ;
6396
6397 if (!args) SWIG_fail;
6398 swig_obj[0] = args;
6399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6400 if (!SWIG_IsOK(res1)) {
6401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6402 }
6403 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6404 {
6405 PyThreadState* __tstate = wxPyBeginAllowThreads();
6406 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6407 wxPyEndAllowThreads(__tstate);
6408 if (PyErr_Occurred()) SWIG_fail;
6409 }
6410 {
6411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6412 }
6413 return resultobj;
6414 fail:
6415 return NULL;
6416 }
6417
6418
6419 SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6420 PyObject *resultobj = 0;
6421 wxComboBox *arg1 = (wxComboBox *) 0 ;
6422 void *argp1 = 0 ;
6423 int res1 = 0 ;
6424 PyObject *swig_obj[1] ;
6425
6426 if (!args) SWIG_fail;
6427 swig_obj[0] = args;
6428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6429 if (!SWIG_IsOK(res1)) {
6430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6431 }
6432 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6433 {
6434 PyThreadState* __tstate = wxPyBeginAllowThreads();
6435 (arg1)->Undo();
6436 wxPyEndAllowThreads(__tstate);
6437 if (PyErr_Occurred()) SWIG_fail;
6438 }
6439 resultobj = SWIG_Py_Void();
6440 return resultobj;
6441 fail:
6442 return NULL;
6443 }
6444
6445
6446 SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6447 PyObject *resultobj = 0;
6448 wxComboBox *arg1 = (wxComboBox *) 0 ;
6449 void *argp1 = 0 ;
6450 int res1 = 0 ;
6451 PyObject *swig_obj[1] ;
6452
6453 if (!args) SWIG_fail;
6454 swig_obj[0] = args;
6455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6456 if (!SWIG_IsOK(res1)) {
6457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6458 }
6459 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6460 {
6461 PyThreadState* __tstate = wxPyBeginAllowThreads();
6462 (arg1)->Redo();
6463 wxPyEndAllowThreads(__tstate);
6464 if (PyErr_Occurred()) SWIG_fail;
6465 }
6466 resultobj = SWIG_Py_Void();
6467 return resultobj;
6468 fail:
6469 return NULL;
6470 }
6471
6472
6473 SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6474 PyObject *resultobj = 0;
6475 wxComboBox *arg1 = (wxComboBox *) 0 ;
6476 void *argp1 = 0 ;
6477 int res1 = 0 ;
6478 PyObject *swig_obj[1] ;
6479
6480 if (!args) SWIG_fail;
6481 swig_obj[0] = args;
6482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6483 if (!SWIG_IsOK(res1)) {
6484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6485 }
6486 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6487 {
6488 PyThreadState* __tstate = wxPyBeginAllowThreads();
6489 (arg1)->SelectAll();
6490 wxPyEndAllowThreads(__tstate);
6491 if (PyErr_Occurred()) SWIG_fail;
6492 }
6493 resultobj = SWIG_Py_Void();
6494 return resultobj;
6495 fail:
6496 return NULL;
6497 }
6498
6499
6500 SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6501 PyObject *resultobj = 0;
6502 wxComboBox *arg1 = (wxComboBox *) 0 ;
6503 bool result;
6504 void *argp1 = 0 ;
6505 int res1 = 0 ;
6506 PyObject *swig_obj[1] ;
6507
6508 if (!args) SWIG_fail;
6509 swig_obj[0] = args;
6510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6511 if (!SWIG_IsOK(res1)) {
6512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6513 }
6514 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6515 {
6516 PyThreadState* __tstate = wxPyBeginAllowThreads();
6517 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6518 wxPyEndAllowThreads(__tstate);
6519 if (PyErr_Occurred()) SWIG_fail;
6520 }
6521 {
6522 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6523 }
6524 return resultobj;
6525 fail:
6526 return NULL;
6527 }
6528
6529
6530 SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6531 PyObject *resultobj = 0;
6532 wxComboBox *arg1 = (wxComboBox *) 0 ;
6533 bool result;
6534 void *argp1 = 0 ;
6535 int res1 = 0 ;
6536 PyObject *swig_obj[1] ;
6537
6538 if (!args) SWIG_fail;
6539 swig_obj[0] = args;
6540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6541 if (!SWIG_IsOK(res1)) {
6542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6543 }
6544 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6545 {
6546 PyThreadState* __tstate = wxPyBeginAllowThreads();
6547 result = (bool)((wxComboBox const *)arg1)->CanCut();
6548 wxPyEndAllowThreads(__tstate);
6549 if (PyErr_Occurred()) SWIG_fail;
6550 }
6551 {
6552 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6553 }
6554 return resultobj;
6555 fail:
6556 return NULL;
6557 }
6558
6559
6560 SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6561 PyObject *resultobj = 0;
6562 wxComboBox *arg1 = (wxComboBox *) 0 ;
6563 bool result;
6564 void *argp1 = 0 ;
6565 int res1 = 0 ;
6566 PyObject *swig_obj[1] ;
6567
6568 if (!args) SWIG_fail;
6569 swig_obj[0] = args;
6570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6571 if (!SWIG_IsOK(res1)) {
6572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6573 }
6574 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6575 {
6576 PyThreadState* __tstate = wxPyBeginAllowThreads();
6577 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6578 wxPyEndAllowThreads(__tstate);
6579 if (PyErr_Occurred()) SWIG_fail;
6580 }
6581 {
6582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6583 }
6584 return resultobj;
6585 fail:
6586 return NULL;
6587 }
6588
6589
6590 SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6591 PyObject *resultobj = 0;
6592 wxComboBox *arg1 = (wxComboBox *) 0 ;
6593 bool result;
6594 void *argp1 = 0 ;
6595 int res1 = 0 ;
6596 PyObject *swig_obj[1] ;
6597
6598 if (!args) SWIG_fail;
6599 swig_obj[0] = args;
6600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6601 if (!SWIG_IsOK(res1)) {
6602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6603 }
6604 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6605 {
6606 PyThreadState* __tstate = wxPyBeginAllowThreads();
6607 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6608 wxPyEndAllowThreads(__tstate);
6609 if (PyErr_Occurred()) SWIG_fail;
6610 }
6611 {
6612 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6613 }
6614 return resultobj;
6615 fail:
6616 return NULL;
6617 }
6618
6619
6620 SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6621 PyObject *resultobj = 0;
6622 wxComboBox *arg1 = (wxComboBox *) 0 ;
6623 bool result;
6624 void *argp1 = 0 ;
6625 int res1 = 0 ;
6626 PyObject *swig_obj[1] ;
6627
6628 if (!args) SWIG_fail;
6629 swig_obj[0] = args;
6630 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6631 if (!SWIG_IsOK(res1)) {
6632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6633 }
6634 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6635 {
6636 PyThreadState* __tstate = wxPyBeginAllowThreads();
6637 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6638 wxPyEndAllowThreads(__tstate);
6639 if (PyErr_Occurred()) SWIG_fail;
6640 }
6641 {
6642 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6643 }
6644 return resultobj;
6645 fail:
6646 return NULL;
6647 }
6648
6649
6650 SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6651 PyObject *resultobj = 0;
6652 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6653 SwigValueWrapper<wxVisualAttributes > result;
6654 int val1 ;
6655 int ecode1 = 0 ;
6656 PyObject * obj0 = 0 ;
6657 char * kwnames[] = {
6658 (char *) "variant", NULL
6659 };
6660
6661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6662 if (obj0) {
6663 ecode1 = SWIG_AsVal_int(obj0, &val1);
6664 if (!SWIG_IsOK(ecode1)) {
6665 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6666 }
6667 arg1 = static_cast< wxWindowVariant >(val1);
6668 }
6669 {
6670 if (!wxPyCheckForApp()) SWIG_fail;
6671 PyThreadState* __tstate = wxPyBeginAllowThreads();
6672 result = wxComboBox::GetClassDefaultAttributes(arg1);
6673 wxPyEndAllowThreads(__tstate);
6674 if (PyErr_Occurred()) SWIG_fail;
6675 }
6676 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6677 return resultobj;
6678 fail:
6679 return NULL;
6680 }
6681
6682
6683 SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6684 PyObject *obj;
6685 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6686 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6687 return SWIG_Py_Void();
6688 }
6689
6690 SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6691 return SWIG_Python_InitShadowInstance(args);
6692 }
6693
6694 SWIGINTERN int GaugeNameStr_set(PyObject *) {
6695 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6696 return 1;
6697 }
6698
6699
6700 SWIGINTERN PyObject *GaugeNameStr_get(void) {
6701 PyObject *pyobj = 0;
6702
6703 {
6704 #if wxUSE_UNICODE
6705 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6706 #else
6707 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6708 #endif
6709 }
6710 return pyobj;
6711 }
6712
6713
6714 SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6715 PyObject *resultobj = 0;
6716 wxWindow *arg1 = (wxWindow *) 0 ;
6717 int arg2 = (int) -1 ;
6718 int arg3 = (int) 100 ;
6719 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6720 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6721 wxSize const &arg5_defvalue = wxDefaultSize ;
6722 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6723 long arg6 = (long) wxGA_HORIZONTAL ;
6724 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6725 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6726 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6727 wxString *arg8 = (wxString *) &arg8_defvalue ;
6728 wxGauge *result = 0 ;
6729 void *argp1 = 0 ;
6730 int res1 = 0 ;
6731 int val2 ;
6732 int ecode2 = 0 ;
6733 int val3 ;
6734 int ecode3 = 0 ;
6735 wxPoint temp4 ;
6736 wxSize temp5 ;
6737 long val6 ;
6738 int ecode6 = 0 ;
6739 void *argp7 = 0 ;
6740 int res7 = 0 ;
6741 bool temp8 = false ;
6742 PyObject * obj0 = 0 ;
6743 PyObject * obj1 = 0 ;
6744 PyObject * obj2 = 0 ;
6745 PyObject * obj3 = 0 ;
6746 PyObject * obj4 = 0 ;
6747 PyObject * obj5 = 0 ;
6748 PyObject * obj6 = 0 ;
6749 PyObject * obj7 = 0 ;
6750 char * kwnames[] = {
6751 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6752 };
6753
6754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6756 if (!SWIG_IsOK(res1)) {
6757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6758 }
6759 arg1 = reinterpret_cast< wxWindow * >(argp1);
6760 if (obj1) {
6761 ecode2 = SWIG_AsVal_int(obj1, &val2);
6762 if (!SWIG_IsOK(ecode2)) {
6763 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6764 }
6765 arg2 = static_cast< int >(val2);
6766 }
6767 if (obj2) {
6768 ecode3 = SWIG_AsVal_int(obj2, &val3);
6769 if (!SWIG_IsOK(ecode3)) {
6770 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6771 }
6772 arg3 = static_cast< int >(val3);
6773 }
6774 if (obj3) {
6775 {
6776 arg4 = &temp4;
6777 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6778 }
6779 }
6780 if (obj4) {
6781 {
6782 arg5 = &temp5;
6783 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6784 }
6785 }
6786 if (obj5) {
6787 ecode6 = SWIG_AsVal_long(obj5, &val6);
6788 if (!SWIG_IsOK(ecode6)) {
6789 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6790 }
6791 arg6 = static_cast< long >(val6);
6792 }
6793 if (obj6) {
6794 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6795 if (!SWIG_IsOK(res7)) {
6796 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6797 }
6798 if (!argp7) {
6799 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6800 }
6801 arg7 = reinterpret_cast< wxValidator * >(argp7);
6802 }
6803 if (obj7) {
6804 {
6805 arg8 = wxString_in_helper(obj7);
6806 if (arg8 == NULL) SWIG_fail;
6807 temp8 = true;
6808 }
6809 }
6810 {
6811 if (!wxPyCheckForApp()) SWIG_fail;
6812 PyThreadState* __tstate = wxPyBeginAllowThreads();
6813 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6814 wxPyEndAllowThreads(__tstate);
6815 if (PyErr_Occurred()) SWIG_fail;
6816 }
6817 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6818 {
6819 if (temp8)
6820 delete arg8;
6821 }
6822 return resultobj;
6823 fail:
6824 {
6825 if (temp8)
6826 delete arg8;
6827 }
6828 return NULL;
6829 }
6830
6831
6832 SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6833 PyObject *resultobj = 0;
6834 wxGauge *result = 0 ;
6835
6836 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6837 {
6838 if (!wxPyCheckForApp()) SWIG_fail;
6839 PyThreadState* __tstate = wxPyBeginAllowThreads();
6840 result = (wxGauge *)new wxGauge();
6841 wxPyEndAllowThreads(__tstate);
6842 if (PyErr_Occurred()) SWIG_fail;
6843 }
6844 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6845 return resultobj;
6846 fail:
6847 return NULL;
6848 }
6849
6850
6851 SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6852 PyObject *resultobj = 0;
6853 wxGauge *arg1 = (wxGauge *) 0 ;
6854 wxWindow *arg2 = (wxWindow *) 0 ;
6855 int arg3 = (int) -1 ;
6856 int arg4 = (int) 100 ;
6857 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6858 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6859 wxSize const &arg6_defvalue = wxDefaultSize ;
6860 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6861 long arg7 = (long) wxGA_HORIZONTAL ;
6862 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6863 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6864 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6865 wxString *arg9 = (wxString *) &arg9_defvalue ;
6866 bool result;
6867 void *argp1 = 0 ;
6868 int res1 = 0 ;
6869 void *argp2 = 0 ;
6870 int res2 = 0 ;
6871 int val3 ;
6872 int ecode3 = 0 ;
6873 int val4 ;
6874 int ecode4 = 0 ;
6875 wxPoint temp5 ;
6876 wxSize temp6 ;
6877 long val7 ;
6878 int ecode7 = 0 ;
6879 void *argp8 = 0 ;
6880 int res8 = 0 ;
6881 bool temp9 = false ;
6882 PyObject * obj0 = 0 ;
6883 PyObject * obj1 = 0 ;
6884 PyObject * obj2 = 0 ;
6885 PyObject * obj3 = 0 ;
6886 PyObject * obj4 = 0 ;
6887 PyObject * obj5 = 0 ;
6888 PyObject * obj6 = 0 ;
6889 PyObject * obj7 = 0 ;
6890 PyObject * obj8 = 0 ;
6891 char * kwnames[] = {
6892 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6893 };
6894
6895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6897 if (!SWIG_IsOK(res1)) {
6898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6899 }
6900 arg1 = reinterpret_cast< wxGauge * >(argp1);
6901 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6902 if (!SWIG_IsOK(res2)) {
6903 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6904 }
6905 arg2 = reinterpret_cast< wxWindow * >(argp2);
6906 if (obj2) {
6907 ecode3 = SWIG_AsVal_int(obj2, &val3);
6908 if (!SWIG_IsOK(ecode3)) {
6909 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6910 }
6911 arg3 = static_cast< int >(val3);
6912 }
6913 if (obj3) {
6914 ecode4 = SWIG_AsVal_int(obj3, &val4);
6915 if (!SWIG_IsOK(ecode4)) {
6916 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6917 }
6918 arg4 = static_cast< int >(val4);
6919 }
6920 if (obj4) {
6921 {
6922 arg5 = &temp5;
6923 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
6924 }
6925 }
6926 if (obj5) {
6927 {
6928 arg6 = &temp6;
6929 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
6930 }
6931 }
6932 if (obj6) {
6933 ecode7 = SWIG_AsVal_long(obj6, &val7);
6934 if (!SWIG_IsOK(ecode7)) {
6935 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
6936 }
6937 arg7 = static_cast< long >(val7);
6938 }
6939 if (obj7) {
6940 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
6941 if (!SWIG_IsOK(res8)) {
6942 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6943 }
6944 if (!argp8) {
6945 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6946 }
6947 arg8 = reinterpret_cast< wxValidator * >(argp8);
6948 }
6949 if (obj8) {
6950 {
6951 arg9 = wxString_in_helper(obj8);
6952 if (arg9 == NULL) SWIG_fail;
6953 temp9 = true;
6954 }
6955 }
6956 {
6957 PyThreadState* __tstate = wxPyBeginAllowThreads();
6958 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6959 wxPyEndAllowThreads(__tstate);
6960 if (PyErr_Occurred()) SWIG_fail;
6961 }
6962 {
6963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6964 }
6965 {
6966 if (temp9)
6967 delete arg9;
6968 }
6969 return resultobj;
6970 fail:
6971 {
6972 if (temp9)
6973 delete arg9;
6974 }
6975 return NULL;
6976 }
6977
6978
6979 SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6980 PyObject *resultobj = 0;
6981 wxGauge *arg1 = (wxGauge *) 0 ;
6982 int arg2 ;
6983 void *argp1 = 0 ;
6984 int res1 = 0 ;
6985 int val2 ;
6986 int ecode2 = 0 ;
6987 PyObject * obj0 = 0 ;
6988 PyObject * obj1 = 0 ;
6989 char * kwnames[] = {
6990 (char *) "self",(char *) "range", NULL
6991 };
6992
6993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
6994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6995 if (!SWIG_IsOK(res1)) {
6996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
6997 }
6998 arg1 = reinterpret_cast< wxGauge * >(argp1);
6999 ecode2 = SWIG_AsVal_int(obj1, &val2);
7000 if (!SWIG_IsOK(ecode2)) {
7001 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7002 }
7003 arg2 = static_cast< int >(val2);
7004 {
7005 PyThreadState* __tstate = wxPyBeginAllowThreads();
7006 (arg1)->SetRange(arg2);
7007 wxPyEndAllowThreads(__tstate);
7008 if (PyErr_Occurred()) SWIG_fail;
7009 }
7010 resultobj = SWIG_Py_Void();
7011 return resultobj;
7012 fail:
7013 return NULL;
7014 }
7015
7016
7017 SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7018 PyObject *resultobj = 0;
7019 wxGauge *arg1 = (wxGauge *) 0 ;
7020 int result;
7021 void *argp1 = 0 ;
7022 int res1 = 0 ;
7023 PyObject *swig_obj[1] ;
7024
7025 if (!args) SWIG_fail;
7026 swig_obj[0] = args;
7027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7028 if (!SWIG_IsOK(res1)) {
7029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7030 }
7031 arg1 = reinterpret_cast< wxGauge * >(argp1);
7032 {
7033 PyThreadState* __tstate = wxPyBeginAllowThreads();
7034 result = (int)((wxGauge const *)arg1)->GetRange();
7035 wxPyEndAllowThreads(__tstate);
7036 if (PyErr_Occurred()) SWIG_fail;
7037 }
7038 resultobj = SWIG_From_int(static_cast< int >(result));
7039 return resultobj;
7040 fail:
7041 return NULL;
7042 }
7043
7044
7045 SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7046 PyObject *resultobj = 0;
7047 wxGauge *arg1 = (wxGauge *) 0 ;
7048 int arg2 ;
7049 void *argp1 = 0 ;
7050 int res1 = 0 ;
7051 int val2 ;
7052 int ecode2 = 0 ;
7053 PyObject * obj0 = 0 ;
7054 PyObject * obj1 = 0 ;
7055 char * kwnames[] = {
7056 (char *) "self",(char *) "pos", NULL
7057 };
7058
7059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7061 if (!SWIG_IsOK(res1)) {
7062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7063 }
7064 arg1 = reinterpret_cast< wxGauge * >(argp1);
7065 ecode2 = SWIG_AsVal_int(obj1, &val2);
7066 if (!SWIG_IsOK(ecode2)) {
7067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7068 }
7069 arg2 = static_cast< int >(val2);
7070 {
7071 PyThreadState* __tstate = wxPyBeginAllowThreads();
7072 (arg1)->SetValue(arg2);
7073 wxPyEndAllowThreads(__tstate);
7074 if (PyErr_Occurred()) SWIG_fail;
7075 }
7076 resultobj = SWIG_Py_Void();
7077 return resultobj;
7078 fail:
7079 return NULL;
7080 }
7081
7082
7083 SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7084 PyObject *resultobj = 0;
7085 wxGauge *arg1 = (wxGauge *) 0 ;
7086 int result;
7087 void *argp1 = 0 ;
7088 int res1 = 0 ;
7089 PyObject *swig_obj[1] ;
7090
7091 if (!args) SWIG_fail;
7092 swig_obj[0] = args;
7093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7094 if (!SWIG_IsOK(res1)) {
7095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7096 }
7097 arg1 = reinterpret_cast< wxGauge * >(argp1);
7098 {
7099 PyThreadState* __tstate = wxPyBeginAllowThreads();
7100 result = (int)((wxGauge const *)arg1)->GetValue();
7101 wxPyEndAllowThreads(__tstate);
7102 if (PyErr_Occurred()) SWIG_fail;
7103 }
7104 resultobj = SWIG_From_int(static_cast< int >(result));
7105 return resultobj;
7106 fail:
7107 return NULL;
7108 }
7109
7110
7111 SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7112 PyObject *resultobj = 0;
7113 wxGauge *arg1 = (wxGauge *) 0 ;
7114 bool result;
7115 void *argp1 = 0 ;
7116 int res1 = 0 ;
7117 PyObject *swig_obj[1] ;
7118
7119 if (!args) SWIG_fail;
7120 swig_obj[0] = args;
7121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7122 if (!SWIG_IsOK(res1)) {
7123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7124 }
7125 arg1 = reinterpret_cast< wxGauge * >(argp1);
7126 {
7127 PyThreadState* __tstate = wxPyBeginAllowThreads();
7128 result = (bool)((wxGauge const *)arg1)->IsVertical();
7129 wxPyEndAllowThreads(__tstate);
7130 if (PyErr_Occurred()) SWIG_fail;
7131 }
7132 {
7133 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7134 }
7135 return resultobj;
7136 fail:
7137 return NULL;
7138 }
7139
7140
7141 SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7142 PyObject *resultobj = 0;
7143 wxGauge *arg1 = (wxGauge *) 0 ;
7144 int arg2 ;
7145 void *argp1 = 0 ;
7146 int res1 = 0 ;
7147 int val2 ;
7148 int ecode2 = 0 ;
7149 PyObject * obj0 = 0 ;
7150 PyObject * obj1 = 0 ;
7151 char * kwnames[] = {
7152 (char *) "self",(char *) "w", NULL
7153 };
7154
7155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7157 if (!SWIG_IsOK(res1)) {
7158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7159 }
7160 arg1 = reinterpret_cast< wxGauge * >(argp1);
7161 ecode2 = SWIG_AsVal_int(obj1, &val2);
7162 if (!SWIG_IsOK(ecode2)) {
7163 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7164 }
7165 arg2 = static_cast< int >(val2);
7166 {
7167 PyThreadState* __tstate = wxPyBeginAllowThreads();
7168 (arg1)->SetShadowWidth(arg2);
7169 wxPyEndAllowThreads(__tstate);
7170 if (PyErr_Occurred()) SWIG_fail;
7171 }
7172 resultobj = SWIG_Py_Void();
7173 return resultobj;
7174 fail:
7175 return NULL;
7176 }
7177
7178
7179 SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7180 PyObject *resultobj = 0;
7181 wxGauge *arg1 = (wxGauge *) 0 ;
7182 int result;
7183 void *argp1 = 0 ;
7184 int res1 = 0 ;
7185 PyObject *swig_obj[1] ;
7186
7187 if (!args) SWIG_fail;
7188 swig_obj[0] = args;
7189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7190 if (!SWIG_IsOK(res1)) {
7191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7192 }
7193 arg1 = reinterpret_cast< wxGauge * >(argp1);
7194 {
7195 PyThreadState* __tstate = wxPyBeginAllowThreads();
7196 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7197 wxPyEndAllowThreads(__tstate);
7198 if (PyErr_Occurred()) SWIG_fail;
7199 }
7200 resultobj = SWIG_From_int(static_cast< int >(result));
7201 return resultobj;
7202 fail:
7203 return NULL;
7204 }
7205
7206
7207 SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7208 PyObject *resultobj = 0;
7209 wxGauge *arg1 = (wxGauge *) 0 ;
7210 int arg2 ;
7211 void *argp1 = 0 ;
7212 int res1 = 0 ;
7213 int val2 ;
7214 int ecode2 = 0 ;
7215 PyObject * obj0 = 0 ;
7216 PyObject * obj1 = 0 ;
7217 char * kwnames[] = {
7218 (char *) "self",(char *) "w", NULL
7219 };
7220
7221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7223 if (!SWIG_IsOK(res1)) {
7224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7225 }
7226 arg1 = reinterpret_cast< wxGauge * >(argp1);
7227 ecode2 = SWIG_AsVal_int(obj1, &val2);
7228 if (!SWIG_IsOK(ecode2)) {
7229 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7230 }
7231 arg2 = static_cast< int >(val2);
7232 {
7233 PyThreadState* __tstate = wxPyBeginAllowThreads();
7234 (arg1)->SetBezelFace(arg2);
7235 wxPyEndAllowThreads(__tstate);
7236 if (PyErr_Occurred()) SWIG_fail;
7237 }
7238 resultobj = SWIG_Py_Void();
7239 return resultobj;
7240 fail:
7241 return NULL;
7242 }
7243
7244
7245 SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7246 PyObject *resultobj = 0;
7247 wxGauge *arg1 = (wxGauge *) 0 ;
7248 int result;
7249 void *argp1 = 0 ;
7250 int res1 = 0 ;
7251 PyObject *swig_obj[1] ;
7252
7253 if (!args) SWIG_fail;
7254 swig_obj[0] = args;
7255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7256 if (!SWIG_IsOK(res1)) {
7257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7258 }
7259 arg1 = reinterpret_cast< wxGauge * >(argp1);
7260 {
7261 PyThreadState* __tstate = wxPyBeginAllowThreads();
7262 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7263 wxPyEndAllowThreads(__tstate);
7264 if (PyErr_Occurred()) SWIG_fail;
7265 }
7266 resultobj = SWIG_From_int(static_cast< int >(result));
7267 return resultobj;
7268 fail:
7269 return NULL;
7270 }
7271
7272
7273 SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7274 PyObject *resultobj = 0;
7275 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7276 SwigValueWrapper<wxVisualAttributes > result;
7277 int val1 ;
7278 int ecode1 = 0 ;
7279 PyObject * obj0 = 0 ;
7280 char * kwnames[] = {
7281 (char *) "variant", NULL
7282 };
7283
7284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7285 if (obj0) {
7286 ecode1 = SWIG_AsVal_int(obj0, &val1);
7287 if (!SWIG_IsOK(ecode1)) {
7288 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7289 }
7290 arg1 = static_cast< wxWindowVariant >(val1);
7291 }
7292 {
7293 if (!wxPyCheckForApp()) SWIG_fail;
7294 PyThreadState* __tstate = wxPyBeginAllowThreads();
7295 result = wxGauge::GetClassDefaultAttributes(arg1);
7296 wxPyEndAllowThreads(__tstate);
7297 if (PyErr_Occurred()) SWIG_fail;
7298 }
7299 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7300 return resultobj;
7301 fail:
7302 return NULL;
7303 }
7304
7305
7306 SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7307 PyObject *obj;
7308 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7309 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7310 return SWIG_Py_Void();
7311 }
7312
7313 SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7314 return SWIG_Python_InitShadowInstance(args);
7315 }
7316
7317 SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7318 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7319 return 1;
7320 }
7321
7322
7323 SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7324 PyObject *pyobj = 0;
7325
7326 {
7327 #if wxUSE_UNICODE
7328 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7329 #else
7330 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7331 #endif
7332 }
7333 return pyobj;
7334 }
7335
7336
7337 SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7338 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7339 return 1;
7340 }
7341
7342
7343 SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7344 PyObject *pyobj = 0;
7345
7346 {
7347 #if wxUSE_UNICODE
7348 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7349 #else
7350 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7351 #endif
7352 }
7353 return pyobj;
7354 }
7355
7356
7357 SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7358 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7359 return 1;
7360 }
7361
7362
7363 SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7364 PyObject *pyobj = 0;
7365
7366 {
7367 #if wxUSE_UNICODE
7368 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7369 #else
7370 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7371 #endif
7372 }
7373 return pyobj;
7374 }
7375
7376
7377 SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7378 PyObject *resultobj = 0;
7379 wxWindow *arg1 = (wxWindow *) 0 ;
7380 int arg2 = (int) -1 ;
7381 wxString const &arg3_defvalue = wxPyEmptyString ;
7382 wxString *arg3 = (wxString *) &arg3_defvalue ;
7383 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7384 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7385 wxSize const &arg5_defvalue = wxDefaultSize ;
7386 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7387 long arg6 = (long) 0 ;
7388 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7389 wxString *arg7 = (wxString *) &arg7_defvalue ;
7390 wxStaticBox *result = 0 ;
7391 void *argp1 = 0 ;
7392 int res1 = 0 ;
7393 int val2 ;
7394 int ecode2 = 0 ;
7395 bool temp3 = false ;
7396 wxPoint temp4 ;
7397 wxSize temp5 ;
7398 long val6 ;
7399 int ecode6 = 0 ;
7400 bool temp7 = false ;
7401 PyObject * obj0 = 0 ;
7402 PyObject * obj1 = 0 ;
7403 PyObject * obj2 = 0 ;
7404 PyObject * obj3 = 0 ;
7405 PyObject * obj4 = 0 ;
7406 PyObject * obj5 = 0 ;
7407 PyObject * obj6 = 0 ;
7408 char * kwnames[] = {
7409 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7410 };
7411
7412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7414 if (!SWIG_IsOK(res1)) {
7415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7416 }
7417 arg1 = reinterpret_cast< wxWindow * >(argp1);
7418 if (obj1) {
7419 ecode2 = SWIG_AsVal_int(obj1, &val2);
7420 if (!SWIG_IsOK(ecode2)) {
7421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7422 }
7423 arg2 = static_cast< int >(val2);
7424 }
7425 if (obj2) {
7426 {
7427 arg3 = wxString_in_helper(obj2);
7428 if (arg3 == NULL) SWIG_fail;
7429 temp3 = true;
7430 }
7431 }
7432 if (obj3) {
7433 {
7434 arg4 = &temp4;
7435 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7436 }
7437 }
7438 if (obj4) {
7439 {
7440 arg5 = &temp5;
7441 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7442 }
7443 }
7444 if (obj5) {
7445 ecode6 = SWIG_AsVal_long(obj5, &val6);
7446 if (!SWIG_IsOK(ecode6)) {
7447 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7448 }
7449 arg6 = static_cast< long >(val6);
7450 }
7451 if (obj6) {
7452 {
7453 arg7 = wxString_in_helper(obj6);
7454 if (arg7 == NULL) SWIG_fail;
7455 temp7 = true;
7456 }
7457 }
7458 {
7459 if (!wxPyCheckForApp()) SWIG_fail;
7460 PyThreadState* __tstate = wxPyBeginAllowThreads();
7461 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7462 wxPyEndAllowThreads(__tstate);
7463 if (PyErr_Occurred()) SWIG_fail;
7464 }
7465 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7466 {
7467 if (temp3)
7468 delete arg3;
7469 }
7470 {
7471 if (temp7)
7472 delete arg7;
7473 }
7474 return resultobj;
7475 fail:
7476 {
7477 if (temp3)
7478 delete arg3;
7479 }
7480 {
7481 if (temp7)
7482 delete arg7;
7483 }
7484 return NULL;
7485 }
7486
7487
7488 SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7489 PyObject *resultobj = 0;
7490 wxStaticBox *result = 0 ;
7491
7492 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7493 {
7494 if (!wxPyCheckForApp()) SWIG_fail;
7495 PyThreadState* __tstate = wxPyBeginAllowThreads();
7496 result = (wxStaticBox *)new wxStaticBox();
7497 wxPyEndAllowThreads(__tstate);
7498 if (PyErr_Occurred()) SWIG_fail;
7499 }
7500 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7501 return resultobj;
7502 fail:
7503 return NULL;
7504 }
7505
7506
7507 SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7508 PyObject *resultobj = 0;
7509 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7510 wxWindow *arg2 = (wxWindow *) 0 ;
7511 int arg3 = (int) -1 ;
7512 wxString const &arg4_defvalue = wxPyEmptyString ;
7513 wxString *arg4 = (wxString *) &arg4_defvalue ;
7514 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7515 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7516 wxSize const &arg6_defvalue = wxDefaultSize ;
7517 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7518 long arg7 = (long) 0 ;
7519 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7520 wxString *arg8 = (wxString *) &arg8_defvalue ;
7521 bool result;
7522 void *argp1 = 0 ;
7523 int res1 = 0 ;
7524 void *argp2 = 0 ;
7525 int res2 = 0 ;
7526 int val3 ;
7527 int ecode3 = 0 ;
7528 bool temp4 = false ;
7529 wxPoint temp5 ;
7530 wxSize temp6 ;
7531 long val7 ;
7532 int ecode7 = 0 ;
7533 bool temp8 = false ;
7534 PyObject * obj0 = 0 ;
7535 PyObject * obj1 = 0 ;
7536 PyObject * obj2 = 0 ;
7537 PyObject * obj3 = 0 ;
7538 PyObject * obj4 = 0 ;
7539 PyObject * obj5 = 0 ;
7540 PyObject * obj6 = 0 ;
7541 PyObject * obj7 = 0 ;
7542 char * kwnames[] = {
7543 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7544 };
7545
7546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7548 if (!SWIG_IsOK(res1)) {
7549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7550 }
7551 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7552 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7553 if (!SWIG_IsOK(res2)) {
7554 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7555 }
7556 arg2 = reinterpret_cast< wxWindow * >(argp2);
7557 if (obj2) {
7558 ecode3 = SWIG_AsVal_int(obj2, &val3);
7559 if (!SWIG_IsOK(ecode3)) {
7560 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7561 }
7562 arg3 = static_cast< int >(val3);
7563 }
7564 if (obj3) {
7565 {
7566 arg4 = wxString_in_helper(obj3);
7567 if (arg4 == NULL) SWIG_fail;
7568 temp4 = true;
7569 }
7570 }
7571 if (obj4) {
7572 {
7573 arg5 = &temp5;
7574 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7575 }
7576 }
7577 if (obj5) {
7578 {
7579 arg6 = &temp6;
7580 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7581 }
7582 }
7583 if (obj6) {
7584 ecode7 = SWIG_AsVal_long(obj6, &val7);
7585 if (!SWIG_IsOK(ecode7)) {
7586 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7587 }
7588 arg7 = static_cast< long >(val7);
7589 }
7590 if (obj7) {
7591 {
7592 arg8 = wxString_in_helper(obj7);
7593 if (arg8 == NULL) SWIG_fail;
7594 temp8 = true;
7595 }
7596 }
7597 {
7598 PyThreadState* __tstate = wxPyBeginAllowThreads();
7599 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7600 wxPyEndAllowThreads(__tstate);
7601 if (PyErr_Occurred()) SWIG_fail;
7602 }
7603 {
7604 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7605 }
7606 {
7607 if (temp4)
7608 delete arg4;
7609 }
7610 {
7611 if (temp8)
7612 delete arg8;
7613 }
7614 return resultobj;
7615 fail:
7616 {
7617 if (temp4)
7618 delete arg4;
7619 }
7620 {
7621 if (temp8)
7622 delete arg8;
7623 }
7624 return NULL;
7625 }
7626
7627
7628 SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7629 PyObject *resultobj = 0;
7630 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7631 SwigValueWrapper<wxVisualAttributes > result;
7632 int val1 ;
7633 int ecode1 = 0 ;
7634 PyObject * obj0 = 0 ;
7635 char * kwnames[] = {
7636 (char *) "variant", NULL
7637 };
7638
7639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7640 if (obj0) {
7641 ecode1 = SWIG_AsVal_int(obj0, &val1);
7642 if (!SWIG_IsOK(ecode1)) {
7643 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7644 }
7645 arg1 = static_cast< wxWindowVariant >(val1);
7646 }
7647 {
7648 if (!wxPyCheckForApp()) SWIG_fail;
7649 PyThreadState* __tstate = wxPyBeginAllowThreads();
7650 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7651 wxPyEndAllowThreads(__tstate);
7652 if (PyErr_Occurred()) SWIG_fail;
7653 }
7654 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7655 return resultobj;
7656 fail:
7657 return NULL;
7658 }
7659
7660
7661 SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7662 PyObject *obj;
7663 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7664 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7665 return SWIG_Py_Void();
7666 }
7667
7668 SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7669 return SWIG_Python_InitShadowInstance(args);
7670 }
7671
7672 SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7673 PyObject *resultobj = 0;
7674 wxWindow *arg1 = (wxWindow *) 0 ;
7675 int arg2 = (int) -1 ;
7676 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7677 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7678 wxSize const &arg4_defvalue = wxDefaultSize ;
7679 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7680 long arg5 = (long) wxLI_HORIZONTAL ;
7681 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7682 wxString *arg6 = (wxString *) &arg6_defvalue ;
7683 wxStaticLine *result = 0 ;
7684 void *argp1 = 0 ;
7685 int res1 = 0 ;
7686 int val2 ;
7687 int ecode2 = 0 ;
7688 wxPoint temp3 ;
7689 wxSize temp4 ;
7690 long val5 ;
7691 int ecode5 = 0 ;
7692 bool temp6 = false ;
7693 PyObject * obj0 = 0 ;
7694 PyObject * obj1 = 0 ;
7695 PyObject * obj2 = 0 ;
7696 PyObject * obj3 = 0 ;
7697 PyObject * obj4 = 0 ;
7698 PyObject * obj5 = 0 ;
7699 char * kwnames[] = {
7700 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7701 };
7702
7703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7705 if (!SWIG_IsOK(res1)) {
7706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7707 }
7708 arg1 = reinterpret_cast< wxWindow * >(argp1);
7709 if (obj1) {
7710 ecode2 = SWIG_AsVal_int(obj1, &val2);
7711 if (!SWIG_IsOK(ecode2)) {
7712 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7713 }
7714 arg2 = static_cast< int >(val2);
7715 }
7716 if (obj2) {
7717 {
7718 arg3 = &temp3;
7719 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7720 }
7721 }
7722 if (obj3) {
7723 {
7724 arg4 = &temp4;
7725 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7726 }
7727 }
7728 if (obj4) {
7729 ecode5 = SWIG_AsVal_long(obj4, &val5);
7730 if (!SWIG_IsOK(ecode5)) {
7731 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7732 }
7733 arg5 = static_cast< long >(val5);
7734 }
7735 if (obj5) {
7736 {
7737 arg6 = wxString_in_helper(obj5);
7738 if (arg6 == NULL) SWIG_fail;
7739 temp6 = true;
7740 }
7741 }
7742 {
7743 if (!wxPyCheckForApp()) SWIG_fail;
7744 PyThreadState* __tstate = wxPyBeginAllowThreads();
7745 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7746 wxPyEndAllowThreads(__tstate);
7747 if (PyErr_Occurred()) SWIG_fail;
7748 }
7749 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7750 {
7751 if (temp6)
7752 delete arg6;
7753 }
7754 return resultobj;
7755 fail:
7756 {
7757 if (temp6)
7758 delete arg6;
7759 }
7760 return NULL;
7761 }
7762
7763
7764 SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7765 PyObject *resultobj = 0;
7766 wxStaticLine *result = 0 ;
7767
7768 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7769 {
7770 if (!wxPyCheckForApp()) SWIG_fail;
7771 PyThreadState* __tstate = wxPyBeginAllowThreads();
7772 result = (wxStaticLine *)new wxStaticLine();
7773 wxPyEndAllowThreads(__tstate);
7774 if (PyErr_Occurred()) SWIG_fail;
7775 }
7776 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7777 return resultobj;
7778 fail:
7779 return NULL;
7780 }
7781
7782
7783 SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7784 PyObject *resultobj = 0;
7785 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7786 wxWindow *arg2 = (wxWindow *) 0 ;
7787 int arg3 = (int) -1 ;
7788 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7789 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7790 wxSize const &arg5_defvalue = wxDefaultSize ;
7791 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7792 long arg6 = (long) wxLI_HORIZONTAL ;
7793 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7794 wxString *arg7 = (wxString *) &arg7_defvalue ;
7795 bool result;
7796 void *argp1 = 0 ;
7797 int res1 = 0 ;
7798 void *argp2 = 0 ;
7799 int res2 = 0 ;
7800 int val3 ;
7801 int ecode3 = 0 ;
7802 wxPoint temp4 ;
7803 wxSize temp5 ;
7804 long val6 ;
7805 int ecode6 = 0 ;
7806 bool temp7 = false ;
7807 PyObject * obj0 = 0 ;
7808 PyObject * obj1 = 0 ;
7809 PyObject * obj2 = 0 ;
7810 PyObject * obj3 = 0 ;
7811 PyObject * obj4 = 0 ;
7812 PyObject * obj5 = 0 ;
7813 PyObject * obj6 = 0 ;
7814 char * kwnames[] = {
7815 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7816 };
7817
7818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7820 if (!SWIG_IsOK(res1)) {
7821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7822 }
7823 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7824 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7825 if (!SWIG_IsOK(res2)) {
7826 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7827 }
7828 arg2 = reinterpret_cast< wxWindow * >(argp2);
7829 if (obj2) {
7830 ecode3 = SWIG_AsVal_int(obj2, &val3);
7831 if (!SWIG_IsOK(ecode3)) {
7832 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7833 }
7834 arg3 = static_cast< int >(val3);
7835 }
7836 if (obj3) {
7837 {
7838 arg4 = &temp4;
7839 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7840 }
7841 }
7842 if (obj4) {
7843 {
7844 arg5 = &temp5;
7845 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7846 }
7847 }
7848 if (obj5) {
7849 ecode6 = SWIG_AsVal_long(obj5, &val6);
7850 if (!SWIG_IsOK(ecode6)) {
7851 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7852 }
7853 arg6 = static_cast< long >(val6);
7854 }
7855 if (obj6) {
7856 {
7857 arg7 = wxString_in_helper(obj6);
7858 if (arg7 == NULL) SWIG_fail;
7859 temp7 = true;
7860 }
7861 }
7862 {
7863 PyThreadState* __tstate = wxPyBeginAllowThreads();
7864 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7865 wxPyEndAllowThreads(__tstate);
7866 if (PyErr_Occurred()) SWIG_fail;
7867 }
7868 {
7869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7870 }
7871 {
7872 if (temp7)
7873 delete arg7;
7874 }
7875 return resultobj;
7876 fail:
7877 {
7878 if (temp7)
7879 delete arg7;
7880 }
7881 return NULL;
7882 }
7883
7884
7885 SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7886 PyObject *resultobj = 0;
7887 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7888 bool result;
7889 void *argp1 = 0 ;
7890 int res1 = 0 ;
7891 PyObject *swig_obj[1] ;
7892
7893 if (!args) SWIG_fail;
7894 swig_obj[0] = args;
7895 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7896 if (!SWIG_IsOK(res1)) {
7897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7898 }
7899 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7900 {
7901 PyThreadState* __tstate = wxPyBeginAllowThreads();
7902 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7903 wxPyEndAllowThreads(__tstate);
7904 if (PyErr_Occurred()) SWIG_fail;
7905 }
7906 {
7907 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7908 }
7909 return resultobj;
7910 fail:
7911 return NULL;
7912 }
7913
7914
7915 SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7916 PyObject *resultobj = 0;
7917 int result;
7918
7919 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
7920 {
7921 PyThreadState* __tstate = wxPyBeginAllowThreads();
7922 result = (int)wxStaticLine::GetDefaultSize();
7923 wxPyEndAllowThreads(__tstate);
7924 if (PyErr_Occurred()) SWIG_fail;
7925 }
7926 resultobj = SWIG_From_int(static_cast< int >(result));
7927 return resultobj;
7928 fail:
7929 return NULL;
7930 }
7931
7932
7933 SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7934 PyObject *resultobj = 0;
7935 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7936 SwigValueWrapper<wxVisualAttributes > result;
7937 int val1 ;
7938 int ecode1 = 0 ;
7939 PyObject * obj0 = 0 ;
7940 char * kwnames[] = {
7941 (char *) "variant", NULL
7942 };
7943
7944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7945 if (obj0) {
7946 ecode1 = SWIG_AsVal_int(obj0, &val1);
7947 if (!SWIG_IsOK(ecode1)) {
7948 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7949 }
7950 arg1 = static_cast< wxWindowVariant >(val1);
7951 }
7952 {
7953 if (!wxPyCheckForApp()) SWIG_fail;
7954 PyThreadState* __tstate = wxPyBeginAllowThreads();
7955 result = wxStaticLine::GetClassDefaultAttributes(arg1);
7956 wxPyEndAllowThreads(__tstate);
7957 if (PyErr_Occurred()) SWIG_fail;
7958 }
7959 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7960 return resultobj;
7961 fail:
7962 return NULL;
7963 }
7964
7965
7966 SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7967 PyObject *obj;
7968 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7969 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
7970 return SWIG_Py_Void();
7971 }
7972
7973 SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7974 return SWIG_Python_InitShadowInstance(args);
7975 }
7976
7977 SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7978 PyObject *resultobj = 0;
7979 wxWindow *arg1 = (wxWindow *) 0 ;
7980 int arg2 = (int) -1 ;
7981 wxString const &arg3_defvalue = wxPyEmptyString ;
7982 wxString *arg3 = (wxString *) &arg3_defvalue ;
7983 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7984 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7985 wxSize const &arg5_defvalue = wxDefaultSize ;
7986 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7987 long arg6 = (long) 0 ;
7988 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7989 wxString *arg7 = (wxString *) &arg7_defvalue ;
7990 wxStaticText *result = 0 ;
7991 void *argp1 = 0 ;
7992 int res1 = 0 ;
7993 int val2 ;
7994 int ecode2 = 0 ;
7995 bool temp3 = false ;
7996 wxPoint temp4 ;
7997 wxSize temp5 ;
7998 long val6 ;
7999 int ecode6 = 0 ;
8000 bool temp7 = false ;
8001 PyObject * obj0 = 0 ;
8002 PyObject * obj1 = 0 ;
8003 PyObject * obj2 = 0 ;
8004 PyObject * obj3 = 0 ;
8005 PyObject * obj4 = 0 ;
8006 PyObject * obj5 = 0 ;
8007 PyObject * obj6 = 0 ;
8008 char * kwnames[] = {
8009 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8010 };
8011
8012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8014 if (!SWIG_IsOK(res1)) {
8015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8016 }
8017 arg1 = reinterpret_cast< wxWindow * >(argp1);
8018 if (obj1) {
8019 ecode2 = SWIG_AsVal_int(obj1, &val2);
8020 if (!SWIG_IsOK(ecode2)) {
8021 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8022 }
8023 arg2 = static_cast< int >(val2);
8024 }
8025 if (obj2) {
8026 {
8027 arg3 = wxString_in_helper(obj2);
8028 if (arg3 == NULL) SWIG_fail;
8029 temp3 = true;
8030 }
8031 }
8032 if (obj3) {
8033 {
8034 arg4 = &temp4;
8035 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8036 }
8037 }
8038 if (obj4) {
8039 {
8040 arg5 = &temp5;
8041 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8042 }
8043 }
8044 if (obj5) {
8045 ecode6 = SWIG_AsVal_long(obj5, &val6);
8046 if (!SWIG_IsOK(ecode6)) {
8047 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8048 }
8049 arg6 = static_cast< long >(val6);
8050 }
8051 if (obj6) {
8052 {
8053 arg7 = wxString_in_helper(obj6);
8054 if (arg7 == NULL) SWIG_fail;
8055 temp7 = true;
8056 }
8057 }
8058 {
8059 if (!wxPyCheckForApp()) SWIG_fail;
8060 PyThreadState* __tstate = wxPyBeginAllowThreads();
8061 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8062 wxPyEndAllowThreads(__tstate);
8063 if (PyErr_Occurred()) SWIG_fail;
8064 }
8065 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8066 {
8067 if (temp3)
8068 delete arg3;
8069 }
8070 {
8071 if (temp7)
8072 delete arg7;
8073 }
8074 return resultobj;
8075 fail:
8076 {
8077 if (temp3)
8078 delete arg3;
8079 }
8080 {
8081 if (temp7)
8082 delete arg7;
8083 }
8084 return NULL;
8085 }
8086
8087
8088 SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8089 PyObject *resultobj = 0;
8090 wxStaticText *result = 0 ;
8091
8092 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8093 {
8094 if (!wxPyCheckForApp()) SWIG_fail;
8095 PyThreadState* __tstate = wxPyBeginAllowThreads();
8096 result = (wxStaticText *)new wxStaticText();
8097 wxPyEndAllowThreads(__tstate);
8098 if (PyErr_Occurred()) SWIG_fail;
8099 }
8100 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8101 return resultobj;
8102 fail:
8103 return NULL;
8104 }
8105
8106
8107 SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8108 PyObject *resultobj = 0;
8109 wxStaticText *arg1 = (wxStaticText *) 0 ;
8110 wxWindow *arg2 = (wxWindow *) 0 ;
8111 int arg3 = (int) -1 ;
8112 wxString const &arg4_defvalue = wxPyEmptyString ;
8113 wxString *arg4 = (wxString *) &arg4_defvalue ;
8114 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8115 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8116 wxSize const &arg6_defvalue = wxDefaultSize ;
8117 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8118 long arg7 = (long) 0 ;
8119 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8120 wxString *arg8 = (wxString *) &arg8_defvalue ;
8121 bool result;
8122 void *argp1 = 0 ;
8123 int res1 = 0 ;
8124 void *argp2 = 0 ;
8125 int res2 = 0 ;
8126 int val3 ;
8127 int ecode3 = 0 ;
8128 bool temp4 = false ;
8129 wxPoint temp5 ;
8130 wxSize temp6 ;
8131 long val7 ;
8132 int ecode7 = 0 ;
8133 bool temp8 = false ;
8134 PyObject * obj0 = 0 ;
8135 PyObject * obj1 = 0 ;
8136 PyObject * obj2 = 0 ;
8137 PyObject * obj3 = 0 ;
8138 PyObject * obj4 = 0 ;
8139 PyObject * obj5 = 0 ;
8140 PyObject * obj6 = 0 ;
8141 PyObject * obj7 = 0 ;
8142 char * kwnames[] = {
8143 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8144 };
8145
8146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8148 if (!SWIG_IsOK(res1)) {
8149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8150 }
8151 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8152 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8153 if (!SWIG_IsOK(res2)) {
8154 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8155 }
8156 arg2 = reinterpret_cast< wxWindow * >(argp2);
8157 if (obj2) {
8158 ecode3 = SWIG_AsVal_int(obj2, &val3);
8159 if (!SWIG_IsOK(ecode3)) {
8160 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8161 }
8162 arg3 = static_cast< int >(val3);
8163 }
8164 if (obj3) {
8165 {
8166 arg4 = wxString_in_helper(obj3);
8167 if (arg4 == NULL) SWIG_fail;
8168 temp4 = true;
8169 }
8170 }
8171 if (obj4) {
8172 {
8173 arg5 = &temp5;
8174 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8175 }
8176 }
8177 if (obj5) {
8178 {
8179 arg6 = &temp6;
8180 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8181 }
8182 }
8183 if (obj6) {
8184 ecode7 = SWIG_AsVal_long(obj6, &val7);
8185 if (!SWIG_IsOK(ecode7)) {
8186 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8187 }
8188 arg7 = static_cast< long >(val7);
8189 }
8190 if (obj7) {
8191 {
8192 arg8 = wxString_in_helper(obj7);
8193 if (arg8 == NULL) SWIG_fail;
8194 temp8 = true;
8195 }
8196 }
8197 {
8198 PyThreadState* __tstate = wxPyBeginAllowThreads();
8199 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8200 wxPyEndAllowThreads(__tstate);
8201 if (PyErr_Occurred()) SWIG_fail;
8202 }
8203 {
8204 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8205 }
8206 {
8207 if (temp4)
8208 delete arg4;
8209 }
8210 {
8211 if (temp8)
8212 delete arg8;
8213 }
8214 return resultobj;
8215 fail:
8216 {
8217 if (temp4)
8218 delete arg4;
8219 }
8220 {
8221 if (temp8)
8222 delete arg8;
8223 }
8224 return NULL;
8225 }
8226
8227
8228 SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8229 PyObject *resultobj = 0;
8230 wxStaticText *arg1 = (wxStaticText *) 0 ;
8231 int arg2 ;
8232 void *argp1 = 0 ;
8233 int res1 = 0 ;
8234 int val2 ;
8235 int ecode2 = 0 ;
8236 PyObject * obj0 = 0 ;
8237 PyObject * obj1 = 0 ;
8238 char * kwnames[] = {
8239 (char *) "self",(char *) "width", NULL
8240 };
8241
8242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8244 if (!SWIG_IsOK(res1)) {
8245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8246 }
8247 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8248 ecode2 = SWIG_AsVal_int(obj1, &val2);
8249 if (!SWIG_IsOK(ecode2)) {
8250 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8251 }
8252 arg2 = static_cast< int >(val2);
8253 {
8254 PyThreadState* __tstate = wxPyBeginAllowThreads();
8255 (arg1)->Wrap(arg2);
8256 wxPyEndAllowThreads(__tstate);
8257 if (PyErr_Occurred()) SWIG_fail;
8258 }
8259 resultobj = SWIG_Py_Void();
8260 return resultobj;
8261 fail:
8262 return NULL;
8263 }
8264
8265
8266 SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8267 PyObject *resultobj = 0;
8268 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8269 SwigValueWrapper<wxVisualAttributes > result;
8270 int val1 ;
8271 int ecode1 = 0 ;
8272 PyObject * obj0 = 0 ;
8273 char * kwnames[] = {
8274 (char *) "variant", NULL
8275 };
8276
8277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8278 if (obj0) {
8279 ecode1 = SWIG_AsVal_int(obj0, &val1);
8280 if (!SWIG_IsOK(ecode1)) {
8281 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8282 }
8283 arg1 = static_cast< wxWindowVariant >(val1);
8284 }
8285 {
8286 if (!wxPyCheckForApp()) SWIG_fail;
8287 PyThreadState* __tstate = wxPyBeginAllowThreads();
8288 result = wxStaticText::GetClassDefaultAttributes(arg1);
8289 wxPyEndAllowThreads(__tstate);
8290 if (PyErr_Occurred()) SWIG_fail;
8291 }
8292 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8293 return resultobj;
8294 fail:
8295 return NULL;
8296 }
8297
8298
8299 SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8300 PyObject *obj;
8301 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8302 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8303 return SWIG_Py_Void();
8304 }
8305
8306 SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8307 return SWIG_Python_InitShadowInstance(args);
8308 }
8309
8310 SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8311 PyObject *resultobj = 0;
8312 wxWindow *arg1 = (wxWindow *) 0 ;
8313 int arg2 = (int) -1 ;
8314 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8315 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8316 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8317 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8318 wxSize const &arg5_defvalue = wxDefaultSize ;
8319 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8320 long arg6 = (long) 0 ;
8321 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8322 wxString *arg7 = (wxString *) &arg7_defvalue ;
8323 wxStaticBitmap *result = 0 ;
8324 void *argp1 = 0 ;
8325 int res1 = 0 ;
8326 int val2 ;
8327 int ecode2 = 0 ;
8328 void *argp3 = 0 ;
8329 int res3 = 0 ;
8330 wxPoint temp4 ;
8331 wxSize temp5 ;
8332 long val6 ;
8333 int ecode6 = 0 ;
8334 bool temp7 = false ;
8335 PyObject * obj0 = 0 ;
8336 PyObject * obj1 = 0 ;
8337 PyObject * obj2 = 0 ;
8338 PyObject * obj3 = 0 ;
8339 PyObject * obj4 = 0 ;
8340 PyObject * obj5 = 0 ;
8341 PyObject * obj6 = 0 ;
8342 char * kwnames[] = {
8343 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8344 };
8345
8346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8348 if (!SWIG_IsOK(res1)) {
8349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8350 }
8351 arg1 = reinterpret_cast< wxWindow * >(argp1);
8352 if (obj1) {
8353 ecode2 = SWIG_AsVal_int(obj1, &val2);
8354 if (!SWIG_IsOK(ecode2)) {
8355 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8356 }
8357 arg2 = static_cast< int >(val2);
8358 }
8359 if (obj2) {
8360 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8361 if (!SWIG_IsOK(res3)) {
8362 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8363 }
8364 if (!argp3) {
8365 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8366 }
8367 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8368 }
8369 if (obj3) {
8370 {
8371 arg4 = &temp4;
8372 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8373 }
8374 }
8375 if (obj4) {
8376 {
8377 arg5 = &temp5;
8378 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8379 }
8380 }
8381 if (obj5) {
8382 ecode6 = SWIG_AsVal_long(obj5, &val6);
8383 if (!SWIG_IsOK(ecode6)) {
8384 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8385 }
8386 arg6 = static_cast< long >(val6);
8387 }
8388 if (obj6) {
8389 {
8390 arg7 = wxString_in_helper(obj6);
8391 if (arg7 == NULL) SWIG_fail;
8392 temp7 = true;
8393 }
8394 }
8395 {
8396 if (!wxPyCheckForApp()) SWIG_fail;
8397 PyThreadState* __tstate = wxPyBeginAllowThreads();
8398 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8399 wxPyEndAllowThreads(__tstate);
8400 if (PyErr_Occurred()) SWIG_fail;
8401 }
8402 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8403 {
8404 if (temp7)
8405 delete arg7;
8406 }
8407 return resultobj;
8408 fail:
8409 {
8410 if (temp7)
8411 delete arg7;
8412 }
8413 return NULL;
8414 }
8415
8416
8417 SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8418 PyObject *resultobj = 0;
8419 wxStaticBitmap *result = 0 ;
8420
8421 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8422 {
8423 if (!wxPyCheckForApp()) SWIG_fail;
8424 PyThreadState* __tstate = wxPyBeginAllowThreads();
8425 result = (wxStaticBitmap *)new wxStaticBitmap();
8426 wxPyEndAllowThreads(__tstate);
8427 if (PyErr_Occurred()) SWIG_fail;
8428 }
8429 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8430 return resultobj;
8431 fail:
8432 return NULL;
8433 }
8434
8435
8436 SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8437 PyObject *resultobj = 0;
8438 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8439 wxWindow *arg2 = (wxWindow *) 0 ;
8440 int arg3 = (int) -1 ;
8441 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8442 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8443 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8444 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8445 wxSize const &arg6_defvalue = wxDefaultSize ;
8446 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8447 long arg7 = (long) 0 ;
8448 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8449 wxString *arg8 = (wxString *) &arg8_defvalue ;
8450 bool result;
8451 void *argp1 = 0 ;
8452 int res1 = 0 ;
8453 void *argp2 = 0 ;
8454 int res2 = 0 ;
8455 int val3 ;
8456 int ecode3 = 0 ;
8457 void *argp4 = 0 ;
8458 int res4 = 0 ;
8459 wxPoint temp5 ;
8460 wxSize temp6 ;
8461 long val7 ;
8462 int ecode7 = 0 ;
8463 bool temp8 = false ;
8464 PyObject * obj0 = 0 ;
8465 PyObject * obj1 = 0 ;
8466 PyObject * obj2 = 0 ;
8467 PyObject * obj3 = 0 ;
8468 PyObject * obj4 = 0 ;
8469 PyObject * obj5 = 0 ;
8470 PyObject * obj6 = 0 ;
8471 PyObject * obj7 = 0 ;
8472 char * kwnames[] = {
8473 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8474 };
8475
8476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8478 if (!SWIG_IsOK(res1)) {
8479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8480 }
8481 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8482 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8483 if (!SWIG_IsOK(res2)) {
8484 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8485 }
8486 arg2 = reinterpret_cast< wxWindow * >(argp2);
8487 if (obj2) {
8488 ecode3 = SWIG_AsVal_int(obj2, &val3);
8489 if (!SWIG_IsOK(ecode3)) {
8490 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8491 }
8492 arg3 = static_cast< int >(val3);
8493 }
8494 if (obj3) {
8495 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8496 if (!SWIG_IsOK(res4)) {
8497 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8498 }
8499 if (!argp4) {
8500 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8501 }
8502 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8503 }
8504 if (obj4) {
8505 {
8506 arg5 = &temp5;
8507 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8508 }
8509 }
8510 if (obj5) {
8511 {
8512 arg6 = &temp6;
8513 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8514 }
8515 }
8516 if (obj6) {
8517 ecode7 = SWIG_AsVal_long(obj6, &val7);
8518 if (!SWIG_IsOK(ecode7)) {
8519 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8520 }
8521 arg7 = static_cast< long >(val7);
8522 }
8523 if (obj7) {
8524 {
8525 arg8 = wxString_in_helper(obj7);
8526 if (arg8 == NULL) SWIG_fail;
8527 temp8 = true;
8528 }
8529 }
8530 {
8531 PyThreadState* __tstate = wxPyBeginAllowThreads();
8532 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8533 wxPyEndAllowThreads(__tstate);
8534 if (PyErr_Occurred()) SWIG_fail;
8535 }
8536 {
8537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8538 }
8539 {
8540 if (temp8)
8541 delete arg8;
8542 }
8543 return resultobj;
8544 fail:
8545 {
8546 if (temp8)
8547 delete arg8;
8548 }
8549 return NULL;
8550 }
8551
8552
8553 SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8554 PyObject *resultobj = 0;
8555 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8556 wxBitmap result;
8557 void *argp1 = 0 ;
8558 int res1 = 0 ;
8559 PyObject *swig_obj[1] ;
8560
8561 if (!args) SWIG_fail;
8562 swig_obj[0] = args;
8563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8564 if (!SWIG_IsOK(res1)) {
8565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8566 }
8567 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8568 {
8569 PyThreadState* __tstate = wxPyBeginAllowThreads();
8570 result = (arg1)->GetBitmap();
8571 wxPyEndAllowThreads(__tstate);
8572 if (PyErr_Occurred()) SWIG_fail;
8573 }
8574 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8575 return resultobj;
8576 fail:
8577 return NULL;
8578 }
8579
8580
8581 SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8582 PyObject *resultobj = 0;
8583 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8584 wxBitmap *arg2 = 0 ;
8585 void *argp1 = 0 ;
8586 int res1 = 0 ;
8587 void *argp2 = 0 ;
8588 int res2 = 0 ;
8589 PyObject * obj0 = 0 ;
8590 PyObject * obj1 = 0 ;
8591 char * kwnames[] = {
8592 (char *) "self",(char *) "bitmap", NULL
8593 };
8594
8595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8597 if (!SWIG_IsOK(res1)) {
8598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8599 }
8600 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8601 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8602 if (!SWIG_IsOK(res2)) {
8603 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8604 }
8605 if (!argp2) {
8606 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8607 }
8608 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8609 {
8610 PyThreadState* __tstate = wxPyBeginAllowThreads();
8611 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8612 wxPyEndAllowThreads(__tstate);
8613 if (PyErr_Occurred()) SWIG_fail;
8614 }
8615 resultobj = SWIG_Py_Void();
8616 return resultobj;
8617 fail:
8618 return NULL;
8619 }
8620
8621
8622 SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8623 PyObject *resultobj = 0;
8624 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8625 wxIcon *arg2 = 0 ;
8626 void *argp1 = 0 ;
8627 int res1 = 0 ;
8628 void *argp2 = 0 ;
8629 int res2 = 0 ;
8630 PyObject * obj0 = 0 ;
8631 PyObject * obj1 = 0 ;
8632 char * kwnames[] = {
8633 (char *) "self",(char *) "icon", NULL
8634 };
8635
8636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8638 if (!SWIG_IsOK(res1)) {
8639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8640 }
8641 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8642 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8643 if (!SWIG_IsOK(res2)) {
8644 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8645 }
8646 if (!argp2) {
8647 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8648 }
8649 arg2 = reinterpret_cast< wxIcon * >(argp2);
8650 {
8651 PyThreadState* __tstate = wxPyBeginAllowThreads();
8652 (arg1)->SetIcon((wxIcon const &)*arg2);
8653 wxPyEndAllowThreads(__tstate);
8654 if (PyErr_Occurred()) SWIG_fail;
8655 }
8656 resultobj = SWIG_Py_Void();
8657 return resultobj;
8658 fail:
8659 return NULL;
8660 }
8661
8662
8663 SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8664 PyObject *resultobj = 0;
8665 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8666 SwigValueWrapper<wxVisualAttributes > result;
8667 int val1 ;
8668 int ecode1 = 0 ;
8669 PyObject * obj0 = 0 ;
8670 char * kwnames[] = {
8671 (char *) "variant", NULL
8672 };
8673
8674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8675 if (obj0) {
8676 ecode1 = SWIG_AsVal_int(obj0, &val1);
8677 if (!SWIG_IsOK(ecode1)) {
8678 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8679 }
8680 arg1 = static_cast< wxWindowVariant >(val1);
8681 }
8682 {
8683 if (!wxPyCheckForApp()) SWIG_fail;
8684 PyThreadState* __tstate = wxPyBeginAllowThreads();
8685 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8686 wxPyEndAllowThreads(__tstate);
8687 if (PyErr_Occurred()) SWIG_fail;
8688 }
8689 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8690 return resultobj;
8691 fail:
8692 return NULL;
8693 }
8694
8695
8696 SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8697 PyObject *obj;
8698 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8699 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8700 return SWIG_Py_Void();
8701 }
8702
8703 SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8704 return SWIG_Python_InitShadowInstance(args);
8705 }
8706
8707 SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8708 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8709 return 1;
8710 }
8711
8712
8713 SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8714 PyObject *pyobj = 0;
8715
8716 {
8717 #if wxUSE_UNICODE
8718 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8719 #else
8720 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8721 #endif
8722 }
8723 return pyobj;
8724 }
8725
8726
8727 SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8728 PyObject *resultobj = 0;
8729 wxWindow *arg1 = (wxWindow *) 0 ;
8730 int arg2 = (int) -1 ;
8731 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8732 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8733 wxSize const &arg4_defvalue = wxDefaultSize ;
8734 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8735 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8736 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8737 long arg6 = (long) 0 ;
8738 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8739 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8740 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8741 wxString *arg8 = (wxString *) &arg8_defvalue ;
8742 wxListBox *result = 0 ;
8743 void *argp1 = 0 ;
8744 int res1 = 0 ;
8745 int val2 ;
8746 int ecode2 = 0 ;
8747 wxPoint temp3 ;
8748 wxSize temp4 ;
8749 bool temp5 = false ;
8750 long val6 ;
8751 int ecode6 = 0 ;
8752 void *argp7 = 0 ;
8753 int res7 = 0 ;
8754 bool temp8 = false ;
8755 PyObject * obj0 = 0 ;
8756 PyObject * obj1 = 0 ;
8757 PyObject * obj2 = 0 ;
8758 PyObject * obj3 = 0 ;
8759 PyObject * obj4 = 0 ;
8760 PyObject * obj5 = 0 ;
8761 PyObject * obj6 = 0 ;
8762 PyObject * obj7 = 0 ;
8763 char * kwnames[] = {
8764 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8765 };
8766
8767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8769 if (!SWIG_IsOK(res1)) {
8770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8771 }
8772 arg1 = reinterpret_cast< wxWindow * >(argp1);
8773 if (obj1) {
8774 ecode2 = SWIG_AsVal_int(obj1, &val2);
8775 if (!SWIG_IsOK(ecode2)) {
8776 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8777 }
8778 arg2 = static_cast< int >(val2);
8779 }
8780 if (obj2) {
8781 {
8782 arg3 = &temp3;
8783 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
8784 }
8785 }
8786 if (obj3) {
8787 {
8788 arg4 = &temp4;
8789 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
8790 }
8791 }
8792 if (obj4) {
8793 {
8794 if (! PySequence_Check(obj4)) {
8795 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8796 SWIG_fail;
8797 }
8798 arg5 = new wxArrayString;
8799 temp5 = true;
8800 int i, len=PySequence_Length(obj4);
8801 for (i=0; i<len; i++) {
8802 PyObject* item = PySequence_GetItem(obj4, i);
8803 wxString* s = wxString_in_helper(item);
8804 if (PyErr_Occurred()) SWIG_fail;
8805 arg5->Add(*s);
8806 delete s;
8807 Py_DECREF(item);
8808 }
8809 }
8810 }
8811 if (obj5) {
8812 ecode6 = SWIG_AsVal_long(obj5, &val6);
8813 if (!SWIG_IsOK(ecode6)) {
8814 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8815 }
8816 arg6 = static_cast< long >(val6);
8817 }
8818 if (obj6) {
8819 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8820 if (!SWIG_IsOK(res7)) {
8821 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8822 }
8823 if (!argp7) {
8824 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8825 }
8826 arg7 = reinterpret_cast< wxValidator * >(argp7);
8827 }
8828 if (obj7) {
8829 {
8830 arg8 = wxString_in_helper(obj7);
8831 if (arg8 == NULL) SWIG_fail;
8832 temp8 = true;
8833 }
8834 }
8835 {
8836 if (!wxPyCheckForApp()) SWIG_fail;
8837 PyThreadState* __tstate = wxPyBeginAllowThreads();
8838 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8839 wxPyEndAllowThreads(__tstate);
8840 if (PyErr_Occurred()) SWIG_fail;
8841 }
8842 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8843 {
8844 if (temp5) delete arg5;
8845 }
8846 {
8847 if (temp8)
8848 delete arg8;
8849 }
8850 return resultobj;
8851 fail:
8852 {
8853 if (temp5) delete arg5;
8854 }
8855 {
8856 if (temp8)
8857 delete arg8;
8858 }
8859 return NULL;
8860 }
8861
8862
8863 SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8864 PyObject *resultobj = 0;
8865 wxListBox *result = 0 ;
8866
8867 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8868 {
8869 if (!wxPyCheckForApp()) SWIG_fail;
8870 PyThreadState* __tstate = wxPyBeginAllowThreads();
8871 result = (wxListBox *)new wxListBox();
8872 wxPyEndAllowThreads(__tstate);
8873 if (PyErr_Occurred()) SWIG_fail;
8874 }
8875 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8876 return resultobj;
8877 fail:
8878 return NULL;
8879 }
8880
8881
8882 SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8883 PyObject *resultobj = 0;
8884 wxListBox *arg1 = (wxListBox *) 0 ;
8885 wxWindow *arg2 = (wxWindow *) 0 ;
8886 int arg3 = (int) -1 ;
8887 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8888 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8889 wxSize const &arg5_defvalue = wxDefaultSize ;
8890 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8891 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8892 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8893 long arg7 = (long) 0 ;
8894 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8895 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8896 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8897 wxString *arg9 = (wxString *) &arg9_defvalue ;
8898 bool result;
8899 void *argp1 = 0 ;
8900 int res1 = 0 ;
8901 void *argp2 = 0 ;
8902 int res2 = 0 ;
8903 int val3 ;
8904 int ecode3 = 0 ;
8905 wxPoint temp4 ;
8906 wxSize temp5 ;
8907 bool temp6 = false ;
8908 long val7 ;
8909 int ecode7 = 0 ;
8910 void *argp8 = 0 ;
8911 int res8 = 0 ;
8912 bool temp9 = false ;
8913 PyObject * obj0 = 0 ;
8914 PyObject * obj1 = 0 ;
8915 PyObject * obj2 = 0 ;
8916 PyObject * obj3 = 0 ;
8917 PyObject * obj4 = 0 ;
8918 PyObject * obj5 = 0 ;
8919 PyObject * obj6 = 0 ;
8920 PyObject * obj7 = 0 ;
8921 PyObject * obj8 = 0 ;
8922 char * kwnames[] = {
8923 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8924 };
8925
8926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
8927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
8928 if (!SWIG_IsOK(res1)) {
8929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
8930 }
8931 arg1 = reinterpret_cast< wxListBox * >(argp1);
8932 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8933 if (!SWIG_IsOK(res2)) {
8934 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8935 }
8936 arg2 = reinterpret_cast< wxWindow * >(argp2);
8937 if (obj2) {
8938 ecode3 = SWIG_AsVal_int(obj2, &val3);
8939 if (!SWIG_IsOK(ecode3)) {
8940 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
8941 }
8942 arg3 = static_cast< int >(val3);
8943 }
8944 if (obj3) {
8945 {
8946 arg4 = &temp4;
8947 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8948 }
8949 }
8950 if (obj4) {
8951 {
8952 arg5 = &temp5;
8953 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8954 }
8955 }
8956 if (obj5) {
8957 {
8958 if (! PySequence_Check(obj5)) {
8959 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8960 SWIG_fail;
8961 }
8962 arg6 = new wxArrayString;
8963 temp6 = true;
8964 int i, len=PySequence_Length(obj5);
8965 for (i=0; i<len; i++) {
8966 PyObject* item = PySequence_GetItem(obj5, i);
8967 wxString* s = wxString_in_helper(item);
8968 if (PyErr_Occurred()) SWIG_fail;
8969 arg6->Add(*s);
8970 delete s;
8971 Py_DECREF(item);
8972 }
8973 }
8974 }
8975 if (obj6) {
8976 ecode7 = SWIG_AsVal_long(obj6, &val7);
8977 if (!SWIG_IsOK(ecode7)) {
8978 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
8979 }
8980 arg7 = static_cast< long >(val7);
8981 }
8982 if (obj7) {
8983 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
8984 if (!SWIG_IsOK(res8)) {
8985 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
8986 }
8987 if (!argp8) {
8988 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
8989 }
8990 arg8 = reinterpret_cast< wxValidator * >(argp8);
8991 }
8992 if (obj8) {
8993 {
8994 arg9 = wxString_in_helper(obj8);
8995 if (arg9 == NULL) SWIG_fail;
8996 temp9 = true;
8997 }
8998 }
8999 {
9000 PyThreadState* __tstate = wxPyBeginAllowThreads();
9001 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9002 wxPyEndAllowThreads(__tstate);
9003 if (PyErr_Occurred()) SWIG_fail;
9004 }
9005 {
9006 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9007 }
9008 {
9009 if (temp6) delete arg6;
9010 }
9011 {
9012 if (temp9)
9013 delete arg9;
9014 }
9015 return resultobj;
9016 fail:
9017 {
9018 if (temp6) delete arg6;
9019 }
9020 {
9021 if (temp9)
9022 delete arg9;
9023 }
9024 return NULL;
9025 }
9026
9027
9028 SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9029 PyObject *resultobj = 0;
9030 wxListBox *arg1 = (wxListBox *) 0 ;
9031 wxString *arg2 = 0 ;
9032 int arg3 ;
9033 PyObject *arg4 = (PyObject *) NULL ;
9034 void *argp1 = 0 ;
9035 int res1 = 0 ;
9036 bool temp2 = false ;
9037 int val3 ;
9038 int ecode3 = 0 ;
9039 PyObject * obj0 = 0 ;
9040 PyObject * obj1 = 0 ;
9041 PyObject * obj2 = 0 ;
9042 PyObject * obj3 = 0 ;
9043 char * kwnames[] = {
9044 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9045 };
9046
9047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9049 if (!SWIG_IsOK(res1)) {
9050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9051 }
9052 arg1 = reinterpret_cast< wxListBox * >(argp1);
9053 {
9054 arg2 = wxString_in_helper(obj1);
9055 if (arg2 == NULL) SWIG_fail;
9056 temp2 = true;
9057 }
9058 ecode3 = SWIG_AsVal_int(obj2, &val3);
9059 if (!SWIG_IsOK(ecode3)) {
9060 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9061 }
9062 arg3 = static_cast< int >(val3);
9063 if (obj3) {
9064 arg4 = obj3;
9065 }
9066 {
9067 PyThreadState* __tstate = wxPyBeginAllowThreads();
9068 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9069 wxPyEndAllowThreads(__tstate);
9070 if (PyErr_Occurred()) SWIG_fail;
9071 }
9072 resultobj = SWIG_Py_Void();
9073 {
9074 if (temp2)
9075 delete arg2;
9076 }
9077 return resultobj;
9078 fail:
9079 {
9080 if (temp2)
9081 delete arg2;
9082 }
9083 return NULL;
9084 }
9085
9086
9087 SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9088 PyObject *resultobj = 0;
9089 wxListBox *arg1 = (wxListBox *) 0 ;
9090 wxArrayString *arg2 = 0 ;
9091 int arg3 ;
9092 void *argp1 = 0 ;
9093 int res1 = 0 ;
9094 bool temp2 = false ;
9095 int val3 ;
9096 int ecode3 = 0 ;
9097 PyObject * obj0 = 0 ;
9098 PyObject * obj1 = 0 ;
9099 PyObject * obj2 = 0 ;
9100 char * kwnames[] = {
9101 (char *) "self",(char *) "items",(char *) "pos", NULL
9102 };
9103
9104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9106 if (!SWIG_IsOK(res1)) {
9107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9108 }
9109 arg1 = reinterpret_cast< wxListBox * >(argp1);
9110 {
9111 if (! PySequence_Check(obj1)) {
9112 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9113 SWIG_fail;
9114 }
9115 arg2 = new wxArrayString;
9116 temp2 = true;
9117 int i, len=PySequence_Length(obj1);
9118 for (i=0; i<len; i++) {
9119 PyObject* item = PySequence_GetItem(obj1, i);
9120 wxString* s = wxString_in_helper(item);
9121 if (PyErr_Occurred()) SWIG_fail;
9122 arg2->Add(*s);
9123 delete s;
9124 Py_DECREF(item);
9125 }
9126 }
9127 ecode3 = SWIG_AsVal_int(obj2, &val3);
9128 if (!SWIG_IsOK(ecode3)) {
9129 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "int""'");
9130 }
9131 arg3 = static_cast< int >(val3);
9132 {
9133 PyThreadState* __tstate = wxPyBeginAllowThreads();
9134 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9135 wxPyEndAllowThreads(__tstate);
9136 if (PyErr_Occurred()) SWIG_fail;
9137 }
9138 resultobj = SWIG_Py_Void();
9139 {
9140 if (temp2) delete arg2;
9141 }
9142 return resultobj;
9143 fail:
9144 {
9145 if (temp2) delete arg2;
9146 }
9147 return NULL;
9148 }
9149
9150
9151 SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9152 PyObject *resultobj = 0;
9153 wxListBox *arg1 = (wxListBox *) 0 ;
9154 wxArrayString *arg2 = 0 ;
9155 void *argp1 = 0 ;
9156 int res1 = 0 ;
9157 bool temp2 = false ;
9158 PyObject * obj0 = 0 ;
9159 PyObject * obj1 = 0 ;
9160 char * kwnames[] = {
9161 (char *) "self",(char *) "items", NULL
9162 };
9163
9164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9166 if (!SWIG_IsOK(res1)) {
9167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9168 }
9169 arg1 = reinterpret_cast< wxListBox * >(argp1);
9170 {
9171 if (! PySequence_Check(obj1)) {
9172 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9173 SWIG_fail;
9174 }
9175 arg2 = new wxArrayString;
9176 temp2 = true;
9177 int i, len=PySequence_Length(obj1);
9178 for (i=0; i<len; i++) {
9179 PyObject* item = PySequence_GetItem(obj1, i);
9180 wxString* s = wxString_in_helper(item);
9181 if (PyErr_Occurred()) SWIG_fail;
9182 arg2->Add(*s);
9183 delete s;
9184 Py_DECREF(item);
9185 }
9186 }
9187 {
9188 PyThreadState* __tstate = wxPyBeginAllowThreads();
9189 (arg1)->Set((wxArrayString const &)*arg2);
9190 wxPyEndAllowThreads(__tstate);
9191 if (PyErr_Occurred()) SWIG_fail;
9192 }
9193 resultobj = SWIG_Py_Void();
9194 {
9195 if (temp2) delete arg2;
9196 }
9197 return resultobj;
9198 fail:
9199 {
9200 if (temp2) delete arg2;
9201 }
9202 return NULL;
9203 }
9204
9205
9206 SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9207 PyObject *resultobj = 0;
9208 wxListBox *arg1 = (wxListBox *) 0 ;
9209 int arg2 ;
9210 bool result;
9211 void *argp1 = 0 ;
9212 int res1 = 0 ;
9213 int val2 ;
9214 int ecode2 = 0 ;
9215 PyObject * obj0 = 0 ;
9216 PyObject * obj1 = 0 ;
9217 char * kwnames[] = {
9218 (char *) "self",(char *) "n", NULL
9219 };
9220
9221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9223 if (!SWIG_IsOK(res1)) {
9224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9225 }
9226 arg1 = reinterpret_cast< wxListBox * >(argp1);
9227 ecode2 = SWIG_AsVal_int(obj1, &val2);
9228 if (!SWIG_IsOK(ecode2)) {
9229 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9230 }
9231 arg2 = static_cast< int >(val2);
9232 {
9233 PyThreadState* __tstate = wxPyBeginAllowThreads();
9234 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9235 wxPyEndAllowThreads(__tstate);
9236 if (PyErr_Occurred()) SWIG_fail;
9237 }
9238 {
9239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9240 }
9241 return resultobj;
9242 fail:
9243 return NULL;
9244 }
9245
9246
9247 SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9248 PyObject *resultobj = 0;
9249 wxListBox *arg1 = (wxListBox *) 0 ;
9250 int arg2 ;
9251 bool arg3 = (bool) true ;
9252 void *argp1 = 0 ;
9253 int res1 = 0 ;
9254 int val2 ;
9255 int ecode2 = 0 ;
9256 bool val3 ;
9257 int ecode3 = 0 ;
9258 PyObject * obj0 = 0 ;
9259 PyObject * obj1 = 0 ;
9260 PyObject * obj2 = 0 ;
9261 char * kwnames[] = {
9262 (char *) "self",(char *) "n",(char *) "select", NULL
9263 };
9264
9265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9267 if (!SWIG_IsOK(res1)) {
9268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9269 }
9270 arg1 = reinterpret_cast< wxListBox * >(argp1);
9271 ecode2 = SWIG_AsVal_int(obj1, &val2);
9272 if (!SWIG_IsOK(ecode2)) {
9273 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9274 }
9275 arg2 = static_cast< int >(val2);
9276 if (obj2) {
9277 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9278 if (!SWIG_IsOK(ecode3)) {
9279 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9280 }
9281 arg3 = static_cast< bool >(val3);
9282 }
9283 {
9284 PyThreadState* __tstate = wxPyBeginAllowThreads();
9285 (arg1)->SetSelection(arg2,arg3);
9286 wxPyEndAllowThreads(__tstate);
9287 if (PyErr_Occurred()) SWIG_fail;
9288 }
9289 resultobj = SWIG_Py_Void();
9290 return resultobj;
9291 fail:
9292 return NULL;
9293 }
9294
9295
9296 SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9297 PyObject *resultobj = 0;
9298 wxListBox *arg1 = (wxListBox *) 0 ;
9299 int arg2 ;
9300 void *argp1 = 0 ;
9301 int res1 = 0 ;
9302 int val2 ;
9303 int ecode2 = 0 ;
9304 PyObject * obj0 = 0 ;
9305 PyObject * obj1 = 0 ;
9306 char * kwnames[] = {
9307 (char *) "self",(char *) "n", NULL
9308 };
9309
9310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9312 if (!SWIG_IsOK(res1)) {
9313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9314 }
9315 arg1 = reinterpret_cast< wxListBox * >(argp1);
9316 ecode2 = SWIG_AsVal_int(obj1, &val2);
9317 if (!SWIG_IsOK(ecode2)) {
9318 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9319 }
9320 arg2 = static_cast< int >(val2);
9321 {
9322 PyThreadState* __tstate = wxPyBeginAllowThreads();
9323 (arg1)->Select(arg2);
9324 wxPyEndAllowThreads(__tstate);
9325 if (PyErr_Occurred()) SWIG_fail;
9326 }
9327 resultobj = SWIG_Py_Void();
9328 return resultobj;
9329 fail:
9330 return NULL;
9331 }
9332
9333
9334 SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9335 PyObject *resultobj = 0;
9336 wxListBox *arg1 = (wxListBox *) 0 ;
9337 int arg2 ;
9338 void *argp1 = 0 ;
9339 int res1 = 0 ;
9340 int val2 ;
9341 int ecode2 = 0 ;
9342 PyObject * obj0 = 0 ;
9343 PyObject * obj1 = 0 ;
9344 char * kwnames[] = {
9345 (char *) "self",(char *) "n", NULL
9346 };
9347
9348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9350 if (!SWIG_IsOK(res1)) {
9351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9352 }
9353 arg1 = reinterpret_cast< wxListBox * >(argp1);
9354 ecode2 = SWIG_AsVal_int(obj1, &val2);
9355 if (!SWIG_IsOK(ecode2)) {
9356 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9357 }
9358 arg2 = static_cast< int >(val2);
9359 {
9360 PyThreadState* __tstate = wxPyBeginAllowThreads();
9361 (arg1)->Deselect(arg2);
9362 wxPyEndAllowThreads(__tstate);
9363 if (PyErr_Occurred()) SWIG_fail;
9364 }
9365 resultobj = SWIG_Py_Void();
9366 return resultobj;
9367 fail:
9368 return NULL;
9369 }
9370
9371
9372 SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9373 PyObject *resultobj = 0;
9374 wxListBox *arg1 = (wxListBox *) 0 ;
9375 int arg2 = (int) -1 ;
9376 void *argp1 = 0 ;
9377 int res1 = 0 ;
9378 int val2 ;
9379 int ecode2 = 0 ;
9380 PyObject * obj0 = 0 ;
9381 PyObject * obj1 = 0 ;
9382 char * kwnames[] = {
9383 (char *) "self",(char *) "itemToLeaveSelected", NULL
9384 };
9385
9386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9388 if (!SWIG_IsOK(res1)) {
9389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9390 }
9391 arg1 = reinterpret_cast< wxListBox * >(argp1);
9392 if (obj1) {
9393 ecode2 = SWIG_AsVal_int(obj1, &val2);
9394 if (!SWIG_IsOK(ecode2)) {
9395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9396 }
9397 arg2 = static_cast< int >(val2);
9398 }
9399 {
9400 PyThreadState* __tstate = wxPyBeginAllowThreads();
9401 (arg1)->DeselectAll(arg2);
9402 wxPyEndAllowThreads(__tstate);
9403 if (PyErr_Occurred()) SWIG_fail;
9404 }
9405 resultobj = SWIG_Py_Void();
9406 return resultobj;
9407 fail:
9408 return NULL;
9409 }
9410
9411
9412 SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9413 PyObject *resultobj = 0;
9414 wxListBox *arg1 = (wxListBox *) 0 ;
9415 wxString *arg2 = 0 ;
9416 bool arg3 = (bool) true ;
9417 bool result;
9418 void *argp1 = 0 ;
9419 int res1 = 0 ;
9420 bool temp2 = false ;
9421 bool val3 ;
9422 int ecode3 = 0 ;
9423 PyObject * obj0 = 0 ;
9424 PyObject * obj1 = 0 ;
9425 PyObject * obj2 = 0 ;
9426 char * kwnames[] = {
9427 (char *) "self",(char *) "s",(char *) "select", NULL
9428 };
9429
9430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9432 if (!SWIG_IsOK(res1)) {
9433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9434 }
9435 arg1 = reinterpret_cast< wxListBox * >(argp1);
9436 {
9437 arg2 = wxString_in_helper(obj1);
9438 if (arg2 == NULL) SWIG_fail;
9439 temp2 = true;
9440 }
9441 if (obj2) {
9442 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9443 if (!SWIG_IsOK(ecode3)) {
9444 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9445 }
9446 arg3 = static_cast< bool >(val3);
9447 }
9448 {
9449 PyThreadState* __tstate = wxPyBeginAllowThreads();
9450 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9451 wxPyEndAllowThreads(__tstate);
9452 if (PyErr_Occurred()) SWIG_fail;
9453 }
9454 {
9455 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9456 }
9457 {
9458 if (temp2)
9459 delete arg2;
9460 }
9461 return resultobj;
9462 fail:
9463 {
9464 if (temp2)
9465 delete arg2;
9466 }
9467 return NULL;
9468 }
9469
9470
9471 SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9472 PyObject *resultobj = 0;
9473 wxListBox *arg1 = (wxListBox *) 0 ;
9474 PyObject *result = 0 ;
9475 void *argp1 = 0 ;
9476 int res1 = 0 ;
9477 PyObject *swig_obj[1] ;
9478
9479 if (!args) SWIG_fail;
9480 swig_obj[0] = args;
9481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9482 if (!SWIG_IsOK(res1)) {
9483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9484 }
9485 arg1 = reinterpret_cast< wxListBox * >(argp1);
9486 {
9487 PyThreadState* __tstate = wxPyBeginAllowThreads();
9488 result = (PyObject *)wxListBox_GetSelections(arg1);
9489 wxPyEndAllowThreads(__tstate);
9490 if (PyErr_Occurred()) SWIG_fail;
9491 }
9492 resultobj = result;
9493 return resultobj;
9494 fail:
9495 return NULL;
9496 }
9497
9498
9499 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9500 PyObject *resultobj = 0;
9501 wxListBox *arg1 = (wxListBox *) 0 ;
9502 int arg2 ;
9503 void *argp1 = 0 ;
9504 int res1 = 0 ;
9505 int val2 ;
9506 int ecode2 = 0 ;
9507 PyObject * obj0 = 0 ;
9508 PyObject * obj1 = 0 ;
9509 char * kwnames[] = {
9510 (char *) "self",(char *) "n", NULL
9511 };
9512
9513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9515 if (!SWIG_IsOK(res1)) {
9516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9517 }
9518 arg1 = reinterpret_cast< wxListBox * >(argp1);
9519 ecode2 = SWIG_AsVal_int(obj1, &val2);
9520 if (!SWIG_IsOK(ecode2)) {
9521 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9522 }
9523 arg2 = static_cast< int >(val2);
9524 {
9525 PyThreadState* __tstate = wxPyBeginAllowThreads();
9526 (arg1)->SetFirstItem(arg2);
9527 wxPyEndAllowThreads(__tstate);
9528 if (PyErr_Occurred()) SWIG_fail;
9529 }
9530 resultobj = SWIG_Py_Void();
9531 return resultobj;
9532 fail:
9533 return NULL;
9534 }
9535
9536
9537 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9538 PyObject *resultobj = 0;
9539 wxListBox *arg1 = (wxListBox *) 0 ;
9540 wxString *arg2 = 0 ;
9541 void *argp1 = 0 ;
9542 int res1 = 0 ;
9543 bool temp2 = false ;
9544 PyObject * obj0 = 0 ;
9545 PyObject * obj1 = 0 ;
9546 char * kwnames[] = {
9547 (char *) "self",(char *) "s", NULL
9548 };
9549
9550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9552 if (!SWIG_IsOK(res1)) {
9553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9554 }
9555 arg1 = reinterpret_cast< wxListBox * >(argp1);
9556 {
9557 arg2 = wxString_in_helper(obj1);
9558 if (arg2 == NULL) SWIG_fail;
9559 temp2 = true;
9560 }
9561 {
9562 PyThreadState* __tstate = wxPyBeginAllowThreads();
9563 (arg1)->SetFirstItem((wxString const &)*arg2);
9564 wxPyEndAllowThreads(__tstate);
9565 if (PyErr_Occurred()) SWIG_fail;
9566 }
9567 resultobj = SWIG_Py_Void();
9568 {
9569 if (temp2)
9570 delete arg2;
9571 }
9572 return resultobj;
9573 fail:
9574 {
9575 if (temp2)
9576 delete arg2;
9577 }
9578 return NULL;
9579 }
9580
9581
9582 SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9583 PyObject *resultobj = 0;
9584 wxListBox *arg1 = (wxListBox *) 0 ;
9585 int arg2 ;
9586 void *argp1 = 0 ;
9587 int res1 = 0 ;
9588 int val2 ;
9589 int ecode2 = 0 ;
9590 PyObject * obj0 = 0 ;
9591 PyObject * obj1 = 0 ;
9592 char * kwnames[] = {
9593 (char *) "self",(char *) "n", NULL
9594 };
9595
9596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9598 if (!SWIG_IsOK(res1)) {
9599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9600 }
9601 arg1 = reinterpret_cast< wxListBox * >(argp1);
9602 ecode2 = SWIG_AsVal_int(obj1, &val2);
9603 if (!SWIG_IsOK(ecode2)) {
9604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9605 }
9606 arg2 = static_cast< int >(val2);
9607 {
9608 PyThreadState* __tstate = wxPyBeginAllowThreads();
9609 (arg1)->EnsureVisible(arg2);
9610 wxPyEndAllowThreads(__tstate);
9611 if (PyErr_Occurred()) SWIG_fail;
9612 }
9613 resultobj = SWIG_Py_Void();
9614 return resultobj;
9615 fail:
9616 return NULL;
9617 }
9618
9619
9620 SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9621 PyObject *resultobj = 0;
9622 wxListBox *arg1 = (wxListBox *) 0 ;
9623 wxString *arg2 = 0 ;
9624 void *argp1 = 0 ;
9625 int res1 = 0 ;
9626 bool temp2 = false ;
9627 PyObject * obj0 = 0 ;
9628 PyObject * obj1 = 0 ;
9629 char * kwnames[] = {
9630 (char *) "self",(char *) "s", NULL
9631 };
9632
9633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9635 if (!SWIG_IsOK(res1)) {
9636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9637 }
9638 arg1 = reinterpret_cast< wxListBox * >(argp1);
9639 {
9640 arg2 = wxString_in_helper(obj1);
9641 if (arg2 == NULL) SWIG_fail;
9642 temp2 = true;
9643 }
9644 {
9645 PyThreadState* __tstate = wxPyBeginAllowThreads();
9646 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9647 wxPyEndAllowThreads(__tstate);
9648 if (PyErr_Occurred()) SWIG_fail;
9649 }
9650 resultobj = SWIG_Py_Void();
9651 {
9652 if (temp2)
9653 delete arg2;
9654 }
9655 return resultobj;
9656 fail:
9657 {
9658 if (temp2)
9659 delete arg2;
9660 }
9661 return NULL;
9662 }
9663
9664
9665 SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9666 PyObject *resultobj = 0;
9667 wxListBox *arg1 = (wxListBox *) 0 ;
9668 bool result;
9669 void *argp1 = 0 ;
9670 int res1 = 0 ;
9671 PyObject *swig_obj[1] ;
9672
9673 if (!args) SWIG_fail;
9674 swig_obj[0] = args;
9675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9676 if (!SWIG_IsOK(res1)) {
9677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9678 }
9679 arg1 = reinterpret_cast< wxListBox * >(argp1);
9680 {
9681 PyThreadState* __tstate = wxPyBeginAllowThreads();
9682 result = (bool)((wxListBox const *)arg1)->IsSorted();
9683 wxPyEndAllowThreads(__tstate);
9684 if (PyErr_Occurred()) SWIG_fail;
9685 }
9686 {
9687 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9688 }
9689 return resultobj;
9690 fail:
9691 return NULL;
9692 }
9693
9694
9695 SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9696 PyObject *resultobj = 0;
9697 wxListBox *arg1 = (wxListBox *) 0 ;
9698 wxPoint *arg2 = 0 ;
9699 int result;
9700 void *argp1 = 0 ;
9701 int res1 = 0 ;
9702 wxPoint temp2 ;
9703 PyObject * obj0 = 0 ;
9704 PyObject * obj1 = 0 ;
9705 char * kwnames[] = {
9706 (char *) "self",(char *) "pt", NULL
9707 };
9708
9709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9711 if (!SWIG_IsOK(res1)) {
9712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9713 }
9714 arg1 = reinterpret_cast< wxListBox * >(argp1);
9715 {
9716 arg2 = &temp2;
9717 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9718 }
9719 {
9720 PyThreadState* __tstate = wxPyBeginAllowThreads();
9721 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9722 wxPyEndAllowThreads(__tstate);
9723 if (PyErr_Occurred()) SWIG_fail;
9724 }
9725 resultobj = SWIG_From_int(static_cast< int >(result));
9726 return resultobj;
9727 fail:
9728 return NULL;
9729 }
9730
9731
9732 SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9733 PyObject *resultobj = 0;
9734 wxListBox *arg1 = (wxListBox *) 0 ;
9735 int arg2 ;
9736 wxColour *arg3 = 0 ;
9737 void *argp1 = 0 ;
9738 int res1 = 0 ;
9739 int val2 ;
9740 int ecode2 = 0 ;
9741 wxColour temp3 ;
9742 PyObject * obj0 = 0 ;
9743 PyObject * obj1 = 0 ;
9744 PyObject * obj2 = 0 ;
9745 char * kwnames[] = {
9746 (char *) "self",(char *) "item",(char *) "c", NULL
9747 };
9748
9749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9751 if (!SWIG_IsOK(res1)) {
9752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9753 }
9754 arg1 = reinterpret_cast< wxListBox * >(argp1);
9755 ecode2 = SWIG_AsVal_int(obj1, &val2);
9756 if (!SWIG_IsOK(ecode2)) {
9757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9758 }
9759 arg2 = static_cast< int >(val2);
9760 {
9761 arg3 = &temp3;
9762 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9763 }
9764 {
9765 PyThreadState* __tstate = wxPyBeginAllowThreads();
9766 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9767 wxPyEndAllowThreads(__tstate);
9768 if (PyErr_Occurred()) SWIG_fail;
9769 }
9770 resultobj = SWIG_Py_Void();
9771 return resultobj;
9772 fail:
9773 return NULL;
9774 }
9775
9776
9777 SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9778 PyObject *resultobj = 0;
9779 wxListBox *arg1 = (wxListBox *) 0 ;
9780 int arg2 ;
9781 wxColour *arg3 = 0 ;
9782 void *argp1 = 0 ;
9783 int res1 = 0 ;
9784 int val2 ;
9785 int ecode2 = 0 ;
9786 wxColour temp3 ;
9787 PyObject * obj0 = 0 ;
9788 PyObject * obj1 = 0 ;
9789 PyObject * obj2 = 0 ;
9790 char * kwnames[] = {
9791 (char *) "self",(char *) "item",(char *) "c", NULL
9792 };
9793
9794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9796 if (!SWIG_IsOK(res1)) {
9797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9798 }
9799 arg1 = reinterpret_cast< wxListBox * >(argp1);
9800 ecode2 = SWIG_AsVal_int(obj1, &val2);
9801 if (!SWIG_IsOK(ecode2)) {
9802 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9803 }
9804 arg2 = static_cast< int >(val2);
9805 {
9806 arg3 = &temp3;
9807 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9808 }
9809 {
9810 PyThreadState* __tstate = wxPyBeginAllowThreads();
9811 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9812 wxPyEndAllowThreads(__tstate);
9813 if (PyErr_Occurred()) SWIG_fail;
9814 }
9815 resultobj = SWIG_Py_Void();
9816 return resultobj;
9817 fail:
9818 return NULL;
9819 }
9820
9821
9822 SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9823 PyObject *resultobj = 0;
9824 wxListBox *arg1 = (wxListBox *) 0 ;
9825 int arg2 ;
9826 wxFont *arg3 = 0 ;
9827 void *argp1 = 0 ;
9828 int res1 = 0 ;
9829 int val2 ;
9830 int ecode2 = 0 ;
9831 void *argp3 = 0 ;
9832 int res3 = 0 ;
9833 PyObject * obj0 = 0 ;
9834 PyObject * obj1 = 0 ;
9835 PyObject * obj2 = 0 ;
9836 char * kwnames[] = {
9837 (char *) "self",(char *) "item",(char *) "f", NULL
9838 };
9839
9840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9842 if (!SWIG_IsOK(res1)) {
9843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9844 }
9845 arg1 = reinterpret_cast< wxListBox * >(argp1);
9846 ecode2 = SWIG_AsVal_int(obj1, &val2);
9847 if (!SWIG_IsOK(ecode2)) {
9848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9849 }
9850 arg2 = static_cast< int >(val2);
9851 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9852 if (!SWIG_IsOK(res3)) {
9853 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9854 }
9855 if (!argp3) {
9856 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9857 }
9858 arg3 = reinterpret_cast< wxFont * >(argp3);
9859 {
9860 PyThreadState* __tstate = wxPyBeginAllowThreads();
9861 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9862 wxPyEndAllowThreads(__tstate);
9863 if (PyErr_Occurred()) SWIG_fail;
9864 }
9865 resultobj = SWIG_Py_Void();
9866 return resultobj;
9867 fail:
9868 return NULL;
9869 }
9870
9871
9872 SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9873 PyObject *resultobj = 0;
9874 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9875 SwigValueWrapper<wxVisualAttributes > result;
9876 int val1 ;
9877 int ecode1 = 0 ;
9878 PyObject * obj0 = 0 ;
9879 char * kwnames[] = {
9880 (char *) "variant", NULL
9881 };
9882
9883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9884 if (obj0) {
9885 ecode1 = SWIG_AsVal_int(obj0, &val1);
9886 if (!SWIG_IsOK(ecode1)) {
9887 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9888 }
9889 arg1 = static_cast< wxWindowVariant >(val1);
9890 }
9891 {
9892 if (!wxPyCheckForApp()) SWIG_fail;
9893 PyThreadState* __tstate = wxPyBeginAllowThreads();
9894 result = wxListBox::GetClassDefaultAttributes(arg1);
9895 wxPyEndAllowThreads(__tstate);
9896 if (PyErr_Occurred()) SWIG_fail;
9897 }
9898 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9899 return resultobj;
9900 fail:
9901 return NULL;
9902 }
9903
9904
9905 SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9906 PyObject *obj;
9907 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9908 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9909 return SWIG_Py_Void();
9910 }
9911
9912 SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9913 return SWIG_Python_InitShadowInstance(args);
9914 }
9915
9916 SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9917 PyObject *resultobj = 0;
9918 wxWindow *arg1 = (wxWindow *) 0 ;
9919 int arg2 = (int) -1 ;
9920 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9921 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9922 wxSize const &arg4_defvalue = wxDefaultSize ;
9923 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9924 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
9925 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
9926 long arg6 = (long) 0 ;
9927 wxValidator const &arg7_defvalue = wxDefaultValidator ;
9928 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
9929 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
9930 wxString *arg8 = (wxString *) &arg8_defvalue ;
9931 wxCheckListBox *result = 0 ;
9932 void *argp1 = 0 ;
9933 int res1 = 0 ;
9934 int val2 ;
9935 int ecode2 = 0 ;
9936 wxPoint temp3 ;
9937 wxSize temp4 ;
9938 bool temp5 = false ;
9939 long val6 ;
9940 int ecode6 = 0 ;
9941 void *argp7 = 0 ;
9942 int res7 = 0 ;
9943 bool temp8 = false ;
9944 PyObject * obj0 = 0 ;
9945 PyObject * obj1 = 0 ;
9946 PyObject * obj2 = 0 ;
9947 PyObject * obj3 = 0 ;
9948 PyObject * obj4 = 0 ;
9949 PyObject * obj5 = 0 ;
9950 PyObject * obj6 = 0 ;
9951 PyObject * obj7 = 0 ;
9952 char * kwnames[] = {
9953 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9954 };
9955
9956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
9957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
9958 if (!SWIG_IsOK(res1)) {
9959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
9960 }
9961 arg1 = reinterpret_cast< wxWindow * >(argp1);
9962 if (obj1) {
9963 ecode2 = SWIG_AsVal_int(obj1, &val2);
9964 if (!SWIG_IsOK(ecode2)) {
9965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
9966 }
9967 arg2 = static_cast< int >(val2);
9968 }
9969 if (obj2) {
9970 {
9971 arg3 = &temp3;
9972 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9973 }
9974 }
9975 if (obj3) {
9976 {
9977 arg4 = &temp4;
9978 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
9979 }
9980 }
9981 if (obj4) {
9982 {
9983 if (! PySequence_Check(obj4)) {
9984 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9985 SWIG_fail;
9986 }
9987 arg5 = new wxArrayString;
9988 temp5 = true;
9989 int i, len=PySequence_Length(obj4);
9990 for (i=0; i<len; i++) {
9991 PyObject* item = PySequence_GetItem(obj4, i);
9992 wxString* s = wxString_in_helper(item);
9993 if (PyErr_Occurred()) SWIG_fail;
9994 arg5->Add(*s);
9995 delete s;
9996 Py_DECREF(item);
9997 }
9998 }
9999 }
10000 if (obj5) {
10001 ecode6 = SWIG_AsVal_long(obj5, &val6);
10002 if (!SWIG_IsOK(ecode6)) {
10003 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10004 }
10005 arg6 = static_cast< long >(val6);
10006 }
10007 if (obj6) {
10008 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10009 if (!SWIG_IsOK(res7)) {
10010 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10011 }
10012 if (!argp7) {
10013 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10014 }
10015 arg7 = reinterpret_cast< wxValidator * >(argp7);
10016 }
10017 if (obj7) {
10018 {
10019 arg8 = wxString_in_helper(obj7);
10020 if (arg8 == NULL) SWIG_fail;
10021 temp8 = true;
10022 }
10023 }
10024 {
10025 if (!wxPyCheckForApp()) SWIG_fail;
10026 PyThreadState* __tstate = wxPyBeginAllowThreads();
10027 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10028 wxPyEndAllowThreads(__tstate);
10029 if (PyErr_Occurred()) SWIG_fail;
10030 }
10031 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10032 {
10033 if (temp5) delete arg5;
10034 }
10035 {
10036 if (temp8)
10037 delete arg8;
10038 }
10039 return resultobj;
10040 fail:
10041 {
10042 if (temp5) delete arg5;
10043 }
10044 {
10045 if (temp8)
10046 delete arg8;
10047 }
10048 return NULL;
10049 }
10050
10051
10052 SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10053 PyObject *resultobj = 0;
10054 wxCheckListBox *result = 0 ;
10055
10056 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10057 {
10058 if (!wxPyCheckForApp()) SWIG_fail;
10059 PyThreadState* __tstate = wxPyBeginAllowThreads();
10060 result = (wxCheckListBox *)new wxCheckListBox();
10061 wxPyEndAllowThreads(__tstate);
10062 if (PyErr_Occurred()) SWIG_fail;
10063 }
10064 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10065 return resultobj;
10066 fail:
10067 return NULL;
10068 }
10069
10070
10071 SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10072 PyObject *resultobj = 0;
10073 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10074 wxWindow *arg2 = (wxWindow *) 0 ;
10075 int arg3 = (int) -1 ;
10076 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10077 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10078 wxSize const &arg5_defvalue = wxDefaultSize ;
10079 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10080 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10081 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10082 long arg7 = (long) 0 ;
10083 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10084 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10085 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10086 wxString *arg9 = (wxString *) &arg9_defvalue ;
10087 bool result;
10088 void *argp1 = 0 ;
10089 int res1 = 0 ;
10090 void *argp2 = 0 ;
10091 int res2 = 0 ;
10092 int val3 ;
10093 int ecode3 = 0 ;
10094 wxPoint temp4 ;
10095 wxSize temp5 ;
10096 bool temp6 = false ;
10097 long val7 ;
10098 int ecode7 = 0 ;
10099 void *argp8 = 0 ;
10100 int res8 = 0 ;
10101 bool temp9 = false ;
10102 PyObject * obj0 = 0 ;
10103 PyObject * obj1 = 0 ;
10104 PyObject * obj2 = 0 ;
10105 PyObject * obj3 = 0 ;
10106 PyObject * obj4 = 0 ;
10107 PyObject * obj5 = 0 ;
10108 PyObject * obj6 = 0 ;
10109 PyObject * obj7 = 0 ;
10110 PyObject * obj8 = 0 ;
10111 char * kwnames[] = {
10112 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10113 };
10114
10115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10117 if (!SWIG_IsOK(res1)) {
10118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10119 }
10120 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10121 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10122 if (!SWIG_IsOK(res2)) {
10123 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10124 }
10125 arg2 = reinterpret_cast< wxWindow * >(argp2);
10126 if (obj2) {
10127 ecode3 = SWIG_AsVal_int(obj2, &val3);
10128 if (!SWIG_IsOK(ecode3)) {
10129 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10130 }
10131 arg3 = static_cast< int >(val3);
10132 }
10133 if (obj3) {
10134 {
10135 arg4 = &temp4;
10136 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10137 }
10138 }
10139 if (obj4) {
10140 {
10141 arg5 = &temp5;
10142 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10143 }
10144 }
10145 if (obj5) {
10146 {
10147 if (! PySequence_Check(obj5)) {
10148 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10149 SWIG_fail;
10150 }
10151 arg6 = new wxArrayString;
10152 temp6 = true;
10153 int i, len=PySequence_Length(obj5);
10154 for (i=0; i<len; i++) {
10155 PyObject* item = PySequence_GetItem(obj5, i);
10156 wxString* s = wxString_in_helper(item);
10157 if (PyErr_Occurred()) SWIG_fail;
10158 arg6->Add(*s);
10159 delete s;
10160 Py_DECREF(item);
10161 }
10162 }
10163 }
10164 if (obj6) {
10165 ecode7 = SWIG_AsVal_long(obj6, &val7);
10166 if (!SWIG_IsOK(ecode7)) {
10167 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10168 }
10169 arg7 = static_cast< long >(val7);
10170 }
10171 if (obj7) {
10172 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10173 if (!SWIG_IsOK(res8)) {
10174 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10175 }
10176 if (!argp8) {
10177 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10178 }
10179 arg8 = reinterpret_cast< wxValidator * >(argp8);
10180 }
10181 if (obj8) {
10182 {
10183 arg9 = wxString_in_helper(obj8);
10184 if (arg9 == NULL) SWIG_fail;
10185 temp9 = true;
10186 }
10187 }
10188 {
10189 PyThreadState* __tstate = wxPyBeginAllowThreads();
10190 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10191 wxPyEndAllowThreads(__tstate);
10192 if (PyErr_Occurred()) SWIG_fail;
10193 }
10194 {
10195 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10196 }
10197 {
10198 if (temp6) delete arg6;
10199 }
10200 {
10201 if (temp9)
10202 delete arg9;
10203 }
10204 return resultobj;
10205 fail:
10206 {
10207 if (temp6) delete arg6;
10208 }
10209 {
10210 if (temp9)
10211 delete arg9;
10212 }
10213 return NULL;
10214 }
10215
10216
10217 SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10218 PyObject *resultobj = 0;
10219 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10220 int arg2 ;
10221 bool result;
10222 void *argp1 = 0 ;
10223 int res1 = 0 ;
10224 int val2 ;
10225 int ecode2 = 0 ;
10226 PyObject * obj0 = 0 ;
10227 PyObject * obj1 = 0 ;
10228 char * kwnames[] = {
10229 (char *) "self",(char *) "index", NULL
10230 };
10231
10232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10234 if (!SWIG_IsOK(res1)) {
10235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10236 }
10237 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10238 ecode2 = SWIG_AsVal_int(obj1, &val2);
10239 if (!SWIG_IsOK(ecode2)) {
10240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "int""'");
10241 }
10242 arg2 = static_cast< int >(val2);
10243 {
10244 PyThreadState* __tstate = wxPyBeginAllowThreads();
10245 result = (bool)(arg1)->IsChecked(arg2);
10246 wxPyEndAllowThreads(__tstate);
10247 if (PyErr_Occurred()) SWIG_fail;
10248 }
10249 {
10250 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10251 }
10252 return resultobj;
10253 fail:
10254 return NULL;
10255 }
10256
10257
10258 SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10259 PyObject *resultobj = 0;
10260 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10261 int arg2 ;
10262 int arg3 = (int) true ;
10263 void *argp1 = 0 ;
10264 int res1 = 0 ;
10265 int val2 ;
10266 int ecode2 = 0 ;
10267 int val3 ;
10268 int ecode3 = 0 ;
10269 PyObject * obj0 = 0 ;
10270 PyObject * obj1 = 0 ;
10271 PyObject * obj2 = 0 ;
10272 char * kwnames[] = {
10273 (char *) "self",(char *) "index",(char *) "check", NULL
10274 };
10275
10276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10278 if (!SWIG_IsOK(res1)) {
10279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10280 }
10281 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10282 ecode2 = SWIG_AsVal_int(obj1, &val2);
10283 if (!SWIG_IsOK(ecode2)) {
10284 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "int""'");
10285 }
10286 arg2 = static_cast< int >(val2);
10287 if (obj2) {
10288 ecode3 = SWIG_AsVal_int(obj2, &val3);
10289 if (!SWIG_IsOK(ecode3)) {
10290 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10291 }
10292 arg3 = static_cast< int >(val3);
10293 }
10294 {
10295 PyThreadState* __tstate = wxPyBeginAllowThreads();
10296 (arg1)->Check(arg2,arg3);
10297 wxPyEndAllowThreads(__tstate);
10298 if (PyErr_Occurred()) SWIG_fail;
10299 }
10300 resultobj = SWIG_Py_Void();
10301 return resultobj;
10302 fail:
10303 return NULL;
10304 }
10305
10306
10307 SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10308 PyObject *resultobj = 0;
10309 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10310 int result;
10311 void *argp1 = 0 ;
10312 int res1 = 0 ;
10313 PyObject *swig_obj[1] ;
10314
10315 if (!args) SWIG_fail;
10316 swig_obj[0] = args;
10317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10318 if (!SWIG_IsOK(res1)) {
10319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10320 }
10321 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10322 {
10323 PyThreadState* __tstate = wxPyBeginAllowThreads();
10324 result = (int)(arg1)->GetItemHeight();
10325 wxPyEndAllowThreads(__tstate);
10326 if (PyErr_Occurred()) SWIG_fail;
10327 }
10328 resultobj = SWIG_From_int(static_cast< int >(result));
10329 return resultobj;
10330 fail:
10331 return NULL;
10332 }
10333
10334
10335 SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10336 PyObject *obj;
10337 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10338 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10339 return SWIG_Py_Void();
10340 }
10341
10342 SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10343 return SWIG_Python_InitShadowInstance(args);
10344 }
10345
10346 SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10347 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10348 return 1;
10349 }
10350
10351
10352 SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10353 PyObject *pyobj = 0;
10354
10355 {
10356 #if wxUSE_UNICODE
10357 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10358 #else
10359 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10360 #endif
10361 }
10362 return pyobj;
10363 }
10364
10365
10366 SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10367 PyObject *resultobj = 0;
10368 wxColour const &arg1_defvalue = wxNullColour ;
10369 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10370 wxColour const &arg2_defvalue = wxNullColour ;
10371 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10372 wxFont const &arg3_defvalue = wxNullFont ;
10373 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10374 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10375 wxTextAttr *result = 0 ;
10376 wxColour temp1 ;
10377 wxColour temp2 ;
10378 void *argp3 = 0 ;
10379 int res3 = 0 ;
10380 int val4 ;
10381 int ecode4 = 0 ;
10382 PyObject * obj0 = 0 ;
10383 PyObject * obj1 = 0 ;
10384 PyObject * obj2 = 0 ;
10385 PyObject * obj3 = 0 ;
10386 char * kwnames[] = {
10387 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10388 };
10389
10390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10391 if (obj0) {
10392 {
10393 arg1 = &temp1;
10394 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
10395 }
10396 }
10397 if (obj1) {
10398 {
10399 arg2 = &temp2;
10400 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10401 }
10402 }
10403 if (obj2) {
10404 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10405 if (!SWIG_IsOK(res3)) {
10406 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10407 }
10408 if (!argp3) {
10409 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10410 }
10411 arg3 = reinterpret_cast< wxFont * >(argp3);
10412 }
10413 if (obj3) {
10414 ecode4 = SWIG_AsVal_int(obj3, &val4);
10415 if (!SWIG_IsOK(ecode4)) {
10416 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10417 }
10418 arg4 = static_cast< wxTextAttrAlignment >(val4);
10419 }
10420 {
10421 PyThreadState* __tstate = wxPyBeginAllowThreads();
10422 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10423 wxPyEndAllowThreads(__tstate);
10424 if (PyErr_Occurred()) SWIG_fail;
10425 }
10426 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10427 return resultobj;
10428 fail:
10429 return NULL;
10430 }
10431
10432
10433 SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10434 PyObject *resultobj = 0;
10435 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10436 void *argp1 = 0 ;
10437 int res1 = 0 ;
10438 PyObject *swig_obj[1] ;
10439
10440 if (!args) SWIG_fail;
10441 swig_obj[0] = args;
10442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10443 if (!SWIG_IsOK(res1)) {
10444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10445 }
10446 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10447 {
10448 PyThreadState* __tstate = wxPyBeginAllowThreads();
10449 delete arg1;
10450
10451 wxPyEndAllowThreads(__tstate);
10452 if (PyErr_Occurred()) SWIG_fail;
10453 }
10454 resultobj = SWIG_Py_Void();
10455 return resultobj;
10456 fail:
10457 return NULL;
10458 }
10459
10460
10461 SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10462 PyObject *resultobj = 0;
10463 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10464 void *argp1 = 0 ;
10465 int res1 = 0 ;
10466 PyObject *swig_obj[1] ;
10467
10468 if (!args) SWIG_fail;
10469 swig_obj[0] = args;
10470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10471 if (!SWIG_IsOK(res1)) {
10472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10473 }
10474 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10475 {
10476 PyThreadState* __tstate = wxPyBeginAllowThreads();
10477 (arg1)->Init();
10478 wxPyEndAllowThreads(__tstate);
10479 if (PyErr_Occurred()) SWIG_fail;
10480 }
10481 resultobj = SWIG_Py_Void();
10482 return resultobj;
10483 fail:
10484 return NULL;
10485 }
10486
10487
10488 SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10489 PyObject *resultobj = 0;
10490 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10491 wxColour *arg2 = 0 ;
10492 void *argp1 = 0 ;
10493 int res1 = 0 ;
10494 wxColour temp2 ;
10495 PyObject * obj0 = 0 ;
10496 PyObject * obj1 = 0 ;
10497 char * kwnames[] = {
10498 (char *) "self",(char *) "colText", NULL
10499 };
10500
10501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10503 if (!SWIG_IsOK(res1)) {
10504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10505 }
10506 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10507 {
10508 arg2 = &temp2;
10509 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10510 }
10511 {
10512 PyThreadState* __tstate = wxPyBeginAllowThreads();
10513 (arg1)->SetTextColour((wxColour const &)*arg2);
10514 wxPyEndAllowThreads(__tstate);
10515 if (PyErr_Occurred()) SWIG_fail;
10516 }
10517 resultobj = SWIG_Py_Void();
10518 return resultobj;
10519 fail:
10520 return NULL;
10521 }
10522
10523
10524 SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10525 PyObject *resultobj = 0;
10526 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10527 wxColour *arg2 = 0 ;
10528 void *argp1 = 0 ;
10529 int res1 = 0 ;
10530 wxColour temp2 ;
10531 PyObject * obj0 = 0 ;
10532 PyObject * obj1 = 0 ;
10533 char * kwnames[] = {
10534 (char *) "self",(char *) "colBack", NULL
10535 };
10536
10537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10539 if (!SWIG_IsOK(res1)) {
10540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10541 }
10542 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10543 {
10544 arg2 = &temp2;
10545 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10546 }
10547 {
10548 PyThreadState* __tstate = wxPyBeginAllowThreads();
10549 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10550 wxPyEndAllowThreads(__tstate);
10551 if (PyErr_Occurred()) SWIG_fail;
10552 }
10553 resultobj = SWIG_Py_Void();
10554 return resultobj;
10555 fail:
10556 return NULL;
10557 }
10558
10559
10560 SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10561 PyObject *resultobj = 0;
10562 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10563 wxFont *arg2 = 0 ;
10564 long arg3 = (long) wxTEXT_ATTR_FONT ;
10565 void *argp1 = 0 ;
10566 int res1 = 0 ;
10567 void *argp2 = 0 ;
10568 int res2 = 0 ;
10569 long val3 ;
10570 int ecode3 = 0 ;
10571 PyObject * obj0 = 0 ;
10572 PyObject * obj1 = 0 ;
10573 PyObject * obj2 = 0 ;
10574 char * kwnames[] = {
10575 (char *) "self",(char *) "font",(char *) "flags", NULL
10576 };
10577
10578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10580 if (!SWIG_IsOK(res1)) {
10581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10582 }
10583 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10584 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10585 if (!SWIG_IsOK(res2)) {
10586 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10587 }
10588 if (!argp2) {
10589 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10590 }
10591 arg2 = reinterpret_cast< wxFont * >(argp2);
10592 if (obj2) {
10593 ecode3 = SWIG_AsVal_long(obj2, &val3);
10594 if (!SWIG_IsOK(ecode3)) {
10595 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10596 }
10597 arg3 = static_cast< long >(val3);
10598 }
10599 {
10600 PyThreadState* __tstate = wxPyBeginAllowThreads();
10601 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10602 wxPyEndAllowThreads(__tstate);
10603 if (PyErr_Occurred()) SWIG_fail;
10604 }
10605 resultobj = SWIG_Py_Void();
10606 return resultobj;
10607 fail:
10608 return NULL;
10609 }
10610
10611
10612 SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10613 PyObject *resultobj = 0;
10614 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10615 wxTextAttrAlignment arg2 ;
10616 void *argp1 = 0 ;
10617 int res1 = 0 ;
10618 int val2 ;
10619 int ecode2 = 0 ;
10620 PyObject * obj0 = 0 ;
10621 PyObject * obj1 = 0 ;
10622 char * kwnames[] = {
10623 (char *) "self",(char *) "alignment", NULL
10624 };
10625
10626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10628 if (!SWIG_IsOK(res1)) {
10629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10630 }
10631 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10632 ecode2 = SWIG_AsVal_int(obj1, &val2);
10633 if (!SWIG_IsOK(ecode2)) {
10634 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10635 }
10636 arg2 = static_cast< wxTextAttrAlignment >(val2);
10637 {
10638 PyThreadState* __tstate = wxPyBeginAllowThreads();
10639 (arg1)->SetAlignment(arg2);
10640 wxPyEndAllowThreads(__tstate);
10641 if (PyErr_Occurred()) SWIG_fail;
10642 }
10643 resultobj = SWIG_Py_Void();
10644 return resultobj;
10645 fail:
10646 return NULL;
10647 }
10648
10649
10650 SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10651 PyObject *resultobj = 0;
10652 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10653 wxArrayInt *arg2 = 0 ;
10654 void *argp1 = 0 ;
10655 int res1 = 0 ;
10656 bool temp2 = false ;
10657 PyObject * obj0 = 0 ;
10658 PyObject * obj1 = 0 ;
10659 char * kwnames[] = {
10660 (char *) "self",(char *) "tabs", NULL
10661 };
10662
10663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10665 if (!SWIG_IsOK(res1)) {
10666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10667 }
10668 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10669 {
10670 if (! PySequence_Check(obj1)) {
10671 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10672 SWIG_fail;
10673 }
10674 arg2 = new wxArrayInt;
10675 temp2 = true;
10676 int i, len=PySequence_Length(obj1);
10677 for (i=0; i<len; i++) {
10678 PyObject* item = PySequence_GetItem(obj1, i);
10679 PyObject* number = PyNumber_Int(item);
10680 arg2->Add(PyInt_AS_LONG(number));
10681 Py_DECREF(item);
10682 Py_DECREF(number);
10683 }
10684 }
10685 {
10686 PyThreadState* __tstate = wxPyBeginAllowThreads();
10687 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10688 wxPyEndAllowThreads(__tstate);
10689 if (PyErr_Occurred()) SWIG_fail;
10690 }
10691 resultobj = SWIG_Py_Void();
10692 {
10693 if (temp2) delete arg2;
10694 }
10695 return resultobj;
10696 fail:
10697 {
10698 if (temp2) delete arg2;
10699 }
10700 return NULL;
10701 }
10702
10703
10704 SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10705 PyObject *resultobj = 0;
10706 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10707 int arg2 ;
10708 int arg3 = (int) 0 ;
10709 void *argp1 = 0 ;
10710 int res1 = 0 ;
10711 int val2 ;
10712 int ecode2 = 0 ;
10713 int val3 ;
10714 int ecode3 = 0 ;
10715 PyObject * obj0 = 0 ;
10716 PyObject * obj1 = 0 ;
10717 PyObject * obj2 = 0 ;
10718 char * kwnames[] = {
10719 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10720 };
10721
10722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10724 if (!SWIG_IsOK(res1)) {
10725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10726 }
10727 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10728 ecode2 = SWIG_AsVal_int(obj1, &val2);
10729 if (!SWIG_IsOK(ecode2)) {
10730 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10731 }
10732 arg2 = static_cast< int >(val2);
10733 if (obj2) {
10734 ecode3 = SWIG_AsVal_int(obj2, &val3);
10735 if (!SWIG_IsOK(ecode3)) {
10736 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10737 }
10738 arg3 = static_cast< int >(val3);
10739 }
10740 {
10741 PyThreadState* __tstate = wxPyBeginAllowThreads();
10742 (arg1)->SetLeftIndent(arg2,arg3);
10743 wxPyEndAllowThreads(__tstate);
10744 if (PyErr_Occurred()) SWIG_fail;
10745 }
10746 resultobj = SWIG_Py_Void();
10747 return resultobj;
10748 fail:
10749 return NULL;
10750 }
10751
10752
10753 SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10754 PyObject *resultobj = 0;
10755 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10756 int arg2 ;
10757 void *argp1 = 0 ;
10758 int res1 = 0 ;
10759 int val2 ;
10760 int ecode2 = 0 ;
10761 PyObject * obj0 = 0 ;
10762 PyObject * obj1 = 0 ;
10763 char * kwnames[] = {
10764 (char *) "self",(char *) "indent", NULL
10765 };
10766
10767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",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_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10771 }
10772 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10773 ecode2 = SWIG_AsVal_int(obj1, &val2);
10774 if (!SWIG_IsOK(ecode2)) {
10775 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10776 }
10777 arg2 = static_cast< int >(val2);
10778 {
10779 PyThreadState* __tstate = wxPyBeginAllowThreads();
10780 (arg1)->SetRightIndent(arg2);
10781 wxPyEndAllowThreads(__tstate);
10782 if (PyErr_Occurred()) SWIG_fail;
10783 }
10784 resultobj = SWIG_Py_Void();
10785 return resultobj;
10786 fail:
10787 return NULL;
10788 }
10789
10790
10791 SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10792 PyObject *resultobj = 0;
10793 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10794 long arg2 ;
10795 void *argp1 = 0 ;
10796 int res1 = 0 ;
10797 long val2 ;
10798 int ecode2 = 0 ;
10799 PyObject * obj0 = 0 ;
10800 PyObject * obj1 = 0 ;
10801 char * kwnames[] = {
10802 (char *) "self",(char *) "flags", NULL
10803 };
10804
10805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10807 if (!SWIG_IsOK(res1)) {
10808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10809 }
10810 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10811 ecode2 = SWIG_AsVal_long(obj1, &val2);
10812 if (!SWIG_IsOK(ecode2)) {
10813 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10814 }
10815 arg2 = static_cast< long >(val2);
10816 {
10817 PyThreadState* __tstate = wxPyBeginAllowThreads();
10818 (arg1)->SetFlags(arg2);
10819 wxPyEndAllowThreads(__tstate);
10820 if (PyErr_Occurred()) SWIG_fail;
10821 }
10822 resultobj = SWIG_Py_Void();
10823 return resultobj;
10824 fail:
10825 return NULL;
10826 }
10827
10828
10829 SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10830 PyObject *resultobj = 0;
10831 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10832 bool result;
10833 void *argp1 = 0 ;
10834 int res1 = 0 ;
10835 PyObject *swig_obj[1] ;
10836
10837 if (!args) SWIG_fail;
10838 swig_obj[0] = args;
10839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10840 if (!SWIG_IsOK(res1)) {
10841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10842 }
10843 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10844 {
10845 PyThreadState* __tstate = wxPyBeginAllowThreads();
10846 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10847 wxPyEndAllowThreads(__tstate);
10848 if (PyErr_Occurred()) SWIG_fail;
10849 }
10850 {
10851 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10852 }
10853 return resultobj;
10854 fail:
10855 return NULL;
10856 }
10857
10858
10859 SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10860 PyObject *resultobj = 0;
10861 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10862 bool result;
10863 void *argp1 = 0 ;
10864 int res1 = 0 ;
10865 PyObject *swig_obj[1] ;
10866
10867 if (!args) SWIG_fail;
10868 swig_obj[0] = args;
10869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10870 if (!SWIG_IsOK(res1)) {
10871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10872 }
10873 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10874 {
10875 PyThreadState* __tstate = wxPyBeginAllowThreads();
10876 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
10877 wxPyEndAllowThreads(__tstate);
10878 if (PyErr_Occurred()) SWIG_fail;
10879 }
10880 {
10881 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10882 }
10883 return resultobj;
10884 fail:
10885 return NULL;
10886 }
10887
10888
10889 SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10890 PyObject *resultobj = 0;
10891 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10892 bool result;
10893 void *argp1 = 0 ;
10894 int res1 = 0 ;
10895 PyObject *swig_obj[1] ;
10896
10897 if (!args) SWIG_fail;
10898 swig_obj[0] = args;
10899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10900 if (!SWIG_IsOK(res1)) {
10901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10902 }
10903 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10904 {
10905 PyThreadState* __tstate = wxPyBeginAllowThreads();
10906 result = (bool)((wxTextAttr const *)arg1)->HasFont();
10907 wxPyEndAllowThreads(__tstate);
10908 if (PyErr_Occurred()) SWIG_fail;
10909 }
10910 {
10911 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10912 }
10913 return resultobj;
10914 fail:
10915 return NULL;
10916 }
10917
10918
10919 SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10920 PyObject *resultobj = 0;
10921 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10922 bool result;
10923 void *argp1 = 0 ;
10924 int res1 = 0 ;
10925 PyObject *swig_obj[1] ;
10926
10927 if (!args) SWIG_fail;
10928 swig_obj[0] = args;
10929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10930 if (!SWIG_IsOK(res1)) {
10931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10932 }
10933 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10934 {
10935 PyThreadState* __tstate = wxPyBeginAllowThreads();
10936 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
10937 wxPyEndAllowThreads(__tstate);
10938 if (PyErr_Occurred()) SWIG_fail;
10939 }
10940 {
10941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10942 }
10943 return resultobj;
10944 fail:
10945 return NULL;
10946 }
10947
10948
10949 SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10950 PyObject *resultobj = 0;
10951 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10952 bool result;
10953 void *argp1 = 0 ;
10954 int res1 = 0 ;
10955 PyObject *swig_obj[1] ;
10956
10957 if (!args) SWIG_fail;
10958 swig_obj[0] = args;
10959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10960 if (!SWIG_IsOK(res1)) {
10961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10962 }
10963 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10964 {
10965 PyThreadState* __tstate = wxPyBeginAllowThreads();
10966 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
10967 wxPyEndAllowThreads(__tstate);
10968 if (PyErr_Occurred()) SWIG_fail;
10969 }
10970 {
10971 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10972 }
10973 return resultobj;
10974 fail:
10975 return NULL;
10976 }
10977
10978
10979 SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10980 PyObject *resultobj = 0;
10981 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10982 bool result;
10983 void *argp1 = 0 ;
10984 int res1 = 0 ;
10985 PyObject *swig_obj[1] ;
10986
10987 if (!args) SWIG_fail;
10988 swig_obj[0] = args;
10989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10990 if (!SWIG_IsOK(res1)) {
10991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10992 }
10993 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10994 {
10995 PyThreadState* __tstate = wxPyBeginAllowThreads();
10996 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
10997 wxPyEndAllowThreads(__tstate);
10998 if (PyErr_Occurred()) SWIG_fail;
10999 }
11000 {
11001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11002 }
11003 return resultobj;
11004 fail:
11005 return NULL;
11006 }
11007
11008
11009 SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11010 PyObject *resultobj = 0;
11011 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11012 bool result;
11013 void *argp1 = 0 ;
11014 int res1 = 0 ;
11015 PyObject *swig_obj[1] ;
11016
11017 if (!args) SWIG_fail;
11018 swig_obj[0] = args;
11019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11020 if (!SWIG_IsOK(res1)) {
11021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11022 }
11023 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11024 {
11025 PyThreadState* __tstate = wxPyBeginAllowThreads();
11026 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11027 wxPyEndAllowThreads(__tstate);
11028 if (PyErr_Occurred()) SWIG_fail;
11029 }
11030 {
11031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11032 }
11033 return resultobj;
11034 fail:
11035 return NULL;
11036 }
11037
11038
11039 SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11040 PyObject *resultobj = 0;
11041 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11042 long arg2 ;
11043 bool result;
11044 void *argp1 = 0 ;
11045 int res1 = 0 ;
11046 long val2 ;
11047 int ecode2 = 0 ;
11048 PyObject * obj0 = 0 ;
11049 PyObject * obj1 = 0 ;
11050 char * kwnames[] = {
11051 (char *) "self",(char *) "flag", NULL
11052 };
11053
11054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11056 if (!SWIG_IsOK(res1)) {
11057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11058 }
11059 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11060 ecode2 = SWIG_AsVal_long(obj1, &val2);
11061 if (!SWIG_IsOK(ecode2)) {
11062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11063 }
11064 arg2 = static_cast< long >(val2);
11065 {
11066 PyThreadState* __tstate = wxPyBeginAllowThreads();
11067 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11068 wxPyEndAllowThreads(__tstate);
11069 if (PyErr_Occurred()) SWIG_fail;
11070 }
11071 {
11072 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11073 }
11074 return resultobj;
11075 fail:
11076 return NULL;
11077 }
11078
11079
11080 SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11081 PyObject *resultobj = 0;
11082 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11083 wxColour *result = 0 ;
11084 void *argp1 = 0 ;
11085 int res1 = 0 ;
11086 PyObject *swig_obj[1] ;
11087
11088 if (!args) SWIG_fail;
11089 swig_obj[0] = args;
11090 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11091 if (!SWIG_IsOK(res1)) {
11092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11093 }
11094 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11095 {
11096 PyThreadState* __tstate = wxPyBeginAllowThreads();
11097 {
11098 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11099 result = (wxColour *) &_result_ref;
11100 }
11101 wxPyEndAllowThreads(__tstate);
11102 if (PyErr_Occurred()) SWIG_fail;
11103 }
11104 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11105 return resultobj;
11106 fail:
11107 return NULL;
11108 }
11109
11110
11111 SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11112 PyObject *resultobj = 0;
11113 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11114 wxColour *result = 0 ;
11115 void *argp1 = 0 ;
11116 int res1 = 0 ;
11117 PyObject *swig_obj[1] ;
11118
11119 if (!args) SWIG_fail;
11120 swig_obj[0] = args;
11121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11122 if (!SWIG_IsOK(res1)) {
11123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11124 }
11125 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11126 {
11127 PyThreadState* __tstate = wxPyBeginAllowThreads();
11128 {
11129 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11130 result = (wxColour *) &_result_ref;
11131 }
11132 wxPyEndAllowThreads(__tstate);
11133 if (PyErr_Occurred()) SWIG_fail;
11134 }
11135 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11136 return resultobj;
11137 fail:
11138 return NULL;
11139 }
11140
11141
11142 SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11143 PyObject *resultobj = 0;
11144 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11145 wxFont *result = 0 ;
11146 void *argp1 = 0 ;
11147 int res1 = 0 ;
11148 PyObject *swig_obj[1] ;
11149
11150 if (!args) SWIG_fail;
11151 swig_obj[0] = args;
11152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11153 if (!SWIG_IsOK(res1)) {
11154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11155 }
11156 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11157 {
11158 PyThreadState* __tstate = wxPyBeginAllowThreads();
11159 {
11160 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11161 result = (wxFont *) &_result_ref;
11162 }
11163 wxPyEndAllowThreads(__tstate);
11164 if (PyErr_Occurred()) SWIG_fail;
11165 }
11166 {
11167 wxFont* resultptr = new wxFont(*result);
11168 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11169 }
11170 return resultobj;
11171 fail:
11172 return NULL;
11173 }
11174
11175
11176 SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11177 PyObject *resultobj = 0;
11178 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11179 wxTextAttrAlignment result;
11180 void *argp1 = 0 ;
11181 int res1 = 0 ;
11182 PyObject *swig_obj[1] ;
11183
11184 if (!args) SWIG_fail;
11185 swig_obj[0] = args;
11186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11187 if (!SWIG_IsOK(res1)) {
11188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11189 }
11190 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11191 {
11192 PyThreadState* __tstate = wxPyBeginAllowThreads();
11193 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11194 wxPyEndAllowThreads(__tstate);
11195 if (PyErr_Occurred()) SWIG_fail;
11196 }
11197 resultobj = SWIG_From_int(static_cast< int >(result));
11198 return resultobj;
11199 fail:
11200 return NULL;
11201 }
11202
11203
11204 SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11205 PyObject *resultobj = 0;
11206 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11207 wxArrayInt *result = 0 ;
11208 void *argp1 = 0 ;
11209 int res1 = 0 ;
11210 PyObject *swig_obj[1] ;
11211
11212 if (!args) SWIG_fail;
11213 swig_obj[0] = args;
11214 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11215 if (!SWIG_IsOK(res1)) {
11216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11217 }
11218 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11219 {
11220 PyThreadState* __tstate = wxPyBeginAllowThreads();
11221 {
11222 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11223 result = (wxArrayInt *) &_result_ref;
11224 }
11225 wxPyEndAllowThreads(__tstate);
11226 if (PyErr_Occurred()) SWIG_fail;
11227 }
11228 {
11229 resultobj = PyList_New(0);
11230 size_t idx;
11231 for (idx = 0; idx < result->GetCount(); idx += 1) {
11232 PyObject* val = PyInt_FromLong( result->Item(idx) );
11233 PyList_Append(resultobj, val);
11234 Py_DECREF(val);
11235 }
11236 }
11237 return resultobj;
11238 fail:
11239 return NULL;
11240 }
11241
11242
11243 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11244 PyObject *resultobj = 0;
11245 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11246 long result;
11247 void *argp1 = 0 ;
11248 int res1 = 0 ;
11249 PyObject *swig_obj[1] ;
11250
11251 if (!args) SWIG_fail;
11252 swig_obj[0] = args;
11253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11254 if (!SWIG_IsOK(res1)) {
11255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11256 }
11257 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11258 {
11259 PyThreadState* __tstate = wxPyBeginAllowThreads();
11260 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11261 wxPyEndAllowThreads(__tstate);
11262 if (PyErr_Occurred()) SWIG_fail;
11263 }
11264 resultobj = SWIG_From_long(static_cast< long >(result));
11265 return resultobj;
11266 fail:
11267 return NULL;
11268 }
11269
11270
11271 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11272 PyObject *resultobj = 0;
11273 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11274 long result;
11275 void *argp1 = 0 ;
11276 int res1 = 0 ;
11277 PyObject *swig_obj[1] ;
11278
11279 if (!args) SWIG_fail;
11280 swig_obj[0] = args;
11281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11282 if (!SWIG_IsOK(res1)) {
11283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11284 }
11285 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11286 {
11287 PyThreadState* __tstate = wxPyBeginAllowThreads();
11288 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11289 wxPyEndAllowThreads(__tstate);
11290 if (PyErr_Occurred()) SWIG_fail;
11291 }
11292 resultobj = SWIG_From_long(static_cast< long >(result));
11293 return resultobj;
11294 fail:
11295 return NULL;
11296 }
11297
11298
11299 SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11300 PyObject *resultobj = 0;
11301 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11302 long result;
11303 void *argp1 = 0 ;
11304 int res1 = 0 ;
11305 PyObject *swig_obj[1] ;
11306
11307 if (!args) SWIG_fail;
11308 swig_obj[0] = args;
11309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11310 if (!SWIG_IsOK(res1)) {
11311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11312 }
11313 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11314 {
11315 PyThreadState* __tstate = wxPyBeginAllowThreads();
11316 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11317 wxPyEndAllowThreads(__tstate);
11318 if (PyErr_Occurred()) SWIG_fail;
11319 }
11320 resultobj = SWIG_From_long(static_cast< long >(result));
11321 return resultobj;
11322 fail:
11323 return NULL;
11324 }
11325
11326
11327 SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11328 PyObject *resultobj = 0;
11329 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11330 long result;
11331 void *argp1 = 0 ;
11332 int res1 = 0 ;
11333 PyObject *swig_obj[1] ;
11334
11335 if (!args) SWIG_fail;
11336 swig_obj[0] = args;
11337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11338 if (!SWIG_IsOK(res1)) {
11339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11340 }
11341 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11342 {
11343 PyThreadState* __tstate = wxPyBeginAllowThreads();
11344 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11345 wxPyEndAllowThreads(__tstate);
11346 if (PyErr_Occurred()) SWIG_fail;
11347 }
11348 resultobj = SWIG_From_long(static_cast< long >(result));
11349 return resultobj;
11350 fail:
11351 return NULL;
11352 }
11353
11354
11355 SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11356 PyObject *resultobj = 0;
11357 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11358 bool result;
11359 void *argp1 = 0 ;
11360 int res1 = 0 ;
11361 PyObject *swig_obj[1] ;
11362
11363 if (!args) SWIG_fail;
11364 swig_obj[0] = args;
11365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11366 if (!SWIG_IsOK(res1)) {
11367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11368 }
11369 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11370 {
11371 PyThreadState* __tstate = wxPyBeginAllowThreads();
11372 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11373 wxPyEndAllowThreads(__tstate);
11374 if (PyErr_Occurred()) SWIG_fail;
11375 }
11376 {
11377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11378 }
11379 return resultobj;
11380 fail:
11381 return NULL;
11382 }
11383
11384
11385 SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11386 PyObject *resultobj = 0;
11387 wxTextAttr *arg1 = 0 ;
11388 wxTextAttr *arg2 = 0 ;
11389 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11390 wxTextAttr result;
11391 void *argp1 = 0 ;
11392 int res1 = 0 ;
11393 void *argp2 = 0 ;
11394 int res2 = 0 ;
11395 void *argp3 = 0 ;
11396 int res3 = 0 ;
11397 PyObject * obj0 = 0 ;
11398 PyObject * obj1 = 0 ;
11399 PyObject * obj2 = 0 ;
11400 char * kwnames[] = {
11401 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11402 };
11403
11404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11405 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11406 if (!SWIG_IsOK(res1)) {
11407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11408 }
11409 if (!argp1) {
11410 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11411 }
11412 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11413 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11414 if (!SWIG_IsOK(res2)) {
11415 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11416 }
11417 if (!argp2) {
11418 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11419 }
11420 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11421 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11422 if (!SWIG_IsOK(res3)) {
11423 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11424 }
11425 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11426 {
11427 PyThreadState* __tstate = wxPyBeginAllowThreads();
11428 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11429 wxPyEndAllowThreads(__tstate);
11430 if (PyErr_Occurred()) SWIG_fail;
11431 }
11432 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11433 return resultobj;
11434 fail:
11435 return NULL;
11436 }
11437
11438
11439 SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11440 PyObject *obj;
11441 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11442 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11443 return SWIG_Py_Void();
11444 }
11445
11446 SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11447 return SWIG_Python_InitShadowInstance(args);
11448 }
11449
11450 SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11451 PyObject *resultobj = 0;
11452 wxWindow *arg1 = (wxWindow *) 0 ;
11453 int arg2 = (int) -1 ;
11454 wxString const &arg3_defvalue = wxPyEmptyString ;
11455 wxString *arg3 = (wxString *) &arg3_defvalue ;
11456 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11457 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11458 wxSize const &arg5_defvalue = wxDefaultSize ;
11459 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11460 long arg6 = (long) 0 ;
11461 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11462 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11463 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11464 wxString *arg8 = (wxString *) &arg8_defvalue ;
11465 wxTextCtrl *result = 0 ;
11466 void *argp1 = 0 ;
11467 int res1 = 0 ;
11468 int val2 ;
11469 int ecode2 = 0 ;
11470 bool temp3 = false ;
11471 wxPoint temp4 ;
11472 wxSize temp5 ;
11473 long val6 ;
11474 int ecode6 = 0 ;
11475 void *argp7 = 0 ;
11476 int res7 = 0 ;
11477 bool temp8 = false ;
11478 PyObject * obj0 = 0 ;
11479 PyObject * obj1 = 0 ;
11480 PyObject * obj2 = 0 ;
11481 PyObject * obj3 = 0 ;
11482 PyObject * obj4 = 0 ;
11483 PyObject * obj5 = 0 ;
11484 PyObject * obj6 = 0 ;
11485 PyObject * obj7 = 0 ;
11486 char * kwnames[] = {
11487 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11488 };
11489
11490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11492 if (!SWIG_IsOK(res1)) {
11493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11494 }
11495 arg1 = reinterpret_cast< wxWindow * >(argp1);
11496 if (obj1) {
11497 ecode2 = SWIG_AsVal_int(obj1, &val2);
11498 if (!SWIG_IsOK(ecode2)) {
11499 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11500 }
11501 arg2 = static_cast< int >(val2);
11502 }
11503 if (obj2) {
11504 {
11505 arg3 = wxString_in_helper(obj2);
11506 if (arg3 == NULL) SWIG_fail;
11507 temp3 = true;
11508 }
11509 }
11510 if (obj3) {
11511 {
11512 arg4 = &temp4;
11513 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11514 }
11515 }
11516 if (obj4) {
11517 {
11518 arg5 = &temp5;
11519 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11520 }
11521 }
11522 if (obj5) {
11523 ecode6 = SWIG_AsVal_long(obj5, &val6);
11524 if (!SWIG_IsOK(ecode6)) {
11525 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11526 }
11527 arg6 = static_cast< long >(val6);
11528 }
11529 if (obj6) {
11530 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11531 if (!SWIG_IsOK(res7)) {
11532 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11533 }
11534 if (!argp7) {
11535 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11536 }
11537 arg7 = reinterpret_cast< wxValidator * >(argp7);
11538 }
11539 if (obj7) {
11540 {
11541 arg8 = wxString_in_helper(obj7);
11542 if (arg8 == NULL) SWIG_fail;
11543 temp8 = true;
11544 }
11545 }
11546 {
11547 if (!wxPyCheckForApp()) SWIG_fail;
11548 PyThreadState* __tstate = wxPyBeginAllowThreads();
11549 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11550 wxPyEndAllowThreads(__tstate);
11551 if (PyErr_Occurred()) SWIG_fail;
11552 }
11553 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11554 {
11555 if (temp3)
11556 delete arg3;
11557 }
11558 {
11559 if (temp8)
11560 delete arg8;
11561 }
11562 return resultobj;
11563 fail:
11564 {
11565 if (temp3)
11566 delete arg3;
11567 }
11568 {
11569 if (temp8)
11570 delete arg8;
11571 }
11572 return NULL;
11573 }
11574
11575
11576 SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11577 PyObject *resultobj = 0;
11578 wxTextCtrl *result = 0 ;
11579
11580 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11581 {
11582 if (!wxPyCheckForApp()) SWIG_fail;
11583 PyThreadState* __tstate = wxPyBeginAllowThreads();
11584 result = (wxTextCtrl *)new wxTextCtrl();
11585 wxPyEndAllowThreads(__tstate);
11586 if (PyErr_Occurred()) SWIG_fail;
11587 }
11588 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11589 return resultobj;
11590 fail:
11591 return NULL;
11592 }
11593
11594
11595 SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11596 PyObject *resultobj = 0;
11597 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11598 wxWindow *arg2 = (wxWindow *) 0 ;
11599 int arg3 = (int) -1 ;
11600 wxString const &arg4_defvalue = wxPyEmptyString ;
11601 wxString *arg4 = (wxString *) &arg4_defvalue ;
11602 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11603 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11604 wxSize const &arg6_defvalue = wxDefaultSize ;
11605 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11606 long arg7 = (long) 0 ;
11607 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11608 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11609 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11610 wxString *arg9 = (wxString *) &arg9_defvalue ;
11611 bool result;
11612 void *argp1 = 0 ;
11613 int res1 = 0 ;
11614 void *argp2 = 0 ;
11615 int res2 = 0 ;
11616 int val3 ;
11617 int ecode3 = 0 ;
11618 bool temp4 = false ;
11619 wxPoint temp5 ;
11620 wxSize temp6 ;
11621 long val7 ;
11622 int ecode7 = 0 ;
11623 void *argp8 = 0 ;
11624 int res8 = 0 ;
11625 bool temp9 = false ;
11626 PyObject * obj0 = 0 ;
11627 PyObject * obj1 = 0 ;
11628 PyObject * obj2 = 0 ;
11629 PyObject * obj3 = 0 ;
11630 PyObject * obj4 = 0 ;
11631 PyObject * obj5 = 0 ;
11632 PyObject * obj6 = 0 ;
11633 PyObject * obj7 = 0 ;
11634 PyObject * obj8 = 0 ;
11635 char * kwnames[] = {
11636 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11637 };
11638
11639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11641 if (!SWIG_IsOK(res1)) {
11642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11643 }
11644 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11645 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11646 if (!SWIG_IsOK(res2)) {
11647 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11648 }
11649 arg2 = reinterpret_cast< wxWindow * >(argp2);
11650 if (obj2) {
11651 ecode3 = SWIG_AsVal_int(obj2, &val3);
11652 if (!SWIG_IsOK(ecode3)) {
11653 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11654 }
11655 arg3 = static_cast< int >(val3);
11656 }
11657 if (obj3) {
11658 {
11659 arg4 = wxString_in_helper(obj3);
11660 if (arg4 == NULL) SWIG_fail;
11661 temp4 = true;
11662 }
11663 }
11664 if (obj4) {
11665 {
11666 arg5 = &temp5;
11667 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11668 }
11669 }
11670 if (obj5) {
11671 {
11672 arg6 = &temp6;
11673 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11674 }
11675 }
11676 if (obj6) {
11677 ecode7 = SWIG_AsVal_long(obj6, &val7);
11678 if (!SWIG_IsOK(ecode7)) {
11679 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11680 }
11681 arg7 = static_cast< long >(val7);
11682 }
11683 if (obj7) {
11684 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11685 if (!SWIG_IsOK(res8)) {
11686 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11687 }
11688 if (!argp8) {
11689 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11690 }
11691 arg8 = reinterpret_cast< wxValidator * >(argp8);
11692 }
11693 if (obj8) {
11694 {
11695 arg9 = wxString_in_helper(obj8);
11696 if (arg9 == NULL) SWIG_fail;
11697 temp9 = true;
11698 }
11699 }
11700 {
11701 PyThreadState* __tstate = wxPyBeginAllowThreads();
11702 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11703 wxPyEndAllowThreads(__tstate);
11704 if (PyErr_Occurred()) SWIG_fail;
11705 }
11706 {
11707 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11708 }
11709 {
11710 if (temp4)
11711 delete arg4;
11712 }
11713 {
11714 if (temp9)
11715 delete arg9;
11716 }
11717 return resultobj;
11718 fail:
11719 {
11720 if (temp4)
11721 delete arg4;
11722 }
11723 {
11724 if (temp9)
11725 delete arg9;
11726 }
11727 return NULL;
11728 }
11729
11730
11731 SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11732 PyObject *resultobj = 0;
11733 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11734 wxString result;
11735 void *argp1 = 0 ;
11736 int res1 = 0 ;
11737 PyObject *swig_obj[1] ;
11738
11739 if (!args) SWIG_fail;
11740 swig_obj[0] = args;
11741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11742 if (!SWIG_IsOK(res1)) {
11743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11744 }
11745 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11746 {
11747 PyThreadState* __tstate = wxPyBeginAllowThreads();
11748 result = ((wxTextCtrl const *)arg1)->GetValue();
11749 wxPyEndAllowThreads(__tstate);
11750 if (PyErr_Occurred()) SWIG_fail;
11751 }
11752 {
11753 #if wxUSE_UNICODE
11754 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11755 #else
11756 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11757 #endif
11758 }
11759 return resultobj;
11760 fail:
11761 return NULL;
11762 }
11763
11764
11765 SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11766 PyObject *resultobj = 0;
11767 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11768 wxString *arg2 = 0 ;
11769 void *argp1 = 0 ;
11770 int res1 = 0 ;
11771 bool temp2 = false ;
11772 PyObject * obj0 = 0 ;
11773 PyObject * obj1 = 0 ;
11774 char * kwnames[] = {
11775 (char *) "self",(char *) "value", NULL
11776 };
11777
11778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11780 if (!SWIG_IsOK(res1)) {
11781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11782 }
11783 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11784 {
11785 arg2 = wxString_in_helper(obj1);
11786 if (arg2 == NULL) SWIG_fail;
11787 temp2 = true;
11788 }
11789 {
11790 PyThreadState* __tstate = wxPyBeginAllowThreads();
11791 (arg1)->SetValue((wxString const &)*arg2);
11792 wxPyEndAllowThreads(__tstate);
11793 if (PyErr_Occurred()) SWIG_fail;
11794 }
11795 resultobj = SWIG_Py_Void();
11796 {
11797 if (temp2)
11798 delete arg2;
11799 }
11800 return resultobj;
11801 fail:
11802 {
11803 if (temp2)
11804 delete arg2;
11805 }
11806 return NULL;
11807 }
11808
11809
11810 SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11811 PyObject *resultobj = 0;
11812 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11813 long arg2 ;
11814 long arg3 ;
11815 wxString result;
11816 void *argp1 = 0 ;
11817 int res1 = 0 ;
11818 long val2 ;
11819 int ecode2 = 0 ;
11820 long val3 ;
11821 int ecode3 = 0 ;
11822 PyObject * obj0 = 0 ;
11823 PyObject * obj1 = 0 ;
11824 PyObject * obj2 = 0 ;
11825 char * kwnames[] = {
11826 (char *) "self",(char *) "_from",(char *) "to", NULL
11827 };
11828
11829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11831 if (!SWIG_IsOK(res1)) {
11832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11833 }
11834 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11835 ecode2 = SWIG_AsVal_long(obj1, &val2);
11836 if (!SWIG_IsOK(ecode2)) {
11837 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11838 }
11839 arg2 = static_cast< long >(val2);
11840 ecode3 = SWIG_AsVal_long(obj2, &val3);
11841 if (!SWIG_IsOK(ecode3)) {
11842 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
11843 }
11844 arg3 = static_cast< long >(val3);
11845 {
11846 PyThreadState* __tstate = wxPyBeginAllowThreads();
11847 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
11848 wxPyEndAllowThreads(__tstate);
11849 if (PyErr_Occurred()) SWIG_fail;
11850 }
11851 {
11852 #if wxUSE_UNICODE
11853 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11854 #else
11855 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11856 #endif
11857 }
11858 return resultobj;
11859 fail:
11860 return NULL;
11861 }
11862
11863
11864 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11865 PyObject *resultobj = 0;
11866 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11867 long arg2 ;
11868 int result;
11869 void *argp1 = 0 ;
11870 int res1 = 0 ;
11871 long val2 ;
11872 int ecode2 = 0 ;
11873 PyObject * obj0 = 0 ;
11874 PyObject * obj1 = 0 ;
11875 char * kwnames[] = {
11876 (char *) "self",(char *) "lineNo", NULL
11877 };
11878
11879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
11880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11881 if (!SWIG_IsOK(res1)) {
11882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11883 }
11884 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11885 ecode2 = SWIG_AsVal_long(obj1, &val2);
11886 if (!SWIG_IsOK(ecode2)) {
11887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
11888 }
11889 arg2 = static_cast< long >(val2);
11890 {
11891 PyThreadState* __tstate = wxPyBeginAllowThreads();
11892 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
11893 wxPyEndAllowThreads(__tstate);
11894 if (PyErr_Occurred()) SWIG_fail;
11895 }
11896 resultobj = SWIG_From_int(static_cast< int >(result));
11897 return resultobj;
11898 fail:
11899 return NULL;
11900 }
11901
11902
11903 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11904 PyObject *resultobj = 0;
11905 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11906 long arg2 ;
11907 wxString result;
11908 void *argp1 = 0 ;
11909 int res1 = 0 ;
11910 long val2 ;
11911 int ecode2 = 0 ;
11912 PyObject * obj0 = 0 ;
11913 PyObject * obj1 = 0 ;
11914 char * kwnames[] = {
11915 (char *) "self",(char *) "lineNo", NULL
11916 };
11917
11918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
11919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11920 if (!SWIG_IsOK(res1)) {
11921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11922 }
11923 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11924 ecode2 = SWIG_AsVal_long(obj1, &val2);
11925 if (!SWIG_IsOK(ecode2)) {
11926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
11927 }
11928 arg2 = static_cast< long >(val2);
11929 {
11930 PyThreadState* __tstate = wxPyBeginAllowThreads();
11931 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
11932 wxPyEndAllowThreads(__tstate);
11933 if (PyErr_Occurred()) SWIG_fail;
11934 }
11935 {
11936 #if wxUSE_UNICODE
11937 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11938 #else
11939 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11940 #endif
11941 }
11942 return resultobj;
11943 fail:
11944 return NULL;
11945 }
11946
11947
11948 SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11949 PyObject *resultobj = 0;
11950 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11951 int result;
11952 void *argp1 = 0 ;
11953 int res1 = 0 ;
11954 PyObject *swig_obj[1] ;
11955
11956 if (!args) SWIG_fail;
11957 swig_obj[0] = args;
11958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11959 if (!SWIG_IsOK(res1)) {
11960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11961 }
11962 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11963 {
11964 PyThreadState* __tstate = wxPyBeginAllowThreads();
11965 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
11966 wxPyEndAllowThreads(__tstate);
11967 if (PyErr_Occurred()) SWIG_fail;
11968 }
11969 resultobj = SWIG_From_int(static_cast< int >(result));
11970 return resultobj;
11971 fail:
11972 return NULL;
11973 }
11974
11975
11976 SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11977 PyObject *resultobj = 0;
11978 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11979 bool result;
11980 void *argp1 = 0 ;
11981 int res1 = 0 ;
11982 PyObject *swig_obj[1] ;
11983
11984 if (!args) SWIG_fail;
11985 swig_obj[0] = args;
11986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11987 if (!SWIG_IsOK(res1)) {
11988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11989 }
11990 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11991 {
11992 PyThreadState* __tstate = wxPyBeginAllowThreads();
11993 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
11994 wxPyEndAllowThreads(__tstate);
11995 if (PyErr_Occurred()) SWIG_fail;
11996 }
11997 {
11998 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11999 }
12000 return resultobj;
12001 fail:
12002 return NULL;
12003 }
12004
12005
12006 SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12007 PyObject *resultobj = 0;
12008 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12009 bool result;
12010 void *argp1 = 0 ;
12011 int res1 = 0 ;
12012 PyObject *swig_obj[1] ;
12013
12014 if (!args) SWIG_fail;
12015 swig_obj[0] = args;
12016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12017 if (!SWIG_IsOK(res1)) {
12018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12019 }
12020 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12021 {
12022 PyThreadState* __tstate = wxPyBeginAllowThreads();
12023 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12024 wxPyEndAllowThreads(__tstate);
12025 if (PyErr_Occurred()) SWIG_fail;
12026 }
12027 {
12028 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12029 }
12030 return resultobj;
12031 fail:
12032 return NULL;
12033 }
12034
12035
12036 SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12037 PyObject *resultobj = 0;
12038 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12039 bool result;
12040 void *argp1 = 0 ;
12041 int res1 = 0 ;
12042 PyObject *swig_obj[1] ;
12043
12044 if (!args) SWIG_fail;
12045 swig_obj[0] = args;
12046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12047 if (!SWIG_IsOK(res1)) {
12048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12049 }
12050 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12051 {
12052 PyThreadState* __tstate = wxPyBeginAllowThreads();
12053 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12054 wxPyEndAllowThreads(__tstate);
12055 if (PyErr_Occurred()) SWIG_fail;
12056 }
12057 {
12058 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12059 }
12060 return resultobj;
12061 fail:
12062 return NULL;
12063 }
12064
12065
12066 SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12067 PyObject *resultobj = 0;
12068 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12069 bool result;
12070 void *argp1 = 0 ;
12071 int res1 = 0 ;
12072 PyObject *swig_obj[1] ;
12073
12074 if (!args) SWIG_fail;
12075 swig_obj[0] = args;
12076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12077 if (!SWIG_IsOK(res1)) {
12078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12079 }
12080 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12081 {
12082 PyThreadState* __tstate = wxPyBeginAllowThreads();
12083 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12084 wxPyEndAllowThreads(__tstate);
12085 if (PyErr_Occurred()) SWIG_fail;
12086 }
12087 {
12088 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12089 }
12090 return resultobj;
12091 fail:
12092 return NULL;
12093 }
12094
12095
12096 SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12097 PyObject *resultobj = 0;
12098 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12099 long *arg2 = (long *) 0 ;
12100 long *arg3 = (long *) 0 ;
12101 void *argp1 = 0 ;
12102 int res1 = 0 ;
12103 long temp2 ;
12104 int res2 = SWIG_TMPOBJ ;
12105 long temp3 ;
12106 int res3 = SWIG_TMPOBJ ;
12107 PyObject *swig_obj[1] ;
12108
12109 arg2 = &temp2;
12110 arg3 = &temp3;
12111 if (!args) SWIG_fail;
12112 swig_obj[0] = args;
12113 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12114 if (!SWIG_IsOK(res1)) {
12115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12116 }
12117 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12118 {
12119 PyThreadState* __tstate = wxPyBeginAllowThreads();
12120 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12121 wxPyEndAllowThreads(__tstate);
12122 if (PyErr_Occurred()) SWIG_fail;
12123 }
12124 resultobj = SWIG_Py_Void();
12125 if (SWIG_IsTmpObj(res2)) {
12126 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12127 } else {
12128 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12129 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12130 }
12131 if (SWIG_IsTmpObj(res3)) {
12132 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12133 } else {
12134 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12135 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12136 }
12137 return resultobj;
12138 fail:
12139 return NULL;
12140 }
12141
12142
12143 SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12144 PyObject *resultobj = 0;
12145 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12146 wxString result;
12147 void *argp1 = 0 ;
12148 int res1 = 0 ;
12149 PyObject *swig_obj[1] ;
12150
12151 if (!args) SWIG_fail;
12152 swig_obj[0] = args;
12153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12154 if (!SWIG_IsOK(res1)) {
12155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12156 }
12157 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12158 {
12159 PyThreadState* __tstate = wxPyBeginAllowThreads();
12160 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12161 wxPyEndAllowThreads(__tstate);
12162 if (PyErr_Occurred()) SWIG_fail;
12163 }
12164 {
12165 #if wxUSE_UNICODE
12166 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12167 #else
12168 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12169 #endif
12170 }
12171 return resultobj;
12172 fail:
12173 return NULL;
12174 }
12175
12176
12177 SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12178 PyObject *resultobj = 0;
12179 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12180 void *argp1 = 0 ;
12181 int res1 = 0 ;
12182 PyObject *swig_obj[1] ;
12183
12184 if (!args) SWIG_fail;
12185 swig_obj[0] = args;
12186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12187 if (!SWIG_IsOK(res1)) {
12188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12189 }
12190 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12191 {
12192 PyThreadState* __tstate = wxPyBeginAllowThreads();
12193 (arg1)->Clear();
12194 wxPyEndAllowThreads(__tstate);
12195 if (PyErr_Occurred()) SWIG_fail;
12196 }
12197 resultobj = SWIG_Py_Void();
12198 return resultobj;
12199 fail:
12200 return NULL;
12201 }
12202
12203
12204 SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12205 PyObject *resultobj = 0;
12206 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12207 long arg2 ;
12208 long arg3 ;
12209 wxString *arg4 = 0 ;
12210 void *argp1 = 0 ;
12211 int res1 = 0 ;
12212 long val2 ;
12213 int ecode2 = 0 ;
12214 long val3 ;
12215 int ecode3 = 0 ;
12216 bool temp4 = false ;
12217 PyObject * obj0 = 0 ;
12218 PyObject * obj1 = 0 ;
12219 PyObject * obj2 = 0 ;
12220 PyObject * obj3 = 0 ;
12221 char * kwnames[] = {
12222 (char *) "self",(char *) "_from",(char *) "to",(char *) "value", NULL
12223 };
12224
12225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12227 if (!SWIG_IsOK(res1)) {
12228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12229 }
12230 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12231 ecode2 = SWIG_AsVal_long(obj1, &val2);
12232 if (!SWIG_IsOK(ecode2)) {
12233 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12234 }
12235 arg2 = static_cast< long >(val2);
12236 ecode3 = SWIG_AsVal_long(obj2, &val3);
12237 if (!SWIG_IsOK(ecode3)) {
12238 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12239 }
12240 arg3 = static_cast< long >(val3);
12241 {
12242 arg4 = wxString_in_helper(obj3);
12243 if (arg4 == NULL) SWIG_fail;
12244 temp4 = true;
12245 }
12246 {
12247 PyThreadState* __tstate = wxPyBeginAllowThreads();
12248 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12249 wxPyEndAllowThreads(__tstate);
12250 if (PyErr_Occurred()) SWIG_fail;
12251 }
12252 resultobj = SWIG_Py_Void();
12253 {
12254 if (temp4)
12255 delete arg4;
12256 }
12257 return resultobj;
12258 fail:
12259 {
12260 if (temp4)
12261 delete arg4;
12262 }
12263 return NULL;
12264 }
12265
12266
12267 SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12268 PyObject *resultobj = 0;
12269 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12270 long arg2 ;
12271 long arg3 ;
12272 void *argp1 = 0 ;
12273 int res1 = 0 ;
12274 long val2 ;
12275 int ecode2 = 0 ;
12276 long val3 ;
12277 int ecode3 = 0 ;
12278 PyObject * obj0 = 0 ;
12279 PyObject * obj1 = 0 ;
12280 PyObject * obj2 = 0 ;
12281 char * kwnames[] = {
12282 (char *) "self",(char *) "_from",(char *) "to", NULL
12283 };
12284
12285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12287 if (!SWIG_IsOK(res1)) {
12288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12289 }
12290 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12291 ecode2 = SWIG_AsVal_long(obj1, &val2);
12292 if (!SWIG_IsOK(ecode2)) {
12293 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12294 }
12295 arg2 = static_cast< long >(val2);
12296 ecode3 = SWIG_AsVal_long(obj2, &val3);
12297 if (!SWIG_IsOK(ecode3)) {
12298 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12299 }
12300 arg3 = static_cast< long >(val3);
12301 {
12302 PyThreadState* __tstate = wxPyBeginAllowThreads();
12303 (arg1)->Remove(arg2,arg3);
12304 wxPyEndAllowThreads(__tstate);
12305 if (PyErr_Occurred()) SWIG_fail;
12306 }
12307 resultobj = SWIG_Py_Void();
12308 return resultobj;
12309 fail:
12310 return NULL;
12311 }
12312
12313
12314 SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12315 PyObject *resultobj = 0;
12316 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12317 wxString *arg2 = 0 ;
12318 bool result;
12319 void *argp1 = 0 ;
12320 int res1 = 0 ;
12321 bool temp2 = false ;
12322 PyObject * obj0 = 0 ;
12323 PyObject * obj1 = 0 ;
12324 char * kwnames[] = {
12325 (char *) "self",(char *) "file", NULL
12326 };
12327
12328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) SWIG_fail;
12329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12330 if (!SWIG_IsOK(res1)) {
12331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12332 }
12333 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12334 {
12335 arg2 = wxString_in_helper(obj1);
12336 if (arg2 == NULL) SWIG_fail;
12337 temp2 = true;
12338 }
12339 {
12340 PyThreadState* __tstate = wxPyBeginAllowThreads();
12341 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
12342 wxPyEndAllowThreads(__tstate);
12343 if (PyErr_Occurred()) SWIG_fail;
12344 }
12345 {
12346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12347 }
12348 {
12349 if (temp2)
12350 delete arg2;
12351 }
12352 return resultobj;
12353 fail:
12354 {
12355 if (temp2)
12356 delete arg2;
12357 }
12358 return NULL;
12359 }
12360
12361
12362 SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12363 PyObject *resultobj = 0;
12364 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12365 wxString const &arg2_defvalue = wxPyEmptyString ;
12366 wxString *arg2 = (wxString *) &arg2_defvalue ;
12367 bool result;
12368 void *argp1 = 0 ;
12369 int res1 = 0 ;
12370 bool temp2 = false ;
12371 PyObject * obj0 = 0 ;
12372 PyObject * obj1 = 0 ;
12373 char * kwnames[] = {
12374 (char *) "self",(char *) "file", NULL
12375 };
12376
12377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) SWIG_fail;
12378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12379 if (!SWIG_IsOK(res1)) {
12380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12381 }
12382 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12383 if (obj1) {
12384 {
12385 arg2 = wxString_in_helper(obj1);
12386 if (arg2 == NULL) SWIG_fail;
12387 temp2 = true;
12388 }
12389 }
12390 {
12391 PyThreadState* __tstate = wxPyBeginAllowThreads();
12392 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
12393 wxPyEndAllowThreads(__tstate);
12394 if (PyErr_Occurred()) SWIG_fail;
12395 }
12396 {
12397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12398 }
12399 {
12400 if (temp2)
12401 delete arg2;
12402 }
12403 return resultobj;
12404 fail:
12405 {
12406 if (temp2)
12407 delete arg2;
12408 }
12409 return NULL;
12410 }
12411
12412
12413 SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12414 PyObject *resultobj = 0;
12415 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12416 void *argp1 = 0 ;
12417 int res1 = 0 ;
12418 PyObject *swig_obj[1] ;
12419
12420 if (!args) SWIG_fail;
12421 swig_obj[0] = args;
12422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12423 if (!SWIG_IsOK(res1)) {
12424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12425 }
12426 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12427 {
12428 PyThreadState* __tstate = wxPyBeginAllowThreads();
12429 (arg1)->MarkDirty();
12430 wxPyEndAllowThreads(__tstate);
12431 if (PyErr_Occurred()) SWIG_fail;
12432 }
12433 resultobj = SWIG_Py_Void();
12434 return resultobj;
12435 fail:
12436 return NULL;
12437 }
12438
12439
12440 SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12441 PyObject *resultobj = 0;
12442 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12443 void *argp1 = 0 ;
12444 int res1 = 0 ;
12445 PyObject *swig_obj[1] ;
12446
12447 if (!args) SWIG_fail;
12448 swig_obj[0] = args;
12449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12450 if (!SWIG_IsOK(res1)) {
12451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12452 }
12453 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12454 {
12455 PyThreadState* __tstate = wxPyBeginAllowThreads();
12456 (arg1)->DiscardEdits();
12457 wxPyEndAllowThreads(__tstate);
12458 if (PyErr_Occurred()) SWIG_fail;
12459 }
12460 resultobj = SWIG_Py_Void();
12461 return resultobj;
12462 fail:
12463 return NULL;
12464 }
12465
12466
12467 SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12468 PyObject *resultobj = 0;
12469 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12470 unsigned long arg2 ;
12471 void *argp1 = 0 ;
12472 int res1 = 0 ;
12473 unsigned long val2 ;
12474 int ecode2 = 0 ;
12475 PyObject * obj0 = 0 ;
12476 PyObject * obj1 = 0 ;
12477 char * kwnames[] = {
12478 (char *) "self",(char *) "len", NULL
12479 };
12480
12481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",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_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12485 }
12486 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12487 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12488 if (!SWIG_IsOK(ecode2)) {
12489 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12490 }
12491 arg2 = static_cast< unsigned long >(val2);
12492 {
12493 PyThreadState* __tstate = wxPyBeginAllowThreads();
12494 (arg1)->SetMaxLength(arg2);
12495 wxPyEndAllowThreads(__tstate);
12496 if (PyErr_Occurred()) SWIG_fail;
12497 }
12498 resultobj = SWIG_Py_Void();
12499 return resultobj;
12500 fail:
12501 return NULL;
12502 }
12503
12504
12505 SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12506 PyObject *resultobj = 0;
12507 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12508 wxString *arg2 = 0 ;
12509 void *argp1 = 0 ;
12510 int res1 = 0 ;
12511 bool temp2 = false ;
12512 PyObject * obj0 = 0 ;
12513 PyObject * obj1 = 0 ;
12514 char * kwnames[] = {
12515 (char *) "self",(char *) "text", NULL
12516 };
12517
12518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12520 if (!SWIG_IsOK(res1)) {
12521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12522 }
12523 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12524 {
12525 arg2 = wxString_in_helper(obj1);
12526 if (arg2 == NULL) SWIG_fail;
12527 temp2 = true;
12528 }
12529 {
12530 PyThreadState* __tstate = wxPyBeginAllowThreads();
12531 (arg1)->WriteText((wxString const &)*arg2);
12532 wxPyEndAllowThreads(__tstate);
12533 if (PyErr_Occurred()) SWIG_fail;
12534 }
12535 resultobj = SWIG_Py_Void();
12536 {
12537 if (temp2)
12538 delete arg2;
12539 }
12540 return resultobj;
12541 fail:
12542 {
12543 if (temp2)
12544 delete arg2;
12545 }
12546 return NULL;
12547 }
12548
12549
12550 SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12551 PyObject *resultobj = 0;
12552 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12553 wxString *arg2 = 0 ;
12554 void *argp1 = 0 ;
12555 int res1 = 0 ;
12556 bool temp2 = false ;
12557 PyObject * obj0 = 0 ;
12558 PyObject * obj1 = 0 ;
12559 char * kwnames[] = {
12560 (char *) "self",(char *) "text", NULL
12561 };
12562
12563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12565 if (!SWIG_IsOK(res1)) {
12566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12567 }
12568 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12569 {
12570 arg2 = wxString_in_helper(obj1);
12571 if (arg2 == NULL) SWIG_fail;
12572 temp2 = true;
12573 }
12574 {
12575 PyThreadState* __tstate = wxPyBeginAllowThreads();
12576 (arg1)->AppendText((wxString const &)*arg2);
12577 wxPyEndAllowThreads(__tstate);
12578 if (PyErr_Occurred()) SWIG_fail;
12579 }
12580 resultobj = SWIG_Py_Void();
12581 {
12582 if (temp2)
12583 delete arg2;
12584 }
12585 return resultobj;
12586 fail:
12587 {
12588 if (temp2)
12589 delete arg2;
12590 }
12591 return NULL;
12592 }
12593
12594
12595 SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12596 PyObject *resultobj = 0;
12597 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12598 wxKeyEvent *arg2 = 0 ;
12599 bool result;
12600 void *argp1 = 0 ;
12601 int res1 = 0 ;
12602 void *argp2 = 0 ;
12603 int res2 = 0 ;
12604 PyObject * obj0 = 0 ;
12605 PyObject * obj1 = 0 ;
12606 char * kwnames[] = {
12607 (char *) "self",(char *) "event", NULL
12608 };
12609
12610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12612 if (!SWIG_IsOK(res1)) {
12613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12614 }
12615 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12616 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12617 if (!SWIG_IsOK(res2)) {
12618 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12619 }
12620 if (!argp2) {
12621 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12622 }
12623 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12624 {
12625 PyThreadState* __tstate = wxPyBeginAllowThreads();
12626 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12627 wxPyEndAllowThreads(__tstate);
12628 if (PyErr_Occurred()) SWIG_fail;
12629 }
12630 {
12631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12632 }
12633 return resultobj;
12634 fail:
12635 return NULL;
12636 }
12637
12638
12639 SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12640 PyObject *resultobj = 0;
12641 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12642 long arg2 ;
12643 long arg3 ;
12644 wxTextAttr *arg4 = 0 ;
12645 bool result;
12646 void *argp1 = 0 ;
12647 int res1 = 0 ;
12648 long val2 ;
12649 int ecode2 = 0 ;
12650 long val3 ;
12651 int ecode3 = 0 ;
12652 void *argp4 = 0 ;
12653 int res4 = 0 ;
12654 PyObject * obj0 = 0 ;
12655 PyObject * obj1 = 0 ;
12656 PyObject * obj2 = 0 ;
12657 PyObject * obj3 = 0 ;
12658 char * kwnames[] = {
12659 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12660 };
12661
12662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12664 if (!SWIG_IsOK(res1)) {
12665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12666 }
12667 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12668 ecode2 = SWIG_AsVal_long(obj1, &val2);
12669 if (!SWIG_IsOK(ecode2)) {
12670 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12671 }
12672 arg2 = static_cast< long >(val2);
12673 ecode3 = SWIG_AsVal_long(obj2, &val3);
12674 if (!SWIG_IsOK(ecode3)) {
12675 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12676 }
12677 arg3 = static_cast< long >(val3);
12678 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12679 if (!SWIG_IsOK(res4)) {
12680 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12681 }
12682 if (!argp4) {
12683 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12684 }
12685 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12686 {
12687 PyThreadState* __tstate = wxPyBeginAllowThreads();
12688 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12689 wxPyEndAllowThreads(__tstate);
12690 if (PyErr_Occurred()) SWIG_fail;
12691 }
12692 {
12693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12694 }
12695 return resultobj;
12696 fail:
12697 return NULL;
12698 }
12699
12700
12701 SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12702 PyObject *resultobj = 0;
12703 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12704 long arg2 ;
12705 wxTextAttr *arg3 = 0 ;
12706 bool result;
12707 void *argp1 = 0 ;
12708 int res1 = 0 ;
12709 long val2 ;
12710 int ecode2 = 0 ;
12711 void *argp3 = 0 ;
12712 int res3 = 0 ;
12713 PyObject * obj0 = 0 ;
12714 PyObject * obj1 = 0 ;
12715 PyObject * obj2 = 0 ;
12716 char * kwnames[] = {
12717 (char *) "self",(char *) "position",(char *) "style", NULL
12718 };
12719
12720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12722 if (!SWIG_IsOK(res1)) {
12723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12724 }
12725 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12726 ecode2 = SWIG_AsVal_long(obj1, &val2);
12727 if (!SWIG_IsOK(ecode2)) {
12728 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12729 }
12730 arg2 = static_cast< long >(val2);
12731 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12732 if (!SWIG_IsOK(res3)) {
12733 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12734 }
12735 if (!argp3) {
12736 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12737 }
12738 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12739 {
12740 PyThreadState* __tstate = wxPyBeginAllowThreads();
12741 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12742 wxPyEndAllowThreads(__tstate);
12743 if (PyErr_Occurred()) SWIG_fail;
12744 }
12745 {
12746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12747 }
12748 return resultobj;
12749 fail:
12750 return NULL;
12751 }
12752
12753
12754 SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12755 PyObject *resultobj = 0;
12756 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12757 wxTextAttr *arg2 = 0 ;
12758 bool result;
12759 void *argp1 = 0 ;
12760 int res1 = 0 ;
12761 void *argp2 = 0 ;
12762 int res2 = 0 ;
12763 PyObject * obj0 = 0 ;
12764 PyObject * obj1 = 0 ;
12765 char * kwnames[] = {
12766 (char *) "self",(char *) "style", NULL
12767 };
12768
12769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12771 if (!SWIG_IsOK(res1)) {
12772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12773 }
12774 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12775 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12776 if (!SWIG_IsOK(res2)) {
12777 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12778 }
12779 if (!argp2) {
12780 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12781 }
12782 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12783 {
12784 PyThreadState* __tstate = wxPyBeginAllowThreads();
12785 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
12786 wxPyEndAllowThreads(__tstate);
12787 if (PyErr_Occurred()) SWIG_fail;
12788 }
12789 {
12790 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12791 }
12792 return resultobj;
12793 fail:
12794 return NULL;
12795 }
12796
12797
12798 SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12799 PyObject *resultobj = 0;
12800 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12801 wxTextAttr *result = 0 ;
12802 void *argp1 = 0 ;
12803 int res1 = 0 ;
12804 PyObject *swig_obj[1] ;
12805
12806 if (!args) SWIG_fail;
12807 swig_obj[0] = args;
12808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12809 if (!SWIG_IsOK(res1)) {
12810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12811 }
12812 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12813 {
12814 PyThreadState* __tstate = wxPyBeginAllowThreads();
12815 {
12816 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
12817 result = (wxTextAttr *) &_result_ref;
12818 }
12819 wxPyEndAllowThreads(__tstate);
12820 if (PyErr_Occurred()) SWIG_fail;
12821 }
12822 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
12823 return resultobj;
12824 fail:
12825 return NULL;
12826 }
12827
12828
12829 SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12830 PyObject *resultobj = 0;
12831 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12832 long arg2 ;
12833 long arg3 ;
12834 long result;
12835 void *argp1 = 0 ;
12836 int res1 = 0 ;
12837 long val2 ;
12838 int ecode2 = 0 ;
12839 long val3 ;
12840 int ecode3 = 0 ;
12841 PyObject * obj0 = 0 ;
12842 PyObject * obj1 = 0 ;
12843 PyObject * obj2 = 0 ;
12844 char * kwnames[] = {
12845 (char *) "self",(char *) "x",(char *) "y", NULL
12846 };
12847
12848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12850 if (!SWIG_IsOK(res1)) {
12851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12852 }
12853 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12854 ecode2 = SWIG_AsVal_long(obj1, &val2);
12855 if (!SWIG_IsOK(ecode2)) {
12856 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
12857 }
12858 arg2 = static_cast< long >(val2);
12859 ecode3 = SWIG_AsVal_long(obj2, &val3);
12860 if (!SWIG_IsOK(ecode3)) {
12861 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
12862 }
12863 arg3 = static_cast< long >(val3);
12864 {
12865 PyThreadState* __tstate = wxPyBeginAllowThreads();
12866 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
12867 wxPyEndAllowThreads(__tstate);
12868 if (PyErr_Occurred()) SWIG_fail;
12869 }
12870 resultobj = SWIG_From_long(static_cast< long >(result));
12871 return resultobj;
12872 fail:
12873 return NULL;
12874 }
12875
12876
12877 SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12878 PyObject *resultobj = 0;
12879 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12880 long arg2 ;
12881 long *arg3 = (long *) 0 ;
12882 long *arg4 = (long *) 0 ;
12883 void *argp1 = 0 ;
12884 int res1 = 0 ;
12885 long val2 ;
12886 int ecode2 = 0 ;
12887 long temp3 ;
12888 int res3 = SWIG_TMPOBJ ;
12889 long temp4 ;
12890 int res4 = SWIG_TMPOBJ ;
12891 PyObject * obj0 = 0 ;
12892 PyObject * obj1 = 0 ;
12893 char * kwnames[] = {
12894 (char *) "self",(char *) "pos", NULL
12895 };
12896
12897 arg3 = &temp3;
12898 arg4 = &temp4;
12899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
12900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12901 if (!SWIG_IsOK(res1)) {
12902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12903 }
12904 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12905 ecode2 = SWIG_AsVal_long(obj1, &val2);
12906 if (!SWIG_IsOK(ecode2)) {
12907 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
12908 }
12909 arg2 = static_cast< long >(val2);
12910 {
12911 PyThreadState* __tstate = wxPyBeginAllowThreads();
12912 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
12913 wxPyEndAllowThreads(__tstate);
12914 if (PyErr_Occurred()) SWIG_fail;
12915 }
12916 resultobj = SWIG_Py_Void();
12917 if (SWIG_IsTmpObj(res3)) {
12918 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12919 } else {
12920 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12921 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12922 }
12923 if (SWIG_IsTmpObj(res4)) {
12924 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
12925 } else {
12926 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12927 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
12928 }
12929 return resultobj;
12930 fail:
12931 return NULL;
12932 }
12933
12934
12935 SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12936 PyObject *resultobj = 0;
12937 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12938 long arg2 ;
12939 void *argp1 = 0 ;
12940 int res1 = 0 ;
12941 long val2 ;
12942 int ecode2 = 0 ;
12943 PyObject * obj0 = 0 ;
12944 PyObject * obj1 = 0 ;
12945 char * kwnames[] = {
12946 (char *) "self",(char *) "pos", NULL
12947 };
12948
12949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
12950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12951 if (!SWIG_IsOK(res1)) {
12952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12953 }
12954 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12955 ecode2 = SWIG_AsVal_long(obj1, &val2);
12956 if (!SWIG_IsOK(ecode2)) {
12957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
12958 }
12959 arg2 = static_cast< long >(val2);
12960 {
12961 PyThreadState* __tstate = wxPyBeginAllowThreads();
12962 (arg1)->ShowPosition(arg2);
12963 wxPyEndAllowThreads(__tstate);
12964 if (PyErr_Occurred()) SWIG_fail;
12965 }
12966 resultobj = SWIG_Py_Void();
12967 return resultobj;
12968 fail:
12969 return NULL;
12970 }
12971
12972
12973 SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12974 PyObject *resultobj = 0;
12975 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12976 wxPoint *arg2 = 0 ;
12977 long *arg3 = (long *) 0 ;
12978 long *arg4 = (long *) 0 ;
12979 wxTextCtrlHitTestResult result;
12980 void *argp1 = 0 ;
12981 int res1 = 0 ;
12982 wxPoint temp2 ;
12983 long temp3 ;
12984 int res3 = SWIG_TMPOBJ ;
12985 long temp4 ;
12986 int res4 = SWIG_TMPOBJ ;
12987 PyObject * obj0 = 0 ;
12988 PyObject * obj1 = 0 ;
12989 char * kwnames[] = {
12990 (char *) "self",(char *) "pt", NULL
12991 };
12992
12993 arg3 = &temp3;
12994 arg4 = &temp4;
12995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
12996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12997 if (!SWIG_IsOK(res1)) {
12998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12999 }
13000 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13001 {
13002 arg2 = &temp2;
13003 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13004 }
13005 {
13006 PyThreadState* __tstate = wxPyBeginAllowThreads();
13007 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13008 wxPyEndAllowThreads(__tstate);
13009 if (PyErr_Occurred()) SWIG_fail;
13010 }
13011 resultobj = SWIG_From_int(static_cast< int >(result));
13012 if (SWIG_IsTmpObj(res3)) {
13013 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13014 } else {
13015 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13016 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13017 }
13018 if (SWIG_IsTmpObj(res4)) {
13019 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13020 } else {
13021 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13022 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13023 }
13024 return resultobj;
13025 fail:
13026 return NULL;
13027 }
13028
13029
13030 SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13031 PyObject *resultobj = 0;
13032 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13033 wxPoint *arg2 = 0 ;
13034 long *arg3 = (long *) 0 ;
13035 wxTextCtrlHitTestResult result;
13036 void *argp1 = 0 ;
13037 int res1 = 0 ;
13038 wxPoint temp2 ;
13039 long temp3 ;
13040 int res3 = SWIG_TMPOBJ ;
13041 PyObject * obj0 = 0 ;
13042 PyObject * obj1 = 0 ;
13043 char * kwnames[] = {
13044 (char *) "self",(char *) "pt", NULL
13045 };
13046
13047 arg3 = &temp3;
13048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13050 if (!SWIG_IsOK(res1)) {
13051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13052 }
13053 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13054 {
13055 arg2 = &temp2;
13056 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13057 }
13058 {
13059 PyThreadState* __tstate = wxPyBeginAllowThreads();
13060 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13061 wxPyEndAllowThreads(__tstate);
13062 if (PyErr_Occurred()) SWIG_fail;
13063 }
13064 resultobj = SWIG_From_int(static_cast< int >(result));
13065 if (SWIG_IsTmpObj(res3)) {
13066 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13067 } else {
13068 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13069 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13070 }
13071 return resultobj;
13072 fail:
13073 return NULL;
13074 }
13075
13076
13077 SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13078 PyObject *resultobj = 0;
13079 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13080 void *argp1 = 0 ;
13081 int res1 = 0 ;
13082 PyObject *swig_obj[1] ;
13083
13084 if (!args) SWIG_fail;
13085 swig_obj[0] = args;
13086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13087 if (!SWIG_IsOK(res1)) {
13088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13089 }
13090 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13091 {
13092 PyThreadState* __tstate = wxPyBeginAllowThreads();
13093 (arg1)->Copy();
13094 wxPyEndAllowThreads(__tstate);
13095 if (PyErr_Occurred()) SWIG_fail;
13096 }
13097 resultobj = SWIG_Py_Void();
13098 return resultobj;
13099 fail:
13100 return NULL;
13101 }
13102
13103
13104 SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13105 PyObject *resultobj = 0;
13106 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13107 void *argp1 = 0 ;
13108 int res1 = 0 ;
13109 PyObject *swig_obj[1] ;
13110
13111 if (!args) SWIG_fail;
13112 swig_obj[0] = args;
13113 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13114 if (!SWIG_IsOK(res1)) {
13115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13116 }
13117 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13118 {
13119 PyThreadState* __tstate = wxPyBeginAllowThreads();
13120 (arg1)->Cut();
13121 wxPyEndAllowThreads(__tstate);
13122 if (PyErr_Occurred()) SWIG_fail;
13123 }
13124 resultobj = SWIG_Py_Void();
13125 return resultobj;
13126 fail:
13127 return NULL;
13128 }
13129
13130
13131 SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13132 PyObject *resultobj = 0;
13133 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13134 void *argp1 = 0 ;
13135 int res1 = 0 ;
13136 PyObject *swig_obj[1] ;
13137
13138 if (!args) SWIG_fail;
13139 swig_obj[0] = args;
13140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13141 if (!SWIG_IsOK(res1)) {
13142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13143 }
13144 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13145 {
13146 PyThreadState* __tstate = wxPyBeginAllowThreads();
13147 (arg1)->Paste();
13148 wxPyEndAllowThreads(__tstate);
13149 if (PyErr_Occurred()) SWIG_fail;
13150 }
13151 resultobj = SWIG_Py_Void();
13152 return resultobj;
13153 fail:
13154 return NULL;
13155 }
13156
13157
13158 SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13159 PyObject *resultobj = 0;
13160 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13161 bool result;
13162 void *argp1 = 0 ;
13163 int res1 = 0 ;
13164 PyObject *swig_obj[1] ;
13165
13166 if (!args) SWIG_fail;
13167 swig_obj[0] = args;
13168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13169 if (!SWIG_IsOK(res1)) {
13170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13171 }
13172 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13173 {
13174 PyThreadState* __tstate = wxPyBeginAllowThreads();
13175 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13176 wxPyEndAllowThreads(__tstate);
13177 if (PyErr_Occurred()) SWIG_fail;
13178 }
13179 {
13180 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13181 }
13182 return resultobj;
13183 fail:
13184 return NULL;
13185 }
13186
13187
13188 SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13189 PyObject *resultobj = 0;
13190 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13191 bool result;
13192 void *argp1 = 0 ;
13193 int res1 = 0 ;
13194 PyObject *swig_obj[1] ;
13195
13196 if (!args) SWIG_fail;
13197 swig_obj[0] = args;
13198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13199 if (!SWIG_IsOK(res1)) {
13200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13201 }
13202 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13203 {
13204 PyThreadState* __tstate = wxPyBeginAllowThreads();
13205 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13206 wxPyEndAllowThreads(__tstate);
13207 if (PyErr_Occurred()) SWIG_fail;
13208 }
13209 {
13210 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13211 }
13212 return resultobj;
13213 fail:
13214 return NULL;
13215 }
13216
13217
13218 SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13219 PyObject *resultobj = 0;
13220 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13221 bool result;
13222 void *argp1 = 0 ;
13223 int res1 = 0 ;
13224 PyObject *swig_obj[1] ;
13225
13226 if (!args) SWIG_fail;
13227 swig_obj[0] = args;
13228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13229 if (!SWIG_IsOK(res1)) {
13230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13231 }
13232 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13233 {
13234 PyThreadState* __tstate = wxPyBeginAllowThreads();
13235 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13236 wxPyEndAllowThreads(__tstate);
13237 if (PyErr_Occurred()) SWIG_fail;
13238 }
13239 {
13240 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13241 }
13242 return resultobj;
13243 fail:
13244 return NULL;
13245 }
13246
13247
13248 SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13249 PyObject *resultobj = 0;
13250 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13251 void *argp1 = 0 ;
13252 int res1 = 0 ;
13253 PyObject *swig_obj[1] ;
13254
13255 if (!args) SWIG_fail;
13256 swig_obj[0] = args;
13257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13258 if (!SWIG_IsOK(res1)) {
13259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13260 }
13261 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13262 {
13263 PyThreadState* __tstate = wxPyBeginAllowThreads();
13264 (arg1)->Undo();
13265 wxPyEndAllowThreads(__tstate);
13266 if (PyErr_Occurred()) SWIG_fail;
13267 }
13268 resultobj = SWIG_Py_Void();
13269 return resultobj;
13270 fail:
13271 return NULL;
13272 }
13273
13274
13275 SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13276 PyObject *resultobj = 0;
13277 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13278 void *argp1 = 0 ;
13279 int res1 = 0 ;
13280 PyObject *swig_obj[1] ;
13281
13282 if (!args) SWIG_fail;
13283 swig_obj[0] = args;
13284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13285 if (!SWIG_IsOK(res1)) {
13286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13287 }
13288 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13289 {
13290 PyThreadState* __tstate = wxPyBeginAllowThreads();
13291 (arg1)->Redo();
13292 wxPyEndAllowThreads(__tstate);
13293 if (PyErr_Occurred()) SWIG_fail;
13294 }
13295 resultobj = SWIG_Py_Void();
13296 return resultobj;
13297 fail:
13298 return NULL;
13299 }
13300
13301
13302 SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13303 PyObject *resultobj = 0;
13304 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13305 bool result;
13306 void *argp1 = 0 ;
13307 int res1 = 0 ;
13308 PyObject *swig_obj[1] ;
13309
13310 if (!args) SWIG_fail;
13311 swig_obj[0] = args;
13312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13313 if (!SWIG_IsOK(res1)) {
13314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13315 }
13316 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13317 {
13318 PyThreadState* __tstate = wxPyBeginAllowThreads();
13319 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13320 wxPyEndAllowThreads(__tstate);
13321 if (PyErr_Occurred()) SWIG_fail;
13322 }
13323 {
13324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13325 }
13326 return resultobj;
13327 fail:
13328 return NULL;
13329 }
13330
13331
13332 SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13333 PyObject *resultobj = 0;
13334 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13335 bool result;
13336 void *argp1 = 0 ;
13337 int res1 = 0 ;
13338 PyObject *swig_obj[1] ;
13339
13340 if (!args) SWIG_fail;
13341 swig_obj[0] = args;
13342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13343 if (!SWIG_IsOK(res1)) {
13344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13345 }
13346 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13347 {
13348 PyThreadState* __tstate = wxPyBeginAllowThreads();
13349 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13350 wxPyEndAllowThreads(__tstate);
13351 if (PyErr_Occurred()) SWIG_fail;
13352 }
13353 {
13354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13355 }
13356 return resultobj;
13357 fail:
13358 return NULL;
13359 }
13360
13361
13362 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13363 PyObject *resultobj = 0;
13364 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13365 long arg2 ;
13366 void *argp1 = 0 ;
13367 int res1 = 0 ;
13368 long val2 ;
13369 int ecode2 = 0 ;
13370 PyObject * obj0 = 0 ;
13371 PyObject * obj1 = 0 ;
13372 char * kwnames[] = {
13373 (char *) "self",(char *) "pos", NULL
13374 };
13375
13376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13378 if (!SWIG_IsOK(res1)) {
13379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13380 }
13381 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13382 ecode2 = SWIG_AsVal_long(obj1, &val2);
13383 if (!SWIG_IsOK(ecode2)) {
13384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13385 }
13386 arg2 = static_cast< long >(val2);
13387 {
13388 PyThreadState* __tstate = wxPyBeginAllowThreads();
13389 (arg1)->SetInsertionPoint(arg2);
13390 wxPyEndAllowThreads(__tstate);
13391 if (PyErr_Occurred()) SWIG_fail;
13392 }
13393 resultobj = SWIG_Py_Void();
13394 return resultobj;
13395 fail:
13396 return NULL;
13397 }
13398
13399
13400 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13401 PyObject *resultobj = 0;
13402 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13403 void *argp1 = 0 ;
13404 int res1 = 0 ;
13405 PyObject *swig_obj[1] ;
13406
13407 if (!args) SWIG_fail;
13408 swig_obj[0] = args;
13409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13410 if (!SWIG_IsOK(res1)) {
13411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13412 }
13413 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13414 {
13415 PyThreadState* __tstate = wxPyBeginAllowThreads();
13416 (arg1)->SetInsertionPointEnd();
13417 wxPyEndAllowThreads(__tstate);
13418 if (PyErr_Occurred()) SWIG_fail;
13419 }
13420 resultobj = SWIG_Py_Void();
13421 return resultobj;
13422 fail:
13423 return NULL;
13424 }
13425
13426
13427 SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13428 PyObject *resultobj = 0;
13429 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13430 long result;
13431 void *argp1 = 0 ;
13432 int res1 = 0 ;
13433 PyObject *swig_obj[1] ;
13434
13435 if (!args) SWIG_fail;
13436 swig_obj[0] = args;
13437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13438 if (!SWIG_IsOK(res1)) {
13439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13440 }
13441 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13442 {
13443 PyThreadState* __tstate = wxPyBeginAllowThreads();
13444 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13445 wxPyEndAllowThreads(__tstate);
13446 if (PyErr_Occurred()) SWIG_fail;
13447 }
13448 resultobj = SWIG_From_long(static_cast< long >(result));
13449 return resultobj;
13450 fail:
13451 return NULL;
13452 }
13453
13454
13455 SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13456 PyObject *resultobj = 0;
13457 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13458 long result;
13459 void *argp1 = 0 ;
13460 int res1 = 0 ;
13461 PyObject *swig_obj[1] ;
13462
13463 if (!args) SWIG_fail;
13464 swig_obj[0] = args;
13465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13466 if (!SWIG_IsOK(res1)) {
13467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13468 }
13469 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13470 {
13471 PyThreadState* __tstate = wxPyBeginAllowThreads();
13472 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13473 wxPyEndAllowThreads(__tstate);
13474 if (PyErr_Occurred()) SWIG_fail;
13475 }
13476 resultobj = SWIG_From_long(static_cast< long >(result));
13477 return resultobj;
13478 fail:
13479 return NULL;
13480 }
13481
13482
13483 SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13484 PyObject *resultobj = 0;
13485 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13486 long arg2 ;
13487 long arg3 ;
13488 void *argp1 = 0 ;
13489 int res1 = 0 ;
13490 long val2 ;
13491 int ecode2 = 0 ;
13492 long val3 ;
13493 int ecode3 = 0 ;
13494 PyObject * obj0 = 0 ;
13495 PyObject * obj1 = 0 ;
13496 PyObject * obj2 = 0 ;
13497 char * kwnames[] = {
13498 (char *) "self",(char *) "_from",(char *) "to", NULL
13499 };
13500
13501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13503 if (!SWIG_IsOK(res1)) {
13504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13505 }
13506 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13507 ecode2 = SWIG_AsVal_long(obj1, &val2);
13508 if (!SWIG_IsOK(ecode2)) {
13509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13510 }
13511 arg2 = static_cast< long >(val2);
13512 ecode3 = SWIG_AsVal_long(obj2, &val3);
13513 if (!SWIG_IsOK(ecode3)) {
13514 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13515 }
13516 arg3 = static_cast< long >(val3);
13517 {
13518 PyThreadState* __tstate = wxPyBeginAllowThreads();
13519 (arg1)->SetSelection(arg2,arg3);
13520 wxPyEndAllowThreads(__tstate);
13521 if (PyErr_Occurred()) SWIG_fail;
13522 }
13523 resultobj = SWIG_Py_Void();
13524 return resultobj;
13525 fail:
13526 return NULL;
13527 }
13528
13529
13530 SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13531 PyObject *resultobj = 0;
13532 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13533 void *argp1 = 0 ;
13534 int res1 = 0 ;
13535 PyObject *swig_obj[1] ;
13536
13537 if (!args) SWIG_fail;
13538 swig_obj[0] = args;
13539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13540 if (!SWIG_IsOK(res1)) {
13541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13542 }
13543 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13544 {
13545 PyThreadState* __tstate = wxPyBeginAllowThreads();
13546 (arg1)->SelectAll();
13547 wxPyEndAllowThreads(__tstate);
13548 if (PyErr_Occurred()) SWIG_fail;
13549 }
13550 resultobj = SWIG_Py_Void();
13551 return resultobj;
13552 fail:
13553 return NULL;
13554 }
13555
13556
13557 SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13558 PyObject *resultobj = 0;
13559 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13560 bool arg2 ;
13561 void *argp1 = 0 ;
13562 int res1 = 0 ;
13563 bool val2 ;
13564 int ecode2 = 0 ;
13565 PyObject * obj0 = 0 ;
13566 PyObject * obj1 = 0 ;
13567 char * kwnames[] = {
13568 (char *) "self",(char *) "editable", NULL
13569 };
13570
13571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13573 if (!SWIG_IsOK(res1)) {
13574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13575 }
13576 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13577 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13578 if (!SWIG_IsOK(ecode2)) {
13579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13580 }
13581 arg2 = static_cast< bool >(val2);
13582 {
13583 PyThreadState* __tstate = wxPyBeginAllowThreads();
13584 (arg1)->SetEditable(arg2);
13585 wxPyEndAllowThreads(__tstate);
13586 if (PyErr_Occurred()) SWIG_fail;
13587 }
13588 resultobj = SWIG_Py_Void();
13589 return resultobj;
13590 fail:
13591 return NULL;
13592 }
13593
13594
13595 SWIGINTERN PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13596 PyObject *resultobj = 0;
13597 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13598 bool arg2 = (bool) true ;
13599 bool result;
13600 void *argp1 = 0 ;
13601 int res1 = 0 ;
13602 bool val2 ;
13603 int ecode2 = 0 ;
13604 PyObject * obj0 = 0 ;
13605 PyObject * obj1 = 0 ;
13606 char * kwnames[] = {
13607 (char *) "self",(char *) "show", NULL
13608 };
13609
13610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) SWIG_fail;
13611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13612 if (!SWIG_IsOK(res1)) {
13613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13614 }
13615 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13616 if (obj1) {
13617 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13618 if (!SWIG_IsOK(ecode2)) {
13619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "2"" of type '" "bool""'");
13620 }
13621 arg2 = static_cast< bool >(val2);
13622 }
13623 {
13624 PyThreadState* __tstate = wxPyBeginAllowThreads();
13625 result = (bool)(arg1)->ShowNativeCaret(arg2);
13626 wxPyEndAllowThreads(__tstate);
13627 if (PyErr_Occurred()) SWIG_fail;
13628 }
13629 {
13630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13631 }
13632 return resultobj;
13633 fail:
13634 return NULL;
13635 }
13636
13637
13638 SWIGINTERN PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13639 PyObject *resultobj = 0;
13640 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13641 bool result;
13642 void *argp1 = 0 ;
13643 int res1 = 0 ;
13644 PyObject *swig_obj[1] ;
13645
13646 if (!args) SWIG_fail;
13647 swig_obj[0] = args;
13648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13649 if (!SWIG_IsOK(res1)) {
13650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HideNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13651 }
13652 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13653 {
13654 PyThreadState* __tstate = wxPyBeginAllowThreads();
13655 result = (bool)(arg1)->HideNativeCaret();
13656 wxPyEndAllowThreads(__tstate);
13657 if (PyErr_Occurred()) SWIG_fail;
13658 }
13659 {
13660 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13661 }
13662 return resultobj;
13663 fail:
13664 return NULL;
13665 }
13666
13667
13668 SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13669 PyObject *resultobj = 0;
13670 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13671 wxString *arg2 = 0 ;
13672 void *argp1 = 0 ;
13673 int res1 = 0 ;
13674 bool temp2 = false ;
13675 PyObject * obj0 = 0 ;
13676 PyObject * obj1 = 0 ;
13677 char * kwnames[] = {
13678 (char *) "self",(char *) "text", NULL
13679 };
13680
13681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13683 if (!SWIG_IsOK(res1)) {
13684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13685 }
13686 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13687 {
13688 arg2 = wxString_in_helper(obj1);
13689 if (arg2 == NULL) SWIG_fail;
13690 temp2 = true;
13691 }
13692 {
13693 PyThreadState* __tstate = wxPyBeginAllowThreads();
13694 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13695 wxPyEndAllowThreads(__tstate);
13696 if (PyErr_Occurred()) SWIG_fail;
13697 }
13698 resultobj = SWIG_Py_Void();
13699 {
13700 if (temp2)
13701 delete arg2;
13702 }
13703 return resultobj;
13704 fail:
13705 {
13706 if (temp2)
13707 delete arg2;
13708 }
13709 return NULL;
13710 }
13711
13712
13713 SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13714 PyObject *resultobj = 0;
13715 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13716 long arg2 ;
13717 long arg3 ;
13718 wxString result;
13719 void *argp1 = 0 ;
13720 int res1 = 0 ;
13721 long val2 ;
13722 int ecode2 = 0 ;
13723 long val3 ;
13724 int ecode3 = 0 ;
13725 PyObject * obj0 = 0 ;
13726 PyObject * obj1 = 0 ;
13727 PyObject * obj2 = 0 ;
13728 char * kwnames[] = {
13729 (char *) "self",(char *) "_from",(char *) "to", NULL
13730 };
13731
13732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13734 if (!SWIG_IsOK(res1)) {
13735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13736 }
13737 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13738 ecode2 = SWIG_AsVal_long(obj1, &val2);
13739 if (!SWIG_IsOK(ecode2)) {
13740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13741 }
13742 arg2 = static_cast< long >(val2);
13743 ecode3 = SWIG_AsVal_long(obj2, &val3);
13744 if (!SWIG_IsOK(ecode3)) {
13745 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13746 }
13747 arg3 = static_cast< long >(val3);
13748 {
13749 PyThreadState* __tstate = wxPyBeginAllowThreads();
13750 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13751 wxPyEndAllowThreads(__tstate);
13752 if (PyErr_Occurred()) SWIG_fail;
13753 }
13754 {
13755 #if wxUSE_UNICODE
13756 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13757 #else
13758 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13759 #endif
13760 }
13761 return resultobj;
13762 fail:
13763 return NULL;
13764 }
13765
13766
13767 SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13768 PyObject *resultobj = 0;
13769 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13770 SwigValueWrapper<wxVisualAttributes > result;
13771 int val1 ;
13772 int ecode1 = 0 ;
13773 PyObject * obj0 = 0 ;
13774 char * kwnames[] = {
13775 (char *) "variant", NULL
13776 };
13777
13778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13779 if (obj0) {
13780 ecode1 = SWIG_AsVal_int(obj0, &val1);
13781 if (!SWIG_IsOK(ecode1)) {
13782 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13783 }
13784 arg1 = static_cast< wxWindowVariant >(val1);
13785 }
13786 {
13787 if (!wxPyCheckForApp()) SWIG_fail;
13788 PyThreadState* __tstate = wxPyBeginAllowThreads();
13789 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13790 wxPyEndAllowThreads(__tstate);
13791 if (PyErr_Occurred()) SWIG_fail;
13792 }
13793 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13794 return resultobj;
13795 fail:
13796 return NULL;
13797 }
13798
13799
13800 SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13801 PyObject *obj;
13802 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13803 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13804 return SWIG_Py_Void();
13805 }
13806
13807 SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13808 return SWIG_Python_InitShadowInstance(args);
13809 }
13810
13811 SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13812 PyObject *resultobj = 0;
13813 int arg1 ;
13814 wxMouseEvent *arg2 = 0 ;
13815 long arg3 ;
13816 long arg4 ;
13817 wxTextUrlEvent *result = 0 ;
13818 int val1 ;
13819 int ecode1 = 0 ;
13820 void *argp2 = 0 ;
13821 int res2 = 0 ;
13822 long val3 ;
13823 int ecode3 = 0 ;
13824 long val4 ;
13825 int ecode4 = 0 ;
13826 PyObject * obj0 = 0 ;
13827 PyObject * obj1 = 0 ;
13828 PyObject * obj2 = 0 ;
13829 PyObject * obj3 = 0 ;
13830 char * kwnames[] = {
13831 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
13832 };
13833
13834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13835 ecode1 = SWIG_AsVal_int(obj0, &val1);
13836 if (!SWIG_IsOK(ecode1)) {
13837 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
13838 }
13839 arg1 = static_cast< int >(val1);
13840 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
13841 if (!SWIG_IsOK(res2)) {
13842 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13843 }
13844 if (!argp2) {
13845 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13846 }
13847 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
13848 ecode3 = SWIG_AsVal_long(obj2, &val3);
13849 if (!SWIG_IsOK(ecode3)) {
13850 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
13851 }
13852 arg3 = static_cast< long >(val3);
13853 ecode4 = SWIG_AsVal_long(obj3, &val4);
13854 if (!SWIG_IsOK(ecode4)) {
13855 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
13856 }
13857 arg4 = static_cast< long >(val4);
13858 {
13859 PyThreadState* __tstate = wxPyBeginAllowThreads();
13860 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
13861 wxPyEndAllowThreads(__tstate);
13862 if (PyErr_Occurred()) SWIG_fail;
13863 }
13864 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
13865 return resultobj;
13866 fail:
13867 return NULL;
13868 }
13869
13870
13871 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13872 PyObject *resultobj = 0;
13873 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13874 wxMouseEvent *result = 0 ;
13875 void *argp1 = 0 ;
13876 int res1 = 0 ;
13877 PyObject *swig_obj[1] ;
13878
13879 if (!args) SWIG_fail;
13880 swig_obj[0] = args;
13881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13882 if (!SWIG_IsOK(res1)) {
13883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
13884 }
13885 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13886 {
13887 PyThreadState* __tstate = wxPyBeginAllowThreads();
13888 {
13889 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
13890 result = (wxMouseEvent *) &_result_ref;
13891 }
13892 wxPyEndAllowThreads(__tstate);
13893 if (PyErr_Occurred()) SWIG_fail;
13894 }
13895 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
13896 return resultobj;
13897 fail:
13898 return NULL;
13899 }
13900
13901
13902 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13903 PyObject *resultobj = 0;
13904 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13905 long result;
13906 void *argp1 = 0 ;
13907 int res1 = 0 ;
13908 PyObject *swig_obj[1] ;
13909
13910 if (!args) SWIG_fail;
13911 swig_obj[0] = args;
13912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13913 if (!SWIG_IsOK(res1)) {
13914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13915 }
13916 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13917 {
13918 PyThreadState* __tstate = wxPyBeginAllowThreads();
13919 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
13920 wxPyEndAllowThreads(__tstate);
13921 if (PyErr_Occurred()) SWIG_fail;
13922 }
13923 resultobj = SWIG_From_long(static_cast< long >(result));
13924 return resultobj;
13925 fail:
13926 return NULL;
13927 }
13928
13929
13930 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13931 PyObject *resultobj = 0;
13932 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13933 long result;
13934 void *argp1 = 0 ;
13935 int res1 = 0 ;
13936 PyObject *swig_obj[1] ;
13937
13938 if (!args) SWIG_fail;
13939 swig_obj[0] = args;
13940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13941 if (!SWIG_IsOK(res1)) {
13942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13943 }
13944 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13945 {
13946 PyThreadState* __tstate = wxPyBeginAllowThreads();
13947 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
13948 wxPyEndAllowThreads(__tstate);
13949 if (PyErr_Occurred()) SWIG_fail;
13950 }
13951 resultobj = SWIG_From_long(static_cast< long >(result));
13952 return resultobj;
13953 fail:
13954 return NULL;
13955 }
13956
13957
13958 SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13959 PyObject *obj;
13960 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13961 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
13962 return SWIG_Py_Void();
13963 }
13964
13965 SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13966 return SWIG_Python_InitShadowInstance(args);
13967 }
13968
13969 SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
13970 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
13971 return 1;
13972 }
13973
13974
13975 SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
13976 PyObject *pyobj = 0;
13977
13978 {
13979 #if wxUSE_UNICODE
13980 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
13981 #else
13982 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
13983 #endif
13984 }
13985 return pyobj;
13986 }
13987
13988
13989 SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13990 PyObject *resultobj = 0;
13991 wxWindow *arg1 = (wxWindow *) 0 ;
13992 int arg2 = (int) -1 ;
13993 wxPoint const &arg3_defvalue = wxDefaultPosition ;
13994 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
13995 wxSize const &arg4_defvalue = wxDefaultSize ;
13996 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
13997 long arg5 = (long) wxSB_HORIZONTAL ;
13998 wxValidator const &arg6_defvalue = wxDefaultValidator ;
13999 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14000 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14001 wxString *arg7 = (wxString *) &arg7_defvalue ;
14002 wxScrollBar *result = 0 ;
14003 void *argp1 = 0 ;
14004 int res1 = 0 ;
14005 int val2 ;
14006 int ecode2 = 0 ;
14007 wxPoint temp3 ;
14008 wxSize temp4 ;
14009 long val5 ;
14010 int ecode5 = 0 ;
14011 void *argp6 = 0 ;
14012 int res6 = 0 ;
14013 bool temp7 = false ;
14014 PyObject * obj0 = 0 ;
14015 PyObject * obj1 = 0 ;
14016 PyObject * obj2 = 0 ;
14017 PyObject * obj3 = 0 ;
14018 PyObject * obj4 = 0 ;
14019 PyObject * obj5 = 0 ;
14020 PyObject * obj6 = 0 ;
14021 char * kwnames[] = {
14022 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14023 };
14024
14025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14027 if (!SWIG_IsOK(res1)) {
14028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14029 }
14030 arg1 = reinterpret_cast< wxWindow * >(argp1);
14031 if (obj1) {
14032 ecode2 = SWIG_AsVal_int(obj1, &val2);
14033 if (!SWIG_IsOK(ecode2)) {
14034 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14035 }
14036 arg2 = static_cast< int >(val2);
14037 }
14038 if (obj2) {
14039 {
14040 arg3 = &temp3;
14041 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14042 }
14043 }
14044 if (obj3) {
14045 {
14046 arg4 = &temp4;
14047 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14048 }
14049 }
14050 if (obj4) {
14051 ecode5 = SWIG_AsVal_long(obj4, &val5);
14052 if (!SWIG_IsOK(ecode5)) {
14053 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14054 }
14055 arg5 = static_cast< long >(val5);
14056 }
14057 if (obj5) {
14058 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14059 if (!SWIG_IsOK(res6)) {
14060 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14061 }
14062 if (!argp6) {
14063 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14064 }
14065 arg6 = reinterpret_cast< wxValidator * >(argp6);
14066 }
14067 if (obj6) {
14068 {
14069 arg7 = wxString_in_helper(obj6);
14070 if (arg7 == NULL) SWIG_fail;
14071 temp7 = true;
14072 }
14073 }
14074 {
14075 if (!wxPyCheckForApp()) SWIG_fail;
14076 PyThreadState* __tstate = wxPyBeginAllowThreads();
14077 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14078 wxPyEndAllowThreads(__tstate);
14079 if (PyErr_Occurred()) SWIG_fail;
14080 }
14081 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14082 {
14083 if (temp7)
14084 delete arg7;
14085 }
14086 return resultobj;
14087 fail:
14088 {
14089 if (temp7)
14090 delete arg7;
14091 }
14092 return NULL;
14093 }
14094
14095
14096 SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14097 PyObject *resultobj = 0;
14098 wxScrollBar *result = 0 ;
14099
14100 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14101 {
14102 if (!wxPyCheckForApp()) SWIG_fail;
14103 PyThreadState* __tstate = wxPyBeginAllowThreads();
14104 result = (wxScrollBar *)new wxScrollBar();
14105 wxPyEndAllowThreads(__tstate);
14106 if (PyErr_Occurred()) SWIG_fail;
14107 }
14108 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14109 return resultobj;
14110 fail:
14111 return NULL;
14112 }
14113
14114
14115 SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14116 PyObject *resultobj = 0;
14117 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14118 wxWindow *arg2 = (wxWindow *) 0 ;
14119 int arg3 = (int) -1 ;
14120 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14121 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14122 wxSize const &arg5_defvalue = wxDefaultSize ;
14123 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14124 long arg6 = (long) wxSB_HORIZONTAL ;
14125 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14126 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14127 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14128 wxString *arg8 = (wxString *) &arg8_defvalue ;
14129 bool result;
14130 void *argp1 = 0 ;
14131 int res1 = 0 ;
14132 void *argp2 = 0 ;
14133 int res2 = 0 ;
14134 int val3 ;
14135 int ecode3 = 0 ;
14136 wxPoint temp4 ;
14137 wxSize temp5 ;
14138 long val6 ;
14139 int ecode6 = 0 ;
14140 void *argp7 = 0 ;
14141 int res7 = 0 ;
14142 bool temp8 = false ;
14143 PyObject * obj0 = 0 ;
14144 PyObject * obj1 = 0 ;
14145 PyObject * obj2 = 0 ;
14146 PyObject * obj3 = 0 ;
14147 PyObject * obj4 = 0 ;
14148 PyObject * obj5 = 0 ;
14149 PyObject * obj6 = 0 ;
14150 PyObject * obj7 = 0 ;
14151 char * kwnames[] = {
14152 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14153 };
14154
14155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14157 if (!SWIG_IsOK(res1)) {
14158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14159 }
14160 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14161 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14162 if (!SWIG_IsOK(res2)) {
14163 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14164 }
14165 arg2 = reinterpret_cast< wxWindow * >(argp2);
14166 if (obj2) {
14167 ecode3 = SWIG_AsVal_int(obj2, &val3);
14168 if (!SWIG_IsOK(ecode3)) {
14169 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14170 }
14171 arg3 = static_cast< int >(val3);
14172 }
14173 if (obj3) {
14174 {
14175 arg4 = &temp4;
14176 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14177 }
14178 }
14179 if (obj4) {
14180 {
14181 arg5 = &temp5;
14182 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14183 }
14184 }
14185 if (obj5) {
14186 ecode6 = SWIG_AsVal_long(obj5, &val6);
14187 if (!SWIG_IsOK(ecode6)) {
14188 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14189 }
14190 arg6 = static_cast< long >(val6);
14191 }
14192 if (obj6) {
14193 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14194 if (!SWIG_IsOK(res7)) {
14195 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14196 }
14197 if (!argp7) {
14198 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14199 }
14200 arg7 = reinterpret_cast< wxValidator * >(argp7);
14201 }
14202 if (obj7) {
14203 {
14204 arg8 = wxString_in_helper(obj7);
14205 if (arg8 == NULL) SWIG_fail;
14206 temp8 = true;
14207 }
14208 }
14209 {
14210 PyThreadState* __tstate = wxPyBeginAllowThreads();
14211 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14212 wxPyEndAllowThreads(__tstate);
14213 if (PyErr_Occurred()) SWIG_fail;
14214 }
14215 {
14216 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14217 }
14218 {
14219 if (temp8)
14220 delete arg8;
14221 }
14222 return resultobj;
14223 fail:
14224 {
14225 if (temp8)
14226 delete arg8;
14227 }
14228 return NULL;
14229 }
14230
14231
14232 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14233 PyObject *resultobj = 0;
14234 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14235 int result;
14236 void *argp1 = 0 ;
14237 int res1 = 0 ;
14238 PyObject *swig_obj[1] ;
14239
14240 if (!args) SWIG_fail;
14241 swig_obj[0] = args;
14242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14243 if (!SWIG_IsOK(res1)) {
14244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14245 }
14246 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14247 {
14248 PyThreadState* __tstate = wxPyBeginAllowThreads();
14249 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14250 wxPyEndAllowThreads(__tstate);
14251 if (PyErr_Occurred()) SWIG_fail;
14252 }
14253 resultobj = SWIG_From_int(static_cast< int >(result));
14254 return resultobj;
14255 fail:
14256 return NULL;
14257 }
14258
14259
14260 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14261 PyObject *resultobj = 0;
14262 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14263 int result;
14264 void *argp1 = 0 ;
14265 int res1 = 0 ;
14266 PyObject *swig_obj[1] ;
14267
14268 if (!args) SWIG_fail;
14269 swig_obj[0] = args;
14270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14271 if (!SWIG_IsOK(res1)) {
14272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14273 }
14274 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14275 {
14276 PyThreadState* __tstate = wxPyBeginAllowThreads();
14277 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14278 wxPyEndAllowThreads(__tstate);
14279 if (PyErr_Occurred()) SWIG_fail;
14280 }
14281 resultobj = SWIG_From_int(static_cast< int >(result));
14282 return resultobj;
14283 fail:
14284 return NULL;
14285 }
14286
14287
14288 SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14289 PyObject *resultobj = 0;
14290 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14291 int result;
14292 void *argp1 = 0 ;
14293 int res1 = 0 ;
14294 PyObject *swig_obj[1] ;
14295
14296 if (!args) SWIG_fail;
14297 swig_obj[0] = args;
14298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14299 if (!SWIG_IsOK(res1)) {
14300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14301 }
14302 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14303 {
14304 PyThreadState* __tstate = wxPyBeginAllowThreads();
14305 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14306 wxPyEndAllowThreads(__tstate);
14307 if (PyErr_Occurred()) SWIG_fail;
14308 }
14309 resultobj = SWIG_From_int(static_cast< int >(result));
14310 return resultobj;
14311 fail:
14312 return NULL;
14313 }
14314
14315
14316 SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14317 PyObject *resultobj = 0;
14318 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14319 int result;
14320 void *argp1 = 0 ;
14321 int res1 = 0 ;
14322 PyObject *swig_obj[1] ;
14323
14324 if (!args) SWIG_fail;
14325 swig_obj[0] = args;
14326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14327 if (!SWIG_IsOK(res1)) {
14328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14329 }
14330 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14331 {
14332 PyThreadState* __tstate = wxPyBeginAllowThreads();
14333 result = (int)((wxScrollBar const *)arg1)->GetRange();
14334 wxPyEndAllowThreads(__tstate);
14335 if (PyErr_Occurred()) SWIG_fail;
14336 }
14337 resultobj = SWIG_From_int(static_cast< int >(result));
14338 return resultobj;
14339 fail:
14340 return NULL;
14341 }
14342
14343
14344 SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14345 PyObject *resultobj = 0;
14346 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14347 bool result;
14348 void *argp1 = 0 ;
14349 int res1 = 0 ;
14350 PyObject *swig_obj[1] ;
14351
14352 if (!args) SWIG_fail;
14353 swig_obj[0] = args;
14354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14355 if (!SWIG_IsOK(res1)) {
14356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14357 }
14358 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14359 {
14360 PyThreadState* __tstate = wxPyBeginAllowThreads();
14361 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14362 wxPyEndAllowThreads(__tstate);
14363 if (PyErr_Occurred()) SWIG_fail;
14364 }
14365 {
14366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14367 }
14368 return resultobj;
14369 fail:
14370 return NULL;
14371 }
14372
14373
14374 SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14375 PyObject *resultobj = 0;
14376 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14377 int arg2 ;
14378 void *argp1 = 0 ;
14379 int res1 = 0 ;
14380 int val2 ;
14381 int ecode2 = 0 ;
14382 PyObject * obj0 = 0 ;
14383 PyObject * obj1 = 0 ;
14384 char * kwnames[] = {
14385 (char *) "self",(char *) "viewStart", NULL
14386 };
14387
14388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14390 if (!SWIG_IsOK(res1)) {
14391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14392 }
14393 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14394 ecode2 = SWIG_AsVal_int(obj1, &val2);
14395 if (!SWIG_IsOK(ecode2)) {
14396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14397 }
14398 arg2 = static_cast< int >(val2);
14399 {
14400 PyThreadState* __tstate = wxPyBeginAllowThreads();
14401 (arg1)->SetThumbPosition(arg2);
14402 wxPyEndAllowThreads(__tstate);
14403 if (PyErr_Occurred()) SWIG_fail;
14404 }
14405 resultobj = SWIG_Py_Void();
14406 return resultobj;
14407 fail:
14408 return NULL;
14409 }
14410
14411
14412 SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14413 PyObject *resultobj = 0;
14414 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14415 SwigValueWrapper<wxVisualAttributes > result;
14416 int val1 ;
14417 int ecode1 = 0 ;
14418 PyObject * obj0 = 0 ;
14419 char * kwnames[] = {
14420 (char *) "variant", NULL
14421 };
14422
14423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14424 if (obj0) {
14425 ecode1 = SWIG_AsVal_int(obj0, &val1);
14426 if (!SWIG_IsOK(ecode1)) {
14427 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14428 }
14429 arg1 = static_cast< wxWindowVariant >(val1);
14430 }
14431 {
14432 if (!wxPyCheckForApp()) SWIG_fail;
14433 PyThreadState* __tstate = wxPyBeginAllowThreads();
14434 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14435 wxPyEndAllowThreads(__tstate);
14436 if (PyErr_Occurred()) SWIG_fail;
14437 }
14438 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14439 return resultobj;
14440 fail:
14441 return NULL;
14442 }
14443
14444
14445 SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14446 PyObject *obj;
14447 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14448 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14449 return SWIG_Py_Void();
14450 }
14451
14452 SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14453 return SWIG_Python_InitShadowInstance(args);
14454 }
14455
14456 SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14457 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14458 return 1;
14459 }
14460
14461
14462 SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14463 PyObject *pyobj = 0;
14464
14465 {
14466 #if wxUSE_UNICODE
14467 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14468 #else
14469 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14470 #endif
14471 }
14472 return pyobj;
14473 }
14474
14475
14476 SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14477 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14478 return 1;
14479 }
14480
14481
14482 SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14483 PyObject *pyobj = 0;
14484
14485 {
14486 #if wxUSE_UNICODE
14487 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14488 #else
14489 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14490 #endif
14491 }
14492 return pyobj;
14493 }
14494
14495
14496 SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14497 PyObject *resultobj = 0;
14498 wxWindow *arg1 = (wxWindow *) 0 ;
14499 int arg2 = (int) -1 ;
14500 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14501 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14502 wxSize const &arg4_defvalue = wxDefaultSize ;
14503 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14504 long arg5 = (long) wxSP_HORIZONTAL ;
14505 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14506 wxString *arg6 = (wxString *) &arg6_defvalue ;
14507 wxSpinButton *result = 0 ;
14508 void *argp1 = 0 ;
14509 int res1 = 0 ;
14510 int val2 ;
14511 int ecode2 = 0 ;
14512 wxPoint temp3 ;
14513 wxSize temp4 ;
14514 long val5 ;
14515 int ecode5 = 0 ;
14516 bool temp6 = false ;
14517 PyObject * obj0 = 0 ;
14518 PyObject * obj1 = 0 ;
14519 PyObject * obj2 = 0 ;
14520 PyObject * obj3 = 0 ;
14521 PyObject * obj4 = 0 ;
14522 PyObject * obj5 = 0 ;
14523 char * kwnames[] = {
14524 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14525 };
14526
14527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14529 if (!SWIG_IsOK(res1)) {
14530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14531 }
14532 arg1 = reinterpret_cast< wxWindow * >(argp1);
14533 if (obj1) {
14534 ecode2 = SWIG_AsVal_int(obj1, &val2);
14535 if (!SWIG_IsOK(ecode2)) {
14536 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14537 }
14538 arg2 = static_cast< int >(val2);
14539 }
14540 if (obj2) {
14541 {
14542 arg3 = &temp3;
14543 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14544 }
14545 }
14546 if (obj3) {
14547 {
14548 arg4 = &temp4;
14549 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14550 }
14551 }
14552 if (obj4) {
14553 ecode5 = SWIG_AsVal_long(obj4, &val5);
14554 if (!SWIG_IsOK(ecode5)) {
14555 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14556 }
14557 arg5 = static_cast< long >(val5);
14558 }
14559 if (obj5) {
14560 {
14561 arg6 = wxString_in_helper(obj5);
14562 if (arg6 == NULL) SWIG_fail;
14563 temp6 = true;
14564 }
14565 }
14566 {
14567 if (!wxPyCheckForApp()) SWIG_fail;
14568 PyThreadState* __tstate = wxPyBeginAllowThreads();
14569 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14570 wxPyEndAllowThreads(__tstate);
14571 if (PyErr_Occurred()) SWIG_fail;
14572 }
14573 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14574 {
14575 if (temp6)
14576 delete arg6;
14577 }
14578 return resultobj;
14579 fail:
14580 {
14581 if (temp6)
14582 delete arg6;
14583 }
14584 return NULL;
14585 }
14586
14587
14588 SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14589 PyObject *resultobj = 0;
14590 wxSpinButton *result = 0 ;
14591
14592 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14593 {
14594 if (!wxPyCheckForApp()) SWIG_fail;
14595 PyThreadState* __tstate = wxPyBeginAllowThreads();
14596 result = (wxSpinButton *)new wxSpinButton();
14597 wxPyEndAllowThreads(__tstate);
14598 if (PyErr_Occurred()) SWIG_fail;
14599 }
14600 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14601 return resultobj;
14602 fail:
14603 return NULL;
14604 }
14605
14606
14607 SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14608 PyObject *resultobj = 0;
14609 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14610 wxWindow *arg2 = (wxWindow *) 0 ;
14611 int arg3 = (int) -1 ;
14612 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14613 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14614 wxSize const &arg5_defvalue = wxDefaultSize ;
14615 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14616 long arg6 = (long) wxSP_HORIZONTAL ;
14617 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14618 wxString *arg7 = (wxString *) &arg7_defvalue ;
14619 bool result;
14620 void *argp1 = 0 ;
14621 int res1 = 0 ;
14622 void *argp2 = 0 ;
14623 int res2 = 0 ;
14624 int val3 ;
14625 int ecode3 = 0 ;
14626 wxPoint temp4 ;
14627 wxSize temp5 ;
14628 long val6 ;
14629 int ecode6 = 0 ;
14630 bool temp7 = false ;
14631 PyObject * obj0 = 0 ;
14632 PyObject * obj1 = 0 ;
14633 PyObject * obj2 = 0 ;
14634 PyObject * obj3 = 0 ;
14635 PyObject * obj4 = 0 ;
14636 PyObject * obj5 = 0 ;
14637 PyObject * obj6 = 0 ;
14638 char * kwnames[] = {
14639 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14640 };
14641
14642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14644 if (!SWIG_IsOK(res1)) {
14645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14646 }
14647 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14648 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14649 if (!SWIG_IsOK(res2)) {
14650 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14651 }
14652 arg2 = reinterpret_cast< wxWindow * >(argp2);
14653 if (obj2) {
14654 ecode3 = SWIG_AsVal_int(obj2, &val3);
14655 if (!SWIG_IsOK(ecode3)) {
14656 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14657 }
14658 arg3 = static_cast< int >(val3);
14659 }
14660 if (obj3) {
14661 {
14662 arg4 = &temp4;
14663 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14664 }
14665 }
14666 if (obj4) {
14667 {
14668 arg5 = &temp5;
14669 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14670 }
14671 }
14672 if (obj5) {
14673 ecode6 = SWIG_AsVal_long(obj5, &val6);
14674 if (!SWIG_IsOK(ecode6)) {
14675 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14676 }
14677 arg6 = static_cast< long >(val6);
14678 }
14679 if (obj6) {
14680 {
14681 arg7 = wxString_in_helper(obj6);
14682 if (arg7 == NULL) SWIG_fail;
14683 temp7 = true;
14684 }
14685 }
14686 {
14687 PyThreadState* __tstate = wxPyBeginAllowThreads();
14688 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14689 wxPyEndAllowThreads(__tstate);
14690 if (PyErr_Occurred()) SWIG_fail;
14691 }
14692 {
14693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14694 }
14695 {
14696 if (temp7)
14697 delete arg7;
14698 }
14699 return resultobj;
14700 fail:
14701 {
14702 if (temp7)
14703 delete arg7;
14704 }
14705 return NULL;
14706 }
14707
14708
14709 SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14710 PyObject *resultobj = 0;
14711 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14712 int result;
14713 void *argp1 = 0 ;
14714 int res1 = 0 ;
14715 PyObject *swig_obj[1] ;
14716
14717 if (!args) SWIG_fail;
14718 swig_obj[0] = args;
14719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14720 if (!SWIG_IsOK(res1)) {
14721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14722 }
14723 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14724 {
14725 PyThreadState* __tstate = wxPyBeginAllowThreads();
14726 result = (int)((wxSpinButton const *)arg1)->GetValue();
14727 wxPyEndAllowThreads(__tstate);
14728 if (PyErr_Occurred()) SWIG_fail;
14729 }
14730 resultobj = SWIG_From_int(static_cast< int >(result));
14731 return resultobj;
14732 fail:
14733 return NULL;
14734 }
14735
14736
14737 SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14738 PyObject *resultobj = 0;
14739 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14740 int result;
14741 void *argp1 = 0 ;
14742 int res1 = 0 ;
14743 PyObject *swig_obj[1] ;
14744
14745 if (!args) SWIG_fail;
14746 swig_obj[0] = args;
14747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14748 if (!SWIG_IsOK(res1)) {
14749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14750 }
14751 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14752 {
14753 PyThreadState* __tstate = wxPyBeginAllowThreads();
14754 result = (int)((wxSpinButton const *)arg1)->GetMin();
14755 wxPyEndAllowThreads(__tstate);
14756 if (PyErr_Occurred()) SWIG_fail;
14757 }
14758 resultobj = SWIG_From_int(static_cast< int >(result));
14759 return resultobj;
14760 fail:
14761 return NULL;
14762 }
14763
14764
14765 SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14766 PyObject *resultobj = 0;
14767 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14768 int result;
14769 void *argp1 = 0 ;
14770 int res1 = 0 ;
14771 PyObject *swig_obj[1] ;
14772
14773 if (!args) SWIG_fail;
14774 swig_obj[0] = args;
14775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14776 if (!SWIG_IsOK(res1)) {
14777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14778 }
14779 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14780 {
14781 PyThreadState* __tstate = wxPyBeginAllowThreads();
14782 result = (int)((wxSpinButton const *)arg1)->GetMax();
14783 wxPyEndAllowThreads(__tstate);
14784 if (PyErr_Occurred()) SWIG_fail;
14785 }
14786 resultobj = SWIG_From_int(static_cast< int >(result));
14787 return resultobj;
14788 fail:
14789 return NULL;
14790 }
14791
14792
14793 SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14794 PyObject *resultobj = 0;
14795 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14796 int arg2 ;
14797 void *argp1 = 0 ;
14798 int res1 = 0 ;
14799 int val2 ;
14800 int ecode2 = 0 ;
14801 PyObject * obj0 = 0 ;
14802 PyObject * obj1 = 0 ;
14803 char * kwnames[] = {
14804 (char *) "self",(char *) "val", NULL
14805 };
14806
14807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14809 if (!SWIG_IsOK(res1)) {
14810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14811 }
14812 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14813 ecode2 = SWIG_AsVal_int(obj1, &val2);
14814 if (!SWIG_IsOK(ecode2)) {
14815 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14816 }
14817 arg2 = static_cast< int >(val2);
14818 {
14819 PyThreadState* __tstate = wxPyBeginAllowThreads();
14820 (arg1)->SetValue(arg2);
14821 wxPyEndAllowThreads(__tstate);
14822 if (PyErr_Occurred()) SWIG_fail;
14823 }
14824 resultobj = SWIG_Py_Void();
14825 return resultobj;
14826 fail:
14827 return NULL;
14828 }
14829
14830
14831 SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14832 PyObject *resultobj = 0;
14833 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14834 int arg2 ;
14835 void *argp1 = 0 ;
14836 int res1 = 0 ;
14837 int val2 ;
14838 int ecode2 = 0 ;
14839 PyObject * obj0 = 0 ;
14840 PyObject * obj1 = 0 ;
14841 char * kwnames[] = {
14842 (char *) "self",(char *) "minVal", NULL
14843 };
14844
14845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
14846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14847 if (!SWIG_IsOK(res1)) {
14848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14849 }
14850 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14851 ecode2 = SWIG_AsVal_int(obj1, &val2);
14852 if (!SWIG_IsOK(ecode2)) {
14853 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
14854 }
14855 arg2 = static_cast< int >(val2);
14856 {
14857 PyThreadState* __tstate = wxPyBeginAllowThreads();
14858 (arg1)->SetMin(arg2);
14859 wxPyEndAllowThreads(__tstate);
14860 if (PyErr_Occurred()) SWIG_fail;
14861 }
14862 resultobj = SWIG_Py_Void();
14863 return resultobj;
14864 fail:
14865 return NULL;
14866 }
14867
14868
14869 SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14870 PyObject *resultobj = 0;
14871 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14872 int arg2 ;
14873 void *argp1 = 0 ;
14874 int res1 = 0 ;
14875 int val2 ;
14876 int ecode2 = 0 ;
14877 PyObject * obj0 = 0 ;
14878 PyObject * obj1 = 0 ;
14879 char * kwnames[] = {
14880 (char *) "self",(char *) "maxVal", NULL
14881 };
14882
14883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
14884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14885 if (!SWIG_IsOK(res1)) {
14886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14887 }
14888 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14889 ecode2 = SWIG_AsVal_int(obj1, &val2);
14890 if (!SWIG_IsOK(ecode2)) {
14891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
14892 }
14893 arg2 = static_cast< int >(val2);
14894 {
14895 PyThreadState* __tstate = wxPyBeginAllowThreads();
14896 (arg1)->SetMax(arg2);
14897 wxPyEndAllowThreads(__tstate);
14898 if (PyErr_Occurred()) SWIG_fail;
14899 }
14900 resultobj = SWIG_Py_Void();
14901 return resultobj;
14902 fail:
14903 return NULL;
14904 }
14905
14906
14907 SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14908 PyObject *resultobj = 0;
14909 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14910 int arg2 ;
14911 int arg3 ;
14912 void *argp1 = 0 ;
14913 int res1 = 0 ;
14914 int val2 ;
14915 int ecode2 = 0 ;
14916 int val3 ;
14917 int ecode3 = 0 ;
14918 PyObject * obj0 = 0 ;
14919 PyObject * obj1 = 0 ;
14920 PyObject * obj2 = 0 ;
14921 char * kwnames[] = {
14922 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
14923 };
14924
14925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14927 if (!SWIG_IsOK(res1)) {
14928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14929 }
14930 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14931 ecode2 = SWIG_AsVal_int(obj1, &val2);
14932 if (!SWIG_IsOK(ecode2)) {
14933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
14934 }
14935 arg2 = static_cast< int >(val2);
14936 ecode3 = SWIG_AsVal_int(obj2, &val3);
14937 if (!SWIG_IsOK(ecode3)) {
14938 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
14939 }
14940 arg3 = static_cast< int >(val3);
14941 {
14942 PyThreadState* __tstate = wxPyBeginAllowThreads();
14943 (arg1)->SetRange(arg2,arg3);
14944 wxPyEndAllowThreads(__tstate);
14945 if (PyErr_Occurred()) SWIG_fail;
14946 }
14947 resultobj = SWIG_Py_Void();
14948 return resultobj;
14949 fail:
14950 return NULL;
14951 }
14952
14953
14954 SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14955 PyObject *resultobj = 0;
14956 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14957 bool result;
14958 void *argp1 = 0 ;
14959 int res1 = 0 ;
14960 PyObject *swig_obj[1] ;
14961
14962 if (!args) SWIG_fail;
14963 swig_obj[0] = args;
14964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14965 if (!SWIG_IsOK(res1)) {
14966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14967 }
14968 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14969 {
14970 PyThreadState* __tstate = wxPyBeginAllowThreads();
14971 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
14972 wxPyEndAllowThreads(__tstate);
14973 if (PyErr_Occurred()) SWIG_fail;
14974 }
14975 {
14976 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14977 }
14978 return resultobj;
14979 fail:
14980 return NULL;
14981 }
14982
14983
14984 SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14985 PyObject *resultobj = 0;
14986 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14987 SwigValueWrapper<wxVisualAttributes > result;
14988 int val1 ;
14989 int ecode1 = 0 ;
14990 PyObject * obj0 = 0 ;
14991 char * kwnames[] = {
14992 (char *) "variant", NULL
14993 };
14994
14995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14996 if (obj0) {
14997 ecode1 = SWIG_AsVal_int(obj0, &val1);
14998 if (!SWIG_IsOK(ecode1)) {
14999 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15000 }
15001 arg1 = static_cast< wxWindowVariant >(val1);
15002 }
15003 {
15004 if (!wxPyCheckForApp()) SWIG_fail;
15005 PyThreadState* __tstate = wxPyBeginAllowThreads();
15006 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15007 wxPyEndAllowThreads(__tstate);
15008 if (PyErr_Occurred()) SWIG_fail;
15009 }
15010 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15011 return resultobj;
15012 fail:
15013 return NULL;
15014 }
15015
15016
15017 SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15018 PyObject *obj;
15019 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15020 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15021 return SWIG_Py_Void();
15022 }
15023
15024 SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15025 return SWIG_Python_InitShadowInstance(args);
15026 }
15027
15028 SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15029 PyObject *resultobj = 0;
15030 wxWindow *arg1 = (wxWindow *) 0 ;
15031 int arg2 = (int) -1 ;
15032 wxString const &arg3_defvalue = wxPyEmptyString ;
15033 wxString *arg3 = (wxString *) &arg3_defvalue ;
15034 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15035 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15036 wxSize const &arg5_defvalue = wxDefaultSize ;
15037 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15038 long arg6 = (long) wxSP_ARROW_KEYS ;
15039 int arg7 = (int) 0 ;
15040 int arg8 = (int) 100 ;
15041 int arg9 = (int) 0 ;
15042 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15043 wxString *arg10 = (wxString *) &arg10_defvalue ;
15044 wxSpinCtrl *result = 0 ;
15045 void *argp1 = 0 ;
15046 int res1 = 0 ;
15047 int val2 ;
15048 int ecode2 = 0 ;
15049 bool temp3 = false ;
15050 wxPoint temp4 ;
15051 wxSize temp5 ;
15052 long val6 ;
15053 int ecode6 = 0 ;
15054 int val7 ;
15055 int ecode7 = 0 ;
15056 int val8 ;
15057 int ecode8 = 0 ;
15058 int val9 ;
15059 int ecode9 = 0 ;
15060 bool temp10 = false ;
15061 PyObject * obj0 = 0 ;
15062 PyObject * obj1 = 0 ;
15063 PyObject * obj2 = 0 ;
15064 PyObject * obj3 = 0 ;
15065 PyObject * obj4 = 0 ;
15066 PyObject * obj5 = 0 ;
15067 PyObject * obj6 = 0 ;
15068 PyObject * obj7 = 0 ;
15069 PyObject * obj8 = 0 ;
15070 PyObject * obj9 = 0 ;
15071 char * kwnames[] = {
15072 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15073 };
15074
15075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15077 if (!SWIG_IsOK(res1)) {
15078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15079 }
15080 arg1 = reinterpret_cast< wxWindow * >(argp1);
15081 if (obj1) {
15082 ecode2 = SWIG_AsVal_int(obj1, &val2);
15083 if (!SWIG_IsOK(ecode2)) {
15084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15085 }
15086 arg2 = static_cast< int >(val2);
15087 }
15088 if (obj2) {
15089 {
15090 arg3 = wxString_in_helper(obj2);
15091 if (arg3 == NULL) SWIG_fail;
15092 temp3 = true;
15093 }
15094 }
15095 if (obj3) {
15096 {
15097 arg4 = &temp4;
15098 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15099 }
15100 }
15101 if (obj4) {
15102 {
15103 arg5 = &temp5;
15104 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15105 }
15106 }
15107 if (obj5) {
15108 ecode6 = SWIG_AsVal_long(obj5, &val6);
15109 if (!SWIG_IsOK(ecode6)) {
15110 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15111 }
15112 arg6 = static_cast< long >(val6);
15113 }
15114 if (obj6) {
15115 ecode7 = SWIG_AsVal_int(obj6, &val7);
15116 if (!SWIG_IsOK(ecode7)) {
15117 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15118 }
15119 arg7 = static_cast< int >(val7);
15120 }
15121 if (obj7) {
15122 ecode8 = SWIG_AsVal_int(obj7, &val8);
15123 if (!SWIG_IsOK(ecode8)) {
15124 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15125 }
15126 arg8 = static_cast< int >(val8);
15127 }
15128 if (obj8) {
15129 ecode9 = SWIG_AsVal_int(obj8, &val9);
15130 if (!SWIG_IsOK(ecode9)) {
15131 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15132 }
15133 arg9 = static_cast< int >(val9);
15134 }
15135 if (obj9) {
15136 {
15137 arg10 = wxString_in_helper(obj9);
15138 if (arg10 == NULL) SWIG_fail;
15139 temp10 = true;
15140 }
15141 }
15142 {
15143 if (!wxPyCheckForApp()) SWIG_fail;
15144 PyThreadState* __tstate = wxPyBeginAllowThreads();
15145 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15146 wxPyEndAllowThreads(__tstate);
15147 if (PyErr_Occurred()) SWIG_fail;
15148 }
15149 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15150 {
15151 if (temp3)
15152 delete arg3;
15153 }
15154 {
15155 if (temp10)
15156 delete arg10;
15157 }
15158 return resultobj;
15159 fail:
15160 {
15161 if (temp3)
15162 delete arg3;
15163 }
15164 {
15165 if (temp10)
15166 delete arg10;
15167 }
15168 return NULL;
15169 }
15170
15171
15172 SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15173 PyObject *resultobj = 0;
15174 wxSpinCtrl *result = 0 ;
15175
15176 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15177 {
15178 if (!wxPyCheckForApp()) SWIG_fail;
15179 PyThreadState* __tstate = wxPyBeginAllowThreads();
15180 result = (wxSpinCtrl *)new wxSpinCtrl();
15181 wxPyEndAllowThreads(__tstate);
15182 if (PyErr_Occurred()) SWIG_fail;
15183 }
15184 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15185 return resultobj;
15186 fail:
15187 return NULL;
15188 }
15189
15190
15191 SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15192 PyObject *resultobj = 0;
15193 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15194 wxWindow *arg2 = (wxWindow *) 0 ;
15195 int arg3 = (int) -1 ;
15196 wxString const &arg4_defvalue = wxPyEmptyString ;
15197 wxString *arg4 = (wxString *) &arg4_defvalue ;
15198 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15199 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15200 wxSize const &arg6_defvalue = wxDefaultSize ;
15201 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15202 long arg7 = (long) wxSP_ARROW_KEYS ;
15203 int arg8 = (int) 0 ;
15204 int arg9 = (int) 100 ;
15205 int arg10 = (int) 0 ;
15206 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15207 wxString *arg11 = (wxString *) &arg11_defvalue ;
15208 bool result;
15209 void *argp1 = 0 ;
15210 int res1 = 0 ;
15211 void *argp2 = 0 ;
15212 int res2 = 0 ;
15213 int val3 ;
15214 int ecode3 = 0 ;
15215 bool temp4 = false ;
15216 wxPoint temp5 ;
15217 wxSize temp6 ;
15218 long val7 ;
15219 int ecode7 = 0 ;
15220 int val8 ;
15221 int ecode8 = 0 ;
15222 int val9 ;
15223 int ecode9 = 0 ;
15224 int val10 ;
15225 int ecode10 = 0 ;
15226 bool temp11 = false ;
15227 PyObject * obj0 = 0 ;
15228 PyObject * obj1 = 0 ;
15229 PyObject * obj2 = 0 ;
15230 PyObject * obj3 = 0 ;
15231 PyObject * obj4 = 0 ;
15232 PyObject * obj5 = 0 ;
15233 PyObject * obj6 = 0 ;
15234 PyObject * obj7 = 0 ;
15235 PyObject * obj8 = 0 ;
15236 PyObject * obj9 = 0 ;
15237 PyObject * obj10 = 0 ;
15238 char * kwnames[] = {
15239 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15240 };
15241
15242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15244 if (!SWIG_IsOK(res1)) {
15245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15246 }
15247 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15248 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15249 if (!SWIG_IsOK(res2)) {
15250 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15251 }
15252 arg2 = reinterpret_cast< wxWindow * >(argp2);
15253 if (obj2) {
15254 ecode3 = SWIG_AsVal_int(obj2, &val3);
15255 if (!SWIG_IsOK(ecode3)) {
15256 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15257 }
15258 arg3 = static_cast< int >(val3);
15259 }
15260 if (obj3) {
15261 {
15262 arg4 = wxString_in_helper(obj3);
15263 if (arg4 == NULL) SWIG_fail;
15264 temp4 = true;
15265 }
15266 }
15267 if (obj4) {
15268 {
15269 arg5 = &temp5;
15270 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15271 }
15272 }
15273 if (obj5) {
15274 {
15275 arg6 = &temp6;
15276 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
15277 }
15278 }
15279 if (obj6) {
15280 ecode7 = SWIG_AsVal_long(obj6, &val7);
15281 if (!SWIG_IsOK(ecode7)) {
15282 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15283 }
15284 arg7 = static_cast< long >(val7);
15285 }
15286 if (obj7) {
15287 ecode8 = SWIG_AsVal_int(obj7, &val8);
15288 if (!SWIG_IsOK(ecode8)) {
15289 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15290 }
15291 arg8 = static_cast< int >(val8);
15292 }
15293 if (obj8) {
15294 ecode9 = SWIG_AsVal_int(obj8, &val9);
15295 if (!SWIG_IsOK(ecode9)) {
15296 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15297 }
15298 arg9 = static_cast< int >(val9);
15299 }
15300 if (obj9) {
15301 ecode10 = SWIG_AsVal_int(obj9, &val10);
15302 if (!SWIG_IsOK(ecode10)) {
15303 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15304 }
15305 arg10 = static_cast< int >(val10);
15306 }
15307 if (obj10) {
15308 {
15309 arg11 = wxString_in_helper(obj10);
15310 if (arg11 == NULL) SWIG_fail;
15311 temp11 = true;
15312 }
15313 }
15314 {
15315 PyThreadState* __tstate = wxPyBeginAllowThreads();
15316 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15317 wxPyEndAllowThreads(__tstate);
15318 if (PyErr_Occurred()) SWIG_fail;
15319 }
15320 {
15321 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15322 }
15323 {
15324 if (temp4)
15325 delete arg4;
15326 }
15327 {
15328 if (temp11)
15329 delete arg11;
15330 }
15331 return resultobj;
15332 fail:
15333 {
15334 if (temp4)
15335 delete arg4;
15336 }
15337 {
15338 if (temp11)
15339 delete arg11;
15340 }
15341 return NULL;
15342 }
15343
15344
15345 SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15346 PyObject *resultobj = 0;
15347 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15348 int result;
15349 void *argp1 = 0 ;
15350 int res1 = 0 ;
15351 PyObject *swig_obj[1] ;
15352
15353 if (!args) SWIG_fail;
15354 swig_obj[0] = args;
15355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15356 if (!SWIG_IsOK(res1)) {
15357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15358 }
15359 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15360 {
15361 PyThreadState* __tstate = wxPyBeginAllowThreads();
15362 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15363 wxPyEndAllowThreads(__tstate);
15364 if (PyErr_Occurred()) SWIG_fail;
15365 }
15366 resultobj = SWIG_From_int(static_cast< int >(result));
15367 return resultobj;
15368 fail:
15369 return NULL;
15370 }
15371
15372
15373 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15374 PyObject *resultobj = 0;
15375 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15376 int arg2 ;
15377 void *argp1 = 0 ;
15378 int res1 = 0 ;
15379 int val2 ;
15380 int ecode2 = 0 ;
15381 PyObject * obj0 = 0 ;
15382 PyObject * obj1 = 0 ;
15383 char * kwnames[] = {
15384 (char *) "self",(char *) "value", NULL
15385 };
15386
15387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15389 if (!SWIG_IsOK(res1)) {
15390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15391 }
15392 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15393 ecode2 = SWIG_AsVal_int(obj1, &val2);
15394 if (!SWIG_IsOK(ecode2)) {
15395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15396 }
15397 arg2 = static_cast< int >(val2);
15398 {
15399 PyThreadState* __tstate = wxPyBeginAllowThreads();
15400 (arg1)->SetValue(arg2);
15401 wxPyEndAllowThreads(__tstate);
15402 if (PyErr_Occurred()) SWIG_fail;
15403 }
15404 resultobj = SWIG_Py_Void();
15405 return resultobj;
15406 fail:
15407 return NULL;
15408 }
15409
15410
15411 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15412 PyObject *resultobj = 0;
15413 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15414 wxString *arg2 = 0 ;
15415 void *argp1 = 0 ;
15416 int res1 = 0 ;
15417 bool temp2 = false ;
15418 PyObject * obj0 = 0 ;
15419 PyObject * obj1 = 0 ;
15420 char * kwnames[] = {
15421 (char *) "self",(char *) "text", NULL
15422 };
15423
15424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15426 if (!SWIG_IsOK(res1)) {
15427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15428 }
15429 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15430 {
15431 arg2 = wxString_in_helper(obj1);
15432 if (arg2 == NULL) SWIG_fail;
15433 temp2 = true;
15434 }
15435 {
15436 PyThreadState* __tstate = wxPyBeginAllowThreads();
15437 (arg1)->SetValue((wxString const &)*arg2);
15438 wxPyEndAllowThreads(__tstate);
15439 if (PyErr_Occurred()) SWIG_fail;
15440 }
15441 resultobj = SWIG_Py_Void();
15442 {
15443 if (temp2)
15444 delete arg2;
15445 }
15446 return resultobj;
15447 fail:
15448 {
15449 if (temp2)
15450 delete arg2;
15451 }
15452 return NULL;
15453 }
15454
15455
15456 SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15457 PyObject *resultobj = 0;
15458 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15459 int arg2 ;
15460 int arg3 ;
15461 void *argp1 = 0 ;
15462 int res1 = 0 ;
15463 int val2 ;
15464 int ecode2 = 0 ;
15465 int val3 ;
15466 int ecode3 = 0 ;
15467 PyObject * obj0 = 0 ;
15468 PyObject * obj1 = 0 ;
15469 PyObject * obj2 = 0 ;
15470 char * kwnames[] = {
15471 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15472 };
15473
15474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15476 if (!SWIG_IsOK(res1)) {
15477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15478 }
15479 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15480 ecode2 = SWIG_AsVal_int(obj1, &val2);
15481 if (!SWIG_IsOK(ecode2)) {
15482 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15483 }
15484 arg2 = static_cast< int >(val2);
15485 ecode3 = SWIG_AsVal_int(obj2, &val3);
15486 if (!SWIG_IsOK(ecode3)) {
15487 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15488 }
15489 arg3 = static_cast< int >(val3);
15490 {
15491 PyThreadState* __tstate = wxPyBeginAllowThreads();
15492 (arg1)->SetRange(arg2,arg3);
15493 wxPyEndAllowThreads(__tstate);
15494 if (PyErr_Occurred()) SWIG_fail;
15495 }
15496 resultobj = SWIG_Py_Void();
15497 return resultobj;
15498 fail:
15499 return NULL;
15500 }
15501
15502
15503 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15504 PyObject *resultobj = 0;
15505 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15506 int result;
15507 void *argp1 = 0 ;
15508 int res1 = 0 ;
15509 PyObject *swig_obj[1] ;
15510
15511 if (!args) SWIG_fail;
15512 swig_obj[0] = args;
15513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15514 if (!SWIG_IsOK(res1)) {
15515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15516 }
15517 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15518 {
15519 PyThreadState* __tstate = wxPyBeginAllowThreads();
15520 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15521 wxPyEndAllowThreads(__tstate);
15522 if (PyErr_Occurred()) SWIG_fail;
15523 }
15524 resultobj = SWIG_From_int(static_cast< int >(result));
15525 return resultobj;
15526 fail:
15527 return NULL;
15528 }
15529
15530
15531 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15532 PyObject *resultobj = 0;
15533 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15534 int result;
15535 void *argp1 = 0 ;
15536 int res1 = 0 ;
15537 PyObject *swig_obj[1] ;
15538
15539 if (!args) SWIG_fail;
15540 swig_obj[0] = args;
15541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15542 if (!SWIG_IsOK(res1)) {
15543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15544 }
15545 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15546 {
15547 PyThreadState* __tstate = wxPyBeginAllowThreads();
15548 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15549 wxPyEndAllowThreads(__tstate);
15550 if (PyErr_Occurred()) SWIG_fail;
15551 }
15552 resultobj = SWIG_From_int(static_cast< int >(result));
15553 return resultobj;
15554 fail:
15555 return NULL;
15556 }
15557
15558
15559 SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15560 PyObject *resultobj = 0;
15561 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15562 long arg2 ;
15563 long arg3 ;
15564 void *argp1 = 0 ;
15565 int res1 = 0 ;
15566 long val2 ;
15567 int ecode2 = 0 ;
15568 long val3 ;
15569 int ecode3 = 0 ;
15570 PyObject * obj0 = 0 ;
15571 PyObject * obj1 = 0 ;
15572 PyObject * obj2 = 0 ;
15573 char * kwnames[] = {
15574 (char *) "self",(char *) "_from",(char *) "to", NULL
15575 };
15576
15577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15579 if (!SWIG_IsOK(res1)) {
15580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15581 }
15582 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15583 ecode2 = SWIG_AsVal_long(obj1, &val2);
15584 if (!SWIG_IsOK(ecode2)) {
15585 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15586 }
15587 arg2 = static_cast< long >(val2);
15588 ecode3 = SWIG_AsVal_long(obj2, &val3);
15589 if (!SWIG_IsOK(ecode3)) {
15590 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15591 }
15592 arg3 = static_cast< long >(val3);
15593 {
15594 PyThreadState* __tstate = wxPyBeginAllowThreads();
15595 (arg1)->SetSelection(arg2,arg3);
15596 wxPyEndAllowThreads(__tstate);
15597 if (PyErr_Occurred()) SWIG_fail;
15598 }
15599 resultobj = SWIG_Py_Void();
15600 return resultobj;
15601 fail:
15602 return NULL;
15603 }
15604
15605
15606 SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15607 PyObject *resultobj = 0;
15608 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15609 SwigValueWrapper<wxVisualAttributes > result;
15610 int val1 ;
15611 int ecode1 = 0 ;
15612 PyObject * obj0 = 0 ;
15613 char * kwnames[] = {
15614 (char *) "variant", NULL
15615 };
15616
15617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15618 if (obj0) {
15619 ecode1 = SWIG_AsVal_int(obj0, &val1);
15620 if (!SWIG_IsOK(ecode1)) {
15621 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15622 }
15623 arg1 = static_cast< wxWindowVariant >(val1);
15624 }
15625 {
15626 if (!wxPyCheckForApp()) SWIG_fail;
15627 PyThreadState* __tstate = wxPyBeginAllowThreads();
15628 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15629 wxPyEndAllowThreads(__tstate);
15630 if (PyErr_Occurred()) SWIG_fail;
15631 }
15632 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15633 return resultobj;
15634 fail:
15635 return NULL;
15636 }
15637
15638
15639 SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15640 PyObject *obj;
15641 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15642 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15643 return SWIG_Py_Void();
15644 }
15645
15646 SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15647 return SWIG_Python_InitShadowInstance(args);
15648 }
15649
15650 SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15651 PyObject *resultobj = 0;
15652 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15653 int arg2 = (int) 0 ;
15654 wxSpinEvent *result = 0 ;
15655 int val1 ;
15656 int ecode1 = 0 ;
15657 int val2 ;
15658 int ecode2 = 0 ;
15659 PyObject * obj0 = 0 ;
15660 PyObject * obj1 = 0 ;
15661 char * kwnames[] = {
15662 (char *) "commandType",(char *) "winid", NULL
15663 };
15664
15665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15666 if (obj0) {
15667 ecode1 = SWIG_AsVal_int(obj0, &val1);
15668 if (!SWIG_IsOK(ecode1)) {
15669 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15670 }
15671 arg1 = static_cast< wxEventType >(val1);
15672 }
15673 if (obj1) {
15674 ecode2 = SWIG_AsVal_int(obj1, &val2);
15675 if (!SWIG_IsOK(ecode2)) {
15676 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15677 }
15678 arg2 = static_cast< int >(val2);
15679 }
15680 {
15681 PyThreadState* __tstate = wxPyBeginAllowThreads();
15682 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15683 wxPyEndAllowThreads(__tstate);
15684 if (PyErr_Occurred()) SWIG_fail;
15685 }
15686 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15687 return resultobj;
15688 fail:
15689 return NULL;
15690 }
15691
15692
15693 SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15694 PyObject *resultobj = 0;
15695 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15696 int result;
15697 void *argp1 = 0 ;
15698 int res1 = 0 ;
15699 PyObject *swig_obj[1] ;
15700
15701 if (!args) SWIG_fail;
15702 swig_obj[0] = args;
15703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15704 if (!SWIG_IsOK(res1)) {
15705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15706 }
15707 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15708 {
15709 PyThreadState* __tstate = wxPyBeginAllowThreads();
15710 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15711 wxPyEndAllowThreads(__tstate);
15712 if (PyErr_Occurred()) SWIG_fail;
15713 }
15714 resultobj = SWIG_From_int(static_cast< int >(result));
15715 return resultobj;
15716 fail:
15717 return NULL;
15718 }
15719
15720
15721 SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15722 PyObject *resultobj = 0;
15723 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15724 int arg2 ;
15725 void *argp1 = 0 ;
15726 int res1 = 0 ;
15727 int val2 ;
15728 int ecode2 = 0 ;
15729 PyObject * obj0 = 0 ;
15730 PyObject * obj1 = 0 ;
15731 char * kwnames[] = {
15732 (char *) "self",(char *) "pos", NULL
15733 };
15734
15735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15737 if (!SWIG_IsOK(res1)) {
15738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15739 }
15740 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15741 ecode2 = SWIG_AsVal_int(obj1, &val2);
15742 if (!SWIG_IsOK(ecode2)) {
15743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15744 }
15745 arg2 = static_cast< int >(val2);
15746 {
15747 PyThreadState* __tstate = wxPyBeginAllowThreads();
15748 (arg1)->SetPosition(arg2);
15749 wxPyEndAllowThreads(__tstate);
15750 if (PyErr_Occurred()) SWIG_fail;
15751 }
15752 resultobj = SWIG_Py_Void();
15753 return resultobj;
15754 fail:
15755 return NULL;
15756 }
15757
15758
15759 SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15760 PyObject *obj;
15761 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15762 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15763 return SWIG_Py_Void();
15764 }
15765
15766 SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15767 return SWIG_Python_InitShadowInstance(args);
15768 }
15769
15770 SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15771 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15772 return 1;
15773 }
15774
15775
15776 SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15777 PyObject *pyobj = 0;
15778
15779 {
15780 #if wxUSE_UNICODE
15781 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15782 #else
15783 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15784 #endif
15785 }
15786 return pyobj;
15787 }
15788
15789
15790 SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15791 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15792 return 1;
15793 }
15794
15795
15796 SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15797 PyObject *pyobj = 0;
15798
15799 {
15800 #if wxUSE_UNICODE
15801 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15802 #else
15803 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15804 #endif
15805 }
15806 return pyobj;
15807 }
15808
15809
15810 SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15811 PyObject *resultobj = 0;
15812 wxWindow *arg1 = (wxWindow *) 0 ;
15813 int arg2 = (int) -1 ;
15814 wxString const &arg3_defvalue = wxPyEmptyString ;
15815 wxString *arg3 = (wxString *) &arg3_defvalue ;
15816 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15817 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15818 wxSize const &arg5_defvalue = wxDefaultSize ;
15819 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15820 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
15821 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
15822 int arg7 = (int) 0 ;
15823 long arg8 = (long) wxRA_HORIZONTAL ;
15824 wxValidator const &arg9_defvalue = wxDefaultValidator ;
15825 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
15826 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
15827 wxString *arg10 = (wxString *) &arg10_defvalue ;
15828 wxRadioBox *result = 0 ;
15829 void *argp1 = 0 ;
15830 int res1 = 0 ;
15831 int val2 ;
15832 int ecode2 = 0 ;
15833 bool temp3 = false ;
15834 wxPoint temp4 ;
15835 wxSize temp5 ;
15836 bool temp6 = false ;
15837 int val7 ;
15838 int ecode7 = 0 ;
15839 long val8 ;
15840 int ecode8 = 0 ;
15841 void *argp9 = 0 ;
15842 int res9 = 0 ;
15843 bool temp10 = false ;
15844 PyObject * obj0 = 0 ;
15845 PyObject * obj1 = 0 ;
15846 PyObject * obj2 = 0 ;
15847 PyObject * obj3 = 0 ;
15848 PyObject * obj4 = 0 ;
15849 PyObject * obj5 = 0 ;
15850 PyObject * obj6 = 0 ;
15851 PyObject * obj7 = 0 ;
15852 PyObject * obj8 = 0 ;
15853 PyObject * obj9 = 0 ;
15854 char * kwnames[] = {
15855 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
15856 };
15857
15858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15860 if (!SWIG_IsOK(res1)) {
15861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
15862 }
15863 arg1 = reinterpret_cast< wxWindow * >(argp1);
15864 if (obj1) {
15865 ecode2 = SWIG_AsVal_int(obj1, &val2);
15866 if (!SWIG_IsOK(ecode2)) {
15867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
15868 }
15869 arg2 = static_cast< int >(val2);
15870 }
15871 if (obj2) {
15872 {
15873 arg3 = wxString_in_helper(obj2);
15874 if (arg3 == NULL) SWIG_fail;
15875 temp3 = true;
15876 }
15877 }
15878 if (obj3) {
15879 {
15880 arg4 = &temp4;
15881 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15882 }
15883 }
15884 if (obj4) {
15885 {
15886 arg5 = &temp5;
15887 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15888 }
15889 }
15890 if (obj5) {
15891 {
15892 if (! PySequence_Check(obj5)) {
15893 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
15894 SWIG_fail;
15895 }
15896 arg6 = new wxArrayString;
15897 temp6 = true;
15898 int i, len=PySequence_Length(obj5);
15899 for (i=0; i<len; i++) {
15900 PyObject* item = PySequence_GetItem(obj5, i);
15901 wxString* s = wxString_in_helper(item);
15902 if (PyErr_Occurred()) SWIG_fail;
15903 arg6->Add(*s);
15904 delete s;
15905 Py_DECREF(item);
15906 }
15907 }
15908 }
15909 if (obj6) {
15910 ecode7 = SWIG_AsVal_int(obj6, &val7);
15911 if (!SWIG_IsOK(ecode7)) {
15912 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
15913 }
15914 arg7 = static_cast< int >(val7);
15915 }
15916 if (obj7) {
15917 ecode8 = SWIG_AsVal_long(obj7, &val8);
15918 if (!SWIG_IsOK(ecode8)) {
15919 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
15920 }
15921 arg8 = static_cast< long >(val8);
15922 }
15923 if (obj8) {
15924 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
15925 if (!SWIG_IsOK(res9)) {
15926 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
15927 }
15928 if (!argp9) {
15929 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
15930 }
15931 arg9 = reinterpret_cast< wxValidator * >(argp9);
15932 }
15933 if (obj9) {
15934 {
15935 arg10 = wxString_in_helper(obj9);
15936 if (arg10 == NULL) SWIG_fail;
15937 temp10 = true;
15938 }
15939 }
15940 {
15941 if (!wxPyCheckForApp()) SWIG_fail;
15942 PyThreadState* __tstate = wxPyBeginAllowThreads();
15943 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);
15944 wxPyEndAllowThreads(__tstate);
15945 if (PyErr_Occurred()) SWIG_fail;
15946 }
15947 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
15948 {
15949 if (temp3)
15950 delete arg3;
15951 }
15952 {
15953 if (temp6) delete arg6;
15954 }
15955 {
15956 if (temp10)
15957 delete arg10;
15958 }
15959 return resultobj;
15960 fail:
15961 {
15962 if (temp3)
15963 delete arg3;
15964 }
15965 {
15966 if (temp6) delete arg6;
15967 }
15968 {
15969 if (temp10)
15970 delete arg10;
15971 }
15972 return NULL;
15973 }
15974
15975
15976 SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15977 PyObject *resultobj = 0;
15978 wxRadioBox *result = 0 ;
15979
15980 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
15981 {
15982 if (!wxPyCheckForApp()) SWIG_fail;
15983 PyThreadState* __tstate = wxPyBeginAllowThreads();
15984 result = (wxRadioBox *)new wxRadioBox();
15985 wxPyEndAllowThreads(__tstate);
15986 if (PyErr_Occurred()) SWIG_fail;
15987 }
15988 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
15989 return resultobj;
15990 fail:
15991 return NULL;
15992 }
15993
15994
15995 SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15996 PyObject *resultobj = 0;
15997 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
15998 wxWindow *arg2 = (wxWindow *) 0 ;
15999 int arg3 = (int) -1 ;
16000 wxString const &arg4_defvalue = wxPyEmptyString ;
16001 wxString *arg4 = (wxString *) &arg4_defvalue ;
16002 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16003 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16004 wxSize const &arg6_defvalue = wxDefaultSize ;
16005 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16006 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16007 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16008 int arg8 = (int) 0 ;
16009 long arg9 = (long) wxRA_HORIZONTAL ;
16010 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16011 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16012 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16013 wxString *arg11 = (wxString *) &arg11_defvalue ;
16014 bool result;
16015 void *argp1 = 0 ;
16016 int res1 = 0 ;
16017 void *argp2 = 0 ;
16018 int res2 = 0 ;
16019 int val3 ;
16020 int ecode3 = 0 ;
16021 bool temp4 = false ;
16022 wxPoint temp5 ;
16023 wxSize temp6 ;
16024 bool temp7 = false ;
16025 int val8 ;
16026 int ecode8 = 0 ;
16027 long val9 ;
16028 int ecode9 = 0 ;
16029 void *argp10 = 0 ;
16030 int res10 = 0 ;
16031 bool temp11 = false ;
16032 PyObject * obj0 = 0 ;
16033 PyObject * obj1 = 0 ;
16034 PyObject * obj2 = 0 ;
16035 PyObject * obj3 = 0 ;
16036 PyObject * obj4 = 0 ;
16037 PyObject * obj5 = 0 ;
16038 PyObject * obj6 = 0 ;
16039 PyObject * obj7 = 0 ;
16040 PyObject * obj8 = 0 ;
16041 PyObject * obj9 = 0 ;
16042 PyObject * obj10 = 0 ;
16043 char * kwnames[] = {
16044 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16045 };
16046
16047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16049 if (!SWIG_IsOK(res1)) {
16050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16051 }
16052 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16053 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16054 if (!SWIG_IsOK(res2)) {
16055 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16056 }
16057 arg2 = reinterpret_cast< wxWindow * >(argp2);
16058 if (obj2) {
16059 ecode3 = SWIG_AsVal_int(obj2, &val3);
16060 if (!SWIG_IsOK(ecode3)) {
16061 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16062 }
16063 arg3 = static_cast< int >(val3);
16064 }
16065 if (obj3) {
16066 {
16067 arg4 = wxString_in_helper(obj3);
16068 if (arg4 == NULL) SWIG_fail;
16069 temp4 = true;
16070 }
16071 }
16072 if (obj4) {
16073 {
16074 arg5 = &temp5;
16075 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16076 }
16077 }
16078 if (obj5) {
16079 {
16080 arg6 = &temp6;
16081 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
16082 }
16083 }
16084 if (obj6) {
16085 {
16086 if (! PySequence_Check(obj6)) {
16087 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16088 SWIG_fail;
16089 }
16090 arg7 = new wxArrayString;
16091 temp7 = true;
16092 int i, len=PySequence_Length(obj6);
16093 for (i=0; i<len; i++) {
16094 PyObject* item = PySequence_GetItem(obj6, i);
16095 wxString* s = wxString_in_helper(item);
16096 if (PyErr_Occurred()) SWIG_fail;
16097 arg7->Add(*s);
16098 delete s;
16099 Py_DECREF(item);
16100 }
16101 }
16102 }
16103 if (obj7) {
16104 ecode8 = SWIG_AsVal_int(obj7, &val8);
16105 if (!SWIG_IsOK(ecode8)) {
16106 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16107 }
16108 arg8 = static_cast< int >(val8);
16109 }
16110 if (obj8) {
16111 ecode9 = SWIG_AsVal_long(obj8, &val9);
16112 if (!SWIG_IsOK(ecode9)) {
16113 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16114 }
16115 arg9 = static_cast< long >(val9);
16116 }
16117 if (obj9) {
16118 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16119 if (!SWIG_IsOK(res10)) {
16120 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16121 }
16122 if (!argp10) {
16123 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16124 }
16125 arg10 = reinterpret_cast< wxValidator * >(argp10);
16126 }
16127 if (obj10) {
16128 {
16129 arg11 = wxString_in_helper(obj10);
16130 if (arg11 == NULL) SWIG_fail;
16131 temp11 = true;
16132 }
16133 }
16134 {
16135 PyThreadState* __tstate = wxPyBeginAllowThreads();
16136 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);
16137 wxPyEndAllowThreads(__tstate);
16138 if (PyErr_Occurred()) SWIG_fail;
16139 }
16140 {
16141 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16142 }
16143 {
16144 if (temp4)
16145 delete arg4;
16146 }
16147 {
16148 if (temp7) delete arg7;
16149 }
16150 {
16151 if (temp11)
16152 delete arg11;
16153 }
16154 return resultobj;
16155 fail:
16156 {
16157 if (temp4)
16158 delete arg4;
16159 }
16160 {
16161 if (temp7) delete arg7;
16162 }
16163 {
16164 if (temp11)
16165 delete arg11;
16166 }
16167 return NULL;
16168 }
16169
16170
16171 SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16172 PyObject *resultobj = 0;
16173 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16174 int arg2 ;
16175 void *argp1 = 0 ;
16176 int res1 = 0 ;
16177 int val2 ;
16178 int ecode2 = 0 ;
16179 PyObject * obj0 = 0 ;
16180 PyObject * obj1 = 0 ;
16181 char * kwnames[] = {
16182 (char *) "self",(char *) "n", NULL
16183 };
16184
16185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16187 if (!SWIG_IsOK(res1)) {
16188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16189 }
16190 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16191 ecode2 = SWIG_AsVal_int(obj1, &val2);
16192 if (!SWIG_IsOK(ecode2)) {
16193 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16194 }
16195 arg2 = static_cast< int >(val2);
16196 {
16197 PyThreadState* __tstate = wxPyBeginAllowThreads();
16198 (arg1)->SetSelection(arg2);
16199 wxPyEndAllowThreads(__tstate);
16200 if (PyErr_Occurred()) SWIG_fail;
16201 }
16202 resultobj = SWIG_Py_Void();
16203 return resultobj;
16204 fail:
16205 return NULL;
16206 }
16207
16208
16209 SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16210 PyObject *resultobj = 0;
16211 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16212 int result;
16213 void *argp1 = 0 ;
16214 int res1 = 0 ;
16215 PyObject *swig_obj[1] ;
16216
16217 if (!args) SWIG_fail;
16218 swig_obj[0] = args;
16219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16220 if (!SWIG_IsOK(res1)) {
16221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16222 }
16223 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16224 {
16225 PyThreadState* __tstate = wxPyBeginAllowThreads();
16226 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16227 wxPyEndAllowThreads(__tstate);
16228 if (PyErr_Occurred()) SWIG_fail;
16229 }
16230 resultobj = SWIG_From_int(static_cast< int >(result));
16231 return resultobj;
16232 fail:
16233 return NULL;
16234 }
16235
16236
16237 SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16238 PyObject *resultobj = 0;
16239 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16240 wxString result;
16241 void *argp1 = 0 ;
16242 int res1 = 0 ;
16243 PyObject *swig_obj[1] ;
16244
16245 if (!args) SWIG_fail;
16246 swig_obj[0] = args;
16247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16248 if (!SWIG_IsOK(res1)) {
16249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16250 }
16251 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16252 {
16253 PyThreadState* __tstate = wxPyBeginAllowThreads();
16254 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16255 wxPyEndAllowThreads(__tstate);
16256 if (PyErr_Occurred()) SWIG_fail;
16257 }
16258 {
16259 #if wxUSE_UNICODE
16260 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16261 #else
16262 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16263 #endif
16264 }
16265 return resultobj;
16266 fail:
16267 return NULL;
16268 }
16269
16270
16271 SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16272 PyObject *resultobj = 0;
16273 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16274 wxString *arg2 = 0 ;
16275 bool result;
16276 void *argp1 = 0 ;
16277 int res1 = 0 ;
16278 bool temp2 = false ;
16279 PyObject * obj0 = 0 ;
16280 PyObject * obj1 = 0 ;
16281 char * kwnames[] = {
16282 (char *) "self",(char *) "s", NULL
16283 };
16284
16285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16287 if (!SWIG_IsOK(res1)) {
16288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16289 }
16290 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16291 {
16292 arg2 = wxString_in_helper(obj1);
16293 if (arg2 == NULL) SWIG_fail;
16294 temp2 = true;
16295 }
16296 {
16297 PyThreadState* __tstate = wxPyBeginAllowThreads();
16298 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16299 wxPyEndAllowThreads(__tstate);
16300 if (PyErr_Occurred()) SWIG_fail;
16301 }
16302 {
16303 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16304 }
16305 {
16306 if (temp2)
16307 delete arg2;
16308 }
16309 return resultobj;
16310 fail:
16311 {
16312 if (temp2)
16313 delete arg2;
16314 }
16315 return NULL;
16316 }
16317
16318
16319 SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16320 PyObject *resultobj = 0;
16321 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16322 int result;
16323 void *argp1 = 0 ;
16324 int res1 = 0 ;
16325 PyObject *swig_obj[1] ;
16326
16327 if (!args) SWIG_fail;
16328 swig_obj[0] = args;
16329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16330 if (!SWIG_IsOK(res1)) {
16331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16332 }
16333 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16334 {
16335 PyThreadState* __tstate = wxPyBeginAllowThreads();
16336 result = (int)((wxRadioBox const *)arg1)->GetCount();
16337 wxPyEndAllowThreads(__tstate);
16338 if (PyErr_Occurred()) SWIG_fail;
16339 }
16340 resultobj = SWIG_From_int(static_cast< int >(result));
16341 return resultobj;
16342 fail:
16343 return NULL;
16344 }
16345
16346
16347 SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16348 PyObject *resultobj = 0;
16349 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16350 wxString *arg2 = 0 ;
16351 int result;
16352 void *argp1 = 0 ;
16353 int res1 = 0 ;
16354 bool temp2 = false ;
16355 PyObject * obj0 = 0 ;
16356 PyObject * obj1 = 0 ;
16357 char * kwnames[] = {
16358 (char *) "self",(char *) "s", NULL
16359 };
16360
16361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16363 if (!SWIG_IsOK(res1)) {
16364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16365 }
16366 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16367 {
16368 arg2 = wxString_in_helper(obj1);
16369 if (arg2 == NULL) SWIG_fail;
16370 temp2 = true;
16371 }
16372 {
16373 PyThreadState* __tstate = wxPyBeginAllowThreads();
16374 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16375 wxPyEndAllowThreads(__tstate);
16376 if (PyErr_Occurred()) SWIG_fail;
16377 }
16378 resultobj = SWIG_From_int(static_cast< int >(result));
16379 {
16380 if (temp2)
16381 delete arg2;
16382 }
16383 return resultobj;
16384 fail:
16385 {
16386 if (temp2)
16387 delete arg2;
16388 }
16389 return NULL;
16390 }
16391
16392
16393 SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16394 PyObject *resultobj = 0;
16395 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16396 int arg2 ;
16397 wxString result;
16398 void *argp1 = 0 ;
16399 int res1 = 0 ;
16400 int val2 ;
16401 int ecode2 = 0 ;
16402 PyObject * obj0 = 0 ;
16403 PyObject * obj1 = 0 ;
16404 char * kwnames[] = {
16405 (char *) "self",(char *) "n", NULL
16406 };
16407
16408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16410 if (!SWIG_IsOK(res1)) {
16411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16412 }
16413 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16414 ecode2 = SWIG_AsVal_int(obj1, &val2);
16415 if (!SWIG_IsOK(ecode2)) {
16416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16417 }
16418 arg2 = static_cast< int >(val2);
16419 {
16420 PyThreadState* __tstate = wxPyBeginAllowThreads();
16421 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16422 wxPyEndAllowThreads(__tstate);
16423 if (PyErr_Occurred()) SWIG_fail;
16424 }
16425 {
16426 #if wxUSE_UNICODE
16427 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16428 #else
16429 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16430 #endif
16431 }
16432 return resultobj;
16433 fail:
16434 return NULL;
16435 }
16436
16437
16438 SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16439 PyObject *resultobj = 0;
16440 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16441 int arg2 ;
16442 wxString *arg3 = 0 ;
16443 void *argp1 = 0 ;
16444 int res1 = 0 ;
16445 int val2 ;
16446 int ecode2 = 0 ;
16447 bool temp3 = false ;
16448 PyObject * obj0 = 0 ;
16449 PyObject * obj1 = 0 ;
16450 PyObject * obj2 = 0 ;
16451 char * kwnames[] = {
16452 (char *) "self",(char *) "n",(char *) "label", NULL
16453 };
16454
16455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16457 if (!SWIG_IsOK(res1)) {
16458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16459 }
16460 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16461 ecode2 = SWIG_AsVal_int(obj1, &val2);
16462 if (!SWIG_IsOK(ecode2)) {
16463 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16464 }
16465 arg2 = static_cast< int >(val2);
16466 {
16467 arg3 = wxString_in_helper(obj2);
16468 if (arg3 == NULL) SWIG_fail;
16469 temp3 = true;
16470 }
16471 {
16472 PyThreadState* __tstate = wxPyBeginAllowThreads();
16473 (arg1)->SetString(arg2,(wxString const &)*arg3);
16474 wxPyEndAllowThreads(__tstate);
16475 if (PyErr_Occurred()) SWIG_fail;
16476 }
16477 resultobj = SWIG_Py_Void();
16478 {
16479 if (temp3)
16480 delete arg3;
16481 }
16482 return resultobj;
16483 fail:
16484 {
16485 if (temp3)
16486 delete arg3;
16487 }
16488 return NULL;
16489 }
16490
16491
16492 SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16493 PyObject *resultobj = 0;
16494 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16495 int arg2 ;
16496 bool arg3 = (bool) true ;
16497 void *argp1 = 0 ;
16498 int res1 = 0 ;
16499 int val2 ;
16500 int ecode2 = 0 ;
16501 bool val3 ;
16502 int ecode3 = 0 ;
16503 PyObject * obj0 = 0 ;
16504 PyObject * obj1 = 0 ;
16505 PyObject * obj2 = 0 ;
16506 char * kwnames[] = {
16507 (char *) "self",(char *) "n",(char *) "enable", NULL
16508 };
16509
16510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16512 if (!SWIG_IsOK(res1)) {
16513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16514 }
16515 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16516 ecode2 = SWIG_AsVal_int(obj1, &val2);
16517 if (!SWIG_IsOK(ecode2)) {
16518 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "int""'");
16519 }
16520 arg2 = static_cast< int >(val2);
16521 if (obj2) {
16522 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16523 if (!SWIG_IsOK(ecode3)) {
16524 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16525 }
16526 arg3 = static_cast< bool >(val3);
16527 }
16528 {
16529 PyThreadState* __tstate = wxPyBeginAllowThreads();
16530 (arg1)->Enable(arg2,arg3);
16531 wxPyEndAllowThreads(__tstate);
16532 if (PyErr_Occurred()) SWIG_fail;
16533 }
16534 resultobj = SWIG_Py_Void();
16535 return resultobj;
16536 fail:
16537 return NULL;
16538 }
16539
16540
16541 SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16542 PyObject *resultobj = 0;
16543 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16544 int arg2 ;
16545 bool arg3 = (bool) true ;
16546 void *argp1 = 0 ;
16547 int res1 = 0 ;
16548 int val2 ;
16549 int ecode2 = 0 ;
16550 bool val3 ;
16551 int ecode3 = 0 ;
16552 PyObject * obj0 = 0 ;
16553 PyObject * obj1 = 0 ;
16554 PyObject * obj2 = 0 ;
16555 char * kwnames[] = {
16556 (char *) "self",(char *) "n",(char *) "show", NULL
16557 };
16558
16559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",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_ShowItem" "', 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_ShowItem" "', expected argument " "2"" of type '" "int""'");
16568 }
16569 arg2 = static_cast< int >(val2);
16570 if (obj2) {
16571 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16572 if (!SWIG_IsOK(ecode3)) {
16573 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16574 }
16575 arg3 = static_cast< bool >(val3);
16576 }
16577 {
16578 PyThreadState* __tstate = wxPyBeginAllowThreads();
16579 (arg1)->Show(arg2,arg3);
16580 wxPyEndAllowThreads(__tstate);
16581 if (PyErr_Occurred()) SWIG_fail;
16582 }
16583 resultobj = SWIG_Py_Void();
16584 return resultobj;
16585 fail:
16586 return NULL;
16587 }
16588
16589
16590 SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16591 PyObject *resultobj = 0;
16592 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16593 int result;
16594 void *argp1 = 0 ;
16595 int res1 = 0 ;
16596 PyObject *swig_obj[1] ;
16597
16598 if (!args) SWIG_fail;
16599 swig_obj[0] = args;
16600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16601 if (!SWIG_IsOK(res1)) {
16602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16603 }
16604 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16605 {
16606 PyThreadState* __tstate = wxPyBeginAllowThreads();
16607 result = (int)((wxRadioBox const *)arg1)->GetColumnCount();
16608 wxPyEndAllowThreads(__tstate);
16609 if (PyErr_Occurred()) SWIG_fail;
16610 }
16611 resultobj = SWIG_From_int(static_cast< int >(result));
16612 return resultobj;
16613 fail:
16614 return NULL;
16615 }
16616
16617
16618 SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16619 PyObject *resultobj = 0;
16620 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16621 int result;
16622 void *argp1 = 0 ;
16623 int res1 = 0 ;
16624 PyObject *swig_obj[1] ;
16625
16626 if (!args) SWIG_fail;
16627 swig_obj[0] = args;
16628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16629 if (!SWIG_IsOK(res1)) {
16630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16631 }
16632 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16633 {
16634 PyThreadState* __tstate = wxPyBeginAllowThreads();
16635 result = (int)((wxRadioBox const *)arg1)->GetRowCount();
16636 wxPyEndAllowThreads(__tstate);
16637 if (PyErr_Occurred()) SWIG_fail;
16638 }
16639 resultobj = SWIG_From_int(static_cast< int >(result));
16640 return resultobj;
16641 fail:
16642 return NULL;
16643 }
16644
16645
16646 SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16647 PyObject *resultobj = 0;
16648 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16649 int arg2 ;
16650 wxDirection arg3 ;
16651 long arg4 ;
16652 int result;
16653 void *argp1 = 0 ;
16654 int res1 = 0 ;
16655 int val2 ;
16656 int ecode2 = 0 ;
16657 int val3 ;
16658 int ecode3 = 0 ;
16659 long val4 ;
16660 int ecode4 = 0 ;
16661 PyObject * obj0 = 0 ;
16662 PyObject * obj1 = 0 ;
16663 PyObject * obj2 = 0 ;
16664 PyObject * obj3 = 0 ;
16665 char * kwnames[] = {
16666 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16667 };
16668
16669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16671 if (!SWIG_IsOK(res1)) {
16672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16673 }
16674 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16675 ecode2 = SWIG_AsVal_int(obj1, &val2);
16676 if (!SWIG_IsOK(ecode2)) {
16677 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16678 }
16679 arg2 = static_cast< int >(val2);
16680 ecode3 = SWIG_AsVal_int(obj2, &val3);
16681 if (!SWIG_IsOK(ecode3)) {
16682 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16683 }
16684 arg3 = static_cast< wxDirection >(val3);
16685 ecode4 = SWIG_AsVal_long(obj3, &val4);
16686 if (!SWIG_IsOK(ecode4)) {
16687 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16688 }
16689 arg4 = static_cast< long >(val4);
16690 {
16691 PyThreadState* __tstate = wxPyBeginAllowThreads();
16692 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
16693 wxPyEndAllowThreads(__tstate);
16694 if (PyErr_Occurred()) SWIG_fail;
16695 }
16696 resultobj = SWIG_From_int(static_cast< int >(result));
16697 return resultobj;
16698 fail:
16699 return NULL;
16700 }
16701
16702
16703 SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16704 PyObject *resultobj = 0;
16705 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
16706 SwigValueWrapper<wxVisualAttributes > result;
16707 int val1 ;
16708 int ecode1 = 0 ;
16709 PyObject * obj0 = 0 ;
16710 char * kwnames[] = {
16711 (char *) "variant", NULL
16712 };
16713
16714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
16715 if (obj0) {
16716 ecode1 = SWIG_AsVal_int(obj0, &val1);
16717 if (!SWIG_IsOK(ecode1)) {
16718 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
16719 }
16720 arg1 = static_cast< wxWindowVariant >(val1);
16721 }
16722 {
16723 if (!wxPyCheckForApp()) SWIG_fail;
16724 PyThreadState* __tstate = wxPyBeginAllowThreads();
16725 result = wxRadioBox::GetClassDefaultAttributes(arg1);
16726 wxPyEndAllowThreads(__tstate);
16727 if (PyErr_Occurred()) SWIG_fail;
16728 }
16729 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
16730 return resultobj;
16731 fail:
16732 return NULL;
16733 }
16734
16735
16736 SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16737 PyObject *obj;
16738 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16739 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
16740 return SWIG_Py_Void();
16741 }
16742
16743 SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16744 return SWIG_Python_InitShadowInstance(args);
16745 }
16746
16747 SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16748 PyObject *resultobj = 0;
16749 wxWindow *arg1 = (wxWindow *) 0 ;
16750 int arg2 = (int) -1 ;
16751 wxString const &arg3_defvalue = wxPyEmptyString ;
16752 wxString *arg3 = (wxString *) &arg3_defvalue ;
16753 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16754 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16755 wxSize const &arg5_defvalue = wxDefaultSize ;
16756 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16757 long arg6 = (long) 0 ;
16758 wxValidator const &arg7_defvalue = wxDefaultValidator ;
16759 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
16760 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
16761 wxString *arg8 = (wxString *) &arg8_defvalue ;
16762 wxRadioButton *result = 0 ;
16763 void *argp1 = 0 ;
16764 int res1 = 0 ;
16765 int val2 ;
16766 int ecode2 = 0 ;
16767 bool temp3 = false ;
16768 wxPoint temp4 ;
16769 wxSize temp5 ;
16770 long val6 ;
16771 int ecode6 = 0 ;
16772 void *argp7 = 0 ;
16773 int res7 = 0 ;
16774 bool temp8 = false ;
16775 PyObject * obj0 = 0 ;
16776 PyObject * obj1 = 0 ;
16777 PyObject * obj2 = 0 ;
16778 PyObject * obj3 = 0 ;
16779 PyObject * obj4 = 0 ;
16780 PyObject * obj5 = 0 ;
16781 PyObject * obj6 = 0 ;
16782 PyObject * obj7 = 0 ;
16783 char * kwnames[] = {
16784 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
16785 };
16786
16787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
16788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16789 if (!SWIG_IsOK(res1)) {
16790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
16791 }
16792 arg1 = reinterpret_cast< wxWindow * >(argp1);
16793 if (obj1) {
16794 ecode2 = SWIG_AsVal_int(obj1, &val2);
16795 if (!SWIG_IsOK(ecode2)) {
16796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
16797 }
16798 arg2 = static_cast< int >(val2);
16799 }
16800 if (obj2) {
16801 {
16802 arg3 = wxString_in_helper(obj2);
16803 if (arg3 == NULL) SWIG_fail;
16804 temp3 = true;
16805 }
16806 }
16807 if (obj3) {
16808 {
16809 arg4 = &temp4;
16810 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
16811 }
16812 }
16813 if (obj4) {
16814 {
16815 arg5 = &temp5;
16816 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
16817 }
16818 }
16819 if (obj5) {
16820 ecode6 = SWIG_AsVal_long(obj5, &val6);
16821 if (!SWIG_IsOK(ecode6)) {
16822 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
16823 }
16824 arg6 = static_cast< long >(val6);
16825 }
16826 if (obj6) {
16827 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
16828 if (!SWIG_IsOK(res7)) {
16829 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
16830 }
16831 if (!argp7) {
16832 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
16833 }
16834 arg7 = reinterpret_cast< wxValidator * >(argp7);
16835 }
16836 if (obj7) {
16837 {
16838 arg8 = wxString_in_helper(obj7);
16839 if (arg8 == NULL) SWIG_fail;
16840 temp8 = true;
16841 }
16842 }
16843 {
16844 if (!wxPyCheckForApp()) SWIG_fail;
16845 PyThreadState* __tstate = wxPyBeginAllowThreads();
16846 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
16847 wxPyEndAllowThreads(__tstate);
16848 if (PyErr_Occurred()) SWIG_fail;
16849 }
16850 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
16851 {
16852 if (temp3)
16853 delete arg3;
16854 }
16855 {
16856 if (temp8)
16857 delete arg8;
16858 }
16859 return resultobj;
16860 fail:
16861 {
16862 if (temp3)
16863 delete arg3;
16864 }
16865 {
16866 if (temp8)
16867 delete arg8;
16868 }
16869 return NULL;
16870 }
16871
16872
16873 SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16874 PyObject *resultobj = 0;
16875 wxRadioButton *result = 0 ;
16876
16877 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
16878 {
16879 if (!wxPyCheckForApp()) SWIG_fail;
16880 PyThreadState* __tstate = wxPyBeginAllowThreads();
16881 result = (wxRadioButton *)new wxRadioButton();
16882 wxPyEndAllowThreads(__tstate);
16883 if (PyErr_Occurred()) SWIG_fail;
16884 }
16885 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
16886 return resultobj;
16887 fail:
16888 return NULL;
16889 }
16890
16891
16892 SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16893 PyObject *resultobj = 0;
16894 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
16895 wxWindow *arg2 = (wxWindow *) 0 ;
16896 int arg3 = (int) -1 ;
16897 wxString const &arg4_defvalue = wxPyEmptyString ;
16898 wxString *arg4 = (wxString *) &arg4_defvalue ;
16899 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16900 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16901 wxSize const &arg6_defvalue = wxDefaultSize ;
16902 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16903 long arg7 = (long) 0 ;
16904 wxValidator const &arg8_defvalue = wxDefaultValidator ;
16905 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
16906 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
16907 wxString *arg9 = (wxString *) &arg9_defvalue ;
16908 bool result;
16909 void *argp1 = 0 ;
16910 int res1 = 0 ;
16911 void *argp2 = 0 ;
16912 int res2 = 0 ;
16913 int val3 ;
16914 int ecode3 = 0 ;
16915 bool temp4 = false ;
16916 wxPoint temp5 ;
16917 wxSize temp6 ;
16918 long val7 ;
16919 int ecode7 = 0 ;
16920 void *argp8 = 0 ;
16921 int res8 = 0 ;
16922 bool temp9 = false ;
16923 PyObject * obj0 = 0 ;
16924 PyObject * obj1 = 0 ;
16925 PyObject * obj2 = 0 ;
16926 PyObject * obj3 = 0 ;
16927 PyObject * obj4 = 0 ;
16928 PyObject * obj5 = 0 ;
16929 PyObject * obj6 = 0 ;
16930 PyObject * obj7 = 0 ;
16931 PyObject * obj8 = 0 ;
16932 char * kwnames[] = {
16933 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
16934 };
16935
16936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
16937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
16938 if (!SWIG_IsOK(res1)) {
16939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
16940 }
16941 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
16942 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16943 if (!SWIG_IsOK(res2)) {
16944 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16945 }
16946 arg2 = reinterpret_cast< wxWindow * >(argp2);
16947 if (obj2) {
16948 ecode3 = SWIG_AsVal_int(obj2, &val3);
16949 if (!SWIG_IsOK(ecode3)) {
16950 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
16951 }
16952 arg3 = static_cast< int >(val3);
16953 }
16954 if (obj3) {
16955 {
16956 arg4 = wxString_in_helper(obj3);
16957 if (arg4 == NULL) SWIG_fail;
16958 temp4 = true;
16959 }
16960 }
16961 if (obj4) {
16962 {
16963 arg5 = &temp5;
16964 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16965 }
16966 }
16967 if (obj5) {
16968 {
16969 arg6 = &temp6;
16970 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
16971 }
16972 }
16973 if (obj6) {
16974 ecode7 = SWIG_AsVal_long(obj6, &val7);
16975 if (!SWIG_IsOK(ecode7)) {
16976 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
16977 }
16978 arg7 = static_cast< long >(val7);
16979 }
16980 if (obj7) {
16981 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
16982 if (!SWIG_IsOK(res8)) {
16983 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
16984 }
16985 if (!argp8) {
16986 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
16987 }
16988 arg8 = reinterpret_cast< wxValidator * >(argp8);
16989 }
16990 if (obj8) {
16991 {
16992 arg9 = wxString_in_helper(obj8);
16993 if (arg9 == NULL) SWIG_fail;
16994 temp9 = true;
16995 }
16996 }
16997 {
16998 PyThreadState* __tstate = wxPyBeginAllowThreads();
16999 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17000 wxPyEndAllowThreads(__tstate);
17001 if (PyErr_Occurred()) SWIG_fail;
17002 }
17003 {
17004 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17005 }
17006 {
17007 if (temp4)
17008 delete arg4;
17009 }
17010 {
17011 if (temp9)
17012 delete arg9;
17013 }
17014 return resultobj;
17015 fail:
17016 {
17017 if (temp4)
17018 delete arg4;
17019 }
17020 {
17021 if (temp9)
17022 delete arg9;
17023 }
17024 return NULL;
17025 }
17026
17027
17028 SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17029 PyObject *resultobj = 0;
17030 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17031 bool result;
17032 void *argp1 = 0 ;
17033 int res1 = 0 ;
17034 PyObject *swig_obj[1] ;
17035
17036 if (!args) SWIG_fail;
17037 swig_obj[0] = args;
17038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17039 if (!SWIG_IsOK(res1)) {
17040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17041 }
17042 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17043 {
17044 PyThreadState* __tstate = wxPyBeginAllowThreads();
17045 result = (bool)(arg1)->GetValue();
17046 wxPyEndAllowThreads(__tstate);
17047 if (PyErr_Occurred()) SWIG_fail;
17048 }
17049 {
17050 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17051 }
17052 return resultobj;
17053 fail:
17054 return NULL;
17055 }
17056
17057
17058 SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17059 PyObject *resultobj = 0;
17060 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17061 bool arg2 ;
17062 void *argp1 = 0 ;
17063 int res1 = 0 ;
17064 bool val2 ;
17065 int ecode2 = 0 ;
17066 PyObject * obj0 = 0 ;
17067 PyObject * obj1 = 0 ;
17068 char * kwnames[] = {
17069 (char *) "self",(char *) "value", NULL
17070 };
17071
17072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17074 if (!SWIG_IsOK(res1)) {
17075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17076 }
17077 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17078 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17079 if (!SWIG_IsOK(ecode2)) {
17080 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17081 }
17082 arg2 = static_cast< bool >(val2);
17083 {
17084 PyThreadState* __tstate = wxPyBeginAllowThreads();
17085 (arg1)->SetValue(arg2);
17086 wxPyEndAllowThreads(__tstate);
17087 if (PyErr_Occurred()) SWIG_fail;
17088 }
17089 resultobj = SWIG_Py_Void();
17090 return resultobj;
17091 fail:
17092 return NULL;
17093 }
17094
17095
17096 SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17097 PyObject *resultobj = 0;
17098 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17099 SwigValueWrapper<wxVisualAttributes > result;
17100 int val1 ;
17101 int ecode1 = 0 ;
17102 PyObject * obj0 = 0 ;
17103 char * kwnames[] = {
17104 (char *) "variant", NULL
17105 };
17106
17107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17108 if (obj0) {
17109 ecode1 = SWIG_AsVal_int(obj0, &val1);
17110 if (!SWIG_IsOK(ecode1)) {
17111 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17112 }
17113 arg1 = static_cast< wxWindowVariant >(val1);
17114 }
17115 {
17116 if (!wxPyCheckForApp()) SWIG_fail;
17117 PyThreadState* __tstate = wxPyBeginAllowThreads();
17118 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17119 wxPyEndAllowThreads(__tstate);
17120 if (PyErr_Occurred()) SWIG_fail;
17121 }
17122 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17123 return resultobj;
17124 fail:
17125 return NULL;
17126 }
17127
17128
17129 SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17130 PyObject *obj;
17131 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17132 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17133 return SWIG_Py_Void();
17134 }
17135
17136 SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17137 return SWIG_Python_InitShadowInstance(args);
17138 }
17139
17140 SWIGINTERN int SliderNameStr_set(PyObject *) {
17141 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17142 return 1;
17143 }
17144
17145
17146 SWIGINTERN PyObject *SliderNameStr_get(void) {
17147 PyObject *pyobj = 0;
17148
17149 {
17150 #if wxUSE_UNICODE
17151 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17152 #else
17153 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17154 #endif
17155 }
17156 return pyobj;
17157 }
17158
17159
17160 SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17161 PyObject *resultobj = 0;
17162 wxWindow *arg1 = (wxWindow *) 0 ;
17163 int arg2 = (int) -1 ;
17164 int arg3 = (int) 0 ;
17165 int arg4 = (int) 0 ;
17166 int arg5 = (int) 100 ;
17167 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17168 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17169 wxSize const &arg7_defvalue = wxDefaultSize ;
17170 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17171 long arg8 = (long) wxSL_HORIZONTAL ;
17172 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17173 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17174 wxString const &arg10_defvalue = wxPySliderNameStr ;
17175 wxString *arg10 = (wxString *) &arg10_defvalue ;
17176 wxSlider *result = 0 ;
17177 void *argp1 = 0 ;
17178 int res1 = 0 ;
17179 int val2 ;
17180 int ecode2 = 0 ;
17181 int val3 ;
17182 int ecode3 = 0 ;
17183 int val4 ;
17184 int ecode4 = 0 ;
17185 int val5 ;
17186 int ecode5 = 0 ;
17187 wxPoint temp6 ;
17188 wxSize temp7 ;
17189 long val8 ;
17190 int ecode8 = 0 ;
17191 void *argp9 = 0 ;
17192 int res9 = 0 ;
17193 bool temp10 = false ;
17194 PyObject * obj0 = 0 ;
17195 PyObject * obj1 = 0 ;
17196 PyObject * obj2 = 0 ;
17197 PyObject * obj3 = 0 ;
17198 PyObject * obj4 = 0 ;
17199 PyObject * obj5 = 0 ;
17200 PyObject * obj6 = 0 ;
17201 PyObject * obj7 = 0 ;
17202 PyObject * obj8 = 0 ;
17203 PyObject * obj9 = 0 ;
17204 char * kwnames[] = {
17205 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17206 };
17207
17208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17210 if (!SWIG_IsOK(res1)) {
17211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17212 }
17213 arg1 = reinterpret_cast< wxWindow * >(argp1);
17214 if (obj1) {
17215 ecode2 = SWIG_AsVal_int(obj1, &val2);
17216 if (!SWIG_IsOK(ecode2)) {
17217 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17218 }
17219 arg2 = static_cast< int >(val2);
17220 }
17221 if (obj2) {
17222 ecode3 = SWIG_AsVal_int(obj2, &val3);
17223 if (!SWIG_IsOK(ecode3)) {
17224 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17225 }
17226 arg3 = static_cast< int >(val3);
17227 }
17228 if (obj3) {
17229 ecode4 = SWIG_AsVal_int(obj3, &val4);
17230 if (!SWIG_IsOK(ecode4)) {
17231 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17232 }
17233 arg4 = static_cast< int >(val4);
17234 }
17235 if (obj4) {
17236 ecode5 = SWIG_AsVal_int(obj4, &val5);
17237 if (!SWIG_IsOK(ecode5)) {
17238 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17239 }
17240 arg5 = static_cast< int >(val5);
17241 }
17242 if (obj5) {
17243 {
17244 arg6 = &temp6;
17245 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
17246 }
17247 }
17248 if (obj6) {
17249 {
17250 arg7 = &temp7;
17251 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
17252 }
17253 }
17254 if (obj7) {
17255 ecode8 = SWIG_AsVal_long(obj7, &val8);
17256 if (!SWIG_IsOK(ecode8)) {
17257 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17258 }
17259 arg8 = static_cast< long >(val8);
17260 }
17261 if (obj8) {
17262 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17263 if (!SWIG_IsOK(res9)) {
17264 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17265 }
17266 if (!argp9) {
17267 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17268 }
17269 arg9 = reinterpret_cast< wxValidator * >(argp9);
17270 }
17271 if (obj9) {
17272 {
17273 arg10 = wxString_in_helper(obj9);
17274 if (arg10 == NULL) SWIG_fail;
17275 temp10 = true;
17276 }
17277 }
17278 {
17279 if (!wxPyCheckForApp()) SWIG_fail;
17280 PyThreadState* __tstate = wxPyBeginAllowThreads();
17281 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17282 wxPyEndAllowThreads(__tstate);
17283 if (PyErr_Occurred()) SWIG_fail;
17284 }
17285 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17286 {
17287 if (temp10)
17288 delete arg10;
17289 }
17290 return resultobj;
17291 fail:
17292 {
17293 if (temp10)
17294 delete arg10;
17295 }
17296 return NULL;
17297 }
17298
17299
17300 SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17301 PyObject *resultobj = 0;
17302 wxSlider *result = 0 ;
17303
17304 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17305 {
17306 if (!wxPyCheckForApp()) SWIG_fail;
17307 PyThreadState* __tstate = wxPyBeginAllowThreads();
17308 result = (wxSlider *)new wxSlider();
17309 wxPyEndAllowThreads(__tstate);
17310 if (PyErr_Occurred()) SWIG_fail;
17311 }
17312 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17313 return resultobj;
17314 fail:
17315 return NULL;
17316 }
17317
17318
17319 SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17320 PyObject *resultobj = 0;
17321 wxSlider *arg1 = (wxSlider *) 0 ;
17322 wxWindow *arg2 = (wxWindow *) 0 ;
17323 int arg3 = (int) -1 ;
17324 int arg4 = (int) 0 ;
17325 int arg5 = (int) 0 ;
17326 int arg6 = (int) 100 ;
17327 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17328 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17329 wxSize const &arg8_defvalue = wxDefaultSize ;
17330 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17331 long arg9 = (long) wxSL_HORIZONTAL ;
17332 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17333 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17334 wxString const &arg11_defvalue = wxPySliderNameStr ;
17335 wxString *arg11 = (wxString *) &arg11_defvalue ;
17336 bool result;
17337 void *argp1 = 0 ;
17338 int res1 = 0 ;
17339 void *argp2 = 0 ;
17340 int res2 = 0 ;
17341 int val3 ;
17342 int ecode3 = 0 ;
17343 int val4 ;
17344 int ecode4 = 0 ;
17345 int val5 ;
17346 int ecode5 = 0 ;
17347 int val6 ;
17348 int ecode6 = 0 ;
17349 wxPoint temp7 ;
17350 wxSize temp8 ;
17351 long val9 ;
17352 int ecode9 = 0 ;
17353 void *argp10 = 0 ;
17354 int res10 = 0 ;
17355 bool temp11 = false ;
17356 PyObject * obj0 = 0 ;
17357 PyObject * obj1 = 0 ;
17358 PyObject * obj2 = 0 ;
17359 PyObject * obj3 = 0 ;
17360 PyObject * obj4 = 0 ;
17361 PyObject * obj5 = 0 ;
17362 PyObject * obj6 = 0 ;
17363 PyObject * obj7 = 0 ;
17364 PyObject * obj8 = 0 ;
17365 PyObject * obj9 = 0 ;
17366 PyObject * obj10 = 0 ;
17367 char * kwnames[] = {
17368 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17369 };
17370
17371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17373 if (!SWIG_IsOK(res1)) {
17374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17375 }
17376 arg1 = reinterpret_cast< wxSlider * >(argp1);
17377 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17378 if (!SWIG_IsOK(res2)) {
17379 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17380 }
17381 arg2 = reinterpret_cast< wxWindow * >(argp2);
17382 if (obj2) {
17383 ecode3 = SWIG_AsVal_int(obj2, &val3);
17384 if (!SWIG_IsOK(ecode3)) {
17385 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17386 }
17387 arg3 = static_cast< int >(val3);
17388 }
17389 if (obj3) {
17390 ecode4 = SWIG_AsVal_int(obj3, &val4);
17391 if (!SWIG_IsOK(ecode4)) {
17392 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17393 }
17394 arg4 = static_cast< int >(val4);
17395 }
17396 if (obj4) {
17397 ecode5 = SWIG_AsVal_int(obj4, &val5);
17398 if (!SWIG_IsOK(ecode5)) {
17399 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17400 }
17401 arg5 = static_cast< int >(val5);
17402 }
17403 if (obj5) {
17404 ecode6 = SWIG_AsVal_int(obj5, &val6);
17405 if (!SWIG_IsOK(ecode6)) {
17406 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17407 }
17408 arg6 = static_cast< int >(val6);
17409 }
17410 if (obj6) {
17411 {
17412 arg7 = &temp7;
17413 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
17414 }
17415 }
17416 if (obj7) {
17417 {
17418 arg8 = &temp8;
17419 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
17420 }
17421 }
17422 if (obj8) {
17423 ecode9 = SWIG_AsVal_long(obj8, &val9);
17424 if (!SWIG_IsOK(ecode9)) {
17425 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17426 }
17427 arg9 = static_cast< long >(val9);
17428 }
17429 if (obj9) {
17430 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17431 if (!SWIG_IsOK(res10)) {
17432 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17433 }
17434 if (!argp10) {
17435 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17436 }
17437 arg10 = reinterpret_cast< wxValidator * >(argp10);
17438 }
17439 if (obj10) {
17440 {
17441 arg11 = wxString_in_helper(obj10);
17442 if (arg11 == NULL) SWIG_fail;
17443 temp11 = true;
17444 }
17445 }
17446 {
17447 PyThreadState* __tstate = wxPyBeginAllowThreads();
17448 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17449 wxPyEndAllowThreads(__tstate);
17450 if (PyErr_Occurred()) SWIG_fail;
17451 }
17452 {
17453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17454 }
17455 {
17456 if (temp11)
17457 delete arg11;
17458 }
17459 return resultobj;
17460 fail:
17461 {
17462 if (temp11)
17463 delete arg11;
17464 }
17465 return NULL;
17466 }
17467
17468
17469 SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17470 PyObject *resultobj = 0;
17471 wxSlider *arg1 = (wxSlider *) 0 ;
17472 int result;
17473 void *argp1 = 0 ;
17474 int res1 = 0 ;
17475 PyObject *swig_obj[1] ;
17476
17477 if (!args) SWIG_fail;
17478 swig_obj[0] = args;
17479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17480 if (!SWIG_IsOK(res1)) {
17481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17482 }
17483 arg1 = reinterpret_cast< wxSlider * >(argp1);
17484 {
17485 PyThreadState* __tstate = wxPyBeginAllowThreads();
17486 result = (int)((wxSlider const *)arg1)->GetValue();
17487 wxPyEndAllowThreads(__tstate);
17488 if (PyErr_Occurred()) SWIG_fail;
17489 }
17490 resultobj = SWIG_From_int(static_cast< int >(result));
17491 return resultobj;
17492 fail:
17493 return NULL;
17494 }
17495
17496
17497 SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17498 PyObject *resultobj = 0;
17499 wxSlider *arg1 = (wxSlider *) 0 ;
17500 int arg2 ;
17501 void *argp1 = 0 ;
17502 int res1 = 0 ;
17503 int val2 ;
17504 int ecode2 = 0 ;
17505 PyObject * obj0 = 0 ;
17506 PyObject * obj1 = 0 ;
17507 char * kwnames[] = {
17508 (char *) "self",(char *) "value", NULL
17509 };
17510
17511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17513 if (!SWIG_IsOK(res1)) {
17514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17515 }
17516 arg1 = reinterpret_cast< wxSlider * >(argp1);
17517 ecode2 = SWIG_AsVal_int(obj1, &val2);
17518 if (!SWIG_IsOK(ecode2)) {
17519 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17520 }
17521 arg2 = static_cast< int >(val2);
17522 {
17523 PyThreadState* __tstate = wxPyBeginAllowThreads();
17524 (arg1)->SetValue(arg2);
17525 wxPyEndAllowThreads(__tstate);
17526 if (PyErr_Occurred()) SWIG_fail;
17527 }
17528 resultobj = SWIG_Py_Void();
17529 return resultobj;
17530 fail:
17531 return NULL;
17532 }
17533
17534
17535 SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17536 PyObject *resultobj = 0;
17537 wxSlider *arg1 = (wxSlider *) 0 ;
17538 int arg2 ;
17539 int arg3 ;
17540 void *argp1 = 0 ;
17541 int res1 = 0 ;
17542 int val2 ;
17543 int ecode2 = 0 ;
17544 int val3 ;
17545 int ecode3 = 0 ;
17546 PyObject * obj0 = 0 ;
17547 PyObject * obj1 = 0 ;
17548 PyObject * obj2 = 0 ;
17549 char * kwnames[] = {
17550 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
17551 };
17552
17553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17555 if (!SWIG_IsOK(res1)) {
17556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
17557 }
17558 arg1 = reinterpret_cast< wxSlider * >(argp1);
17559 ecode2 = SWIG_AsVal_int(obj1, &val2);
17560 if (!SWIG_IsOK(ecode2)) {
17561 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
17562 }
17563 arg2 = static_cast< int >(val2);
17564 ecode3 = SWIG_AsVal_int(obj2, &val3);
17565 if (!SWIG_IsOK(ecode3)) {
17566 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
17567 }
17568 arg3 = static_cast< int >(val3);
17569 {
17570 PyThreadState* __tstate = wxPyBeginAllowThreads();
17571 (arg1)->SetRange(arg2,arg3);
17572 wxPyEndAllowThreads(__tstate);
17573 if (PyErr_Occurred()) SWIG_fail;
17574 }
17575 resultobj = SWIG_Py_Void();
17576 return resultobj;
17577 fail:
17578 return NULL;
17579 }
17580
17581
17582 SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17583 PyObject *resultobj = 0;
17584 wxSlider *arg1 = (wxSlider *) 0 ;
17585 int result;
17586 void *argp1 = 0 ;
17587 int res1 = 0 ;
17588 PyObject *swig_obj[1] ;
17589
17590 if (!args) SWIG_fail;
17591 swig_obj[0] = args;
17592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17593 if (!SWIG_IsOK(res1)) {
17594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
17595 }
17596 arg1 = reinterpret_cast< wxSlider * >(argp1);
17597 {
17598 PyThreadState* __tstate = wxPyBeginAllowThreads();
17599 result = (int)((wxSlider const *)arg1)->GetMin();
17600 wxPyEndAllowThreads(__tstate);
17601 if (PyErr_Occurred()) SWIG_fail;
17602 }
17603 resultobj = SWIG_From_int(static_cast< int >(result));
17604 return resultobj;
17605 fail:
17606 return NULL;
17607 }
17608
17609
17610 SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17611 PyObject *resultobj = 0;
17612 wxSlider *arg1 = (wxSlider *) 0 ;
17613 int result;
17614 void *argp1 = 0 ;
17615 int res1 = 0 ;
17616 PyObject *swig_obj[1] ;
17617
17618 if (!args) SWIG_fail;
17619 swig_obj[0] = args;
17620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17621 if (!SWIG_IsOK(res1)) {
17622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
17623 }
17624 arg1 = reinterpret_cast< wxSlider * >(argp1);
17625 {
17626 PyThreadState* __tstate = wxPyBeginAllowThreads();
17627 result = (int)((wxSlider const *)arg1)->GetMax();
17628 wxPyEndAllowThreads(__tstate);
17629 if (PyErr_Occurred()) SWIG_fail;
17630 }
17631 resultobj = SWIG_From_int(static_cast< int >(result));
17632 return resultobj;
17633 fail:
17634 return NULL;
17635 }
17636
17637
17638 SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17639 PyObject *resultobj = 0;
17640 wxSlider *arg1 = (wxSlider *) 0 ;
17641 int arg2 ;
17642 void *argp1 = 0 ;
17643 int res1 = 0 ;
17644 int val2 ;
17645 int ecode2 = 0 ;
17646 PyObject * obj0 = 0 ;
17647 PyObject * obj1 = 0 ;
17648 char * kwnames[] = {
17649 (char *) "self",(char *) "minValue", NULL
17650 };
17651
17652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) 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_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
17656 }
17657 arg1 = reinterpret_cast< wxSlider * >(argp1);
17658 ecode2 = SWIG_AsVal_int(obj1, &val2);
17659 if (!SWIG_IsOK(ecode2)) {
17660 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
17661 }
17662 arg2 = static_cast< int >(val2);
17663 {
17664 PyThreadState* __tstate = wxPyBeginAllowThreads();
17665 (arg1)->SetMin(arg2);
17666 wxPyEndAllowThreads(__tstate);
17667 if (PyErr_Occurred()) SWIG_fail;
17668 }
17669 resultobj = SWIG_Py_Void();
17670 return resultobj;
17671 fail:
17672 return NULL;
17673 }
17674
17675
17676 SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17677 PyObject *resultobj = 0;
17678 wxSlider *arg1 = (wxSlider *) 0 ;
17679 int arg2 ;
17680 void *argp1 = 0 ;
17681 int res1 = 0 ;
17682 int val2 ;
17683 int ecode2 = 0 ;
17684 PyObject * obj0 = 0 ;
17685 PyObject * obj1 = 0 ;
17686 char * kwnames[] = {
17687 (char *) "self",(char *) "maxValue", NULL
17688 };
17689
17690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
17691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17692 if (!SWIG_IsOK(res1)) {
17693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
17694 }
17695 arg1 = reinterpret_cast< wxSlider * >(argp1);
17696 ecode2 = SWIG_AsVal_int(obj1, &val2);
17697 if (!SWIG_IsOK(ecode2)) {
17698 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
17699 }
17700 arg2 = static_cast< int >(val2);
17701 {
17702 PyThreadState* __tstate = wxPyBeginAllowThreads();
17703 (arg1)->SetMax(arg2);
17704 wxPyEndAllowThreads(__tstate);
17705 if (PyErr_Occurred()) SWIG_fail;
17706 }
17707 resultobj = SWIG_Py_Void();
17708 return resultobj;
17709 fail:
17710 return NULL;
17711 }
17712
17713
17714 SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17715 PyObject *resultobj = 0;
17716 wxSlider *arg1 = (wxSlider *) 0 ;
17717 int arg2 ;
17718 void *argp1 = 0 ;
17719 int res1 = 0 ;
17720 int val2 ;
17721 int ecode2 = 0 ;
17722 PyObject * obj0 = 0 ;
17723 PyObject * obj1 = 0 ;
17724 char * kwnames[] = {
17725 (char *) "self",(char *) "lineSize", NULL
17726 };
17727
17728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
17729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17730 if (!SWIG_IsOK(res1)) {
17731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
17732 }
17733 arg1 = reinterpret_cast< wxSlider * >(argp1);
17734 ecode2 = SWIG_AsVal_int(obj1, &val2);
17735 if (!SWIG_IsOK(ecode2)) {
17736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
17737 }
17738 arg2 = static_cast< int >(val2);
17739 {
17740 PyThreadState* __tstate = wxPyBeginAllowThreads();
17741 (arg1)->SetLineSize(arg2);
17742 wxPyEndAllowThreads(__tstate);
17743 if (PyErr_Occurred()) SWIG_fail;
17744 }
17745 resultobj = SWIG_Py_Void();
17746 return resultobj;
17747 fail:
17748 return NULL;
17749 }
17750
17751
17752 SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17753 PyObject *resultobj = 0;
17754 wxSlider *arg1 = (wxSlider *) 0 ;
17755 int arg2 ;
17756 void *argp1 = 0 ;
17757 int res1 = 0 ;
17758 int val2 ;
17759 int ecode2 = 0 ;
17760 PyObject * obj0 = 0 ;
17761 PyObject * obj1 = 0 ;
17762 char * kwnames[] = {
17763 (char *) "self",(char *) "pageSize", NULL
17764 };
17765
17766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
17767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17768 if (!SWIG_IsOK(res1)) {
17769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
17770 }
17771 arg1 = reinterpret_cast< wxSlider * >(argp1);
17772 ecode2 = SWIG_AsVal_int(obj1, &val2);
17773 if (!SWIG_IsOK(ecode2)) {
17774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
17775 }
17776 arg2 = static_cast< int >(val2);
17777 {
17778 PyThreadState* __tstate = wxPyBeginAllowThreads();
17779 (arg1)->SetPageSize(arg2);
17780 wxPyEndAllowThreads(__tstate);
17781 if (PyErr_Occurred()) SWIG_fail;
17782 }
17783 resultobj = SWIG_Py_Void();
17784 return resultobj;
17785 fail:
17786 return NULL;
17787 }
17788
17789
17790 SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17791 PyObject *resultobj = 0;
17792 wxSlider *arg1 = (wxSlider *) 0 ;
17793 int result;
17794 void *argp1 = 0 ;
17795 int res1 = 0 ;
17796 PyObject *swig_obj[1] ;
17797
17798 if (!args) SWIG_fail;
17799 swig_obj[0] = args;
17800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17801 if (!SWIG_IsOK(res1)) {
17802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
17803 }
17804 arg1 = reinterpret_cast< wxSlider * >(argp1);
17805 {
17806 PyThreadState* __tstate = wxPyBeginAllowThreads();
17807 result = (int)((wxSlider const *)arg1)->GetLineSize();
17808 wxPyEndAllowThreads(__tstate);
17809 if (PyErr_Occurred()) SWIG_fail;
17810 }
17811 resultobj = SWIG_From_int(static_cast< int >(result));
17812 return resultobj;
17813 fail:
17814 return NULL;
17815 }
17816
17817
17818 SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17819 PyObject *resultobj = 0;
17820 wxSlider *arg1 = (wxSlider *) 0 ;
17821 int result;
17822 void *argp1 = 0 ;
17823 int res1 = 0 ;
17824 PyObject *swig_obj[1] ;
17825
17826 if (!args) SWIG_fail;
17827 swig_obj[0] = args;
17828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17829 if (!SWIG_IsOK(res1)) {
17830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
17831 }
17832 arg1 = reinterpret_cast< wxSlider * >(argp1);
17833 {
17834 PyThreadState* __tstate = wxPyBeginAllowThreads();
17835 result = (int)((wxSlider const *)arg1)->GetPageSize();
17836 wxPyEndAllowThreads(__tstate);
17837 if (PyErr_Occurred()) SWIG_fail;
17838 }
17839 resultobj = SWIG_From_int(static_cast< int >(result));
17840 return resultobj;
17841 fail:
17842 return NULL;
17843 }
17844
17845
17846 SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17847 PyObject *resultobj = 0;
17848 wxSlider *arg1 = (wxSlider *) 0 ;
17849 int arg2 ;
17850 void *argp1 = 0 ;
17851 int res1 = 0 ;
17852 int val2 ;
17853 int ecode2 = 0 ;
17854 PyObject * obj0 = 0 ;
17855 PyObject * obj1 = 0 ;
17856 char * kwnames[] = {
17857 (char *) "self",(char *) "lenPixels", NULL
17858 };
17859
17860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
17861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17862 if (!SWIG_IsOK(res1)) {
17863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
17864 }
17865 arg1 = reinterpret_cast< wxSlider * >(argp1);
17866 ecode2 = SWIG_AsVal_int(obj1, &val2);
17867 if (!SWIG_IsOK(ecode2)) {
17868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
17869 }
17870 arg2 = static_cast< int >(val2);
17871 {
17872 PyThreadState* __tstate = wxPyBeginAllowThreads();
17873 (arg1)->SetThumbLength(arg2);
17874 wxPyEndAllowThreads(__tstate);
17875 if (PyErr_Occurred()) SWIG_fail;
17876 }
17877 resultobj = SWIG_Py_Void();
17878 return resultobj;
17879 fail:
17880 return NULL;
17881 }
17882
17883
17884 SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17885 PyObject *resultobj = 0;
17886 wxSlider *arg1 = (wxSlider *) 0 ;
17887 int result;
17888 void *argp1 = 0 ;
17889 int res1 = 0 ;
17890 PyObject *swig_obj[1] ;
17891
17892 if (!args) SWIG_fail;
17893 swig_obj[0] = args;
17894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17895 if (!SWIG_IsOK(res1)) {
17896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
17897 }
17898 arg1 = reinterpret_cast< wxSlider * >(argp1);
17899 {
17900 PyThreadState* __tstate = wxPyBeginAllowThreads();
17901 result = (int)((wxSlider const *)arg1)->GetThumbLength();
17902 wxPyEndAllowThreads(__tstate);
17903 if (PyErr_Occurred()) SWIG_fail;
17904 }
17905 resultobj = SWIG_From_int(static_cast< int >(result));
17906 return resultobj;
17907 fail:
17908 return NULL;
17909 }
17910
17911
17912 SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17913 PyObject *resultobj = 0;
17914 wxSlider *arg1 = (wxSlider *) 0 ;
17915 int arg2 ;
17916 int arg3 = (int) 1 ;
17917 void *argp1 = 0 ;
17918 int res1 = 0 ;
17919 int val2 ;
17920 int ecode2 = 0 ;
17921 int val3 ;
17922 int ecode3 = 0 ;
17923 PyObject * obj0 = 0 ;
17924 PyObject * obj1 = 0 ;
17925 PyObject * obj2 = 0 ;
17926 char * kwnames[] = {
17927 (char *) "self",(char *) "n",(char *) "pos", NULL
17928 };
17929
17930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17932 if (!SWIG_IsOK(res1)) {
17933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
17934 }
17935 arg1 = reinterpret_cast< wxSlider * >(argp1);
17936 ecode2 = SWIG_AsVal_int(obj1, &val2);
17937 if (!SWIG_IsOK(ecode2)) {
17938 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
17939 }
17940 arg2 = static_cast< int >(val2);
17941 if (obj2) {
17942 ecode3 = SWIG_AsVal_int(obj2, &val3);
17943 if (!SWIG_IsOK(ecode3)) {
17944 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
17945 }
17946 arg3 = static_cast< int >(val3);
17947 }
17948 {
17949 PyThreadState* __tstate = wxPyBeginAllowThreads();
17950 (arg1)->SetTickFreq(arg2,arg3);
17951 wxPyEndAllowThreads(__tstate);
17952 if (PyErr_Occurred()) SWIG_fail;
17953 }
17954 resultobj = SWIG_Py_Void();
17955 return resultobj;
17956 fail:
17957 return NULL;
17958 }
17959
17960
17961 SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17962 PyObject *resultobj = 0;
17963 wxSlider *arg1 = (wxSlider *) 0 ;
17964 int result;
17965 void *argp1 = 0 ;
17966 int res1 = 0 ;
17967 PyObject *swig_obj[1] ;
17968
17969 if (!args) SWIG_fail;
17970 swig_obj[0] = args;
17971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17972 if (!SWIG_IsOK(res1)) {
17973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
17974 }
17975 arg1 = reinterpret_cast< wxSlider * >(argp1);
17976 {
17977 PyThreadState* __tstate = wxPyBeginAllowThreads();
17978 result = (int)((wxSlider const *)arg1)->GetTickFreq();
17979 wxPyEndAllowThreads(__tstate);
17980 if (PyErr_Occurred()) SWIG_fail;
17981 }
17982 resultobj = SWIG_From_int(static_cast< int >(result));
17983 return resultobj;
17984 fail:
17985 return NULL;
17986 }
17987
17988
17989 SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17990 PyObject *resultobj = 0;
17991 wxSlider *arg1 = (wxSlider *) 0 ;
17992 void *argp1 = 0 ;
17993 int res1 = 0 ;
17994 PyObject *swig_obj[1] ;
17995
17996 if (!args) SWIG_fail;
17997 swig_obj[0] = args;
17998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17999 if (!SWIG_IsOK(res1)) {
18000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18001 }
18002 arg1 = reinterpret_cast< wxSlider * >(argp1);
18003 {
18004 PyThreadState* __tstate = wxPyBeginAllowThreads();
18005 (arg1)->ClearTicks();
18006 wxPyEndAllowThreads(__tstate);
18007 if (PyErr_Occurred()) SWIG_fail;
18008 }
18009 resultobj = SWIG_Py_Void();
18010 return resultobj;
18011 fail:
18012 return NULL;
18013 }
18014
18015
18016 SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18017 PyObject *resultobj = 0;
18018 wxSlider *arg1 = (wxSlider *) 0 ;
18019 int arg2 ;
18020 void *argp1 = 0 ;
18021 int res1 = 0 ;
18022 int val2 ;
18023 int ecode2 = 0 ;
18024 PyObject * obj0 = 0 ;
18025 PyObject * obj1 = 0 ;
18026 char * kwnames[] = {
18027 (char *) "self",(char *) "tickPos", NULL
18028 };
18029
18030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18032 if (!SWIG_IsOK(res1)) {
18033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18034 }
18035 arg1 = reinterpret_cast< wxSlider * >(argp1);
18036 ecode2 = SWIG_AsVal_int(obj1, &val2);
18037 if (!SWIG_IsOK(ecode2)) {
18038 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18039 }
18040 arg2 = static_cast< int >(val2);
18041 {
18042 PyThreadState* __tstate = wxPyBeginAllowThreads();
18043 (arg1)->SetTick(arg2);
18044 wxPyEndAllowThreads(__tstate);
18045 if (PyErr_Occurred()) SWIG_fail;
18046 }
18047 resultobj = SWIG_Py_Void();
18048 return resultobj;
18049 fail:
18050 return NULL;
18051 }
18052
18053
18054 SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18055 PyObject *resultobj = 0;
18056 wxSlider *arg1 = (wxSlider *) 0 ;
18057 void *argp1 = 0 ;
18058 int res1 = 0 ;
18059 PyObject *swig_obj[1] ;
18060
18061 if (!args) SWIG_fail;
18062 swig_obj[0] = args;
18063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18064 if (!SWIG_IsOK(res1)) {
18065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18066 }
18067 arg1 = reinterpret_cast< wxSlider * >(argp1);
18068 {
18069 PyThreadState* __tstate = wxPyBeginAllowThreads();
18070 (arg1)->ClearSel();
18071 wxPyEndAllowThreads(__tstate);
18072 if (PyErr_Occurred()) SWIG_fail;
18073 }
18074 resultobj = SWIG_Py_Void();
18075 return resultobj;
18076 fail:
18077 return NULL;
18078 }
18079
18080
18081 SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18082 PyObject *resultobj = 0;
18083 wxSlider *arg1 = (wxSlider *) 0 ;
18084 int result;
18085 void *argp1 = 0 ;
18086 int res1 = 0 ;
18087 PyObject *swig_obj[1] ;
18088
18089 if (!args) SWIG_fail;
18090 swig_obj[0] = args;
18091 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18092 if (!SWIG_IsOK(res1)) {
18093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18094 }
18095 arg1 = reinterpret_cast< wxSlider * >(argp1);
18096 {
18097 PyThreadState* __tstate = wxPyBeginAllowThreads();
18098 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18099 wxPyEndAllowThreads(__tstate);
18100 if (PyErr_Occurred()) SWIG_fail;
18101 }
18102 resultobj = SWIG_From_int(static_cast< int >(result));
18103 return resultobj;
18104 fail:
18105 return NULL;
18106 }
18107
18108
18109 SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18110 PyObject *resultobj = 0;
18111 wxSlider *arg1 = (wxSlider *) 0 ;
18112 int result;
18113 void *argp1 = 0 ;
18114 int res1 = 0 ;
18115 PyObject *swig_obj[1] ;
18116
18117 if (!args) SWIG_fail;
18118 swig_obj[0] = args;
18119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18120 if (!SWIG_IsOK(res1)) {
18121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18122 }
18123 arg1 = reinterpret_cast< wxSlider * >(argp1);
18124 {
18125 PyThreadState* __tstate = wxPyBeginAllowThreads();
18126 result = (int)((wxSlider const *)arg1)->GetSelStart();
18127 wxPyEndAllowThreads(__tstate);
18128 if (PyErr_Occurred()) SWIG_fail;
18129 }
18130 resultobj = SWIG_From_int(static_cast< int >(result));
18131 return resultobj;
18132 fail:
18133 return NULL;
18134 }
18135
18136
18137 SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18138 PyObject *resultobj = 0;
18139 wxSlider *arg1 = (wxSlider *) 0 ;
18140 int arg2 ;
18141 int arg3 ;
18142 void *argp1 = 0 ;
18143 int res1 = 0 ;
18144 int val2 ;
18145 int ecode2 = 0 ;
18146 int val3 ;
18147 int ecode3 = 0 ;
18148 PyObject * obj0 = 0 ;
18149 PyObject * obj1 = 0 ;
18150 PyObject * obj2 = 0 ;
18151 char * kwnames[] = {
18152 (char *) "self",(char *) "min",(char *) "max", NULL
18153 };
18154
18155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18157 if (!SWIG_IsOK(res1)) {
18158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18159 }
18160 arg1 = reinterpret_cast< wxSlider * >(argp1);
18161 ecode2 = SWIG_AsVal_int(obj1, &val2);
18162 if (!SWIG_IsOK(ecode2)) {
18163 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18164 }
18165 arg2 = static_cast< int >(val2);
18166 ecode3 = SWIG_AsVal_int(obj2, &val3);
18167 if (!SWIG_IsOK(ecode3)) {
18168 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18169 }
18170 arg3 = static_cast< int >(val3);
18171 {
18172 PyThreadState* __tstate = wxPyBeginAllowThreads();
18173 (arg1)->SetSelection(arg2,arg3);
18174 wxPyEndAllowThreads(__tstate);
18175 if (PyErr_Occurred()) SWIG_fail;
18176 }
18177 resultobj = SWIG_Py_Void();
18178 return resultobj;
18179 fail:
18180 return NULL;
18181 }
18182
18183
18184 SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18185 PyObject *resultobj = 0;
18186 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18187 SwigValueWrapper<wxVisualAttributes > result;
18188 int val1 ;
18189 int ecode1 = 0 ;
18190 PyObject * obj0 = 0 ;
18191 char * kwnames[] = {
18192 (char *) "variant", NULL
18193 };
18194
18195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18196 if (obj0) {
18197 ecode1 = SWIG_AsVal_int(obj0, &val1);
18198 if (!SWIG_IsOK(ecode1)) {
18199 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18200 }
18201 arg1 = static_cast< wxWindowVariant >(val1);
18202 }
18203 {
18204 if (!wxPyCheckForApp()) SWIG_fail;
18205 PyThreadState* __tstate = wxPyBeginAllowThreads();
18206 result = wxSlider::GetClassDefaultAttributes(arg1);
18207 wxPyEndAllowThreads(__tstate);
18208 if (PyErr_Occurred()) SWIG_fail;
18209 }
18210 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18211 return resultobj;
18212 fail:
18213 return NULL;
18214 }
18215
18216
18217 SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18218 PyObject *obj;
18219 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18220 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18221 return SWIG_Py_Void();
18222 }
18223
18224 SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18225 return SWIG_Python_InitShadowInstance(args);
18226 }
18227
18228 SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18229 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18230 return 1;
18231 }
18232
18233
18234 SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18235 PyObject *pyobj = 0;
18236
18237 {
18238 #if wxUSE_UNICODE
18239 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18240 #else
18241 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18242 #endif
18243 }
18244 return pyobj;
18245 }
18246
18247
18248 SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18249 PyObject *resultobj = 0;
18250 wxWindow *arg1 = (wxWindow *) 0 ;
18251 int arg2 = (int) -1 ;
18252 wxString const &arg3_defvalue = wxPyEmptyString ;
18253 wxString *arg3 = (wxString *) &arg3_defvalue ;
18254 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18255 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18256 wxSize const &arg5_defvalue = wxDefaultSize ;
18257 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18258 long arg6 = (long) 0 ;
18259 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18260 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18261 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18262 wxString *arg8 = (wxString *) &arg8_defvalue ;
18263 wxToggleButton *result = 0 ;
18264 void *argp1 = 0 ;
18265 int res1 = 0 ;
18266 int val2 ;
18267 int ecode2 = 0 ;
18268 bool temp3 = false ;
18269 wxPoint temp4 ;
18270 wxSize temp5 ;
18271 long val6 ;
18272 int ecode6 = 0 ;
18273 void *argp7 = 0 ;
18274 int res7 = 0 ;
18275 bool temp8 = false ;
18276 PyObject * obj0 = 0 ;
18277 PyObject * obj1 = 0 ;
18278 PyObject * obj2 = 0 ;
18279 PyObject * obj3 = 0 ;
18280 PyObject * obj4 = 0 ;
18281 PyObject * obj5 = 0 ;
18282 PyObject * obj6 = 0 ;
18283 PyObject * obj7 = 0 ;
18284 char * kwnames[] = {
18285 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18286 };
18287
18288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18290 if (!SWIG_IsOK(res1)) {
18291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18292 }
18293 arg1 = reinterpret_cast< wxWindow * >(argp1);
18294 if (obj1) {
18295 ecode2 = SWIG_AsVal_int(obj1, &val2);
18296 if (!SWIG_IsOK(ecode2)) {
18297 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18298 }
18299 arg2 = static_cast< int >(val2);
18300 }
18301 if (obj2) {
18302 {
18303 arg3 = wxString_in_helper(obj2);
18304 if (arg3 == NULL) SWIG_fail;
18305 temp3 = true;
18306 }
18307 }
18308 if (obj3) {
18309 {
18310 arg4 = &temp4;
18311 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18312 }
18313 }
18314 if (obj4) {
18315 {
18316 arg5 = &temp5;
18317 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18318 }
18319 }
18320 if (obj5) {
18321 ecode6 = SWIG_AsVal_long(obj5, &val6);
18322 if (!SWIG_IsOK(ecode6)) {
18323 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18324 }
18325 arg6 = static_cast< long >(val6);
18326 }
18327 if (obj6) {
18328 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18329 if (!SWIG_IsOK(res7)) {
18330 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18331 }
18332 if (!argp7) {
18333 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18334 }
18335 arg7 = reinterpret_cast< wxValidator * >(argp7);
18336 }
18337 if (obj7) {
18338 {
18339 arg8 = wxString_in_helper(obj7);
18340 if (arg8 == NULL) SWIG_fail;
18341 temp8 = true;
18342 }
18343 }
18344 {
18345 if (!wxPyCheckForApp()) SWIG_fail;
18346 PyThreadState* __tstate = wxPyBeginAllowThreads();
18347 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18348 wxPyEndAllowThreads(__tstate);
18349 if (PyErr_Occurred()) SWIG_fail;
18350 }
18351 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18352 {
18353 if (temp3)
18354 delete arg3;
18355 }
18356 {
18357 if (temp8)
18358 delete arg8;
18359 }
18360 return resultobj;
18361 fail:
18362 {
18363 if (temp3)
18364 delete arg3;
18365 }
18366 {
18367 if (temp8)
18368 delete arg8;
18369 }
18370 return NULL;
18371 }
18372
18373
18374 SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18375 PyObject *resultobj = 0;
18376 wxToggleButton *result = 0 ;
18377
18378 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18379 {
18380 if (!wxPyCheckForApp()) SWIG_fail;
18381 PyThreadState* __tstate = wxPyBeginAllowThreads();
18382 result = (wxToggleButton *)new wxToggleButton();
18383 wxPyEndAllowThreads(__tstate);
18384 if (PyErr_Occurred()) SWIG_fail;
18385 }
18386 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18387 return resultobj;
18388 fail:
18389 return NULL;
18390 }
18391
18392
18393 SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18394 PyObject *resultobj = 0;
18395 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18396 wxWindow *arg2 = (wxWindow *) 0 ;
18397 int arg3 = (int) -1 ;
18398 wxString const &arg4_defvalue = wxPyEmptyString ;
18399 wxString *arg4 = (wxString *) &arg4_defvalue ;
18400 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18401 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18402 wxSize const &arg6_defvalue = wxDefaultSize ;
18403 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18404 long arg7 = (long) 0 ;
18405 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18406 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18407 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18408 wxString *arg9 = (wxString *) &arg9_defvalue ;
18409 bool result;
18410 void *argp1 = 0 ;
18411 int res1 = 0 ;
18412 void *argp2 = 0 ;
18413 int res2 = 0 ;
18414 int val3 ;
18415 int ecode3 = 0 ;
18416 bool temp4 = false ;
18417 wxPoint temp5 ;
18418 wxSize temp6 ;
18419 long val7 ;
18420 int ecode7 = 0 ;
18421 void *argp8 = 0 ;
18422 int res8 = 0 ;
18423 bool temp9 = false ;
18424 PyObject * obj0 = 0 ;
18425 PyObject * obj1 = 0 ;
18426 PyObject * obj2 = 0 ;
18427 PyObject * obj3 = 0 ;
18428 PyObject * obj4 = 0 ;
18429 PyObject * obj5 = 0 ;
18430 PyObject * obj6 = 0 ;
18431 PyObject * obj7 = 0 ;
18432 PyObject * obj8 = 0 ;
18433 char * kwnames[] = {
18434 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18435 };
18436
18437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18439 if (!SWIG_IsOK(res1)) {
18440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18441 }
18442 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18443 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18444 if (!SWIG_IsOK(res2)) {
18445 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18446 }
18447 arg2 = reinterpret_cast< wxWindow * >(argp2);
18448 if (obj2) {
18449 ecode3 = SWIG_AsVal_int(obj2, &val3);
18450 if (!SWIG_IsOK(ecode3)) {
18451 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18452 }
18453 arg3 = static_cast< int >(val3);
18454 }
18455 if (obj3) {
18456 {
18457 arg4 = wxString_in_helper(obj3);
18458 if (arg4 == NULL) SWIG_fail;
18459 temp4 = true;
18460 }
18461 }
18462 if (obj4) {
18463 {
18464 arg5 = &temp5;
18465 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18466 }
18467 }
18468 if (obj5) {
18469 {
18470 arg6 = &temp6;
18471 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
18472 }
18473 }
18474 if (obj6) {
18475 ecode7 = SWIG_AsVal_long(obj6, &val7);
18476 if (!SWIG_IsOK(ecode7)) {
18477 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18478 }
18479 arg7 = static_cast< long >(val7);
18480 }
18481 if (obj7) {
18482 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18483 if (!SWIG_IsOK(res8)) {
18484 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18485 }
18486 if (!argp8) {
18487 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18488 }
18489 arg8 = reinterpret_cast< wxValidator * >(argp8);
18490 }
18491 if (obj8) {
18492 {
18493 arg9 = wxString_in_helper(obj8);
18494 if (arg9 == NULL) SWIG_fail;
18495 temp9 = true;
18496 }
18497 }
18498 {
18499 PyThreadState* __tstate = wxPyBeginAllowThreads();
18500 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18501 wxPyEndAllowThreads(__tstate);
18502 if (PyErr_Occurred()) SWIG_fail;
18503 }
18504 {
18505 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18506 }
18507 {
18508 if (temp4)
18509 delete arg4;
18510 }
18511 {
18512 if (temp9)
18513 delete arg9;
18514 }
18515 return resultobj;
18516 fail:
18517 {
18518 if (temp4)
18519 delete arg4;
18520 }
18521 {
18522 if (temp9)
18523 delete arg9;
18524 }
18525 return NULL;
18526 }
18527
18528
18529 SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18530 PyObject *resultobj = 0;
18531 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18532 bool arg2 ;
18533 void *argp1 = 0 ;
18534 int res1 = 0 ;
18535 bool val2 ;
18536 int ecode2 = 0 ;
18537 PyObject * obj0 = 0 ;
18538 PyObject * obj1 = 0 ;
18539 char * kwnames[] = {
18540 (char *) "self",(char *) "value", NULL
18541 };
18542
18543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18545 if (!SWIG_IsOK(res1)) {
18546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18547 }
18548 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18549 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18550 if (!SWIG_IsOK(ecode2)) {
18551 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
18552 }
18553 arg2 = static_cast< bool >(val2);
18554 {
18555 PyThreadState* __tstate = wxPyBeginAllowThreads();
18556 (arg1)->SetValue(arg2);
18557 wxPyEndAllowThreads(__tstate);
18558 if (PyErr_Occurred()) SWIG_fail;
18559 }
18560 resultobj = SWIG_Py_Void();
18561 return resultobj;
18562 fail:
18563 return NULL;
18564 }
18565
18566
18567 SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18568 PyObject *resultobj = 0;
18569 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18570 bool result;
18571 void *argp1 = 0 ;
18572 int res1 = 0 ;
18573 PyObject *swig_obj[1] ;
18574
18575 if (!args) SWIG_fail;
18576 swig_obj[0] = args;
18577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18578 if (!SWIG_IsOK(res1)) {
18579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
18580 }
18581 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18582 {
18583 PyThreadState* __tstate = wxPyBeginAllowThreads();
18584 result = (bool)((wxToggleButton const *)arg1)->GetValue();
18585 wxPyEndAllowThreads(__tstate);
18586 if (PyErr_Occurred()) SWIG_fail;
18587 }
18588 {
18589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18590 }
18591 return resultobj;
18592 fail:
18593 return NULL;
18594 }
18595
18596
18597 SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18598 PyObject *resultobj = 0;
18599 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18600 SwigValueWrapper<wxVisualAttributes > result;
18601 int val1 ;
18602 int ecode1 = 0 ;
18603 PyObject * obj0 = 0 ;
18604 char * kwnames[] = {
18605 (char *) "variant", NULL
18606 };
18607
18608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18609 if (obj0) {
18610 ecode1 = SWIG_AsVal_int(obj0, &val1);
18611 if (!SWIG_IsOK(ecode1)) {
18612 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18613 }
18614 arg1 = static_cast< wxWindowVariant >(val1);
18615 }
18616 {
18617 if (!wxPyCheckForApp()) SWIG_fail;
18618 PyThreadState* __tstate = wxPyBeginAllowThreads();
18619 result = wxToggleButton::GetClassDefaultAttributes(arg1);
18620 wxPyEndAllowThreads(__tstate);
18621 if (PyErr_Occurred()) SWIG_fail;
18622 }
18623 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18624 return resultobj;
18625 fail:
18626 return NULL;
18627 }
18628
18629
18630 SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18631 PyObject *obj;
18632 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18633 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
18634 return SWIG_Py_Void();
18635 }
18636
18637 SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18638 return SWIG_Python_InitShadowInstance(args);
18639 }
18640
18641 SWIGINTERN int NotebookNameStr_set(PyObject *) {
18642 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
18643 return 1;
18644 }
18645
18646
18647 SWIGINTERN PyObject *NotebookNameStr_get(void) {
18648 PyObject *pyobj = 0;
18649
18650 {
18651 #if wxUSE_UNICODE
18652 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
18653 #else
18654 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
18655 #endif
18656 }
18657 return pyobj;
18658 }
18659
18660
18661 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18662 PyObject *resultobj = 0;
18663 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18664 size_t result;
18665 void *argp1 = 0 ;
18666 int res1 = 0 ;
18667 PyObject *swig_obj[1] ;
18668
18669 if (!args) SWIG_fail;
18670 swig_obj[0] = args;
18671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18672 if (!SWIG_IsOK(res1)) {
18673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18674 }
18675 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18676 {
18677 PyThreadState* __tstate = wxPyBeginAllowThreads();
18678 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
18679 wxPyEndAllowThreads(__tstate);
18680 if (PyErr_Occurred()) SWIG_fail;
18681 }
18682 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
18683 return resultobj;
18684 fail:
18685 return NULL;
18686 }
18687
18688
18689 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18690 PyObject *resultobj = 0;
18691 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18692 size_t arg2 ;
18693 wxWindow *result = 0 ;
18694 void *argp1 = 0 ;
18695 int res1 = 0 ;
18696 size_t val2 ;
18697 int ecode2 = 0 ;
18698 PyObject * obj0 = 0 ;
18699 PyObject * obj1 = 0 ;
18700 char * kwnames[] = {
18701 (char *) "self",(char *) "n", NULL
18702 };
18703
18704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
18705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18706 if (!SWIG_IsOK(res1)) {
18707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
18708 }
18709 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18710 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18711 if (!SWIG_IsOK(ecode2)) {
18712 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
18713 }
18714 arg2 = static_cast< size_t >(val2);
18715 {
18716 PyThreadState* __tstate = wxPyBeginAllowThreads();
18717 result = (wxWindow *)(arg1)->GetPage(arg2);
18718 wxPyEndAllowThreads(__tstate);
18719 if (PyErr_Occurred()) SWIG_fail;
18720 }
18721 {
18722 resultobj = wxPyMake_wxObject(result, 0);
18723 }
18724 return resultobj;
18725 fail:
18726 return NULL;
18727 }
18728
18729
18730 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18731 PyObject *resultobj = 0;
18732 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18733 wxWindow *result = 0 ;
18734 void *argp1 = 0 ;
18735 int res1 = 0 ;
18736 PyObject *swig_obj[1] ;
18737
18738 if (!args) SWIG_fail;
18739 swig_obj[0] = args;
18740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18741 if (!SWIG_IsOK(res1)) {
18742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18743 }
18744 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18745 {
18746 PyThreadState* __tstate = wxPyBeginAllowThreads();
18747 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
18748 wxPyEndAllowThreads(__tstate);
18749 if (PyErr_Occurred()) SWIG_fail;
18750 }
18751 {
18752 resultobj = wxPyMake_wxObject(result, 0);
18753 }
18754 return resultobj;
18755 fail:
18756 return NULL;
18757 }
18758
18759
18760 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18761 PyObject *resultobj = 0;
18762 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18763 int result;
18764 void *argp1 = 0 ;
18765 int res1 = 0 ;
18766 PyObject *swig_obj[1] ;
18767
18768 if (!args) SWIG_fail;
18769 swig_obj[0] = args;
18770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18771 if (!SWIG_IsOK(res1)) {
18772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18773 }
18774 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18775 {
18776 PyThreadState* __tstate = wxPyBeginAllowThreads();
18777 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
18778 wxPyEndAllowThreads(__tstate);
18779 if (PyErr_Occurred()) SWIG_fail;
18780 }
18781 resultobj = SWIG_From_int(static_cast< int >(result));
18782 return resultobj;
18783 fail:
18784 return NULL;
18785 }
18786
18787
18788 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18789 PyObject *resultobj = 0;
18790 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18791 size_t arg2 ;
18792 wxString *arg3 = 0 ;
18793 bool result;
18794 void *argp1 = 0 ;
18795 int res1 = 0 ;
18796 size_t val2 ;
18797 int ecode2 = 0 ;
18798 bool temp3 = false ;
18799 PyObject * obj0 = 0 ;
18800 PyObject * obj1 = 0 ;
18801 PyObject * obj2 = 0 ;
18802 char * kwnames[] = {
18803 (char *) "self",(char *) "n",(char *) "strText", NULL
18804 };
18805
18806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18808 if (!SWIG_IsOK(res1)) {
18809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
18810 }
18811 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18812 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18813 if (!SWIG_IsOK(ecode2)) {
18814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
18815 }
18816 arg2 = static_cast< size_t >(val2);
18817 {
18818 arg3 = wxString_in_helper(obj2);
18819 if (arg3 == NULL) SWIG_fail;
18820 temp3 = true;
18821 }
18822 {
18823 PyThreadState* __tstate = wxPyBeginAllowThreads();
18824 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
18825 wxPyEndAllowThreads(__tstate);
18826 if (PyErr_Occurred()) SWIG_fail;
18827 }
18828 {
18829 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18830 }
18831 {
18832 if (temp3)
18833 delete arg3;
18834 }
18835 return resultobj;
18836 fail:
18837 {
18838 if (temp3)
18839 delete arg3;
18840 }
18841 return NULL;
18842 }
18843
18844
18845 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18846 PyObject *resultobj = 0;
18847 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18848 size_t arg2 ;
18849 wxString result;
18850 void *argp1 = 0 ;
18851 int res1 = 0 ;
18852 size_t val2 ;
18853 int ecode2 = 0 ;
18854 PyObject * obj0 = 0 ;
18855 PyObject * obj1 = 0 ;
18856 char * kwnames[] = {
18857 (char *) "self",(char *) "n", NULL
18858 };
18859
18860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
18861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18862 if (!SWIG_IsOK(res1)) {
18863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18864 }
18865 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18866 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18867 if (!SWIG_IsOK(ecode2)) {
18868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
18869 }
18870 arg2 = static_cast< size_t >(val2);
18871 {
18872 PyThreadState* __tstate = wxPyBeginAllowThreads();
18873 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
18874 wxPyEndAllowThreads(__tstate);
18875 if (PyErr_Occurred()) SWIG_fail;
18876 }
18877 {
18878 #if wxUSE_UNICODE
18879 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18880 #else
18881 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18882 #endif
18883 }
18884 return resultobj;
18885 fail:
18886 return NULL;
18887 }
18888
18889
18890 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18891 PyObject *resultobj = 0;
18892 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18893 wxImageList *arg2 = (wxImageList *) 0 ;
18894 void *argp1 = 0 ;
18895 int res1 = 0 ;
18896 void *argp2 = 0 ;
18897 int res2 = 0 ;
18898 PyObject * obj0 = 0 ;
18899 PyObject * obj1 = 0 ;
18900 char * kwnames[] = {
18901 (char *) "self",(char *) "imageList", NULL
18902 };
18903
18904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
18905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18906 if (!SWIG_IsOK(res1)) {
18907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
18908 }
18909 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18910 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
18911 if (!SWIG_IsOK(res2)) {
18912 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
18913 }
18914 arg2 = reinterpret_cast< wxImageList * >(argp2);
18915 {
18916 PyThreadState* __tstate = wxPyBeginAllowThreads();
18917 (arg1)->SetImageList(arg2);
18918 wxPyEndAllowThreads(__tstate);
18919 if (PyErr_Occurred()) SWIG_fail;
18920 }
18921 resultobj = SWIG_Py_Void();
18922 return resultobj;
18923 fail:
18924 return NULL;
18925 }
18926
18927
18928 SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18929 PyObject *resultobj = 0;
18930 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18931 wxImageList *arg2 = (wxImageList *) 0 ;
18932 void *argp1 = 0 ;
18933 int res1 = 0 ;
18934 int res2 = 0 ;
18935 PyObject * obj0 = 0 ;
18936 PyObject * obj1 = 0 ;
18937 char * kwnames[] = {
18938 (char *) "self",(char *) "imageList", NULL
18939 };
18940
18941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
18942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18943 if (!SWIG_IsOK(res1)) {
18944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
18945 }
18946 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18947 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
18948 if (!SWIG_IsOK(res2)) {
18949 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
18950 }
18951 {
18952 PyThreadState* __tstate = wxPyBeginAllowThreads();
18953 (arg1)->AssignImageList(arg2);
18954 wxPyEndAllowThreads(__tstate);
18955 if (PyErr_Occurred()) SWIG_fail;
18956 }
18957 resultobj = SWIG_Py_Void();
18958 return resultobj;
18959 fail:
18960 return NULL;
18961 }
18962
18963
18964 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18965 PyObject *resultobj = 0;
18966 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18967 wxImageList *result = 0 ;
18968 void *argp1 = 0 ;
18969 int res1 = 0 ;
18970 PyObject *swig_obj[1] ;
18971
18972 if (!args) SWIG_fail;
18973 swig_obj[0] = args;
18974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18975 if (!SWIG_IsOK(res1)) {
18976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18977 }
18978 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18979 {
18980 PyThreadState* __tstate = wxPyBeginAllowThreads();
18981 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
18982 wxPyEndAllowThreads(__tstate);
18983 if (PyErr_Occurred()) SWIG_fail;
18984 }
18985 {
18986 resultobj = wxPyMake_wxObject(result, (bool)0);
18987 }
18988 return resultobj;
18989 fail:
18990 return NULL;
18991 }
18992
18993
18994 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18995 PyObject *resultobj = 0;
18996 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18997 size_t arg2 ;
18998 int result;
18999 void *argp1 = 0 ;
19000 int res1 = 0 ;
19001 size_t val2 ;
19002 int ecode2 = 0 ;
19003 PyObject * obj0 = 0 ;
19004 PyObject * obj1 = 0 ;
19005 char * kwnames[] = {
19006 (char *) "self",(char *) "n", NULL
19007 };
19008
19009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19011 if (!SWIG_IsOK(res1)) {
19012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19013 }
19014 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19015 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19016 if (!SWIG_IsOK(ecode2)) {
19017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19018 }
19019 arg2 = static_cast< size_t >(val2);
19020 {
19021 PyThreadState* __tstate = wxPyBeginAllowThreads();
19022 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19023 wxPyEndAllowThreads(__tstate);
19024 if (PyErr_Occurred()) SWIG_fail;
19025 }
19026 resultobj = SWIG_From_int(static_cast< int >(result));
19027 return resultobj;
19028 fail:
19029 return NULL;
19030 }
19031
19032
19033 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19034 PyObject *resultobj = 0;
19035 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19036 size_t arg2 ;
19037 int arg3 ;
19038 bool result;
19039 void *argp1 = 0 ;
19040 int res1 = 0 ;
19041 size_t val2 ;
19042 int ecode2 = 0 ;
19043 int val3 ;
19044 int ecode3 = 0 ;
19045 PyObject * obj0 = 0 ;
19046 PyObject * obj1 = 0 ;
19047 PyObject * obj2 = 0 ;
19048 char * kwnames[] = {
19049 (char *) "self",(char *) "n",(char *) "imageId", NULL
19050 };
19051
19052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19054 if (!SWIG_IsOK(res1)) {
19055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19056 }
19057 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19058 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19059 if (!SWIG_IsOK(ecode2)) {
19060 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19061 }
19062 arg2 = static_cast< size_t >(val2);
19063 ecode3 = SWIG_AsVal_int(obj2, &val3);
19064 if (!SWIG_IsOK(ecode3)) {
19065 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19066 }
19067 arg3 = static_cast< int >(val3);
19068 {
19069 PyThreadState* __tstate = wxPyBeginAllowThreads();
19070 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19071 wxPyEndAllowThreads(__tstate);
19072 if (PyErr_Occurred()) SWIG_fail;
19073 }
19074 {
19075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19076 }
19077 return resultobj;
19078 fail:
19079 return NULL;
19080 }
19081
19082
19083 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19084 PyObject *resultobj = 0;
19085 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19086 wxSize *arg2 = 0 ;
19087 void *argp1 = 0 ;
19088 int res1 = 0 ;
19089 wxSize temp2 ;
19090 PyObject * obj0 = 0 ;
19091 PyObject * obj1 = 0 ;
19092 char * kwnames[] = {
19093 (char *) "self",(char *) "size", NULL
19094 };
19095
19096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19098 if (!SWIG_IsOK(res1)) {
19099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19100 }
19101 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19102 {
19103 arg2 = &temp2;
19104 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19105 }
19106 {
19107 PyThreadState* __tstate = wxPyBeginAllowThreads();
19108 (arg1)->SetPageSize((wxSize const &)*arg2);
19109 wxPyEndAllowThreads(__tstate);
19110 if (PyErr_Occurred()) SWIG_fail;
19111 }
19112 resultobj = SWIG_Py_Void();
19113 return resultobj;
19114 fail:
19115 return NULL;
19116 }
19117
19118
19119 SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19120 PyObject *resultobj = 0;
19121 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19122 wxSize *arg2 = 0 ;
19123 wxSize result;
19124 void *argp1 = 0 ;
19125 int res1 = 0 ;
19126 wxSize temp2 ;
19127 PyObject * obj0 = 0 ;
19128 PyObject * obj1 = 0 ;
19129 char * kwnames[] = {
19130 (char *) "self",(char *) "sizePage", NULL
19131 };
19132
19133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19135 if (!SWIG_IsOK(res1)) {
19136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19137 }
19138 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19139 {
19140 arg2 = &temp2;
19141 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19142 }
19143 {
19144 PyThreadState* __tstate = wxPyBeginAllowThreads();
19145 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19146 wxPyEndAllowThreads(__tstate);
19147 if (PyErr_Occurred()) SWIG_fail;
19148 }
19149 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19150 return resultobj;
19151 fail:
19152 return NULL;
19153 }
19154
19155
19156 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19157 PyObject *resultobj = 0;
19158 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19159 unsigned int result;
19160 void *argp1 = 0 ;
19161 int res1 = 0 ;
19162 PyObject *swig_obj[1] ;
19163
19164 if (!args) SWIG_fail;
19165 swig_obj[0] = args;
19166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19167 if (!SWIG_IsOK(res1)) {
19168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19169 }
19170 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19171 {
19172 PyThreadState* __tstate = wxPyBeginAllowThreads();
19173 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
19174 wxPyEndAllowThreads(__tstate);
19175 if (PyErr_Occurred()) SWIG_fail;
19176 }
19177 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19178 return resultobj;
19179 fail:
19180 return NULL;
19181 }
19182
19183
19184 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19185 PyObject *resultobj = 0;
19186 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19187 unsigned int arg2 ;
19188 void *argp1 = 0 ;
19189 int res1 = 0 ;
19190 unsigned int val2 ;
19191 int ecode2 = 0 ;
19192 PyObject * obj0 = 0 ;
19193 PyObject * obj1 = 0 ;
19194 char * kwnames[] = {
19195 (char *) "self",(char *) "internalBorder", NULL
19196 };
19197
19198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19200 if (!SWIG_IsOK(res1)) {
19201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19202 }
19203 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19204 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
19205 if (!SWIG_IsOK(ecode2)) {
19206 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
19207 }
19208 arg2 = static_cast< unsigned int >(val2);
19209 {
19210 PyThreadState* __tstate = wxPyBeginAllowThreads();
19211 (arg1)->SetInternalBorder(arg2);
19212 wxPyEndAllowThreads(__tstate);
19213 if (PyErr_Occurred()) SWIG_fail;
19214 }
19215 resultobj = SWIG_Py_Void();
19216 return resultobj;
19217 fail:
19218 return NULL;
19219 }
19220
19221
19222 SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19223 PyObject *resultobj = 0;
19224 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19225 bool result;
19226 void *argp1 = 0 ;
19227 int res1 = 0 ;
19228 PyObject *swig_obj[1] ;
19229
19230 if (!args) SWIG_fail;
19231 swig_obj[0] = args;
19232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19233 if (!SWIG_IsOK(res1)) {
19234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19235 }
19236 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19237 {
19238 PyThreadState* __tstate = wxPyBeginAllowThreads();
19239 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19240 wxPyEndAllowThreads(__tstate);
19241 if (PyErr_Occurred()) SWIG_fail;
19242 }
19243 {
19244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19245 }
19246 return resultobj;
19247 fail:
19248 return NULL;
19249 }
19250
19251
19252 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19253 PyObject *resultobj = 0;
19254 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19255 bool arg2 ;
19256 void *argp1 = 0 ;
19257 int res1 = 0 ;
19258 bool val2 ;
19259 int ecode2 = 0 ;
19260 PyObject * obj0 = 0 ;
19261 PyObject * obj1 = 0 ;
19262 char * kwnames[] = {
19263 (char *) "self",(char *) "fit", NULL
19264 };
19265
19266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19268 if (!SWIG_IsOK(res1)) {
19269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19270 }
19271 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19272 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19273 if (!SWIG_IsOK(ecode2)) {
19274 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19275 }
19276 arg2 = static_cast< bool >(val2);
19277 {
19278 PyThreadState* __tstate = wxPyBeginAllowThreads();
19279 (arg1)->SetFitToCurrentPage(arg2);
19280 wxPyEndAllowThreads(__tstate);
19281 if (PyErr_Occurred()) SWIG_fail;
19282 }
19283 resultobj = SWIG_Py_Void();
19284 return resultobj;
19285 fail:
19286 return NULL;
19287 }
19288
19289
19290 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19291 PyObject *resultobj = 0;
19292 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19293 bool result;
19294 void *argp1 = 0 ;
19295 int res1 = 0 ;
19296 PyObject *swig_obj[1] ;
19297
19298 if (!args) SWIG_fail;
19299 swig_obj[0] = args;
19300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19301 if (!SWIG_IsOK(res1)) {
19302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19303 }
19304 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19305 {
19306 PyThreadState* __tstate = wxPyBeginAllowThreads();
19307 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19308 wxPyEndAllowThreads(__tstate);
19309 if (PyErr_Occurred()) SWIG_fail;
19310 }
19311 {
19312 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19313 }
19314 return resultobj;
19315 fail:
19316 return NULL;
19317 }
19318
19319
19320 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19321 PyObject *resultobj = 0;
19322 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19323 size_t arg2 ;
19324 bool result;
19325 void *argp1 = 0 ;
19326 int res1 = 0 ;
19327 size_t val2 ;
19328 int ecode2 = 0 ;
19329 PyObject * obj0 = 0 ;
19330 PyObject * obj1 = 0 ;
19331 char * kwnames[] = {
19332 (char *) "self",(char *) "n", NULL
19333 };
19334
19335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19337 if (!SWIG_IsOK(res1)) {
19338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19339 }
19340 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19341 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19342 if (!SWIG_IsOK(ecode2)) {
19343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19344 }
19345 arg2 = static_cast< size_t >(val2);
19346 {
19347 PyThreadState* __tstate = wxPyBeginAllowThreads();
19348 result = (bool)(arg1)->DeletePage(arg2);
19349 wxPyEndAllowThreads(__tstate);
19350 if (PyErr_Occurred()) SWIG_fail;
19351 }
19352 {
19353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19354 }
19355 return resultobj;
19356 fail:
19357 return NULL;
19358 }
19359
19360
19361 SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19362 PyObject *resultobj = 0;
19363 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19364 size_t arg2 ;
19365 bool result;
19366 void *argp1 = 0 ;
19367 int res1 = 0 ;
19368 size_t val2 ;
19369 int ecode2 = 0 ;
19370 PyObject * obj0 = 0 ;
19371 PyObject * obj1 = 0 ;
19372 char * kwnames[] = {
19373 (char *) "self",(char *) "n", NULL
19374 };
19375
19376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19378 if (!SWIG_IsOK(res1)) {
19379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19380 }
19381 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19382 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19383 if (!SWIG_IsOK(ecode2)) {
19384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19385 }
19386 arg2 = static_cast< size_t >(val2);
19387 {
19388 PyThreadState* __tstate = wxPyBeginAllowThreads();
19389 result = (bool)(arg1)->RemovePage(arg2);
19390 wxPyEndAllowThreads(__tstate);
19391 if (PyErr_Occurred()) SWIG_fail;
19392 }
19393 {
19394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19395 }
19396 return resultobj;
19397 fail:
19398 return NULL;
19399 }
19400
19401
19402 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19403 PyObject *resultobj = 0;
19404 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19405 bool result;
19406 void *argp1 = 0 ;
19407 int res1 = 0 ;
19408 PyObject *swig_obj[1] ;
19409
19410 if (!args) SWIG_fail;
19411 swig_obj[0] = args;
19412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19413 if (!SWIG_IsOK(res1)) {
19414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19415 }
19416 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19417 {
19418 PyThreadState* __tstate = wxPyBeginAllowThreads();
19419 result = (bool)(arg1)->DeleteAllPages();
19420 wxPyEndAllowThreads(__tstate);
19421 if (PyErr_Occurred()) SWIG_fail;
19422 }
19423 {
19424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19425 }
19426 return resultobj;
19427 fail:
19428 return NULL;
19429 }
19430
19431
19432 SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19433 PyObject *resultobj = 0;
19434 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19435 wxWindow *arg2 = (wxWindow *) 0 ;
19436 wxString *arg3 = 0 ;
19437 bool arg4 = (bool) false ;
19438 int arg5 = (int) -1 ;
19439 bool result;
19440 void *argp1 = 0 ;
19441 int res1 = 0 ;
19442 void *argp2 = 0 ;
19443 int res2 = 0 ;
19444 bool temp3 = false ;
19445 bool val4 ;
19446 int ecode4 = 0 ;
19447 int val5 ;
19448 int ecode5 = 0 ;
19449 PyObject * obj0 = 0 ;
19450 PyObject * obj1 = 0 ;
19451 PyObject * obj2 = 0 ;
19452 PyObject * obj3 = 0 ;
19453 PyObject * obj4 = 0 ;
19454 char * kwnames[] = {
19455 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19456 };
19457
19458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19460 if (!SWIG_IsOK(res1)) {
19461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19462 }
19463 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19464 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19465 if (!SWIG_IsOK(res2)) {
19466 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
19467 }
19468 arg2 = reinterpret_cast< wxWindow * >(argp2);
19469 {
19470 arg3 = wxString_in_helper(obj2);
19471 if (arg3 == NULL) SWIG_fail;
19472 temp3 = true;
19473 }
19474 if (obj3) {
19475 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19476 if (!SWIG_IsOK(ecode4)) {
19477 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
19478 }
19479 arg4 = static_cast< bool >(val4);
19480 }
19481 if (obj4) {
19482 ecode5 = SWIG_AsVal_int(obj4, &val5);
19483 if (!SWIG_IsOK(ecode5)) {
19484 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
19485 }
19486 arg5 = static_cast< int >(val5);
19487 }
19488 {
19489 PyThreadState* __tstate = wxPyBeginAllowThreads();
19490 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
19491 wxPyEndAllowThreads(__tstate);
19492 if (PyErr_Occurred()) SWIG_fail;
19493 }
19494 {
19495 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19496 }
19497 {
19498 if (temp3)
19499 delete arg3;
19500 }
19501 return resultobj;
19502 fail:
19503 {
19504 if (temp3)
19505 delete arg3;
19506 }
19507 return NULL;
19508 }
19509
19510
19511 SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19512 PyObject *resultobj = 0;
19513 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19514 size_t arg2 ;
19515 wxWindow *arg3 = (wxWindow *) 0 ;
19516 wxString *arg4 = 0 ;
19517 bool arg5 = (bool) false ;
19518 int arg6 = (int) -1 ;
19519 bool result;
19520 void *argp1 = 0 ;
19521 int res1 = 0 ;
19522 size_t val2 ;
19523 int ecode2 = 0 ;
19524 void *argp3 = 0 ;
19525 int res3 = 0 ;
19526 bool temp4 = false ;
19527 bool val5 ;
19528 int ecode5 = 0 ;
19529 int val6 ;
19530 int ecode6 = 0 ;
19531 PyObject * obj0 = 0 ;
19532 PyObject * obj1 = 0 ;
19533 PyObject * obj2 = 0 ;
19534 PyObject * obj3 = 0 ;
19535 PyObject * obj4 = 0 ;
19536 PyObject * obj5 = 0 ;
19537 char * kwnames[] = {
19538 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19539 };
19540
19541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19543 if (!SWIG_IsOK(res1)) {
19544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19545 }
19546 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19547 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19548 if (!SWIG_IsOK(ecode2)) {
19549 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
19550 }
19551 arg2 = static_cast< size_t >(val2);
19552 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
19553 if (!SWIG_IsOK(res3)) {
19554 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
19555 }
19556 arg3 = reinterpret_cast< wxWindow * >(argp3);
19557 {
19558 arg4 = wxString_in_helper(obj3);
19559 if (arg4 == NULL) SWIG_fail;
19560 temp4 = true;
19561 }
19562 if (obj4) {
19563 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19564 if (!SWIG_IsOK(ecode5)) {
19565 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
19566 }
19567 arg5 = static_cast< bool >(val5);
19568 }
19569 if (obj5) {
19570 ecode6 = SWIG_AsVal_int(obj5, &val6);
19571 if (!SWIG_IsOK(ecode6)) {
19572 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
19573 }
19574 arg6 = static_cast< int >(val6);
19575 }
19576 {
19577 PyThreadState* __tstate = wxPyBeginAllowThreads();
19578 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
19579 wxPyEndAllowThreads(__tstate);
19580 if (PyErr_Occurred()) SWIG_fail;
19581 }
19582 {
19583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19584 }
19585 {
19586 if (temp4)
19587 delete arg4;
19588 }
19589 return resultobj;
19590 fail:
19591 {
19592 if (temp4)
19593 delete arg4;
19594 }
19595 return NULL;
19596 }
19597
19598
19599 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19600 PyObject *resultobj = 0;
19601 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19602 size_t arg2 ;
19603 int result;
19604 void *argp1 = 0 ;
19605 int res1 = 0 ;
19606 size_t val2 ;
19607 int ecode2 = 0 ;
19608 PyObject * obj0 = 0 ;
19609 PyObject * obj1 = 0 ;
19610 char * kwnames[] = {
19611 (char *) "self",(char *) "n", NULL
19612 };
19613
19614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19616 if (!SWIG_IsOK(res1)) {
19617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19618 }
19619 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19620 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19621 if (!SWIG_IsOK(ecode2)) {
19622 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
19623 }
19624 arg2 = static_cast< size_t >(val2);
19625 {
19626 PyThreadState* __tstate = wxPyBeginAllowThreads();
19627 result = (int)(arg1)->SetSelection(arg2);
19628 wxPyEndAllowThreads(__tstate);
19629 if (PyErr_Occurred()) SWIG_fail;
19630 }
19631 resultobj = SWIG_From_int(static_cast< int >(result));
19632 return resultobj;
19633 fail:
19634 return NULL;
19635 }
19636
19637
19638 SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19639 PyObject *resultobj = 0;
19640 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19641 bool arg2 = (bool) true ;
19642 void *argp1 = 0 ;
19643 int res1 = 0 ;
19644 bool val2 ;
19645 int ecode2 = 0 ;
19646 PyObject * obj0 = 0 ;
19647 PyObject * obj1 = 0 ;
19648 char * kwnames[] = {
19649 (char *) "self",(char *) "forward", NULL
19650 };
19651
19652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19654 if (!SWIG_IsOK(res1)) {
19655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19656 }
19657 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19658 if (obj1) {
19659 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19660 if (!SWIG_IsOK(ecode2)) {
19661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
19662 }
19663 arg2 = static_cast< bool >(val2);
19664 }
19665 {
19666 PyThreadState* __tstate = wxPyBeginAllowThreads();
19667 (arg1)->AdvanceSelection(arg2);
19668 wxPyEndAllowThreads(__tstate);
19669 if (PyErr_Occurred()) SWIG_fail;
19670 }
19671 resultobj = SWIG_Py_Void();
19672 return resultobj;
19673 fail:
19674 return NULL;
19675 }
19676
19677
19678 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19679 PyObject *resultobj = 0;
19680 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19681 SwigValueWrapper<wxVisualAttributes > result;
19682 int val1 ;
19683 int ecode1 = 0 ;
19684 PyObject * obj0 = 0 ;
19685 char * kwnames[] = {
19686 (char *) "variant", NULL
19687 };
19688
19689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19690 if (obj0) {
19691 ecode1 = SWIG_AsVal_int(obj0, &val1);
19692 if (!SWIG_IsOK(ecode1)) {
19693 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19694 }
19695 arg1 = static_cast< wxWindowVariant >(val1);
19696 }
19697 {
19698 if (!wxPyCheckForApp()) SWIG_fail;
19699 PyThreadState* __tstate = wxPyBeginAllowThreads();
19700 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
19701 wxPyEndAllowThreads(__tstate);
19702 if (PyErr_Occurred()) SWIG_fail;
19703 }
19704 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19705 return resultobj;
19706 fail:
19707 return NULL;
19708 }
19709
19710
19711 SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19712 PyObject *obj;
19713 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19714 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
19715 return SWIG_Py_Void();
19716 }
19717
19718 SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19719 PyObject *resultobj = 0;
19720 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
19721 int arg2 = (int) 0 ;
19722 int arg3 = (int) -1 ;
19723 int arg4 = (int) -1 ;
19724 wxBookCtrlBaseEvent *result = 0 ;
19725 int val1 ;
19726 int ecode1 = 0 ;
19727 int val2 ;
19728 int ecode2 = 0 ;
19729 int val3 ;
19730 int ecode3 = 0 ;
19731 int val4 ;
19732 int ecode4 = 0 ;
19733 PyObject * obj0 = 0 ;
19734 PyObject * obj1 = 0 ;
19735 PyObject * obj2 = 0 ;
19736 PyObject * obj3 = 0 ;
19737 char * kwnames[] = {
19738 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
19739 };
19740
19741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19742 if (obj0) {
19743 ecode1 = SWIG_AsVal_int(obj0, &val1);
19744 if (!SWIG_IsOK(ecode1)) {
19745 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
19746 }
19747 arg1 = static_cast< wxEventType >(val1);
19748 }
19749 if (obj1) {
19750 ecode2 = SWIG_AsVal_int(obj1, &val2);
19751 if (!SWIG_IsOK(ecode2)) {
19752 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
19753 }
19754 arg2 = static_cast< int >(val2);
19755 }
19756 if (obj2) {
19757 ecode3 = SWIG_AsVal_int(obj2, &val3);
19758 if (!SWIG_IsOK(ecode3)) {
19759 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
19760 }
19761 arg3 = static_cast< int >(val3);
19762 }
19763 if (obj3) {
19764 ecode4 = SWIG_AsVal_int(obj3, &val4);
19765 if (!SWIG_IsOK(ecode4)) {
19766 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
19767 }
19768 arg4 = static_cast< int >(val4);
19769 }
19770 {
19771 PyThreadState* __tstate = wxPyBeginAllowThreads();
19772 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
19773 wxPyEndAllowThreads(__tstate);
19774 if (PyErr_Occurred()) SWIG_fail;
19775 }
19776 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
19777 return resultobj;
19778 fail:
19779 return NULL;
19780 }
19781
19782
19783 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19784 PyObject *resultobj = 0;
19785 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
19786 int result;
19787 void *argp1 = 0 ;
19788 int res1 = 0 ;
19789 PyObject *swig_obj[1] ;
19790
19791 if (!args) SWIG_fail;
19792 swig_obj[0] = args;
19793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
19794 if (!SWIG_IsOK(res1)) {
19795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
19796 }
19797 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
19798 {
19799 PyThreadState* __tstate = wxPyBeginAllowThreads();
19800 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
19801 wxPyEndAllowThreads(__tstate);
19802 if (PyErr_Occurred()) SWIG_fail;
19803 }
19804 resultobj = SWIG_From_int(static_cast< int >(result));
19805 return resultobj;
19806 fail:
19807 return NULL;
19808 }
19809
19810
19811 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19812 PyObject *resultobj = 0;
19813 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
19814 int arg2 ;
19815 void *argp1 = 0 ;
19816 int res1 = 0 ;
19817 int val2 ;
19818 int ecode2 = 0 ;
19819 PyObject * obj0 = 0 ;
19820 PyObject * obj1 = 0 ;
19821 char * kwnames[] = {
19822 (char *) "self",(char *) "nSel", NULL
19823 };
19824
19825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
19827 if (!SWIG_IsOK(res1)) {
19828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
19829 }
19830 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
19831 ecode2 = SWIG_AsVal_int(obj1, &val2);
19832 if (!SWIG_IsOK(ecode2)) {
19833 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
19834 }
19835 arg2 = static_cast< int >(val2);
19836 {
19837 PyThreadState* __tstate = wxPyBeginAllowThreads();
19838 (arg1)->SetSelection(arg2);
19839 wxPyEndAllowThreads(__tstate);
19840 if (PyErr_Occurred()) SWIG_fail;
19841 }
19842 resultobj = SWIG_Py_Void();
19843 return resultobj;
19844 fail:
19845 return NULL;
19846 }
19847
19848
19849 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19850 PyObject *resultobj = 0;
19851 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
19852 int result;
19853 void *argp1 = 0 ;
19854 int res1 = 0 ;
19855 PyObject *swig_obj[1] ;
19856
19857 if (!args) SWIG_fail;
19858 swig_obj[0] = args;
19859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
19860 if (!SWIG_IsOK(res1)) {
19861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
19862 }
19863 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
19864 {
19865 PyThreadState* __tstate = wxPyBeginAllowThreads();
19866 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
19867 wxPyEndAllowThreads(__tstate);
19868 if (PyErr_Occurred()) SWIG_fail;
19869 }
19870 resultobj = SWIG_From_int(static_cast< int >(result));
19871 return resultobj;
19872 fail:
19873 return NULL;
19874 }
19875
19876
19877 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19878 PyObject *resultobj = 0;
19879 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
19880 int arg2 ;
19881 void *argp1 = 0 ;
19882 int res1 = 0 ;
19883 int val2 ;
19884 int ecode2 = 0 ;
19885 PyObject * obj0 = 0 ;
19886 PyObject * obj1 = 0 ;
19887 char * kwnames[] = {
19888 (char *) "self",(char *) "nOldSel", NULL
19889 };
19890
19891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
19893 if (!SWIG_IsOK(res1)) {
19894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
19895 }
19896 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
19897 ecode2 = SWIG_AsVal_int(obj1, &val2);
19898 if (!SWIG_IsOK(ecode2)) {
19899 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
19900 }
19901 arg2 = static_cast< int >(val2);
19902 {
19903 PyThreadState* __tstate = wxPyBeginAllowThreads();
19904 (arg1)->SetOldSelection(arg2);
19905 wxPyEndAllowThreads(__tstate);
19906 if (PyErr_Occurred()) SWIG_fail;
19907 }
19908 resultobj = SWIG_Py_Void();
19909 return resultobj;
19910 fail:
19911 return NULL;
19912 }
19913
19914
19915 SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19916 PyObject *obj;
19917 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19918 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
19919 return SWIG_Py_Void();
19920 }
19921
19922 SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19923 return SWIG_Python_InitShadowInstance(args);
19924 }
19925
19926 SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19927 PyObject *resultobj = 0;
19928 wxWindow *arg1 = (wxWindow *) 0 ;
19929 int arg2 = (int) -1 ;
19930 wxPoint const &arg3_defvalue = wxDefaultPosition ;
19931 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
19932 wxSize const &arg4_defvalue = wxDefaultSize ;
19933 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
19934 long arg5 = (long) 0 ;
19935 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
19936 wxString *arg6 = (wxString *) &arg6_defvalue ;
19937 wxNotebook *result = 0 ;
19938 void *argp1 = 0 ;
19939 int res1 = 0 ;
19940 int val2 ;
19941 int ecode2 = 0 ;
19942 wxPoint temp3 ;
19943 wxSize temp4 ;
19944 long val5 ;
19945 int ecode5 = 0 ;
19946 bool temp6 = false ;
19947 PyObject * obj0 = 0 ;
19948 PyObject * obj1 = 0 ;
19949 PyObject * obj2 = 0 ;
19950 PyObject * obj3 = 0 ;
19951 PyObject * obj4 = 0 ;
19952 PyObject * obj5 = 0 ;
19953 char * kwnames[] = {
19954 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
19955 };
19956
19957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
19959 if (!SWIG_IsOK(res1)) {
19960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
19961 }
19962 arg1 = reinterpret_cast< wxWindow * >(argp1);
19963 if (obj1) {
19964 ecode2 = SWIG_AsVal_int(obj1, &val2);
19965 if (!SWIG_IsOK(ecode2)) {
19966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
19967 }
19968 arg2 = static_cast< int >(val2);
19969 }
19970 if (obj2) {
19971 {
19972 arg3 = &temp3;
19973 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19974 }
19975 }
19976 if (obj3) {
19977 {
19978 arg4 = &temp4;
19979 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
19980 }
19981 }
19982 if (obj4) {
19983 ecode5 = SWIG_AsVal_long(obj4, &val5);
19984 if (!SWIG_IsOK(ecode5)) {
19985 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
19986 }
19987 arg5 = static_cast< long >(val5);
19988 }
19989 if (obj5) {
19990 {
19991 arg6 = wxString_in_helper(obj5);
19992 if (arg6 == NULL) SWIG_fail;
19993 temp6 = true;
19994 }
19995 }
19996 {
19997 if (!wxPyCheckForApp()) SWIG_fail;
19998 PyThreadState* __tstate = wxPyBeginAllowThreads();
19999 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20000 wxPyEndAllowThreads(__tstate);
20001 if (PyErr_Occurred()) SWIG_fail;
20002 }
20003 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20004 {
20005 if (temp6)
20006 delete arg6;
20007 }
20008 return resultobj;
20009 fail:
20010 {
20011 if (temp6)
20012 delete arg6;
20013 }
20014 return NULL;
20015 }
20016
20017
20018 SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20019 PyObject *resultobj = 0;
20020 wxNotebook *result = 0 ;
20021
20022 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20023 {
20024 if (!wxPyCheckForApp()) SWIG_fail;
20025 PyThreadState* __tstate = wxPyBeginAllowThreads();
20026 result = (wxNotebook *)new wxNotebook();
20027 wxPyEndAllowThreads(__tstate);
20028 if (PyErr_Occurred()) SWIG_fail;
20029 }
20030 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20031 return resultobj;
20032 fail:
20033 return NULL;
20034 }
20035
20036
20037 SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20038 PyObject *resultobj = 0;
20039 wxNotebook *arg1 = (wxNotebook *) 0 ;
20040 wxWindow *arg2 = (wxWindow *) 0 ;
20041 int arg3 = (int) -1 ;
20042 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20043 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20044 wxSize const &arg5_defvalue = wxDefaultSize ;
20045 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20046 long arg6 = (long) 0 ;
20047 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20048 wxString *arg7 = (wxString *) &arg7_defvalue ;
20049 bool result;
20050 void *argp1 = 0 ;
20051 int res1 = 0 ;
20052 void *argp2 = 0 ;
20053 int res2 = 0 ;
20054 int val3 ;
20055 int ecode3 = 0 ;
20056 wxPoint temp4 ;
20057 wxSize temp5 ;
20058 long val6 ;
20059 int ecode6 = 0 ;
20060 bool temp7 = false ;
20061 PyObject * obj0 = 0 ;
20062 PyObject * obj1 = 0 ;
20063 PyObject * obj2 = 0 ;
20064 PyObject * obj3 = 0 ;
20065 PyObject * obj4 = 0 ;
20066 PyObject * obj5 = 0 ;
20067 PyObject * obj6 = 0 ;
20068 char * kwnames[] = {
20069 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20070 };
20071
20072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20074 if (!SWIG_IsOK(res1)) {
20075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20076 }
20077 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20078 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20079 if (!SWIG_IsOK(res2)) {
20080 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20081 }
20082 arg2 = reinterpret_cast< wxWindow * >(argp2);
20083 if (obj2) {
20084 ecode3 = SWIG_AsVal_int(obj2, &val3);
20085 if (!SWIG_IsOK(ecode3)) {
20086 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20087 }
20088 arg3 = static_cast< int >(val3);
20089 }
20090 if (obj3) {
20091 {
20092 arg4 = &temp4;
20093 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20094 }
20095 }
20096 if (obj4) {
20097 {
20098 arg5 = &temp5;
20099 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20100 }
20101 }
20102 if (obj5) {
20103 ecode6 = SWIG_AsVal_long(obj5, &val6);
20104 if (!SWIG_IsOK(ecode6)) {
20105 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20106 }
20107 arg6 = static_cast< long >(val6);
20108 }
20109 if (obj6) {
20110 {
20111 arg7 = wxString_in_helper(obj6);
20112 if (arg7 == NULL) SWIG_fail;
20113 temp7 = true;
20114 }
20115 }
20116 {
20117 PyThreadState* __tstate = wxPyBeginAllowThreads();
20118 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20119 wxPyEndAllowThreads(__tstate);
20120 if (PyErr_Occurred()) SWIG_fail;
20121 }
20122 {
20123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20124 }
20125 {
20126 if (temp7)
20127 delete arg7;
20128 }
20129 return resultobj;
20130 fail:
20131 {
20132 if (temp7)
20133 delete arg7;
20134 }
20135 return NULL;
20136 }
20137
20138
20139 SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20140 PyObject *resultobj = 0;
20141 wxNotebook *arg1 = (wxNotebook *) 0 ;
20142 int result;
20143 void *argp1 = 0 ;
20144 int res1 = 0 ;
20145 PyObject *swig_obj[1] ;
20146
20147 if (!args) SWIG_fail;
20148 swig_obj[0] = args;
20149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20150 if (!SWIG_IsOK(res1)) {
20151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20152 }
20153 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20154 {
20155 PyThreadState* __tstate = wxPyBeginAllowThreads();
20156 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20157 wxPyEndAllowThreads(__tstate);
20158 if (PyErr_Occurred()) SWIG_fail;
20159 }
20160 resultobj = SWIG_From_int(static_cast< int >(result));
20161 return resultobj;
20162 fail:
20163 return NULL;
20164 }
20165
20166
20167 SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20168 PyObject *resultobj = 0;
20169 wxNotebook *arg1 = (wxNotebook *) 0 ;
20170 wxSize *arg2 = 0 ;
20171 void *argp1 = 0 ;
20172 int res1 = 0 ;
20173 wxSize temp2 ;
20174 PyObject * obj0 = 0 ;
20175 PyObject * obj1 = 0 ;
20176 char * kwnames[] = {
20177 (char *) "self",(char *) "padding", NULL
20178 };
20179
20180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20182 if (!SWIG_IsOK(res1)) {
20183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20184 }
20185 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20186 {
20187 arg2 = &temp2;
20188 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20189 }
20190 {
20191 PyThreadState* __tstate = wxPyBeginAllowThreads();
20192 (arg1)->SetPadding((wxSize const &)*arg2);
20193 wxPyEndAllowThreads(__tstate);
20194 if (PyErr_Occurred()) SWIG_fail;
20195 }
20196 resultobj = SWIG_Py_Void();
20197 return resultobj;
20198 fail:
20199 return NULL;
20200 }
20201
20202
20203 SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20204 PyObject *resultobj = 0;
20205 wxNotebook *arg1 = (wxNotebook *) 0 ;
20206 wxSize *arg2 = 0 ;
20207 void *argp1 = 0 ;
20208 int res1 = 0 ;
20209 wxSize temp2 ;
20210 PyObject * obj0 = 0 ;
20211 PyObject * obj1 = 0 ;
20212 char * kwnames[] = {
20213 (char *) "self",(char *) "sz", NULL
20214 };
20215
20216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20218 if (!SWIG_IsOK(res1)) {
20219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20220 }
20221 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20222 {
20223 arg2 = &temp2;
20224 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20225 }
20226 {
20227 PyThreadState* __tstate = wxPyBeginAllowThreads();
20228 (arg1)->SetTabSize((wxSize const &)*arg2);
20229 wxPyEndAllowThreads(__tstate);
20230 if (PyErr_Occurred()) SWIG_fail;
20231 }
20232 resultobj = SWIG_Py_Void();
20233 return resultobj;
20234 fail:
20235 return NULL;
20236 }
20237
20238
20239 SWIGINTERN PyObject *_wrap_Notebook_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20240 PyObject *resultobj = 0;
20241 wxNotebook *arg1 = (wxNotebook *) 0 ;
20242 wxPoint *arg2 = 0 ;
20243 long *arg3 = (long *) 0 ;
20244 int result;
20245 void *argp1 = 0 ;
20246 int res1 = 0 ;
20247 wxPoint temp2 ;
20248 long temp3 ;
20249 int res3 = SWIG_TMPOBJ ;
20250 PyObject * obj0 = 0 ;
20251 PyObject * obj1 = 0 ;
20252 char * kwnames[] = {
20253 (char *) "self",(char *) "pt", NULL
20254 };
20255
20256 arg3 = &temp3;
20257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20259 if (!SWIG_IsOK(res1)) {
20260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_HitTest" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20261 }
20262 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20263 {
20264 arg2 = &temp2;
20265 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20266 }
20267 {
20268 PyThreadState* __tstate = wxPyBeginAllowThreads();
20269 result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20270 wxPyEndAllowThreads(__tstate);
20271 if (PyErr_Occurred()) SWIG_fail;
20272 }
20273 resultobj = SWIG_From_int(static_cast< int >(result));
20274 if (SWIG_IsTmpObj(res3)) {
20275 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20276 } else {
20277 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20278 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20279 }
20280 return resultobj;
20281 fail:
20282 return NULL;
20283 }
20284
20285
20286 SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20287 PyObject *resultobj = 0;
20288 wxNotebook *arg1 = (wxNotebook *) 0 ;
20289 wxColour result;
20290 void *argp1 = 0 ;
20291 int res1 = 0 ;
20292 PyObject *swig_obj[1] ;
20293
20294 if (!args) SWIG_fail;
20295 swig_obj[0] = args;
20296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20297 if (!SWIG_IsOK(res1)) {
20298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20299 }
20300 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20301 {
20302 PyThreadState* __tstate = wxPyBeginAllowThreads();
20303 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20304 wxPyEndAllowThreads(__tstate);
20305 if (PyErr_Occurred()) SWIG_fail;
20306 }
20307 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20308 return resultobj;
20309 fail:
20310 return NULL;
20311 }
20312
20313
20314 SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20315 PyObject *resultobj = 0;
20316 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20317 SwigValueWrapper<wxVisualAttributes > result;
20318 int val1 ;
20319 int ecode1 = 0 ;
20320 PyObject * obj0 = 0 ;
20321 char * kwnames[] = {
20322 (char *) "variant", NULL
20323 };
20324
20325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20326 if (obj0) {
20327 ecode1 = SWIG_AsVal_int(obj0, &val1);
20328 if (!SWIG_IsOK(ecode1)) {
20329 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20330 }
20331 arg1 = static_cast< wxWindowVariant >(val1);
20332 }
20333 {
20334 if (!wxPyCheckForApp()) SWIG_fail;
20335 PyThreadState* __tstate = wxPyBeginAllowThreads();
20336 result = wxNotebook::GetClassDefaultAttributes(arg1);
20337 wxPyEndAllowThreads(__tstate);
20338 if (PyErr_Occurred()) SWIG_fail;
20339 }
20340 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20341 return resultobj;
20342 fail:
20343 return NULL;
20344 }
20345
20346
20347 SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20348 PyObject *obj;
20349 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20350 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
20351 return SWIG_Py_Void();
20352 }
20353
20354 SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20355 return SWIG_Python_InitShadowInstance(args);
20356 }
20357
20358 SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20359 PyObject *resultobj = 0;
20360 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20361 int arg2 = (int) 0 ;
20362 int arg3 = (int) -1 ;
20363 int arg4 = (int) -1 ;
20364 wxNotebookEvent *result = 0 ;
20365 int val1 ;
20366 int ecode1 = 0 ;
20367 int val2 ;
20368 int ecode2 = 0 ;
20369 int val3 ;
20370 int ecode3 = 0 ;
20371 int val4 ;
20372 int ecode4 = 0 ;
20373 PyObject * obj0 = 0 ;
20374 PyObject * obj1 = 0 ;
20375 PyObject * obj2 = 0 ;
20376 PyObject * obj3 = 0 ;
20377 char * kwnames[] = {
20378 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20379 };
20380
20381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20382 if (obj0) {
20383 ecode1 = SWIG_AsVal_int(obj0, &val1);
20384 if (!SWIG_IsOK(ecode1)) {
20385 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20386 }
20387 arg1 = static_cast< wxEventType >(val1);
20388 }
20389 if (obj1) {
20390 ecode2 = SWIG_AsVal_int(obj1, &val2);
20391 if (!SWIG_IsOK(ecode2)) {
20392 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
20393 }
20394 arg2 = static_cast< int >(val2);
20395 }
20396 if (obj2) {
20397 ecode3 = SWIG_AsVal_int(obj2, &val3);
20398 if (!SWIG_IsOK(ecode3)) {
20399 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
20400 }
20401 arg3 = static_cast< int >(val3);
20402 }
20403 if (obj3) {
20404 ecode4 = SWIG_AsVal_int(obj3, &val4);
20405 if (!SWIG_IsOK(ecode4)) {
20406 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
20407 }
20408 arg4 = static_cast< int >(val4);
20409 }
20410 {
20411 PyThreadState* __tstate = wxPyBeginAllowThreads();
20412 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
20413 wxPyEndAllowThreads(__tstate);
20414 if (PyErr_Occurred()) SWIG_fail;
20415 }
20416 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
20417 return resultobj;
20418 fail:
20419 return NULL;
20420 }
20421
20422
20423 SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20424 PyObject *obj;
20425 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20426 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
20427 return SWIG_Py_Void();
20428 }
20429
20430 SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20431 return SWIG_Python_InitShadowInstance(args);
20432 }
20433
20434 SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20435 PyObject *resultobj = 0;
20436 wxWindow *arg1 = (wxWindow *) 0 ;
20437 int arg2 = (int) -1 ;
20438 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20439 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20440 wxSize const &arg4_defvalue = wxDefaultSize ;
20441 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20442 long arg5 = (long) 0 ;
20443 wxString const &arg6_defvalue = wxPyEmptyString ;
20444 wxString *arg6 = (wxString *) &arg6_defvalue ;
20445 wxListbook *result = 0 ;
20446 void *argp1 = 0 ;
20447 int res1 = 0 ;
20448 int val2 ;
20449 int ecode2 = 0 ;
20450 wxPoint temp3 ;
20451 wxSize temp4 ;
20452 long val5 ;
20453 int ecode5 = 0 ;
20454 bool temp6 = false ;
20455 PyObject * obj0 = 0 ;
20456 PyObject * obj1 = 0 ;
20457 PyObject * obj2 = 0 ;
20458 PyObject * obj3 = 0 ;
20459 PyObject * obj4 = 0 ;
20460 PyObject * obj5 = 0 ;
20461 char * kwnames[] = {
20462 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20463 };
20464
20465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20467 if (!SWIG_IsOK(res1)) {
20468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
20469 }
20470 arg1 = reinterpret_cast< wxWindow * >(argp1);
20471 if (obj1) {
20472 ecode2 = SWIG_AsVal_int(obj1, &val2);
20473 if (!SWIG_IsOK(ecode2)) {
20474 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
20475 }
20476 arg2 = static_cast< int >(val2);
20477 }
20478 if (obj2) {
20479 {
20480 arg3 = &temp3;
20481 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20482 }
20483 }
20484 if (obj3) {
20485 {
20486 arg4 = &temp4;
20487 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20488 }
20489 }
20490 if (obj4) {
20491 ecode5 = SWIG_AsVal_long(obj4, &val5);
20492 if (!SWIG_IsOK(ecode5)) {
20493 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
20494 }
20495 arg5 = static_cast< long >(val5);
20496 }
20497 if (obj5) {
20498 {
20499 arg6 = wxString_in_helper(obj5);
20500 if (arg6 == NULL) SWIG_fail;
20501 temp6 = true;
20502 }
20503 }
20504 {
20505 if (!wxPyCheckForApp()) SWIG_fail;
20506 PyThreadState* __tstate = wxPyBeginAllowThreads();
20507 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20508 wxPyEndAllowThreads(__tstate);
20509 if (PyErr_Occurred()) SWIG_fail;
20510 }
20511 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
20512 {
20513 if (temp6)
20514 delete arg6;
20515 }
20516 return resultobj;
20517 fail:
20518 {
20519 if (temp6)
20520 delete arg6;
20521 }
20522 return NULL;
20523 }
20524
20525
20526 SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20527 PyObject *resultobj = 0;
20528 wxListbook *result = 0 ;
20529
20530 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
20531 {
20532 if (!wxPyCheckForApp()) SWIG_fail;
20533 PyThreadState* __tstate = wxPyBeginAllowThreads();
20534 result = (wxListbook *)new wxListbook();
20535 wxPyEndAllowThreads(__tstate);
20536 if (PyErr_Occurred()) SWIG_fail;
20537 }
20538 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
20539 return resultobj;
20540 fail:
20541 return NULL;
20542 }
20543
20544
20545 SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20546 PyObject *resultobj = 0;
20547 wxListbook *arg1 = (wxListbook *) 0 ;
20548 wxWindow *arg2 = (wxWindow *) 0 ;
20549 int arg3 = (int) -1 ;
20550 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20551 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20552 wxSize const &arg5_defvalue = wxDefaultSize ;
20553 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20554 long arg6 = (long) 0 ;
20555 wxString const &arg7_defvalue = wxPyEmptyString ;
20556 wxString *arg7 = (wxString *) &arg7_defvalue ;
20557 bool result;
20558 void *argp1 = 0 ;
20559 int res1 = 0 ;
20560 void *argp2 = 0 ;
20561 int res2 = 0 ;
20562 int val3 ;
20563 int ecode3 = 0 ;
20564 wxPoint temp4 ;
20565 wxSize temp5 ;
20566 long val6 ;
20567 int ecode6 = 0 ;
20568 bool temp7 = false ;
20569 PyObject * obj0 = 0 ;
20570 PyObject * obj1 = 0 ;
20571 PyObject * obj2 = 0 ;
20572 PyObject * obj3 = 0 ;
20573 PyObject * obj4 = 0 ;
20574 PyObject * obj5 = 0 ;
20575 PyObject * obj6 = 0 ;
20576 char * kwnames[] = {
20577 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20578 };
20579
20580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
20582 if (!SWIG_IsOK(res1)) {
20583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
20584 }
20585 arg1 = reinterpret_cast< wxListbook * >(argp1);
20586 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20587 if (!SWIG_IsOK(res2)) {
20588 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20589 }
20590 arg2 = reinterpret_cast< wxWindow * >(argp2);
20591 if (obj2) {
20592 ecode3 = SWIG_AsVal_int(obj2, &val3);
20593 if (!SWIG_IsOK(ecode3)) {
20594 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
20595 }
20596 arg3 = static_cast< int >(val3);
20597 }
20598 if (obj3) {
20599 {
20600 arg4 = &temp4;
20601 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20602 }
20603 }
20604 if (obj4) {
20605 {
20606 arg5 = &temp5;
20607 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20608 }
20609 }
20610 if (obj5) {
20611 ecode6 = SWIG_AsVal_long(obj5, &val6);
20612 if (!SWIG_IsOK(ecode6)) {
20613 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
20614 }
20615 arg6 = static_cast< long >(val6);
20616 }
20617 if (obj6) {
20618 {
20619 arg7 = wxString_in_helper(obj6);
20620 if (arg7 == NULL) SWIG_fail;
20621 temp7 = true;
20622 }
20623 }
20624 {
20625 PyThreadState* __tstate = wxPyBeginAllowThreads();
20626 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20627 wxPyEndAllowThreads(__tstate);
20628 if (PyErr_Occurred()) SWIG_fail;
20629 }
20630 {
20631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20632 }
20633 {
20634 if (temp7)
20635 delete arg7;
20636 }
20637 return resultobj;
20638 fail:
20639 {
20640 if (temp7)
20641 delete arg7;
20642 }
20643 return NULL;
20644 }
20645
20646
20647 SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20648 PyObject *resultobj = 0;
20649 wxListbook *arg1 = (wxListbook *) 0 ;
20650 wxListView *result = 0 ;
20651 void *argp1 = 0 ;
20652 int res1 = 0 ;
20653 PyObject *swig_obj[1] ;
20654
20655 if (!args) SWIG_fail;
20656 swig_obj[0] = args;
20657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
20658 if (!SWIG_IsOK(res1)) {
20659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
20660 }
20661 arg1 = reinterpret_cast< wxListbook * >(argp1);
20662 {
20663 PyThreadState* __tstate = wxPyBeginAllowThreads();
20664 result = (wxListView *)(arg1)->GetListView();
20665 wxPyEndAllowThreads(__tstate);
20666 if (PyErr_Occurred()) SWIG_fail;
20667 }
20668 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
20669 return resultobj;
20670 fail:
20671 return NULL;
20672 }
20673
20674
20675 SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20676 PyObject *obj;
20677 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20678 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
20679 return SWIG_Py_Void();
20680 }
20681
20682 SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20683 return SWIG_Python_InitShadowInstance(args);
20684 }
20685
20686 SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20687 PyObject *resultobj = 0;
20688 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20689 int arg2 = (int) 0 ;
20690 int arg3 = (int) -1 ;
20691 int arg4 = (int) -1 ;
20692 wxListbookEvent *result = 0 ;
20693 int val1 ;
20694 int ecode1 = 0 ;
20695 int val2 ;
20696 int ecode2 = 0 ;
20697 int val3 ;
20698 int ecode3 = 0 ;
20699 int val4 ;
20700 int ecode4 = 0 ;
20701 PyObject * obj0 = 0 ;
20702 PyObject * obj1 = 0 ;
20703 PyObject * obj2 = 0 ;
20704 PyObject * obj3 = 0 ;
20705 char * kwnames[] = {
20706 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20707 };
20708
20709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20710 if (obj0) {
20711 ecode1 = SWIG_AsVal_int(obj0, &val1);
20712 if (!SWIG_IsOK(ecode1)) {
20713 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20714 }
20715 arg1 = static_cast< wxEventType >(val1);
20716 }
20717 if (obj1) {
20718 ecode2 = SWIG_AsVal_int(obj1, &val2);
20719 if (!SWIG_IsOK(ecode2)) {
20720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
20721 }
20722 arg2 = static_cast< int >(val2);
20723 }
20724 if (obj2) {
20725 ecode3 = SWIG_AsVal_int(obj2, &val3);
20726 if (!SWIG_IsOK(ecode3)) {
20727 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
20728 }
20729 arg3 = static_cast< int >(val3);
20730 }
20731 if (obj3) {
20732 ecode4 = SWIG_AsVal_int(obj3, &val4);
20733 if (!SWIG_IsOK(ecode4)) {
20734 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
20735 }
20736 arg4 = static_cast< int >(val4);
20737 }
20738 {
20739 PyThreadState* __tstate = wxPyBeginAllowThreads();
20740 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
20741 wxPyEndAllowThreads(__tstate);
20742 if (PyErr_Occurred()) SWIG_fail;
20743 }
20744 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
20745 return resultobj;
20746 fail:
20747 return NULL;
20748 }
20749
20750
20751 SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20752 PyObject *obj;
20753 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20754 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
20755 return SWIG_Py_Void();
20756 }
20757
20758 SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20759 return SWIG_Python_InitShadowInstance(args);
20760 }
20761
20762 SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20763 PyObject *resultobj = 0;
20764 wxWindow *arg1 = (wxWindow *) 0 ;
20765 int arg2 ;
20766 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20767 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20768 wxSize const &arg4_defvalue = wxDefaultSize ;
20769 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20770 long arg5 = (long) 0 ;
20771 wxString const &arg6_defvalue = wxPyEmptyString ;
20772 wxString *arg6 = (wxString *) &arg6_defvalue ;
20773 wxChoicebook *result = 0 ;
20774 void *argp1 = 0 ;
20775 int res1 = 0 ;
20776 int val2 ;
20777 int ecode2 = 0 ;
20778 wxPoint temp3 ;
20779 wxSize temp4 ;
20780 long val5 ;
20781 int ecode5 = 0 ;
20782 bool temp6 = false ;
20783 PyObject * obj0 = 0 ;
20784 PyObject * obj1 = 0 ;
20785 PyObject * obj2 = 0 ;
20786 PyObject * obj3 = 0 ;
20787 PyObject * obj4 = 0 ;
20788 PyObject * obj5 = 0 ;
20789 char * kwnames[] = {
20790 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20791 };
20792
20793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20795 if (!SWIG_IsOK(res1)) {
20796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20797 }
20798 arg1 = reinterpret_cast< wxWindow * >(argp1);
20799 ecode2 = SWIG_AsVal_int(obj1, &val2);
20800 if (!SWIG_IsOK(ecode2)) {
20801 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
20802 }
20803 arg2 = static_cast< int >(val2);
20804 if (obj2) {
20805 {
20806 arg3 = &temp3;
20807 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20808 }
20809 }
20810 if (obj3) {
20811 {
20812 arg4 = &temp4;
20813 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20814 }
20815 }
20816 if (obj4) {
20817 ecode5 = SWIG_AsVal_long(obj4, &val5);
20818 if (!SWIG_IsOK(ecode5)) {
20819 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
20820 }
20821 arg5 = static_cast< long >(val5);
20822 }
20823 if (obj5) {
20824 {
20825 arg6 = wxString_in_helper(obj5);
20826 if (arg6 == NULL) SWIG_fail;
20827 temp6 = true;
20828 }
20829 }
20830 {
20831 if (!wxPyCheckForApp()) SWIG_fail;
20832 PyThreadState* __tstate = wxPyBeginAllowThreads();
20833 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20834 wxPyEndAllowThreads(__tstate);
20835 if (PyErr_Occurred()) SWIG_fail;
20836 }
20837 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
20838 {
20839 if (temp6)
20840 delete arg6;
20841 }
20842 return resultobj;
20843 fail:
20844 {
20845 if (temp6)
20846 delete arg6;
20847 }
20848 return NULL;
20849 }
20850
20851
20852 SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20853 PyObject *resultobj = 0;
20854 wxChoicebook *result = 0 ;
20855
20856 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
20857 {
20858 if (!wxPyCheckForApp()) SWIG_fail;
20859 PyThreadState* __tstate = wxPyBeginAllowThreads();
20860 result = (wxChoicebook *)new wxChoicebook();
20861 wxPyEndAllowThreads(__tstate);
20862 if (PyErr_Occurred()) SWIG_fail;
20863 }
20864 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
20865 return resultobj;
20866 fail:
20867 return NULL;
20868 }
20869
20870
20871 SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20872 PyObject *resultobj = 0;
20873 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
20874 wxWindow *arg2 = (wxWindow *) 0 ;
20875 int arg3 ;
20876 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20877 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20878 wxSize const &arg5_defvalue = wxDefaultSize ;
20879 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20880 long arg6 = (long) 0 ;
20881 wxString const &arg7_defvalue = wxPyEmptyString ;
20882 wxString *arg7 = (wxString *) &arg7_defvalue ;
20883 bool result;
20884 void *argp1 = 0 ;
20885 int res1 = 0 ;
20886 void *argp2 = 0 ;
20887 int res2 = 0 ;
20888 int val3 ;
20889 int ecode3 = 0 ;
20890 wxPoint temp4 ;
20891 wxSize temp5 ;
20892 long val6 ;
20893 int ecode6 = 0 ;
20894 bool temp7 = false ;
20895 PyObject * obj0 = 0 ;
20896 PyObject * obj1 = 0 ;
20897 PyObject * obj2 = 0 ;
20898 PyObject * obj3 = 0 ;
20899 PyObject * obj4 = 0 ;
20900 PyObject * obj5 = 0 ;
20901 PyObject * obj6 = 0 ;
20902 char * kwnames[] = {
20903 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20904 };
20905
20906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
20908 if (!SWIG_IsOK(res1)) {
20909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
20910 }
20911 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
20912 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20913 if (!SWIG_IsOK(res2)) {
20914 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20915 }
20916 arg2 = reinterpret_cast< wxWindow * >(argp2);
20917 ecode3 = SWIG_AsVal_int(obj2, &val3);
20918 if (!SWIG_IsOK(ecode3)) {
20919 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
20920 }
20921 arg3 = static_cast< int >(val3);
20922 if (obj3) {
20923 {
20924 arg4 = &temp4;
20925 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20926 }
20927 }
20928 if (obj4) {
20929 {
20930 arg5 = &temp5;
20931 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20932 }
20933 }
20934 if (obj5) {
20935 ecode6 = SWIG_AsVal_long(obj5, &val6);
20936 if (!SWIG_IsOK(ecode6)) {
20937 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
20938 }
20939 arg6 = static_cast< long >(val6);
20940 }
20941 if (obj6) {
20942 {
20943 arg7 = wxString_in_helper(obj6);
20944 if (arg7 == NULL) SWIG_fail;
20945 temp7 = true;
20946 }
20947 }
20948 {
20949 PyThreadState* __tstate = wxPyBeginAllowThreads();
20950 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20951 wxPyEndAllowThreads(__tstate);
20952 if (PyErr_Occurred()) SWIG_fail;
20953 }
20954 {
20955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20956 }
20957 {
20958 if (temp7)
20959 delete arg7;
20960 }
20961 return resultobj;
20962 fail:
20963 {
20964 if (temp7)
20965 delete arg7;
20966 }
20967 return NULL;
20968 }
20969
20970
20971 SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20972 PyObject *resultobj = 0;
20973 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
20974 wxChoice *result = 0 ;
20975 void *argp1 = 0 ;
20976 int res1 = 0 ;
20977 PyObject *swig_obj[1] ;
20978
20979 if (!args) SWIG_fail;
20980 swig_obj[0] = args;
20981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
20982 if (!SWIG_IsOK(res1)) {
20983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
20984 }
20985 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
20986 {
20987 PyThreadState* __tstate = wxPyBeginAllowThreads();
20988 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
20989 wxPyEndAllowThreads(__tstate);
20990 if (PyErr_Occurred()) SWIG_fail;
20991 }
20992 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
20993 return resultobj;
20994 fail:
20995 return NULL;
20996 }
20997
20998
20999 SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21000 PyObject *obj;
21001 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21002 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21003 return SWIG_Py_Void();
21004 }
21005
21006 SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21007 return SWIG_Python_InitShadowInstance(args);
21008 }
21009
21010 SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21011 PyObject *resultobj = 0;
21012 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21013 int arg2 = (int) 0 ;
21014 int arg3 = (int) -1 ;
21015 int arg4 = (int) -1 ;
21016 wxChoicebookEvent *result = 0 ;
21017 int val1 ;
21018 int ecode1 = 0 ;
21019 int val2 ;
21020 int ecode2 = 0 ;
21021 int val3 ;
21022 int ecode3 = 0 ;
21023 int val4 ;
21024 int ecode4 = 0 ;
21025 PyObject * obj0 = 0 ;
21026 PyObject * obj1 = 0 ;
21027 PyObject * obj2 = 0 ;
21028 PyObject * obj3 = 0 ;
21029 char * kwnames[] = {
21030 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21031 };
21032
21033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21034 if (obj0) {
21035 ecode1 = SWIG_AsVal_int(obj0, &val1);
21036 if (!SWIG_IsOK(ecode1)) {
21037 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21038 }
21039 arg1 = static_cast< wxEventType >(val1);
21040 }
21041 if (obj1) {
21042 ecode2 = SWIG_AsVal_int(obj1, &val2);
21043 if (!SWIG_IsOK(ecode2)) {
21044 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21045 }
21046 arg2 = static_cast< int >(val2);
21047 }
21048 if (obj2) {
21049 ecode3 = SWIG_AsVal_int(obj2, &val3);
21050 if (!SWIG_IsOK(ecode3)) {
21051 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21052 }
21053 arg3 = static_cast< int >(val3);
21054 }
21055 if (obj3) {
21056 ecode4 = SWIG_AsVal_int(obj3, &val4);
21057 if (!SWIG_IsOK(ecode4)) {
21058 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21059 }
21060 arg4 = static_cast< int >(val4);
21061 }
21062 {
21063 PyThreadState* __tstate = wxPyBeginAllowThreads();
21064 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21065 wxPyEndAllowThreads(__tstate);
21066 if (PyErr_Occurred()) SWIG_fail;
21067 }
21068 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21069 return resultobj;
21070 fail:
21071 return NULL;
21072 }
21073
21074
21075 SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21076 PyObject *obj;
21077 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21078 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21079 return SWIG_Py_Void();
21080 }
21081
21082 SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21083 return SWIG_Python_InitShadowInstance(args);
21084 }
21085
21086 SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21087 PyObject *resultobj = 0;
21088 wxWindow *arg1 = (wxWindow *) 0 ;
21089 int arg2 ;
21090 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21091 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21092 wxSize const &arg4_defvalue = wxDefaultSize ;
21093 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21094 long arg5 = (long) wxBK_DEFAULT ;
21095 wxString const &arg6_defvalue = wxPyEmptyString ;
21096 wxString *arg6 = (wxString *) &arg6_defvalue ;
21097 wxTreebook *result = 0 ;
21098 void *argp1 = 0 ;
21099 int res1 = 0 ;
21100 int val2 ;
21101 int ecode2 = 0 ;
21102 wxPoint temp3 ;
21103 wxSize temp4 ;
21104 long val5 ;
21105 int ecode5 = 0 ;
21106 bool temp6 = false ;
21107 PyObject * obj0 = 0 ;
21108 PyObject * obj1 = 0 ;
21109 PyObject * obj2 = 0 ;
21110 PyObject * obj3 = 0 ;
21111 PyObject * obj4 = 0 ;
21112 PyObject * obj5 = 0 ;
21113 char * kwnames[] = {
21114 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21115 };
21116
21117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21119 if (!SWIG_IsOK(res1)) {
21120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21121 }
21122 arg1 = reinterpret_cast< wxWindow * >(argp1);
21123 ecode2 = SWIG_AsVal_int(obj1, &val2);
21124 if (!SWIG_IsOK(ecode2)) {
21125 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21126 }
21127 arg2 = static_cast< int >(val2);
21128 if (obj2) {
21129 {
21130 arg3 = &temp3;
21131 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21132 }
21133 }
21134 if (obj3) {
21135 {
21136 arg4 = &temp4;
21137 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21138 }
21139 }
21140 if (obj4) {
21141 ecode5 = SWIG_AsVal_long(obj4, &val5);
21142 if (!SWIG_IsOK(ecode5)) {
21143 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21144 }
21145 arg5 = static_cast< long >(val5);
21146 }
21147 if (obj5) {
21148 {
21149 arg6 = wxString_in_helper(obj5);
21150 if (arg6 == NULL) SWIG_fail;
21151 temp6 = true;
21152 }
21153 }
21154 {
21155 if (!wxPyCheckForApp()) SWIG_fail;
21156 PyThreadState* __tstate = wxPyBeginAllowThreads();
21157 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21158 wxPyEndAllowThreads(__tstate);
21159 if (PyErr_Occurred()) SWIG_fail;
21160 }
21161 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21162 {
21163 if (temp6)
21164 delete arg6;
21165 }
21166 return resultobj;
21167 fail:
21168 {
21169 if (temp6)
21170 delete arg6;
21171 }
21172 return NULL;
21173 }
21174
21175
21176 SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21177 PyObject *resultobj = 0;
21178 wxTreebook *result = 0 ;
21179
21180 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21181 {
21182 if (!wxPyCheckForApp()) SWIG_fail;
21183 PyThreadState* __tstate = wxPyBeginAllowThreads();
21184 result = (wxTreebook *)new wxTreebook();
21185 wxPyEndAllowThreads(__tstate);
21186 if (PyErr_Occurred()) SWIG_fail;
21187 }
21188 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21189 return resultobj;
21190 fail:
21191 return NULL;
21192 }
21193
21194
21195 SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21196 PyObject *resultobj = 0;
21197 wxTreebook *arg1 = (wxTreebook *) 0 ;
21198 wxWindow *arg2 = (wxWindow *) 0 ;
21199 int arg3 ;
21200 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21201 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21202 wxSize const &arg5_defvalue = wxDefaultSize ;
21203 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21204 long arg6 = (long) wxBK_DEFAULT ;
21205 wxString const &arg7_defvalue = wxPyEmptyString ;
21206 wxString *arg7 = (wxString *) &arg7_defvalue ;
21207 bool result;
21208 void *argp1 = 0 ;
21209 int res1 = 0 ;
21210 void *argp2 = 0 ;
21211 int res2 = 0 ;
21212 int val3 ;
21213 int ecode3 = 0 ;
21214 wxPoint temp4 ;
21215 wxSize temp5 ;
21216 long val6 ;
21217 int ecode6 = 0 ;
21218 bool temp7 = false ;
21219 PyObject * obj0 = 0 ;
21220 PyObject * obj1 = 0 ;
21221 PyObject * obj2 = 0 ;
21222 PyObject * obj3 = 0 ;
21223 PyObject * obj4 = 0 ;
21224 PyObject * obj5 = 0 ;
21225 PyObject * obj6 = 0 ;
21226 char * kwnames[] = {
21227 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21228 };
21229
21230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21232 if (!SWIG_IsOK(res1)) {
21233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21234 }
21235 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21236 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21237 if (!SWIG_IsOK(res2)) {
21238 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21239 }
21240 arg2 = reinterpret_cast< wxWindow * >(argp2);
21241 ecode3 = SWIG_AsVal_int(obj2, &val3);
21242 if (!SWIG_IsOK(ecode3)) {
21243 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21244 }
21245 arg3 = static_cast< int >(val3);
21246 if (obj3) {
21247 {
21248 arg4 = &temp4;
21249 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21250 }
21251 }
21252 if (obj4) {
21253 {
21254 arg5 = &temp5;
21255 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21256 }
21257 }
21258 if (obj5) {
21259 ecode6 = SWIG_AsVal_long(obj5, &val6);
21260 if (!SWIG_IsOK(ecode6)) {
21261 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21262 }
21263 arg6 = static_cast< long >(val6);
21264 }
21265 if (obj6) {
21266 {
21267 arg7 = wxString_in_helper(obj6);
21268 if (arg7 == NULL) SWIG_fail;
21269 temp7 = true;
21270 }
21271 }
21272 {
21273 PyThreadState* __tstate = wxPyBeginAllowThreads();
21274 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21275 wxPyEndAllowThreads(__tstate);
21276 if (PyErr_Occurred()) SWIG_fail;
21277 }
21278 {
21279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21280 }
21281 {
21282 if (temp7)
21283 delete arg7;
21284 }
21285 return resultobj;
21286 fail:
21287 {
21288 if (temp7)
21289 delete arg7;
21290 }
21291 return NULL;
21292 }
21293
21294
21295 SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21296 PyObject *resultobj = 0;
21297 wxTreebook *arg1 = (wxTreebook *) 0 ;
21298 size_t arg2 ;
21299 wxWindow *arg3 = (wxWindow *) 0 ;
21300 wxString *arg4 = 0 ;
21301 bool arg5 = (bool) false ;
21302 int arg6 = (int) wxNOT_FOUND ;
21303 bool result;
21304 void *argp1 = 0 ;
21305 int res1 = 0 ;
21306 size_t val2 ;
21307 int ecode2 = 0 ;
21308 void *argp3 = 0 ;
21309 int res3 = 0 ;
21310 bool temp4 = false ;
21311 bool val5 ;
21312 int ecode5 = 0 ;
21313 int val6 ;
21314 int ecode6 = 0 ;
21315 PyObject * obj0 = 0 ;
21316 PyObject * obj1 = 0 ;
21317 PyObject * obj2 = 0 ;
21318 PyObject * obj3 = 0 ;
21319 PyObject * obj4 = 0 ;
21320 PyObject * obj5 = 0 ;
21321 char * kwnames[] = {
21322 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21323 };
21324
21325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21327 if (!SWIG_IsOK(res1)) {
21328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21329 }
21330 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21331 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21332 if (!SWIG_IsOK(ecode2)) {
21333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
21334 }
21335 arg2 = static_cast< size_t >(val2);
21336 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
21337 if (!SWIG_IsOK(res3)) {
21338 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
21339 }
21340 arg3 = reinterpret_cast< wxWindow * >(argp3);
21341 {
21342 arg4 = wxString_in_helper(obj3);
21343 if (arg4 == NULL) SWIG_fail;
21344 temp4 = true;
21345 }
21346 if (obj4) {
21347 ecode5 = SWIG_AsVal_bool(obj4, &val5);
21348 if (!SWIG_IsOK(ecode5)) {
21349 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
21350 }
21351 arg5 = static_cast< bool >(val5);
21352 }
21353 if (obj5) {
21354 ecode6 = SWIG_AsVal_int(obj5, &val6);
21355 if (!SWIG_IsOK(ecode6)) {
21356 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
21357 }
21358 arg6 = static_cast< int >(val6);
21359 }
21360 {
21361 PyThreadState* __tstate = wxPyBeginAllowThreads();
21362 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
21363 wxPyEndAllowThreads(__tstate);
21364 if (PyErr_Occurred()) SWIG_fail;
21365 }
21366 {
21367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21368 }
21369 {
21370 if (temp4)
21371 delete arg4;
21372 }
21373 return resultobj;
21374 fail:
21375 {
21376 if (temp4)
21377 delete arg4;
21378 }
21379 return NULL;
21380 }
21381
21382
21383 SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21384 PyObject *resultobj = 0;
21385 wxTreebook *arg1 = (wxTreebook *) 0 ;
21386 wxWindow *arg2 = (wxWindow *) 0 ;
21387 wxString *arg3 = 0 ;
21388 bool arg4 = (bool) false ;
21389 int arg5 = (int) wxNOT_FOUND ;
21390 bool result;
21391 void *argp1 = 0 ;
21392 int res1 = 0 ;
21393 void *argp2 = 0 ;
21394 int res2 = 0 ;
21395 bool temp3 = false ;
21396 bool val4 ;
21397 int ecode4 = 0 ;
21398 int val5 ;
21399 int ecode5 = 0 ;
21400 PyObject * obj0 = 0 ;
21401 PyObject * obj1 = 0 ;
21402 PyObject * obj2 = 0 ;
21403 PyObject * obj3 = 0 ;
21404 PyObject * obj4 = 0 ;
21405 char * kwnames[] = {
21406 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21407 };
21408
21409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21411 if (!SWIG_IsOK(res1)) {
21412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21413 }
21414 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21415 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21416 if (!SWIG_IsOK(res2)) {
21417 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
21418 }
21419 arg2 = reinterpret_cast< wxWindow * >(argp2);
21420 {
21421 arg3 = wxString_in_helper(obj2);
21422 if (arg3 == NULL) SWIG_fail;
21423 temp3 = true;
21424 }
21425 if (obj3) {
21426 ecode4 = SWIG_AsVal_bool(obj3, &val4);
21427 if (!SWIG_IsOK(ecode4)) {
21428 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
21429 }
21430 arg4 = static_cast< bool >(val4);
21431 }
21432 if (obj4) {
21433 ecode5 = SWIG_AsVal_int(obj4, &val5);
21434 if (!SWIG_IsOK(ecode5)) {
21435 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
21436 }
21437 arg5 = static_cast< int >(val5);
21438 }
21439 {
21440 PyThreadState* __tstate = wxPyBeginAllowThreads();
21441 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
21442 wxPyEndAllowThreads(__tstate);
21443 if (PyErr_Occurred()) SWIG_fail;
21444 }
21445 {
21446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21447 }
21448 {
21449 if (temp3)
21450 delete arg3;
21451 }
21452 return resultobj;
21453 fail:
21454 {
21455 if (temp3)
21456 delete arg3;
21457 }
21458 return NULL;
21459 }
21460
21461
21462 SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21463 PyObject *resultobj = 0;
21464 wxTreebook *arg1 = (wxTreebook *) 0 ;
21465 size_t arg2 ;
21466 bool result;
21467 void *argp1 = 0 ;
21468 int res1 = 0 ;
21469 size_t val2 ;
21470 int ecode2 = 0 ;
21471 PyObject * obj0 = 0 ;
21472 PyObject * obj1 = 0 ;
21473 char * kwnames[] = {
21474 (char *) "self",(char *) "pos", NULL
21475 };
21476
21477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
21478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21479 if (!SWIG_IsOK(res1)) {
21480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21481 }
21482 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21483 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21484 if (!SWIG_IsOK(ecode2)) {
21485 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
21486 }
21487 arg2 = static_cast< size_t >(val2);
21488 {
21489 PyThreadState* __tstate = wxPyBeginAllowThreads();
21490 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
21491 wxPyEndAllowThreads(__tstate);
21492 if (PyErr_Occurred()) SWIG_fail;
21493 }
21494 {
21495 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21496 }
21497 return resultobj;
21498 fail:
21499 return NULL;
21500 }
21501
21502
21503 SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21504 PyObject *resultobj = 0;
21505 wxTreebook *arg1 = (wxTreebook *) 0 ;
21506 size_t arg2 ;
21507 bool arg3 = (bool) true ;
21508 bool result;
21509 void *argp1 = 0 ;
21510 int res1 = 0 ;
21511 size_t val2 ;
21512 int ecode2 = 0 ;
21513 bool val3 ;
21514 int ecode3 = 0 ;
21515 PyObject * obj0 = 0 ;
21516 PyObject * obj1 = 0 ;
21517 PyObject * obj2 = 0 ;
21518 char * kwnames[] = {
21519 (char *) "self",(char *) "pos",(char *) "expand", NULL
21520 };
21521
21522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21524 if (!SWIG_IsOK(res1)) {
21525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21526 }
21527 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21528 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21529 if (!SWIG_IsOK(ecode2)) {
21530 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
21531 }
21532 arg2 = static_cast< size_t >(val2);
21533 if (obj2) {
21534 ecode3 = SWIG_AsVal_bool(obj2, &val3);
21535 if (!SWIG_IsOK(ecode3)) {
21536 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
21537 }
21538 arg3 = static_cast< bool >(val3);
21539 }
21540 {
21541 PyThreadState* __tstate = wxPyBeginAllowThreads();
21542 result = (bool)(arg1)->ExpandNode(arg2,arg3);
21543 wxPyEndAllowThreads(__tstate);
21544 if (PyErr_Occurred()) SWIG_fail;
21545 }
21546 {
21547 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21548 }
21549 return resultobj;
21550 fail:
21551 return NULL;
21552 }
21553
21554
21555 SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21556 PyObject *resultobj = 0;
21557 wxTreebook *arg1 = (wxTreebook *) 0 ;
21558 size_t arg2 ;
21559 bool result;
21560 void *argp1 = 0 ;
21561 int res1 = 0 ;
21562 size_t val2 ;
21563 int ecode2 = 0 ;
21564 PyObject * obj0 = 0 ;
21565 PyObject * obj1 = 0 ;
21566 char * kwnames[] = {
21567 (char *) "self",(char *) "pos", NULL
21568 };
21569
21570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
21571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21572 if (!SWIG_IsOK(res1)) {
21573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21574 }
21575 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21576 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21577 if (!SWIG_IsOK(ecode2)) {
21578 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
21579 }
21580 arg2 = static_cast< size_t >(val2);
21581 {
21582 PyThreadState* __tstate = wxPyBeginAllowThreads();
21583 result = (bool)(arg1)->CollapseNode(arg2);
21584 wxPyEndAllowThreads(__tstate);
21585 if (PyErr_Occurred()) SWIG_fail;
21586 }
21587 {
21588 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21589 }
21590 return resultobj;
21591 fail:
21592 return NULL;
21593 }
21594
21595
21596 SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21597 PyObject *resultobj = 0;
21598 wxTreebook *arg1 = (wxTreebook *) 0 ;
21599 size_t arg2 ;
21600 int result;
21601 void *argp1 = 0 ;
21602 int res1 = 0 ;
21603 size_t val2 ;
21604 int ecode2 = 0 ;
21605 PyObject * obj0 = 0 ;
21606 PyObject * obj1 = 0 ;
21607 char * kwnames[] = {
21608 (char *) "self",(char *) "pos", NULL
21609 };
21610
21611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
21612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21613 if (!SWIG_IsOK(res1)) {
21614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21615 }
21616 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21617 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21618 if (!SWIG_IsOK(ecode2)) {
21619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
21620 }
21621 arg2 = static_cast< size_t >(val2);
21622 {
21623 PyThreadState* __tstate = wxPyBeginAllowThreads();
21624 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
21625 wxPyEndAllowThreads(__tstate);
21626 if (PyErr_Occurred()) SWIG_fail;
21627 }
21628 resultobj = SWIG_From_int(static_cast< int >(result));
21629 return resultobj;
21630 fail:
21631 return NULL;
21632 }
21633
21634
21635 SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21636 PyObject *resultobj = 0;
21637 wxTreebook *arg1 = (wxTreebook *) 0 ;
21638 wxTreeCtrl *result = 0 ;
21639 void *argp1 = 0 ;
21640 int res1 = 0 ;
21641 PyObject *swig_obj[1] ;
21642
21643 if (!args) SWIG_fail;
21644 swig_obj[0] = args;
21645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21646 if (!SWIG_IsOK(res1)) {
21647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21648 }
21649 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21650 {
21651 PyThreadState* __tstate = wxPyBeginAllowThreads();
21652 result = (wxTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
21653 wxPyEndAllowThreads(__tstate);
21654 if (PyErr_Occurred()) SWIG_fail;
21655 }
21656 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeCtrl, 0 | 0 );
21657 return resultobj;
21658 fail:
21659 return NULL;
21660 }
21661
21662
21663 SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21664 PyObject *obj;
21665 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21666 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
21667 return SWIG_Py_Void();
21668 }
21669
21670 SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21671 return SWIG_Python_InitShadowInstance(args);
21672 }
21673
21674 SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21675 PyObject *resultobj = 0;
21676 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21677 int arg2 = (int) 0 ;
21678 int arg3 = (int) wxNOT_FOUND ;
21679 int arg4 = (int) wxNOT_FOUND ;
21680 wxTreebookEvent *result = 0 ;
21681 int val1 ;
21682 int ecode1 = 0 ;
21683 int val2 ;
21684 int ecode2 = 0 ;
21685 int val3 ;
21686 int ecode3 = 0 ;
21687 int val4 ;
21688 int ecode4 = 0 ;
21689 PyObject * obj0 = 0 ;
21690 PyObject * obj1 = 0 ;
21691 PyObject * obj2 = 0 ;
21692 PyObject * obj3 = 0 ;
21693 char * kwnames[] = {
21694 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21695 };
21696
21697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21698 if (obj0) {
21699 ecode1 = SWIG_AsVal_int(obj0, &val1);
21700 if (!SWIG_IsOK(ecode1)) {
21701 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21702 }
21703 arg1 = static_cast< wxEventType >(val1);
21704 }
21705 if (obj1) {
21706 ecode2 = SWIG_AsVal_int(obj1, &val2);
21707 if (!SWIG_IsOK(ecode2)) {
21708 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
21709 }
21710 arg2 = static_cast< int >(val2);
21711 }
21712 if (obj2) {
21713 ecode3 = SWIG_AsVal_int(obj2, &val3);
21714 if (!SWIG_IsOK(ecode3)) {
21715 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
21716 }
21717 arg3 = static_cast< int >(val3);
21718 }
21719 if (obj3) {
21720 ecode4 = SWIG_AsVal_int(obj3, &val4);
21721 if (!SWIG_IsOK(ecode4)) {
21722 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
21723 }
21724 arg4 = static_cast< int >(val4);
21725 }
21726 {
21727 PyThreadState* __tstate = wxPyBeginAllowThreads();
21728 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
21729 wxPyEndAllowThreads(__tstate);
21730 if (PyErr_Occurred()) SWIG_fail;
21731 }
21732 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
21733 return resultobj;
21734 fail:
21735 return NULL;
21736 }
21737
21738
21739 SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21740 PyObject *obj;
21741 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21742 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
21743 return SWIG_Py_Void();
21744 }
21745
21746 SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21747 return SWIG_Python_InitShadowInstance(args);
21748 }
21749
21750 SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21751 PyObject *resultobj = 0;
21752 wxWindow *arg1 = (wxWindow *) 0 ;
21753 int arg2 ;
21754 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21755 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21756 wxSize const &arg4_defvalue = wxDefaultSize ;
21757 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21758 long arg5 = (long) wxBK_DEFAULT ;
21759 wxString const &arg6_defvalue = wxPyEmptyString ;
21760 wxString *arg6 = (wxString *) &arg6_defvalue ;
21761 wxToolbook *result = 0 ;
21762 void *argp1 = 0 ;
21763 int res1 = 0 ;
21764 int val2 ;
21765 int ecode2 = 0 ;
21766 wxPoint temp3 ;
21767 wxSize temp4 ;
21768 long val5 ;
21769 int ecode5 = 0 ;
21770 bool temp6 = false ;
21771 PyObject * obj0 = 0 ;
21772 PyObject * obj1 = 0 ;
21773 PyObject * obj2 = 0 ;
21774 PyObject * obj3 = 0 ;
21775 PyObject * obj4 = 0 ;
21776 PyObject * obj5 = 0 ;
21777 char * kwnames[] = {
21778 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21779 };
21780
21781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21783 if (!SWIG_IsOK(res1)) {
21784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
21785 }
21786 arg1 = reinterpret_cast< wxWindow * >(argp1);
21787 ecode2 = SWIG_AsVal_int(obj1, &val2);
21788 if (!SWIG_IsOK(ecode2)) {
21789 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
21790 }
21791 arg2 = static_cast< int >(val2);
21792 if (obj2) {
21793 {
21794 arg3 = &temp3;
21795 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21796 }
21797 }
21798 if (obj3) {
21799 {
21800 arg4 = &temp4;
21801 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21802 }
21803 }
21804 if (obj4) {
21805 ecode5 = SWIG_AsVal_long(obj4, &val5);
21806 if (!SWIG_IsOK(ecode5)) {
21807 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
21808 }
21809 arg5 = static_cast< long >(val5);
21810 }
21811 if (obj5) {
21812 {
21813 arg6 = wxString_in_helper(obj5);
21814 if (arg6 == NULL) SWIG_fail;
21815 temp6 = true;
21816 }
21817 }
21818 {
21819 PyThreadState* __tstate = wxPyBeginAllowThreads();
21820 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21821 wxPyEndAllowThreads(__tstate);
21822 if (PyErr_Occurred()) SWIG_fail;
21823 }
21824 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
21825 {
21826 if (temp6)
21827 delete arg6;
21828 }
21829 return resultobj;
21830 fail:
21831 {
21832 if (temp6)
21833 delete arg6;
21834 }
21835 return NULL;
21836 }
21837
21838
21839 SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21840 PyObject *resultobj = 0;
21841 wxToolbook *result = 0 ;
21842
21843 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
21844 {
21845 PyThreadState* __tstate = wxPyBeginAllowThreads();
21846 result = (wxToolbook *)new wxToolbook();
21847 wxPyEndAllowThreads(__tstate);
21848 if (PyErr_Occurred()) SWIG_fail;
21849 }
21850 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
21851 return resultobj;
21852 fail:
21853 return NULL;
21854 }
21855
21856
21857 SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21858 PyObject *resultobj = 0;
21859 wxToolbook *arg1 = (wxToolbook *) 0 ;
21860 wxWindow *arg2 = (wxWindow *) 0 ;
21861 int arg3 ;
21862 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21863 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21864 wxSize const &arg5_defvalue = wxDefaultSize ;
21865 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21866 long arg6 = (long) 0 ;
21867 wxString const &arg7_defvalue = wxEmptyString ;
21868 wxString *arg7 = (wxString *) &arg7_defvalue ;
21869 bool result;
21870 void *argp1 = 0 ;
21871 int res1 = 0 ;
21872 void *argp2 = 0 ;
21873 int res2 = 0 ;
21874 int val3 ;
21875 int ecode3 = 0 ;
21876 wxPoint temp4 ;
21877 wxSize temp5 ;
21878 long val6 ;
21879 int ecode6 = 0 ;
21880 bool temp7 = false ;
21881 PyObject * obj0 = 0 ;
21882 PyObject * obj1 = 0 ;
21883 PyObject * obj2 = 0 ;
21884 PyObject * obj3 = 0 ;
21885 PyObject * obj4 = 0 ;
21886 PyObject * obj5 = 0 ;
21887 PyObject * obj6 = 0 ;
21888 char * kwnames[] = {
21889 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21890 };
21891
21892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
21894 if (!SWIG_IsOK(res1)) {
21895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
21896 }
21897 arg1 = reinterpret_cast< wxToolbook * >(argp1);
21898 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21899 if (!SWIG_IsOK(res2)) {
21900 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21901 }
21902 arg2 = reinterpret_cast< wxWindow * >(argp2);
21903 ecode3 = SWIG_AsVal_int(obj2, &val3);
21904 if (!SWIG_IsOK(ecode3)) {
21905 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
21906 }
21907 arg3 = static_cast< int >(val3);
21908 if (obj3) {
21909 {
21910 arg4 = &temp4;
21911 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21912 }
21913 }
21914 if (obj4) {
21915 {
21916 arg5 = &temp5;
21917 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21918 }
21919 }
21920 if (obj5) {
21921 ecode6 = SWIG_AsVal_long(obj5, &val6);
21922 if (!SWIG_IsOK(ecode6)) {
21923 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
21924 }
21925 arg6 = static_cast< long >(val6);
21926 }
21927 if (obj6) {
21928 {
21929 arg7 = wxString_in_helper(obj6);
21930 if (arg7 == NULL) SWIG_fail;
21931 temp7 = true;
21932 }
21933 }
21934 {
21935 PyThreadState* __tstate = wxPyBeginAllowThreads();
21936 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21937 wxPyEndAllowThreads(__tstate);
21938 if (PyErr_Occurred()) SWIG_fail;
21939 }
21940 {
21941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21942 }
21943 {
21944 if (temp7)
21945 delete arg7;
21946 }
21947 return resultobj;
21948 fail:
21949 {
21950 if (temp7)
21951 delete arg7;
21952 }
21953 return NULL;
21954 }
21955
21956
21957 SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21958 PyObject *resultobj = 0;
21959 wxToolbook *arg1 = (wxToolbook *) 0 ;
21960 wxToolBarBase *result = 0 ;
21961 void *argp1 = 0 ;
21962 int res1 = 0 ;
21963 PyObject *swig_obj[1] ;
21964
21965 if (!args) SWIG_fail;
21966 swig_obj[0] = args;
21967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
21968 if (!SWIG_IsOK(res1)) {
21969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
21970 }
21971 arg1 = reinterpret_cast< wxToolbook * >(argp1);
21972 {
21973 PyThreadState* __tstate = wxPyBeginAllowThreads();
21974 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
21975 wxPyEndAllowThreads(__tstate);
21976 if (PyErr_Occurred()) SWIG_fail;
21977 }
21978 {
21979 resultobj = wxPyMake_wxObject(result, (bool)0);
21980 }
21981 return resultobj;
21982 fail:
21983 return NULL;
21984 }
21985
21986
21987 SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21988 PyObject *resultobj = 0;
21989 wxToolbook *arg1 = (wxToolbook *) 0 ;
21990 void *argp1 = 0 ;
21991 int res1 = 0 ;
21992 PyObject *swig_obj[1] ;
21993
21994 if (!args) SWIG_fail;
21995 swig_obj[0] = args;
21996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
21997 if (!SWIG_IsOK(res1)) {
21998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
21999 }
22000 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22001 {
22002 PyThreadState* __tstate = wxPyBeginAllowThreads();
22003 (arg1)->Realize();
22004 wxPyEndAllowThreads(__tstate);
22005 if (PyErr_Occurred()) SWIG_fail;
22006 }
22007 resultobj = SWIG_Py_Void();
22008 return resultobj;
22009 fail:
22010 return NULL;
22011 }
22012
22013
22014 SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22015 PyObject *obj;
22016 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22017 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22018 return SWIG_Py_Void();
22019 }
22020
22021 SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22022 return SWIG_Python_InitShadowInstance(args);
22023 }
22024
22025 SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22026 PyObject *resultobj = 0;
22027 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22028 int arg2 = (int) 0 ;
22029 int arg3 = (int) wxNOT_FOUND ;
22030 int arg4 = (int) wxNOT_FOUND ;
22031 wxToolbookEvent *result = 0 ;
22032 int val1 ;
22033 int ecode1 = 0 ;
22034 int val2 ;
22035 int ecode2 = 0 ;
22036 int val3 ;
22037 int ecode3 = 0 ;
22038 int val4 ;
22039 int ecode4 = 0 ;
22040 PyObject * obj0 = 0 ;
22041 PyObject * obj1 = 0 ;
22042 PyObject * obj2 = 0 ;
22043 PyObject * obj3 = 0 ;
22044 char * kwnames[] = {
22045 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22046 };
22047
22048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22049 if (obj0) {
22050 ecode1 = SWIG_AsVal_int(obj0, &val1);
22051 if (!SWIG_IsOK(ecode1)) {
22052 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22053 }
22054 arg1 = static_cast< wxEventType >(val1);
22055 }
22056 if (obj1) {
22057 ecode2 = SWIG_AsVal_int(obj1, &val2);
22058 if (!SWIG_IsOK(ecode2)) {
22059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22060 }
22061 arg2 = static_cast< int >(val2);
22062 }
22063 if (obj2) {
22064 ecode3 = SWIG_AsVal_int(obj2, &val3);
22065 if (!SWIG_IsOK(ecode3)) {
22066 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22067 }
22068 arg3 = static_cast< int >(val3);
22069 }
22070 if (obj3) {
22071 ecode4 = SWIG_AsVal_int(obj3, &val4);
22072 if (!SWIG_IsOK(ecode4)) {
22073 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22074 }
22075 arg4 = static_cast< int >(val4);
22076 }
22077 {
22078 PyThreadState* __tstate = wxPyBeginAllowThreads();
22079 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22080 wxPyEndAllowThreads(__tstate);
22081 if (PyErr_Occurred()) SWIG_fail;
22082 }
22083 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22084 return resultobj;
22085 fail:
22086 return NULL;
22087 }
22088
22089
22090 SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22091 PyObject *obj;
22092 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22093 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22094 return SWIG_Py_Void();
22095 }
22096
22097 SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22098 return SWIG_Python_InitShadowInstance(args);
22099 }
22100
22101 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22102 PyObject *resultobj = 0;
22103 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22104 int result;
22105 void *argp1 = 0 ;
22106 int res1 = 0 ;
22107 PyObject *swig_obj[1] ;
22108
22109 if (!args) SWIG_fail;
22110 swig_obj[0] = args;
22111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22112 if (!SWIG_IsOK(res1)) {
22113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22114 }
22115 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22116 {
22117 PyThreadState* __tstate = wxPyBeginAllowThreads();
22118 result = (int)(arg1)->GetId();
22119 wxPyEndAllowThreads(__tstate);
22120 if (PyErr_Occurred()) SWIG_fail;
22121 }
22122 resultobj = SWIG_From_int(static_cast< int >(result));
22123 return resultobj;
22124 fail:
22125 return NULL;
22126 }
22127
22128
22129 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22130 PyObject *resultobj = 0;
22131 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22132 wxControl *result = 0 ;
22133 void *argp1 = 0 ;
22134 int res1 = 0 ;
22135 PyObject *swig_obj[1] ;
22136
22137 if (!args) SWIG_fail;
22138 swig_obj[0] = args;
22139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22140 if (!SWIG_IsOK(res1)) {
22141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22142 }
22143 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22144 {
22145 PyThreadState* __tstate = wxPyBeginAllowThreads();
22146 result = (wxControl *)(arg1)->GetControl();
22147 wxPyEndAllowThreads(__tstate);
22148 if (PyErr_Occurred()) SWIG_fail;
22149 }
22150 {
22151 resultobj = wxPyMake_wxObject(result, 0);
22152 }
22153 return resultobj;
22154 fail:
22155 return NULL;
22156 }
22157
22158
22159 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22160 PyObject *resultobj = 0;
22161 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22162 wxToolBarBase *result = 0 ;
22163 void *argp1 = 0 ;
22164 int res1 = 0 ;
22165 PyObject *swig_obj[1] ;
22166
22167 if (!args) SWIG_fail;
22168 swig_obj[0] = args;
22169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22170 if (!SWIG_IsOK(res1)) {
22171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22172 }
22173 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22174 {
22175 PyThreadState* __tstate = wxPyBeginAllowThreads();
22176 result = (wxToolBarBase *)(arg1)->GetToolBar();
22177 wxPyEndAllowThreads(__tstate);
22178 if (PyErr_Occurred()) SWIG_fail;
22179 }
22180 {
22181 resultobj = wxPyMake_wxObject(result, (bool)0);
22182 }
22183 return resultobj;
22184 fail:
22185 return NULL;
22186 }
22187
22188
22189 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22190 PyObject *resultobj = 0;
22191 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22192 int result;
22193 void *argp1 = 0 ;
22194 int res1 = 0 ;
22195 PyObject *swig_obj[1] ;
22196
22197 if (!args) SWIG_fail;
22198 swig_obj[0] = args;
22199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22200 if (!SWIG_IsOK(res1)) {
22201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22202 }
22203 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22204 {
22205 PyThreadState* __tstate = wxPyBeginAllowThreads();
22206 result = (int)(arg1)->IsButton();
22207 wxPyEndAllowThreads(__tstate);
22208 if (PyErr_Occurred()) SWIG_fail;
22209 }
22210 resultobj = SWIG_From_int(static_cast< int >(result));
22211 return resultobj;
22212 fail:
22213 return NULL;
22214 }
22215
22216
22217 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22218 PyObject *resultobj = 0;
22219 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22220 int result;
22221 void *argp1 = 0 ;
22222 int res1 = 0 ;
22223 PyObject *swig_obj[1] ;
22224
22225 if (!args) SWIG_fail;
22226 swig_obj[0] = args;
22227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22228 if (!SWIG_IsOK(res1)) {
22229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22230 }
22231 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22232 {
22233 PyThreadState* __tstate = wxPyBeginAllowThreads();
22234 result = (int)(arg1)->IsControl();
22235 wxPyEndAllowThreads(__tstate);
22236 if (PyErr_Occurred()) SWIG_fail;
22237 }
22238 resultobj = SWIG_From_int(static_cast< int >(result));
22239 return resultobj;
22240 fail:
22241 return NULL;
22242 }
22243
22244
22245 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22246 PyObject *resultobj = 0;
22247 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22248 int result;
22249 void *argp1 = 0 ;
22250 int res1 = 0 ;
22251 PyObject *swig_obj[1] ;
22252
22253 if (!args) SWIG_fail;
22254 swig_obj[0] = args;
22255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22256 if (!SWIG_IsOK(res1)) {
22257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22258 }
22259 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22260 {
22261 PyThreadState* __tstate = wxPyBeginAllowThreads();
22262 result = (int)(arg1)->IsSeparator();
22263 wxPyEndAllowThreads(__tstate);
22264 if (PyErr_Occurred()) SWIG_fail;
22265 }
22266 resultobj = SWIG_From_int(static_cast< int >(result));
22267 return resultobj;
22268 fail:
22269 return NULL;
22270 }
22271
22272
22273 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22274 PyObject *resultobj = 0;
22275 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22276 int result;
22277 void *argp1 = 0 ;
22278 int res1 = 0 ;
22279 PyObject *swig_obj[1] ;
22280
22281 if (!args) SWIG_fail;
22282 swig_obj[0] = args;
22283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22284 if (!SWIG_IsOK(res1)) {
22285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22286 }
22287 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22288 {
22289 PyThreadState* __tstate = wxPyBeginAllowThreads();
22290 result = (int)(arg1)->GetStyle();
22291 wxPyEndAllowThreads(__tstate);
22292 if (PyErr_Occurred()) SWIG_fail;
22293 }
22294 resultobj = SWIG_From_int(static_cast< int >(result));
22295 return resultobj;
22296 fail:
22297 return NULL;
22298 }
22299
22300
22301 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22302 PyObject *resultobj = 0;
22303 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22304 wxItemKind result;
22305 void *argp1 = 0 ;
22306 int res1 = 0 ;
22307 PyObject *swig_obj[1] ;
22308
22309 if (!args) SWIG_fail;
22310 swig_obj[0] = args;
22311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22312 if (!SWIG_IsOK(res1)) {
22313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22314 }
22315 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22316 {
22317 PyThreadState* __tstate = wxPyBeginAllowThreads();
22318 result = (wxItemKind)(arg1)->GetKind();
22319 wxPyEndAllowThreads(__tstate);
22320 if (PyErr_Occurred()) SWIG_fail;
22321 }
22322 resultobj = SWIG_From_int(static_cast< int >(result));
22323 return resultobj;
22324 fail:
22325 return NULL;
22326 }
22327
22328
22329 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22330 PyObject *resultobj = 0;
22331 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22332 bool result;
22333 void *argp1 = 0 ;
22334 int res1 = 0 ;
22335 PyObject *swig_obj[1] ;
22336
22337 if (!args) SWIG_fail;
22338 swig_obj[0] = args;
22339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22340 if (!SWIG_IsOK(res1)) {
22341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22342 }
22343 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22344 {
22345 PyThreadState* __tstate = wxPyBeginAllowThreads();
22346 result = (bool)(arg1)->IsEnabled();
22347 wxPyEndAllowThreads(__tstate);
22348 if (PyErr_Occurred()) SWIG_fail;
22349 }
22350 {
22351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22352 }
22353 return resultobj;
22354 fail:
22355 return NULL;
22356 }
22357
22358
22359 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22360 PyObject *resultobj = 0;
22361 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22362 bool result;
22363 void *argp1 = 0 ;
22364 int res1 = 0 ;
22365 PyObject *swig_obj[1] ;
22366
22367 if (!args) SWIG_fail;
22368 swig_obj[0] = args;
22369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22370 if (!SWIG_IsOK(res1)) {
22371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22372 }
22373 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22374 {
22375 PyThreadState* __tstate = wxPyBeginAllowThreads();
22376 result = (bool)(arg1)->IsToggled();
22377 wxPyEndAllowThreads(__tstate);
22378 if (PyErr_Occurred()) SWIG_fail;
22379 }
22380 {
22381 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22382 }
22383 return resultobj;
22384 fail:
22385 return NULL;
22386 }
22387
22388
22389 SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22390 PyObject *resultobj = 0;
22391 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22392 bool result;
22393 void *argp1 = 0 ;
22394 int res1 = 0 ;
22395 PyObject *swig_obj[1] ;
22396
22397 if (!args) SWIG_fail;
22398 swig_obj[0] = args;
22399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22400 if (!SWIG_IsOK(res1)) {
22401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22402 }
22403 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22404 {
22405 PyThreadState* __tstate = wxPyBeginAllowThreads();
22406 result = (bool)(arg1)->CanBeToggled();
22407 wxPyEndAllowThreads(__tstate);
22408 if (PyErr_Occurred()) SWIG_fail;
22409 }
22410 {
22411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22412 }
22413 return resultobj;
22414 fail:
22415 return NULL;
22416 }
22417
22418
22419 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22420 PyObject *resultobj = 0;
22421 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22422 wxBitmap *result = 0 ;
22423 void *argp1 = 0 ;
22424 int res1 = 0 ;
22425 PyObject *swig_obj[1] ;
22426
22427 if (!args) SWIG_fail;
22428 swig_obj[0] = args;
22429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22430 if (!SWIG_IsOK(res1)) {
22431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22432 }
22433 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22434 {
22435 PyThreadState* __tstate = wxPyBeginAllowThreads();
22436 {
22437 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
22438 result = (wxBitmap *) &_result_ref;
22439 }
22440 wxPyEndAllowThreads(__tstate);
22441 if (PyErr_Occurred()) SWIG_fail;
22442 }
22443 {
22444 wxBitmap* resultptr = new wxBitmap(*result);
22445 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22446 }
22447 return resultobj;
22448 fail:
22449 return NULL;
22450 }
22451
22452
22453 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22454 PyObject *resultobj = 0;
22455 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22456 wxBitmap *result = 0 ;
22457 void *argp1 = 0 ;
22458 int res1 = 0 ;
22459 PyObject *swig_obj[1] ;
22460
22461 if (!args) SWIG_fail;
22462 swig_obj[0] = args;
22463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22464 if (!SWIG_IsOK(res1)) {
22465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22466 }
22467 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22468 {
22469 PyThreadState* __tstate = wxPyBeginAllowThreads();
22470 {
22471 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
22472 result = (wxBitmap *) &_result_ref;
22473 }
22474 wxPyEndAllowThreads(__tstate);
22475 if (PyErr_Occurred()) SWIG_fail;
22476 }
22477 {
22478 wxBitmap* resultptr = new wxBitmap(*result);
22479 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22480 }
22481 return resultobj;
22482 fail:
22483 return NULL;
22484 }
22485
22486
22487 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22488 PyObject *resultobj = 0;
22489 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22490 wxBitmap result;
22491 void *argp1 = 0 ;
22492 int res1 = 0 ;
22493 PyObject *swig_obj[1] ;
22494
22495 if (!args) SWIG_fail;
22496 swig_obj[0] = args;
22497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22498 if (!SWIG_IsOK(res1)) {
22499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22500 }
22501 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22502 {
22503 PyThreadState* __tstate = wxPyBeginAllowThreads();
22504 result = (arg1)->GetBitmap();
22505 wxPyEndAllowThreads(__tstate);
22506 if (PyErr_Occurred()) SWIG_fail;
22507 }
22508 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
22509 return resultobj;
22510 fail:
22511 return NULL;
22512 }
22513
22514
22515 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22516 PyObject *resultobj = 0;
22517 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22518 wxString result;
22519 void *argp1 = 0 ;
22520 int res1 = 0 ;
22521 PyObject *swig_obj[1] ;
22522
22523 if (!args) SWIG_fail;
22524 swig_obj[0] = args;
22525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22526 if (!SWIG_IsOK(res1)) {
22527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22528 }
22529 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22530 {
22531 PyThreadState* __tstate = wxPyBeginAllowThreads();
22532 result = (arg1)->GetLabel();
22533 wxPyEndAllowThreads(__tstate);
22534 if (PyErr_Occurred()) SWIG_fail;
22535 }
22536 {
22537 #if wxUSE_UNICODE
22538 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22539 #else
22540 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22541 #endif
22542 }
22543 return resultobj;
22544 fail:
22545 return NULL;
22546 }
22547
22548
22549 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22550 PyObject *resultobj = 0;
22551 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22552 wxString result;
22553 void *argp1 = 0 ;
22554 int res1 = 0 ;
22555 PyObject *swig_obj[1] ;
22556
22557 if (!args) SWIG_fail;
22558 swig_obj[0] = args;
22559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22560 if (!SWIG_IsOK(res1)) {
22561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22562 }
22563 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22564 {
22565 PyThreadState* __tstate = wxPyBeginAllowThreads();
22566 result = (arg1)->GetShortHelp();
22567 wxPyEndAllowThreads(__tstate);
22568 if (PyErr_Occurred()) SWIG_fail;
22569 }
22570 {
22571 #if wxUSE_UNICODE
22572 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22573 #else
22574 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22575 #endif
22576 }
22577 return resultobj;
22578 fail:
22579 return NULL;
22580 }
22581
22582
22583 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22584 PyObject *resultobj = 0;
22585 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22586 wxString result;
22587 void *argp1 = 0 ;
22588 int res1 = 0 ;
22589 PyObject *swig_obj[1] ;
22590
22591 if (!args) SWIG_fail;
22592 swig_obj[0] = args;
22593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22594 if (!SWIG_IsOK(res1)) {
22595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22596 }
22597 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22598 {
22599 PyThreadState* __tstate = wxPyBeginAllowThreads();
22600 result = (arg1)->GetLongHelp();
22601 wxPyEndAllowThreads(__tstate);
22602 if (PyErr_Occurred()) SWIG_fail;
22603 }
22604 {
22605 #if wxUSE_UNICODE
22606 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22607 #else
22608 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22609 #endif
22610 }
22611 return resultobj;
22612 fail:
22613 return NULL;
22614 }
22615
22616
22617 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22618 PyObject *resultobj = 0;
22619 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22620 bool arg2 ;
22621 bool result;
22622 void *argp1 = 0 ;
22623 int res1 = 0 ;
22624 bool val2 ;
22625 int ecode2 = 0 ;
22626 PyObject * obj0 = 0 ;
22627 PyObject * obj1 = 0 ;
22628 char * kwnames[] = {
22629 (char *) "self",(char *) "enable", NULL
22630 };
22631
22632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
22633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22634 if (!SWIG_IsOK(res1)) {
22635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22636 }
22637 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22638 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22639 if (!SWIG_IsOK(ecode2)) {
22640 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
22641 }
22642 arg2 = static_cast< bool >(val2);
22643 {
22644 PyThreadState* __tstate = wxPyBeginAllowThreads();
22645 result = (bool)(arg1)->Enable(arg2);
22646 wxPyEndAllowThreads(__tstate);
22647 if (PyErr_Occurred()) SWIG_fail;
22648 }
22649 {
22650 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22651 }
22652 return resultobj;
22653 fail:
22654 return NULL;
22655 }
22656
22657
22658 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22659 PyObject *resultobj = 0;
22660 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22661 void *argp1 = 0 ;
22662 int res1 = 0 ;
22663 PyObject *swig_obj[1] ;
22664
22665 if (!args) SWIG_fail;
22666 swig_obj[0] = args;
22667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22668 if (!SWIG_IsOK(res1)) {
22669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22670 }
22671 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22672 {
22673 PyThreadState* __tstate = wxPyBeginAllowThreads();
22674 (arg1)->Toggle();
22675 wxPyEndAllowThreads(__tstate);
22676 if (PyErr_Occurred()) SWIG_fail;
22677 }
22678 resultobj = SWIG_Py_Void();
22679 return resultobj;
22680 fail:
22681 return NULL;
22682 }
22683
22684
22685 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22686 PyObject *resultobj = 0;
22687 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22688 bool arg2 ;
22689 bool result;
22690 void *argp1 = 0 ;
22691 int res1 = 0 ;
22692 bool val2 ;
22693 int ecode2 = 0 ;
22694 PyObject * obj0 = 0 ;
22695 PyObject * obj1 = 0 ;
22696 char * kwnames[] = {
22697 (char *) "self",(char *) "toggle", NULL
22698 };
22699
22700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
22701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22702 if (!SWIG_IsOK(res1)) {
22703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22704 }
22705 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22706 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22707 if (!SWIG_IsOK(ecode2)) {
22708 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
22709 }
22710 arg2 = static_cast< bool >(val2);
22711 {
22712 PyThreadState* __tstate = wxPyBeginAllowThreads();
22713 result = (bool)(arg1)->SetToggle(arg2);
22714 wxPyEndAllowThreads(__tstate);
22715 if (PyErr_Occurred()) SWIG_fail;
22716 }
22717 {
22718 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22719 }
22720 return resultobj;
22721 fail:
22722 return NULL;
22723 }
22724
22725
22726 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22727 PyObject *resultobj = 0;
22728 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22729 wxString *arg2 = 0 ;
22730 bool result;
22731 void *argp1 = 0 ;
22732 int res1 = 0 ;
22733 bool temp2 = false ;
22734 PyObject * obj0 = 0 ;
22735 PyObject * obj1 = 0 ;
22736 char * kwnames[] = {
22737 (char *) "self",(char *) "help", NULL
22738 };
22739
22740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
22741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22742 if (!SWIG_IsOK(res1)) {
22743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22744 }
22745 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22746 {
22747 arg2 = wxString_in_helper(obj1);
22748 if (arg2 == NULL) SWIG_fail;
22749 temp2 = true;
22750 }
22751 {
22752 PyThreadState* __tstate = wxPyBeginAllowThreads();
22753 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
22754 wxPyEndAllowThreads(__tstate);
22755 if (PyErr_Occurred()) SWIG_fail;
22756 }
22757 {
22758 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22759 }
22760 {
22761 if (temp2)
22762 delete arg2;
22763 }
22764 return resultobj;
22765 fail:
22766 {
22767 if (temp2)
22768 delete arg2;
22769 }
22770 return NULL;
22771 }
22772
22773
22774 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22775 PyObject *resultobj = 0;
22776 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22777 wxString *arg2 = 0 ;
22778 bool result;
22779 void *argp1 = 0 ;
22780 int res1 = 0 ;
22781 bool temp2 = false ;
22782 PyObject * obj0 = 0 ;
22783 PyObject * obj1 = 0 ;
22784 char * kwnames[] = {
22785 (char *) "self",(char *) "help", NULL
22786 };
22787
22788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
22789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22790 if (!SWIG_IsOK(res1)) {
22791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22792 }
22793 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22794 {
22795 arg2 = wxString_in_helper(obj1);
22796 if (arg2 == NULL) SWIG_fail;
22797 temp2 = true;
22798 }
22799 {
22800 PyThreadState* __tstate = wxPyBeginAllowThreads();
22801 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
22802 wxPyEndAllowThreads(__tstate);
22803 if (PyErr_Occurred()) SWIG_fail;
22804 }
22805 {
22806 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22807 }
22808 {
22809 if (temp2)
22810 delete arg2;
22811 }
22812 return resultobj;
22813 fail:
22814 {
22815 if (temp2)
22816 delete arg2;
22817 }
22818 return NULL;
22819 }
22820
22821
22822 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22823 PyObject *resultobj = 0;
22824 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22825 wxBitmap *arg2 = 0 ;
22826 void *argp1 = 0 ;
22827 int res1 = 0 ;
22828 void *argp2 = 0 ;
22829 int res2 = 0 ;
22830 PyObject * obj0 = 0 ;
22831 PyObject * obj1 = 0 ;
22832 char * kwnames[] = {
22833 (char *) "self",(char *) "bmp", NULL
22834 };
22835
22836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
22837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22838 if (!SWIG_IsOK(res1)) {
22839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22840 }
22841 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22842 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22843 if (!SWIG_IsOK(res2)) {
22844 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22845 }
22846 if (!argp2) {
22847 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22848 }
22849 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22850 {
22851 PyThreadState* __tstate = wxPyBeginAllowThreads();
22852 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
22853 wxPyEndAllowThreads(__tstate);
22854 if (PyErr_Occurred()) SWIG_fail;
22855 }
22856 resultobj = SWIG_Py_Void();
22857 return resultobj;
22858 fail:
22859 return NULL;
22860 }
22861
22862
22863 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22864 PyObject *resultobj = 0;
22865 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22866 wxBitmap *arg2 = 0 ;
22867 void *argp1 = 0 ;
22868 int res1 = 0 ;
22869 void *argp2 = 0 ;
22870 int res2 = 0 ;
22871 PyObject * obj0 = 0 ;
22872 PyObject * obj1 = 0 ;
22873 char * kwnames[] = {
22874 (char *) "self",(char *) "bmp", NULL
22875 };
22876
22877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
22878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22879 if (!SWIG_IsOK(res1)) {
22880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22881 }
22882 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22883 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22884 if (!SWIG_IsOK(res2)) {
22885 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22886 }
22887 if (!argp2) {
22888 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22889 }
22890 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22891 {
22892 PyThreadState* __tstate = wxPyBeginAllowThreads();
22893 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
22894 wxPyEndAllowThreads(__tstate);
22895 if (PyErr_Occurred()) SWIG_fail;
22896 }
22897 resultobj = SWIG_Py_Void();
22898 return resultobj;
22899 fail:
22900 return NULL;
22901 }
22902
22903
22904 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22905 PyObject *resultobj = 0;
22906 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22907 wxString *arg2 = 0 ;
22908 void *argp1 = 0 ;
22909 int res1 = 0 ;
22910 bool temp2 = false ;
22911 PyObject * obj0 = 0 ;
22912 PyObject * obj1 = 0 ;
22913 char * kwnames[] = {
22914 (char *) "self",(char *) "label", NULL
22915 };
22916
22917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
22918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22919 if (!SWIG_IsOK(res1)) {
22920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22921 }
22922 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22923 {
22924 arg2 = wxString_in_helper(obj1);
22925 if (arg2 == NULL) SWIG_fail;
22926 temp2 = true;
22927 }
22928 {
22929 PyThreadState* __tstate = wxPyBeginAllowThreads();
22930 (arg1)->SetLabel((wxString const &)*arg2);
22931 wxPyEndAllowThreads(__tstate);
22932 if (PyErr_Occurred()) SWIG_fail;
22933 }
22934 resultobj = SWIG_Py_Void();
22935 {
22936 if (temp2)
22937 delete arg2;
22938 }
22939 return resultobj;
22940 fail:
22941 {
22942 if (temp2)
22943 delete arg2;
22944 }
22945 return NULL;
22946 }
22947
22948
22949 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22950 PyObject *resultobj = 0;
22951 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22952 void *argp1 = 0 ;
22953 int res1 = 0 ;
22954 PyObject *swig_obj[1] ;
22955
22956 if (!args) SWIG_fail;
22957 swig_obj[0] = args;
22958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22959 if (!SWIG_IsOK(res1)) {
22960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22961 }
22962 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22963 {
22964 PyThreadState* __tstate = wxPyBeginAllowThreads();
22965 (arg1)->Detach();
22966 wxPyEndAllowThreads(__tstate);
22967 if (PyErr_Occurred()) SWIG_fail;
22968 }
22969 resultobj = SWIG_Py_Void();
22970 return resultobj;
22971 fail:
22972 return NULL;
22973 }
22974
22975
22976 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22977 PyObject *resultobj = 0;
22978 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22979 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
22980 void *argp1 = 0 ;
22981 int res1 = 0 ;
22982 void *argp2 = 0 ;
22983 int res2 = 0 ;
22984 PyObject * obj0 = 0 ;
22985 PyObject * obj1 = 0 ;
22986 char * kwnames[] = {
22987 (char *) "self",(char *) "tbar", NULL
22988 };
22989
22990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
22991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22992 if (!SWIG_IsOK(res1)) {
22993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22994 }
22995 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22996 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
22997 if (!SWIG_IsOK(res2)) {
22998 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
22999 }
23000 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23001 {
23002 PyThreadState* __tstate = wxPyBeginAllowThreads();
23003 (arg1)->Attach(arg2);
23004 wxPyEndAllowThreads(__tstate);
23005 if (PyErr_Occurred()) SWIG_fail;
23006 }
23007 resultobj = SWIG_Py_Void();
23008 return resultobj;
23009 fail:
23010 return NULL;
23011 }
23012
23013
23014 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23015 PyObject *resultobj = 0;
23016 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23017 PyObject *result = 0 ;
23018 void *argp1 = 0 ;
23019 int res1 = 0 ;
23020 PyObject *swig_obj[1] ;
23021
23022 if (!args) SWIG_fail;
23023 swig_obj[0] = args;
23024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23025 if (!SWIG_IsOK(res1)) {
23026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23027 }
23028 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23029 {
23030 PyThreadState* __tstate = wxPyBeginAllowThreads();
23031 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23032 wxPyEndAllowThreads(__tstate);
23033 if (PyErr_Occurred()) SWIG_fail;
23034 }
23035 resultobj = result;
23036 return resultobj;
23037 fail:
23038 return NULL;
23039 }
23040
23041
23042 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23043 PyObject *resultobj = 0;
23044 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23045 PyObject *arg2 = (PyObject *) 0 ;
23046 void *argp1 = 0 ;
23047 int res1 = 0 ;
23048 PyObject * obj0 = 0 ;
23049 PyObject * obj1 = 0 ;
23050 char * kwnames[] = {
23051 (char *) "self",(char *) "clientData", NULL
23052 };
23053
23054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23056 if (!SWIG_IsOK(res1)) {
23057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23058 }
23059 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23060 arg2 = obj1;
23061 {
23062 PyThreadState* __tstate = wxPyBeginAllowThreads();
23063 wxToolBarToolBase_SetClientData(arg1,arg2);
23064 wxPyEndAllowThreads(__tstate);
23065 if (PyErr_Occurred()) SWIG_fail;
23066 }
23067 resultobj = SWIG_Py_Void();
23068 return resultobj;
23069 fail:
23070 return NULL;
23071 }
23072
23073
23074 SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23075 PyObject *obj;
23076 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23077 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23078 return SWIG_Py_Void();
23079 }
23080
23081 SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23082 PyObject *resultobj = 0;
23083 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23084 int arg2 ;
23085 wxString *arg3 = 0 ;
23086 wxBitmap *arg4 = 0 ;
23087 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23088 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23089 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23090 wxString const &arg7_defvalue = wxPyEmptyString ;
23091 wxString *arg7 = (wxString *) &arg7_defvalue ;
23092 wxString const &arg8_defvalue = wxPyEmptyString ;
23093 wxString *arg8 = (wxString *) &arg8_defvalue ;
23094 PyObject *arg9 = (PyObject *) NULL ;
23095 wxToolBarToolBase *result = 0 ;
23096 void *argp1 = 0 ;
23097 int res1 = 0 ;
23098 int val2 ;
23099 int ecode2 = 0 ;
23100 bool temp3 = false ;
23101 void *argp4 = 0 ;
23102 int res4 = 0 ;
23103 void *argp5 = 0 ;
23104 int res5 = 0 ;
23105 int val6 ;
23106 int ecode6 = 0 ;
23107 bool temp7 = false ;
23108 bool temp8 = false ;
23109 PyObject * obj0 = 0 ;
23110 PyObject * obj1 = 0 ;
23111 PyObject * obj2 = 0 ;
23112 PyObject * obj3 = 0 ;
23113 PyObject * obj4 = 0 ;
23114 PyObject * obj5 = 0 ;
23115 PyObject * obj6 = 0 ;
23116 PyObject * obj7 = 0 ;
23117 PyObject * obj8 = 0 ;
23118 char * kwnames[] = {
23119 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23120 };
23121
23122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23124 if (!SWIG_IsOK(res1)) {
23125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23126 }
23127 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23128 ecode2 = SWIG_AsVal_int(obj1, &val2);
23129 if (!SWIG_IsOK(ecode2)) {
23130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23131 }
23132 arg2 = static_cast< int >(val2);
23133 {
23134 arg3 = wxString_in_helper(obj2);
23135 if (arg3 == NULL) SWIG_fail;
23136 temp3 = true;
23137 }
23138 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23139 if (!SWIG_IsOK(res4)) {
23140 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23141 }
23142 if (!argp4) {
23143 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23144 }
23145 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23146 if (obj4) {
23147 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23148 if (!SWIG_IsOK(res5)) {
23149 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23150 }
23151 if (!argp5) {
23152 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23153 }
23154 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23155 }
23156 if (obj5) {
23157 ecode6 = SWIG_AsVal_int(obj5, &val6);
23158 if (!SWIG_IsOK(ecode6)) {
23159 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23160 }
23161 arg6 = static_cast< wxItemKind >(val6);
23162 }
23163 if (obj6) {
23164 {
23165 arg7 = wxString_in_helper(obj6);
23166 if (arg7 == NULL) SWIG_fail;
23167 temp7 = true;
23168 }
23169 }
23170 if (obj7) {
23171 {
23172 arg8 = wxString_in_helper(obj7);
23173 if (arg8 == NULL) SWIG_fail;
23174 temp8 = true;
23175 }
23176 }
23177 if (obj8) {
23178 arg9 = obj8;
23179 }
23180 {
23181 PyThreadState* __tstate = wxPyBeginAllowThreads();
23182 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23183 wxPyEndAllowThreads(__tstate);
23184 if (PyErr_Occurred()) SWIG_fail;
23185 }
23186 {
23187 resultobj = wxPyMake_wxObject(result, (bool)0);
23188 }
23189 {
23190 if (temp3)
23191 delete arg3;
23192 }
23193 {
23194 if (temp7)
23195 delete arg7;
23196 }
23197 {
23198 if (temp8)
23199 delete arg8;
23200 }
23201 return resultobj;
23202 fail:
23203 {
23204 if (temp3)
23205 delete arg3;
23206 }
23207 {
23208 if (temp7)
23209 delete arg7;
23210 }
23211 {
23212 if (temp8)
23213 delete arg8;
23214 }
23215 return NULL;
23216 }
23217
23218
23219 SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23220 PyObject *resultobj = 0;
23221 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23222 size_t arg2 ;
23223 int arg3 ;
23224 wxString *arg4 = 0 ;
23225 wxBitmap *arg5 = 0 ;
23226 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23227 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23228 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23229 wxString const &arg8_defvalue = wxPyEmptyString ;
23230 wxString *arg8 = (wxString *) &arg8_defvalue ;
23231 wxString const &arg9_defvalue = wxPyEmptyString ;
23232 wxString *arg9 = (wxString *) &arg9_defvalue ;
23233 PyObject *arg10 = (PyObject *) NULL ;
23234 wxToolBarToolBase *result = 0 ;
23235 void *argp1 = 0 ;
23236 int res1 = 0 ;
23237 size_t val2 ;
23238 int ecode2 = 0 ;
23239 int val3 ;
23240 int ecode3 = 0 ;
23241 bool temp4 = false ;
23242 void *argp5 = 0 ;
23243 int res5 = 0 ;
23244 void *argp6 = 0 ;
23245 int res6 = 0 ;
23246 int val7 ;
23247 int ecode7 = 0 ;
23248 bool temp8 = false ;
23249 bool temp9 = false ;
23250 PyObject * obj0 = 0 ;
23251 PyObject * obj1 = 0 ;
23252 PyObject * obj2 = 0 ;
23253 PyObject * obj3 = 0 ;
23254 PyObject * obj4 = 0 ;
23255 PyObject * obj5 = 0 ;
23256 PyObject * obj6 = 0 ;
23257 PyObject * obj7 = 0 ;
23258 PyObject * obj8 = 0 ;
23259 PyObject * obj9 = 0 ;
23260 char * kwnames[] = {
23261 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23262 };
23263
23264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23266 if (!SWIG_IsOK(res1)) {
23267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23268 }
23269 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23270 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23271 if (!SWIG_IsOK(ecode2)) {
23272 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23273 }
23274 arg2 = static_cast< size_t >(val2);
23275 ecode3 = SWIG_AsVal_int(obj2, &val3);
23276 if (!SWIG_IsOK(ecode3)) {
23277 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23278 }
23279 arg3 = static_cast< int >(val3);
23280 {
23281 arg4 = wxString_in_helper(obj3);
23282 if (arg4 == NULL) SWIG_fail;
23283 temp4 = true;
23284 }
23285 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23286 if (!SWIG_IsOK(res5)) {
23287 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23288 }
23289 if (!argp5) {
23290 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23291 }
23292 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23293 if (obj5) {
23294 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23295 if (!SWIG_IsOK(res6)) {
23296 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23297 }
23298 if (!argp6) {
23299 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23300 }
23301 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23302 }
23303 if (obj6) {
23304 ecode7 = SWIG_AsVal_int(obj6, &val7);
23305 if (!SWIG_IsOK(ecode7)) {
23306 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23307 }
23308 arg7 = static_cast< wxItemKind >(val7);
23309 }
23310 if (obj7) {
23311 {
23312 arg8 = wxString_in_helper(obj7);
23313 if (arg8 == NULL) SWIG_fail;
23314 temp8 = true;
23315 }
23316 }
23317 if (obj8) {
23318 {
23319 arg9 = wxString_in_helper(obj8);
23320 if (arg9 == NULL) SWIG_fail;
23321 temp9 = true;
23322 }
23323 }
23324 if (obj9) {
23325 arg10 = obj9;
23326 }
23327 {
23328 PyThreadState* __tstate = wxPyBeginAllowThreads();
23329 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
23330 wxPyEndAllowThreads(__tstate);
23331 if (PyErr_Occurred()) SWIG_fail;
23332 }
23333 {
23334 resultobj = wxPyMake_wxObject(result, (bool)0);
23335 }
23336 {
23337 if (temp4)
23338 delete arg4;
23339 }
23340 {
23341 if (temp8)
23342 delete arg8;
23343 }
23344 {
23345 if (temp9)
23346 delete arg9;
23347 }
23348 return resultobj;
23349 fail:
23350 {
23351 if (temp4)
23352 delete arg4;
23353 }
23354 {
23355 if (temp8)
23356 delete arg8;
23357 }
23358 {
23359 if (temp9)
23360 delete arg9;
23361 }
23362 return NULL;
23363 }
23364
23365
23366 SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23367 PyObject *resultobj = 0;
23368 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23369 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
23370 wxToolBarToolBase *result = 0 ;
23371 void *argp1 = 0 ;
23372 int res1 = 0 ;
23373 void *argp2 = 0 ;
23374 int res2 = 0 ;
23375 PyObject * obj0 = 0 ;
23376 PyObject * obj1 = 0 ;
23377 char * kwnames[] = {
23378 (char *) "self",(char *) "tool", NULL
23379 };
23380
23381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
23382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23383 if (!SWIG_IsOK(res1)) {
23384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23385 }
23386 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23387 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23388 if (!SWIG_IsOK(res2)) {
23389 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
23390 }
23391 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
23392 {
23393 PyThreadState* __tstate = wxPyBeginAllowThreads();
23394 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
23395 wxPyEndAllowThreads(__tstate);
23396 if (PyErr_Occurred()) SWIG_fail;
23397 }
23398 {
23399 resultobj = wxPyMake_wxObject(result, (bool)0);
23400 }
23401 return resultobj;
23402 fail:
23403 return NULL;
23404 }
23405
23406
23407 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23408 PyObject *resultobj = 0;
23409 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23410 size_t arg2 ;
23411 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
23412 wxToolBarToolBase *result = 0 ;
23413 void *argp1 = 0 ;
23414 int res1 = 0 ;
23415 size_t val2 ;
23416 int ecode2 = 0 ;
23417 void *argp3 = 0 ;
23418 int res3 = 0 ;
23419 PyObject * obj0 = 0 ;
23420 PyObject * obj1 = 0 ;
23421 PyObject * obj2 = 0 ;
23422 char * kwnames[] = {
23423 (char *) "self",(char *) "pos",(char *) "tool", NULL
23424 };
23425
23426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23428 if (!SWIG_IsOK(res1)) {
23429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23430 }
23431 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23432 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23433 if (!SWIG_IsOK(ecode2)) {
23434 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
23435 }
23436 arg2 = static_cast< size_t >(val2);
23437 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23438 if (!SWIG_IsOK(res3)) {
23439 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
23440 }
23441 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
23442 {
23443 PyThreadState* __tstate = wxPyBeginAllowThreads();
23444 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
23445 wxPyEndAllowThreads(__tstate);
23446 if (PyErr_Occurred()) SWIG_fail;
23447 }
23448 {
23449 resultobj = wxPyMake_wxObject(result, (bool)0);
23450 }
23451 return resultobj;
23452 fail:
23453 return NULL;
23454 }
23455
23456
23457 SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23458 PyObject *resultobj = 0;
23459 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23460 wxControl *arg2 = (wxControl *) 0 ;
23461 wxToolBarToolBase *result = 0 ;
23462 void *argp1 = 0 ;
23463 int res1 = 0 ;
23464 void *argp2 = 0 ;
23465 int res2 = 0 ;
23466 PyObject * obj0 = 0 ;
23467 PyObject * obj1 = 0 ;
23468 char * kwnames[] = {
23469 (char *) "self",(char *) "control", NULL
23470 };
23471
23472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
23473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23474 if (!SWIG_IsOK(res1)) {
23475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23476 }
23477 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23478 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
23479 if (!SWIG_IsOK(res2)) {
23480 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
23481 }
23482 arg2 = reinterpret_cast< wxControl * >(argp2);
23483 {
23484 PyThreadState* __tstate = wxPyBeginAllowThreads();
23485 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
23486 wxPyEndAllowThreads(__tstate);
23487 if (PyErr_Occurred()) SWIG_fail;
23488 }
23489 {
23490 resultobj = wxPyMake_wxObject(result, (bool)0);
23491 }
23492 return resultobj;
23493 fail:
23494 return NULL;
23495 }
23496
23497
23498 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23499 PyObject *resultobj = 0;
23500 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23501 size_t arg2 ;
23502 wxControl *arg3 = (wxControl *) 0 ;
23503 wxToolBarToolBase *result = 0 ;
23504 void *argp1 = 0 ;
23505 int res1 = 0 ;
23506 size_t val2 ;
23507 int ecode2 = 0 ;
23508 void *argp3 = 0 ;
23509 int res3 = 0 ;
23510 PyObject * obj0 = 0 ;
23511 PyObject * obj1 = 0 ;
23512 PyObject * obj2 = 0 ;
23513 char * kwnames[] = {
23514 (char *) "self",(char *) "pos",(char *) "control", NULL
23515 };
23516
23517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23519 if (!SWIG_IsOK(res1)) {
23520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23521 }
23522 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23523 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23524 if (!SWIG_IsOK(ecode2)) {
23525 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
23526 }
23527 arg2 = static_cast< size_t >(val2);
23528 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
23529 if (!SWIG_IsOK(res3)) {
23530 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
23531 }
23532 arg3 = reinterpret_cast< wxControl * >(argp3);
23533 {
23534 PyThreadState* __tstate = wxPyBeginAllowThreads();
23535 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
23536 wxPyEndAllowThreads(__tstate);
23537 if (PyErr_Occurred()) SWIG_fail;
23538 }
23539 {
23540 resultobj = wxPyMake_wxObject(result, (bool)0);
23541 }
23542 return resultobj;
23543 fail:
23544 return NULL;
23545 }
23546
23547
23548 SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23549 PyObject *resultobj = 0;
23550 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23551 int arg2 ;
23552 wxControl *result = 0 ;
23553 void *argp1 = 0 ;
23554 int res1 = 0 ;
23555 int val2 ;
23556 int ecode2 = 0 ;
23557 PyObject * obj0 = 0 ;
23558 PyObject * obj1 = 0 ;
23559 char * kwnames[] = {
23560 (char *) "self",(char *) "id", NULL
23561 };
23562
23563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
23564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23565 if (!SWIG_IsOK(res1)) {
23566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23567 }
23568 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23569 ecode2 = SWIG_AsVal_int(obj1, &val2);
23570 if (!SWIG_IsOK(ecode2)) {
23571 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
23572 }
23573 arg2 = static_cast< int >(val2);
23574 {
23575 PyThreadState* __tstate = wxPyBeginAllowThreads();
23576 result = (wxControl *)(arg1)->FindControl(arg2);
23577 wxPyEndAllowThreads(__tstate);
23578 if (PyErr_Occurred()) SWIG_fail;
23579 }
23580 {
23581 resultobj = wxPyMake_wxObject(result, 0);
23582 }
23583 return resultobj;
23584 fail:
23585 return NULL;
23586 }
23587
23588
23589 SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23590 PyObject *resultobj = 0;
23591 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23592 wxToolBarToolBase *result = 0 ;
23593 void *argp1 = 0 ;
23594 int res1 = 0 ;
23595 PyObject *swig_obj[1] ;
23596
23597 if (!args) SWIG_fail;
23598 swig_obj[0] = args;
23599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23600 if (!SWIG_IsOK(res1)) {
23601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23602 }
23603 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23604 {
23605 PyThreadState* __tstate = wxPyBeginAllowThreads();
23606 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
23607 wxPyEndAllowThreads(__tstate);
23608 if (PyErr_Occurred()) SWIG_fail;
23609 }
23610 {
23611 resultobj = wxPyMake_wxObject(result, (bool)0);
23612 }
23613 return resultobj;
23614 fail:
23615 return NULL;
23616 }
23617
23618
23619 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23620 PyObject *resultobj = 0;
23621 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23622 size_t arg2 ;
23623 wxToolBarToolBase *result = 0 ;
23624 void *argp1 = 0 ;
23625 int res1 = 0 ;
23626 size_t val2 ;
23627 int ecode2 = 0 ;
23628 PyObject * obj0 = 0 ;
23629 PyObject * obj1 = 0 ;
23630 char * kwnames[] = {
23631 (char *) "self",(char *) "pos", NULL
23632 };
23633
23634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
23635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23636 if (!SWIG_IsOK(res1)) {
23637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23638 }
23639 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23640 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23641 if (!SWIG_IsOK(ecode2)) {
23642 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
23643 }
23644 arg2 = static_cast< size_t >(val2);
23645 {
23646 PyThreadState* __tstate = wxPyBeginAllowThreads();
23647 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
23648 wxPyEndAllowThreads(__tstate);
23649 if (PyErr_Occurred()) SWIG_fail;
23650 }
23651 {
23652 resultobj = wxPyMake_wxObject(result, (bool)0);
23653 }
23654 return resultobj;
23655 fail:
23656 return NULL;
23657 }
23658
23659
23660 SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23661 PyObject *resultobj = 0;
23662 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23663 int arg2 ;
23664 wxToolBarToolBase *result = 0 ;
23665 void *argp1 = 0 ;
23666 int res1 = 0 ;
23667 int val2 ;
23668 int ecode2 = 0 ;
23669 PyObject * obj0 = 0 ;
23670 PyObject * obj1 = 0 ;
23671 char * kwnames[] = {
23672 (char *) "self",(char *) "id", NULL
23673 };
23674
23675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
23676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23677 if (!SWIG_IsOK(res1)) {
23678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23679 }
23680 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23681 ecode2 = SWIG_AsVal_int(obj1, &val2);
23682 if (!SWIG_IsOK(ecode2)) {
23683 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
23684 }
23685 arg2 = static_cast< int >(val2);
23686 {
23687 PyThreadState* __tstate = wxPyBeginAllowThreads();
23688 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
23689 wxPyEndAllowThreads(__tstate);
23690 if (PyErr_Occurred()) SWIG_fail;
23691 }
23692 {
23693 resultobj = wxPyMake_wxObject(result, (bool)0);
23694 }
23695 return resultobj;
23696 fail:
23697 return NULL;
23698 }
23699
23700
23701 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23702 PyObject *resultobj = 0;
23703 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23704 size_t arg2 ;
23705 bool result;
23706 void *argp1 = 0 ;
23707 int res1 = 0 ;
23708 size_t val2 ;
23709 int ecode2 = 0 ;
23710 PyObject * obj0 = 0 ;
23711 PyObject * obj1 = 0 ;
23712 char * kwnames[] = {
23713 (char *) "self",(char *) "pos", NULL
23714 };
23715
23716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
23717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23718 if (!SWIG_IsOK(res1)) {
23719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23720 }
23721 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23722 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23723 if (!SWIG_IsOK(ecode2)) {
23724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
23725 }
23726 arg2 = static_cast< size_t >(val2);
23727 {
23728 PyThreadState* __tstate = wxPyBeginAllowThreads();
23729 result = (bool)(arg1)->DeleteToolByPos(arg2);
23730 wxPyEndAllowThreads(__tstate);
23731 if (PyErr_Occurred()) SWIG_fail;
23732 }
23733 {
23734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23735 }
23736 return resultobj;
23737 fail:
23738 return NULL;
23739 }
23740
23741
23742 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23743 PyObject *resultobj = 0;
23744 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23745 int arg2 ;
23746 bool result;
23747 void *argp1 = 0 ;
23748 int res1 = 0 ;
23749 int val2 ;
23750 int ecode2 = 0 ;
23751 PyObject * obj0 = 0 ;
23752 PyObject * obj1 = 0 ;
23753 char * kwnames[] = {
23754 (char *) "self",(char *) "id", NULL
23755 };
23756
23757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
23758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23759 if (!SWIG_IsOK(res1)) {
23760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23761 }
23762 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23763 ecode2 = SWIG_AsVal_int(obj1, &val2);
23764 if (!SWIG_IsOK(ecode2)) {
23765 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
23766 }
23767 arg2 = static_cast< int >(val2);
23768 {
23769 PyThreadState* __tstate = wxPyBeginAllowThreads();
23770 result = (bool)(arg1)->DeleteTool(arg2);
23771 wxPyEndAllowThreads(__tstate);
23772 if (PyErr_Occurred()) SWIG_fail;
23773 }
23774 {
23775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23776 }
23777 return resultobj;
23778 fail:
23779 return NULL;
23780 }
23781
23782
23783 SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23784 PyObject *resultobj = 0;
23785 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23786 void *argp1 = 0 ;
23787 int res1 = 0 ;
23788 PyObject *swig_obj[1] ;
23789
23790 if (!args) SWIG_fail;
23791 swig_obj[0] = args;
23792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23793 if (!SWIG_IsOK(res1)) {
23794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23795 }
23796 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23797 {
23798 PyThreadState* __tstate = wxPyBeginAllowThreads();
23799 (arg1)->ClearTools();
23800 wxPyEndAllowThreads(__tstate);
23801 if (PyErr_Occurred()) SWIG_fail;
23802 }
23803 resultobj = SWIG_Py_Void();
23804 return resultobj;
23805 fail:
23806 return NULL;
23807 }
23808
23809
23810 SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23811 PyObject *resultobj = 0;
23812 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23813 bool result;
23814 void *argp1 = 0 ;
23815 int res1 = 0 ;
23816 PyObject *swig_obj[1] ;
23817
23818 if (!args) SWIG_fail;
23819 swig_obj[0] = args;
23820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23821 if (!SWIG_IsOK(res1)) {
23822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23823 }
23824 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23825 {
23826 PyThreadState* __tstate = wxPyBeginAllowThreads();
23827 result = (bool)(arg1)->Realize();
23828 wxPyEndAllowThreads(__tstate);
23829 if (PyErr_Occurred()) SWIG_fail;
23830 }
23831 {
23832 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23833 }
23834 return resultobj;
23835 fail:
23836 return NULL;
23837 }
23838
23839
23840 SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23841 PyObject *resultobj = 0;
23842 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23843 int arg2 ;
23844 bool arg3 ;
23845 void *argp1 = 0 ;
23846 int res1 = 0 ;
23847 int val2 ;
23848 int ecode2 = 0 ;
23849 bool val3 ;
23850 int ecode3 = 0 ;
23851 PyObject * obj0 = 0 ;
23852 PyObject * obj1 = 0 ;
23853 PyObject * obj2 = 0 ;
23854 char * kwnames[] = {
23855 (char *) "self",(char *) "id",(char *) "enable", NULL
23856 };
23857
23858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23860 if (!SWIG_IsOK(res1)) {
23861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23862 }
23863 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23864 ecode2 = SWIG_AsVal_int(obj1, &val2);
23865 if (!SWIG_IsOK(ecode2)) {
23866 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
23867 }
23868 arg2 = static_cast< int >(val2);
23869 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23870 if (!SWIG_IsOK(ecode3)) {
23871 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
23872 }
23873 arg3 = static_cast< bool >(val3);
23874 {
23875 PyThreadState* __tstate = wxPyBeginAllowThreads();
23876 (arg1)->EnableTool(arg2,arg3);
23877 wxPyEndAllowThreads(__tstate);
23878 if (PyErr_Occurred()) SWIG_fail;
23879 }
23880 resultobj = SWIG_Py_Void();
23881 return resultobj;
23882 fail:
23883 return NULL;
23884 }
23885
23886
23887 SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23888 PyObject *resultobj = 0;
23889 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23890 int arg2 ;
23891 bool arg3 ;
23892 void *argp1 = 0 ;
23893 int res1 = 0 ;
23894 int val2 ;
23895 int ecode2 = 0 ;
23896 bool val3 ;
23897 int ecode3 = 0 ;
23898 PyObject * obj0 = 0 ;
23899 PyObject * obj1 = 0 ;
23900 PyObject * obj2 = 0 ;
23901 char * kwnames[] = {
23902 (char *) "self",(char *) "id",(char *) "toggle", NULL
23903 };
23904
23905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23907 if (!SWIG_IsOK(res1)) {
23908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23909 }
23910 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23911 ecode2 = SWIG_AsVal_int(obj1, &val2);
23912 if (!SWIG_IsOK(ecode2)) {
23913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
23914 }
23915 arg2 = static_cast< int >(val2);
23916 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23917 if (!SWIG_IsOK(ecode3)) {
23918 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
23919 }
23920 arg3 = static_cast< bool >(val3);
23921 {
23922 PyThreadState* __tstate = wxPyBeginAllowThreads();
23923 (arg1)->ToggleTool(arg2,arg3);
23924 wxPyEndAllowThreads(__tstate);
23925 if (PyErr_Occurred()) SWIG_fail;
23926 }
23927 resultobj = SWIG_Py_Void();
23928 return resultobj;
23929 fail:
23930 return NULL;
23931 }
23932
23933
23934 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23935 PyObject *resultobj = 0;
23936 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23937 int arg2 ;
23938 bool arg3 ;
23939 void *argp1 = 0 ;
23940 int res1 = 0 ;
23941 int val2 ;
23942 int ecode2 = 0 ;
23943 bool val3 ;
23944 int ecode3 = 0 ;
23945 PyObject * obj0 = 0 ;
23946 PyObject * obj1 = 0 ;
23947 PyObject * obj2 = 0 ;
23948 char * kwnames[] = {
23949 (char *) "self",(char *) "id",(char *) "toggle", NULL
23950 };
23951
23952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23954 if (!SWIG_IsOK(res1)) {
23955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23956 }
23957 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23958 ecode2 = SWIG_AsVal_int(obj1, &val2);
23959 if (!SWIG_IsOK(ecode2)) {
23960 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
23961 }
23962 arg2 = static_cast< int >(val2);
23963 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23964 if (!SWIG_IsOK(ecode3)) {
23965 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
23966 }
23967 arg3 = static_cast< bool >(val3);
23968 {
23969 PyThreadState* __tstate = wxPyBeginAllowThreads();
23970 (arg1)->SetToggle(arg2,arg3);
23971 wxPyEndAllowThreads(__tstate);
23972 if (PyErr_Occurred()) SWIG_fail;
23973 }
23974 resultobj = SWIG_Py_Void();
23975 return resultobj;
23976 fail:
23977 return NULL;
23978 }
23979
23980
23981 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23982 PyObject *resultobj = 0;
23983 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23984 int arg2 ;
23985 PyObject *result = 0 ;
23986 void *argp1 = 0 ;
23987 int res1 = 0 ;
23988 int val2 ;
23989 int ecode2 = 0 ;
23990 PyObject * obj0 = 0 ;
23991 PyObject * obj1 = 0 ;
23992 char * kwnames[] = {
23993 (char *) "self",(char *) "id", NULL
23994 };
23995
23996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23998 if (!SWIG_IsOK(res1)) {
23999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24000 }
24001 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24002 ecode2 = SWIG_AsVal_int(obj1, &val2);
24003 if (!SWIG_IsOK(ecode2)) {
24004 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24005 }
24006 arg2 = static_cast< int >(val2);
24007 {
24008 PyThreadState* __tstate = wxPyBeginAllowThreads();
24009 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24010 wxPyEndAllowThreads(__tstate);
24011 if (PyErr_Occurred()) SWIG_fail;
24012 }
24013 resultobj = result;
24014 return resultobj;
24015 fail:
24016 return NULL;
24017 }
24018
24019
24020 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24021 PyObject *resultobj = 0;
24022 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24023 int arg2 ;
24024 PyObject *arg3 = (PyObject *) 0 ;
24025 void *argp1 = 0 ;
24026 int res1 = 0 ;
24027 int val2 ;
24028 int ecode2 = 0 ;
24029 PyObject * obj0 = 0 ;
24030 PyObject * obj1 = 0 ;
24031 PyObject * obj2 = 0 ;
24032 char * kwnames[] = {
24033 (char *) "self",(char *) "id",(char *) "clientData", NULL
24034 };
24035
24036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24038 if (!SWIG_IsOK(res1)) {
24039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24040 }
24041 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24042 ecode2 = SWIG_AsVal_int(obj1, &val2);
24043 if (!SWIG_IsOK(ecode2)) {
24044 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24045 }
24046 arg2 = static_cast< int >(val2);
24047 arg3 = obj2;
24048 {
24049 PyThreadState* __tstate = wxPyBeginAllowThreads();
24050 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24051 wxPyEndAllowThreads(__tstate);
24052 if (PyErr_Occurred()) SWIG_fail;
24053 }
24054 resultobj = SWIG_Py_Void();
24055 return resultobj;
24056 fail:
24057 return NULL;
24058 }
24059
24060
24061 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24062 PyObject *resultobj = 0;
24063 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24064 int arg2 ;
24065 int result;
24066 void *argp1 = 0 ;
24067 int res1 = 0 ;
24068 int val2 ;
24069 int ecode2 = 0 ;
24070 PyObject * obj0 = 0 ;
24071 PyObject * obj1 = 0 ;
24072 char * kwnames[] = {
24073 (char *) "self",(char *) "id", NULL
24074 };
24075
24076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24078 if (!SWIG_IsOK(res1)) {
24079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24080 }
24081 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24082 ecode2 = SWIG_AsVal_int(obj1, &val2);
24083 if (!SWIG_IsOK(ecode2)) {
24084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24085 }
24086 arg2 = static_cast< int >(val2);
24087 {
24088 PyThreadState* __tstate = wxPyBeginAllowThreads();
24089 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24090 wxPyEndAllowThreads(__tstate);
24091 if (PyErr_Occurred()) SWIG_fail;
24092 }
24093 resultobj = SWIG_From_int(static_cast< int >(result));
24094 return resultobj;
24095 fail:
24096 return NULL;
24097 }
24098
24099
24100 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24101 PyObject *resultobj = 0;
24102 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24103 int arg2 ;
24104 bool result;
24105 void *argp1 = 0 ;
24106 int res1 = 0 ;
24107 int val2 ;
24108 int ecode2 = 0 ;
24109 PyObject * obj0 = 0 ;
24110 PyObject * obj1 = 0 ;
24111 char * kwnames[] = {
24112 (char *) "self",(char *) "id", NULL
24113 };
24114
24115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24117 if (!SWIG_IsOK(res1)) {
24118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24119 }
24120 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24121 ecode2 = SWIG_AsVal_int(obj1, &val2);
24122 if (!SWIG_IsOK(ecode2)) {
24123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24124 }
24125 arg2 = static_cast< int >(val2);
24126 {
24127 PyThreadState* __tstate = wxPyBeginAllowThreads();
24128 result = (bool)(arg1)->GetToolState(arg2);
24129 wxPyEndAllowThreads(__tstate);
24130 if (PyErr_Occurred()) SWIG_fail;
24131 }
24132 {
24133 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24134 }
24135 return resultobj;
24136 fail:
24137 return NULL;
24138 }
24139
24140
24141 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24142 PyObject *resultobj = 0;
24143 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24144 int arg2 ;
24145 bool result;
24146 void *argp1 = 0 ;
24147 int res1 = 0 ;
24148 int val2 ;
24149 int ecode2 = 0 ;
24150 PyObject * obj0 = 0 ;
24151 PyObject * obj1 = 0 ;
24152 char * kwnames[] = {
24153 (char *) "self",(char *) "id", NULL
24154 };
24155
24156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24158 if (!SWIG_IsOK(res1)) {
24159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24160 }
24161 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24162 ecode2 = SWIG_AsVal_int(obj1, &val2);
24163 if (!SWIG_IsOK(ecode2)) {
24164 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24165 }
24166 arg2 = static_cast< int >(val2);
24167 {
24168 PyThreadState* __tstate = wxPyBeginAllowThreads();
24169 result = (bool)(arg1)->GetToolEnabled(arg2);
24170 wxPyEndAllowThreads(__tstate);
24171 if (PyErr_Occurred()) SWIG_fail;
24172 }
24173 {
24174 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24175 }
24176 return resultobj;
24177 fail:
24178 return NULL;
24179 }
24180
24181
24182 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24183 PyObject *resultobj = 0;
24184 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24185 int arg2 ;
24186 wxString *arg3 = 0 ;
24187 void *argp1 = 0 ;
24188 int res1 = 0 ;
24189 int val2 ;
24190 int ecode2 = 0 ;
24191 bool temp3 = false ;
24192 PyObject * obj0 = 0 ;
24193 PyObject * obj1 = 0 ;
24194 PyObject * obj2 = 0 ;
24195 char * kwnames[] = {
24196 (char *) "self",(char *) "id",(char *) "helpString", NULL
24197 };
24198
24199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24201 if (!SWIG_IsOK(res1)) {
24202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24203 }
24204 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24205 ecode2 = SWIG_AsVal_int(obj1, &val2);
24206 if (!SWIG_IsOK(ecode2)) {
24207 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24208 }
24209 arg2 = static_cast< int >(val2);
24210 {
24211 arg3 = wxString_in_helper(obj2);
24212 if (arg3 == NULL) SWIG_fail;
24213 temp3 = true;
24214 }
24215 {
24216 PyThreadState* __tstate = wxPyBeginAllowThreads();
24217 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24218 wxPyEndAllowThreads(__tstate);
24219 if (PyErr_Occurred()) SWIG_fail;
24220 }
24221 resultobj = SWIG_Py_Void();
24222 {
24223 if (temp3)
24224 delete arg3;
24225 }
24226 return resultobj;
24227 fail:
24228 {
24229 if (temp3)
24230 delete arg3;
24231 }
24232 return NULL;
24233 }
24234
24235
24236 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24237 PyObject *resultobj = 0;
24238 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24239 int arg2 ;
24240 wxString result;
24241 void *argp1 = 0 ;
24242 int res1 = 0 ;
24243 int val2 ;
24244 int ecode2 = 0 ;
24245 PyObject * obj0 = 0 ;
24246 PyObject * obj1 = 0 ;
24247 char * kwnames[] = {
24248 (char *) "self",(char *) "id", NULL
24249 };
24250
24251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24253 if (!SWIG_IsOK(res1)) {
24254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24255 }
24256 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24257 ecode2 = SWIG_AsVal_int(obj1, &val2);
24258 if (!SWIG_IsOK(ecode2)) {
24259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24260 }
24261 arg2 = static_cast< int >(val2);
24262 {
24263 PyThreadState* __tstate = wxPyBeginAllowThreads();
24264 result = (arg1)->GetToolShortHelp(arg2);
24265 wxPyEndAllowThreads(__tstate);
24266 if (PyErr_Occurred()) SWIG_fail;
24267 }
24268 {
24269 #if wxUSE_UNICODE
24270 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24271 #else
24272 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24273 #endif
24274 }
24275 return resultobj;
24276 fail:
24277 return NULL;
24278 }
24279
24280
24281 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24282 PyObject *resultobj = 0;
24283 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24284 int arg2 ;
24285 wxString *arg3 = 0 ;
24286 void *argp1 = 0 ;
24287 int res1 = 0 ;
24288 int val2 ;
24289 int ecode2 = 0 ;
24290 bool temp3 = false ;
24291 PyObject * obj0 = 0 ;
24292 PyObject * obj1 = 0 ;
24293 PyObject * obj2 = 0 ;
24294 char * kwnames[] = {
24295 (char *) "self",(char *) "id",(char *) "helpString", NULL
24296 };
24297
24298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24300 if (!SWIG_IsOK(res1)) {
24301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24302 }
24303 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24304 ecode2 = SWIG_AsVal_int(obj1, &val2);
24305 if (!SWIG_IsOK(ecode2)) {
24306 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24307 }
24308 arg2 = static_cast< int >(val2);
24309 {
24310 arg3 = wxString_in_helper(obj2);
24311 if (arg3 == NULL) SWIG_fail;
24312 temp3 = true;
24313 }
24314 {
24315 PyThreadState* __tstate = wxPyBeginAllowThreads();
24316 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24317 wxPyEndAllowThreads(__tstate);
24318 if (PyErr_Occurred()) SWIG_fail;
24319 }
24320 resultobj = SWIG_Py_Void();
24321 {
24322 if (temp3)
24323 delete arg3;
24324 }
24325 return resultobj;
24326 fail:
24327 {
24328 if (temp3)
24329 delete arg3;
24330 }
24331 return NULL;
24332 }
24333
24334
24335 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24336 PyObject *resultobj = 0;
24337 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24338 int arg2 ;
24339 wxString result;
24340 void *argp1 = 0 ;
24341 int res1 = 0 ;
24342 int val2 ;
24343 int ecode2 = 0 ;
24344 PyObject * obj0 = 0 ;
24345 PyObject * obj1 = 0 ;
24346 char * kwnames[] = {
24347 (char *) "self",(char *) "id", NULL
24348 };
24349
24350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24352 if (!SWIG_IsOK(res1)) {
24353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24354 }
24355 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24356 ecode2 = SWIG_AsVal_int(obj1, &val2);
24357 if (!SWIG_IsOK(ecode2)) {
24358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24359 }
24360 arg2 = static_cast< int >(val2);
24361 {
24362 PyThreadState* __tstate = wxPyBeginAllowThreads();
24363 result = (arg1)->GetToolLongHelp(arg2);
24364 wxPyEndAllowThreads(__tstate);
24365 if (PyErr_Occurred()) SWIG_fail;
24366 }
24367 {
24368 #if wxUSE_UNICODE
24369 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24370 #else
24371 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24372 #endif
24373 }
24374 return resultobj;
24375 fail:
24376 return NULL;
24377 }
24378
24379
24380 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24381 PyObject *resultobj = 0;
24382 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24383 int arg2 ;
24384 int arg3 ;
24385 void *argp1 = 0 ;
24386 int res1 = 0 ;
24387 int val2 ;
24388 int ecode2 = 0 ;
24389 int val3 ;
24390 int ecode3 = 0 ;
24391 PyObject * obj0 = 0 ;
24392 PyObject * obj1 = 0 ;
24393 PyObject * obj2 = 0 ;
24394 char * kwnames[] = {
24395 (char *) "self",(char *) "x",(char *) "y", NULL
24396 };
24397
24398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24400 if (!SWIG_IsOK(res1)) {
24401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24402 }
24403 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24404 ecode2 = SWIG_AsVal_int(obj1, &val2);
24405 if (!SWIG_IsOK(ecode2)) {
24406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
24407 }
24408 arg2 = static_cast< int >(val2);
24409 ecode3 = SWIG_AsVal_int(obj2, &val3);
24410 if (!SWIG_IsOK(ecode3)) {
24411 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
24412 }
24413 arg3 = static_cast< int >(val3);
24414 {
24415 PyThreadState* __tstate = wxPyBeginAllowThreads();
24416 (arg1)->SetMargins(arg2,arg3);
24417 wxPyEndAllowThreads(__tstate);
24418 if (PyErr_Occurred()) SWIG_fail;
24419 }
24420 resultobj = SWIG_Py_Void();
24421 return resultobj;
24422 fail:
24423 return NULL;
24424 }
24425
24426
24427 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24428 PyObject *resultobj = 0;
24429 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24430 wxSize *arg2 = 0 ;
24431 void *argp1 = 0 ;
24432 int res1 = 0 ;
24433 wxSize temp2 ;
24434 PyObject * obj0 = 0 ;
24435 PyObject * obj1 = 0 ;
24436 char * kwnames[] = {
24437 (char *) "self",(char *) "size", NULL
24438 };
24439
24440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
24441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24442 if (!SWIG_IsOK(res1)) {
24443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24444 }
24445 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24446 {
24447 arg2 = &temp2;
24448 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24449 }
24450 {
24451 PyThreadState* __tstate = wxPyBeginAllowThreads();
24452 (arg1)->SetMargins((wxSize const &)*arg2);
24453 wxPyEndAllowThreads(__tstate);
24454 if (PyErr_Occurred()) SWIG_fail;
24455 }
24456 resultobj = SWIG_Py_Void();
24457 return resultobj;
24458 fail:
24459 return NULL;
24460 }
24461
24462
24463 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24464 PyObject *resultobj = 0;
24465 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24466 int arg2 ;
24467 void *argp1 = 0 ;
24468 int res1 = 0 ;
24469 int val2 ;
24470 int ecode2 = 0 ;
24471 PyObject * obj0 = 0 ;
24472 PyObject * obj1 = 0 ;
24473 char * kwnames[] = {
24474 (char *) "self",(char *) "packing", NULL
24475 };
24476
24477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
24478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24479 if (!SWIG_IsOK(res1)) {
24480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24481 }
24482 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24483 ecode2 = SWIG_AsVal_int(obj1, &val2);
24484 if (!SWIG_IsOK(ecode2)) {
24485 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
24486 }
24487 arg2 = static_cast< int >(val2);
24488 {
24489 PyThreadState* __tstate = wxPyBeginAllowThreads();
24490 (arg1)->SetToolPacking(arg2);
24491 wxPyEndAllowThreads(__tstate);
24492 if (PyErr_Occurred()) SWIG_fail;
24493 }
24494 resultobj = SWIG_Py_Void();
24495 return resultobj;
24496 fail:
24497 return NULL;
24498 }
24499
24500
24501 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24502 PyObject *resultobj = 0;
24503 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24504 int arg2 ;
24505 void *argp1 = 0 ;
24506 int res1 = 0 ;
24507 int val2 ;
24508 int ecode2 = 0 ;
24509 PyObject * obj0 = 0 ;
24510 PyObject * obj1 = 0 ;
24511 char * kwnames[] = {
24512 (char *) "self",(char *) "separation", NULL
24513 };
24514
24515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
24516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24517 if (!SWIG_IsOK(res1)) {
24518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24519 }
24520 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24521 ecode2 = SWIG_AsVal_int(obj1, &val2);
24522 if (!SWIG_IsOK(ecode2)) {
24523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
24524 }
24525 arg2 = static_cast< int >(val2);
24526 {
24527 PyThreadState* __tstate = wxPyBeginAllowThreads();
24528 (arg1)->SetToolSeparation(arg2);
24529 wxPyEndAllowThreads(__tstate);
24530 if (PyErr_Occurred()) SWIG_fail;
24531 }
24532 resultobj = SWIG_Py_Void();
24533 return resultobj;
24534 fail:
24535 return NULL;
24536 }
24537
24538
24539 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24540 PyObject *resultobj = 0;
24541 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24542 wxSize result;
24543 void *argp1 = 0 ;
24544 int res1 = 0 ;
24545 PyObject *swig_obj[1] ;
24546
24547 if (!args) SWIG_fail;
24548 swig_obj[0] = args;
24549 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24550 if (!SWIG_IsOK(res1)) {
24551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24552 }
24553 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24554 {
24555 PyThreadState* __tstate = wxPyBeginAllowThreads();
24556 result = (arg1)->GetToolMargins();
24557 wxPyEndAllowThreads(__tstate);
24558 if (PyErr_Occurred()) SWIG_fail;
24559 }
24560 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24561 return resultobj;
24562 fail:
24563 return NULL;
24564 }
24565
24566
24567 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24568 PyObject *resultobj = 0;
24569 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24570 wxSize result;
24571 void *argp1 = 0 ;
24572 int res1 = 0 ;
24573 PyObject *swig_obj[1] ;
24574
24575 if (!args) SWIG_fail;
24576 swig_obj[0] = args;
24577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24578 if (!SWIG_IsOK(res1)) {
24579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24580 }
24581 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24582 {
24583 PyThreadState* __tstate = wxPyBeginAllowThreads();
24584 result = (arg1)->GetMargins();
24585 wxPyEndAllowThreads(__tstate);
24586 if (PyErr_Occurred()) SWIG_fail;
24587 }
24588 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24589 return resultobj;
24590 fail:
24591 return NULL;
24592 }
24593
24594
24595 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24596 PyObject *resultobj = 0;
24597 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24598 int result;
24599 void *argp1 = 0 ;
24600 int res1 = 0 ;
24601 PyObject *swig_obj[1] ;
24602
24603 if (!args) SWIG_fail;
24604 swig_obj[0] = args;
24605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24606 if (!SWIG_IsOK(res1)) {
24607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24608 }
24609 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24610 {
24611 PyThreadState* __tstate = wxPyBeginAllowThreads();
24612 result = (int)(arg1)->GetToolPacking();
24613 wxPyEndAllowThreads(__tstate);
24614 if (PyErr_Occurred()) SWIG_fail;
24615 }
24616 resultobj = SWIG_From_int(static_cast< int >(result));
24617 return resultobj;
24618 fail:
24619 return NULL;
24620 }
24621
24622
24623 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24624 PyObject *resultobj = 0;
24625 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24626 int result;
24627 void *argp1 = 0 ;
24628 int res1 = 0 ;
24629 PyObject *swig_obj[1] ;
24630
24631 if (!args) SWIG_fail;
24632 swig_obj[0] = args;
24633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24634 if (!SWIG_IsOK(res1)) {
24635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24636 }
24637 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24638 {
24639 PyThreadState* __tstate = wxPyBeginAllowThreads();
24640 result = (int)(arg1)->GetToolSeparation();
24641 wxPyEndAllowThreads(__tstate);
24642 if (PyErr_Occurred()) SWIG_fail;
24643 }
24644 resultobj = SWIG_From_int(static_cast< int >(result));
24645 return resultobj;
24646 fail:
24647 return NULL;
24648 }
24649
24650
24651 SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24652 PyObject *resultobj = 0;
24653 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24654 int arg2 ;
24655 void *argp1 = 0 ;
24656 int res1 = 0 ;
24657 int val2 ;
24658 int ecode2 = 0 ;
24659 PyObject * obj0 = 0 ;
24660 PyObject * obj1 = 0 ;
24661 char * kwnames[] = {
24662 (char *) "self",(char *) "nRows", NULL
24663 };
24664
24665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
24666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24667 if (!SWIG_IsOK(res1)) {
24668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24669 }
24670 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24671 ecode2 = SWIG_AsVal_int(obj1, &val2);
24672 if (!SWIG_IsOK(ecode2)) {
24673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
24674 }
24675 arg2 = static_cast< int >(val2);
24676 {
24677 PyThreadState* __tstate = wxPyBeginAllowThreads();
24678 (arg1)->SetRows(arg2);
24679 wxPyEndAllowThreads(__tstate);
24680 if (PyErr_Occurred()) SWIG_fail;
24681 }
24682 resultobj = SWIG_Py_Void();
24683 return resultobj;
24684 fail:
24685 return NULL;
24686 }
24687
24688
24689 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24690 PyObject *resultobj = 0;
24691 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24692 int arg2 ;
24693 int arg3 ;
24694 void *argp1 = 0 ;
24695 int res1 = 0 ;
24696 int val2 ;
24697 int ecode2 = 0 ;
24698 int val3 ;
24699 int ecode3 = 0 ;
24700 PyObject * obj0 = 0 ;
24701 PyObject * obj1 = 0 ;
24702 PyObject * obj2 = 0 ;
24703 char * kwnames[] = {
24704 (char *) "self",(char *) "rows",(char *) "cols", NULL
24705 };
24706
24707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24709 if (!SWIG_IsOK(res1)) {
24710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24711 }
24712 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24713 ecode2 = SWIG_AsVal_int(obj1, &val2);
24714 if (!SWIG_IsOK(ecode2)) {
24715 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
24716 }
24717 arg2 = static_cast< int >(val2);
24718 ecode3 = SWIG_AsVal_int(obj2, &val3);
24719 if (!SWIG_IsOK(ecode3)) {
24720 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
24721 }
24722 arg3 = static_cast< int >(val3);
24723 {
24724 PyThreadState* __tstate = wxPyBeginAllowThreads();
24725 (arg1)->SetMaxRowsCols(arg2,arg3);
24726 wxPyEndAllowThreads(__tstate);
24727 if (PyErr_Occurred()) SWIG_fail;
24728 }
24729 resultobj = SWIG_Py_Void();
24730 return resultobj;
24731 fail:
24732 return NULL;
24733 }
24734
24735
24736 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24737 PyObject *resultobj = 0;
24738 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24739 int result;
24740 void *argp1 = 0 ;
24741 int res1 = 0 ;
24742 PyObject *swig_obj[1] ;
24743
24744 if (!args) SWIG_fail;
24745 swig_obj[0] = args;
24746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24747 if (!SWIG_IsOK(res1)) {
24748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24749 }
24750 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24751 {
24752 PyThreadState* __tstate = wxPyBeginAllowThreads();
24753 result = (int)(arg1)->GetMaxRows();
24754 wxPyEndAllowThreads(__tstate);
24755 if (PyErr_Occurred()) SWIG_fail;
24756 }
24757 resultobj = SWIG_From_int(static_cast< int >(result));
24758 return resultobj;
24759 fail:
24760 return NULL;
24761 }
24762
24763
24764 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24765 PyObject *resultobj = 0;
24766 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24767 int result;
24768 void *argp1 = 0 ;
24769 int res1 = 0 ;
24770 PyObject *swig_obj[1] ;
24771
24772 if (!args) SWIG_fail;
24773 swig_obj[0] = args;
24774 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24775 if (!SWIG_IsOK(res1)) {
24776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24777 }
24778 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24779 {
24780 PyThreadState* __tstate = wxPyBeginAllowThreads();
24781 result = (int)(arg1)->GetMaxCols();
24782 wxPyEndAllowThreads(__tstate);
24783 if (PyErr_Occurred()) SWIG_fail;
24784 }
24785 resultobj = SWIG_From_int(static_cast< int >(result));
24786 return resultobj;
24787 fail:
24788 return NULL;
24789 }
24790
24791
24792 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24793 PyObject *resultobj = 0;
24794 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24795 wxSize *arg2 = 0 ;
24796 void *argp1 = 0 ;
24797 int res1 = 0 ;
24798 wxSize temp2 ;
24799 PyObject * obj0 = 0 ;
24800 PyObject * obj1 = 0 ;
24801 char * kwnames[] = {
24802 (char *) "self",(char *) "size", NULL
24803 };
24804
24805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
24806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24807 if (!SWIG_IsOK(res1)) {
24808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24809 }
24810 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24811 {
24812 arg2 = &temp2;
24813 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24814 }
24815 {
24816 PyThreadState* __tstate = wxPyBeginAllowThreads();
24817 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
24818 wxPyEndAllowThreads(__tstate);
24819 if (PyErr_Occurred()) SWIG_fail;
24820 }
24821 resultobj = SWIG_Py_Void();
24822 return resultobj;
24823 fail:
24824 return NULL;
24825 }
24826
24827
24828 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24829 PyObject *resultobj = 0;
24830 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24831 wxSize result;
24832 void *argp1 = 0 ;
24833 int res1 = 0 ;
24834 PyObject *swig_obj[1] ;
24835
24836 if (!args) SWIG_fail;
24837 swig_obj[0] = args;
24838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24839 if (!SWIG_IsOK(res1)) {
24840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24841 }
24842 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24843 {
24844 PyThreadState* __tstate = wxPyBeginAllowThreads();
24845 result = (arg1)->GetToolBitmapSize();
24846 wxPyEndAllowThreads(__tstate);
24847 if (PyErr_Occurred()) SWIG_fail;
24848 }
24849 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24850 return resultobj;
24851 fail:
24852 return NULL;
24853 }
24854
24855
24856 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24857 PyObject *resultobj = 0;
24858 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24859 wxSize result;
24860 void *argp1 = 0 ;
24861 int res1 = 0 ;
24862 PyObject *swig_obj[1] ;
24863
24864 if (!args) SWIG_fail;
24865 swig_obj[0] = args;
24866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24867 if (!SWIG_IsOK(res1)) {
24868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24869 }
24870 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24871 {
24872 PyThreadState* __tstate = wxPyBeginAllowThreads();
24873 result = (arg1)->GetToolSize();
24874 wxPyEndAllowThreads(__tstate);
24875 if (PyErr_Occurred()) SWIG_fail;
24876 }
24877 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24878 return resultobj;
24879 fail:
24880 return NULL;
24881 }
24882
24883
24884 SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24885 PyObject *resultobj = 0;
24886 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24887 int arg2 ;
24888 int arg3 ;
24889 wxToolBarToolBase *result = 0 ;
24890 void *argp1 = 0 ;
24891 int res1 = 0 ;
24892 int val2 ;
24893 int ecode2 = 0 ;
24894 int val3 ;
24895 int ecode3 = 0 ;
24896 PyObject * obj0 = 0 ;
24897 PyObject * obj1 = 0 ;
24898 PyObject * obj2 = 0 ;
24899 char * kwnames[] = {
24900 (char *) "self",(char *) "x",(char *) "y", NULL
24901 };
24902
24903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24905 if (!SWIG_IsOK(res1)) {
24906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24907 }
24908 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24909 ecode2 = SWIG_AsVal_int(obj1, &val2);
24910 if (!SWIG_IsOK(ecode2)) {
24911 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
24912 }
24913 arg2 = static_cast< int >(val2);
24914 ecode3 = SWIG_AsVal_int(obj2, &val3);
24915 if (!SWIG_IsOK(ecode3)) {
24916 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
24917 }
24918 arg3 = static_cast< int >(val3);
24919 {
24920 PyThreadState* __tstate = wxPyBeginAllowThreads();
24921 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
24922 wxPyEndAllowThreads(__tstate);
24923 if (PyErr_Occurred()) SWIG_fail;
24924 }
24925 {
24926 resultobj = wxPyMake_wxObject(result, (bool)0);
24927 }
24928 return resultobj;
24929 fail:
24930 return NULL;
24931 }
24932
24933
24934 SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24935 PyObject *resultobj = 0;
24936 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24937 int arg2 ;
24938 wxToolBarToolBase *result = 0 ;
24939 void *argp1 = 0 ;
24940 int res1 = 0 ;
24941 int val2 ;
24942 int ecode2 = 0 ;
24943 PyObject * obj0 = 0 ;
24944 PyObject * obj1 = 0 ;
24945 char * kwnames[] = {
24946 (char *) "self",(char *) "toolid", NULL
24947 };
24948
24949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
24950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24951 if (!SWIG_IsOK(res1)) {
24952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24953 }
24954 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24955 ecode2 = SWIG_AsVal_int(obj1, &val2);
24956 if (!SWIG_IsOK(ecode2)) {
24957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
24958 }
24959 arg2 = static_cast< int >(val2);
24960 {
24961 PyThreadState* __tstate = wxPyBeginAllowThreads();
24962 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
24963 wxPyEndAllowThreads(__tstate);
24964 if (PyErr_Occurred()) SWIG_fail;
24965 }
24966 {
24967 resultobj = wxPyMake_wxObject(result, (bool)0);
24968 }
24969 return resultobj;
24970 fail:
24971 return NULL;
24972 }
24973
24974
24975 SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24976 PyObject *resultobj = 0;
24977 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24978 bool result;
24979 void *argp1 = 0 ;
24980 int res1 = 0 ;
24981 PyObject *swig_obj[1] ;
24982
24983 if (!args) SWIG_fail;
24984 swig_obj[0] = args;
24985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24986 if (!SWIG_IsOK(res1)) {
24987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24988 }
24989 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24990 {
24991 PyThreadState* __tstate = wxPyBeginAllowThreads();
24992 result = (bool)(arg1)->IsVertical();
24993 wxPyEndAllowThreads(__tstate);
24994 if (PyErr_Occurred()) SWIG_fail;
24995 }
24996 {
24997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24998 }
24999 return resultobj;
25000 fail:
25001 return NULL;
25002 }
25003
25004
25005 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25006 PyObject *resultobj = 0;
25007 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25008 size_t result;
25009 void *argp1 = 0 ;
25010 int res1 = 0 ;
25011 PyObject *swig_obj[1] ;
25012
25013 if (!args) SWIG_fail;
25014 swig_obj[0] = args;
25015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25016 if (!SWIG_IsOK(res1)) {
25017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25018 }
25019 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25020 {
25021 PyThreadState* __tstate = wxPyBeginAllowThreads();
25022 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25023 wxPyEndAllowThreads(__tstate);
25024 if (PyErr_Occurred()) SWIG_fail;
25025 }
25026 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25027 return resultobj;
25028 fail:
25029 return NULL;
25030 }
25031
25032
25033 SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25034 PyObject *obj;
25035 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25036 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25037 return SWIG_Py_Void();
25038 }
25039
25040 SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25041 PyObject *resultobj = 0;
25042 wxWindow *arg1 = (wxWindow *) 0 ;
25043 int arg2 = (int) -1 ;
25044 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25045 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25046 wxSize const &arg4_defvalue = wxDefaultSize ;
25047 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25048 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25049 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25050 wxString *arg6 = (wxString *) &arg6_defvalue ;
25051 wxToolBar *result = 0 ;
25052 void *argp1 = 0 ;
25053 int res1 = 0 ;
25054 int val2 ;
25055 int ecode2 = 0 ;
25056 wxPoint temp3 ;
25057 wxSize temp4 ;
25058 long val5 ;
25059 int ecode5 = 0 ;
25060 bool temp6 = false ;
25061 PyObject * obj0 = 0 ;
25062 PyObject * obj1 = 0 ;
25063 PyObject * obj2 = 0 ;
25064 PyObject * obj3 = 0 ;
25065 PyObject * obj4 = 0 ;
25066 PyObject * obj5 = 0 ;
25067 char * kwnames[] = {
25068 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25069 };
25070
25071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25073 if (!SWIG_IsOK(res1)) {
25074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25075 }
25076 arg1 = reinterpret_cast< wxWindow * >(argp1);
25077 if (obj1) {
25078 ecode2 = SWIG_AsVal_int(obj1, &val2);
25079 if (!SWIG_IsOK(ecode2)) {
25080 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25081 }
25082 arg2 = static_cast< int >(val2);
25083 }
25084 if (obj2) {
25085 {
25086 arg3 = &temp3;
25087 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25088 }
25089 }
25090 if (obj3) {
25091 {
25092 arg4 = &temp4;
25093 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25094 }
25095 }
25096 if (obj4) {
25097 ecode5 = SWIG_AsVal_long(obj4, &val5);
25098 if (!SWIG_IsOK(ecode5)) {
25099 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25100 }
25101 arg5 = static_cast< long >(val5);
25102 }
25103 if (obj5) {
25104 {
25105 arg6 = wxString_in_helper(obj5);
25106 if (arg6 == NULL) SWIG_fail;
25107 temp6 = true;
25108 }
25109 }
25110 {
25111 if (!wxPyCheckForApp()) SWIG_fail;
25112 PyThreadState* __tstate = wxPyBeginAllowThreads();
25113 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25114 wxPyEndAllowThreads(__tstate);
25115 if (PyErr_Occurred()) SWIG_fail;
25116 }
25117 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25118 {
25119 if (temp6)
25120 delete arg6;
25121 }
25122 return resultobj;
25123 fail:
25124 {
25125 if (temp6)
25126 delete arg6;
25127 }
25128 return NULL;
25129 }
25130
25131
25132 SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25133 PyObject *resultobj = 0;
25134 wxToolBar *result = 0 ;
25135
25136 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25137 {
25138 if (!wxPyCheckForApp()) SWIG_fail;
25139 PyThreadState* __tstate = wxPyBeginAllowThreads();
25140 result = (wxToolBar *)new wxToolBar();
25141 wxPyEndAllowThreads(__tstate);
25142 if (PyErr_Occurred()) SWIG_fail;
25143 }
25144 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25145 return resultobj;
25146 fail:
25147 return NULL;
25148 }
25149
25150
25151 SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25152 PyObject *resultobj = 0;
25153 wxToolBar *arg1 = (wxToolBar *) 0 ;
25154 wxWindow *arg2 = (wxWindow *) 0 ;
25155 int arg3 = (int) -1 ;
25156 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25157 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25158 wxSize const &arg5_defvalue = wxDefaultSize ;
25159 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25160 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25161 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25162 wxString *arg7 = (wxString *) &arg7_defvalue ;
25163 bool result;
25164 void *argp1 = 0 ;
25165 int res1 = 0 ;
25166 void *argp2 = 0 ;
25167 int res2 = 0 ;
25168 int val3 ;
25169 int ecode3 = 0 ;
25170 wxPoint temp4 ;
25171 wxSize temp5 ;
25172 long val6 ;
25173 int ecode6 = 0 ;
25174 bool temp7 = false ;
25175 PyObject * obj0 = 0 ;
25176 PyObject * obj1 = 0 ;
25177 PyObject * obj2 = 0 ;
25178 PyObject * obj3 = 0 ;
25179 PyObject * obj4 = 0 ;
25180 PyObject * obj5 = 0 ;
25181 PyObject * obj6 = 0 ;
25182 char * kwnames[] = {
25183 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25184 };
25185
25186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25188 if (!SWIG_IsOK(res1)) {
25189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25190 }
25191 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25192 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25193 if (!SWIG_IsOK(res2)) {
25194 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25195 }
25196 arg2 = reinterpret_cast< wxWindow * >(argp2);
25197 if (obj2) {
25198 ecode3 = SWIG_AsVal_int(obj2, &val3);
25199 if (!SWIG_IsOK(ecode3)) {
25200 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25201 }
25202 arg3 = static_cast< int >(val3);
25203 }
25204 if (obj3) {
25205 {
25206 arg4 = &temp4;
25207 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25208 }
25209 }
25210 if (obj4) {
25211 {
25212 arg5 = &temp5;
25213 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25214 }
25215 }
25216 if (obj5) {
25217 ecode6 = SWIG_AsVal_long(obj5, &val6);
25218 if (!SWIG_IsOK(ecode6)) {
25219 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25220 }
25221 arg6 = static_cast< long >(val6);
25222 }
25223 if (obj6) {
25224 {
25225 arg7 = wxString_in_helper(obj6);
25226 if (arg7 == NULL) SWIG_fail;
25227 temp7 = true;
25228 }
25229 }
25230 {
25231 PyThreadState* __tstate = wxPyBeginAllowThreads();
25232 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25233 wxPyEndAllowThreads(__tstate);
25234 if (PyErr_Occurred()) SWIG_fail;
25235 }
25236 {
25237 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25238 }
25239 {
25240 if (temp7)
25241 delete arg7;
25242 }
25243 return resultobj;
25244 fail:
25245 {
25246 if (temp7)
25247 delete arg7;
25248 }
25249 return NULL;
25250 }
25251
25252
25253 SWIGINTERN PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25254 PyObject *resultobj = 0;
25255 wxToolBar *arg1 = (wxToolBar *) 0 ;
25256 int arg2 ;
25257 int arg3 ;
25258 wxToolBarToolBase *result = 0 ;
25259 void *argp1 = 0 ;
25260 int res1 = 0 ;
25261 int val2 ;
25262 int ecode2 = 0 ;
25263 int val3 ;
25264 int ecode3 = 0 ;
25265 PyObject * obj0 = 0 ;
25266 PyObject * obj1 = 0 ;
25267 PyObject * obj2 = 0 ;
25268 char * kwnames[] = {
25269 (char *) "self",(char *) "x",(char *) "y", NULL
25270 };
25271
25272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25274 if (!SWIG_IsOK(res1)) {
25275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBar *""'");
25276 }
25277 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25278 ecode2 = SWIG_AsVal_int(obj1, &val2);
25279 if (!SWIG_IsOK(ecode2)) {
25280 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBar_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25281 }
25282 arg2 = static_cast< int >(val2);
25283 ecode3 = SWIG_AsVal_int(obj2, &val3);
25284 if (!SWIG_IsOK(ecode3)) {
25285 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25286 }
25287 arg3 = static_cast< int >(val3);
25288 {
25289 PyThreadState* __tstate = wxPyBeginAllowThreads();
25290 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25291 wxPyEndAllowThreads(__tstate);
25292 if (PyErr_Occurred()) SWIG_fail;
25293 }
25294 {
25295 resultobj = wxPyMake_wxObject(result, (bool)0);
25296 }
25297 return resultobj;
25298 fail:
25299 return NULL;
25300 }
25301
25302
25303 SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25304 PyObject *resultobj = 0;
25305 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25306 SwigValueWrapper<wxVisualAttributes > result;
25307 int val1 ;
25308 int ecode1 = 0 ;
25309 PyObject * obj0 = 0 ;
25310 char * kwnames[] = {
25311 (char *) "variant", NULL
25312 };
25313
25314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25315 if (obj0) {
25316 ecode1 = SWIG_AsVal_int(obj0, &val1);
25317 if (!SWIG_IsOK(ecode1)) {
25318 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25319 }
25320 arg1 = static_cast< wxWindowVariant >(val1);
25321 }
25322 {
25323 if (!wxPyCheckForApp()) SWIG_fail;
25324 PyThreadState* __tstate = wxPyBeginAllowThreads();
25325 result = wxToolBar::GetClassDefaultAttributes(arg1);
25326 wxPyEndAllowThreads(__tstate);
25327 if (PyErr_Occurred()) SWIG_fail;
25328 }
25329 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25330 return resultobj;
25331 fail:
25332 return NULL;
25333 }
25334
25335
25336 SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25337 PyObject *obj;
25338 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25339 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25340 return SWIG_Py_Void();
25341 }
25342
25343 SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25344 return SWIG_Python_InitShadowInstance(args);
25345 }
25346
25347 SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25348 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25349 return 1;
25350 }
25351
25352
25353 SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25354 PyObject *pyobj = 0;
25355
25356 {
25357 #if wxUSE_UNICODE
25358 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25359 #else
25360 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25361 #endif
25362 }
25363 return pyobj;
25364 }
25365
25366
25367 SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25368 PyObject *resultobj = 0;
25369 wxColour const &arg1_defvalue = wxNullColour ;
25370 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25371 wxColour const &arg2_defvalue = wxNullColour ;
25372 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25373 wxFont const &arg3_defvalue = wxNullFont ;
25374 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25375 wxListItemAttr *result = 0 ;
25376 wxColour temp1 ;
25377 wxColour temp2 ;
25378 void *argp3 = 0 ;
25379 int res3 = 0 ;
25380 PyObject * obj0 = 0 ;
25381 PyObject * obj1 = 0 ;
25382 PyObject * obj2 = 0 ;
25383 char * kwnames[] = {
25384 (char *) "colText",(char *) "colBack",(char *) "font", NULL
25385 };
25386
25387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25388 if (obj0) {
25389 {
25390 arg1 = &temp1;
25391 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
25392 }
25393 }
25394 if (obj1) {
25395 {
25396 arg2 = &temp2;
25397 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25398 }
25399 }
25400 if (obj2) {
25401 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
25402 if (!SWIG_IsOK(res3)) {
25403 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25404 }
25405 if (!argp3) {
25406 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25407 }
25408 arg3 = reinterpret_cast< wxFont * >(argp3);
25409 }
25410 {
25411 PyThreadState* __tstate = wxPyBeginAllowThreads();
25412 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
25413 wxPyEndAllowThreads(__tstate);
25414 if (PyErr_Occurred()) SWIG_fail;
25415 }
25416 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
25417 return resultobj;
25418 fail:
25419 return NULL;
25420 }
25421
25422
25423 SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25424 PyObject *resultobj = 0;
25425 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25426 void *argp1 = 0 ;
25427 int res1 = 0 ;
25428 PyObject *swig_obj[1] ;
25429
25430 if (!args) SWIG_fail;
25431 swig_obj[0] = args;
25432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
25433 if (!SWIG_IsOK(res1)) {
25434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25435 }
25436 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25437 {
25438 PyThreadState* __tstate = wxPyBeginAllowThreads();
25439 delete arg1;
25440
25441 wxPyEndAllowThreads(__tstate);
25442 if (PyErr_Occurred()) SWIG_fail;
25443 }
25444 resultobj = SWIG_Py_Void();
25445 return resultobj;
25446 fail:
25447 return NULL;
25448 }
25449
25450
25451 SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25452 PyObject *resultobj = 0;
25453 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25454 wxColour *arg2 = 0 ;
25455 void *argp1 = 0 ;
25456 int res1 = 0 ;
25457 wxColour temp2 ;
25458 PyObject * obj0 = 0 ;
25459 PyObject * obj1 = 0 ;
25460 char * kwnames[] = {
25461 (char *) "self",(char *) "colText", NULL
25462 };
25463
25464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
25465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25466 if (!SWIG_IsOK(res1)) {
25467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25468 }
25469 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25470 {
25471 arg2 = &temp2;
25472 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25473 }
25474 {
25475 PyThreadState* __tstate = wxPyBeginAllowThreads();
25476 (arg1)->SetTextColour((wxColour const &)*arg2);
25477 wxPyEndAllowThreads(__tstate);
25478 if (PyErr_Occurred()) SWIG_fail;
25479 }
25480 resultobj = SWIG_Py_Void();
25481 return resultobj;
25482 fail:
25483 return NULL;
25484 }
25485
25486
25487 SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25488 PyObject *resultobj = 0;
25489 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25490 wxColour *arg2 = 0 ;
25491 void *argp1 = 0 ;
25492 int res1 = 0 ;
25493 wxColour temp2 ;
25494 PyObject * obj0 = 0 ;
25495 PyObject * obj1 = 0 ;
25496 char * kwnames[] = {
25497 (char *) "self",(char *) "colBack", NULL
25498 };
25499
25500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
25501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25502 if (!SWIG_IsOK(res1)) {
25503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25504 }
25505 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25506 {
25507 arg2 = &temp2;
25508 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25509 }
25510 {
25511 PyThreadState* __tstate = wxPyBeginAllowThreads();
25512 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
25513 wxPyEndAllowThreads(__tstate);
25514 if (PyErr_Occurred()) SWIG_fail;
25515 }
25516 resultobj = SWIG_Py_Void();
25517 return resultobj;
25518 fail:
25519 return NULL;
25520 }
25521
25522
25523 SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25524 PyObject *resultobj = 0;
25525 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25526 wxFont *arg2 = 0 ;
25527 void *argp1 = 0 ;
25528 int res1 = 0 ;
25529 void *argp2 = 0 ;
25530 int res2 = 0 ;
25531 PyObject * obj0 = 0 ;
25532 PyObject * obj1 = 0 ;
25533 char * kwnames[] = {
25534 (char *) "self",(char *) "font", NULL
25535 };
25536
25537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25539 if (!SWIG_IsOK(res1)) {
25540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25541 }
25542 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25543 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25544 if (!SWIG_IsOK(res2)) {
25545 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25546 }
25547 if (!argp2) {
25548 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25549 }
25550 arg2 = reinterpret_cast< wxFont * >(argp2);
25551 {
25552 PyThreadState* __tstate = wxPyBeginAllowThreads();
25553 (arg1)->SetFont((wxFont const &)*arg2);
25554 wxPyEndAllowThreads(__tstate);
25555 if (PyErr_Occurred()) SWIG_fail;
25556 }
25557 resultobj = SWIG_Py_Void();
25558 return resultobj;
25559 fail:
25560 return NULL;
25561 }
25562
25563
25564 SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25565 PyObject *resultobj = 0;
25566 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25567 bool result;
25568 void *argp1 = 0 ;
25569 int res1 = 0 ;
25570 PyObject *swig_obj[1] ;
25571
25572 if (!args) SWIG_fail;
25573 swig_obj[0] = args;
25574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25575 if (!SWIG_IsOK(res1)) {
25576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25577 }
25578 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25579 {
25580 PyThreadState* __tstate = wxPyBeginAllowThreads();
25581 result = (bool)(arg1)->HasTextColour();
25582 wxPyEndAllowThreads(__tstate);
25583 if (PyErr_Occurred()) SWIG_fail;
25584 }
25585 {
25586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25587 }
25588 return resultobj;
25589 fail:
25590 return NULL;
25591 }
25592
25593
25594 SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25595 PyObject *resultobj = 0;
25596 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25597 bool result;
25598 void *argp1 = 0 ;
25599 int res1 = 0 ;
25600 PyObject *swig_obj[1] ;
25601
25602 if (!args) SWIG_fail;
25603 swig_obj[0] = args;
25604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25605 if (!SWIG_IsOK(res1)) {
25606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25607 }
25608 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25609 {
25610 PyThreadState* __tstate = wxPyBeginAllowThreads();
25611 result = (bool)(arg1)->HasBackgroundColour();
25612 wxPyEndAllowThreads(__tstate);
25613 if (PyErr_Occurred()) SWIG_fail;
25614 }
25615 {
25616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25617 }
25618 return resultobj;
25619 fail:
25620 return NULL;
25621 }
25622
25623
25624 SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25625 PyObject *resultobj = 0;
25626 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25627 bool result;
25628 void *argp1 = 0 ;
25629 int res1 = 0 ;
25630 PyObject *swig_obj[1] ;
25631
25632 if (!args) SWIG_fail;
25633 swig_obj[0] = args;
25634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25635 if (!SWIG_IsOK(res1)) {
25636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25637 }
25638 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25639 {
25640 PyThreadState* __tstate = wxPyBeginAllowThreads();
25641 result = (bool)(arg1)->HasFont();
25642 wxPyEndAllowThreads(__tstate);
25643 if (PyErr_Occurred()) SWIG_fail;
25644 }
25645 {
25646 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25647 }
25648 return resultobj;
25649 fail:
25650 return NULL;
25651 }
25652
25653
25654 SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25655 PyObject *resultobj = 0;
25656 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25657 wxColour result;
25658 void *argp1 = 0 ;
25659 int res1 = 0 ;
25660 PyObject *swig_obj[1] ;
25661
25662 if (!args) SWIG_fail;
25663 swig_obj[0] = args;
25664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25665 if (!SWIG_IsOK(res1)) {
25666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25667 }
25668 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25669 {
25670 PyThreadState* __tstate = wxPyBeginAllowThreads();
25671 result = (arg1)->GetTextColour();
25672 wxPyEndAllowThreads(__tstate);
25673 if (PyErr_Occurred()) SWIG_fail;
25674 }
25675 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25676 return resultobj;
25677 fail:
25678 return NULL;
25679 }
25680
25681
25682 SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25683 PyObject *resultobj = 0;
25684 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25685 wxColour result;
25686 void *argp1 = 0 ;
25687 int res1 = 0 ;
25688 PyObject *swig_obj[1] ;
25689
25690 if (!args) SWIG_fail;
25691 swig_obj[0] = args;
25692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25693 if (!SWIG_IsOK(res1)) {
25694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25695 }
25696 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25697 {
25698 PyThreadState* __tstate = wxPyBeginAllowThreads();
25699 result = (arg1)->GetBackgroundColour();
25700 wxPyEndAllowThreads(__tstate);
25701 if (PyErr_Occurred()) SWIG_fail;
25702 }
25703 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25704 return resultobj;
25705 fail:
25706 return NULL;
25707 }
25708
25709
25710 SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25711 PyObject *resultobj = 0;
25712 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25713 wxFont result;
25714 void *argp1 = 0 ;
25715 int res1 = 0 ;
25716 PyObject *swig_obj[1] ;
25717
25718 if (!args) SWIG_fail;
25719 swig_obj[0] = args;
25720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25721 if (!SWIG_IsOK(res1)) {
25722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25723 }
25724 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25725 {
25726 PyThreadState* __tstate = wxPyBeginAllowThreads();
25727 result = (arg1)->GetFont();
25728 wxPyEndAllowThreads(__tstate);
25729 if (PyErr_Occurred()) SWIG_fail;
25730 }
25731 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
25732 return resultobj;
25733 fail:
25734 return NULL;
25735 }
25736
25737
25738 SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25739 PyObject *resultobj = 0;
25740 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25741 wxListItemAttr *arg2 = 0 ;
25742 void *argp1 = 0 ;
25743 int res1 = 0 ;
25744 void *argp2 = 0 ;
25745 int res2 = 0 ;
25746 PyObject * obj0 = 0 ;
25747 PyObject * obj1 = 0 ;
25748 char * kwnames[] = {
25749 (char *) "self",(char *) "source", NULL
25750 };
25751
25752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
25753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25754 if (!SWIG_IsOK(res1)) {
25755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25756 }
25757 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25758 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
25759 if (!SWIG_IsOK(res2)) {
25760 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
25761 }
25762 if (!argp2) {
25763 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
25764 }
25765 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
25766 {
25767 PyThreadState* __tstate = wxPyBeginAllowThreads();
25768 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
25769 wxPyEndAllowThreads(__tstate);
25770 if (PyErr_Occurred()) SWIG_fail;
25771 }
25772 resultobj = SWIG_Py_Void();
25773 return resultobj;
25774 fail:
25775 return NULL;
25776 }
25777
25778
25779 SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25780 PyObject *resultobj = 0;
25781 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25782 void *argp1 = 0 ;
25783 int res1 = 0 ;
25784 PyObject *swig_obj[1] ;
25785
25786 if (!args) SWIG_fail;
25787 swig_obj[0] = args;
25788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25789 if (!SWIG_IsOK(res1)) {
25790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25791 }
25792 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25793 {
25794 PyThreadState* __tstate = wxPyBeginAllowThreads();
25795 wxListItemAttr_Destroy(arg1);
25796 wxPyEndAllowThreads(__tstate);
25797 if (PyErr_Occurred()) SWIG_fail;
25798 }
25799 resultobj = SWIG_Py_Void();
25800 return resultobj;
25801 fail:
25802 return NULL;
25803 }
25804
25805
25806 SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25807 PyObject *obj;
25808 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25809 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
25810 return SWIG_Py_Void();
25811 }
25812
25813 SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25814 return SWIG_Python_InitShadowInstance(args);
25815 }
25816
25817 SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25818 PyObject *resultobj = 0;
25819 wxListItem *result = 0 ;
25820
25821 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
25822 {
25823 PyThreadState* __tstate = wxPyBeginAllowThreads();
25824 result = (wxListItem *)new wxListItem();
25825 wxPyEndAllowThreads(__tstate);
25826 if (PyErr_Occurred()) SWIG_fail;
25827 }
25828 {
25829 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
25830 }
25831 return resultobj;
25832 fail:
25833 return NULL;
25834 }
25835
25836
25837 SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25838 PyObject *resultobj = 0;
25839 wxListItem *arg1 = (wxListItem *) 0 ;
25840 void *argp1 = 0 ;
25841 int res1 = 0 ;
25842 PyObject *swig_obj[1] ;
25843
25844 if (!args) SWIG_fail;
25845 swig_obj[0] = args;
25846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
25847 if (!SWIG_IsOK(res1)) {
25848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
25849 }
25850 arg1 = reinterpret_cast< wxListItem * >(argp1);
25851 {
25852 PyThreadState* __tstate = wxPyBeginAllowThreads();
25853 delete arg1;
25854
25855 wxPyEndAllowThreads(__tstate);
25856 if (PyErr_Occurred()) SWIG_fail;
25857 }
25858 resultobj = SWIG_Py_Void();
25859 return resultobj;
25860 fail:
25861 return NULL;
25862 }
25863
25864
25865 SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25866 PyObject *resultobj = 0;
25867 wxListItem *arg1 = (wxListItem *) 0 ;
25868 void *argp1 = 0 ;
25869 int res1 = 0 ;
25870 PyObject *swig_obj[1] ;
25871
25872 if (!args) SWIG_fail;
25873 swig_obj[0] = args;
25874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
25875 if (!SWIG_IsOK(res1)) {
25876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
25877 }
25878 arg1 = reinterpret_cast< wxListItem * >(argp1);
25879 {
25880 PyThreadState* __tstate = wxPyBeginAllowThreads();
25881 (arg1)->Clear();
25882 wxPyEndAllowThreads(__tstate);
25883 if (PyErr_Occurred()) SWIG_fail;
25884 }
25885 resultobj = SWIG_Py_Void();
25886 return resultobj;
25887 fail:
25888 return NULL;
25889 }
25890
25891
25892 SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25893 PyObject *resultobj = 0;
25894 wxListItem *arg1 = (wxListItem *) 0 ;
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_wxListItem, 0 | 0 );
25902 if (!SWIG_IsOK(res1)) {
25903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
25904 }
25905 arg1 = reinterpret_cast< wxListItem * >(argp1);
25906 {
25907 PyThreadState* __tstate = wxPyBeginAllowThreads();
25908 (arg1)->ClearAttributes();
25909 wxPyEndAllowThreads(__tstate);
25910 if (PyErr_Occurred()) SWIG_fail;
25911 }
25912 resultobj = SWIG_Py_Void();
25913 return resultobj;
25914 fail:
25915 return NULL;
25916 }
25917
25918
25919 SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25920 PyObject *resultobj = 0;
25921 wxListItem *arg1 = (wxListItem *) 0 ;
25922 long arg2 ;
25923 void *argp1 = 0 ;
25924 int res1 = 0 ;
25925 long val2 ;
25926 int ecode2 = 0 ;
25927 PyObject * obj0 = 0 ;
25928 PyObject * obj1 = 0 ;
25929 char * kwnames[] = {
25930 (char *) "self",(char *) "mask", NULL
25931 };
25932
25933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
25934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
25935 if (!SWIG_IsOK(res1)) {
25936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
25937 }
25938 arg1 = reinterpret_cast< wxListItem * >(argp1);
25939 ecode2 = SWIG_AsVal_long(obj1, &val2);
25940 if (!SWIG_IsOK(ecode2)) {
25941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
25942 }
25943 arg2 = static_cast< long >(val2);
25944 {
25945 PyThreadState* __tstate = wxPyBeginAllowThreads();
25946 (arg1)->SetMask(arg2);
25947 wxPyEndAllowThreads(__tstate);
25948 if (PyErr_Occurred()) SWIG_fail;
25949 }
25950 resultobj = SWIG_Py_Void();
25951 return resultobj;
25952 fail:
25953 return NULL;
25954 }
25955
25956
25957 SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25958 PyObject *resultobj = 0;
25959 wxListItem *arg1 = (wxListItem *) 0 ;
25960 long arg2 ;
25961 void *argp1 = 0 ;
25962 int res1 = 0 ;
25963 long val2 ;
25964 int ecode2 = 0 ;
25965 PyObject * obj0 = 0 ;
25966 PyObject * obj1 = 0 ;
25967 char * kwnames[] = {
25968 (char *) "self",(char *) "id", NULL
25969 };
25970
25971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
25972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
25973 if (!SWIG_IsOK(res1)) {
25974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
25975 }
25976 arg1 = reinterpret_cast< wxListItem * >(argp1);
25977 ecode2 = SWIG_AsVal_long(obj1, &val2);
25978 if (!SWIG_IsOK(ecode2)) {
25979 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
25980 }
25981 arg2 = static_cast< long >(val2);
25982 {
25983 PyThreadState* __tstate = wxPyBeginAllowThreads();
25984 (arg1)->SetId(arg2);
25985 wxPyEndAllowThreads(__tstate);
25986 if (PyErr_Occurred()) SWIG_fail;
25987 }
25988 resultobj = SWIG_Py_Void();
25989 return resultobj;
25990 fail:
25991 return NULL;
25992 }
25993
25994
25995 SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25996 PyObject *resultobj = 0;
25997 wxListItem *arg1 = (wxListItem *) 0 ;
25998 int arg2 ;
25999 void *argp1 = 0 ;
26000 int res1 = 0 ;
26001 int val2 ;
26002 int ecode2 = 0 ;
26003 PyObject * obj0 = 0 ;
26004 PyObject * obj1 = 0 ;
26005 char * kwnames[] = {
26006 (char *) "self",(char *) "col", NULL
26007 };
26008
26009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26011 if (!SWIG_IsOK(res1)) {
26012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26013 }
26014 arg1 = reinterpret_cast< wxListItem * >(argp1);
26015 ecode2 = SWIG_AsVal_int(obj1, &val2);
26016 if (!SWIG_IsOK(ecode2)) {
26017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26018 }
26019 arg2 = static_cast< int >(val2);
26020 {
26021 PyThreadState* __tstate = wxPyBeginAllowThreads();
26022 (arg1)->SetColumn(arg2);
26023 wxPyEndAllowThreads(__tstate);
26024 if (PyErr_Occurred()) SWIG_fail;
26025 }
26026 resultobj = SWIG_Py_Void();
26027 return resultobj;
26028 fail:
26029 return NULL;
26030 }
26031
26032
26033 SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26034 PyObject *resultobj = 0;
26035 wxListItem *arg1 = (wxListItem *) 0 ;
26036 long arg2 ;
26037 void *argp1 = 0 ;
26038 int res1 = 0 ;
26039 long val2 ;
26040 int ecode2 = 0 ;
26041 PyObject * obj0 = 0 ;
26042 PyObject * obj1 = 0 ;
26043 char * kwnames[] = {
26044 (char *) "self",(char *) "state", NULL
26045 };
26046
26047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26049 if (!SWIG_IsOK(res1)) {
26050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26051 }
26052 arg1 = reinterpret_cast< wxListItem * >(argp1);
26053 ecode2 = SWIG_AsVal_long(obj1, &val2);
26054 if (!SWIG_IsOK(ecode2)) {
26055 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26056 }
26057 arg2 = static_cast< long >(val2);
26058 {
26059 PyThreadState* __tstate = wxPyBeginAllowThreads();
26060 (arg1)->SetState(arg2);
26061 wxPyEndAllowThreads(__tstate);
26062 if (PyErr_Occurred()) SWIG_fail;
26063 }
26064 resultobj = SWIG_Py_Void();
26065 return resultobj;
26066 fail:
26067 return NULL;
26068 }
26069
26070
26071 SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26072 PyObject *resultobj = 0;
26073 wxListItem *arg1 = (wxListItem *) 0 ;
26074 long arg2 ;
26075 void *argp1 = 0 ;
26076 int res1 = 0 ;
26077 long val2 ;
26078 int ecode2 = 0 ;
26079 PyObject * obj0 = 0 ;
26080 PyObject * obj1 = 0 ;
26081 char * kwnames[] = {
26082 (char *) "self",(char *) "stateMask", NULL
26083 };
26084
26085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26087 if (!SWIG_IsOK(res1)) {
26088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26089 }
26090 arg1 = reinterpret_cast< wxListItem * >(argp1);
26091 ecode2 = SWIG_AsVal_long(obj1, &val2);
26092 if (!SWIG_IsOK(ecode2)) {
26093 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26094 }
26095 arg2 = static_cast< long >(val2);
26096 {
26097 PyThreadState* __tstate = wxPyBeginAllowThreads();
26098 (arg1)->SetStateMask(arg2);
26099 wxPyEndAllowThreads(__tstate);
26100 if (PyErr_Occurred()) SWIG_fail;
26101 }
26102 resultobj = SWIG_Py_Void();
26103 return resultobj;
26104 fail:
26105 return NULL;
26106 }
26107
26108
26109 SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26110 PyObject *resultobj = 0;
26111 wxListItem *arg1 = (wxListItem *) 0 ;
26112 wxString *arg2 = 0 ;
26113 void *argp1 = 0 ;
26114 int res1 = 0 ;
26115 bool temp2 = false ;
26116 PyObject * obj0 = 0 ;
26117 PyObject * obj1 = 0 ;
26118 char * kwnames[] = {
26119 (char *) "self",(char *) "text", NULL
26120 };
26121
26122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26124 if (!SWIG_IsOK(res1)) {
26125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26126 }
26127 arg1 = reinterpret_cast< wxListItem * >(argp1);
26128 {
26129 arg2 = wxString_in_helper(obj1);
26130 if (arg2 == NULL) SWIG_fail;
26131 temp2 = true;
26132 }
26133 {
26134 PyThreadState* __tstate = wxPyBeginAllowThreads();
26135 (arg1)->SetText((wxString const &)*arg2);
26136 wxPyEndAllowThreads(__tstate);
26137 if (PyErr_Occurred()) SWIG_fail;
26138 }
26139 resultobj = SWIG_Py_Void();
26140 {
26141 if (temp2)
26142 delete arg2;
26143 }
26144 return resultobj;
26145 fail:
26146 {
26147 if (temp2)
26148 delete arg2;
26149 }
26150 return NULL;
26151 }
26152
26153
26154 SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26155 PyObject *resultobj = 0;
26156 wxListItem *arg1 = (wxListItem *) 0 ;
26157 int arg2 ;
26158 void *argp1 = 0 ;
26159 int res1 = 0 ;
26160 int val2 ;
26161 int ecode2 = 0 ;
26162 PyObject * obj0 = 0 ;
26163 PyObject * obj1 = 0 ;
26164 char * kwnames[] = {
26165 (char *) "self",(char *) "image", NULL
26166 };
26167
26168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26170 if (!SWIG_IsOK(res1)) {
26171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26172 }
26173 arg1 = reinterpret_cast< wxListItem * >(argp1);
26174 ecode2 = SWIG_AsVal_int(obj1, &val2);
26175 if (!SWIG_IsOK(ecode2)) {
26176 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26177 }
26178 arg2 = static_cast< int >(val2);
26179 {
26180 PyThreadState* __tstate = wxPyBeginAllowThreads();
26181 (arg1)->SetImage(arg2);
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_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26193 PyObject *resultobj = 0;
26194 wxListItem *arg1 = (wxListItem *) 0 ;
26195 long arg2 ;
26196 void *argp1 = 0 ;
26197 int res1 = 0 ;
26198 long val2 ;
26199 int ecode2 = 0 ;
26200 PyObject * obj0 = 0 ;
26201 PyObject * obj1 = 0 ;
26202 char * kwnames[] = {
26203 (char *) "self",(char *) "data", NULL
26204 };
26205
26206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26208 if (!SWIG_IsOK(res1)) {
26209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26210 }
26211 arg1 = reinterpret_cast< wxListItem * >(argp1);
26212 ecode2 = SWIG_AsVal_long(obj1, &val2);
26213 if (!SWIG_IsOK(ecode2)) {
26214 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26215 }
26216 arg2 = static_cast< long >(val2);
26217 {
26218 PyThreadState* __tstate = wxPyBeginAllowThreads();
26219 (arg1)->SetData(arg2);
26220 wxPyEndAllowThreads(__tstate);
26221 if (PyErr_Occurred()) SWIG_fail;
26222 }
26223 resultobj = SWIG_Py_Void();
26224 return resultobj;
26225 fail:
26226 return NULL;
26227 }
26228
26229
26230 SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26231 PyObject *resultobj = 0;
26232 wxListItem *arg1 = (wxListItem *) 0 ;
26233 int arg2 ;
26234 void *argp1 = 0 ;
26235 int res1 = 0 ;
26236 int val2 ;
26237 int ecode2 = 0 ;
26238 PyObject * obj0 = 0 ;
26239 PyObject * obj1 = 0 ;
26240 char * kwnames[] = {
26241 (char *) "self",(char *) "width", NULL
26242 };
26243
26244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26246 if (!SWIG_IsOK(res1)) {
26247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26248 }
26249 arg1 = reinterpret_cast< wxListItem * >(argp1);
26250 ecode2 = SWIG_AsVal_int(obj1, &val2);
26251 if (!SWIG_IsOK(ecode2)) {
26252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26253 }
26254 arg2 = static_cast< int >(val2);
26255 {
26256 PyThreadState* __tstate = wxPyBeginAllowThreads();
26257 (arg1)->SetWidth(arg2);
26258 wxPyEndAllowThreads(__tstate);
26259 if (PyErr_Occurred()) SWIG_fail;
26260 }
26261 resultobj = SWIG_Py_Void();
26262 return resultobj;
26263 fail:
26264 return NULL;
26265 }
26266
26267
26268 SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26269 PyObject *resultobj = 0;
26270 wxListItem *arg1 = (wxListItem *) 0 ;
26271 wxListColumnFormat arg2 ;
26272 void *argp1 = 0 ;
26273 int res1 = 0 ;
26274 int val2 ;
26275 int ecode2 = 0 ;
26276 PyObject * obj0 = 0 ;
26277 PyObject * obj1 = 0 ;
26278 char * kwnames[] = {
26279 (char *) "self",(char *) "align", NULL
26280 };
26281
26282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26284 if (!SWIG_IsOK(res1)) {
26285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26286 }
26287 arg1 = reinterpret_cast< wxListItem * >(argp1);
26288 ecode2 = SWIG_AsVal_int(obj1, &val2);
26289 if (!SWIG_IsOK(ecode2)) {
26290 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26291 }
26292 arg2 = static_cast< wxListColumnFormat >(val2);
26293 {
26294 PyThreadState* __tstate = wxPyBeginAllowThreads();
26295 (arg1)->SetAlign(arg2);
26296 wxPyEndAllowThreads(__tstate);
26297 if (PyErr_Occurred()) SWIG_fail;
26298 }
26299 resultobj = SWIG_Py_Void();
26300 return resultobj;
26301 fail:
26302 return NULL;
26303 }
26304
26305
26306 SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26307 PyObject *resultobj = 0;
26308 wxListItem *arg1 = (wxListItem *) 0 ;
26309 wxColour *arg2 = 0 ;
26310 void *argp1 = 0 ;
26311 int res1 = 0 ;
26312 wxColour temp2 ;
26313 PyObject * obj0 = 0 ;
26314 PyObject * obj1 = 0 ;
26315 char * kwnames[] = {
26316 (char *) "self",(char *) "colText", NULL
26317 };
26318
26319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26321 if (!SWIG_IsOK(res1)) {
26322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26323 }
26324 arg1 = reinterpret_cast< wxListItem * >(argp1);
26325 {
26326 arg2 = &temp2;
26327 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26328 }
26329 {
26330 PyThreadState* __tstate = wxPyBeginAllowThreads();
26331 (arg1)->SetTextColour((wxColour const &)*arg2);
26332 wxPyEndAllowThreads(__tstate);
26333 if (PyErr_Occurred()) SWIG_fail;
26334 }
26335 resultobj = SWIG_Py_Void();
26336 return resultobj;
26337 fail:
26338 return NULL;
26339 }
26340
26341
26342 SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26343 PyObject *resultobj = 0;
26344 wxListItem *arg1 = (wxListItem *) 0 ;
26345 wxColour *arg2 = 0 ;
26346 void *argp1 = 0 ;
26347 int res1 = 0 ;
26348 wxColour temp2 ;
26349 PyObject * obj0 = 0 ;
26350 PyObject * obj1 = 0 ;
26351 char * kwnames[] = {
26352 (char *) "self",(char *) "colBack", NULL
26353 };
26354
26355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26357 if (!SWIG_IsOK(res1)) {
26358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26359 }
26360 arg1 = reinterpret_cast< wxListItem * >(argp1);
26361 {
26362 arg2 = &temp2;
26363 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26364 }
26365 {
26366 PyThreadState* __tstate = wxPyBeginAllowThreads();
26367 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26368 wxPyEndAllowThreads(__tstate);
26369 if (PyErr_Occurred()) SWIG_fail;
26370 }
26371 resultobj = SWIG_Py_Void();
26372 return resultobj;
26373 fail:
26374 return NULL;
26375 }
26376
26377
26378 SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26379 PyObject *resultobj = 0;
26380 wxListItem *arg1 = (wxListItem *) 0 ;
26381 wxFont *arg2 = 0 ;
26382 void *argp1 = 0 ;
26383 int res1 = 0 ;
26384 void *argp2 = 0 ;
26385 int res2 = 0 ;
26386 PyObject * obj0 = 0 ;
26387 PyObject * obj1 = 0 ;
26388 char * kwnames[] = {
26389 (char *) "self",(char *) "font", NULL
26390 };
26391
26392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26394 if (!SWIG_IsOK(res1)) {
26395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
26396 }
26397 arg1 = reinterpret_cast< wxListItem * >(argp1);
26398 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26399 if (!SWIG_IsOK(res2)) {
26400 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26401 }
26402 if (!argp2) {
26403 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26404 }
26405 arg2 = reinterpret_cast< wxFont * >(argp2);
26406 {
26407 PyThreadState* __tstate = wxPyBeginAllowThreads();
26408 (arg1)->SetFont((wxFont const &)*arg2);
26409 wxPyEndAllowThreads(__tstate);
26410 if (PyErr_Occurred()) SWIG_fail;
26411 }
26412 resultobj = SWIG_Py_Void();
26413 return resultobj;
26414 fail:
26415 return NULL;
26416 }
26417
26418
26419 SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26420 PyObject *resultobj = 0;
26421 wxListItem *arg1 = (wxListItem *) 0 ;
26422 long result;
26423 void *argp1 = 0 ;
26424 int res1 = 0 ;
26425 PyObject *swig_obj[1] ;
26426
26427 if (!args) SWIG_fail;
26428 swig_obj[0] = args;
26429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26430 if (!SWIG_IsOK(res1)) {
26431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26432 }
26433 arg1 = reinterpret_cast< wxListItem * >(argp1);
26434 {
26435 PyThreadState* __tstate = wxPyBeginAllowThreads();
26436 result = (long)(arg1)->GetMask();
26437 wxPyEndAllowThreads(__tstate);
26438 if (PyErr_Occurred()) SWIG_fail;
26439 }
26440 resultobj = SWIG_From_long(static_cast< long >(result));
26441 return resultobj;
26442 fail:
26443 return NULL;
26444 }
26445
26446
26447 SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26448 PyObject *resultobj = 0;
26449 wxListItem *arg1 = (wxListItem *) 0 ;
26450 long result;
26451 void *argp1 = 0 ;
26452 int res1 = 0 ;
26453 PyObject *swig_obj[1] ;
26454
26455 if (!args) SWIG_fail;
26456 swig_obj[0] = args;
26457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26458 if (!SWIG_IsOK(res1)) {
26459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26460 }
26461 arg1 = reinterpret_cast< wxListItem * >(argp1);
26462 {
26463 PyThreadState* __tstate = wxPyBeginAllowThreads();
26464 result = (long)(arg1)->GetId();
26465 wxPyEndAllowThreads(__tstate);
26466 if (PyErr_Occurred()) SWIG_fail;
26467 }
26468 resultobj = SWIG_From_long(static_cast< long >(result));
26469 return resultobj;
26470 fail:
26471 return NULL;
26472 }
26473
26474
26475 SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26476 PyObject *resultobj = 0;
26477 wxListItem *arg1 = (wxListItem *) 0 ;
26478 int result;
26479 void *argp1 = 0 ;
26480 int res1 = 0 ;
26481 PyObject *swig_obj[1] ;
26482
26483 if (!args) SWIG_fail;
26484 swig_obj[0] = args;
26485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26486 if (!SWIG_IsOK(res1)) {
26487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26488 }
26489 arg1 = reinterpret_cast< wxListItem * >(argp1);
26490 {
26491 PyThreadState* __tstate = wxPyBeginAllowThreads();
26492 result = (int)(arg1)->GetColumn();
26493 wxPyEndAllowThreads(__tstate);
26494 if (PyErr_Occurred()) SWIG_fail;
26495 }
26496 resultobj = SWIG_From_int(static_cast< int >(result));
26497 return resultobj;
26498 fail:
26499 return NULL;
26500 }
26501
26502
26503 SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26504 PyObject *resultobj = 0;
26505 wxListItem *arg1 = (wxListItem *) 0 ;
26506 long result;
26507 void *argp1 = 0 ;
26508 int res1 = 0 ;
26509 PyObject *swig_obj[1] ;
26510
26511 if (!args) SWIG_fail;
26512 swig_obj[0] = args;
26513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26514 if (!SWIG_IsOK(res1)) {
26515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26516 }
26517 arg1 = reinterpret_cast< wxListItem * >(argp1);
26518 {
26519 PyThreadState* __tstate = wxPyBeginAllowThreads();
26520 result = (long)(arg1)->GetState();
26521 wxPyEndAllowThreads(__tstate);
26522 if (PyErr_Occurred()) SWIG_fail;
26523 }
26524 resultobj = SWIG_From_long(static_cast< long >(result));
26525 return resultobj;
26526 fail:
26527 return NULL;
26528 }
26529
26530
26531 SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26532 PyObject *resultobj = 0;
26533 wxListItem *arg1 = (wxListItem *) 0 ;
26534 wxString *result = 0 ;
26535 void *argp1 = 0 ;
26536 int res1 = 0 ;
26537 PyObject *swig_obj[1] ;
26538
26539 if (!args) SWIG_fail;
26540 swig_obj[0] = args;
26541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26542 if (!SWIG_IsOK(res1)) {
26543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26544 }
26545 arg1 = reinterpret_cast< wxListItem * >(argp1);
26546 {
26547 PyThreadState* __tstate = wxPyBeginAllowThreads();
26548 {
26549 wxString const &_result_ref = (arg1)->GetText();
26550 result = (wxString *) &_result_ref;
26551 }
26552 wxPyEndAllowThreads(__tstate);
26553 if (PyErr_Occurred()) SWIG_fail;
26554 }
26555 {
26556 #if wxUSE_UNICODE
26557 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
26558 #else
26559 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
26560 #endif
26561 }
26562 return resultobj;
26563 fail:
26564 return NULL;
26565 }
26566
26567
26568 SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26569 PyObject *resultobj = 0;
26570 wxListItem *arg1 = (wxListItem *) 0 ;
26571 int result;
26572 void *argp1 = 0 ;
26573 int res1 = 0 ;
26574 PyObject *swig_obj[1] ;
26575
26576 if (!args) SWIG_fail;
26577 swig_obj[0] = args;
26578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26579 if (!SWIG_IsOK(res1)) {
26580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26581 }
26582 arg1 = reinterpret_cast< wxListItem * >(argp1);
26583 {
26584 PyThreadState* __tstate = wxPyBeginAllowThreads();
26585 result = (int)(arg1)->GetImage();
26586 wxPyEndAllowThreads(__tstate);
26587 if (PyErr_Occurred()) SWIG_fail;
26588 }
26589 resultobj = SWIG_From_int(static_cast< int >(result));
26590 return resultobj;
26591 fail:
26592 return NULL;
26593 }
26594
26595
26596 SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26597 PyObject *resultobj = 0;
26598 wxListItem *arg1 = (wxListItem *) 0 ;
26599 long result;
26600 void *argp1 = 0 ;
26601 int res1 = 0 ;
26602 PyObject *swig_obj[1] ;
26603
26604 if (!args) SWIG_fail;
26605 swig_obj[0] = args;
26606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26607 if (!SWIG_IsOK(res1)) {
26608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26609 }
26610 arg1 = reinterpret_cast< wxListItem * >(argp1);
26611 {
26612 PyThreadState* __tstate = wxPyBeginAllowThreads();
26613 result = (long)(arg1)->GetData();
26614 wxPyEndAllowThreads(__tstate);
26615 if (PyErr_Occurred()) SWIG_fail;
26616 }
26617 resultobj = SWIG_From_long(static_cast< long >(result));
26618 return resultobj;
26619 fail:
26620 return NULL;
26621 }
26622
26623
26624 SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26625 PyObject *resultobj = 0;
26626 wxListItem *arg1 = (wxListItem *) 0 ;
26627 int result;
26628 void *argp1 = 0 ;
26629 int res1 = 0 ;
26630 PyObject *swig_obj[1] ;
26631
26632 if (!args) SWIG_fail;
26633 swig_obj[0] = args;
26634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26635 if (!SWIG_IsOK(res1)) {
26636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26637 }
26638 arg1 = reinterpret_cast< wxListItem * >(argp1);
26639 {
26640 PyThreadState* __tstate = wxPyBeginAllowThreads();
26641 result = (int)(arg1)->GetWidth();
26642 wxPyEndAllowThreads(__tstate);
26643 if (PyErr_Occurred()) SWIG_fail;
26644 }
26645 resultobj = SWIG_From_int(static_cast< int >(result));
26646 return resultobj;
26647 fail:
26648 return NULL;
26649 }
26650
26651
26652 SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26653 PyObject *resultobj = 0;
26654 wxListItem *arg1 = (wxListItem *) 0 ;
26655 wxListColumnFormat result;
26656 void *argp1 = 0 ;
26657 int res1 = 0 ;
26658 PyObject *swig_obj[1] ;
26659
26660 if (!args) SWIG_fail;
26661 swig_obj[0] = args;
26662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26663 if (!SWIG_IsOK(res1)) {
26664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26665 }
26666 arg1 = reinterpret_cast< wxListItem * >(argp1);
26667 {
26668 PyThreadState* __tstate = wxPyBeginAllowThreads();
26669 result = (wxListColumnFormat)(arg1)->GetAlign();
26670 wxPyEndAllowThreads(__tstate);
26671 if (PyErr_Occurred()) SWIG_fail;
26672 }
26673 resultobj = SWIG_From_int(static_cast< int >(result));
26674 return resultobj;
26675 fail:
26676 return NULL;
26677 }
26678
26679
26680 SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26681 PyObject *resultobj = 0;
26682 wxListItem *arg1 = (wxListItem *) 0 ;
26683 wxListItemAttr *result = 0 ;
26684 void *argp1 = 0 ;
26685 int res1 = 0 ;
26686 PyObject *swig_obj[1] ;
26687
26688 if (!args) SWIG_fail;
26689 swig_obj[0] = args;
26690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26691 if (!SWIG_IsOK(res1)) {
26692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26693 }
26694 arg1 = reinterpret_cast< wxListItem * >(argp1);
26695 {
26696 PyThreadState* __tstate = wxPyBeginAllowThreads();
26697 result = (wxListItemAttr *)(arg1)->GetAttributes();
26698 wxPyEndAllowThreads(__tstate);
26699 if (PyErr_Occurred()) SWIG_fail;
26700 }
26701 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26702 return resultobj;
26703 fail:
26704 return NULL;
26705 }
26706
26707
26708 SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26709 PyObject *resultobj = 0;
26710 wxListItem *arg1 = (wxListItem *) 0 ;
26711 bool result;
26712 void *argp1 = 0 ;
26713 int res1 = 0 ;
26714 PyObject *swig_obj[1] ;
26715
26716 if (!args) SWIG_fail;
26717 swig_obj[0] = args;
26718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26719 if (!SWIG_IsOK(res1)) {
26720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26721 }
26722 arg1 = reinterpret_cast< wxListItem * >(argp1);
26723 {
26724 PyThreadState* __tstate = wxPyBeginAllowThreads();
26725 result = (bool)(arg1)->HasAttributes();
26726 wxPyEndAllowThreads(__tstate);
26727 if (PyErr_Occurred()) SWIG_fail;
26728 }
26729 {
26730 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26731 }
26732 return resultobj;
26733 fail:
26734 return NULL;
26735 }
26736
26737
26738 SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26739 PyObject *resultobj = 0;
26740 wxListItem *arg1 = (wxListItem *) 0 ;
26741 wxColour result;
26742 void *argp1 = 0 ;
26743 int res1 = 0 ;
26744 PyObject *swig_obj[1] ;
26745
26746 if (!args) SWIG_fail;
26747 swig_obj[0] = args;
26748 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26749 if (!SWIG_IsOK(res1)) {
26750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
26751 }
26752 arg1 = reinterpret_cast< wxListItem * >(argp1);
26753 {
26754 PyThreadState* __tstate = wxPyBeginAllowThreads();
26755 result = ((wxListItem const *)arg1)->GetTextColour();
26756 wxPyEndAllowThreads(__tstate);
26757 if (PyErr_Occurred()) SWIG_fail;
26758 }
26759 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26760 return resultobj;
26761 fail:
26762 return NULL;
26763 }
26764
26765
26766 SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26767 PyObject *resultobj = 0;
26768 wxListItem *arg1 = (wxListItem *) 0 ;
26769 wxColour result;
26770 void *argp1 = 0 ;
26771 int res1 = 0 ;
26772 PyObject *swig_obj[1] ;
26773
26774 if (!args) SWIG_fail;
26775 swig_obj[0] = args;
26776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26777 if (!SWIG_IsOK(res1)) {
26778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
26779 }
26780 arg1 = reinterpret_cast< wxListItem * >(argp1);
26781 {
26782 PyThreadState* __tstate = wxPyBeginAllowThreads();
26783 result = ((wxListItem const *)arg1)->GetBackgroundColour();
26784 wxPyEndAllowThreads(__tstate);
26785 if (PyErr_Occurred()) SWIG_fail;
26786 }
26787 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26788 return resultobj;
26789 fail:
26790 return NULL;
26791 }
26792
26793
26794 SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26795 PyObject *resultobj = 0;
26796 wxListItem *arg1 = (wxListItem *) 0 ;
26797 wxFont result;
26798 void *argp1 = 0 ;
26799 int res1 = 0 ;
26800 PyObject *swig_obj[1] ;
26801
26802 if (!args) SWIG_fail;
26803 swig_obj[0] = args;
26804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26805 if (!SWIG_IsOK(res1)) {
26806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
26807 }
26808 arg1 = reinterpret_cast< wxListItem * >(argp1);
26809 {
26810 PyThreadState* __tstate = wxPyBeginAllowThreads();
26811 result = ((wxListItem const *)arg1)->GetFont();
26812 wxPyEndAllowThreads(__tstate);
26813 if (PyErr_Occurred()) SWIG_fail;
26814 }
26815 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26816 return resultobj;
26817 fail:
26818 return NULL;
26819 }
26820
26821
26822 SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26823 PyObject *resultobj = 0;
26824 wxListItem *arg1 = (wxListItem *) 0 ;
26825 long arg2 ;
26826 void *argp1 = 0 ;
26827 int res1 = 0 ;
26828 long val2 ;
26829 int ecode2 = 0 ;
26830 PyObject *swig_obj[2] ;
26831
26832 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
26833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26834 if (!SWIG_IsOK(res1)) {
26835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
26836 }
26837 arg1 = reinterpret_cast< wxListItem * >(argp1);
26838 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
26839 if (!SWIG_IsOK(ecode2)) {
26840 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
26841 }
26842 arg2 = static_cast< long >(val2);
26843 if (arg1) (arg1)->m_mask = arg2;
26844
26845 resultobj = SWIG_Py_Void();
26846 return resultobj;
26847 fail:
26848 return NULL;
26849 }
26850
26851
26852 SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26853 PyObject *resultobj = 0;
26854 wxListItem *arg1 = (wxListItem *) 0 ;
26855 long result;
26856 void *argp1 = 0 ;
26857 int res1 = 0 ;
26858 PyObject *swig_obj[1] ;
26859
26860 if (!args) SWIG_fail;
26861 swig_obj[0] = args;
26862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26863 if (!SWIG_IsOK(res1)) {
26864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
26865 }
26866 arg1 = reinterpret_cast< wxListItem * >(argp1);
26867 result = (long) ((arg1)->m_mask);
26868 resultobj = SWIG_From_long(static_cast< long >(result));
26869 return resultobj;
26870 fail:
26871 return NULL;
26872 }
26873
26874
26875 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26876 PyObject *resultobj = 0;
26877 wxListItem *arg1 = (wxListItem *) 0 ;
26878 long arg2 ;
26879 void *argp1 = 0 ;
26880 int res1 = 0 ;
26881 long val2 ;
26882 int ecode2 = 0 ;
26883 PyObject *swig_obj[2] ;
26884
26885 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
26886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26887 if (!SWIG_IsOK(res1)) {
26888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
26889 }
26890 arg1 = reinterpret_cast< wxListItem * >(argp1);
26891 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
26892 if (!SWIG_IsOK(ecode2)) {
26893 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
26894 }
26895 arg2 = static_cast< long >(val2);
26896 if (arg1) (arg1)->m_itemId = arg2;
26897
26898 resultobj = SWIG_Py_Void();
26899 return resultobj;
26900 fail:
26901 return NULL;
26902 }
26903
26904
26905 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26906 PyObject *resultobj = 0;
26907 wxListItem *arg1 = (wxListItem *) 0 ;
26908 long result;
26909 void *argp1 = 0 ;
26910 int res1 = 0 ;
26911 PyObject *swig_obj[1] ;
26912
26913 if (!args) SWIG_fail;
26914 swig_obj[0] = args;
26915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26916 if (!SWIG_IsOK(res1)) {
26917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
26918 }
26919 arg1 = reinterpret_cast< wxListItem * >(argp1);
26920 result = (long) ((arg1)->m_itemId);
26921 resultobj = SWIG_From_long(static_cast< long >(result));
26922 return resultobj;
26923 fail:
26924 return NULL;
26925 }
26926
26927
26928 SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26929 PyObject *resultobj = 0;
26930 wxListItem *arg1 = (wxListItem *) 0 ;
26931 int arg2 ;
26932 void *argp1 = 0 ;
26933 int res1 = 0 ;
26934 int val2 ;
26935 int ecode2 = 0 ;
26936 PyObject *swig_obj[2] ;
26937
26938 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
26939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26940 if (!SWIG_IsOK(res1)) {
26941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
26942 }
26943 arg1 = reinterpret_cast< wxListItem * >(argp1);
26944 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
26945 if (!SWIG_IsOK(ecode2)) {
26946 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
26947 }
26948 arg2 = static_cast< int >(val2);
26949 if (arg1) (arg1)->m_col = arg2;
26950
26951 resultobj = SWIG_Py_Void();
26952 return resultobj;
26953 fail:
26954 return NULL;
26955 }
26956
26957
26958 SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26959 PyObject *resultobj = 0;
26960 wxListItem *arg1 = (wxListItem *) 0 ;
26961 int result;
26962 void *argp1 = 0 ;
26963 int res1 = 0 ;
26964 PyObject *swig_obj[1] ;
26965
26966 if (!args) SWIG_fail;
26967 swig_obj[0] = args;
26968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26969 if (!SWIG_IsOK(res1)) {
26970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
26971 }
26972 arg1 = reinterpret_cast< wxListItem * >(argp1);
26973 result = (int) ((arg1)->m_col);
26974 resultobj = SWIG_From_int(static_cast< int >(result));
26975 return resultobj;
26976 fail:
26977 return NULL;
26978 }
26979
26980
26981 SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26982 PyObject *resultobj = 0;
26983 wxListItem *arg1 = (wxListItem *) 0 ;
26984 long arg2 ;
26985 void *argp1 = 0 ;
26986 int res1 = 0 ;
26987 long val2 ;
26988 int ecode2 = 0 ;
26989 PyObject *swig_obj[2] ;
26990
26991 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
26992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26993 if (!SWIG_IsOK(res1)) {
26994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
26995 }
26996 arg1 = reinterpret_cast< wxListItem * >(argp1);
26997 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
26998 if (!SWIG_IsOK(ecode2)) {
26999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27000 }
27001 arg2 = static_cast< long >(val2);
27002 if (arg1) (arg1)->m_state = arg2;
27003
27004 resultobj = SWIG_Py_Void();
27005 return resultobj;
27006 fail:
27007 return NULL;
27008 }
27009
27010
27011 SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27012 PyObject *resultobj = 0;
27013 wxListItem *arg1 = (wxListItem *) 0 ;
27014 long result;
27015 void *argp1 = 0 ;
27016 int res1 = 0 ;
27017 PyObject *swig_obj[1] ;
27018
27019 if (!args) SWIG_fail;
27020 swig_obj[0] = args;
27021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27022 if (!SWIG_IsOK(res1)) {
27023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27024 }
27025 arg1 = reinterpret_cast< wxListItem * >(argp1);
27026 result = (long) ((arg1)->m_state);
27027 resultobj = SWIG_From_long(static_cast< long >(result));
27028 return resultobj;
27029 fail:
27030 return NULL;
27031 }
27032
27033
27034 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27035 PyObject *resultobj = 0;
27036 wxListItem *arg1 = (wxListItem *) 0 ;
27037 long arg2 ;
27038 void *argp1 = 0 ;
27039 int res1 = 0 ;
27040 long val2 ;
27041 int ecode2 = 0 ;
27042 PyObject *swig_obj[2] ;
27043
27044 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
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_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27048 }
27049 arg1 = reinterpret_cast< wxListItem * >(argp1);
27050 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27051 if (!SWIG_IsOK(ecode2)) {
27052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27053 }
27054 arg2 = static_cast< long >(val2);
27055 if (arg1) (arg1)->m_stateMask = arg2;
27056
27057 resultobj = SWIG_Py_Void();
27058 return resultobj;
27059 fail:
27060 return NULL;
27061 }
27062
27063
27064 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27065 PyObject *resultobj = 0;
27066 wxListItem *arg1 = (wxListItem *) 0 ;
27067 long result;
27068 void *argp1 = 0 ;
27069 int res1 = 0 ;
27070 PyObject *swig_obj[1] ;
27071
27072 if (!args) SWIG_fail;
27073 swig_obj[0] = args;
27074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27075 if (!SWIG_IsOK(res1)) {
27076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27077 }
27078 arg1 = reinterpret_cast< wxListItem * >(argp1);
27079 result = (long) ((arg1)->m_stateMask);
27080 resultobj = SWIG_From_long(static_cast< long >(result));
27081 return resultobj;
27082 fail:
27083 return NULL;
27084 }
27085
27086
27087 SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27088 PyObject *resultobj = 0;
27089 wxListItem *arg1 = (wxListItem *) 0 ;
27090 wxString *arg2 = (wxString *) 0 ;
27091 void *argp1 = 0 ;
27092 int res1 = 0 ;
27093 bool temp2 = false ;
27094 PyObject *swig_obj[2] ;
27095
27096 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27098 if (!SWIG_IsOK(res1)) {
27099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27100 }
27101 arg1 = reinterpret_cast< wxListItem * >(argp1);
27102 {
27103 arg2 = wxString_in_helper(swig_obj[1]);
27104 if (arg2 == NULL) SWIG_fail;
27105 temp2 = true;
27106 }
27107 if (arg1) (arg1)->m_text = *arg2;
27108
27109 resultobj = SWIG_Py_Void();
27110 {
27111 if (temp2)
27112 delete arg2;
27113 }
27114 return resultobj;
27115 fail:
27116 {
27117 if (temp2)
27118 delete arg2;
27119 }
27120 return NULL;
27121 }
27122
27123
27124 SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27125 PyObject *resultobj = 0;
27126 wxListItem *arg1 = (wxListItem *) 0 ;
27127 wxString *result = 0 ;
27128 void *argp1 = 0 ;
27129 int res1 = 0 ;
27130 PyObject *swig_obj[1] ;
27131
27132 if (!args) SWIG_fail;
27133 swig_obj[0] = args;
27134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27135 if (!SWIG_IsOK(res1)) {
27136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27137 }
27138 arg1 = reinterpret_cast< wxListItem * >(argp1);
27139 result = (wxString *)& ((arg1)->m_text);
27140 {
27141 #if wxUSE_UNICODE
27142 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27143 #else
27144 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27145 #endif
27146 }
27147 return resultobj;
27148 fail:
27149 return NULL;
27150 }
27151
27152
27153 SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27154 PyObject *resultobj = 0;
27155 wxListItem *arg1 = (wxListItem *) 0 ;
27156 int arg2 ;
27157 void *argp1 = 0 ;
27158 int res1 = 0 ;
27159 int val2 ;
27160 int ecode2 = 0 ;
27161 PyObject *swig_obj[2] ;
27162
27163 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27165 if (!SWIG_IsOK(res1)) {
27166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27167 }
27168 arg1 = reinterpret_cast< wxListItem * >(argp1);
27169 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27170 if (!SWIG_IsOK(ecode2)) {
27171 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27172 }
27173 arg2 = static_cast< int >(val2);
27174 if (arg1) (arg1)->m_image = arg2;
27175
27176 resultobj = SWIG_Py_Void();
27177 return resultobj;
27178 fail:
27179 return NULL;
27180 }
27181
27182
27183 SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27184 PyObject *resultobj = 0;
27185 wxListItem *arg1 = (wxListItem *) 0 ;
27186 int result;
27187 void *argp1 = 0 ;
27188 int res1 = 0 ;
27189 PyObject *swig_obj[1] ;
27190
27191 if (!args) SWIG_fail;
27192 swig_obj[0] = args;
27193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27194 if (!SWIG_IsOK(res1)) {
27195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27196 }
27197 arg1 = reinterpret_cast< wxListItem * >(argp1);
27198 result = (int) ((arg1)->m_image);
27199 resultobj = SWIG_From_int(static_cast< int >(result));
27200 return resultobj;
27201 fail:
27202 return NULL;
27203 }
27204
27205
27206 SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27207 PyObject *resultobj = 0;
27208 wxListItem *arg1 = (wxListItem *) 0 ;
27209 long arg2 ;
27210 void *argp1 = 0 ;
27211 int res1 = 0 ;
27212 long val2 ;
27213 int ecode2 = 0 ;
27214 PyObject *swig_obj[2] ;
27215
27216 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27218 if (!SWIG_IsOK(res1)) {
27219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27220 }
27221 arg1 = reinterpret_cast< wxListItem * >(argp1);
27222 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27223 if (!SWIG_IsOK(ecode2)) {
27224 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27225 }
27226 arg2 = static_cast< long >(val2);
27227 if (arg1) (arg1)->m_data = arg2;
27228
27229 resultobj = SWIG_Py_Void();
27230 return resultobj;
27231 fail:
27232 return NULL;
27233 }
27234
27235
27236 SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27237 PyObject *resultobj = 0;
27238 wxListItem *arg1 = (wxListItem *) 0 ;
27239 long result;
27240 void *argp1 = 0 ;
27241 int res1 = 0 ;
27242 PyObject *swig_obj[1] ;
27243
27244 if (!args) SWIG_fail;
27245 swig_obj[0] = args;
27246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27247 if (!SWIG_IsOK(res1)) {
27248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27249 }
27250 arg1 = reinterpret_cast< wxListItem * >(argp1);
27251 result = (long) ((arg1)->m_data);
27252 resultobj = SWIG_From_long(static_cast< long >(result));
27253 return resultobj;
27254 fail:
27255 return NULL;
27256 }
27257
27258
27259 SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27260 PyObject *resultobj = 0;
27261 wxListItem *arg1 = (wxListItem *) 0 ;
27262 int arg2 ;
27263 void *argp1 = 0 ;
27264 int res1 = 0 ;
27265 int val2 ;
27266 int ecode2 = 0 ;
27267 PyObject *swig_obj[2] ;
27268
27269 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27271 if (!SWIG_IsOK(res1)) {
27272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27273 }
27274 arg1 = reinterpret_cast< wxListItem * >(argp1);
27275 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27276 if (!SWIG_IsOK(ecode2)) {
27277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27278 }
27279 arg2 = static_cast< int >(val2);
27280 if (arg1) (arg1)->m_format = arg2;
27281
27282 resultobj = SWIG_Py_Void();
27283 return resultobj;
27284 fail:
27285 return NULL;
27286 }
27287
27288
27289 SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27290 PyObject *resultobj = 0;
27291 wxListItem *arg1 = (wxListItem *) 0 ;
27292 int result;
27293 void *argp1 = 0 ;
27294 int res1 = 0 ;
27295 PyObject *swig_obj[1] ;
27296
27297 if (!args) SWIG_fail;
27298 swig_obj[0] = args;
27299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27300 if (!SWIG_IsOK(res1)) {
27301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27302 }
27303 arg1 = reinterpret_cast< wxListItem * >(argp1);
27304 result = (int) ((arg1)->m_format);
27305 resultobj = SWIG_From_int(static_cast< int >(result));
27306 return resultobj;
27307 fail:
27308 return NULL;
27309 }
27310
27311
27312 SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27313 PyObject *resultobj = 0;
27314 wxListItem *arg1 = (wxListItem *) 0 ;
27315 int arg2 ;
27316 void *argp1 = 0 ;
27317 int res1 = 0 ;
27318 int val2 ;
27319 int ecode2 = 0 ;
27320 PyObject *swig_obj[2] ;
27321
27322 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27324 if (!SWIG_IsOK(res1)) {
27325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27326 }
27327 arg1 = reinterpret_cast< wxListItem * >(argp1);
27328 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27329 if (!SWIG_IsOK(ecode2)) {
27330 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27331 }
27332 arg2 = static_cast< int >(val2);
27333 if (arg1) (arg1)->m_width = arg2;
27334
27335 resultobj = SWIG_Py_Void();
27336 return resultobj;
27337 fail:
27338 return NULL;
27339 }
27340
27341
27342 SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27343 PyObject *resultobj = 0;
27344 wxListItem *arg1 = (wxListItem *) 0 ;
27345 int result;
27346 void *argp1 = 0 ;
27347 int res1 = 0 ;
27348 PyObject *swig_obj[1] ;
27349
27350 if (!args) SWIG_fail;
27351 swig_obj[0] = args;
27352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27353 if (!SWIG_IsOK(res1)) {
27354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27355 }
27356 arg1 = reinterpret_cast< wxListItem * >(argp1);
27357 result = (int) ((arg1)->m_width);
27358 resultobj = SWIG_From_int(static_cast< int >(result));
27359 return resultobj;
27360 fail:
27361 return NULL;
27362 }
27363
27364
27365 SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27366 PyObject *obj;
27367 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27368 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27369 return SWIG_Py_Void();
27370 }
27371
27372 SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27373 return SWIG_Python_InitShadowInstance(args);
27374 }
27375
27376 SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27377 PyObject *resultobj = 0;
27378 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27379 int arg2 = (int) 0 ;
27380 wxListEvent *result = 0 ;
27381 int val1 ;
27382 int ecode1 = 0 ;
27383 int val2 ;
27384 int ecode2 = 0 ;
27385 PyObject * obj0 = 0 ;
27386 PyObject * obj1 = 0 ;
27387 char * kwnames[] = {
27388 (char *) "commandType",(char *) "id", NULL
27389 };
27390
27391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27392 if (obj0) {
27393 ecode1 = SWIG_AsVal_int(obj0, &val1);
27394 if (!SWIG_IsOK(ecode1)) {
27395 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
27396 }
27397 arg1 = static_cast< wxEventType >(val1);
27398 }
27399 if (obj1) {
27400 ecode2 = SWIG_AsVal_int(obj1, &val2);
27401 if (!SWIG_IsOK(ecode2)) {
27402 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
27403 }
27404 arg2 = static_cast< int >(val2);
27405 }
27406 {
27407 PyThreadState* __tstate = wxPyBeginAllowThreads();
27408 result = (wxListEvent *)new wxListEvent(arg1,arg2);
27409 wxPyEndAllowThreads(__tstate);
27410 if (PyErr_Occurred()) SWIG_fail;
27411 }
27412 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
27413 return resultobj;
27414 fail:
27415 return NULL;
27416 }
27417
27418
27419 SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27420 PyObject *resultobj = 0;
27421 wxListEvent *arg1 = (wxListEvent *) 0 ;
27422 int arg2 ;
27423 void *argp1 = 0 ;
27424 int res1 = 0 ;
27425 int val2 ;
27426 int ecode2 = 0 ;
27427 PyObject *swig_obj[2] ;
27428
27429 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
27430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27431 if (!SWIG_IsOK(res1)) {
27432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27433 }
27434 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27435 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27436 if (!SWIG_IsOK(ecode2)) {
27437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
27438 }
27439 arg2 = static_cast< int >(val2);
27440 if (arg1) (arg1)->m_code = arg2;
27441
27442 resultobj = SWIG_Py_Void();
27443 return resultobj;
27444 fail:
27445 return NULL;
27446 }
27447
27448
27449 SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27450 PyObject *resultobj = 0;
27451 wxListEvent *arg1 = (wxListEvent *) 0 ;
27452 int result;
27453 void *argp1 = 0 ;
27454 int res1 = 0 ;
27455 PyObject *swig_obj[1] ;
27456
27457 if (!args) SWIG_fail;
27458 swig_obj[0] = args;
27459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27460 if (!SWIG_IsOK(res1)) {
27461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27462 }
27463 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27464 result = (int) ((arg1)->m_code);
27465 resultobj = SWIG_From_int(static_cast< int >(result));
27466 return resultobj;
27467 fail:
27468 return NULL;
27469 }
27470
27471
27472 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27473 PyObject *resultobj = 0;
27474 wxListEvent *arg1 = (wxListEvent *) 0 ;
27475 long arg2 ;
27476 void *argp1 = 0 ;
27477 int res1 = 0 ;
27478 long val2 ;
27479 int ecode2 = 0 ;
27480 PyObject *swig_obj[2] ;
27481
27482 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
27483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27484 if (!SWIG_IsOK(res1)) {
27485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27486 }
27487 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27488 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27489 if (!SWIG_IsOK(ecode2)) {
27490 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
27491 }
27492 arg2 = static_cast< long >(val2);
27493 if (arg1) (arg1)->m_oldItemIndex = arg2;
27494
27495 resultobj = SWIG_Py_Void();
27496 return resultobj;
27497 fail:
27498 return NULL;
27499 }
27500
27501
27502 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27503 PyObject *resultobj = 0;
27504 wxListEvent *arg1 = (wxListEvent *) 0 ;
27505 long result;
27506 void *argp1 = 0 ;
27507 int res1 = 0 ;
27508 PyObject *swig_obj[1] ;
27509
27510 if (!args) SWIG_fail;
27511 swig_obj[0] = args;
27512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27513 if (!SWIG_IsOK(res1)) {
27514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27515 }
27516 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27517 result = (long) ((arg1)->m_oldItemIndex);
27518 resultobj = SWIG_From_long(static_cast< long >(result));
27519 return resultobj;
27520 fail:
27521 return NULL;
27522 }
27523
27524
27525 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27526 PyObject *resultobj = 0;
27527 wxListEvent *arg1 = (wxListEvent *) 0 ;
27528 long arg2 ;
27529 void *argp1 = 0 ;
27530 int res1 = 0 ;
27531 long val2 ;
27532 int ecode2 = 0 ;
27533 PyObject *swig_obj[2] ;
27534
27535 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
27536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27537 if (!SWIG_IsOK(res1)) {
27538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27539 }
27540 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27541 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27542 if (!SWIG_IsOK(ecode2)) {
27543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
27544 }
27545 arg2 = static_cast< long >(val2);
27546 if (arg1) (arg1)->m_itemIndex = arg2;
27547
27548 resultobj = SWIG_Py_Void();
27549 return resultobj;
27550 fail:
27551 return NULL;
27552 }
27553
27554
27555 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27556 PyObject *resultobj = 0;
27557 wxListEvent *arg1 = (wxListEvent *) 0 ;
27558 long result;
27559 void *argp1 = 0 ;
27560 int res1 = 0 ;
27561 PyObject *swig_obj[1] ;
27562
27563 if (!args) SWIG_fail;
27564 swig_obj[0] = args;
27565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27566 if (!SWIG_IsOK(res1)) {
27567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27568 }
27569 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27570 result = (long) ((arg1)->m_itemIndex);
27571 resultobj = SWIG_From_long(static_cast< long >(result));
27572 return resultobj;
27573 fail:
27574 return NULL;
27575 }
27576
27577
27578 SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27579 PyObject *resultobj = 0;
27580 wxListEvent *arg1 = (wxListEvent *) 0 ;
27581 int arg2 ;
27582 void *argp1 = 0 ;
27583 int res1 = 0 ;
27584 int val2 ;
27585 int ecode2 = 0 ;
27586 PyObject *swig_obj[2] ;
27587
27588 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
27589 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27590 if (!SWIG_IsOK(res1)) {
27591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27592 }
27593 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27594 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27595 if (!SWIG_IsOK(ecode2)) {
27596 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
27597 }
27598 arg2 = static_cast< int >(val2);
27599 if (arg1) (arg1)->m_col = arg2;
27600
27601 resultobj = SWIG_Py_Void();
27602 return resultobj;
27603 fail:
27604 return NULL;
27605 }
27606
27607
27608 SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27609 PyObject *resultobj = 0;
27610 wxListEvent *arg1 = (wxListEvent *) 0 ;
27611 int result;
27612 void *argp1 = 0 ;
27613 int res1 = 0 ;
27614 PyObject *swig_obj[1] ;
27615
27616 if (!args) SWIG_fail;
27617 swig_obj[0] = args;
27618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27619 if (!SWIG_IsOK(res1)) {
27620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27621 }
27622 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27623 result = (int) ((arg1)->m_col);
27624 resultobj = SWIG_From_int(static_cast< int >(result));
27625 return resultobj;
27626 fail:
27627 return NULL;
27628 }
27629
27630
27631 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27632 PyObject *resultobj = 0;
27633 wxListEvent *arg1 = (wxListEvent *) 0 ;
27634 wxPoint *arg2 = (wxPoint *) 0 ;
27635 void *argp1 = 0 ;
27636 int res1 = 0 ;
27637 void *argp2 = 0 ;
27638 int res2 = 0 ;
27639 PyObject *swig_obj[2] ;
27640
27641 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
27642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27643 if (!SWIG_IsOK(res1)) {
27644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27645 }
27646 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27647 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
27648 if (!SWIG_IsOK(res2)) {
27649 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
27650 }
27651 arg2 = reinterpret_cast< wxPoint * >(argp2);
27652 if (arg1) (arg1)->m_pointDrag = *arg2;
27653
27654 resultobj = SWIG_Py_Void();
27655 return resultobj;
27656 fail:
27657 return NULL;
27658 }
27659
27660
27661 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27662 PyObject *resultobj = 0;
27663 wxListEvent *arg1 = (wxListEvent *) 0 ;
27664 wxPoint *result = 0 ;
27665 void *argp1 = 0 ;
27666 int res1 = 0 ;
27667 PyObject *swig_obj[1] ;
27668
27669 if (!args) SWIG_fail;
27670 swig_obj[0] = args;
27671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27672 if (!SWIG_IsOK(res1)) {
27673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27674 }
27675 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27676 result = (wxPoint *)& ((arg1)->m_pointDrag);
27677 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
27678 return resultobj;
27679 fail:
27680 return NULL;
27681 }
27682
27683
27684 SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27685 PyObject *resultobj = 0;
27686 wxListEvent *arg1 = (wxListEvent *) 0 ;
27687 wxListItem *result = 0 ;
27688 void *argp1 = 0 ;
27689 int res1 = 0 ;
27690 PyObject *swig_obj[1] ;
27691
27692 if (!args) SWIG_fail;
27693 swig_obj[0] = args;
27694 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27695 if (!SWIG_IsOK(res1)) {
27696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27697 }
27698 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27699 result = (wxListItem *)& ((arg1)->m_item);
27700 {
27701 resultobj = wxPyMake_wxObject(result, (bool)0);
27702 }
27703 return resultobj;
27704 fail:
27705 return NULL;
27706 }
27707
27708
27709 SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27710 PyObject *resultobj = 0;
27711 wxListEvent *arg1 = (wxListEvent *) 0 ;
27712 int result;
27713 void *argp1 = 0 ;
27714 int res1 = 0 ;
27715 PyObject *swig_obj[1] ;
27716
27717 if (!args) SWIG_fail;
27718 swig_obj[0] = args;
27719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27720 if (!SWIG_IsOK(res1)) {
27721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
27722 }
27723 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27724 {
27725 PyThreadState* __tstate = wxPyBeginAllowThreads();
27726 result = (int)(arg1)->GetKeyCode();
27727 wxPyEndAllowThreads(__tstate);
27728 if (PyErr_Occurred()) SWIG_fail;
27729 }
27730 resultobj = SWIG_From_int(static_cast< int >(result));
27731 return resultobj;
27732 fail:
27733 return NULL;
27734 }
27735
27736
27737 SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27738 PyObject *resultobj = 0;
27739 wxListEvent *arg1 = (wxListEvent *) 0 ;
27740 long result;
27741 void *argp1 = 0 ;
27742 int res1 = 0 ;
27743 PyObject *swig_obj[1] ;
27744
27745 if (!args) SWIG_fail;
27746 swig_obj[0] = args;
27747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27748 if (!SWIG_IsOK(res1)) {
27749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
27750 }
27751 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27752 {
27753 PyThreadState* __tstate = wxPyBeginAllowThreads();
27754 result = (long)(arg1)->GetIndex();
27755 wxPyEndAllowThreads(__tstate);
27756 if (PyErr_Occurred()) SWIG_fail;
27757 }
27758 resultobj = SWIG_From_long(static_cast< long >(result));
27759 return resultobj;
27760 fail:
27761 return NULL;
27762 }
27763
27764
27765 SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27766 PyObject *resultobj = 0;
27767 wxListEvent *arg1 = (wxListEvent *) 0 ;
27768 int result;
27769 void *argp1 = 0 ;
27770 int res1 = 0 ;
27771 PyObject *swig_obj[1] ;
27772
27773 if (!args) SWIG_fail;
27774 swig_obj[0] = args;
27775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27776 if (!SWIG_IsOK(res1)) {
27777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
27778 }
27779 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27780 {
27781 PyThreadState* __tstate = wxPyBeginAllowThreads();
27782 result = (int)(arg1)->GetColumn();
27783 wxPyEndAllowThreads(__tstate);
27784 if (PyErr_Occurred()) SWIG_fail;
27785 }
27786 resultobj = SWIG_From_int(static_cast< int >(result));
27787 return resultobj;
27788 fail:
27789 return NULL;
27790 }
27791
27792
27793 SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27794 PyObject *resultobj = 0;
27795 wxListEvent *arg1 = (wxListEvent *) 0 ;
27796 wxPoint result;
27797 void *argp1 = 0 ;
27798 int res1 = 0 ;
27799 PyObject *swig_obj[1] ;
27800
27801 if (!args) SWIG_fail;
27802 swig_obj[0] = args;
27803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27804 if (!SWIG_IsOK(res1)) {
27805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
27806 }
27807 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27808 {
27809 PyThreadState* __tstate = wxPyBeginAllowThreads();
27810 result = (arg1)->GetPoint();
27811 wxPyEndAllowThreads(__tstate);
27812 if (PyErr_Occurred()) SWIG_fail;
27813 }
27814 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
27815 return resultobj;
27816 fail:
27817 return NULL;
27818 }
27819
27820
27821 SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27822 PyObject *resultobj = 0;
27823 wxListEvent *arg1 = (wxListEvent *) 0 ;
27824 wxString *result = 0 ;
27825 void *argp1 = 0 ;
27826 int res1 = 0 ;
27827 PyObject *swig_obj[1] ;
27828
27829 if (!args) SWIG_fail;
27830 swig_obj[0] = args;
27831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27832 if (!SWIG_IsOK(res1)) {
27833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
27834 }
27835 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27836 {
27837 PyThreadState* __tstate = wxPyBeginAllowThreads();
27838 {
27839 wxString const &_result_ref = (arg1)->GetLabel();
27840 result = (wxString *) &_result_ref;
27841 }
27842 wxPyEndAllowThreads(__tstate);
27843 if (PyErr_Occurred()) SWIG_fail;
27844 }
27845 {
27846 #if wxUSE_UNICODE
27847 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27848 #else
27849 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27850 #endif
27851 }
27852 return resultobj;
27853 fail:
27854 return NULL;
27855 }
27856
27857
27858 SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27859 PyObject *resultobj = 0;
27860 wxListEvent *arg1 = (wxListEvent *) 0 ;
27861 wxString *result = 0 ;
27862 void *argp1 = 0 ;
27863 int res1 = 0 ;
27864 PyObject *swig_obj[1] ;
27865
27866 if (!args) SWIG_fail;
27867 swig_obj[0] = args;
27868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27869 if (!SWIG_IsOK(res1)) {
27870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
27871 }
27872 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27873 {
27874 PyThreadState* __tstate = wxPyBeginAllowThreads();
27875 {
27876 wxString const &_result_ref = (arg1)->GetText();
27877 result = (wxString *) &_result_ref;
27878 }
27879 wxPyEndAllowThreads(__tstate);
27880 if (PyErr_Occurred()) SWIG_fail;
27881 }
27882 {
27883 #if wxUSE_UNICODE
27884 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27885 #else
27886 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27887 #endif
27888 }
27889 return resultobj;
27890 fail:
27891 return NULL;
27892 }
27893
27894
27895 SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27896 PyObject *resultobj = 0;
27897 wxListEvent *arg1 = (wxListEvent *) 0 ;
27898 int result;
27899 void *argp1 = 0 ;
27900 int res1 = 0 ;
27901 PyObject *swig_obj[1] ;
27902
27903 if (!args) SWIG_fail;
27904 swig_obj[0] = args;
27905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27906 if (!SWIG_IsOK(res1)) {
27907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
27908 }
27909 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27910 {
27911 PyThreadState* __tstate = wxPyBeginAllowThreads();
27912 result = (int)(arg1)->GetImage();
27913 wxPyEndAllowThreads(__tstate);
27914 if (PyErr_Occurred()) SWIG_fail;
27915 }
27916 resultobj = SWIG_From_int(static_cast< int >(result));
27917 return resultobj;
27918 fail:
27919 return NULL;
27920 }
27921
27922
27923 SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27924 PyObject *resultobj = 0;
27925 wxListEvent *arg1 = (wxListEvent *) 0 ;
27926 long result;
27927 void *argp1 = 0 ;
27928 int res1 = 0 ;
27929 PyObject *swig_obj[1] ;
27930
27931 if (!args) SWIG_fail;
27932 swig_obj[0] = args;
27933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27934 if (!SWIG_IsOK(res1)) {
27935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
27936 }
27937 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27938 {
27939 PyThreadState* __tstate = wxPyBeginAllowThreads();
27940 result = (long)(arg1)->GetData();
27941 wxPyEndAllowThreads(__tstate);
27942 if (PyErr_Occurred()) SWIG_fail;
27943 }
27944 resultobj = SWIG_From_long(static_cast< long >(result));
27945 return resultobj;
27946 fail:
27947 return NULL;
27948 }
27949
27950
27951 SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27952 PyObject *resultobj = 0;
27953 wxListEvent *arg1 = (wxListEvent *) 0 ;
27954 long result;
27955 void *argp1 = 0 ;
27956 int res1 = 0 ;
27957 PyObject *swig_obj[1] ;
27958
27959 if (!args) SWIG_fail;
27960 swig_obj[0] = args;
27961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27962 if (!SWIG_IsOK(res1)) {
27963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
27964 }
27965 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27966 {
27967 PyThreadState* __tstate = wxPyBeginAllowThreads();
27968 result = (long)(arg1)->GetMask();
27969 wxPyEndAllowThreads(__tstate);
27970 if (PyErr_Occurred()) SWIG_fail;
27971 }
27972 resultobj = SWIG_From_long(static_cast< long >(result));
27973 return resultobj;
27974 fail:
27975 return NULL;
27976 }
27977
27978
27979 SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27980 PyObject *resultobj = 0;
27981 wxListEvent *arg1 = (wxListEvent *) 0 ;
27982 wxListItem *result = 0 ;
27983 void *argp1 = 0 ;
27984 int res1 = 0 ;
27985 PyObject *swig_obj[1] ;
27986
27987 if (!args) SWIG_fail;
27988 swig_obj[0] = args;
27989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27990 if (!SWIG_IsOK(res1)) {
27991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
27992 }
27993 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27994 {
27995 PyThreadState* __tstate = wxPyBeginAllowThreads();
27996 {
27997 wxListItem const &_result_ref = (arg1)->GetItem();
27998 result = (wxListItem *) &_result_ref;
27999 }
28000 wxPyEndAllowThreads(__tstate);
28001 if (PyErr_Occurred()) SWIG_fail;
28002 }
28003 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28004 return resultobj;
28005 fail:
28006 return NULL;
28007 }
28008
28009
28010 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28011 PyObject *resultobj = 0;
28012 wxListEvent *arg1 = (wxListEvent *) 0 ;
28013 long result;
28014 void *argp1 = 0 ;
28015 int res1 = 0 ;
28016 PyObject *swig_obj[1] ;
28017
28018 if (!args) SWIG_fail;
28019 swig_obj[0] = args;
28020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28021 if (!SWIG_IsOK(res1)) {
28022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28023 }
28024 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28025 {
28026 PyThreadState* __tstate = wxPyBeginAllowThreads();
28027 result = (long)(arg1)->GetCacheFrom();
28028 wxPyEndAllowThreads(__tstate);
28029 if (PyErr_Occurred()) SWIG_fail;
28030 }
28031 resultobj = SWIG_From_long(static_cast< long >(result));
28032 return resultobj;
28033 fail:
28034 return NULL;
28035 }
28036
28037
28038 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28039 PyObject *resultobj = 0;
28040 wxListEvent *arg1 = (wxListEvent *) 0 ;
28041 long result;
28042 void *argp1 = 0 ;
28043 int res1 = 0 ;
28044 PyObject *swig_obj[1] ;
28045
28046 if (!args) SWIG_fail;
28047 swig_obj[0] = args;
28048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28049 if (!SWIG_IsOK(res1)) {
28050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28051 }
28052 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28053 {
28054 PyThreadState* __tstate = wxPyBeginAllowThreads();
28055 result = (long)(arg1)->GetCacheTo();
28056 wxPyEndAllowThreads(__tstate);
28057 if (PyErr_Occurred()) SWIG_fail;
28058 }
28059 resultobj = SWIG_From_long(static_cast< long >(result));
28060 return resultobj;
28061 fail:
28062 return NULL;
28063 }
28064
28065
28066 SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28067 PyObject *resultobj = 0;
28068 wxListEvent *arg1 = (wxListEvent *) 0 ;
28069 bool result;
28070 void *argp1 = 0 ;
28071 int res1 = 0 ;
28072 PyObject *swig_obj[1] ;
28073
28074 if (!args) SWIG_fail;
28075 swig_obj[0] = args;
28076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28077 if (!SWIG_IsOK(res1)) {
28078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28079 }
28080 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28081 {
28082 PyThreadState* __tstate = wxPyBeginAllowThreads();
28083 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28084 wxPyEndAllowThreads(__tstate);
28085 if (PyErr_Occurred()) SWIG_fail;
28086 }
28087 {
28088 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28089 }
28090 return resultobj;
28091 fail:
28092 return NULL;
28093 }
28094
28095
28096 SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28097 PyObject *resultobj = 0;
28098 wxListEvent *arg1 = (wxListEvent *) 0 ;
28099 bool arg2 ;
28100 void *argp1 = 0 ;
28101 int res1 = 0 ;
28102 bool val2 ;
28103 int ecode2 = 0 ;
28104 PyObject * obj0 = 0 ;
28105 PyObject * obj1 = 0 ;
28106 char * kwnames[] = {
28107 (char *) "self",(char *) "editCancelled", NULL
28108 };
28109
28110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28112 if (!SWIG_IsOK(res1)) {
28113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28114 }
28115 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28116 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28117 if (!SWIG_IsOK(ecode2)) {
28118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28119 }
28120 arg2 = static_cast< bool >(val2);
28121 {
28122 PyThreadState* __tstate = wxPyBeginAllowThreads();
28123 (arg1)->SetEditCanceled(arg2);
28124 wxPyEndAllowThreads(__tstate);
28125 if (PyErr_Occurred()) SWIG_fail;
28126 }
28127 resultobj = SWIG_Py_Void();
28128 return resultobj;
28129 fail:
28130 return NULL;
28131 }
28132
28133
28134 SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28135 PyObject *obj;
28136 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28137 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28138 return SWIG_Py_Void();
28139 }
28140
28141 SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28142 return SWIG_Python_InitShadowInstance(args);
28143 }
28144
28145 SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28146 PyObject *resultobj = 0;
28147 wxWindow *arg1 = (wxWindow *) 0 ;
28148 int arg2 = (int) -1 ;
28149 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28150 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28151 wxSize const &arg4_defvalue = wxDefaultSize ;
28152 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28153 long arg5 = (long) wxLC_ICON ;
28154 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28155 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28156 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28157 wxString *arg7 = (wxString *) &arg7_defvalue ;
28158 wxPyListCtrl *result = 0 ;
28159 void *argp1 = 0 ;
28160 int res1 = 0 ;
28161 int val2 ;
28162 int ecode2 = 0 ;
28163 wxPoint temp3 ;
28164 wxSize temp4 ;
28165 long val5 ;
28166 int ecode5 = 0 ;
28167 void *argp6 = 0 ;
28168 int res6 = 0 ;
28169 bool temp7 = false ;
28170 PyObject * obj0 = 0 ;
28171 PyObject * obj1 = 0 ;
28172 PyObject * obj2 = 0 ;
28173 PyObject * obj3 = 0 ;
28174 PyObject * obj4 = 0 ;
28175 PyObject * obj5 = 0 ;
28176 PyObject * obj6 = 0 ;
28177 char * kwnames[] = {
28178 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28179 };
28180
28181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28183 if (!SWIG_IsOK(res1)) {
28184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28185 }
28186 arg1 = reinterpret_cast< wxWindow * >(argp1);
28187 if (obj1) {
28188 ecode2 = SWIG_AsVal_int(obj1, &val2);
28189 if (!SWIG_IsOK(ecode2)) {
28190 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28191 }
28192 arg2 = static_cast< int >(val2);
28193 }
28194 if (obj2) {
28195 {
28196 arg3 = &temp3;
28197 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28198 }
28199 }
28200 if (obj3) {
28201 {
28202 arg4 = &temp4;
28203 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28204 }
28205 }
28206 if (obj4) {
28207 ecode5 = SWIG_AsVal_long(obj4, &val5);
28208 if (!SWIG_IsOK(ecode5)) {
28209 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28210 }
28211 arg5 = static_cast< long >(val5);
28212 }
28213 if (obj5) {
28214 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28215 if (!SWIG_IsOK(res6)) {
28216 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28217 }
28218 if (!argp6) {
28219 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28220 }
28221 arg6 = reinterpret_cast< wxValidator * >(argp6);
28222 }
28223 if (obj6) {
28224 {
28225 arg7 = wxString_in_helper(obj6);
28226 if (arg7 == NULL) SWIG_fail;
28227 temp7 = true;
28228 }
28229 }
28230 {
28231 if (!wxPyCheckForApp()) SWIG_fail;
28232 PyThreadState* __tstate = wxPyBeginAllowThreads();
28233 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28234 wxPyEndAllowThreads(__tstate);
28235 if (PyErr_Occurred()) SWIG_fail;
28236 }
28237 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28238 {
28239 if (temp7)
28240 delete arg7;
28241 }
28242 return resultobj;
28243 fail:
28244 {
28245 if (temp7)
28246 delete arg7;
28247 }
28248 return NULL;
28249 }
28250
28251
28252 SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28253 PyObject *resultobj = 0;
28254 wxPyListCtrl *result = 0 ;
28255
28256 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28257 {
28258 if (!wxPyCheckForApp()) SWIG_fail;
28259 PyThreadState* __tstate = wxPyBeginAllowThreads();
28260 result = (wxPyListCtrl *)new wxPyListCtrl();
28261 wxPyEndAllowThreads(__tstate);
28262 if (PyErr_Occurred()) SWIG_fail;
28263 }
28264 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28265 return resultobj;
28266 fail:
28267 return NULL;
28268 }
28269
28270
28271 SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28272 PyObject *resultobj = 0;
28273 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28274 wxWindow *arg2 = (wxWindow *) 0 ;
28275 int arg3 = (int) -1 ;
28276 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28277 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28278 wxSize const &arg5_defvalue = wxDefaultSize ;
28279 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28280 long arg6 = (long) wxLC_ICON ;
28281 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28282 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28283 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28284 wxString *arg8 = (wxString *) &arg8_defvalue ;
28285 bool result;
28286 void *argp1 = 0 ;
28287 int res1 = 0 ;
28288 void *argp2 = 0 ;
28289 int res2 = 0 ;
28290 int val3 ;
28291 int ecode3 = 0 ;
28292 wxPoint temp4 ;
28293 wxSize temp5 ;
28294 long val6 ;
28295 int ecode6 = 0 ;
28296 void *argp7 = 0 ;
28297 int res7 = 0 ;
28298 bool temp8 = false ;
28299 PyObject * obj0 = 0 ;
28300 PyObject * obj1 = 0 ;
28301 PyObject * obj2 = 0 ;
28302 PyObject * obj3 = 0 ;
28303 PyObject * obj4 = 0 ;
28304 PyObject * obj5 = 0 ;
28305 PyObject * obj6 = 0 ;
28306 PyObject * obj7 = 0 ;
28307 char * kwnames[] = {
28308 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28309 };
28310
28311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28313 if (!SWIG_IsOK(res1)) {
28314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28315 }
28316 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28317 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28318 if (!SWIG_IsOK(res2)) {
28319 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28320 }
28321 arg2 = reinterpret_cast< wxWindow * >(argp2);
28322 if (obj2) {
28323 ecode3 = SWIG_AsVal_int(obj2, &val3);
28324 if (!SWIG_IsOK(ecode3)) {
28325 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28326 }
28327 arg3 = static_cast< int >(val3);
28328 }
28329 if (obj3) {
28330 {
28331 arg4 = &temp4;
28332 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28333 }
28334 }
28335 if (obj4) {
28336 {
28337 arg5 = &temp5;
28338 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28339 }
28340 }
28341 if (obj5) {
28342 ecode6 = SWIG_AsVal_long(obj5, &val6);
28343 if (!SWIG_IsOK(ecode6)) {
28344 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28345 }
28346 arg6 = static_cast< long >(val6);
28347 }
28348 if (obj6) {
28349 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28350 if (!SWIG_IsOK(res7)) {
28351 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28352 }
28353 if (!argp7) {
28354 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28355 }
28356 arg7 = reinterpret_cast< wxValidator * >(argp7);
28357 }
28358 if (obj7) {
28359 {
28360 arg8 = wxString_in_helper(obj7);
28361 if (arg8 == NULL) SWIG_fail;
28362 temp8 = true;
28363 }
28364 }
28365 {
28366 PyThreadState* __tstate = wxPyBeginAllowThreads();
28367 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28368 wxPyEndAllowThreads(__tstate);
28369 if (PyErr_Occurred()) SWIG_fail;
28370 }
28371 {
28372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28373 }
28374 {
28375 if (temp8)
28376 delete arg8;
28377 }
28378 return resultobj;
28379 fail:
28380 {
28381 if (temp8)
28382 delete arg8;
28383 }
28384 return NULL;
28385 }
28386
28387
28388 SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28389 PyObject *resultobj = 0;
28390 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28391 PyObject *arg2 = (PyObject *) 0 ;
28392 PyObject *arg3 = (PyObject *) 0 ;
28393 void *argp1 = 0 ;
28394 int res1 = 0 ;
28395 PyObject * obj0 = 0 ;
28396 PyObject * obj1 = 0 ;
28397 PyObject * obj2 = 0 ;
28398 char * kwnames[] = {
28399 (char *) "self",(char *) "self",(char *) "_class", NULL
28400 };
28401
28402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28404 if (!SWIG_IsOK(res1)) {
28405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28406 }
28407 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28408 arg2 = obj1;
28409 arg3 = obj2;
28410 {
28411 PyThreadState* __tstate = wxPyBeginAllowThreads();
28412 (arg1)->_setCallbackInfo(arg2,arg3);
28413 wxPyEndAllowThreads(__tstate);
28414 if (PyErr_Occurred()) SWIG_fail;
28415 }
28416 resultobj = SWIG_Py_Void();
28417 return resultobj;
28418 fail:
28419 return NULL;
28420 }
28421
28422
28423 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28424 PyObject *resultobj = 0;
28425 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28426 int arg2 ;
28427 wxListItem *result = 0 ;
28428 void *argp1 = 0 ;
28429 int res1 = 0 ;
28430 int val2 ;
28431 int ecode2 = 0 ;
28432 PyObject * obj0 = 0 ;
28433 PyObject * obj1 = 0 ;
28434 char * kwnames[] = {
28435 (char *) "self",(char *) "col", NULL
28436 };
28437
28438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
28439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28440 if (!SWIG_IsOK(res1)) {
28441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28442 }
28443 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28444 ecode2 = SWIG_AsVal_int(obj1, &val2);
28445 if (!SWIG_IsOK(ecode2)) {
28446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
28447 }
28448 arg2 = static_cast< int >(val2);
28449 {
28450 PyThreadState* __tstate = wxPyBeginAllowThreads();
28451 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
28452 wxPyEndAllowThreads(__tstate);
28453 if (PyErr_Occurred()) SWIG_fail;
28454 }
28455 {
28456 resultobj = wxPyMake_wxObject(result, (bool)0);
28457 }
28458 return resultobj;
28459 fail:
28460 return NULL;
28461 }
28462
28463
28464 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28465 PyObject *resultobj = 0;
28466 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28467 int arg2 ;
28468 wxListItem *arg3 = 0 ;
28469 bool result;
28470 void *argp1 = 0 ;
28471 int res1 = 0 ;
28472 int val2 ;
28473 int ecode2 = 0 ;
28474 void *argp3 = 0 ;
28475 int res3 = 0 ;
28476 PyObject * obj0 = 0 ;
28477 PyObject * obj1 = 0 ;
28478 PyObject * obj2 = 0 ;
28479 char * kwnames[] = {
28480 (char *) "self",(char *) "col",(char *) "item", NULL
28481 };
28482
28483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28485 if (!SWIG_IsOK(res1)) {
28486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28487 }
28488 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28489 ecode2 = SWIG_AsVal_int(obj1, &val2);
28490 if (!SWIG_IsOK(ecode2)) {
28491 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
28492 }
28493 arg2 = static_cast< int >(val2);
28494 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
28495 if (!SWIG_IsOK(res3)) {
28496 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28497 }
28498 if (!argp3) {
28499 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28500 }
28501 arg3 = reinterpret_cast< wxListItem * >(argp3);
28502 {
28503 PyThreadState* __tstate = wxPyBeginAllowThreads();
28504 result = (bool)(arg1)->SetColumn(arg2,*arg3);
28505 wxPyEndAllowThreads(__tstate);
28506 if (PyErr_Occurred()) SWIG_fail;
28507 }
28508 {
28509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28510 }
28511 return resultobj;
28512 fail:
28513 return NULL;
28514 }
28515
28516
28517 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28518 PyObject *resultobj = 0;
28519 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28520 int arg2 ;
28521 int result;
28522 void *argp1 = 0 ;
28523 int res1 = 0 ;
28524 int val2 ;
28525 int ecode2 = 0 ;
28526 PyObject * obj0 = 0 ;
28527 PyObject * obj1 = 0 ;
28528 char * kwnames[] = {
28529 (char *) "self",(char *) "col", NULL
28530 };
28531
28532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
28533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28534 if (!SWIG_IsOK(res1)) {
28535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28536 }
28537 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28538 ecode2 = SWIG_AsVal_int(obj1, &val2);
28539 if (!SWIG_IsOK(ecode2)) {
28540 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28541 }
28542 arg2 = static_cast< int >(val2);
28543 {
28544 PyThreadState* __tstate = wxPyBeginAllowThreads();
28545 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
28546 wxPyEndAllowThreads(__tstate);
28547 if (PyErr_Occurred()) SWIG_fail;
28548 }
28549 resultobj = SWIG_From_int(static_cast< int >(result));
28550 return resultobj;
28551 fail:
28552 return NULL;
28553 }
28554
28555
28556 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28557 PyObject *resultobj = 0;
28558 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28559 int arg2 ;
28560 int arg3 ;
28561 bool result;
28562 void *argp1 = 0 ;
28563 int res1 = 0 ;
28564 int val2 ;
28565 int ecode2 = 0 ;
28566 int val3 ;
28567 int ecode3 = 0 ;
28568 PyObject * obj0 = 0 ;
28569 PyObject * obj1 = 0 ;
28570 PyObject * obj2 = 0 ;
28571 char * kwnames[] = {
28572 (char *) "self",(char *) "col",(char *) "width", NULL
28573 };
28574
28575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28577 if (!SWIG_IsOK(res1)) {
28578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28579 }
28580 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28581 ecode2 = SWIG_AsVal_int(obj1, &val2);
28582 if (!SWIG_IsOK(ecode2)) {
28583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28584 }
28585 arg2 = static_cast< int >(val2);
28586 ecode3 = SWIG_AsVal_int(obj2, &val3);
28587 if (!SWIG_IsOK(ecode3)) {
28588 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
28589 }
28590 arg3 = static_cast< int >(val3);
28591 {
28592 PyThreadState* __tstate = wxPyBeginAllowThreads();
28593 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
28594 wxPyEndAllowThreads(__tstate);
28595 if (PyErr_Occurred()) SWIG_fail;
28596 }
28597 {
28598 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28599 }
28600 return resultobj;
28601 fail:
28602 return NULL;
28603 }
28604
28605
28606 SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28607 PyObject *resultobj = 0;
28608 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28609 int result;
28610 void *argp1 = 0 ;
28611 int res1 = 0 ;
28612 PyObject *swig_obj[1] ;
28613
28614 if (!args) SWIG_fail;
28615 swig_obj[0] = args;
28616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28617 if (!SWIG_IsOK(res1)) {
28618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28619 }
28620 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28621 {
28622 PyThreadState* __tstate = wxPyBeginAllowThreads();
28623 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
28624 wxPyEndAllowThreads(__tstate);
28625 if (PyErr_Occurred()) SWIG_fail;
28626 }
28627 resultobj = SWIG_From_int(static_cast< int >(result));
28628 return resultobj;
28629 fail:
28630 return NULL;
28631 }
28632
28633
28634 SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28635 PyObject *resultobj = 0;
28636 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28637 wxRect result;
28638 void *argp1 = 0 ;
28639 int res1 = 0 ;
28640 PyObject *swig_obj[1] ;
28641
28642 if (!args) SWIG_fail;
28643 swig_obj[0] = args;
28644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28645 if (!SWIG_IsOK(res1)) {
28646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28647 }
28648 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28649 {
28650 PyThreadState* __tstate = wxPyBeginAllowThreads();
28651 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
28652 wxPyEndAllowThreads(__tstate);
28653 if (PyErr_Occurred()) SWIG_fail;
28654 }
28655 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
28656 return resultobj;
28657 fail:
28658 return NULL;
28659 }
28660
28661
28662 SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28663 PyObject *resultobj = 0;
28664 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28665 wxTextCtrl *result = 0 ;
28666 void *argp1 = 0 ;
28667 int res1 = 0 ;
28668 PyObject *swig_obj[1] ;
28669
28670 if (!args) SWIG_fail;
28671 swig_obj[0] = args;
28672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28673 if (!SWIG_IsOK(res1)) {
28674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28675 }
28676 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28677 {
28678 PyThreadState* __tstate = wxPyBeginAllowThreads();
28679 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
28680 wxPyEndAllowThreads(__tstate);
28681 if (PyErr_Occurred()) SWIG_fail;
28682 }
28683 {
28684 resultobj = wxPyMake_wxObject(result, 0);
28685 }
28686 return resultobj;
28687 fail:
28688 return NULL;
28689 }
28690
28691
28692 SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28693 PyObject *resultobj = 0;
28694 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28695 long arg2 ;
28696 int arg3 = (int) 0 ;
28697 wxListItem *result = 0 ;
28698 void *argp1 = 0 ;
28699 int res1 = 0 ;
28700 long val2 ;
28701 int ecode2 = 0 ;
28702 int val3 ;
28703 int ecode3 = 0 ;
28704 PyObject * obj0 = 0 ;
28705 PyObject * obj1 = 0 ;
28706 PyObject * obj2 = 0 ;
28707 char * kwnames[] = {
28708 (char *) "self",(char *) "itemId",(char *) "col", NULL
28709 };
28710
28711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28713 if (!SWIG_IsOK(res1)) {
28714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28715 }
28716 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28717 ecode2 = SWIG_AsVal_long(obj1, &val2);
28718 if (!SWIG_IsOK(ecode2)) {
28719 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
28720 }
28721 arg2 = static_cast< long >(val2);
28722 if (obj2) {
28723 ecode3 = SWIG_AsVal_int(obj2, &val3);
28724 if (!SWIG_IsOK(ecode3)) {
28725 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
28726 }
28727 arg3 = static_cast< int >(val3);
28728 }
28729 {
28730 PyThreadState* __tstate = wxPyBeginAllowThreads();
28731 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
28732 wxPyEndAllowThreads(__tstate);
28733 if (PyErr_Occurred()) SWIG_fail;
28734 }
28735 {
28736 resultobj = wxPyMake_wxObject(result, (bool)0);
28737 }
28738 return resultobj;
28739 fail:
28740 return NULL;
28741 }
28742
28743
28744 SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28745 PyObject *resultobj = 0;
28746 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28747 wxListItem *arg2 = 0 ;
28748 bool result;
28749 void *argp1 = 0 ;
28750 int res1 = 0 ;
28751 void *argp2 = 0 ;
28752 int res2 = 0 ;
28753 PyObject * obj0 = 0 ;
28754 PyObject * obj1 = 0 ;
28755 char * kwnames[] = {
28756 (char *) "self",(char *) "info", NULL
28757 };
28758
28759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
28760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28761 if (!SWIG_IsOK(res1)) {
28762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28763 }
28764 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28765 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
28766 if (!SWIG_IsOK(res2)) {
28767 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
28768 }
28769 if (!argp2) {
28770 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
28771 }
28772 arg2 = reinterpret_cast< wxListItem * >(argp2);
28773 {
28774 PyThreadState* __tstate = wxPyBeginAllowThreads();
28775 result = (bool)(arg1)->SetItem(*arg2);
28776 wxPyEndAllowThreads(__tstate);
28777 if (PyErr_Occurred()) SWIG_fail;
28778 }
28779 {
28780 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28781 }
28782 return resultobj;
28783 fail:
28784 return NULL;
28785 }
28786
28787
28788 SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28789 PyObject *resultobj = 0;
28790 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28791 long arg2 ;
28792 int arg3 ;
28793 wxString *arg4 = 0 ;
28794 int arg5 = (int) -1 ;
28795 long result;
28796 void *argp1 = 0 ;
28797 int res1 = 0 ;
28798 long val2 ;
28799 int ecode2 = 0 ;
28800 int val3 ;
28801 int ecode3 = 0 ;
28802 bool temp4 = false ;
28803 int val5 ;
28804 int ecode5 = 0 ;
28805 PyObject * obj0 = 0 ;
28806 PyObject * obj1 = 0 ;
28807 PyObject * obj2 = 0 ;
28808 PyObject * obj3 = 0 ;
28809 PyObject * obj4 = 0 ;
28810 char * kwnames[] = {
28811 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
28812 };
28813
28814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28816 if (!SWIG_IsOK(res1)) {
28817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28818 }
28819 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28820 ecode2 = SWIG_AsVal_long(obj1, &val2);
28821 if (!SWIG_IsOK(ecode2)) {
28822 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
28823 }
28824 arg2 = static_cast< long >(val2);
28825 ecode3 = SWIG_AsVal_int(obj2, &val3);
28826 if (!SWIG_IsOK(ecode3)) {
28827 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
28828 }
28829 arg3 = static_cast< int >(val3);
28830 {
28831 arg4 = wxString_in_helper(obj3);
28832 if (arg4 == NULL) SWIG_fail;
28833 temp4 = true;
28834 }
28835 if (obj4) {
28836 ecode5 = SWIG_AsVal_int(obj4, &val5);
28837 if (!SWIG_IsOK(ecode5)) {
28838 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
28839 }
28840 arg5 = static_cast< int >(val5);
28841 }
28842 {
28843 PyThreadState* __tstate = wxPyBeginAllowThreads();
28844 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
28845 wxPyEndAllowThreads(__tstate);
28846 if (PyErr_Occurred()) SWIG_fail;
28847 }
28848 resultobj = SWIG_From_long(static_cast< long >(result));
28849 {
28850 if (temp4)
28851 delete arg4;
28852 }
28853 return resultobj;
28854 fail:
28855 {
28856 if (temp4)
28857 delete arg4;
28858 }
28859 return NULL;
28860 }
28861
28862
28863 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28864 PyObject *resultobj = 0;
28865 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28866 long arg2 ;
28867 long arg3 ;
28868 int result;
28869 void *argp1 = 0 ;
28870 int res1 = 0 ;
28871 long val2 ;
28872 int ecode2 = 0 ;
28873 long val3 ;
28874 int ecode3 = 0 ;
28875 PyObject * obj0 = 0 ;
28876 PyObject * obj1 = 0 ;
28877 PyObject * obj2 = 0 ;
28878 char * kwnames[] = {
28879 (char *) "self",(char *) "item",(char *) "stateMask", NULL
28880 };
28881
28882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28884 if (!SWIG_IsOK(res1)) {
28885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28886 }
28887 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28888 ecode2 = SWIG_AsVal_long(obj1, &val2);
28889 if (!SWIG_IsOK(ecode2)) {
28890 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
28891 }
28892 arg2 = static_cast< long >(val2);
28893 ecode3 = SWIG_AsVal_long(obj2, &val3);
28894 if (!SWIG_IsOK(ecode3)) {
28895 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
28896 }
28897 arg3 = static_cast< long >(val3);
28898 {
28899 PyThreadState* __tstate = wxPyBeginAllowThreads();
28900 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
28901 wxPyEndAllowThreads(__tstate);
28902 if (PyErr_Occurred()) SWIG_fail;
28903 }
28904 resultobj = SWIG_From_int(static_cast< int >(result));
28905 return resultobj;
28906 fail:
28907 return NULL;
28908 }
28909
28910
28911 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28912 PyObject *resultobj = 0;
28913 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28914 long arg2 ;
28915 long arg3 ;
28916 long arg4 ;
28917 bool result;
28918 void *argp1 = 0 ;
28919 int res1 = 0 ;
28920 long val2 ;
28921 int ecode2 = 0 ;
28922 long val3 ;
28923 int ecode3 = 0 ;
28924 long val4 ;
28925 int ecode4 = 0 ;
28926 PyObject * obj0 = 0 ;
28927 PyObject * obj1 = 0 ;
28928 PyObject * obj2 = 0 ;
28929 PyObject * obj3 = 0 ;
28930 char * kwnames[] = {
28931 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
28932 };
28933
28934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28936 if (!SWIG_IsOK(res1)) {
28937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28938 }
28939 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28940 ecode2 = SWIG_AsVal_long(obj1, &val2);
28941 if (!SWIG_IsOK(ecode2)) {
28942 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
28943 }
28944 arg2 = static_cast< long >(val2);
28945 ecode3 = SWIG_AsVal_long(obj2, &val3);
28946 if (!SWIG_IsOK(ecode3)) {
28947 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
28948 }
28949 arg3 = static_cast< long >(val3);
28950 ecode4 = SWIG_AsVal_long(obj3, &val4);
28951 if (!SWIG_IsOK(ecode4)) {
28952 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
28953 }
28954 arg4 = static_cast< long >(val4);
28955 {
28956 PyThreadState* __tstate = wxPyBeginAllowThreads();
28957 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
28958 wxPyEndAllowThreads(__tstate);
28959 if (PyErr_Occurred()) SWIG_fail;
28960 }
28961 {
28962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28963 }
28964 return resultobj;
28965 fail:
28966 return NULL;
28967 }
28968
28969
28970 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28971 PyObject *resultobj = 0;
28972 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28973 long arg2 ;
28974 int arg3 ;
28975 int arg4 = (int) -1 ;
28976 bool result;
28977 void *argp1 = 0 ;
28978 int res1 = 0 ;
28979 long val2 ;
28980 int ecode2 = 0 ;
28981 int val3 ;
28982 int ecode3 = 0 ;
28983 int val4 ;
28984 int ecode4 = 0 ;
28985 PyObject * obj0 = 0 ;
28986 PyObject * obj1 = 0 ;
28987 PyObject * obj2 = 0 ;
28988 PyObject * obj3 = 0 ;
28989 char * kwnames[] = {
28990 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
28991 };
28992
28993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28995 if (!SWIG_IsOK(res1)) {
28996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28997 }
28998 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28999 ecode2 = SWIG_AsVal_long(obj1, &val2);
29000 if (!SWIG_IsOK(ecode2)) {
29001 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29002 }
29003 arg2 = static_cast< long >(val2);
29004 ecode3 = SWIG_AsVal_int(obj2, &val3);
29005 if (!SWIG_IsOK(ecode3)) {
29006 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29007 }
29008 arg3 = static_cast< int >(val3);
29009 if (obj3) {
29010 ecode4 = SWIG_AsVal_int(obj3, &val4);
29011 if (!SWIG_IsOK(ecode4)) {
29012 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29013 }
29014 arg4 = static_cast< int >(val4);
29015 }
29016 {
29017 PyThreadState* __tstate = wxPyBeginAllowThreads();
29018 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29019 wxPyEndAllowThreads(__tstate);
29020 if (PyErr_Occurred()) SWIG_fail;
29021 }
29022 {
29023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29024 }
29025 return resultobj;
29026 fail:
29027 return NULL;
29028 }
29029
29030
29031 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29032 PyObject *resultobj = 0;
29033 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29034 long arg2 ;
29035 long arg3 ;
29036 int arg4 ;
29037 bool result;
29038 void *argp1 = 0 ;
29039 int res1 = 0 ;
29040 long val2 ;
29041 int ecode2 = 0 ;
29042 long val3 ;
29043 int ecode3 = 0 ;
29044 int val4 ;
29045 int ecode4 = 0 ;
29046 PyObject * obj0 = 0 ;
29047 PyObject * obj1 = 0 ;
29048 PyObject * obj2 = 0 ;
29049 PyObject * obj3 = 0 ;
29050 char * kwnames[] = {
29051 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29052 };
29053
29054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29056 if (!SWIG_IsOK(res1)) {
29057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29058 }
29059 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29060 ecode2 = SWIG_AsVal_long(obj1, &val2);
29061 if (!SWIG_IsOK(ecode2)) {
29062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29063 }
29064 arg2 = static_cast< long >(val2);
29065 ecode3 = SWIG_AsVal_long(obj2, &val3);
29066 if (!SWIG_IsOK(ecode3)) {
29067 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29068 }
29069 arg3 = static_cast< long >(val3);
29070 ecode4 = SWIG_AsVal_int(obj3, &val4);
29071 if (!SWIG_IsOK(ecode4)) {
29072 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29073 }
29074 arg4 = static_cast< int >(val4);
29075 {
29076 PyThreadState* __tstate = wxPyBeginAllowThreads();
29077 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29078 wxPyEndAllowThreads(__tstate);
29079 if (PyErr_Occurred()) SWIG_fail;
29080 }
29081 {
29082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29083 }
29084 return resultobj;
29085 fail:
29086 return NULL;
29087 }
29088
29089
29090 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29091 PyObject *resultobj = 0;
29092 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29093 long arg2 ;
29094 wxString result;
29095 void *argp1 = 0 ;
29096 int res1 = 0 ;
29097 long val2 ;
29098 int ecode2 = 0 ;
29099 PyObject * obj0 = 0 ;
29100 PyObject * obj1 = 0 ;
29101 char * kwnames[] = {
29102 (char *) "self",(char *) "item", NULL
29103 };
29104
29105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29107 if (!SWIG_IsOK(res1)) {
29108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29109 }
29110 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29111 ecode2 = SWIG_AsVal_long(obj1, &val2);
29112 if (!SWIG_IsOK(ecode2)) {
29113 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29114 }
29115 arg2 = static_cast< long >(val2);
29116 {
29117 PyThreadState* __tstate = wxPyBeginAllowThreads();
29118 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29119 wxPyEndAllowThreads(__tstate);
29120 if (PyErr_Occurred()) SWIG_fail;
29121 }
29122 {
29123 #if wxUSE_UNICODE
29124 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29125 #else
29126 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29127 #endif
29128 }
29129 return resultobj;
29130 fail:
29131 return NULL;
29132 }
29133
29134
29135 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29136 PyObject *resultobj = 0;
29137 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29138 long arg2 ;
29139 wxString *arg3 = 0 ;
29140 void *argp1 = 0 ;
29141 int res1 = 0 ;
29142 long val2 ;
29143 int ecode2 = 0 ;
29144 bool temp3 = false ;
29145 PyObject * obj0 = 0 ;
29146 PyObject * obj1 = 0 ;
29147 PyObject * obj2 = 0 ;
29148 char * kwnames[] = {
29149 (char *) "self",(char *) "item",(char *) "str", NULL
29150 };
29151
29152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29154 if (!SWIG_IsOK(res1)) {
29155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29156 }
29157 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29158 ecode2 = SWIG_AsVal_long(obj1, &val2);
29159 if (!SWIG_IsOK(ecode2)) {
29160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29161 }
29162 arg2 = static_cast< long >(val2);
29163 {
29164 arg3 = wxString_in_helper(obj2);
29165 if (arg3 == NULL) SWIG_fail;
29166 temp3 = true;
29167 }
29168 {
29169 PyThreadState* __tstate = wxPyBeginAllowThreads();
29170 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29171 wxPyEndAllowThreads(__tstate);
29172 if (PyErr_Occurred()) SWIG_fail;
29173 }
29174 resultobj = SWIG_Py_Void();
29175 {
29176 if (temp3)
29177 delete arg3;
29178 }
29179 return resultobj;
29180 fail:
29181 {
29182 if (temp3)
29183 delete arg3;
29184 }
29185 return NULL;
29186 }
29187
29188
29189 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29190 PyObject *resultobj = 0;
29191 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29192 long arg2 ;
29193 long result;
29194 void *argp1 = 0 ;
29195 int res1 = 0 ;
29196 long val2 ;
29197 int ecode2 = 0 ;
29198 PyObject * obj0 = 0 ;
29199 PyObject * obj1 = 0 ;
29200 char * kwnames[] = {
29201 (char *) "self",(char *) "item", NULL
29202 };
29203
29204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29206 if (!SWIG_IsOK(res1)) {
29207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29208 }
29209 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29210 ecode2 = SWIG_AsVal_long(obj1, &val2);
29211 if (!SWIG_IsOK(ecode2)) {
29212 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29213 }
29214 arg2 = static_cast< long >(val2);
29215 {
29216 PyThreadState* __tstate = wxPyBeginAllowThreads();
29217 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29218 wxPyEndAllowThreads(__tstate);
29219 if (PyErr_Occurred()) SWIG_fail;
29220 }
29221 resultobj = SWIG_From_long(static_cast< long >(result));
29222 return resultobj;
29223 fail:
29224 return NULL;
29225 }
29226
29227
29228 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29229 PyObject *resultobj = 0;
29230 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29231 long arg2 ;
29232 long arg3 ;
29233 bool result;
29234 void *argp1 = 0 ;
29235 int res1 = 0 ;
29236 long val2 ;
29237 int ecode2 = 0 ;
29238 long val3 ;
29239 int ecode3 = 0 ;
29240 PyObject * obj0 = 0 ;
29241 PyObject * obj1 = 0 ;
29242 PyObject * obj2 = 0 ;
29243 char * kwnames[] = {
29244 (char *) "self",(char *) "item",(char *) "data", NULL
29245 };
29246
29247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29249 if (!SWIG_IsOK(res1)) {
29250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29251 }
29252 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29253 ecode2 = SWIG_AsVal_long(obj1, &val2);
29254 if (!SWIG_IsOK(ecode2)) {
29255 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29256 }
29257 arg2 = static_cast< long >(val2);
29258 ecode3 = SWIG_AsVal_long(obj2, &val3);
29259 if (!SWIG_IsOK(ecode3)) {
29260 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29261 }
29262 arg3 = static_cast< long >(val3);
29263 {
29264 PyThreadState* __tstate = wxPyBeginAllowThreads();
29265 result = (bool)(arg1)->SetItemData(arg2,arg3);
29266 wxPyEndAllowThreads(__tstate);
29267 if (PyErr_Occurred()) SWIG_fail;
29268 }
29269 {
29270 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29271 }
29272 return resultobj;
29273 fail:
29274 return NULL;
29275 }
29276
29277
29278 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29279 PyObject *resultobj = 0;
29280 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29281 long arg2 ;
29282 wxPoint result;
29283 void *argp1 = 0 ;
29284 int res1 = 0 ;
29285 long val2 ;
29286 int ecode2 = 0 ;
29287 PyObject * obj0 = 0 ;
29288 PyObject * obj1 = 0 ;
29289 char * kwnames[] = {
29290 (char *) "self",(char *) "item", NULL
29291 };
29292
29293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29295 if (!SWIG_IsOK(res1)) {
29296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29297 }
29298 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29299 ecode2 = SWIG_AsVal_long(obj1, &val2);
29300 if (!SWIG_IsOK(ecode2)) {
29301 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29302 }
29303 arg2 = static_cast< long >(val2);
29304 {
29305 PyThreadState* __tstate = wxPyBeginAllowThreads();
29306 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29307 wxPyEndAllowThreads(__tstate);
29308 if (PyErr_Occurred()) SWIG_fail;
29309 }
29310 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29311 return resultobj;
29312 fail:
29313 return NULL;
29314 }
29315
29316
29317 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29318 PyObject *resultobj = 0;
29319 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29320 long arg2 ;
29321 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29322 wxRect result;
29323 void *argp1 = 0 ;
29324 int res1 = 0 ;
29325 long val2 ;
29326 int ecode2 = 0 ;
29327 int val3 ;
29328 int ecode3 = 0 ;
29329 PyObject * obj0 = 0 ;
29330 PyObject * obj1 = 0 ;
29331 PyObject * obj2 = 0 ;
29332 char * kwnames[] = {
29333 (char *) "self",(char *) "item",(char *) "code", NULL
29334 };
29335
29336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29338 if (!SWIG_IsOK(res1)) {
29339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29340 }
29341 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29342 ecode2 = SWIG_AsVal_long(obj1, &val2);
29343 if (!SWIG_IsOK(ecode2)) {
29344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29345 }
29346 arg2 = static_cast< long >(val2);
29347 if (obj2) {
29348 ecode3 = SWIG_AsVal_int(obj2, &val3);
29349 if (!SWIG_IsOK(ecode3)) {
29350 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29351 }
29352 arg3 = static_cast< int >(val3);
29353 }
29354 {
29355 PyThreadState* __tstate = wxPyBeginAllowThreads();
29356 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29357 wxPyEndAllowThreads(__tstate);
29358 if (PyErr_Occurred()) SWIG_fail;
29359 }
29360 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29361 return resultobj;
29362 fail:
29363 return NULL;
29364 }
29365
29366
29367 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29368 PyObject *resultobj = 0;
29369 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29370 long arg2 ;
29371 wxPoint *arg3 = 0 ;
29372 bool result;
29373 void *argp1 = 0 ;
29374 int res1 = 0 ;
29375 long val2 ;
29376 int ecode2 = 0 ;
29377 wxPoint temp3 ;
29378 PyObject * obj0 = 0 ;
29379 PyObject * obj1 = 0 ;
29380 PyObject * obj2 = 0 ;
29381 char * kwnames[] = {
29382 (char *) "self",(char *) "item",(char *) "pos", NULL
29383 };
29384
29385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29387 if (!SWIG_IsOK(res1)) {
29388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29389 }
29390 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29391 ecode2 = SWIG_AsVal_long(obj1, &val2);
29392 if (!SWIG_IsOK(ecode2)) {
29393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
29394 }
29395 arg2 = static_cast< long >(val2);
29396 {
29397 arg3 = &temp3;
29398 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29399 }
29400 {
29401 PyThreadState* __tstate = wxPyBeginAllowThreads();
29402 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
29403 wxPyEndAllowThreads(__tstate);
29404 if (PyErr_Occurred()) SWIG_fail;
29405 }
29406 {
29407 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29408 }
29409 return resultobj;
29410 fail:
29411 return NULL;
29412 }
29413
29414
29415 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29416 PyObject *resultobj = 0;
29417 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29418 int result;
29419 void *argp1 = 0 ;
29420 int res1 = 0 ;
29421 PyObject *swig_obj[1] ;
29422
29423 if (!args) SWIG_fail;
29424 swig_obj[0] = args;
29425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29426 if (!SWIG_IsOK(res1)) {
29427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29428 }
29429 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29430 {
29431 PyThreadState* __tstate = wxPyBeginAllowThreads();
29432 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
29433 wxPyEndAllowThreads(__tstate);
29434 if (PyErr_Occurred()) SWIG_fail;
29435 }
29436 resultobj = SWIG_From_int(static_cast< int >(result));
29437 return resultobj;
29438 fail:
29439 return NULL;
29440 }
29441
29442
29443 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29444 PyObject *resultobj = 0;
29445 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29446 int result;
29447 void *argp1 = 0 ;
29448 int res1 = 0 ;
29449 PyObject *swig_obj[1] ;
29450
29451 if (!args) SWIG_fail;
29452 swig_obj[0] = args;
29453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29454 if (!SWIG_IsOK(res1)) {
29455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29456 }
29457 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29458 {
29459 PyThreadState* __tstate = wxPyBeginAllowThreads();
29460 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
29461 wxPyEndAllowThreads(__tstate);
29462 if (PyErr_Occurred()) SWIG_fail;
29463 }
29464 resultobj = SWIG_From_int(static_cast< int >(result));
29465 return resultobj;
29466 fail:
29467 return NULL;
29468 }
29469
29470
29471 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29472 PyObject *resultobj = 0;
29473 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29474 wxSize result;
29475 void *argp1 = 0 ;
29476 int res1 = 0 ;
29477 PyObject *swig_obj[1] ;
29478
29479 if (!args) SWIG_fail;
29480 swig_obj[0] = args;
29481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29482 if (!SWIG_IsOK(res1)) {
29483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29484 }
29485 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29486 {
29487 PyThreadState* __tstate = wxPyBeginAllowThreads();
29488 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
29489 wxPyEndAllowThreads(__tstate);
29490 if (PyErr_Occurred()) SWIG_fail;
29491 }
29492 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
29493 return resultobj;
29494 fail:
29495 return NULL;
29496 }
29497
29498
29499 SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29500 PyObject *resultobj = 0;
29501 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29502 int result;
29503 void *argp1 = 0 ;
29504 int res1 = 0 ;
29505 PyObject *swig_obj[1] ;
29506
29507 if (!args) SWIG_fail;
29508 swig_obj[0] = args;
29509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29510 if (!SWIG_IsOK(res1)) {
29511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29512 }
29513 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29514 {
29515 PyThreadState* __tstate = wxPyBeginAllowThreads();
29516 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
29517 wxPyEndAllowThreads(__tstate);
29518 if (PyErr_Occurred()) SWIG_fail;
29519 }
29520 resultobj = SWIG_From_int(static_cast< int >(result));
29521 return resultobj;
29522 fail:
29523 return NULL;
29524 }
29525
29526
29527 SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29528 PyObject *resultobj = 0;
29529 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29530 wxColour result;
29531 void *argp1 = 0 ;
29532 int res1 = 0 ;
29533 PyObject *swig_obj[1] ;
29534
29535 if (!args) SWIG_fail;
29536 swig_obj[0] = args;
29537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29538 if (!SWIG_IsOK(res1)) {
29539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29540 }
29541 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29542 {
29543 PyThreadState* __tstate = wxPyBeginAllowThreads();
29544 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
29545 wxPyEndAllowThreads(__tstate);
29546 if (PyErr_Occurred()) SWIG_fail;
29547 }
29548 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29549 return resultobj;
29550 fail:
29551 return NULL;
29552 }
29553
29554
29555 SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29556 PyObject *resultobj = 0;
29557 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29558 wxColour *arg2 = 0 ;
29559 void *argp1 = 0 ;
29560 int res1 = 0 ;
29561 wxColour temp2 ;
29562 PyObject * obj0 = 0 ;
29563 PyObject * obj1 = 0 ;
29564 char * kwnames[] = {
29565 (char *) "self",(char *) "col", NULL
29566 };
29567
29568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
29569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29570 if (!SWIG_IsOK(res1)) {
29571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29572 }
29573 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29574 {
29575 arg2 = &temp2;
29576 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29577 }
29578 {
29579 PyThreadState* __tstate = wxPyBeginAllowThreads();
29580 (arg1)->SetTextColour((wxColour const &)*arg2);
29581 wxPyEndAllowThreads(__tstate);
29582 if (PyErr_Occurred()) SWIG_fail;
29583 }
29584 resultobj = SWIG_Py_Void();
29585 return resultobj;
29586 fail:
29587 return NULL;
29588 }
29589
29590
29591 SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29592 PyObject *resultobj = 0;
29593 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29594 long result;
29595 void *argp1 = 0 ;
29596 int res1 = 0 ;
29597 PyObject *swig_obj[1] ;
29598
29599 if (!args) SWIG_fail;
29600 swig_obj[0] = args;
29601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29602 if (!SWIG_IsOK(res1)) {
29603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29604 }
29605 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29606 {
29607 PyThreadState* __tstate = wxPyBeginAllowThreads();
29608 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
29609 wxPyEndAllowThreads(__tstate);
29610 if (PyErr_Occurred()) SWIG_fail;
29611 }
29612 resultobj = SWIG_From_long(static_cast< long >(result));
29613 return resultobj;
29614 fail:
29615 return NULL;
29616 }
29617
29618
29619 SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29620 PyObject *resultobj = 0;
29621 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29622 long arg2 ;
29623 bool arg3 = (bool) true ;
29624 void *argp1 = 0 ;
29625 int res1 = 0 ;
29626 long val2 ;
29627 int ecode2 = 0 ;
29628 bool val3 ;
29629 int ecode3 = 0 ;
29630 PyObject * obj0 = 0 ;
29631 PyObject * obj1 = 0 ;
29632 PyObject * obj2 = 0 ;
29633 char * kwnames[] = {
29634 (char *) "self",(char *) "style",(char *) "add", NULL
29635 };
29636
29637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29639 if (!SWIG_IsOK(res1)) {
29640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29641 }
29642 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29643 ecode2 = SWIG_AsVal_long(obj1, &val2);
29644 if (!SWIG_IsOK(ecode2)) {
29645 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
29646 }
29647 arg2 = static_cast< long >(val2);
29648 if (obj2) {
29649 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29650 if (!SWIG_IsOK(ecode3)) {
29651 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
29652 }
29653 arg3 = static_cast< bool >(val3);
29654 }
29655 {
29656 PyThreadState* __tstate = wxPyBeginAllowThreads();
29657 (arg1)->SetSingleStyle(arg2,arg3);
29658 wxPyEndAllowThreads(__tstate);
29659 if (PyErr_Occurred()) SWIG_fail;
29660 }
29661 resultobj = SWIG_Py_Void();
29662 return resultobj;
29663 fail:
29664 return NULL;
29665 }
29666
29667
29668 SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29669 PyObject *resultobj = 0;
29670 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29671 long arg2 ;
29672 int arg3 = (int) wxLIST_NEXT_ALL ;
29673 int arg4 = (int) wxLIST_STATE_DONTCARE ;
29674 long result;
29675 void *argp1 = 0 ;
29676 int res1 = 0 ;
29677 long val2 ;
29678 int ecode2 = 0 ;
29679 int val3 ;
29680 int ecode3 = 0 ;
29681 int val4 ;
29682 int ecode4 = 0 ;
29683 PyObject * obj0 = 0 ;
29684 PyObject * obj1 = 0 ;
29685 PyObject * obj2 = 0 ;
29686 PyObject * obj3 = 0 ;
29687 char * kwnames[] = {
29688 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
29689 };
29690
29691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29693 if (!SWIG_IsOK(res1)) {
29694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29695 }
29696 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29697 ecode2 = SWIG_AsVal_long(obj1, &val2);
29698 if (!SWIG_IsOK(ecode2)) {
29699 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
29700 }
29701 arg2 = static_cast< long >(val2);
29702 if (obj2) {
29703 ecode3 = SWIG_AsVal_int(obj2, &val3);
29704 if (!SWIG_IsOK(ecode3)) {
29705 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
29706 }
29707 arg3 = static_cast< int >(val3);
29708 }
29709 if (obj3) {
29710 ecode4 = SWIG_AsVal_int(obj3, &val4);
29711 if (!SWIG_IsOK(ecode4)) {
29712 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
29713 }
29714 arg4 = static_cast< int >(val4);
29715 }
29716 {
29717 PyThreadState* __tstate = wxPyBeginAllowThreads();
29718 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
29719 wxPyEndAllowThreads(__tstate);
29720 if (PyErr_Occurred()) SWIG_fail;
29721 }
29722 resultobj = SWIG_From_long(static_cast< long >(result));
29723 return resultobj;
29724 fail:
29725 return NULL;
29726 }
29727
29728
29729 SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29730 PyObject *resultobj = 0;
29731 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29732 int arg2 ;
29733 wxImageList *result = 0 ;
29734 void *argp1 = 0 ;
29735 int res1 = 0 ;
29736 int val2 ;
29737 int ecode2 = 0 ;
29738 PyObject * obj0 = 0 ;
29739 PyObject * obj1 = 0 ;
29740 char * kwnames[] = {
29741 (char *) "self",(char *) "which", NULL
29742 };
29743
29744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
29745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29746 if (!SWIG_IsOK(res1)) {
29747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29748 }
29749 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29750 ecode2 = SWIG_AsVal_int(obj1, &val2);
29751 if (!SWIG_IsOK(ecode2)) {
29752 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
29753 }
29754 arg2 = static_cast< int >(val2);
29755 {
29756 PyThreadState* __tstate = wxPyBeginAllowThreads();
29757 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
29758 wxPyEndAllowThreads(__tstate);
29759 if (PyErr_Occurred()) SWIG_fail;
29760 }
29761 {
29762 resultobj = wxPyMake_wxObject(result, (bool)0);
29763 }
29764 return resultobj;
29765 fail:
29766 return NULL;
29767 }
29768
29769
29770 SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29771 PyObject *resultobj = 0;
29772 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29773 wxImageList *arg2 = (wxImageList *) 0 ;
29774 int arg3 ;
29775 void *argp1 = 0 ;
29776 int res1 = 0 ;
29777 void *argp2 = 0 ;
29778 int res2 = 0 ;
29779 int val3 ;
29780 int ecode3 = 0 ;
29781 PyObject * obj0 = 0 ;
29782 PyObject * obj1 = 0 ;
29783 PyObject * obj2 = 0 ;
29784 char * kwnames[] = {
29785 (char *) "self",(char *) "imageList",(char *) "which", NULL
29786 };
29787
29788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29790 if (!SWIG_IsOK(res1)) {
29791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29792 }
29793 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29794 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
29795 if (!SWIG_IsOK(res2)) {
29796 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
29797 }
29798 arg2 = reinterpret_cast< wxImageList * >(argp2);
29799 ecode3 = SWIG_AsVal_int(obj2, &val3);
29800 if (!SWIG_IsOK(ecode3)) {
29801 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
29802 }
29803 arg3 = static_cast< int >(val3);
29804 {
29805 PyThreadState* __tstate = wxPyBeginAllowThreads();
29806 (arg1)->SetImageList(arg2,arg3);
29807 wxPyEndAllowThreads(__tstate);
29808 if (PyErr_Occurred()) SWIG_fail;
29809 }
29810 resultobj = SWIG_Py_Void();
29811 return resultobj;
29812 fail:
29813 return NULL;
29814 }
29815
29816
29817 SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29818 PyObject *resultobj = 0;
29819 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29820 wxImageList *arg2 = (wxImageList *) 0 ;
29821 int arg3 ;
29822 void *argp1 = 0 ;
29823 int res1 = 0 ;
29824 int res2 = 0 ;
29825 int val3 ;
29826 int ecode3 = 0 ;
29827 PyObject * obj0 = 0 ;
29828 PyObject * obj1 = 0 ;
29829 PyObject * obj2 = 0 ;
29830 char * kwnames[] = {
29831 (char *) "self",(char *) "imageList",(char *) "which", NULL
29832 };
29833
29834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29836 if (!SWIG_IsOK(res1)) {
29837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29838 }
29839 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29840 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
29841 if (!SWIG_IsOK(res2)) {
29842 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
29843 }
29844 ecode3 = SWIG_AsVal_int(obj2, &val3);
29845 if (!SWIG_IsOK(ecode3)) {
29846 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
29847 }
29848 arg3 = static_cast< int >(val3);
29849 {
29850 PyThreadState* __tstate = wxPyBeginAllowThreads();
29851 (arg1)->AssignImageList(arg2,arg3);
29852 wxPyEndAllowThreads(__tstate);
29853 if (PyErr_Occurred()) SWIG_fail;
29854 }
29855 resultobj = SWIG_Py_Void();
29856 return resultobj;
29857 fail:
29858 return NULL;
29859 }
29860
29861
29862 SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29863 PyObject *resultobj = 0;
29864 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29865 bool result;
29866 void *argp1 = 0 ;
29867 int res1 = 0 ;
29868 PyObject *swig_obj[1] ;
29869
29870 if (!args) SWIG_fail;
29871 swig_obj[0] = args;
29872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29873 if (!SWIG_IsOK(res1)) {
29874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29875 }
29876 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29877 {
29878 PyThreadState* __tstate = wxPyBeginAllowThreads();
29879 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
29880 wxPyEndAllowThreads(__tstate);
29881 if (PyErr_Occurred()) SWIG_fail;
29882 }
29883 {
29884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29885 }
29886 return resultobj;
29887 fail:
29888 return NULL;
29889 }
29890
29891
29892 SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29893 PyObject *resultobj = 0;
29894 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29895 bool result;
29896 void *argp1 = 0 ;
29897 int res1 = 0 ;
29898 PyObject *swig_obj[1] ;
29899
29900 if (!args) SWIG_fail;
29901 swig_obj[0] = args;
29902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29903 if (!SWIG_IsOK(res1)) {
29904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29905 }
29906 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29907 {
29908 PyThreadState* __tstate = wxPyBeginAllowThreads();
29909 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
29910 wxPyEndAllowThreads(__tstate);
29911 if (PyErr_Occurred()) SWIG_fail;
29912 }
29913 {
29914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29915 }
29916 return resultobj;
29917 fail:
29918 return NULL;
29919 }
29920
29921
29922 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29923 PyObject *resultobj = 0;
29924 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29925 long arg2 ;
29926 void *argp1 = 0 ;
29927 int res1 = 0 ;
29928 long val2 ;
29929 int ecode2 = 0 ;
29930 PyObject * obj0 = 0 ;
29931 PyObject * obj1 = 0 ;
29932 char * kwnames[] = {
29933 (char *) "self",(char *) "item", NULL
29934 };
29935
29936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
29937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29938 if (!SWIG_IsOK(res1)) {
29939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29940 }
29941 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29942 ecode2 = SWIG_AsVal_long(obj1, &val2);
29943 if (!SWIG_IsOK(ecode2)) {
29944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
29945 }
29946 arg2 = static_cast< long >(val2);
29947 {
29948 PyThreadState* __tstate = wxPyBeginAllowThreads();
29949 (arg1)->RefreshItem(arg2);
29950 wxPyEndAllowThreads(__tstate);
29951 if (PyErr_Occurred()) SWIG_fail;
29952 }
29953 resultobj = SWIG_Py_Void();
29954 return resultobj;
29955 fail:
29956 return NULL;
29957 }
29958
29959
29960 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29961 PyObject *resultobj = 0;
29962 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29963 long arg2 ;
29964 long arg3 ;
29965 void *argp1 = 0 ;
29966 int res1 = 0 ;
29967 long val2 ;
29968 int ecode2 = 0 ;
29969 long val3 ;
29970 int ecode3 = 0 ;
29971 PyObject * obj0 = 0 ;
29972 PyObject * obj1 = 0 ;
29973 PyObject * obj2 = 0 ;
29974 char * kwnames[] = {
29975 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
29976 };
29977
29978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29980 if (!SWIG_IsOK(res1)) {
29981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29982 }
29983 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29984 ecode2 = SWIG_AsVal_long(obj1, &val2);
29985 if (!SWIG_IsOK(ecode2)) {
29986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
29987 }
29988 arg2 = static_cast< long >(val2);
29989 ecode3 = SWIG_AsVal_long(obj2, &val3);
29990 if (!SWIG_IsOK(ecode3)) {
29991 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
29992 }
29993 arg3 = static_cast< long >(val3);
29994 {
29995 PyThreadState* __tstate = wxPyBeginAllowThreads();
29996 (arg1)->RefreshItems(arg2,arg3);
29997 wxPyEndAllowThreads(__tstate);
29998 if (PyErr_Occurred()) SWIG_fail;
29999 }
30000 resultobj = SWIG_Py_Void();
30001 return resultobj;
30002 fail:
30003 return NULL;
30004 }
30005
30006
30007 SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30008 PyObject *resultobj = 0;
30009 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30010 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30011 bool result;
30012 void *argp1 = 0 ;
30013 int res1 = 0 ;
30014 int val2 ;
30015 int ecode2 = 0 ;
30016 PyObject * obj0 = 0 ;
30017 PyObject * obj1 = 0 ;
30018 char * kwnames[] = {
30019 (char *) "self",(char *) "flag", NULL
30020 };
30021
30022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30024 if (!SWIG_IsOK(res1)) {
30025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30026 }
30027 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30028 if (obj1) {
30029 ecode2 = SWIG_AsVal_int(obj1, &val2);
30030 if (!SWIG_IsOK(ecode2)) {
30031 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30032 }
30033 arg2 = static_cast< int >(val2);
30034 }
30035 {
30036 PyThreadState* __tstate = wxPyBeginAllowThreads();
30037 result = (bool)(arg1)->Arrange(arg2);
30038 wxPyEndAllowThreads(__tstate);
30039 if (PyErr_Occurred()) SWIG_fail;
30040 }
30041 {
30042 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30043 }
30044 return resultobj;
30045 fail:
30046 return NULL;
30047 }
30048
30049
30050 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30051 PyObject *resultobj = 0;
30052 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30053 long arg2 ;
30054 bool result;
30055 void *argp1 = 0 ;
30056 int res1 = 0 ;
30057 long val2 ;
30058 int ecode2 = 0 ;
30059 PyObject * obj0 = 0 ;
30060 PyObject * obj1 = 0 ;
30061 char * kwnames[] = {
30062 (char *) "self",(char *) "item", NULL
30063 };
30064
30065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30067 if (!SWIG_IsOK(res1)) {
30068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30069 }
30070 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30071 ecode2 = SWIG_AsVal_long(obj1, &val2);
30072 if (!SWIG_IsOK(ecode2)) {
30073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30074 }
30075 arg2 = static_cast< long >(val2);
30076 {
30077 PyThreadState* __tstate = wxPyBeginAllowThreads();
30078 result = (bool)(arg1)->DeleteItem(arg2);
30079 wxPyEndAllowThreads(__tstate);
30080 if (PyErr_Occurred()) SWIG_fail;
30081 }
30082 {
30083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30084 }
30085 return resultobj;
30086 fail:
30087 return NULL;
30088 }
30089
30090
30091 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30092 PyObject *resultobj = 0;
30093 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30094 bool result;
30095 void *argp1 = 0 ;
30096 int res1 = 0 ;
30097 PyObject *swig_obj[1] ;
30098
30099 if (!args) SWIG_fail;
30100 swig_obj[0] = args;
30101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30102 if (!SWIG_IsOK(res1)) {
30103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30104 }
30105 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30106 {
30107 PyThreadState* __tstate = wxPyBeginAllowThreads();
30108 result = (bool)(arg1)->DeleteAllItems();
30109 wxPyEndAllowThreads(__tstate);
30110 if (PyErr_Occurred()) SWIG_fail;
30111 }
30112 {
30113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30114 }
30115 return resultobj;
30116 fail:
30117 return NULL;
30118 }
30119
30120
30121 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30122 PyObject *resultobj = 0;
30123 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30124 int arg2 ;
30125 bool result;
30126 void *argp1 = 0 ;
30127 int res1 = 0 ;
30128 int val2 ;
30129 int ecode2 = 0 ;
30130 PyObject * obj0 = 0 ;
30131 PyObject * obj1 = 0 ;
30132 char * kwnames[] = {
30133 (char *) "self",(char *) "col", NULL
30134 };
30135
30136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30138 if (!SWIG_IsOK(res1)) {
30139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30140 }
30141 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30142 ecode2 = SWIG_AsVal_int(obj1, &val2);
30143 if (!SWIG_IsOK(ecode2)) {
30144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30145 }
30146 arg2 = static_cast< int >(val2);
30147 {
30148 PyThreadState* __tstate = wxPyBeginAllowThreads();
30149 result = (bool)(arg1)->DeleteColumn(arg2);
30150 wxPyEndAllowThreads(__tstate);
30151 if (PyErr_Occurred()) SWIG_fail;
30152 }
30153 {
30154 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30155 }
30156 return resultobj;
30157 fail:
30158 return NULL;
30159 }
30160
30161
30162 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30163 PyObject *resultobj = 0;
30164 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30165 bool result;
30166 void *argp1 = 0 ;
30167 int res1 = 0 ;
30168 PyObject *swig_obj[1] ;
30169
30170 if (!args) SWIG_fail;
30171 swig_obj[0] = args;
30172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30173 if (!SWIG_IsOK(res1)) {
30174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30175 }
30176 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30177 {
30178 PyThreadState* __tstate = wxPyBeginAllowThreads();
30179 result = (bool)(arg1)->DeleteAllColumns();
30180 wxPyEndAllowThreads(__tstate);
30181 if (PyErr_Occurred()) SWIG_fail;
30182 }
30183 {
30184 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30185 }
30186 return resultobj;
30187 fail:
30188 return NULL;
30189 }
30190
30191
30192 SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30193 PyObject *resultobj = 0;
30194 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30195 void *argp1 = 0 ;
30196 int res1 = 0 ;
30197 PyObject *swig_obj[1] ;
30198
30199 if (!args) SWIG_fail;
30200 swig_obj[0] = args;
30201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30202 if (!SWIG_IsOK(res1)) {
30203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30204 }
30205 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30206 {
30207 PyThreadState* __tstate = wxPyBeginAllowThreads();
30208 (arg1)->ClearAll();
30209 wxPyEndAllowThreads(__tstate);
30210 if (PyErr_Occurred()) SWIG_fail;
30211 }
30212 resultobj = SWIG_Py_Void();
30213 return resultobj;
30214 fail:
30215 return NULL;
30216 }
30217
30218
30219 SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30220 PyObject *resultobj = 0;
30221 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30222 long arg2 ;
30223 wxTextCtrl *result = 0 ;
30224 void *argp1 = 0 ;
30225 int res1 = 0 ;
30226 long val2 ;
30227 int ecode2 = 0 ;
30228 PyObject * obj0 = 0 ;
30229 PyObject * obj1 = 0 ;
30230 char * kwnames[] = {
30231 (char *) "self",(char *) "item", NULL
30232 };
30233
30234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30236 if (!SWIG_IsOK(res1)) {
30237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30238 }
30239 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30240 ecode2 = SWIG_AsVal_long(obj1, &val2);
30241 if (!SWIG_IsOK(ecode2)) {
30242 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30243 }
30244 arg2 = static_cast< long >(val2);
30245 {
30246 PyThreadState* __tstate = wxPyBeginAllowThreads();
30247 result = (wxTextCtrl *)(arg1)->EditLabel(arg2);
30248 wxPyEndAllowThreads(__tstate);
30249 if (PyErr_Occurred()) SWIG_fail;
30250 }
30251 {
30252 resultobj = wxPyMake_wxObject(result, 0);
30253 }
30254 return resultobj;
30255 fail:
30256 return NULL;
30257 }
30258
30259
30260 SWIGINTERN PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30261 PyObject *resultobj = 0;
30262 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30263 bool arg2 ;
30264 bool result;
30265 void *argp1 = 0 ;
30266 int res1 = 0 ;
30267 bool val2 ;
30268 int ecode2 = 0 ;
30269 PyObject * obj0 = 0 ;
30270 PyObject * obj1 = 0 ;
30271 char * kwnames[] = {
30272 (char *) "self",(char *) "cancel", NULL
30273 };
30274
30275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30277 if (!SWIG_IsOK(res1)) {
30278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30279 }
30280 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30281 ecode2 = SWIG_AsVal_bool(obj1, &val2);
30282 if (!SWIG_IsOK(ecode2)) {
30283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "2"" of type '" "bool""'");
30284 }
30285 arg2 = static_cast< bool >(val2);
30286 {
30287 PyThreadState* __tstate = wxPyBeginAllowThreads();
30288 result = (bool)(arg1)->EndEditLabel(arg2);
30289 wxPyEndAllowThreads(__tstate);
30290 if (PyErr_Occurred()) SWIG_fail;
30291 }
30292 {
30293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30294 }
30295 return resultobj;
30296 fail:
30297 return NULL;
30298 }
30299
30300
30301 SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30302 PyObject *resultobj = 0;
30303 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30304 long arg2 ;
30305 bool result;
30306 void *argp1 = 0 ;
30307 int res1 = 0 ;
30308 long val2 ;
30309 int ecode2 = 0 ;
30310 PyObject * obj0 = 0 ;
30311 PyObject * obj1 = 0 ;
30312 char * kwnames[] = {
30313 (char *) "self",(char *) "item", NULL
30314 };
30315
30316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30318 if (!SWIG_IsOK(res1)) {
30319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30320 }
30321 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30322 ecode2 = SWIG_AsVal_long(obj1, &val2);
30323 if (!SWIG_IsOK(ecode2)) {
30324 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30325 }
30326 arg2 = static_cast< long >(val2);
30327 {
30328 PyThreadState* __tstate = wxPyBeginAllowThreads();
30329 result = (bool)(arg1)->EnsureVisible(arg2);
30330 wxPyEndAllowThreads(__tstate);
30331 if (PyErr_Occurred()) SWIG_fail;
30332 }
30333 {
30334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30335 }
30336 return resultobj;
30337 fail:
30338 return NULL;
30339 }
30340
30341
30342 SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30343 PyObject *resultobj = 0;
30344 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30345 long arg2 ;
30346 wxString *arg3 = 0 ;
30347 bool arg4 = (bool) false ;
30348 long result;
30349 void *argp1 = 0 ;
30350 int res1 = 0 ;
30351 long val2 ;
30352 int ecode2 = 0 ;
30353 bool temp3 = false ;
30354 bool val4 ;
30355 int ecode4 = 0 ;
30356 PyObject * obj0 = 0 ;
30357 PyObject * obj1 = 0 ;
30358 PyObject * obj2 = 0 ;
30359 PyObject * obj3 = 0 ;
30360 char * kwnames[] = {
30361 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30362 };
30363
30364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30366 if (!SWIG_IsOK(res1)) {
30367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30368 }
30369 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30370 ecode2 = SWIG_AsVal_long(obj1, &val2);
30371 if (!SWIG_IsOK(ecode2)) {
30372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30373 }
30374 arg2 = static_cast< long >(val2);
30375 {
30376 arg3 = wxString_in_helper(obj2);
30377 if (arg3 == NULL) SWIG_fail;
30378 temp3 = true;
30379 }
30380 if (obj3) {
30381 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30382 if (!SWIG_IsOK(ecode4)) {
30383 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
30384 }
30385 arg4 = static_cast< bool >(val4);
30386 }
30387 {
30388 PyThreadState* __tstate = wxPyBeginAllowThreads();
30389 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
30390 wxPyEndAllowThreads(__tstate);
30391 if (PyErr_Occurred()) SWIG_fail;
30392 }
30393 resultobj = SWIG_From_long(static_cast< long >(result));
30394 {
30395 if (temp3)
30396 delete arg3;
30397 }
30398 return resultobj;
30399 fail:
30400 {
30401 if (temp3)
30402 delete arg3;
30403 }
30404 return NULL;
30405 }
30406
30407
30408 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30409 PyObject *resultobj = 0;
30410 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30411 long arg2 ;
30412 long arg3 ;
30413 long result;
30414 void *argp1 = 0 ;
30415 int res1 = 0 ;
30416 long val2 ;
30417 int ecode2 = 0 ;
30418 long val3 ;
30419 int ecode3 = 0 ;
30420 PyObject * obj0 = 0 ;
30421 PyObject * obj1 = 0 ;
30422 PyObject * obj2 = 0 ;
30423 char * kwnames[] = {
30424 (char *) "self",(char *) "start",(char *) "data", NULL
30425 };
30426
30427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30429 if (!SWIG_IsOK(res1)) {
30430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30431 }
30432 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30433 ecode2 = SWIG_AsVal_long(obj1, &val2);
30434 if (!SWIG_IsOK(ecode2)) {
30435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
30436 }
30437 arg2 = static_cast< long >(val2);
30438 ecode3 = SWIG_AsVal_long(obj2, &val3);
30439 if (!SWIG_IsOK(ecode3)) {
30440 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
30441 }
30442 arg3 = static_cast< long >(val3);
30443 {
30444 PyThreadState* __tstate = wxPyBeginAllowThreads();
30445 result = (long)(arg1)->FindItem(arg2,arg3);
30446 wxPyEndAllowThreads(__tstate);
30447 if (PyErr_Occurred()) SWIG_fail;
30448 }
30449 resultobj = SWIG_From_long(static_cast< long >(result));
30450 return resultobj;
30451 fail:
30452 return NULL;
30453 }
30454
30455
30456 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30457 PyObject *resultobj = 0;
30458 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30459 long arg2 ;
30460 wxPoint *arg3 = 0 ;
30461 int arg4 ;
30462 long result;
30463 void *argp1 = 0 ;
30464 int res1 = 0 ;
30465 long val2 ;
30466 int ecode2 = 0 ;
30467 wxPoint temp3 ;
30468 int val4 ;
30469 int ecode4 = 0 ;
30470 PyObject * obj0 = 0 ;
30471 PyObject * obj1 = 0 ;
30472 PyObject * obj2 = 0 ;
30473 PyObject * obj3 = 0 ;
30474 char * kwnames[] = {
30475 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
30476 };
30477
30478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30480 if (!SWIG_IsOK(res1)) {
30481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30482 }
30483 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30484 ecode2 = SWIG_AsVal_long(obj1, &val2);
30485 if (!SWIG_IsOK(ecode2)) {
30486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
30487 }
30488 arg2 = static_cast< long >(val2);
30489 {
30490 arg3 = &temp3;
30491 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30492 }
30493 ecode4 = SWIG_AsVal_int(obj3, &val4);
30494 if (!SWIG_IsOK(ecode4)) {
30495 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
30496 }
30497 arg4 = static_cast< int >(val4);
30498 {
30499 PyThreadState* __tstate = wxPyBeginAllowThreads();
30500 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
30501 wxPyEndAllowThreads(__tstate);
30502 if (PyErr_Occurred()) SWIG_fail;
30503 }
30504 resultobj = SWIG_From_long(static_cast< long >(result));
30505 return resultobj;
30506 fail:
30507 return NULL;
30508 }
30509
30510
30511 SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30512 PyObject *resultobj = 0;
30513 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30514 wxPoint *arg2 = 0 ;
30515 int *arg3 = 0 ;
30516 long result;
30517 void *argp1 = 0 ;
30518 int res1 = 0 ;
30519 wxPoint temp2 ;
30520 int temp3 ;
30521 int res3 = SWIG_TMPOBJ ;
30522 PyObject * obj0 = 0 ;
30523 PyObject * obj1 = 0 ;
30524 char * kwnames[] = {
30525 (char *) "self",(char *) "point", NULL
30526 };
30527
30528 arg3 = &temp3;
30529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
30530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30531 if (!SWIG_IsOK(res1)) {
30532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30533 }
30534 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30535 {
30536 arg2 = &temp2;
30537 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30538 }
30539 {
30540 PyThreadState* __tstate = wxPyBeginAllowThreads();
30541 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
30542 wxPyEndAllowThreads(__tstate);
30543 if (PyErr_Occurred()) SWIG_fail;
30544 }
30545 resultobj = SWIG_From_long(static_cast< long >(result));
30546 if (SWIG_IsTmpObj(res3)) {
30547 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30548 } else {
30549 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30550 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30551 }
30552 return resultobj;
30553 fail:
30554 return NULL;
30555 }
30556
30557
30558 SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30559 PyObject *resultobj = 0;
30560 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30561 wxListItem *arg2 = 0 ;
30562 long result;
30563 void *argp1 = 0 ;
30564 int res1 = 0 ;
30565 void *argp2 = 0 ;
30566 int res2 = 0 ;
30567 PyObject * obj0 = 0 ;
30568 PyObject * obj1 = 0 ;
30569 char * kwnames[] = {
30570 (char *) "self",(char *) "info", NULL
30571 };
30572
30573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
30574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30575 if (!SWIG_IsOK(res1)) {
30576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30577 }
30578 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30579 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
30580 if (!SWIG_IsOK(res2)) {
30581 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30582 }
30583 if (!argp2) {
30584 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30585 }
30586 arg2 = reinterpret_cast< wxListItem * >(argp2);
30587 {
30588 PyThreadState* __tstate = wxPyBeginAllowThreads();
30589 result = (long)(arg1)->InsertItem(*arg2);
30590 wxPyEndAllowThreads(__tstate);
30591 if (PyErr_Occurred()) SWIG_fail;
30592 }
30593 resultobj = SWIG_From_long(static_cast< long >(result));
30594 return resultobj;
30595 fail:
30596 return NULL;
30597 }
30598
30599
30600 SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30601 PyObject *resultobj = 0;
30602 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30603 long arg2 ;
30604 wxString *arg3 = 0 ;
30605 int arg4 = (int) -1 ;
30606 long result;
30607 void *argp1 = 0 ;
30608 int res1 = 0 ;
30609 long val2 ;
30610 int ecode2 = 0 ;
30611 bool temp3 = false ;
30612 int val4 ;
30613 int ecode4 = 0 ;
30614 PyObject * obj0 = 0 ;
30615 PyObject * obj1 = 0 ;
30616 PyObject * obj2 = 0 ;
30617 PyObject * obj3 = 0 ;
30618 char * kwnames[] = {
30619 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
30620 };
30621
30622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30624 if (!SWIG_IsOK(res1)) {
30625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30626 }
30627 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30628 ecode2 = SWIG_AsVal_long(obj1, &val2);
30629 if (!SWIG_IsOK(ecode2)) {
30630 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
30631 }
30632 arg2 = static_cast< long >(val2);
30633 {
30634 arg3 = wxString_in_helper(obj2);
30635 if (arg3 == NULL) SWIG_fail;
30636 temp3 = true;
30637 }
30638 if (obj3) {
30639 ecode4 = SWIG_AsVal_int(obj3, &val4);
30640 if (!SWIG_IsOK(ecode4)) {
30641 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
30642 }
30643 arg4 = static_cast< int >(val4);
30644 }
30645 {
30646 PyThreadState* __tstate = wxPyBeginAllowThreads();
30647 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
30648 wxPyEndAllowThreads(__tstate);
30649 if (PyErr_Occurred()) SWIG_fail;
30650 }
30651 resultobj = SWIG_From_long(static_cast< long >(result));
30652 {
30653 if (temp3)
30654 delete arg3;
30655 }
30656 return resultobj;
30657 fail:
30658 {
30659 if (temp3)
30660 delete arg3;
30661 }
30662 return NULL;
30663 }
30664
30665
30666 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30667 PyObject *resultobj = 0;
30668 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30669 long arg2 ;
30670 int arg3 ;
30671 long result;
30672 void *argp1 = 0 ;
30673 int res1 = 0 ;
30674 long val2 ;
30675 int ecode2 = 0 ;
30676 int val3 ;
30677 int ecode3 = 0 ;
30678 PyObject * obj0 = 0 ;
30679 PyObject * obj1 = 0 ;
30680 PyObject * obj2 = 0 ;
30681 char * kwnames[] = {
30682 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
30683 };
30684
30685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30687 if (!SWIG_IsOK(res1)) {
30688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30689 }
30690 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30691 ecode2 = SWIG_AsVal_long(obj1, &val2);
30692 if (!SWIG_IsOK(ecode2)) {
30693 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
30694 }
30695 arg2 = static_cast< long >(val2);
30696 ecode3 = SWIG_AsVal_int(obj2, &val3);
30697 if (!SWIG_IsOK(ecode3)) {
30698 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
30699 }
30700 arg3 = static_cast< int >(val3);
30701 {
30702 PyThreadState* __tstate = wxPyBeginAllowThreads();
30703 result = (long)(arg1)->InsertItem(arg2,arg3);
30704 wxPyEndAllowThreads(__tstate);
30705 if (PyErr_Occurred()) SWIG_fail;
30706 }
30707 resultobj = SWIG_From_long(static_cast< long >(result));
30708 return resultobj;
30709 fail:
30710 return NULL;
30711 }
30712
30713
30714 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30715 PyObject *resultobj = 0;
30716 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30717 long arg2 ;
30718 wxString *arg3 = 0 ;
30719 int arg4 ;
30720 long result;
30721 void *argp1 = 0 ;
30722 int res1 = 0 ;
30723 long val2 ;
30724 int ecode2 = 0 ;
30725 bool temp3 = false ;
30726 int val4 ;
30727 int ecode4 = 0 ;
30728 PyObject * obj0 = 0 ;
30729 PyObject * obj1 = 0 ;
30730 PyObject * obj2 = 0 ;
30731 PyObject * obj3 = 0 ;
30732 char * kwnames[] = {
30733 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
30734 };
30735
30736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30738 if (!SWIG_IsOK(res1)) {
30739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30740 }
30741 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30742 ecode2 = SWIG_AsVal_long(obj1, &val2);
30743 if (!SWIG_IsOK(ecode2)) {
30744 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
30745 }
30746 arg2 = static_cast< long >(val2);
30747 {
30748 arg3 = wxString_in_helper(obj2);
30749 if (arg3 == NULL) SWIG_fail;
30750 temp3 = true;
30751 }
30752 ecode4 = SWIG_AsVal_int(obj3, &val4);
30753 if (!SWIG_IsOK(ecode4)) {
30754 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
30755 }
30756 arg4 = static_cast< int >(val4);
30757 {
30758 PyThreadState* __tstate = wxPyBeginAllowThreads();
30759 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
30760 wxPyEndAllowThreads(__tstate);
30761 if (PyErr_Occurred()) SWIG_fail;
30762 }
30763 resultobj = SWIG_From_long(static_cast< long >(result));
30764 {
30765 if (temp3)
30766 delete arg3;
30767 }
30768 return resultobj;
30769 fail:
30770 {
30771 if (temp3)
30772 delete arg3;
30773 }
30774 return NULL;
30775 }
30776
30777
30778 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30779 PyObject *resultobj = 0;
30780 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30781 long arg2 ;
30782 wxListItem *arg3 = 0 ;
30783 long result;
30784 void *argp1 = 0 ;
30785 int res1 = 0 ;
30786 long val2 ;
30787 int ecode2 = 0 ;
30788 void *argp3 = 0 ;
30789 int res3 = 0 ;
30790 PyObject * obj0 = 0 ;
30791 PyObject * obj1 = 0 ;
30792 PyObject * obj2 = 0 ;
30793 char * kwnames[] = {
30794 (char *) "self",(char *) "col",(char *) "info", NULL
30795 };
30796
30797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30799 if (!SWIG_IsOK(res1)) {
30800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30801 }
30802 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30803 ecode2 = SWIG_AsVal_long(obj1, &val2);
30804 if (!SWIG_IsOK(ecode2)) {
30805 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
30806 }
30807 arg2 = static_cast< long >(val2);
30808 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
30809 if (!SWIG_IsOK(res3)) {
30810 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
30811 }
30812 if (!argp3) {
30813 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
30814 }
30815 arg3 = reinterpret_cast< wxListItem * >(argp3);
30816 {
30817 PyThreadState* __tstate = wxPyBeginAllowThreads();
30818 result = (long)(arg1)->InsertColumn(arg2,*arg3);
30819 wxPyEndAllowThreads(__tstate);
30820 if (PyErr_Occurred()) SWIG_fail;
30821 }
30822 resultobj = SWIG_From_long(static_cast< long >(result));
30823 return resultobj;
30824 fail:
30825 return NULL;
30826 }
30827
30828
30829 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30830 PyObject *resultobj = 0;
30831 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30832 long arg2 ;
30833 wxString *arg3 = 0 ;
30834 int arg4 = (int) wxLIST_FORMAT_LEFT ;
30835 int arg5 = (int) -1 ;
30836 long result;
30837 void *argp1 = 0 ;
30838 int res1 = 0 ;
30839 long val2 ;
30840 int ecode2 = 0 ;
30841 bool temp3 = false ;
30842 int val4 ;
30843 int ecode4 = 0 ;
30844 int val5 ;
30845 int ecode5 = 0 ;
30846 PyObject * obj0 = 0 ;
30847 PyObject * obj1 = 0 ;
30848 PyObject * obj2 = 0 ;
30849 PyObject * obj3 = 0 ;
30850 PyObject * obj4 = 0 ;
30851 char * kwnames[] = {
30852 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
30853 };
30854
30855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30857 if (!SWIG_IsOK(res1)) {
30858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30859 }
30860 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30861 ecode2 = SWIG_AsVal_long(obj1, &val2);
30862 if (!SWIG_IsOK(ecode2)) {
30863 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
30864 }
30865 arg2 = static_cast< long >(val2);
30866 {
30867 arg3 = wxString_in_helper(obj2);
30868 if (arg3 == NULL) SWIG_fail;
30869 temp3 = true;
30870 }
30871 if (obj3) {
30872 ecode4 = SWIG_AsVal_int(obj3, &val4);
30873 if (!SWIG_IsOK(ecode4)) {
30874 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
30875 }
30876 arg4 = static_cast< int >(val4);
30877 }
30878 if (obj4) {
30879 ecode5 = SWIG_AsVal_int(obj4, &val5);
30880 if (!SWIG_IsOK(ecode5)) {
30881 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
30882 }
30883 arg5 = static_cast< int >(val5);
30884 }
30885 {
30886 PyThreadState* __tstate = wxPyBeginAllowThreads();
30887 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
30888 wxPyEndAllowThreads(__tstate);
30889 if (PyErr_Occurred()) SWIG_fail;
30890 }
30891 resultobj = SWIG_From_long(static_cast< long >(result));
30892 {
30893 if (temp3)
30894 delete arg3;
30895 }
30896 return resultobj;
30897 fail:
30898 {
30899 if (temp3)
30900 delete arg3;
30901 }
30902 return NULL;
30903 }
30904
30905
30906 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30907 PyObject *resultobj = 0;
30908 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30909 long arg2 ;
30910 void *argp1 = 0 ;
30911 int res1 = 0 ;
30912 long val2 ;
30913 int ecode2 = 0 ;
30914 PyObject * obj0 = 0 ;
30915 PyObject * obj1 = 0 ;
30916 char * kwnames[] = {
30917 (char *) "self",(char *) "count", NULL
30918 };
30919
30920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
30921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30922 if (!SWIG_IsOK(res1)) {
30923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30924 }
30925 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30926 ecode2 = SWIG_AsVal_long(obj1, &val2);
30927 if (!SWIG_IsOK(ecode2)) {
30928 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
30929 }
30930 arg2 = static_cast< long >(val2);
30931 {
30932 PyThreadState* __tstate = wxPyBeginAllowThreads();
30933 (arg1)->SetItemCount(arg2);
30934 wxPyEndAllowThreads(__tstate);
30935 if (PyErr_Occurred()) SWIG_fail;
30936 }
30937 resultobj = SWIG_Py_Void();
30938 return resultobj;
30939 fail:
30940 return NULL;
30941 }
30942
30943
30944 SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30945 PyObject *resultobj = 0;
30946 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30947 int arg2 ;
30948 int arg3 ;
30949 bool result;
30950 void *argp1 = 0 ;
30951 int res1 = 0 ;
30952 int val2 ;
30953 int ecode2 = 0 ;
30954 int val3 ;
30955 int ecode3 = 0 ;
30956 PyObject * obj0 = 0 ;
30957 PyObject * obj1 = 0 ;
30958 PyObject * obj2 = 0 ;
30959 char * kwnames[] = {
30960 (char *) "self",(char *) "dx",(char *) "dy", NULL
30961 };
30962
30963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30965 if (!SWIG_IsOK(res1)) {
30966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30967 }
30968 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30969 ecode2 = SWIG_AsVal_int(obj1, &val2);
30970 if (!SWIG_IsOK(ecode2)) {
30971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
30972 }
30973 arg2 = static_cast< int >(val2);
30974 ecode3 = SWIG_AsVal_int(obj2, &val3);
30975 if (!SWIG_IsOK(ecode3)) {
30976 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
30977 }
30978 arg3 = static_cast< int >(val3);
30979 {
30980 PyThreadState* __tstate = wxPyBeginAllowThreads();
30981 result = (bool)(arg1)->ScrollList(arg2,arg3);
30982 wxPyEndAllowThreads(__tstate);
30983 if (PyErr_Occurred()) SWIG_fail;
30984 }
30985 {
30986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30987 }
30988 return resultobj;
30989 fail:
30990 return NULL;
30991 }
30992
30993
30994 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30995 PyObject *resultobj = 0;
30996 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30997 long arg2 ;
30998 wxColour *arg3 = 0 ;
30999 void *argp1 = 0 ;
31000 int res1 = 0 ;
31001 long val2 ;
31002 int ecode2 = 0 ;
31003 wxColour temp3 ;
31004 PyObject * obj0 = 0 ;
31005 PyObject * obj1 = 0 ;
31006 PyObject * obj2 = 0 ;
31007 char * kwnames[] = {
31008 (char *) "self",(char *) "item",(char *) "col", NULL
31009 };
31010
31011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31013 if (!SWIG_IsOK(res1)) {
31014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31015 }
31016 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31017 ecode2 = SWIG_AsVal_long(obj1, &val2);
31018 if (!SWIG_IsOK(ecode2)) {
31019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31020 }
31021 arg2 = static_cast< long >(val2);
31022 {
31023 arg3 = &temp3;
31024 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31025 }
31026 {
31027 PyThreadState* __tstate = wxPyBeginAllowThreads();
31028 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31029 wxPyEndAllowThreads(__tstate);
31030 if (PyErr_Occurred()) SWIG_fail;
31031 }
31032 resultobj = SWIG_Py_Void();
31033 return resultobj;
31034 fail:
31035 return NULL;
31036 }
31037
31038
31039 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31040 PyObject *resultobj = 0;
31041 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31042 long arg2 ;
31043 wxColour result;
31044 void *argp1 = 0 ;
31045 int res1 = 0 ;
31046 long val2 ;
31047 int ecode2 = 0 ;
31048 PyObject * obj0 = 0 ;
31049 PyObject * obj1 = 0 ;
31050 char * kwnames[] = {
31051 (char *) "self",(char *) "item", NULL
31052 };
31053
31054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31056 if (!SWIG_IsOK(res1)) {
31057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31058 }
31059 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31060 ecode2 = SWIG_AsVal_long(obj1, &val2);
31061 if (!SWIG_IsOK(ecode2)) {
31062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31063 }
31064 arg2 = static_cast< long >(val2);
31065 {
31066 PyThreadState* __tstate = wxPyBeginAllowThreads();
31067 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31068 wxPyEndAllowThreads(__tstate);
31069 if (PyErr_Occurred()) SWIG_fail;
31070 }
31071 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31072 return resultobj;
31073 fail:
31074 return NULL;
31075 }
31076
31077
31078 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31079 PyObject *resultobj = 0;
31080 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31081 long arg2 ;
31082 wxColour *arg3 = 0 ;
31083 void *argp1 = 0 ;
31084 int res1 = 0 ;
31085 long val2 ;
31086 int ecode2 = 0 ;
31087 wxColour temp3 ;
31088 PyObject * obj0 = 0 ;
31089 PyObject * obj1 = 0 ;
31090 PyObject * obj2 = 0 ;
31091 char * kwnames[] = {
31092 (char *) "self",(char *) "item",(char *) "col", NULL
31093 };
31094
31095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31097 if (!SWIG_IsOK(res1)) {
31098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31099 }
31100 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31101 ecode2 = SWIG_AsVal_long(obj1, &val2);
31102 if (!SWIG_IsOK(ecode2)) {
31103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31104 }
31105 arg2 = static_cast< long >(val2);
31106 {
31107 arg3 = &temp3;
31108 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31109 }
31110 {
31111 PyThreadState* __tstate = wxPyBeginAllowThreads();
31112 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31113 wxPyEndAllowThreads(__tstate);
31114 if (PyErr_Occurred()) SWIG_fail;
31115 }
31116 resultobj = SWIG_Py_Void();
31117 return resultobj;
31118 fail:
31119 return NULL;
31120 }
31121
31122
31123 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31124 PyObject *resultobj = 0;
31125 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31126 long arg2 ;
31127 wxColour result;
31128 void *argp1 = 0 ;
31129 int res1 = 0 ;
31130 long val2 ;
31131 int ecode2 = 0 ;
31132 PyObject * obj0 = 0 ;
31133 PyObject * obj1 = 0 ;
31134 char * kwnames[] = {
31135 (char *) "self",(char *) "item", NULL
31136 };
31137
31138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31140 if (!SWIG_IsOK(res1)) {
31141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31142 }
31143 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31144 ecode2 = SWIG_AsVal_long(obj1, &val2);
31145 if (!SWIG_IsOK(ecode2)) {
31146 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31147 }
31148 arg2 = static_cast< long >(val2);
31149 {
31150 PyThreadState* __tstate = wxPyBeginAllowThreads();
31151 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31152 wxPyEndAllowThreads(__tstate);
31153 if (PyErr_Occurred()) SWIG_fail;
31154 }
31155 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31156 return resultobj;
31157 fail:
31158 return NULL;
31159 }
31160
31161
31162 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31163 PyObject *resultobj = 0;
31164 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31165 long arg2 ;
31166 wxFont *arg3 = 0 ;
31167 void *argp1 = 0 ;
31168 int res1 = 0 ;
31169 long val2 ;
31170 int ecode2 = 0 ;
31171 void *argp3 = 0 ;
31172 int res3 = 0 ;
31173 PyObject * obj0 = 0 ;
31174 PyObject * obj1 = 0 ;
31175 PyObject * obj2 = 0 ;
31176 char * kwnames[] = {
31177 (char *) "self",(char *) "item",(char *) "f", NULL
31178 };
31179
31180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31182 if (!SWIG_IsOK(res1)) {
31183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31184 }
31185 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31186 ecode2 = SWIG_AsVal_long(obj1, &val2);
31187 if (!SWIG_IsOK(ecode2)) {
31188 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31189 }
31190 arg2 = static_cast< long >(val2);
31191 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31192 if (!SWIG_IsOK(res3)) {
31193 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31194 }
31195 if (!argp3) {
31196 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31197 }
31198 arg3 = reinterpret_cast< wxFont * >(argp3);
31199 {
31200 PyThreadState* __tstate = wxPyBeginAllowThreads();
31201 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31202 wxPyEndAllowThreads(__tstate);
31203 if (PyErr_Occurred()) SWIG_fail;
31204 }
31205 resultobj = SWIG_Py_Void();
31206 return resultobj;
31207 fail:
31208 return NULL;
31209 }
31210
31211
31212 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31213 PyObject *resultobj = 0;
31214 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31215 long arg2 ;
31216 wxFont result;
31217 void *argp1 = 0 ;
31218 int res1 = 0 ;
31219 long val2 ;
31220 int ecode2 = 0 ;
31221 PyObject * obj0 = 0 ;
31222 PyObject * obj1 = 0 ;
31223 char * kwnames[] = {
31224 (char *) "self",(char *) "item", NULL
31225 };
31226
31227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31229 if (!SWIG_IsOK(res1)) {
31230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31231 }
31232 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31233 ecode2 = SWIG_AsVal_long(obj1, &val2);
31234 if (!SWIG_IsOK(ecode2)) {
31235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31236 }
31237 arg2 = static_cast< long >(val2);
31238 {
31239 PyThreadState* __tstate = wxPyBeginAllowThreads();
31240 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31241 wxPyEndAllowThreads(__tstate);
31242 if (PyErr_Occurred()) SWIG_fail;
31243 }
31244 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31245 return resultobj;
31246 fail:
31247 return NULL;
31248 }
31249
31250
31251 SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31252 PyObject *resultobj = 0;
31253 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31254 PyObject *arg2 = (PyObject *) 0 ;
31255 bool result;
31256 void *argp1 = 0 ;
31257 int res1 = 0 ;
31258 PyObject * obj0 = 0 ;
31259 PyObject * obj1 = 0 ;
31260 char * kwnames[] = {
31261 (char *) "self",(char *) "func", NULL
31262 };
31263
31264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31266 if (!SWIG_IsOK(res1)) {
31267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31268 }
31269 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31270 arg2 = obj1;
31271 {
31272 PyThreadState* __tstate = wxPyBeginAllowThreads();
31273 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31274 wxPyEndAllowThreads(__tstate);
31275 if (PyErr_Occurred()) SWIG_fail;
31276 }
31277 {
31278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31279 }
31280 return resultobj;
31281 fail:
31282 return NULL;
31283 }
31284
31285
31286 SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31287 PyObject *resultobj = 0;
31288 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31289 wxWindow *result = 0 ;
31290 void *argp1 = 0 ;
31291 int res1 = 0 ;
31292 PyObject *swig_obj[1] ;
31293
31294 if (!args) SWIG_fail;
31295 swig_obj[0] = args;
31296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31297 if (!SWIG_IsOK(res1)) {
31298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31299 }
31300 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31301 {
31302 PyThreadState* __tstate = wxPyBeginAllowThreads();
31303 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31304 wxPyEndAllowThreads(__tstate);
31305 if (PyErr_Occurred()) SWIG_fail;
31306 }
31307 {
31308 resultobj = wxPyMake_wxObject(result, 0);
31309 }
31310 return resultobj;
31311 fail:
31312 return NULL;
31313 }
31314
31315
31316 SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31317 PyObject *resultobj = 0;
31318 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
31319 SwigValueWrapper<wxVisualAttributes > result;
31320 int val1 ;
31321 int ecode1 = 0 ;
31322 PyObject * obj0 = 0 ;
31323 char * kwnames[] = {
31324 (char *) "variant", NULL
31325 };
31326
31327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
31328 if (obj0) {
31329 ecode1 = SWIG_AsVal_int(obj0, &val1);
31330 if (!SWIG_IsOK(ecode1)) {
31331 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
31332 }
31333 arg1 = static_cast< wxWindowVariant >(val1);
31334 }
31335 {
31336 if (!wxPyCheckForApp()) SWIG_fail;
31337 PyThreadState* __tstate = wxPyBeginAllowThreads();
31338 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
31339 wxPyEndAllowThreads(__tstate);
31340 if (PyErr_Occurred()) SWIG_fail;
31341 }
31342 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
31343 return resultobj;
31344 fail:
31345 return NULL;
31346 }
31347
31348
31349 SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31350 PyObject *obj;
31351 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31352 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
31353 return SWIG_Py_Void();
31354 }
31355
31356 SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31357 return SWIG_Python_InitShadowInstance(args);
31358 }
31359
31360 SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31361 PyObject *resultobj = 0;
31362 wxWindow *arg1 = (wxWindow *) 0 ;
31363 int arg2 = (int) -1 ;
31364 wxPoint const &arg3_defvalue = wxDefaultPosition ;
31365 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
31366 wxSize const &arg4_defvalue = wxDefaultSize ;
31367 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
31368 long arg5 = (long) wxLC_REPORT ;
31369 wxValidator const &arg6_defvalue = wxDefaultValidator ;
31370 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
31371 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
31372 wxString *arg7 = (wxString *) &arg7_defvalue ;
31373 wxListView *result = 0 ;
31374 void *argp1 = 0 ;
31375 int res1 = 0 ;
31376 int val2 ;
31377 int ecode2 = 0 ;
31378 wxPoint temp3 ;
31379 wxSize temp4 ;
31380 long val5 ;
31381 int ecode5 = 0 ;
31382 void *argp6 = 0 ;
31383 int res6 = 0 ;
31384 bool temp7 = false ;
31385 PyObject * obj0 = 0 ;
31386 PyObject * obj1 = 0 ;
31387 PyObject * obj2 = 0 ;
31388 PyObject * obj3 = 0 ;
31389 PyObject * obj4 = 0 ;
31390 PyObject * obj5 = 0 ;
31391 PyObject * obj6 = 0 ;
31392 char * kwnames[] = {
31393 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31394 };
31395
31396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31398 if (!SWIG_IsOK(res1)) {
31399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
31400 }
31401 arg1 = reinterpret_cast< wxWindow * >(argp1);
31402 if (obj1) {
31403 ecode2 = SWIG_AsVal_int(obj1, &val2);
31404 if (!SWIG_IsOK(ecode2)) {
31405 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
31406 }
31407 arg2 = static_cast< int >(val2);
31408 }
31409 if (obj2) {
31410 {
31411 arg3 = &temp3;
31412 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31413 }
31414 }
31415 if (obj3) {
31416 {
31417 arg4 = &temp4;
31418 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
31419 }
31420 }
31421 if (obj4) {
31422 ecode5 = SWIG_AsVal_long(obj4, &val5);
31423 if (!SWIG_IsOK(ecode5)) {
31424 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
31425 }
31426 arg5 = static_cast< long >(val5);
31427 }
31428 if (obj5) {
31429 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
31430 if (!SWIG_IsOK(res6)) {
31431 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31432 }
31433 if (!argp6) {
31434 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31435 }
31436 arg6 = reinterpret_cast< wxValidator * >(argp6);
31437 }
31438 if (obj6) {
31439 {
31440 arg7 = wxString_in_helper(obj6);
31441 if (arg7 == NULL) SWIG_fail;
31442 temp7 = true;
31443 }
31444 }
31445 {
31446 if (!wxPyCheckForApp()) SWIG_fail;
31447 PyThreadState* __tstate = wxPyBeginAllowThreads();
31448 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
31449 wxPyEndAllowThreads(__tstate);
31450 if (PyErr_Occurred()) SWIG_fail;
31451 }
31452 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
31453 {
31454 if (temp7)
31455 delete arg7;
31456 }
31457 return resultobj;
31458 fail:
31459 {
31460 if (temp7)
31461 delete arg7;
31462 }
31463 return NULL;
31464 }
31465
31466
31467 SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31468 PyObject *resultobj = 0;
31469 wxListView *result = 0 ;
31470
31471 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
31472 {
31473 if (!wxPyCheckForApp()) SWIG_fail;
31474 PyThreadState* __tstate = wxPyBeginAllowThreads();
31475 result = (wxListView *)new wxListView();
31476 wxPyEndAllowThreads(__tstate);
31477 if (PyErr_Occurred()) SWIG_fail;
31478 }
31479 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
31480 return resultobj;
31481 fail:
31482 return NULL;
31483 }
31484
31485
31486 SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31487 PyObject *resultobj = 0;
31488 wxListView *arg1 = (wxListView *) 0 ;
31489 wxWindow *arg2 = (wxWindow *) 0 ;
31490 int arg3 = (int) -1 ;
31491 wxPoint const &arg4_defvalue = wxDefaultPosition ;
31492 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
31493 wxSize const &arg5_defvalue = wxDefaultSize ;
31494 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
31495 long arg6 = (long) wxLC_REPORT ;
31496 wxValidator const &arg7_defvalue = wxDefaultValidator ;
31497 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
31498 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
31499 wxString *arg8 = (wxString *) &arg8_defvalue ;
31500 bool result;
31501 void *argp1 = 0 ;
31502 int res1 = 0 ;
31503 void *argp2 = 0 ;
31504 int res2 = 0 ;
31505 int val3 ;
31506 int ecode3 = 0 ;
31507 wxPoint temp4 ;
31508 wxSize temp5 ;
31509 long val6 ;
31510 int ecode6 = 0 ;
31511 void *argp7 = 0 ;
31512 int res7 = 0 ;
31513 bool temp8 = false ;
31514 PyObject * obj0 = 0 ;
31515 PyObject * obj1 = 0 ;
31516 PyObject * obj2 = 0 ;
31517 PyObject * obj3 = 0 ;
31518 PyObject * obj4 = 0 ;
31519 PyObject * obj5 = 0 ;
31520 PyObject * obj6 = 0 ;
31521 PyObject * obj7 = 0 ;
31522 char * kwnames[] = {
31523 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31524 };
31525
31526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31528 if (!SWIG_IsOK(res1)) {
31529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
31530 }
31531 arg1 = reinterpret_cast< wxListView * >(argp1);
31532 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31533 if (!SWIG_IsOK(res2)) {
31534 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
31535 }
31536 arg2 = reinterpret_cast< wxWindow * >(argp2);
31537 if (obj2) {
31538 ecode3 = SWIG_AsVal_int(obj2, &val3);
31539 if (!SWIG_IsOK(ecode3)) {
31540 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
31541 }
31542 arg3 = static_cast< int >(val3);
31543 }
31544 if (obj3) {
31545 {
31546 arg4 = &temp4;
31547 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
31548 }
31549 }
31550 if (obj4) {
31551 {
31552 arg5 = &temp5;
31553 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
31554 }
31555 }
31556 if (obj5) {
31557 ecode6 = SWIG_AsVal_long(obj5, &val6);
31558 if (!SWIG_IsOK(ecode6)) {
31559 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
31560 }
31561 arg6 = static_cast< long >(val6);
31562 }
31563 if (obj6) {
31564 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
31565 if (!SWIG_IsOK(res7)) {
31566 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
31567 }
31568 if (!argp7) {
31569 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
31570 }
31571 arg7 = reinterpret_cast< wxValidator * >(argp7);
31572 }
31573 if (obj7) {
31574 {
31575 arg8 = wxString_in_helper(obj7);
31576 if (arg8 == NULL) SWIG_fail;
31577 temp8 = true;
31578 }
31579 }
31580 {
31581 PyThreadState* __tstate = wxPyBeginAllowThreads();
31582 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
31583 wxPyEndAllowThreads(__tstate);
31584 if (PyErr_Occurred()) SWIG_fail;
31585 }
31586 {
31587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31588 }
31589 {
31590 if (temp8)
31591 delete arg8;
31592 }
31593 return resultobj;
31594 fail:
31595 {
31596 if (temp8)
31597 delete arg8;
31598 }
31599 return NULL;
31600 }
31601
31602
31603 SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31604 PyObject *resultobj = 0;
31605 wxListView *arg1 = (wxListView *) 0 ;
31606 long arg2 ;
31607 bool arg3 = (bool) true ;
31608 void *argp1 = 0 ;
31609 int res1 = 0 ;
31610 long val2 ;
31611 int ecode2 = 0 ;
31612 bool val3 ;
31613 int ecode3 = 0 ;
31614 PyObject * obj0 = 0 ;
31615 PyObject * obj1 = 0 ;
31616 PyObject * obj2 = 0 ;
31617 char * kwnames[] = {
31618 (char *) "self",(char *) "n",(char *) "on", NULL
31619 };
31620
31621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31623 if (!SWIG_IsOK(res1)) {
31624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
31625 }
31626 arg1 = reinterpret_cast< wxListView * >(argp1);
31627 ecode2 = SWIG_AsVal_long(obj1, &val2);
31628 if (!SWIG_IsOK(ecode2)) {
31629 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
31630 }
31631 arg2 = static_cast< long >(val2);
31632 if (obj2) {
31633 ecode3 = SWIG_AsVal_bool(obj2, &val3);
31634 if (!SWIG_IsOK(ecode3)) {
31635 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
31636 }
31637 arg3 = static_cast< bool >(val3);
31638 }
31639 {
31640 PyThreadState* __tstate = wxPyBeginAllowThreads();
31641 (arg1)->Select(arg2,arg3);
31642 wxPyEndAllowThreads(__tstate);
31643 if (PyErr_Occurred()) SWIG_fail;
31644 }
31645 resultobj = SWIG_Py_Void();
31646 return resultobj;
31647 fail:
31648 return NULL;
31649 }
31650
31651
31652 SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31653 PyObject *resultobj = 0;
31654 wxListView *arg1 = (wxListView *) 0 ;
31655 long arg2 ;
31656 void *argp1 = 0 ;
31657 int res1 = 0 ;
31658 long val2 ;
31659 int ecode2 = 0 ;
31660 PyObject * obj0 = 0 ;
31661 PyObject * obj1 = 0 ;
31662 char * kwnames[] = {
31663 (char *) "self",(char *) "index", NULL
31664 };
31665
31666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
31667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31668 if (!SWIG_IsOK(res1)) {
31669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
31670 }
31671 arg1 = reinterpret_cast< wxListView * >(argp1);
31672 ecode2 = SWIG_AsVal_long(obj1, &val2);
31673 if (!SWIG_IsOK(ecode2)) {
31674 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
31675 }
31676 arg2 = static_cast< long >(val2);
31677 {
31678 PyThreadState* __tstate = wxPyBeginAllowThreads();
31679 (arg1)->Focus(arg2);
31680 wxPyEndAllowThreads(__tstate);
31681 if (PyErr_Occurred()) SWIG_fail;
31682 }
31683 resultobj = SWIG_Py_Void();
31684 return resultobj;
31685 fail:
31686 return NULL;
31687 }
31688
31689
31690 SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31691 PyObject *resultobj = 0;
31692 wxListView *arg1 = (wxListView *) 0 ;
31693 long result;
31694 void *argp1 = 0 ;
31695 int res1 = 0 ;
31696 PyObject *swig_obj[1] ;
31697
31698 if (!args) SWIG_fail;
31699 swig_obj[0] = args;
31700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31701 if (!SWIG_IsOK(res1)) {
31702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
31703 }
31704 arg1 = reinterpret_cast< wxListView * >(argp1);
31705 {
31706 PyThreadState* __tstate = wxPyBeginAllowThreads();
31707 result = (long)((wxListView const *)arg1)->GetFocusedItem();
31708 wxPyEndAllowThreads(__tstate);
31709 if (PyErr_Occurred()) SWIG_fail;
31710 }
31711 resultobj = SWIG_From_long(static_cast< long >(result));
31712 return resultobj;
31713 fail:
31714 return NULL;
31715 }
31716
31717
31718 SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31719 PyObject *resultobj = 0;
31720 wxListView *arg1 = (wxListView *) 0 ;
31721 long arg2 ;
31722 long result;
31723 void *argp1 = 0 ;
31724 int res1 = 0 ;
31725 long val2 ;
31726 int ecode2 = 0 ;
31727 PyObject * obj0 = 0 ;
31728 PyObject * obj1 = 0 ;
31729 char * kwnames[] = {
31730 (char *) "self",(char *) "item", NULL
31731 };
31732
31733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
31734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31735 if (!SWIG_IsOK(res1)) {
31736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
31737 }
31738 arg1 = reinterpret_cast< wxListView * >(argp1);
31739 ecode2 = SWIG_AsVal_long(obj1, &val2);
31740 if (!SWIG_IsOK(ecode2)) {
31741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
31742 }
31743 arg2 = static_cast< long >(val2);
31744 {
31745 PyThreadState* __tstate = wxPyBeginAllowThreads();
31746 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
31747 wxPyEndAllowThreads(__tstate);
31748 if (PyErr_Occurred()) SWIG_fail;
31749 }
31750 resultobj = SWIG_From_long(static_cast< long >(result));
31751 return resultobj;
31752 fail:
31753 return NULL;
31754 }
31755
31756
31757 SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31758 PyObject *resultobj = 0;
31759 wxListView *arg1 = (wxListView *) 0 ;
31760 long result;
31761 void *argp1 = 0 ;
31762 int res1 = 0 ;
31763 PyObject *swig_obj[1] ;
31764
31765 if (!args) SWIG_fail;
31766 swig_obj[0] = args;
31767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31768 if (!SWIG_IsOK(res1)) {
31769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
31770 }
31771 arg1 = reinterpret_cast< wxListView * >(argp1);
31772 {
31773 PyThreadState* __tstate = wxPyBeginAllowThreads();
31774 result = (long)((wxListView const *)arg1)->GetFirstSelected();
31775 wxPyEndAllowThreads(__tstate);
31776 if (PyErr_Occurred()) SWIG_fail;
31777 }
31778 resultobj = SWIG_From_long(static_cast< long >(result));
31779 return resultobj;
31780 fail:
31781 return NULL;
31782 }
31783
31784
31785 SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31786 PyObject *resultobj = 0;
31787 wxListView *arg1 = (wxListView *) 0 ;
31788 long arg2 ;
31789 bool result;
31790 void *argp1 = 0 ;
31791 int res1 = 0 ;
31792 long val2 ;
31793 int ecode2 = 0 ;
31794 PyObject * obj0 = 0 ;
31795 PyObject * obj1 = 0 ;
31796 char * kwnames[] = {
31797 (char *) "self",(char *) "index", NULL
31798 };
31799
31800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
31801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31802 if (!SWIG_IsOK(res1)) {
31803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
31804 }
31805 arg1 = reinterpret_cast< wxListView * >(argp1);
31806 ecode2 = SWIG_AsVal_long(obj1, &val2);
31807 if (!SWIG_IsOK(ecode2)) {
31808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
31809 }
31810 arg2 = static_cast< long >(val2);
31811 {
31812 PyThreadState* __tstate = wxPyBeginAllowThreads();
31813 result = (bool)(arg1)->IsSelected(arg2);
31814 wxPyEndAllowThreads(__tstate);
31815 if (PyErr_Occurred()) SWIG_fail;
31816 }
31817 {
31818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31819 }
31820 return resultobj;
31821 fail:
31822 return NULL;
31823 }
31824
31825
31826 SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31827 PyObject *resultobj = 0;
31828 wxListView *arg1 = (wxListView *) 0 ;
31829 int arg2 ;
31830 int arg3 ;
31831 void *argp1 = 0 ;
31832 int res1 = 0 ;
31833 int val2 ;
31834 int ecode2 = 0 ;
31835 int val3 ;
31836 int ecode3 = 0 ;
31837 PyObject * obj0 = 0 ;
31838 PyObject * obj1 = 0 ;
31839 PyObject * obj2 = 0 ;
31840 char * kwnames[] = {
31841 (char *) "self",(char *) "col",(char *) "image", NULL
31842 };
31843
31844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31846 if (!SWIG_IsOK(res1)) {
31847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
31848 }
31849 arg1 = reinterpret_cast< wxListView * >(argp1);
31850 ecode2 = SWIG_AsVal_int(obj1, &val2);
31851 if (!SWIG_IsOK(ecode2)) {
31852 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
31853 }
31854 arg2 = static_cast< int >(val2);
31855 ecode3 = SWIG_AsVal_int(obj2, &val3);
31856 if (!SWIG_IsOK(ecode3)) {
31857 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
31858 }
31859 arg3 = static_cast< int >(val3);
31860 {
31861 PyThreadState* __tstate = wxPyBeginAllowThreads();
31862 (arg1)->SetColumnImage(arg2,arg3);
31863 wxPyEndAllowThreads(__tstate);
31864 if (PyErr_Occurred()) SWIG_fail;
31865 }
31866 resultobj = SWIG_Py_Void();
31867 return resultobj;
31868 fail:
31869 return NULL;
31870 }
31871
31872
31873 SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31874 PyObject *resultobj = 0;
31875 wxListView *arg1 = (wxListView *) 0 ;
31876 int arg2 ;
31877 void *argp1 = 0 ;
31878 int res1 = 0 ;
31879 int val2 ;
31880 int ecode2 = 0 ;
31881 PyObject * obj0 = 0 ;
31882 PyObject * obj1 = 0 ;
31883 char * kwnames[] = {
31884 (char *) "self",(char *) "col", NULL
31885 };
31886
31887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
31888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31889 if (!SWIG_IsOK(res1)) {
31890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
31891 }
31892 arg1 = reinterpret_cast< wxListView * >(argp1);
31893 ecode2 = SWIG_AsVal_int(obj1, &val2);
31894 if (!SWIG_IsOK(ecode2)) {
31895 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
31896 }
31897 arg2 = static_cast< int >(val2);
31898 {
31899 PyThreadState* __tstate = wxPyBeginAllowThreads();
31900 (arg1)->ClearColumnImage(arg2);
31901 wxPyEndAllowThreads(__tstate);
31902 if (PyErr_Occurred()) SWIG_fail;
31903 }
31904 resultobj = SWIG_Py_Void();
31905 return resultobj;
31906 fail:
31907 return NULL;
31908 }
31909
31910
31911 SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31912 PyObject *obj;
31913 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31914 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
31915 return SWIG_Py_Void();
31916 }
31917
31918 SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31919 return SWIG_Python_InitShadowInstance(args);
31920 }
31921
31922 SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
31923 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
31924 return 1;
31925 }
31926
31927
31928 SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
31929 PyObject *pyobj = 0;
31930
31931 {
31932 #if wxUSE_UNICODE
31933 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
31934 #else
31935 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
31936 #endif
31937 }
31938 return pyobj;
31939 }
31940
31941
31942 SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31943 PyObject *resultobj = 0;
31944 wxTreeItemId *result = 0 ;
31945
31946 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
31947 {
31948 PyThreadState* __tstate = wxPyBeginAllowThreads();
31949 result = (wxTreeItemId *)new wxTreeItemId();
31950 wxPyEndAllowThreads(__tstate);
31951 if (PyErr_Occurred()) SWIG_fail;
31952 }
31953 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
31954 return resultobj;
31955 fail:
31956 return NULL;
31957 }
31958
31959
31960 SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31961 PyObject *resultobj = 0;
31962 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
31963 void *argp1 = 0 ;
31964 int res1 = 0 ;
31965 PyObject *swig_obj[1] ;
31966
31967 if (!args) SWIG_fail;
31968 swig_obj[0] = args;
31969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
31970 if (!SWIG_IsOK(res1)) {
31971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
31972 }
31973 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
31974 {
31975 PyThreadState* __tstate = wxPyBeginAllowThreads();
31976 delete arg1;
31977
31978 wxPyEndAllowThreads(__tstate);
31979 if (PyErr_Occurred()) SWIG_fail;
31980 }
31981 resultobj = SWIG_Py_Void();
31982 return resultobj;
31983 fail:
31984 return NULL;
31985 }
31986
31987
31988 SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31989 PyObject *resultobj = 0;
31990 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
31991 bool result;
31992 void *argp1 = 0 ;
31993 int res1 = 0 ;
31994 PyObject *swig_obj[1] ;
31995
31996 if (!args) SWIG_fail;
31997 swig_obj[0] = args;
31998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
31999 if (!SWIG_IsOK(res1)) {
32000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32001 }
32002 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32003 {
32004 PyThreadState* __tstate = wxPyBeginAllowThreads();
32005 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32006 wxPyEndAllowThreads(__tstate);
32007 if (PyErr_Occurred()) SWIG_fail;
32008 }
32009 {
32010 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32011 }
32012 return resultobj;
32013 fail:
32014 return NULL;
32015 }
32016
32017
32018 SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32019 PyObject *resultobj = 0;
32020 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32021 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32022 bool result;
32023 void *argp1 = 0 ;
32024 int res1 = 0 ;
32025 void *argp2 = 0 ;
32026 int res2 = 0 ;
32027 PyObject * obj0 = 0 ;
32028 PyObject * obj1 = 0 ;
32029 char * kwnames[] = {
32030 (char *) "self",(char *) "other", NULL
32031 };
32032
32033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32035 if (!SWIG_IsOK(res1)) {
32036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32037 }
32038 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32039 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32040 if (!SWIG_IsOK(res2)) {
32041 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32042 }
32043 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32044 {
32045 PyThreadState* __tstate = wxPyBeginAllowThreads();
32046 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32047 wxPyEndAllowThreads(__tstate);
32048 if (PyErr_Occurred()) SWIG_fail;
32049 }
32050 {
32051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32052 }
32053 return resultobj;
32054 fail:
32055 return NULL;
32056 }
32057
32058
32059 SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32060 PyObject *resultobj = 0;
32061 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32062 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32063 bool result;
32064 void *argp1 = 0 ;
32065 int res1 = 0 ;
32066 void *argp2 = 0 ;
32067 int res2 = 0 ;
32068 PyObject * obj0 = 0 ;
32069 PyObject * obj1 = 0 ;
32070 char * kwnames[] = {
32071 (char *) "self",(char *) "other", NULL
32072 };
32073
32074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32076 if (!SWIG_IsOK(res1)) {
32077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32078 }
32079 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32080 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32081 if (!SWIG_IsOK(res2)) {
32082 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32083 }
32084 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32085 {
32086 PyThreadState* __tstate = wxPyBeginAllowThreads();
32087 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32088 wxPyEndAllowThreads(__tstate);
32089 if (PyErr_Occurred()) SWIG_fail;
32090 }
32091 {
32092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32093 }
32094 return resultobj;
32095 fail:
32096 return NULL;
32097 }
32098
32099
32100 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32101 PyObject *resultobj = 0;
32102 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32103 void *arg2 = (void *) 0 ;
32104 void *argp1 = 0 ;
32105 int res1 = 0 ;
32106 int res2 ;
32107 PyObject *swig_obj[2] ;
32108
32109 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32111 if (!SWIG_IsOK(res1)) {
32112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32113 }
32114 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32115 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32116 if (!SWIG_IsOK(res2)) {
32117 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32118 }
32119 if (arg1) (arg1)->m_pItem = arg2;
32120
32121 resultobj = SWIG_Py_Void();
32122 return resultobj;
32123 fail:
32124 return NULL;
32125 }
32126
32127
32128 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32129 PyObject *resultobj = 0;
32130 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32131 void *result = 0 ;
32132 void *argp1 = 0 ;
32133 int res1 = 0 ;
32134 PyObject *swig_obj[1] ;
32135
32136 if (!args) SWIG_fail;
32137 swig_obj[0] = args;
32138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32139 if (!SWIG_IsOK(res1)) {
32140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32141 }
32142 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32143 result = (void *) ((arg1)->m_pItem);
32144 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32145 return resultobj;
32146 fail:
32147 return NULL;
32148 }
32149
32150
32151 SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32152 PyObject *obj;
32153 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32154 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32155 return SWIG_Py_Void();
32156 }
32157
32158 SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32159 return SWIG_Python_InitShadowInstance(args);
32160 }
32161
32162 SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32163 PyObject *resultobj = 0;
32164 PyObject *arg1 = (PyObject *) NULL ;
32165 wxPyTreeItemData *result = 0 ;
32166 PyObject * obj0 = 0 ;
32167 char * kwnames[] = {
32168 (char *) "obj", NULL
32169 };
32170
32171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32172 if (obj0) {
32173 arg1 = obj0;
32174 }
32175 {
32176 PyThreadState* __tstate = wxPyBeginAllowThreads();
32177 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32178 wxPyEndAllowThreads(__tstate);
32179 if (PyErr_Occurred()) SWIG_fail;
32180 }
32181 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32182 return resultobj;
32183 fail:
32184 return NULL;
32185 }
32186
32187
32188 SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32189 PyObject *resultobj = 0;
32190 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32191 void *argp1 = 0 ;
32192 int res1 = 0 ;
32193 PyObject *swig_obj[1] ;
32194
32195 if (!args) SWIG_fail;
32196 swig_obj[0] = args;
32197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32198 if (!SWIG_IsOK(res1)) {
32199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32200 }
32201 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32202 {
32203 PyThreadState* __tstate = wxPyBeginAllowThreads();
32204 delete arg1;
32205
32206 wxPyEndAllowThreads(__tstate);
32207 if (PyErr_Occurred()) SWIG_fail;
32208 }
32209 resultobj = SWIG_Py_Void();
32210 return resultobj;
32211 fail:
32212 return NULL;
32213 }
32214
32215
32216 SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32217 PyObject *resultobj = 0;
32218 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32219 PyObject *result = 0 ;
32220 void *argp1 = 0 ;
32221 int res1 = 0 ;
32222 PyObject *swig_obj[1] ;
32223
32224 if (!args) SWIG_fail;
32225 swig_obj[0] = args;
32226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32227 if (!SWIG_IsOK(res1)) {
32228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32229 }
32230 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32231 {
32232 PyThreadState* __tstate = wxPyBeginAllowThreads();
32233 result = (PyObject *)(arg1)->GetData();
32234 wxPyEndAllowThreads(__tstate);
32235 if (PyErr_Occurred()) SWIG_fail;
32236 }
32237 resultobj = result;
32238 return resultobj;
32239 fail:
32240 return NULL;
32241 }
32242
32243
32244 SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32245 PyObject *resultobj = 0;
32246 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32247 PyObject *arg2 = (PyObject *) 0 ;
32248 void *argp1 = 0 ;
32249 int res1 = 0 ;
32250 PyObject * obj0 = 0 ;
32251 PyObject * obj1 = 0 ;
32252 char * kwnames[] = {
32253 (char *) "self",(char *) "obj", NULL
32254 };
32255
32256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32258 if (!SWIG_IsOK(res1)) {
32259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32260 }
32261 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32262 arg2 = obj1;
32263 {
32264 PyThreadState* __tstate = wxPyBeginAllowThreads();
32265 (arg1)->SetData(arg2);
32266 wxPyEndAllowThreads(__tstate);
32267 if (PyErr_Occurred()) SWIG_fail;
32268 }
32269 resultobj = SWIG_Py_Void();
32270 return resultobj;
32271 fail:
32272 return NULL;
32273 }
32274
32275
32276 SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32277 PyObject *resultobj = 0;
32278 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32279 wxTreeItemId *result = 0 ;
32280 void *argp1 = 0 ;
32281 int res1 = 0 ;
32282 PyObject *swig_obj[1] ;
32283
32284 if (!args) SWIG_fail;
32285 swig_obj[0] = args;
32286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32287 if (!SWIG_IsOK(res1)) {
32288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32289 }
32290 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32291 {
32292 PyThreadState* __tstate = wxPyBeginAllowThreads();
32293 {
32294 wxTreeItemId const &_result_ref = (arg1)->GetId();
32295 result = (wxTreeItemId *) &_result_ref;
32296 }
32297 wxPyEndAllowThreads(__tstate);
32298 if (PyErr_Occurred()) SWIG_fail;
32299 }
32300 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32301 return resultobj;
32302 fail:
32303 return NULL;
32304 }
32305
32306
32307 SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32308 PyObject *resultobj = 0;
32309 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32310 wxTreeItemId *arg2 = 0 ;
32311 void *argp1 = 0 ;
32312 int res1 = 0 ;
32313 void *argp2 = 0 ;
32314 int res2 = 0 ;
32315 PyObject * obj0 = 0 ;
32316 PyObject * obj1 = 0 ;
32317 char * kwnames[] = {
32318 (char *) "self",(char *) "id", NULL
32319 };
32320
32321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32323 if (!SWIG_IsOK(res1)) {
32324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32325 }
32326 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32327 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32328 if (!SWIG_IsOK(res2)) {
32329 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32330 }
32331 if (!argp2) {
32332 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32333 }
32334 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32335 {
32336 PyThreadState* __tstate = wxPyBeginAllowThreads();
32337 (arg1)->SetId((wxTreeItemId const &)*arg2);
32338 wxPyEndAllowThreads(__tstate);
32339 if (PyErr_Occurred()) SWIG_fail;
32340 }
32341 resultobj = SWIG_Py_Void();
32342 return resultobj;
32343 fail:
32344 return NULL;
32345 }
32346
32347
32348 SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32349 PyObject *resultobj = 0;
32350 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32351 void *argp1 = 0 ;
32352 int res1 = 0 ;
32353 PyObject *swig_obj[1] ;
32354
32355 if (!args) SWIG_fail;
32356 swig_obj[0] = args;
32357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32358 if (!SWIG_IsOK(res1)) {
32359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32360 }
32361 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32362 {
32363 PyThreadState* __tstate = wxPyBeginAllowThreads();
32364 wxPyTreeItemData_Destroy(arg1);
32365 wxPyEndAllowThreads(__tstate);
32366 if (PyErr_Occurred()) SWIG_fail;
32367 }
32368 resultobj = SWIG_Py_Void();
32369 return resultobj;
32370 fail:
32371 return NULL;
32372 }
32373
32374
32375 SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32376 PyObject *obj;
32377 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32378 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
32379 return SWIG_Py_Void();
32380 }
32381
32382 SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32383 return SWIG_Python_InitShadowInstance(args);
32384 }
32385
32386 SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32387 PyObject *resultobj = 0;
32388 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
32389 int arg2 = (int) 0 ;
32390 wxTreeEvent *result = 0 ;
32391 int val1 ;
32392 int ecode1 = 0 ;
32393 int val2 ;
32394 int ecode2 = 0 ;
32395 PyObject * obj0 = 0 ;
32396 PyObject * obj1 = 0 ;
32397 char * kwnames[] = {
32398 (char *) "commandType",(char *) "id", NULL
32399 };
32400
32401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) SWIG_fail;
32402 if (obj0) {
32403 ecode1 = SWIG_AsVal_int(obj0, &val1);
32404 if (!SWIG_IsOK(ecode1)) {
32405 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32406 }
32407 arg1 = static_cast< wxEventType >(val1);
32408 }
32409 if (obj1) {
32410 ecode2 = SWIG_AsVal_int(obj1, &val2);
32411 if (!SWIG_IsOK(ecode2)) {
32412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
32413 }
32414 arg2 = static_cast< int >(val2);
32415 }
32416 {
32417 PyThreadState* __tstate = wxPyBeginAllowThreads();
32418 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
32419 wxPyEndAllowThreads(__tstate);
32420 if (PyErr_Occurred()) SWIG_fail;
32421 }
32422 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32423 return resultobj;
32424 fail:
32425 return NULL;
32426 }
32427
32428
32429 SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32430 PyObject *resultobj = 0;
32431 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32432 wxTreeItemId result;
32433 void *argp1 = 0 ;
32434 int res1 = 0 ;
32435 PyObject *swig_obj[1] ;
32436
32437 if (!args) SWIG_fail;
32438 swig_obj[0] = args;
32439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32440 if (!SWIG_IsOK(res1)) {
32441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32442 }
32443 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32444 {
32445 PyThreadState* __tstate = wxPyBeginAllowThreads();
32446 result = ((wxTreeEvent const *)arg1)->GetItem();
32447 wxPyEndAllowThreads(__tstate);
32448 if (PyErr_Occurred()) SWIG_fail;
32449 }
32450 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32451 return resultobj;
32452 fail:
32453 return NULL;
32454 }
32455
32456
32457 SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32458 PyObject *resultobj = 0;
32459 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32460 wxTreeItemId *arg2 = 0 ;
32461 void *argp1 = 0 ;
32462 int res1 = 0 ;
32463 void *argp2 = 0 ;
32464 int res2 = 0 ;
32465 PyObject * obj0 = 0 ;
32466 PyObject * obj1 = 0 ;
32467 char * kwnames[] = {
32468 (char *) "self",(char *) "item", NULL
32469 };
32470
32471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
32472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32473 if (!SWIG_IsOK(res1)) {
32474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32475 }
32476 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32477 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32478 if (!SWIG_IsOK(res2)) {
32479 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32480 }
32481 if (!argp2) {
32482 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32483 }
32484 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32485 {
32486 PyThreadState* __tstate = wxPyBeginAllowThreads();
32487 (arg1)->SetItem((wxTreeItemId const &)*arg2);
32488 wxPyEndAllowThreads(__tstate);
32489 if (PyErr_Occurred()) SWIG_fail;
32490 }
32491 resultobj = SWIG_Py_Void();
32492 return resultobj;
32493 fail:
32494 return NULL;
32495 }
32496
32497
32498 SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32499 PyObject *resultobj = 0;
32500 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32501 wxTreeItemId result;
32502 void *argp1 = 0 ;
32503 int res1 = 0 ;
32504 PyObject *swig_obj[1] ;
32505
32506 if (!args) SWIG_fail;
32507 swig_obj[0] = args;
32508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32509 if (!SWIG_IsOK(res1)) {
32510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32511 }
32512 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32513 {
32514 PyThreadState* __tstate = wxPyBeginAllowThreads();
32515 result = ((wxTreeEvent const *)arg1)->GetOldItem();
32516 wxPyEndAllowThreads(__tstate);
32517 if (PyErr_Occurred()) SWIG_fail;
32518 }
32519 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32520 return resultobj;
32521 fail:
32522 return NULL;
32523 }
32524
32525
32526 SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32527 PyObject *resultobj = 0;
32528 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32529 wxTreeItemId *arg2 = 0 ;
32530 void *argp1 = 0 ;
32531 int res1 = 0 ;
32532 void *argp2 = 0 ;
32533 int res2 = 0 ;
32534 PyObject * obj0 = 0 ;
32535 PyObject * obj1 = 0 ;
32536 char * kwnames[] = {
32537 (char *) "self",(char *) "item", NULL
32538 };
32539
32540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
32541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32542 if (!SWIG_IsOK(res1)) {
32543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32544 }
32545 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32546 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32547 if (!SWIG_IsOK(res2)) {
32548 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32549 }
32550 if (!argp2) {
32551 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32552 }
32553 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32554 {
32555 PyThreadState* __tstate = wxPyBeginAllowThreads();
32556 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
32557 wxPyEndAllowThreads(__tstate);
32558 if (PyErr_Occurred()) SWIG_fail;
32559 }
32560 resultobj = SWIG_Py_Void();
32561 return resultobj;
32562 fail:
32563 return NULL;
32564 }
32565
32566
32567 SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32568 PyObject *resultobj = 0;
32569 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32570 wxPoint result;
32571 void *argp1 = 0 ;
32572 int res1 = 0 ;
32573 PyObject *swig_obj[1] ;
32574
32575 if (!args) SWIG_fail;
32576 swig_obj[0] = args;
32577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32578 if (!SWIG_IsOK(res1)) {
32579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32580 }
32581 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32582 {
32583 PyThreadState* __tstate = wxPyBeginAllowThreads();
32584 result = ((wxTreeEvent const *)arg1)->GetPoint();
32585 wxPyEndAllowThreads(__tstate);
32586 if (PyErr_Occurred()) SWIG_fail;
32587 }
32588 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
32589 return resultobj;
32590 fail:
32591 return NULL;
32592 }
32593
32594
32595 SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32596 PyObject *resultobj = 0;
32597 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32598 wxPoint *arg2 = 0 ;
32599 void *argp1 = 0 ;
32600 int res1 = 0 ;
32601 wxPoint temp2 ;
32602 PyObject * obj0 = 0 ;
32603 PyObject * obj1 = 0 ;
32604 char * kwnames[] = {
32605 (char *) "self",(char *) "pt", NULL
32606 };
32607
32608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32610 if (!SWIG_IsOK(res1)) {
32611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32612 }
32613 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32614 {
32615 arg2 = &temp2;
32616 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32617 }
32618 {
32619 PyThreadState* __tstate = wxPyBeginAllowThreads();
32620 (arg1)->SetPoint((wxPoint const &)*arg2);
32621 wxPyEndAllowThreads(__tstate);
32622 if (PyErr_Occurred()) SWIG_fail;
32623 }
32624 resultobj = SWIG_Py_Void();
32625 return resultobj;
32626 fail:
32627 return NULL;
32628 }
32629
32630
32631 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32632 PyObject *resultobj = 0;
32633 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32634 wxKeyEvent *result = 0 ;
32635 void *argp1 = 0 ;
32636 int res1 = 0 ;
32637 PyObject *swig_obj[1] ;
32638
32639 if (!args) SWIG_fail;
32640 swig_obj[0] = args;
32641 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32642 if (!SWIG_IsOK(res1)) {
32643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32644 }
32645 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32646 {
32647 PyThreadState* __tstate = wxPyBeginAllowThreads();
32648 {
32649 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
32650 result = (wxKeyEvent *) &_result_ref;
32651 }
32652 wxPyEndAllowThreads(__tstate);
32653 if (PyErr_Occurred()) SWIG_fail;
32654 }
32655 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
32656 return resultobj;
32657 fail:
32658 return NULL;
32659 }
32660
32661
32662 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32663 PyObject *resultobj = 0;
32664 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32665 int result;
32666 void *argp1 = 0 ;
32667 int res1 = 0 ;
32668 PyObject *swig_obj[1] ;
32669
32670 if (!args) SWIG_fail;
32671 swig_obj[0] = args;
32672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32673 if (!SWIG_IsOK(res1)) {
32674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32675 }
32676 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32677 {
32678 PyThreadState* __tstate = wxPyBeginAllowThreads();
32679 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
32680 wxPyEndAllowThreads(__tstate);
32681 if (PyErr_Occurred()) SWIG_fail;
32682 }
32683 resultobj = SWIG_From_int(static_cast< int >(result));
32684 return resultobj;
32685 fail:
32686 return NULL;
32687 }
32688
32689
32690 SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32691 PyObject *resultobj = 0;
32692 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32693 wxKeyEvent *arg2 = 0 ;
32694 void *argp1 = 0 ;
32695 int res1 = 0 ;
32696 void *argp2 = 0 ;
32697 int res2 = 0 ;
32698 PyObject * obj0 = 0 ;
32699 PyObject * obj1 = 0 ;
32700 char * kwnames[] = {
32701 (char *) "self",(char *) "evt", NULL
32702 };
32703
32704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
32705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32706 if (!SWIG_IsOK(res1)) {
32707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32708 }
32709 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32710 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
32711 if (!SWIG_IsOK(res2)) {
32712 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
32713 }
32714 if (!argp2) {
32715 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
32716 }
32717 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
32718 {
32719 PyThreadState* __tstate = wxPyBeginAllowThreads();
32720 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
32721 wxPyEndAllowThreads(__tstate);
32722 if (PyErr_Occurred()) SWIG_fail;
32723 }
32724 resultobj = SWIG_Py_Void();
32725 return resultobj;
32726 fail:
32727 return NULL;
32728 }
32729
32730
32731 SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32732 PyObject *resultobj = 0;
32733 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32734 wxString *result = 0 ;
32735 void *argp1 = 0 ;
32736 int res1 = 0 ;
32737 PyObject *swig_obj[1] ;
32738
32739 if (!args) SWIG_fail;
32740 swig_obj[0] = args;
32741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32742 if (!SWIG_IsOK(res1)) {
32743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32744 }
32745 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32746 {
32747 PyThreadState* __tstate = wxPyBeginAllowThreads();
32748 {
32749 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
32750 result = (wxString *) &_result_ref;
32751 }
32752 wxPyEndAllowThreads(__tstate);
32753 if (PyErr_Occurred()) SWIG_fail;
32754 }
32755 {
32756 #if wxUSE_UNICODE
32757 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
32758 #else
32759 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
32760 #endif
32761 }
32762 return resultobj;
32763 fail:
32764 return NULL;
32765 }
32766
32767
32768 SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32769 PyObject *resultobj = 0;
32770 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32771 wxString *arg2 = 0 ;
32772 void *argp1 = 0 ;
32773 int res1 = 0 ;
32774 bool temp2 = false ;
32775 PyObject * obj0 = 0 ;
32776 PyObject * obj1 = 0 ;
32777 char * kwnames[] = {
32778 (char *) "self",(char *) "label", NULL
32779 };
32780
32781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
32782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32783 if (!SWIG_IsOK(res1)) {
32784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32785 }
32786 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32787 {
32788 arg2 = wxString_in_helper(obj1);
32789 if (arg2 == NULL) SWIG_fail;
32790 temp2 = true;
32791 }
32792 {
32793 PyThreadState* __tstate = wxPyBeginAllowThreads();
32794 (arg1)->SetLabel((wxString const &)*arg2);
32795 wxPyEndAllowThreads(__tstate);
32796 if (PyErr_Occurred()) SWIG_fail;
32797 }
32798 resultobj = SWIG_Py_Void();
32799 {
32800 if (temp2)
32801 delete arg2;
32802 }
32803 return resultobj;
32804 fail:
32805 {
32806 if (temp2)
32807 delete arg2;
32808 }
32809 return NULL;
32810 }
32811
32812
32813 SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32814 PyObject *resultobj = 0;
32815 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32816 bool result;
32817 void *argp1 = 0 ;
32818 int res1 = 0 ;
32819 PyObject *swig_obj[1] ;
32820
32821 if (!args) SWIG_fail;
32822 swig_obj[0] = args;
32823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32824 if (!SWIG_IsOK(res1)) {
32825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32826 }
32827 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32828 {
32829 PyThreadState* __tstate = wxPyBeginAllowThreads();
32830 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
32831 wxPyEndAllowThreads(__tstate);
32832 if (PyErr_Occurred()) SWIG_fail;
32833 }
32834 {
32835 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32836 }
32837 return resultobj;
32838 fail:
32839 return NULL;
32840 }
32841
32842
32843 SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32844 PyObject *resultobj = 0;
32845 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32846 bool arg2 ;
32847 void *argp1 = 0 ;
32848 int res1 = 0 ;
32849 bool val2 ;
32850 int ecode2 = 0 ;
32851 PyObject * obj0 = 0 ;
32852 PyObject * obj1 = 0 ;
32853 char * kwnames[] = {
32854 (char *) "self",(char *) "editCancelled", NULL
32855 };
32856
32857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
32858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32859 if (!SWIG_IsOK(res1)) {
32860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32861 }
32862 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32863 ecode2 = SWIG_AsVal_bool(obj1, &val2);
32864 if (!SWIG_IsOK(ecode2)) {
32865 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
32866 }
32867 arg2 = static_cast< bool >(val2);
32868 {
32869 PyThreadState* __tstate = wxPyBeginAllowThreads();
32870 (arg1)->SetEditCanceled(arg2);
32871 wxPyEndAllowThreads(__tstate);
32872 if (PyErr_Occurred()) SWIG_fail;
32873 }
32874 resultobj = SWIG_Py_Void();
32875 return resultobj;
32876 fail:
32877 return NULL;
32878 }
32879
32880
32881 SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32882 PyObject *resultobj = 0;
32883 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32884 wxString *arg2 = 0 ;
32885 void *argp1 = 0 ;
32886 int res1 = 0 ;
32887 bool temp2 = false ;
32888 PyObject * obj0 = 0 ;
32889 PyObject * obj1 = 0 ;
32890 char * kwnames[] = {
32891 (char *) "self",(char *) "toolTip", NULL
32892 };
32893
32894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
32895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32896 if (!SWIG_IsOK(res1)) {
32897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32898 }
32899 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32900 {
32901 arg2 = wxString_in_helper(obj1);
32902 if (arg2 == NULL) SWIG_fail;
32903 temp2 = true;
32904 }
32905 {
32906 PyThreadState* __tstate = wxPyBeginAllowThreads();
32907 (arg1)->SetToolTip((wxString const &)*arg2);
32908 wxPyEndAllowThreads(__tstate);
32909 if (PyErr_Occurred()) SWIG_fail;
32910 }
32911 resultobj = SWIG_Py_Void();
32912 {
32913 if (temp2)
32914 delete arg2;
32915 }
32916 return resultobj;
32917 fail:
32918 {
32919 if (temp2)
32920 delete arg2;
32921 }
32922 return NULL;
32923 }
32924
32925
32926 SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32927 PyObject *resultobj = 0;
32928 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32929 wxString result;
32930 void *argp1 = 0 ;
32931 int res1 = 0 ;
32932 PyObject *swig_obj[1] ;
32933
32934 if (!args) SWIG_fail;
32935 swig_obj[0] = args;
32936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32937 if (!SWIG_IsOK(res1)) {
32938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32939 }
32940 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32941 {
32942 PyThreadState* __tstate = wxPyBeginAllowThreads();
32943 result = (arg1)->GetToolTip();
32944 wxPyEndAllowThreads(__tstate);
32945 if (PyErr_Occurred()) SWIG_fail;
32946 }
32947 {
32948 #if wxUSE_UNICODE
32949 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32950 #else
32951 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32952 #endif
32953 }
32954 return resultobj;
32955 fail:
32956 return NULL;
32957 }
32958
32959
32960 SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32961 PyObject *obj;
32962 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32963 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
32964 return SWIG_Py_Void();
32965 }
32966
32967 SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32968 return SWIG_Python_InitShadowInstance(args);
32969 }
32970
32971 SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32972 PyObject *resultobj = 0;
32973 wxWindow *arg1 = (wxWindow *) 0 ;
32974 int arg2 = (int) -1 ;
32975 wxPoint const &arg3_defvalue = wxDefaultPosition ;
32976 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
32977 wxSize const &arg4_defvalue = wxDefaultSize ;
32978 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
32979 long arg5 = (long) wxTR_DEFAULT_STYLE ;
32980 wxValidator const &arg6_defvalue = wxDefaultValidator ;
32981 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
32982 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
32983 wxString *arg7 = (wxString *) &arg7_defvalue ;
32984 wxPyTreeCtrl *result = 0 ;
32985 void *argp1 = 0 ;
32986 int res1 = 0 ;
32987 int val2 ;
32988 int ecode2 = 0 ;
32989 wxPoint temp3 ;
32990 wxSize temp4 ;
32991 long val5 ;
32992 int ecode5 = 0 ;
32993 void *argp6 = 0 ;
32994 int res6 = 0 ;
32995 bool temp7 = false ;
32996 PyObject * obj0 = 0 ;
32997 PyObject * obj1 = 0 ;
32998 PyObject * obj2 = 0 ;
32999 PyObject * obj3 = 0 ;
33000 PyObject * obj4 = 0 ;
33001 PyObject * obj5 = 0 ;
33002 PyObject * obj6 = 0 ;
33003 char * kwnames[] = {
33004 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33005 };
33006
33007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33009 if (!SWIG_IsOK(res1)) {
33010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33011 }
33012 arg1 = reinterpret_cast< wxWindow * >(argp1);
33013 if (obj1) {
33014 ecode2 = SWIG_AsVal_int(obj1, &val2);
33015 if (!SWIG_IsOK(ecode2)) {
33016 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33017 }
33018 arg2 = static_cast< int >(val2);
33019 }
33020 if (obj2) {
33021 {
33022 arg3 = &temp3;
33023 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33024 }
33025 }
33026 if (obj3) {
33027 {
33028 arg4 = &temp4;
33029 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
33030 }
33031 }
33032 if (obj4) {
33033 ecode5 = SWIG_AsVal_long(obj4, &val5);
33034 if (!SWIG_IsOK(ecode5)) {
33035 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33036 }
33037 arg5 = static_cast< long >(val5);
33038 }
33039 if (obj5) {
33040 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33041 if (!SWIG_IsOK(res6)) {
33042 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33043 }
33044 if (!argp6) {
33045 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33046 }
33047 arg6 = reinterpret_cast< wxValidator * >(argp6);
33048 }
33049 if (obj6) {
33050 {
33051 arg7 = wxString_in_helper(obj6);
33052 if (arg7 == NULL) SWIG_fail;
33053 temp7 = true;
33054 }
33055 }
33056 {
33057 if (!wxPyCheckForApp()) SWIG_fail;
33058 PyThreadState* __tstate = wxPyBeginAllowThreads();
33059 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33060 wxPyEndAllowThreads(__tstate);
33061 if (PyErr_Occurred()) SWIG_fail;
33062 }
33063 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33064 {
33065 if (temp7)
33066 delete arg7;
33067 }
33068 return resultobj;
33069 fail:
33070 {
33071 if (temp7)
33072 delete arg7;
33073 }
33074 return NULL;
33075 }
33076
33077
33078 SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33079 PyObject *resultobj = 0;
33080 wxPyTreeCtrl *result = 0 ;
33081
33082 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33083 {
33084 if (!wxPyCheckForApp()) SWIG_fail;
33085 PyThreadState* __tstate = wxPyBeginAllowThreads();
33086 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33087 wxPyEndAllowThreads(__tstate);
33088 if (PyErr_Occurred()) SWIG_fail;
33089 }
33090 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33091 return resultobj;
33092 fail:
33093 return NULL;
33094 }
33095
33096
33097 SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33098 PyObject *resultobj = 0;
33099 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33100 wxWindow *arg2 = (wxWindow *) 0 ;
33101 int arg3 = (int) -1 ;
33102 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33103 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33104 wxSize const &arg5_defvalue = wxDefaultSize ;
33105 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33106 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33107 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33108 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33109 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33110 wxString *arg8 = (wxString *) &arg8_defvalue ;
33111 bool result;
33112 void *argp1 = 0 ;
33113 int res1 = 0 ;
33114 void *argp2 = 0 ;
33115 int res2 = 0 ;
33116 int val3 ;
33117 int ecode3 = 0 ;
33118 wxPoint temp4 ;
33119 wxSize temp5 ;
33120 long val6 ;
33121 int ecode6 = 0 ;
33122 void *argp7 = 0 ;
33123 int res7 = 0 ;
33124 bool temp8 = false ;
33125 PyObject * obj0 = 0 ;
33126 PyObject * obj1 = 0 ;
33127 PyObject * obj2 = 0 ;
33128 PyObject * obj3 = 0 ;
33129 PyObject * obj4 = 0 ;
33130 PyObject * obj5 = 0 ;
33131 PyObject * obj6 = 0 ;
33132 PyObject * obj7 = 0 ;
33133 char * kwnames[] = {
33134 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33135 };
33136
33137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33139 if (!SWIG_IsOK(res1)) {
33140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33141 }
33142 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33143 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33144 if (!SWIG_IsOK(res2)) {
33145 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33146 }
33147 arg2 = reinterpret_cast< wxWindow * >(argp2);
33148 if (obj2) {
33149 ecode3 = SWIG_AsVal_int(obj2, &val3);
33150 if (!SWIG_IsOK(ecode3)) {
33151 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33152 }
33153 arg3 = static_cast< int >(val3);
33154 }
33155 if (obj3) {
33156 {
33157 arg4 = &temp4;
33158 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
33159 }
33160 }
33161 if (obj4) {
33162 {
33163 arg5 = &temp5;
33164 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
33165 }
33166 }
33167 if (obj5) {
33168 ecode6 = SWIG_AsVal_long(obj5, &val6);
33169 if (!SWIG_IsOK(ecode6)) {
33170 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33171 }
33172 arg6 = static_cast< long >(val6);
33173 }
33174 if (obj6) {
33175 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33176 if (!SWIG_IsOK(res7)) {
33177 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33178 }
33179 if (!argp7) {
33180 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33181 }
33182 arg7 = reinterpret_cast< wxValidator * >(argp7);
33183 }
33184 if (obj7) {
33185 {
33186 arg8 = wxString_in_helper(obj7);
33187 if (arg8 == NULL) SWIG_fail;
33188 temp8 = true;
33189 }
33190 }
33191 {
33192 PyThreadState* __tstate = wxPyBeginAllowThreads();
33193 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33194 wxPyEndAllowThreads(__tstate);
33195 if (PyErr_Occurred()) SWIG_fail;
33196 }
33197 {
33198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33199 }
33200 {
33201 if (temp8)
33202 delete arg8;
33203 }
33204 return resultobj;
33205 fail:
33206 {
33207 if (temp8)
33208 delete arg8;
33209 }
33210 return NULL;
33211 }
33212
33213
33214 SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33215 PyObject *resultobj = 0;
33216 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33217 PyObject *arg2 = (PyObject *) 0 ;
33218 PyObject *arg3 = (PyObject *) 0 ;
33219 void *argp1 = 0 ;
33220 int res1 = 0 ;
33221 PyObject * obj0 = 0 ;
33222 PyObject * obj1 = 0 ;
33223 PyObject * obj2 = 0 ;
33224 char * kwnames[] = {
33225 (char *) "self",(char *) "self",(char *) "_class", NULL
33226 };
33227
33228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33230 if (!SWIG_IsOK(res1)) {
33231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33232 }
33233 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33234 arg2 = obj1;
33235 arg3 = obj2;
33236 {
33237 PyThreadState* __tstate = wxPyBeginAllowThreads();
33238 (arg1)->_setCallbackInfo(arg2,arg3);
33239 wxPyEndAllowThreads(__tstate);
33240 if (PyErr_Occurred()) SWIG_fail;
33241 }
33242 resultobj = SWIG_Py_Void();
33243 return resultobj;
33244 fail:
33245 return NULL;
33246 }
33247
33248
33249 SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33250 PyObject *resultobj = 0;
33251 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33252 size_t result;
33253 void *argp1 = 0 ;
33254 int res1 = 0 ;
33255 PyObject *swig_obj[1] ;
33256
33257 if (!args) SWIG_fail;
33258 swig_obj[0] = args;
33259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33260 if (!SWIG_IsOK(res1)) {
33261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33262 }
33263 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33264 {
33265 PyThreadState* __tstate = wxPyBeginAllowThreads();
33266 result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount();
33267 wxPyEndAllowThreads(__tstate);
33268 if (PyErr_Occurred()) SWIG_fail;
33269 }
33270 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
33271 return resultobj;
33272 fail:
33273 return NULL;
33274 }
33275
33276
33277 SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33278 PyObject *resultobj = 0;
33279 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33280 unsigned int result;
33281 void *argp1 = 0 ;
33282 int res1 = 0 ;
33283 PyObject *swig_obj[1] ;
33284
33285 if (!args) SWIG_fail;
33286 swig_obj[0] = args;
33287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33288 if (!SWIG_IsOK(res1)) {
33289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33290 }
33291 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33292 {
33293 PyThreadState* __tstate = wxPyBeginAllowThreads();
33294 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
33295 wxPyEndAllowThreads(__tstate);
33296 if (PyErr_Occurred()) SWIG_fail;
33297 }
33298 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33299 return resultobj;
33300 fail:
33301 return NULL;
33302 }
33303
33304
33305 SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33306 PyObject *resultobj = 0;
33307 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33308 unsigned int arg2 ;
33309 void *argp1 = 0 ;
33310 int res1 = 0 ;
33311 unsigned int val2 ;
33312 int ecode2 = 0 ;
33313 PyObject * obj0 = 0 ;
33314 PyObject * obj1 = 0 ;
33315 char * kwnames[] = {
33316 (char *) "self",(char *) "indent", NULL
33317 };
33318
33319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
33320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33321 if (!SWIG_IsOK(res1)) {
33322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33323 }
33324 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33325 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33326 if (!SWIG_IsOK(ecode2)) {
33327 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
33328 }
33329 arg2 = static_cast< unsigned int >(val2);
33330 {
33331 PyThreadState* __tstate = wxPyBeginAllowThreads();
33332 (arg1)->SetIndent(arg2);
33333 wxPyEndAllowThreads(__tstate);
33334 if (PyErr_Occurred()) SWIG_fail;
33335 }
33336 resultobj = SWIG_Py_Void();
33337 return resultobj;
33338 fail:
33339 return NULL;
33340 }
33341
33342
33343 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33344 PyObject *resultobj = 0;
33345 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33346 unsigned int result;
33347 void *argp1 = 0 ;
33348 int res1 = 0 ;
33349 PyObject *swig_obj[1] ;
33350
33351 if (!args) SWIG_fail;
33352 swig_obj[0] = args;
33353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33354 if (!SWIG_IsOK(res1)) {
33355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33356 }
33357 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33358 {
33359 PyThreadState* __tstate = wxPyBeginAllowThreads();
33360 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
33361 wxPyEndAllowThreads(__tstate);
33362 if (PyErr_Occurred()) SWIG_fail;
33363 }
33364 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33365 return resultobj;
33366 fail:
33367 return NULL;
33368 }
33369
33370
33371 SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33372 PyObject *resultobj = 0;
33373 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33374 unsigned int arg2 ;
33375 void *argp1 = 0 ;
33376 int res1 = 0 ;
33377 unsigned int val2 ;
33378 int ecode2 = 0 ;
33379 PyObject * obj0 = 0 ;
33380 PyObject * obj1 = 0 ;
33381 char * kwnames[] = {
33382 (char *) "self",(char *) "spacing", NULL
33383 };
33384
33385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
33386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33387 if (!SWIG_IsOK(res1)) {
33388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33389 }
33390 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33391 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33392 if (!SWIG_IsOK(ecode2)) {
33393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
33394 }
33395 arg2 = static_cast< unsigned int >(val2);
33396 {
33397 PyThreadState* __tstate = wxPyBeginAllowThreads();
33398 (arg1)->SetSpacing(arg2);
33399 wxPyEndAllowThreads(__tstate);
33400 if (PyErr_Occurred()) SWIG_fail;
33401 }
33402 resultobj = SWIG_Py_Void();
33403 return resultobj;
33404 fail:
33405 return NULL;
33406 }
33407
33408
33409 SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33410 PyObject *resultobj = 0;
33411 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33412 wxImageList *result = 0 ;
33413 void *argp1 = 0 ;
33414 int res1 = 0 ;
33415 PyObject *swig_obj[1] ;
33416
33417 if (!args) SWIG_fail;
33418 swig_obj[0] = args;
33419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33420 if (!SWIG_IsOK(res1)) {
33421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33422 }
33423 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33424 {
33425 PyThreadState* __tstate = wxPyBeginAllowThreads();
33426 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
33427 wxPyEndAllowThreads(__tstate);
33428 if (PyErr_Occurred()) SWIG_fail;
33429 }
33430 {
33431 resultobj = wxPyMake_wxObject(result, (bool)0);
33432 }
33433 return resultobj;
33434 fail:
33435 return NULL;
33436 }
33437
33438
33439 SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33440 PyObject *resultobj = 0;
33441 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33442 wxImageList *result = 0 ;
33443 void *argp1 = 0 ;
33444 int res1 = 0 ;
33445 PyObject *swig_obj[1] ;
33446
33447 if (!args) SWIG_fail;
33448 swig_obj[0] = args;
33449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33450 if (!SWIG_IsOK(res1)) {
33451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33452 }
33453 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33454 {
33455 PyThreadState* __tstate = wxPyBeginAllowThreads();
33456 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
33457 wxPyEndAllowThreads(__tstate);
33458 if (PyErr_Occurred()) SWIG_fail;
33459 }
33460 {
33461 resultobj = wxPyMake_wxObject(result, (bool)0);
33462 }
33463 return resultobj;
33464 fail:
33465 return NULL;
33466 }
33467
33468
33469 SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33470 PyObject *resultobj = 0;
33471 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33472 wxImageList *arg2 = (wxImageList *) 0 ;
33473 void *argp1 = 0 ;
33474 int res1 = 0 ;
33475 void *argp2 = 0 ;
33476 int res2 = 0 ;
33477 PyObject * obj0 = 0 ;
33478 PyObject * obj1 = 0 ;
33479 char * kwnames[] = {
33480 (char *) "self",(char *) "imageList", NULL
33481 };
33482
33483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33485 if (!SWIG_IsOK(res1)) {
33486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33487 }
33488 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33489 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33490 if (!SWIG_IsOK(res2)) {
33491 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33492 }
33493 arg2 = reinterpret_cast< wxImageList * >(argp2);
33494 {
33495 PyThreadState* __tstate = wxPyBeginAllowThreads();
33496 (arg1)->SetImageList(arg2);
33497 wxPyEndAllowThreads(__tstate);
33498 if (PyErr_Occurred()) SWIG_fail;
33499 }
33500 resultobj = SWIG_Py_Void();
33501 return resultobj;
33502 fail:
33503 return NULL;
33504 }
33505
33506
33507 SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33508 PyObject *resultobj = 0;
33509 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33510 wxImageList *arg2 = (wxImageList *) 0 ;
33511 void *argp1 = 0 ;
33512 int res1 = 0 ;
33513 void *argp2 = 0 ;
33514 int res2 = 0 ;
33515 PyObject * obj0 = 0 ;
33516 PyObject * obj1 = 0 ;
33517 char * kwnames[] = {
33518 (char *) "self",(char *) "imageList", NULL
33519 };
33520
33521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33523 if (!SWIG_IsOK(res1)) {
33524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33525 }
33526 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33527 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33528 if (!SWIG_IsOK(res2)) {
33529 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33530 }
33531 arg2 = reinterpret_cast< wxImageList * >(argp2);
33532 {
33533 PyThreadState* __tstate = wxPyBeginAllowThreads();
33534 (arg1)->SetStateImageList(arg2);
33535 wxPyEndAllowThreads(__tstate);
33536 if (PyErr_Occurred()) SWIG_fail;
33537 }
33538 resultobj = SWIG_Py_Void();
33539 return resultobj;
33540 fail:
33541 return NULL;
33542 }
33543
33544
33545 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33546 PyObject *resultobj = 0;
33547 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33548 wxImageList *arg2 = (wxImageList *) 0 ;
33549 void *argp1 = 0 ;
33550 int res1 = 0 ;
33551 int res2 = 0 ;
33552 PyObject * obj0 = 0 ;
33553 PyObject * obj1 = 0 ;
33554 char * kwnames[] = {
33555 (char *) "self",(char *) "imageList", NULL
33556 };
33557
33558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33560 if (!SWIG_IsOK(res1)) {
33561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33562 }
33563 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33564 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
33565 if (!SWIG_IsOK(res2)) {
33566 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33567 }
33568 {
33569 PyThreadState* __tstate = wxPyBeginAllowThreads();
33570 (arg1)->AssignImageList(arg2);
33571 wxPyEndAllowThreads(__tstate);
33572 if (PyErr_Occurred()) SWIG_fail;
33573 }
33574 resultobj = SWIG_Py_Void();
33575 return resultobj;
33576 fail:
33577 return NULL;
33578 }
33579
33580
33581 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33582 PyObject *resultobj = 0;
33583 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33584 wxImageList *arg2 = (wxImageList *) 0 ;
33585 void *argp1 = 0 ;
33586 int res1 = 0 ;
33587 int res2 = 0 ;
33588 PyObject * obj0 = 0 ;
33589 PyObject * obj1 = 0 ;
33590 char * kwnames[] = {
33591 (char *) "self",(char *) "imageList", NULL
33592 };
33593
33594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33596 if (!SWIG_IsOK(res1)) {
33597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33598 }
33599 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33600 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
33601 if (!SWIG_IsOK(res2)) {
33602 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33603 }
33604 {
33605 PyThreadState* __tstate = wxPyBeginAllowThreads();
33606 (arg1)->AssignStateImageList(arg2);
33607 wxPyEndAllowThreads(__tstate);
33608 if (PyErr_Occurred()) SWIG_fail;
33609 }
33610 resultobj = SWIG_Py_Void();
33611 return resultobj;
33612 fail:
33613 return NULL;
33614 }
33615
33616
33617 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33618 PyObject *resultobj = 0;
33619 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33620 wxTreeItemId *arg2 = 0 ;
33621 wxString result;
33622 void *argp1 = 0 ;
33623 int res1 = 0 ;
33624 void *argp2 = 0 ;
33625 int res2 = 0 ;
33626 PyObject * obj0 = 0 ;
33627 PyObject * obj1 = 0 ;
33628 char * kwnames[] = {
33629 (char *) "self",(char *) "item", NULL
33630 };
33631
33632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
33633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33634 if (!SWIG_IsOK(res1)) {
33635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33636 }
33637 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33638 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33639 if (!SWIG_IsOK(res2)) {
33640 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33641 }
33642 if (!argp2) {
33643 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33644 }
33645 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33646 {
33647 PyThreadState* __tstate = wxPyBeginAllowThreads();
33648 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
33649 wxPyEndAllowThreads(__tstate);
33650 if (PyErr_Occurred()) SWIG_fail;
33651 }
33652 {
33653 #if wxUSE_UNICODE
33654 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33655 #else
33656 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33657 #endif
33658 }
33659 return resultobj;
33660 fail:
33661 return NULL;
33662 }
33663
33664
33665 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33666 PyObject *resultobj = 0;
33667 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33668 wxTreeItemId *arg2 = 0 ;
33669 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
33670 int result;
33671 void *argp1 = 0 ;
33672 int res1 = 0 ;
33673 void *argp2 = 0 ;
33674 int res2 = 0 ;
33675 int val3 ;
33676 int ecode3 = 0 ;
33677 PyObject * obj0 = 0 ;
33678 PyObject * obj1 = 0 ;
33679 PyObject * obj2 = 0 ;
33680 char * kwnames[] = {
33681 (char *) "self",(char *) "item",(char *) "which", NULL
33682 };
33683
33684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33686 if (!SWIG_IsOK(res1)) {
33687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33688 }
33689 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33690 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33691 if (!SWIG_IsOK(res2)) {
33692 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33693 }
33694 if (!argp2) {
33695 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33696 }
33697 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33698 if (obj2) {
33699 ecode3 = SWIG_AsVal_int(obj2, &val3);
33700 if (!SWIG_IsOK(ecode3)) {
33701 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
33702 }
33703 arg3 = static_cast< wxTreeItemIcon >(val3);
33704 }
33705 {
33706 PyThreadState* __tstate = wxPyBeginAllowThreads();
33707 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
33708 wxPyEndAllowThreads(__tstate);
33709 if (PyErr_Occurred()) SWIG_fail;
33710 }
33711 resultobj = SWIG_From_int(static_cast< int >(result));
33712 return resultobj;
33713 fail:
33714 return NULL;
33715 }
33716
33717
33718 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33719 PyObject *resultobj = 0;
33720 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33721 wxTreeItemId *arg2 = 0 ;
33722 wxPyTreeItemData *result = 0 ;
33723 void *argp1 = 0 ;
33724 int res1 = 0 ;
33725 void *argp2 = 0 ;
33726 int res2 = 0 ;
33727 PyObject * obj0 = 0 ;
33728 PyObject * obj1 = 0 ;
33729 char * kwnames[] = {
33730 (char *) "self",(char *) "item", NULL
33731 };
33732
33733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
33734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33735 if (!SWIG_IsOK(res1)) {
33736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33737 }
33738 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33739 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33740 if (!SWIG_IsOK(res2)) {
33741 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33742 }
33743 if (!argp2) {
33744 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33745 }
33746 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33747 {
33748 PyThreadState* __tstate = wxPyBeginAllowThreads();
33749 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
33750 wxPyEndAllowThreads(__tstate);
33751 if (PyErr_Occurred()) SWIG_fail;
33752 }
33753 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33754 return resultobj;
33755 fail:
33756 return NULL;
33757 }
33758
33759
33760 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33761 PyObject *resultobj = 0;
33762 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33763 wxTreeItemId *arg2 = 0 ;
33764 PyObject *result = 0 ;
33765 void *argp1 = 0 ;
33766 int res1 = 0 ;
33767 void *argp2 = 0 ;
33768 int res2 = 0 ;
33769 PyObject * obj0 = 0 ;
33770 PyObject * obj1 = 0 ;
33771 char * kwnames[] = {
33772 (char *) "self",(char *) "item", NULL
33773 };
33774
33775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
33776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33777 if (!SWIG_IsOK(res1)) {
33778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33779 }
33780 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33781 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33782 if (!SWIG_IsOK(res2)) {
33783 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33784 }
33785 if (!argp2) {
33786 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33787 }
33788 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33789 {
33790 PyThreadState* __tstate = wxPyBeginAllowThreads();
33791 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
33792 wxPyEndAllowThreads(__tstate);
33793 if (PyErr_Occurred()) SWIG_fail;
33794 }
33795 resultobj = result;
33796 return resultobj;
33797 fail:
33798 return NULL;
33799 }
33800
33801
33802 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33803 PyObject *resultobj = 0;
33804 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33805 wxTreeItemId *arg2 = 0 ;
33806 wxColour result;
33807 void *argp1 = 0 ;
33808 int res1 = 0 ;
33809 void *argp2 = 0 ;
33810 int res2 = 0 ;
33811 PyObject * obj0 = 0 ;
33812 PyObject * obj1 = 0 ;
33813 char * kwnames[] = {
33814 (char *) "self",(char *) "item", NULL
33815 };
33816
33817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
33818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33819 if (!SWIG_IsOK(res1)) {
33820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33821 }
33822 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33823 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33824 if (!SWIG_IsOK(res2)) {
33825 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33826 }
33827 if (!argp2) {
33828 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33829 }
33830 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33831 {
33832 PyThreadState* __tstate = wxPyBeginAllowThreads();
33833 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
33834 wxPyEndAllowThreads(__tstate);
33835 if (PyErr_Occurred()) SWIG_fail;
33836 }
33837 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33838 return resultobj;
33839 fail:
33840 return NULL;
33841 }
33842
33843
33844 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33845 PyObject *resultobj = 0;
33846 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33847 wxTreeItemId *arg2 = 0 ;
33848 wxColour result;
33849 void *argp1 = 0 ;
33850 int res1 = 0 ;
33851 void *argp2 = 0 ;
33852 int res2 = 0 ;
33853 PyObject * obj0 = 0 ;
33854 PyObject * obj1 = 0 ;
33855 char * kwnames[] = {
33856 (char *) "self",(char *) "item", NULL
33857 };
33858
33859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
33860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33861 if (!SWIG_IsOK(res1)) {
33862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33863 }
33864 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33865 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33866 if (!SWIG_IsOK(res2)) {
33867 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33868 }
33869 if (!argp2) {
33870 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33871 }
33872 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33873 {
33874 PyThreadState* __tstate = wxPyBeginAllowThreads();
33875 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
33876 wxPyEndAllowThreads(__tstate);
33877 if (PyErr_Occurred()) SWIG_fail;
33878 }
33879 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33880 return resultobj;
33881 fail:
33882 return NULL;
33883 }
33884
33885
33886 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33887 PyObject *resultobj = 0;
33888 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33889 wxTreeItemId *arg2 = 0 ;
33890 wxFont result;
33891 void *argp1 = 0 ;
33892 int res1 = 0 ;
33893 void *argp2 = 0 ;
33894 int res2 = 0 ;
33895 PyObject * obj0 = 0 ;
33896 PyObject * obj1 = 0 ;
33897 char * kwnames[] = {
33898 (char *) "self",(char *) "item", NULL
33899 };
33900
33901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
33902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33903 if (!SWIG_IsOK(res1)) {
33904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33905 }
33906 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33907 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33908 if (!SWIG_IsOK(res2)) {
33909 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33910 }
33911 if (!argp2) {
33912 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33913 }
33914 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33915 {
33916 PyThreadState* __tstate = wxPyBeginAllowThreads();
33917 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
33918 wxPyEndAllowThreads(__tstate);
33919 if (PyErr_Occurred()) SWIG_fail;
33920 }
33921 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
33922 return resultobj;
33923 fail:
33924 return NULL;
33925 }
33926
33927
33928 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33929 PyObject *resultobj = 0;
33930 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33931 wxTreeItemId *arg2 = 0 ;
33932 wxString *arg3 = 0 ;
33933 void *argp1 = 0 ;
33934 int res1 = 0 ;
33935 void *argp2 = 0 ;
33936 int res2 = 0 ;
33937 bool temp3 = false ;
33938 PyObject * obj0 = 0 ;
33939 PyObject * obj1 = 0 ;
33940 PyObject * obj2 = 0 ;
33941 char * kwnames[] = {
33942 (char *) "self",(char *) "item",(char *) "text", NULL
33943 };
33944
33945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33947 if (!SWIG_IsOK(res1)) {
33948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33949 }
33950 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33951 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33952 if (!SWIG_IsOK(res2)) {
33953 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33954 }
33955 if (!argp2) {
33956 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33957 }
33958 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33959 {
33960 arg3 = wxString_in_helper(obj2);
33961 if (arg3 == NULL) SWIG_fail;
33962 temp3 = true;
33963 }
33964 {
33965 PyThreadState* __tstate = wxPyBeginAllowThreads();
33966 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
33967 wxPyEndAllowThreads(__tstate);
33968 if (PyErr_Occurred()) SWIG_fail;
33969 }
33970 resultobj = SWIG_Py_Void();
33971 {
33972 if (temp3)
33973 delete arg3;
33974 }
33975 return resultobj;
33976 fail:
33977 {
33978 if (temp3)
33979 delete arg3;
33980 }
33981 return NULL;
33982 }
33983
33984
33985 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33986 PyObject *resultobj = 0;
33987 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33988 wxTreeItemId *arg2 = 0 ;
33989 int arg3 ;
33990 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
33991 void *argp1 = 0 ;
33992 int res1 = 0 ;
33993 void *argp2 = 0 ;
33994 int res2 = 0 ;
33995 int val3 ;
33996 int ecode3 = 0 ;
33997 int val4 ;
33998 int ecode4 = 0 ;
33999 PyObject * obj0 = 0 ;
34000 PyObject * obj1 = 0 ;
34001 PyObject * obj2 = 0 ;
34002 PyObject * obj3 = 0 ;
34003 char * kwnames[] = {
34004 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34005 };
34006
34007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34009 if (!SWIG_IsOK(res1)) {
34010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34011 }
34012 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34013 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34014 if (!SWIG_IsOK(res2)) {
34015 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34016 }
34017 if (!argp2) {
34018 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34019 }
34020 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34021 ecode3 = SWIG_AsVal_int(obj2, &val3);
34022 if (!SWIG_IsOK(ecode3)) {
34023 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34024 }
34025 arg3 = static_cast< int >(val3);
34026 if (obj3) {
34027 ecode4 = SWIG_AsVal_int(obj3, &val4);
34028 if (!SWIG_IsOK(ecode4)) {
34029 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34030 }
34031 arg4 = static_cast< wxTreeItemIcon >(val4);
34032 }
34033 {
34034 PyThreadState* __tstate = wxPyBeginAllowThreads();
34035 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34036 wxPyEndAllowThreads(__tstate);
34037 if (PyErr_Occurred()) SWIG_fail;
34038 }
34039 resultobj = SWIG_Py_Void();
34040 return resultobj;
34041 fail:
34042 return NULL;
34043 }
34044
34045
34046 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34047 PyObject *resultobj = 0;
34048 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34049 wxTreeItemId *arg2 = 0 ;
34050 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34051 void *argp1 = 0 ;
34052 int res1 = 0 ;
34053 void *argp2 = 0 ;
34054 int res2 = 0 ;
34055 int res3 = 0 ;
34056 PyObject * obj0 = 0 ;
34057 PyObject * obj1 = 0 ;
34058 PyObject * obj2 = 0 ;
34059 char * kwnames[] = {
34060 (char *) "self",(char *) "item",(char *) "data", NULL
34061 };
34062
34063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34065 if (!SWIG_IsOK(res1)) {
34066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34067 }
34068 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34069 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34070 if (!SWIG_IsOK(res2)) {
34071 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34072 }
34073 if (!argp2) {
34074 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34075 }
34076 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34077 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34078 if (!SWIG_IsOK(res3)) {
34079 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34080 }
34081 {
34082 PyThreadState* __tstate = wxPyBeginAllowThreads();
34083 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34084 wxPyEndAllowThreads(__tstate);
34085 if (PyErr_Occurred()) SWIG_fail;
34086 }
34087 resultobj = SWIG_Py_Void();
34088 return resultobj;
34089 fail:
34090 return NULL;
34091 }
34092
34093
34094 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34095 PyObject *resultobj = 0;
34096 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34097 wxTreeItemId *arg2 = 0 ;
34098 PyObject *arg3 = (PyObject *) 0 ;
34099 void *argp1 = 0 ;
34100 int res1 = 0 ;
34101 void *argp2 = 0 ;
34102 int res2 = 0 ;
34103 PyObject * obj0 = 0 ;
34104 PyObject * obj1 = 0 ;
34105 PyObject * obj2 = 0 ;
34106 char * kwnames[] = {
34107 (char *) "self",(char *) "item",(char *) "obj", NULL
34108 };
34109
34110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34112 if (!SWIG_IsOK(res1)) {
34113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34114 }
34115 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34116 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34117 if (!SWIG_IsOK(res2)) {
34118 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34119 }
34120 if (!argp2) {
34121 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34122 }
34123 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34124 arg3 = obj2;
34125 {
34126 PyThreadState* __tstate = wxPyBeginAllowThreads();
34127 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34128 wxPyEndAllowThreads(__tstate);
34129 if (PyErr_Occurred()) SWIG_fail;
34130 }
34131 resultobj = SWIG_Py_Void();
34132 return resultobj;
34133 fail:
34134 return NULL;
34135 }
34136
34137
34138 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34139 PyObject *resultobj = 0;
34140 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34141 wxTreeItemId *arg2 = 0 ;
34142 bool arg3 = (bool) true ;
34143 void *argp1 = 0 ;
34144 int res1 = 0 ;
34145 void *argp2 = 0 ;
34146 int res2 = 0 ;
34147 bool val3 ;
34148 int ecode3 = 0 ;
34149 PyObject * obj0 = 0 ;
34150 PyObject * obj1 = 0 ;
34151 PyObject * obj2 = 0 ;
34152 char * kwnames[] = {
34153 (char *) "self",(char *) "item",(char *) "has", NULL
34154 };
34155
34156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34158 if (!SWIG_IsOK(res1)) {
34159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34160 }
34161 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34162 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34163 if (!SWIG_IsOK(res2)) {
34164 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34165 }
34166 if (!argp2) {
34167 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34168 }
34169 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34170 if (obj2) {
34171 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34172 if (!SWIG_IsOK(ecode3)) {
34173 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34174 }
34175 arg3 = static_cast< bool >(val3);
34176 }
34177 {
34178 PyThreadState* __tstate = wxPyBeginAllowThreads();
34179 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34180 wxPyEndAllowThreads(__tstate);
34181 if (PyErr_Occurred()) SWIG_fail;
34182 }
34183 resultobj = SWIG_Py_Void();
34184 return resultobj;
34185 fail:
34186 return NULL;
34187 }
34188
34189
34190 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34191 PyObject *resultobj = 0;
34192 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34193 wxTreeItemId *arg2 = 0 ;
34194 bool arg3 = (bool) true ;
34195 void *argp1 = 0 ;
34196 int res1 = 0 ;
34197 void *argp2 = 0 ;
34198 int res2 = 0 ;
34199 bool val3 ;
34200 int ecode3 = 0 ;
34201 PyObject * obj0 = 0 ;
34202 PyObject * obj1 = 0 ;
34203 PyObject * obj2 = 0 ;
34204 char * kwnames[] = {
34205 (char *) "self",(char *) "item",(char *) "bold", NULL
34206 };
34207
34208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34210 if (!SWIG_IsOK(res1)) {
34211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34212 }
34213 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34214 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34215 if (!SWIG_IsOK(res2)) {
34216 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34217 }
34218 if (!argp2) {
34219 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34220 }
34221 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34222 if (obj2) {
34223 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34224 if (!SWIG_IsOK(ecode3)) {
34225 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
34226 }
34227 arg3 = static_cast< bool >(val3);
34228 }
34229 {
34230 PyThreadState* __tstate = wxPyBeginAllowThreads();
34231 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
34232 wxPyEndAllowThreads(__tstate);
34233 if (PyErr_Occurred()) SWIG_fail;
34234 }
34235 resultobj = SWIG_Py_Void();
34236 return resultobj;
34237 fail:
34238 return NULL;
34239 }
34240
34241
34242 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34243 PyObject *resultobj = 0;
34244 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34245 wxTreeItemId *arg2 = 0 ;
34246 bool arg3 = (bool) true ;
34247 void *argp1 = 0 ;
34248 int res1 = 0 ;
34249 void *argp2 = 0 ;
34250 int res2 = 0 ;
34251 bool val3 ;
34252 int ecode3 = 0 ;
34253 PyObject * obj0 = 0 ;
34254 PyObject * obj1 = 0 ;
34255 PyObject * obj2 = 0 ;
34256 char * kwnames[] = {
34257 (char *) "self",(char *) "item",(char *) "highlight", NULL
34258 };
34259
34260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34262 if (!SWIG_IsOK(res1)) {
34263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34264 }
34265 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34266 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34267 if (!SWIG_IsOK(res2)) {
34268 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34269 }
34270 if (!argp2) {
34271 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34272 }
34273 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34274 if (obj2) {
34275 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34276 if (!SWIG_IsOK(ecode3)) {
34277 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
34278 }
34279 arg3 = static_cast< bool >(val3);
34280 }
34281 {
34282 PyThreadState* __tstate = wxPyBeginAllowThreads();
34283 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
34284 wxPyEndAllowThreads(__tstate);
34285 if (PyErr_Occurred()) SWIG_fail;
34286 }
34287 resultobj = SWIG_Py_Void();
34288 return resultobj;
34289 fail:
34290 return NULL;
34291 }
34292
34293
34294 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34295 PyObject *resultobj = 0;
34296 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34297 wxTreeItemId *arg2 = 0 ;
34298 wxColour *arg3 = 0 ;
34299 void *argp1 = 0 ;
34300 int res1 = 0 ;
34301 void *argp2 = 0 ;
34302 int res2 = 0 ;
34303 wxColour temp3 ;
34304 PyObject * obj0 = 0 ;
34305 PyObject * obj1 = 0 ;
34306 PyObject * obj2 = 0 ;
34307 char * kwnames[] = {
34308 (char *) "self",(char *) "item",(char *) "col", NULL
34309 };
34310
34311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34313 if (!SWIG_IsOK(res1)) {
34314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34315 }
34316 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34317 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34318 if (!SWIG_IsOK(res2)) {
34319 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34320 }
34321 if (!argp2) {
34322 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34323 }
34324 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34325 {
34326 arg3 = &temp3;
34327 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34328 }
34329 {
34330 PyThreadState* __tstate = wxPyBeginAllowThreads();
34331 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34332 wxPyEndAllowThreads(__tstate);
34333 if (PyErr_Occurred()) SWIG_fail;
34334 }
34335 resultobj = SWIG_Py_Void();
34336 return resultobj;
34337 fail:
34338 return NULL;
34339 }
34340
34341
34342 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34343 PyObject *resultobj = 0;
34344 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34345 wxTreeItemId *arg2 = 0 ;
34346 wxColour *arg3 = 0 ;
34347 void *argp1 = 0 ;
34348 int res1 = 0 ;
34349 void *argp2 = 0 ;
34350 int res2 = 0 ;
34351 wxColour temp3 ;
34352 PyObject * obj0 = 0 ;
34353 PyObject * obj1 = 0 ;
34354 PyObject * obj2 = 0 ;
34355 char * kwnames[] = {
34356 (char *) "self",(char *) "item",(char *) "col", NULL
34357 };
34358
34359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34361 if (!SWIG_IsOK(res1)) {
34362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34363 }
34364 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34365 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34366 if (!SWIG_IsOK(res2)) {
34367 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34368 }
34369 if (!argp2) {
34370 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34371 }
34372 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34373 {
34374 arg3 = &temp3;
34375 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34376 }
34377 {
34378 PyThreadState* __tstate = wxPyBeginAllowThreads();
34379 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34380 wxPyEndAllowThreads(__tstate);
34381 if (PyErr_Occurred()) SWIG_fail;
34382 }
34383 resultobj = SWIG_Py_Void();
34384 return resultobj;
34385 fail:
34386 return NULL;
34387 }
34388
34389
34390 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34391 PyObject *resultobj = 0;
34392 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34393 wxTreeItemId *arg2 = 0 ;
34394 wxFont *arg3 = 0 ;
34395 void *argp1 = 0 ;
34396 int res1 = 0 ;
34397 void *argp2 = 0 ;
34398 int res2 = 0 ;
34399 void *argp3 = 0 ;
34400 int res3 = 0 ;
34401 PyObject * obj0 = 0 ;
34402 PyObject * obj1 = 0 ;
34403 PyObject * obj2 = 0 ;
34404 char * kwnames[] = {
34405 (char *) "self",(char *) "item",(char *) "font", NULL
34406 };
34407
34408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34410 if (!SWIG_IsOK(res1)) {
34411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34412 }
34413 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34414 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34415 if (!SWIG_IsOK(res2)) {
34416 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34417 }
34418 if (!argp2) {
34419 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34420 }
34421 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34422 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
34423 if (!SWIG_IsOK(res3)) {
34424 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34425 }
34426 if (!argp3) {
34427 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34428 }
34429 arg3 = reinterpret_cast< wxFont * >(argp3);
34430 {
34431 PyThreadState* __tstate = wxPyBeginAllowThreads();
34432 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
34433 wxPyEndAllowThreads(__tstate);
34434 if (PyErr_Occurred()) SWIG_fail;
34435 }
34436 resultobj = SWIG_Py_Void();
34437 return resultobj;
34438 fail:
34439 return NULL;
34440 }
34441
34442
34443 SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34444 PyObject *resultobj = 0;
34445 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34446 wxTreeItemId *arg2 = 0 ;
34447 bool result;
34448 void *argp1 = 0 ;
34449 int res1 = 0 ;
34450 void *argp2 = 0 ;
34451 int res2 = 0 ;
34452 PyObject * obj0 = 0 ;
34453 PyObject * obj1 = 0 ;
34454 char * kwnames[] = {
34455 (char *) "self",(char *) "item", NULL
34456 };
34457
34458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
34459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34460 if (!SWIG_IsOK(res1)) {
34461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34462 }
34463 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34464 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34465 if (!SWIG_IsOK(res2)) {
34466 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34467 }
34468 if (!argp2) {
34469 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34470 }
34471 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34472 {
34473 PyThreadState* __tstate = wxPyBeginAllowThreads();
34474 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
34475 wxPyEndAllowThreads(__tstate);
34476 if (PyErr_Occurred()) SWIG_fail;
34477 }
34478 {
34479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34480 }
34481 return resultobj;
34482 fail:
34483 return NULL;
34484 }
34485
34486
34487 SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34488 PyObject *resultobj = 0;
34489 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34490 wxTreeItemId *arg2 = 0 ;
34491 bool result;
34492 void *argp1 = 0 ;
34493 int res1 = 0 ;
34494 void *argp2 = 0 ;
34495 int res2 = 0 ;
34496 PyObject * obj0 = 0 ;
34497 PyObject * obj1 = 0 ;
34498 char * kwnames[] = {
34499 (char *) "self",(char *) "item", NULL
34500 };
34501
34502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
34503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34504 if (!SWIG_IsOK(res1)) {
34505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34506 }
34507 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34508 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34509 if (!SWIG_IsOK(res2)) {
34510 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34511 }
34512 if (!argp2) {
34513 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34514 }
34515 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34516 {
34517 PyThreadState* __tstate = wxPyBeginAllowThreads();
34518 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
34519 wxPyEndAllowThreads(__tstate);
34520 if (PyErr_Occurred()) SWIG_fail;
34521 }
34522 {
34523 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34524 }
34525 return resultobj;
34526 fail:
34527 return NULL;
34528 }
34529
34530
34531 SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34532 PyObject *resultobj = 0;
34533 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34534 wxTreeItemId *arg2 = 0 ;
34535 bool result;
34536 void *argp1 = 0 ;
34537 int res1 = 0 ;
34538 void *argp2 = 0 ;
34539 int res2 = 0 ;
34540 PyObject * obj0 = 0 ;
34541 PyObject * obj1 = 0 ;
34542 char * kwnames[] = {
34543 (char *) "self",(char *) "item", NULL
34544 };
34545
34546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
34547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34548 if (!SWIG_IsOK(res1)) {
34549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34550 }
34551 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34552 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34553 if (!SWIG_IsOK(res2)) {
34554 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34555 }
34556 if (!argp2) {
34557 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34558 }
34559 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34560 {
34561 PyThreadState* __tstate = wxPyBeginAllowThreads();
34562 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
34563 wxPyEndAllowThreads(__tstate);
34564 if (PyErr_Occurred()) SWIG_fail;
34565 }
34566 {
34567 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34568 }
34569 return resultobj;
34570 fail:
34571 return NULL;
34572 }
34573
34574
34575 SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34576 PyObject *resultobj = 0;
34577 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34578 wxTreeItemId *arg2 = 0 ;
34579 bool result;
34580 void *argp1 = 0 ;
34581 int res1 = 0 ;
34582 void *argp2 = 0 ;
34583 int res2 = 0 ;
34584 PyObject * obj0 = 0 ;
34585 PyObject * obj1 = 0 ;
34586 char * kwnames[] = {
34587 (char *) "self",(char *) "item", NULL
34588 };
34589
34590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
34591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34592 if (!SWIG_IsOK(res1)) {
34593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34594 }
34595 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34596 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34597 if (!SWIG_IsOK(res2)) {
34598 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34599 }
34600 if (!argp2) {
34601 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34602 }
34603 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34604 {
34605 PyThreadState* __tstate = wxPyBeginAllowThreads();
34606 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
34607 wxPyEndAllowThreads(__tstate);
34608 if (PyErr_Occurred()) SWIG_fail;
34609 }
34610 {
34611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34612 }
34613 return resultobj;
34614 fail:
34615 return NULL;
34616 }
34617
34618
34619 SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34620 PyObject *resultobj = 0;
34621 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34622 wxTreeItemId *arg2 = 0 ;
34623 bool result;
34624 void *argp1 = 0 ;
34625 int res1 = 0 ;
34626 void *argp2 = 0 ;
34627 int res2 = 0 ;
34628 PyObject * obj0 = 0 ;
34629 PyObject * obj1 = 0 ;
34630 char * kwnames[] = {
34631 (char *) "self",(char *) "item", NULL
34632 };
34633
34634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
34635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34636 if (!SWIG_IsOK(res1)) {
34637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34638 }
34639 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34640 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34641 if (!SWIG_IsOK(res2)) {
34642 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34643 }
34644 if (!argp2) {
34645 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34646 }
34647 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34648 {
34649 PyThreadState* __tstate = wxPyBeginAllowThreads();
34650 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
34651 wxPyEndAllowThreads(__tstate);
34652 if (PyErr_Occurred()) SWIG_fail;
34653 }
34654 {
34655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34656 }
34657 return resultobj;
34658 fail:
34659 return NULL;
34660 }
34661
34662
34663 SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34664 PyObject *resultobj = 0;
34665 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34666 wxTreeItemId *arg2 = 0 ;
34667 bool arg3 = (bool) true ;
34668 size_t result;
34669 void *argp1 = 0 ;
34670 int res1 = 0 ;
34671 void *argp2 = 0 ;
34672 int res2 = 0 ;
34673 bool val3 ;
34674 int ecode3 = 0 ;
34675 PyObject * obj0 = 0 ;
34676 PyObject * obj1 = 0 ;
34677 PyObject * obj2 = 0 ;
34678 char * kwnames[] = {
34679 (char *) "self",(char *) "item",(char *) "recursively", NULL
34680 };
34681
34682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34684 if (!SWIG_IsOK(res1)) {
34685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34686 }
34687 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34688 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34689 if (!SWIG_IsOK(res2)) {
34690 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34691 }
34692 if (!argp2) {
34693 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34694 }
34695 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34696 if (obj2) {
34697 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34698 if (!SWIG_IsOK(ecode3)) {
34699 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
34700 }
34701 arg3 = static_cast< bool >(val3);
34702 }
34703 {
34704 PyThreadState* __tstate = wxPyBeginAllowThreads();
34705 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
34706 wxPyEndAllowThreads(__tstate);
34707 if (PyErr_Occurred()) SWIG_fail;
34708 }
34709 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
34710 return resultobj;
34711 fail:
34712 return NULL;
34713 }
34714
34715
34716 SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34717 PyObject *resultobj = 0;
34718 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34719 wxTreeItemId result;
34720 void *argp1 = 0 ;
34721 int res1 = 0 ;
34722 PyObject *swig_obj[1] ;
34723
34724 if (!args) SWIG_fail;
34725 swig_obj[0] = args;
34726 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34727 if (!SWIG_IsOK(res1)) {
34728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34729 }
34730 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34731 {
34732 PyThreadState* __tstate = wxPyBeginAllowThreads();
34733 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
34734 wxPyEndAllowThreads(__tstate);
34735 if (PyErr_Occurred()) SWIG_fail;
34736 }
34737 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
34738 return resultobj;
34739 fail:
34740 return NULL;
34741 }
34742
34743
34744 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34745 PyObject *resultobj = 0;
34746 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34747 wxTreeItemId result;
34748 void *argp1 = 0 ;
34749 int res1 = 0 ;
34750 PyObject *swig_obj[1] ;
34751
34752 if (!args) SWIG_fail;
34753 swig_obj[0] = args;
34754 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34755 if (!SWIG_IsOK(res1)) {
34756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34757 }
34758 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34759 {
34760 PyThreadState* __tstate = wxPyBeginAllowThreads();
34761 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
34762 wxPyEndAllowThreads(__tstate);
34763 if (PyErr_Occurred()) SWIG_fail;
34764 }
34765 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
34766 return resultobj;
34767 fail:
34768 return NULL;
34769 }
34770
34771
34772 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34773 PyObject *resultobj = 0;
34774 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34775 PyObject *result = 0 ;
34776 void *argp1 = 0 ;
34777 int res1 = 0 ;
34778 PyObject *swig_obj[1] ;
34779
34780 if (!args) SWIG_fail;
34781 swig_obj[0] = args;
34782 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34783 if (!SWIG_IsOK(res1)) {
34784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34785 }
34786 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34787 {
34788 PyThreadState* __tstate = wxPyBeginAllowThreads();
34789 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
34790 wxPyEndAllowThreads(__tstate);
34791 if (PyErr_Occurred()) SWIG_fail;
34792 }
34793 resultobj = result;
34794 return resultobj;
34795 fail:
34796 return NULL;
34797 }
34798
34799
34800 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34801 PyObject *resultobj = 0;
34802 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34803 wxTreeItemId *arg2 = 0 ;
34804 wxTreeItemId result;
34805 void *argp1 = 0 ;
34806 int res1 = 0 ;
34807 void *argp2 = 0 ;
34808 int res2 = 0 ;
34809 PyObject * obj0 = 0 ;
34810 PyObject * obj1 = 0 ;
34811 char * kwnames[] = {
34812 (char *) "self",(char *) "item", NULL
34813 };
34814
34815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
34816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34817 if (!SWIG_IsOK(res1)) {
34818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34819 }
34820 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34821 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34822 if (!SWIG_IsOK(res2)) {
34823 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34824 }
34825 if (!argp2) {
34826 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34827 }
34828 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34829 {
34830 PyThreadState* __tstate = wxPyBeginAllowThreads();
34831 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
34832 wxPyEndAllowThreads(__tstate);
34833 if (PyErr_Occurred()) SWIG_fail;
34834 }
34835 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
34836 return resultobj;
34837 fail:
34838 return NULL;
34839 }
34840
34841
34842 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34843 PyObject *resultobj = 0;
34844 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34845 wxTreeItemId *arg2 = 0 ;
34846 PyObject *result = 0 ;
34847 void *argp1 = 0 ;
34848 int res1 = 0 ;
34849 void *argp2 = 0 ;
34850 int res2 = 0 ;
34851 PyObject * obj0 = 0 ;
34852 PyObject * obj1 = 0 ;
34853 char * kwnames[] = {
34854 (char *) "self",(char *) "item", NULL
34855 };
34856
34857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
34858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34859 if (!SWIG_IsOK(res1)) {
34860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34861 }
34862 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34863 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34864 if (!SWIG_IsOK(res2)) {
34865 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34866 }
34867 if (!argp2) {
34868 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34869 }
34870 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34871 {
34872 PyThreadState* __tstate = wxPyBeginAllowThreads();
34873 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
34874 wxPyEndAllowThreads(__tstate);
34875 if (PyErr_Occurred()) SWIG_fail;
34876 }
34877 resultobj = result;
34878 return resultobj;
34879 fail:
34880 return NULL;
34881 }
34882
34883
34884 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34885 PyObject *resultobj = 0;
34886 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34887 wxTreeItemId *arg2 = 0 ;
34888 void *arg3 = (void *) 0 ;
34889 PyObject *result = 0 ;
34890 void *argp1 = 0 ;
34891 int res1 = 0 ;
34892 void *argp2 = 0 ;
34893 int res2 = 0 ;
34894 int res3 ;
34895 PyObject * obj0 = 0 ;
34896 PyObject * obj1 = 0 ;
34897 PyObject * obj2 = 0 ;
34898 char * kwnames[] = {
34899 (char *) "self",(char *) "item",(char *) "cookie", NULL
34900 };
34901
34902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34904 if (!SWIG_IsOK(res1)) {
34905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34906 }
34907 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34908 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34909 if (!SWIG_IsOK(res2)) {
34910 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34911 }
34912 if (!argp2) {
34913 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34914 }
34915 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34916 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
34917 if (!SWIG_IsOK(res3)) {
34918 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
34919 }
34920 {
34921 PyThreadState* __tstate = wxPyBeginAllowThreads();
34922 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
34923 wxPyEndAllowThreads(__tstate);
34924 if (PyErr_Occurred()) SWIG_fail;
34925 }
34926 resultobj = result;
34927 return resultobj;
34928 fail:
34929 return NULL;
34930 }
34931
34932
34933 SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34934 PyObject *resultobj = 0;
34935 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34936 wxTreeItemId *arg2 = 0 ;
34937 wxTreeItemId result;
34938 void *argp1 = 0 ;
34939 int res1 = 0 ;
34940 void *argp2 = 0 ;
34941 int res2 = 0 ;
34942 PyObject * obj0 = 0 ;
34943 PyObject * obj1 = 0 ;
34944 char * kwnames[] = {
34945 (char *) "self",(char *) "item", NULL
34946 };
34947
34948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
34949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34950 if (!SWIG_IsOK(res1)) {
34951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34952 }
34953 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34954 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34955 if (!SWIG_IsOK(res2)) {
34956 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34957 }
34958 if (!argp2) {
34959 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34960 }
34961 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34962 {
34963 PyThreadState* __tstate = wxPyBeginAllowThreads();
34964 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
34965 wxPyEndAllowThreads(__tstate);
34966 if (PyErr_Occurred()) SWIG_fail;
34967 }
34968 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
34969 return resultobj;
34970 fail:
34971 return NULL;
34972 }
34973
34974
34975 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34976 PyObject *resultobj = 0;
34977 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34978 wxTreeItemId *arg2 = 0 ;
34979 wxTreeItemId result;
34980 void *argp1 = 0 ;
34981 int res1 = 0 ;
34982 void *argp2 = 0 ;
34983 int res2 = 0 ;
34984 PyObject * obj0 = 0 ;
34985 PyObject * obj1 = 0 ;
34986 char * kwnames[] = {
34987 (char *) "self",(char *) "item", NULL
34988 };
34989
34990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
34991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34992 if (!SWIG_IsOK(res1)) {
34993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34994 }
34995 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34996 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34997 if (!SWIG_IsOK(res2)) {
34998 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34999 }
35000 if (!argp2) {
35001 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35002 }
35003 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35004 {
35005 PyThreadState* __tstate = wxPyBeginAllowThreads();
35006 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35007 wxPyEndAllowThreads(__tstate);
35008 if (PyErr_Occurred()) SWIG_fail;
35009 }
35010 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35011 return resultobj;
35012 fail:
35013 return NULL;
35014 }
35015
35016
35017 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35018 PyObject *resultobj = 0;
35019 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35020 wxTreeItemId *arg2 = 0 ;
35021 wxTreeItemId result;
35022 void *argp1 = 0 ;
35023 int res1 = 0 ;
35024 void *argp2 = 0 ;
35025 int res2 = 0 ;
35026 PyObject * obj0 = 0 ;
35027 PyObject * obj1 = 0 ;
35028 char * kwnames[] = {
35029 (char *) "self",(char *) "item", NULL
35030 };
35031
35032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35034 if (!SWIG_IsOK(res1)) {
35035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35036 }
35037 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35038 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35039 if (!SWIG_IsOK(res2)) {
35040 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35041 }
35042 if (!argp2) {
35043 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35044 }
35045 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35046 {
35047 PyThreadState* __tstate = wxPyBeginAllowThreads();
35048 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35049 wxPyEndAllowThreads(__tstate);
35050 if (PyErr_Occurred()) SWIG_fail;
35051 }
35052 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35053 return resultobj;
35054 fail:
35055 return NULL;
35056 }
35057
35058
35059 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35060 PyObject *resultobj = 0;
35061 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35062 wxTreeItemId result;
35063 void *argp1 = 0 ;
35064 int res1 = 0 ;
35065 PyObject *swig_obj[1] ;
35066
35067 if (!args) SWIG_fail;
35068 swig_obj[0] = args;
35069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35070 if (!SWIG_IsOK(res1)) {
35071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35072 }
35073 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35074 {
35075 PyThreadState* __tstate = wxPyBeginAllowThreads();
35076 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35077 wxPyEndAllowThreads(__tstate);
35078 if (PyErr_Occurred()) SWIG_fail;
35079 }
35080 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35081 return resultobj;
35082 fail:
35083 return NULL;
35084 }
35085
35086
35087 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35088 PyObject *resultobj = 0;
35089 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35090 wxTreeItemId *arg2 = 0 ;
35091 wxTreeItemId result;
35092 void *argp1 = 0 ;
35093 int res1 = 0 ;
35094 void *argp2 = 0 ;
35095 int res2 = 0 ;
35096 PyObject * obj0 = 0 ;
35097 PyObject * obj1 = 0 ;
35098 char * kwnames[] = {
35099 (char *) "self",(char *) "item", NULL
35100 };
35101
35102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35104 if (!SWIG_IsOK(res1)) {
35105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35106 }
35107 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35108 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35109 if (!SWIG_IsOK(res2)) {
35110 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35111 }
35112 if (!argp2) {
35113 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35114 }
35115 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35116 {
35117 PyThreadState* __tstate = wxPyBeginAllowThreads();
35118 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35119 wxPyEndAllowThreads(__tstate);
35120 if (PyErr_Occurred()) SWIG_fail;
35121 }
35122 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35123 return resultobj;
35124 fail:
35125 return NULL;
35126 }
35127
35128
35129 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35130 PyObject *resultobj = 0;
35131 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35132 wxTreeItemId *arg2 = 0 ;
35133 wxTreeItemId result;
35134 void *argp1 = 0 ;
35135 int res1 = 0 ;
35136 void *argp2 = 0 ;
35137 int res2 = 0 ;
35138 PyObject * obj0 = 0 ;
35139 PyObject * obj1 = 0 ;
35140 char * kwnames[] = {
35141 (char *) "self",(char *) "item", NULL
35142 };
35143
35144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35146 if (!SWIG_IsOK(res1)) {
35147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35148 }
35149 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35150 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35151 if (!SWIG_IsOK(res2)) {
35152 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35153 }
35154 if (!argp2) {
35155 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35156 }
35157 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35158 {
35159 PyThreadState* __tstate = wxPyBeginAllowThreads();
35160 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35161 wxPyEndAllowThreads(__tstate);
35162 if (PyErr_Occurred()) SWIG_fail;
35163 }
35164 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35165 return resultobj;
35166 fail:
35167 return NULL;
35168 }
35169
35170
35171 SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35172 PyObject *resultobj = 0;
35173 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35174 wxString *arg2 = 0 ;
35175 int arg3 = (int) -1 ;
35176 int arg4 = (int) -1 ;
35177 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35178 wxTreeItemId result;
35179 void *argp1 = 0 ;
35180 int res1 = 0 ;
35181 bool temp2 = false ;
35182 int val3 ;
35183 int ecode3 = 0 ;
35184 int val4 ;
35185 int ecode4 = 0 ;
35186 int res5 = 0 ;
35187 PyObject * obj0 = 0 ;
35188 PyObject * obj1 = 0 ;
35189 PyObject * obj2 = 0 ;
35190 PyObject * obj3 = 0 ;
35191 PyObject * obj4 = 0 ;
35192 char * kwnames[] = {
35193 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35194 };
35195
35196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35198 if (!SWIG_IsOK(res1)) {
35199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35200 }
35201 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35202 {
35203 arg2 = wxString_in_helper(obj1);
35204 if (arg2 == NULL) SWIG_fail;
35205 temp2 = true;
35206 }
35207 if (obj2) {
35208 ecode3 = SWIG_AsVal_int(obj2, &val3);
35209 if (!SWIG_IsOK(ecode3)) {
35210 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35211 }
35212 arg3 = static_cast< int >(val3);
35213 }
35214 if (obj3) {
35215 ecode4 = SWIG_AsVal_int(obj3, &val4);
35216 if (!SWIG_IsOK(ecode4)) {
35217 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
35218 }
35219 arg4 = static_cast< int >(val4);
35220 }
35221 if (obj4) {
35222 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35223 if (!SWIG_IsOK(res5)) {
35224 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
35225 }
35226 }
35227 {
35228 PyThreadState* __tstate = wxPyBeginAllowThreads();
35229 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
35230 wxPyEndAllowThreads(__tstate);
35231 if (PyErr_Occurred()) SWIG_fail;
35232 }
35233 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35234 {
35235 if (temp2)
35236 delete arg2;
35237 }
35238 return resultobj;
35239 fail:
35240 {
35241 if (temp2)
35242 delete arg2;
35243 }
35244 return NULL;
35245 }
35246
35247
35248 SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35249 PyObject *resultobj = 0;
35250 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35251 wxTreeItemId *arg2 = 0 ;
35252 wxString *arg3 = 0 ;
35253 int arg4 = (int) -1 ;
35254 int arg5 = (int) -1 ;
35255 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35256 wxTreeItemId result;
35257 void *argp1 = 0 ;
35258 int res1 = 0 ;
35259 void *argp2 = 0 ;
35260 int res2 = 0 ;
35261 bool temp3 = false ;
35262 int val4 ;
35263 int ecode4 = 0 ;
35264 int val5 ;
35265 int ecode5 = 0 ;
35266 int res6 = 0 ;
35267 PyObject * obj0 = 0 ;
35268 PyObject * obj1 = 0 ;
35269 PyObject * obj2 = 0 ;
35270 PyObject * obj3 = 0 ;
35271 PyObject * obj4 = 0 ;
35272 PyObject * obj5 = 0 ;
35273 char * kwnames[] = {
35274 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35275 };
35276
35277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35279 if (!SWIG_IsOK(res1)) {
35280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35281 }
35282 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35283 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35284 if (!SWIG_IsOK(res2)) {
35285 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35286 }
35287 if (!argp2) {
35288 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35289 }
35290 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35291 {
35292 arg3 = wxString_in_helper(obj2);
35293 if (arg3 == NULL) SWIG_fail;
35294 temp3 = true;
35295 }
35296 if (obj3) {
35297 ecode4 = SWIG_AsVal_int(obj3, &val4);
35298 if (!SWIG_IsOK(ecode4)) {
35299 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
35300 }
35301 arg4 = static_cast< int >(val4);
35302 }
35303 if (obj4) {
35304 ecode5 = SWIG_AsVal_int(obj4, &val5);
35305 if (!SWIG_IsOK(ecode5)) {
35306 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
35307 }
35308 arg5 = static_cast< int >(val5);
35309 }
35310 if (obj5) {
35311 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35312 if (!SWIG_IsOK(res6)) {
35313 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
35314 }
35315 }
35316 {
35317 PyThreadState* __tstate = wxPyBeginAllowThreads();
35318 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35319 wxPyEndAllowThreads(__tstate);
35320 if (PyErr_Occurred()) SWIG_fail;
35321 }
35322 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35323 {
35324 if (temp3)
35325 delete arg3;
35326 }
35327 return resultobj;
35328 fail:
35329 {
35330 if (temp3)
35331 delete arg3;
35332 }
35333 return NULL;
35334 }
35335
35336
35337 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35338 PyObject *resultobj = 0;
35339 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35340 wxTreeItemId *arg2 = 0 ;
35341 wxTreeItemId *arg3 = 0 ;
35342 wxString *arg4 = 0 ;
35343 int arg5 = (int) -1 ;
35344 int arg6 = (int) -1 ;
35345 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35346 wxTreeItemId result;
35347 void *argp1 = 0 ;
35348 int res1 = 0 ;
35349 void *argp2 = 0 ;
35350 int res2 = 0 ;
35351 void *argp3 = 0 ;
35352 int res3 = 0 ;
35353 bool temp4 = false ;
35354 int val5 ;
35355 int ecode5 = 0 ;
35356 int val6 ;
35357 int ecode6 = 0 ;
35358 int res7 = 0 ;
35359 PyObject * obj0 = 0 ;
35360 PyObject * obj1 = 0 ;
35361 PyObject * obj2 = 0 ;
35362 PyObject * obj3 = 0 ;
35363 PyObject * obj4 = 0 ;
35364 PyObject * obj5 = 0 ;
35365 PyObject * obj6 = 0 ;
35366 char * kwnames[] = {
35367 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35368 };
35369
35370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35372 if (!SWIG_IsOK(res1)) {
35373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35374 }
35375 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35376 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35377 if (!SWIG_IsOK(res2)) {
35378 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35379 }
35380 if (!argp2) {
35381 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35382 }
35383 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35384 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35385 if (!SWIG_IsOK(res3)) {
35386 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35387 }
35388 if (!argp3) {
35389 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35390 }
35391 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
35392 {
35393 arg4 = wxString_in_helper(obj3);
35394 if (arg4 == NULL) SWIG_fail;
35395 temp4 = true;
35396 }
35397 if (obj4) {
35398 ecode5 = SWIG_AsVal_int(obj4, &val5);
35399 if (!SWIG_IsOK(ecode5)) {
35400 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
35401 }
35402 arg5 = static_cast< int >(val5);
35403 }
35404 if (obj5) {
35405 ecode6 = SWIG_AsVal_int(obj5, &val6);
35406 if (!SWIG_IsOK(ecode6)) {
35407 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
35408 }
35409 arg6 = static_cast< int >(val6);
35410 }
35411 if (obj6) {
35412 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35413 if (!SWIG_IsOK(res7)) {
35414 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
35415 }
35416 }
35417 {
35418 PyThreadState* __tstate = wxPyBeginAllowThreads();
35419 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35420 wxPyEndAllowThreads(__tstate);
35421 if (PyErr_Occurred()) SWIG_fail;
35422 }
35423 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35424 {
35425 if (temp4)
35426 delete arg4;
35427 }
35428 return resultobj;
35429 fail:
35430 {
35431 if (temp4)
35432 delete arg4;
35433 }
35434 return NULL;
35435 }
35436
35437
35438 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35439 PyObject *resultobj = 0;
35440 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35441 wxTreeItemId *arg2 = 0 ;
35442 size_t arg3 ;
35443 wxString *arg4 = 0 ;
35444 int arg5 = (int) -1 ;
35445 int arg6 = (int) -1 ;
35446 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35447 wxTreeItemId result;
35448 void *argp1 = 0 ;
35449 int res1 = 0 ;
35450 void *argp2 = 0 ;
35451 int res2 = 0 ;
35452 size_t val3 ;
35453 int ecode3 = 0 ;
35454 bool temp4 = false ;
35455 int val5 ;
35456 int ecode5 = 0 ;
35457 int val6 ;
35458 int ecode6 = 0 ;
35459 int res7 = 0 ;
35460 PyObject * obj0 = 0 ;
35461 PyObject * obj1 = 0 ;
35462 PyObject * obj2 = 0 ;
35463 PyObject * obj3 = 0 ;
35464 PyObject * obj4 = 0 ;
35465 PyObject * obj5 = 0 ;
35466 PyObject * obj6 = 0 ;
35467 char * kwnames[] = {
35468 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35469 };
35470
35471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) 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_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
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_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35480 }
35481 if (!argp2) {
35482 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35483 }
35484 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35485 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
35486 if (!SWIG_IsOK(ecode3)) {
35487 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
35488 }
35489 arg3 = static_cast< size_t >(val3);
35490 {
35491 arg4 = wxString_in_helper(obj3);
35492 if (arg4 == NULL) SWIG_fail;
35493 temp4 = true;
35494 }
35495 if (obj4) {
35496 ecode5 = SWIG_AsVal_int(obj4, &val5);
35497 if (!SWIG_IsOK(ecode5)) {
35498 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
35499 }
35500 arg5 = static_cast< int >(val5);
35501 }
35502 if (obj5) {
35503 ecode6 = SWIG_AsVal_int(obj5, &val6);
35504 if (!SWIG_IsOK(ecode6)) {
35505 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
35506 }
35507 arg6 = static_cast< int >(val6);
35508 }
35509 if (obj6) {
35510 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35511 if (!SWIG_IsOK(res7)) {
35512 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
35513 }
35514 }
35515 {
35516 PyThreadState* __tstate = wxPyBeginAllowThreads();
35517 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35518 wxPyEndAllowThreads(__tstate);
35519 if (PyErr_Occurred()) SWIG_fail;
35520 }
35521 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35522 {
35523 if (temp4)
35524 delete arg4;
35525 }
35526 return resultobj;
35527 fail:
35528 {
35529 if (temp4)
35530 delete arg4;
35531 }
35532 return NULL;
35533 }
35534
35535
35536 SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35537 PyObject *resultobj = 0;
35538 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35539 wxTreeItemId *arg2 = 0 ;
35540 wxString *arg3 = 0 ;
35541 int arg4 = (int) -1 ;
35542 int arg5 = (int) -1 ;
35543 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35544 wxTreeItemId result;
35545 void *argp1 = 0 ;
35546 int res1 = 0 ;
35547 void *argp2 = 0 ;
35548 int res2 = 0 ;
35549 bool temp3 = false ;
35550 int val4 ;
35551 int ecode4 = 0 ;
35552 int val5 ;
35553 int ecode5 = 0 ;
35554 int res6 = 0 ;
35555 PyObject * obj0 = 0 ;
35556 PyObject * obj1 = 0 ;
35557 PyObject * obj2 = 0 ;
35558 PyObject * obj3 = 0 ;
35559 PyObject * obj4 = 0 ;
35560 PyObject * obj5 = 0 ;
35561 char * kwnames[] = {
35562 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35563 };
35564
35565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35567 if (!SWIG_IsOK(res1)) {
35568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35569 }
35570 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35571 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35572 if (!SWIG_IsOK(res2)) {
35573 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35574 }
35575 if (!argp2) {
35576 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35577 }
35578 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35579 {
35580 arg3 = wxString_in_helper(obj2);
35581 if (arg3 == NULL) SWIG_fail;
35582 temp3 = true;
35583 }
35584 if (obj3) {
35585 ecode4 = SWIG_AsVal_int(obj3, &val4);
35586 if (!SWIG_IsOK(ecode4)) {
35587 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
35588 }
35589 arg4 = static_cast< int >(val4);
35590 }
35591 if (obj4) {
35592 ecode5 = SWIG_AsVal_int(obj4, &val5);
35593 if (!SWIG_IsOK(ecode5)) {
35594 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
35595 }
35596 arg5 = static_cast< int >(val5);
35597 }
35598 if (obj5) {
35599 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35600 if (!SWIG_IsOK(res6)) {
35601 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
35602 }
35603 }
35604 {
35605 PyThreadState* __tstate = wxPyBeginAllowThreads();
35606 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35607 wxPyEndAllowThreads(__tstate);
35608 if (PyErr_Occurred()) SWIG_fail;
35609 }
35610 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35611 {
35612 if (temp3)
35613 delete arg3;
35614 }
35615 return resultobj;
35616 fail:
35617 {
35618 if (temp3)
35619 delete arg3;
35620 }
35621 return NULL;
35622 }
35623
35624
35625 SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35626 PyObject *resultobj = 0;
35627 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35628 wxTreeItemId *arg2 = 0 ;
35629 void *argp1 = 0 ;
35630 int res1 = 0 ;
35631 void *argp2 = 0 ;
35632 int res2 = 0 ;
35633 PyObject * obj0 = 0 ;
35634 PyObject * obj1 = 0 ;
35635 char * kwnames[] = {
35636 (char *) "self",(char *) "item", NULL
35637 };
35638
35639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
35640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35641 if (!SWIG_IsOK(res1)) {
35642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35643 }
35644 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35645 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35646 if (!SWIG_IsOK(res2)) {
35647 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35648 }
35649 if (!argp2) {
35650 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35651 }
35652 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35653 {
35654 PyThreadState* __tstate = wxPyBeginAllowThreads();
35655 (arg1)->Delete((wxTreeItemId const &)*arg2);
35656 wxPyEndAllowThreads(__tstate);
35657 if (PyErr_Occurred()) SWIG_fail;
35658 }
35659 resultobj = SWIG_Py_Void();
35660 return resultobj;
35661 fail:
35662 return NULL;
35663 }
35664
35665
35666 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35667 PyObject *resultobj = 0;
35668 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35669 wxTreeItemId *arg2 = 0 ;
35670 void *argp1 = 0 ;
35671 int res1 = 0 ;
35672 void *argp2 = 0 ;
35673 int res2 = 0 ;
35674 PyObject * obj0 = 0 ;
35675 PyObject * obj1 = 0 ;
35676 char * kwnames[] = {
35677 (char *) "self",(char *) "item", NULL
35678 };
35679
35680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35682 if (!SWIG_IsOK(res1)) {
35683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35684 }
35685 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35686 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35687 if (!SWIG_IsOK(res2)) {
35688 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35689 }
35690 if (!argp2) {
35691 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35692 }
35693 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35694 {
35695 PyThreadState* __tstate = wxPyBeginAllowThreads();
35696 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
35697 wxPyEndAllowThreads(__tstate);
35698 if (PyErr_Occurred()) SWIG_fail;
35699 }
35700 resultobj = SWIG_Py_Void();
35701 return resultobj;
35702 fail:
35703 return NULL;
35704 }
35705
35706
35707 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35708 PyObject *resultobj = 0;
35709 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35710 void *argp1 = 0 ;
35711 int res1 = 0 ;
35712 PyObject *swig_obj[1] ;
35713
35714 if (!args) SWIG_fail;
35715 swig_obj[0] = args;
35716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35717 if (!SWIG_IsOK(res1)) {
35718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35719 }
35720 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35721 {
35722 PyThreadState* __tstate = wxPyBeginAllowThreads();
35723 (arg1)->DeleteAllItems();
35724 wxPyEndAllowThreads(__tstate);
35725 if (PyErr_Occurred()) SWIG_fail;
35726 }
35727 resultobj = SWIG_Py_Void();
35728 return resultobj;
35729 fail:
35730 return NULL;
35731 }
35732
35733
35734 SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35735 PyObject *resultobj = 0;
35736 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35737 wxTreeItemId *arg2 = 0 ;
35738 void *argp1 = 0 ;
35739 int res1 = 0 ;
35740 void *argp2 = 0 ;
35741 int res2 = 0 ;
35742 PyObject * obj0 = 0 ;
35743 PyObject * obj1 = 0 ;
35744 char * kwnames[] = {
35745 (char *) "self",(char *) "item", NULL
35746 };
35747
35748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
35749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35750 if (!SWIG_IsOK(res1)) {
35751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35752 }
35753 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35754 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35755 if (!SWIG_IsOK(res2)) {
35756 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35757 }
35758 if (!argp2) {
35759 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35760 }
35761 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35762 {
35763 PyThreadState* __tstate = wxPyBeginAllowThreads();
35764 (arg1)->Expand((wxTreeItemId const &)*arg2);
35765 wxPyEndAllowThreads(__tstate);
35766 if (PyErr_Occurred()) SWIG_fail;
35767 }
35768 resultobj = SWIG_Py_Void();
35769 return resultobj;
35770 fail:
35771 return NULL;
35772 }
35773
35774
35775 SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35776 PyObject *resultobj = 0;
35777 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35778 wxTreeItemId *arg2 = 0 ;
35779 void *argp1 = 0 ;
35780 int res1 = 0 ;
35781 void *argp2 = 0 ;
35782 int res2 = 0 ;
35783 PyObject * obj0 = 0 ;
35784 PyObject * obj1 = 0 ;
35785 char * kwnames[] = {
35786 (char *) "self",(char *) "item", NULL
35787 };
35788
35789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
35790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35791 if (!SWIG_IsOK(res1)) {
35792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35793 }
35794 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35795 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35796 if (!SWIG_IsOK(res2)) {
35797 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35798 }
35799 if (!argp2) {
35800 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35801 }
35802 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35803 {
35804 PyThreadState* __tstate = wxPyBeginAllowThreads();
35805 (arg1)->Collapse((wxTreeItemId const &)*arg2);
35806 wxPyEndAllowThreads(__tstate);
35807 if (PyErr_Occurred()) SWIG_fail;
35808 }
35809 resultobj = SWIG_Py_Void();
35810 return resultobj;
35811 fail:
35812 return NULL;
35813 }
35814
35815
35816 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35817 PyObject *resultobj = 0;
35818 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35819 wxTreeItemId *arg2 = 0 ;
35820 void *argp1 = 0 ;
35821 int res1 = 0 ;
35822 void *argp2 = 0 ;
35823 int res2 = 0 ;
35824 PyObject * obj0 = 0 ;
35825 PyObject * obj1 = 0 ;
35826 char * kwnames[] = {
35827 (char *) "self",(char *) "item", NULL
35828 };
35829
35830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
35831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35832 if (!SWIG_IsOK(res1)) {
35833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35834 }
35835 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35836 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35837 if (!SWIG_IsOK(res2)) {
35838 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35839 }
35840 if (!argp2) {
35841 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35842 }
35843 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35844 {
35845 PyThreadState* __tstate = wxPyBeginAllowThreads();
35846 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
35847 wxPyEndAllowThreads(__tstate);
35848 if (PyErr_Occurred()) SWIG_fail;
35849 }
35850 resultobj = SWIG_Py_Void();
35851 return resultobj;
35852 fail:
35853 return NULL;
35854 }
35855
35856
35857 SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35858 PyObject *resultobj = 0;
35859 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35860 wxTreeItemId *arg2 = 0 ;
35861 void *argp1 = 0 ;
35862 int res1 = 0 ;
35863 void *argp2 = 0 ;
35864 int res2 = 0 ;
35865 PyObject * obj0 = 0 ;
35866 PyObject * obj1 = 0 ;
35867 char * kwnames[] = {
35868 (char *) "self",(char *) "item", NULL
35869 };
35870
35871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
35872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35873 if (!SWIG_IsOK(res1)) {
35874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35875 }
35876 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35877 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35878 if (!SWIG_IsOK(res2)) {
35879 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35880 }
35881 if (!argp2) {
35882 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35883 }
35884 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35885 {
35886 PyThreadState* __tstate = wxPyBeginAllowThreads();
35887 (arg1)->Toggle((wxTreeItemId const &)*arg2);
35888 wxPyEndAllowThreads(__tstate);
35889 if (PyErr_Occurred()) SWIG_fail;
35890 }
35891 resultobj = SWIG_Py_Void();
35892 return resultobj;
35893 fail:
35894 return NULL;
35895 }
35896
35897
35898 SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35899 PyObject *resultobj = 0;
35900 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35901 void *argp1 = 0 ;
35902 int res1 = 0 ;
35903 PyObject *swig_obj[1] ;
35904
35905 if (!args) SWIG_fail;
35906 swig_obj[0] = args;
35907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35908 if (!SWIG_IsOK(res1)) {
35909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35910 }
35911 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35912 {
35913 PyThreadState* __tstate = wxPyBeginAllowThreads();
35914 (arg1)->Unselect();
35915 wxPyEndAllowThreads(__tstate);
35916 if (PyErr_Occurred()) SWIG_fail;
35917 }
35918 resultobj = SWIG_Py_Void();
35919 return resultobj;
35920 fail:
35921 return NULL;
35922 }
35923
35924
35925 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35926 PyObject *resultobj = 0;
35927 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35928 wxTreeItemId *arg2 = 0 ;
35929 void *argp1 = 0 ;
35930 int res1 = 0 ;
35931 void *argp2 = 0 ;
35932 int res2 = 0 ;
35933 PyObject * obj0 = 0 ;
35934 PyObject * obj1 = 0 ;
35935 char * kwnames[] = {
35936 (char *) "self",(char *) "item", NULL
35937 };
35938
35939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
35940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35941 if (!SWIG_IsOK(res1)) {
35942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35943 }
35944 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35945 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35946 if (!SWIG_IsOK(res2)) {
35947 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35948 }
35949 if (!argp2) {
35950 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35951 }
35952 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35953 {
35954 PyThreadState* __tstate = wxPyBeginAllowThreads();
35955 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
35956 wxPyEndAllowThreads(__tstate);
35957 if (PyErr_Occurred()) SWIG_fail;
35958 }
35959 resultobj = SWIG_Py_Void();
35960 return resultobj;
35961 fail:
35962 return NULL;
35963 }
35964
35965
35966 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35967 PyObject *resultobj = 0;
35968 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35969 void *argp1 = 0 ;
35970 int res1 = 0 ;
35971 PyObject *swig_obj[1] ;
35972
35973 if (!args) SWIG_fail;
35974 swig_obj[0] = args;
35975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35976 if (!SWIG_IsOK(res1)) {
35977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35978 }
35979 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35980 {
35981 PyThreadState* __tstate = wxPyBeginAllowThreads();
35982 (arg1)->UnselectAll();
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_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35994 PyObject *resultobj = 0;
35995 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35996 wxTreeItemId *arg2 = 0 ;
35997 bool arg3 = (bool) true ;
35998 void *argp1 = 0 ;
35999 int res1 = 0 ;
36000 void *argp2 = 0 ;
36001 int res2 = 0 ;
36002 bool val3 ;
36003 int ecode3 = 0 ;
36004 PyObject * obj0 = 0 ;
36005 PyObject * obj1 = 0 ;
36006 PyObject * obj2 = 0 ;
36007 char * kwnames[] = {
36008 (char *) "self",(char *) "item",(char *) "select", NULL
36009 };
36010
36011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36013 if (!SWIG_IsOK(res1)) {
36014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36015 }
36016 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36017 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36018 if (!SWIG_IsOK(res2)) {
36019 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36020 }
36021 if (!argp2) {
36022 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36023 }
36024 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36025 if (obj2) {
36026 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36027 if (!SWIG_IsOK(ecode3)) {
36028 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36029 }
36030 arg3 = static_cast< bool >(val3);
36031 }
36032 {
36033 PyThreadState* __tstate = wxPyBeginAllowThreads();
36034 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36035 wxPyEndAllowThreads(__tstate);
36036 if (PyErr_Occurred()) SWIG_fail;
36037 }
36038 resultobj = SWIG_Py_Void();
36039 return resultobj;
36040 fail:
36041 return NULL;
36042 }
36043
36044
36045 SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36046 PyObject *resultobj = 0;
36047 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36048 wxTreeItemId *arg2 = 0 ;
36049 void *argp1 = 0 ;
36050 int res1 = 0 ;
36051 void *argp2 = 0 ;
36052 int res2 = 0 ;
36053 PyObject * obj0 = 0 ;
36054 PyObject * obj1 = 0 ;
36055 char * kwnames[] = {
36056 (char *) "self",(char *) "item", NULL
36057 };
36058
36059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36061 if (!SWIG_IsOK(res1)) {
36062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36063 }
36064 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36065 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36066 if (!SWIG_IsOK(res2)) {
36067 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36068 }
36069 if (!argp2) {
36070 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36071 }
36072 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36073 {
36074 PyThreadState* __tstate = wxPyBeginAllowThreads();
36075 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36076 wxPyEndAllowThreads(__tstate);
36077 if (PyErr_Occurred()) SWIG_fail;
36078 }
36079 resultobj = SWIG_Py_Void();
36080 return resultobj;
36081 fail:
36082 return NULL;
36083 }
36084
36085
36086 SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36087 PyObject *resultobj = 0;
36088 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36089 wxTreeItemId *arg2 = 0 ;
36090 void *argp1 = 0 ;
36091 int res1 = 0 ;
36092 void *argp2 = 0 ;
36093 int res2 = 0 ;
36094 PyObject * obj0 = 0 ;
36095 PyObject * obj1 = 0 ;
36096 char * kwnames[] = {
36097 (char *) "self",(char *) "item", NULL
36098 };
36099
36100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36102 if (!SWIG_IsOK(res1)) {
36103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36104 }
36105 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36106 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36107 if (!SWIG_IsOK(res2)) {
36108 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36109 }
36110 if (!argp2) {
36111 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36112 }
36113 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36114 {
36115 PyThreadState* __tstate = wxPyBeginAllowThreads();
36116 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36117 wxPyEndAllowThreads(__tstate);
36118 if (PyErr_Occurred()) SWIG_fail;
36119 }
36120 resultobj = SWIG_Py_Void();
36121 return resultobj;
36122 fail:
36123 return NULL;
36124 }
36125
36126
36127 SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36128 PyObject *resultobj = 0;
36129 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36130 wxTreeItemId *arg2 = 0 ;
36131 void *argp1 = 0 ;
36132 int res1 = 0 ;
36133 void *argp2 = 0 ;
36134 int res2 = 0 ;
36135 PyObject * obj0 = 0 ;
36136 PyObject * obj1 = 0 ;
36137 char * kwnames[] = {
36138 (char *) "self",(char *) "item", NULL
36139 };
36140
36141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
36142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36143 if (!SWIG_IsOK(res1)) {
36144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36145 }
36146 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36147 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36148 if (!SWIG_IsOK(res2)) {
36149 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36150 }
36151 if (!argp2) {
36152 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36153 }
36154 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36155 {
36156 PyThreadState* __tstate = wxPyBeginAllowThreads();
36157 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
36158 wxPyEndAllowThreads(__tstate);
36159 if (PyErr_Occurred()) SWIG_fail;
36160 }
36161 resultobj = SWIG_Py_Void();
36162 return resultobj;
36163 fail:
36164 return NULL;
36165 }
36166
36167
36168 SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36169 PyObject *resultobj = 0;
36170 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36171 wxTreeItemId *arg2 = 0 ;
36172 void *argp1 = 0 ;
36173 int res1 = 0 ;
36174 void *argp2 = 0 ;
36175 int res2 = 0 ;
36176 PyObject * obj0 = 0 ;
36177 PyObject * obj1 = 0 ;
36178 char * kwnames[] = {
36179 (char *) "self",(char *) "item", NULL
36180 };
36181
36182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
36183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36184 if (!SWIG_IsOK(res1)) {
36185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36186 }
36187 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36188 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36189 if (!SWIG_IsOK(res2)) {
36190 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36191 }
36192 if (!argp2) {
36193 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36194 }
36195 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36196 {
36197 PyThreadState* __tstate = wxPyBeginAllowThreads();
36198 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
36199 wxPyEndAllowThreads(__tstate);
36200 if (PyErr_Occurred()) SWIG_fail;
36201 }
36202 resultobj = SWIG_Py_Void();
36203 return resultobj;
36204 fail:
36205 return NULL;
36206 }
36207
36208
36209 SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36210 PyObject *resultobj = 0;
36211 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36212 wxTextCtrl *result = 0 ;
36213 void *argp1 = 0 ;
36214 int res1 = 0 ;
36215 PyObject *swig_obj[1] ;
36216
36217 if (!args) SWIG_fail;
36218 swig_obj[0] = args;
36219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36220 if (!SWIG_IsOK(res1)) {
36221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36222 }
36223 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36224 {
36225 PyThreadState* __tstate = wxPyBeginAllowThreads();
36226 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
36227 wxPyEndAllowThreads(__tstate);
36228 if (PyErr_Occurred()) SWIG_fail;
36229 }
36230 {
36231 resultobj = wxPyMake_wxObject(result, 0);
36232 }
36233 return resultobj;
36234 fail:
36235 return NULL;
36236 }
36237
36238
36239 SWIGINTERN PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36240 PyObject *resultobj = 0;
36241 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36242 wxTreeItemId *arg2 = 0 ;
36243 bool arg3 = (bool) false ;
36244 void *argp1 = 0 ;
36245 int res1 = 0 ;
36246 void *argp2 = 0 ;
36247 int res2 = 0 ;
36248 bool val3 ;
36249 int ecode3 = 0 ;
36250 PyObject * obj0 = 0 ;
36251 PyObject * obj1 = 0 ;
36252 PyObject * obj2 = 0 ;
36253 char * kwnames[] = {
36254 (char *) "self",(char *) "item",(char *) "discardChanges", NULL
36255 };
36256
36257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36259 if (!SWIG_IsOK(res1)) {
36260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36261 }
36262 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36263 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36264 if (!SWIG_IsOK(res2)) {
36265 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36266 }
36267 if (!argp2) {
36268 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36269 }
36270 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36271 if (obj2) {
36272 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36273 if (!SWIG_IsOK(ecode3)) {
36274 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "3"" of type '" "bool""'");
36275 }
36276 arg3 = static_cast< bool >(val3);
36277 }
36278 {
36279 PyThreadState* __tstate = wxPyBeginAllowThreads();
36280 (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3);
36281 wxPyEndAllowThreads(__tstate);
36282 if (PyErr_Occurred()) SWIG_fail;
36283 }
36284 resultobj = SWIG_Py_Void();
36285 return resultobj;
36286 fail:
36287 return NULL;
36288 }
36289
36290
36291 SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36292 PyObject *resultobj = 0;
36293 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36294 wxTreeItemId *arg2 = 0 ;
36295 void *argp1 = 0 ;
36296 int res1 = 0 ;
36297 void *argp2 = 0 ;
36298 int res2 = 0 ;
36299 PyObject * obj0 = 0 ;
36300 PyObject * obj1 = 0 ;
36301 char * kwnames[] = {
36302 (char *) "self",(char *) "item", NULL
36303 };
36304
36305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36307 if (!SWIG_IsOK(res1)) {
36308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36309 }
36310 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36311 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36312 if (!SWIG_IsOK(res2)) {
36313 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36314 }
36315 if (!argp2) {
36316 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36317 }
36318 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36319 {
36320 PyThreadState* __tstate = wxPyBeginAllowThreads();
36321 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
36322 wxPyEndAllowThreads(__tstate);
36323 if (PyErr_Occurred()) SWIG_fail;
36324 }
36325 resultobj = SWIG_Py_Void();
36326 return resultobj;
36327 fail:
36328 return NULL;
36329 }
36330
36331
36332 SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36333 PyObject *resultobj = 0;
36334 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36335 wxPoint *arg2 = 0 ;
36336 int *arg3 = 0 ;
36337 wxTreeItemId result;
36338 void *argp1 = 0 ;
36339 int res1 = 0 ;
36340 wxPoint temp2 ;
36341 int temp3 ;
36342 int res3 = SWIG_TMPOBJ ;
36343 PyObject * obj0 = 0 ;
36344 PyObject * obj1 = 0 ;
36345 char * kwnames[] = {
36346 (char *) "self",(char *) "point", NULL
36347 };
36348
36349 arg3 = &temp3;
36350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
36351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36352 if (!SWIG_IsOK(res1)) {
36353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36354 }
36355 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36356 {
36357 arg2 = &temp2;
36358 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36359 }
36360 {
36361 PyThreadState* __tstate = wxPyBeginAllowThreads();
36362 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
36363 wxPyEndAllowThreads(__tstate);
36364 if (PyErr_Occurred()) SWIG_fail;
36365 }
36366 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36367 if (SWIG_IsTmpObj(res3)) {
36368 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
36369 } else {
36370 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
36371 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
36372 }
36373 return resultobj;
36374 fail:
36375 return NULL;
36376 }
36377
36378
36379 SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36380 PyObject *resultobj = 0;
36381 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36382 wxTreeItemId *arg2 = 0 ;
36383 bool arg3 = (bool) false ;
36384 PyObject *result = 0 ;
36385 void *argp1 = 0 ;
36386 int res1 = 0 ;
36387 void *argp2 = 0 ;
36388 int res2 = 0 ;
36389 bool val3 ;
36390 int ecode3 = 0 ;
36391 PyObject * obj0 = 0 ;
36392 PyObject * obj1 = 0 ;
36393 PyObject * obj2 = 0 ;
36394 char * kwnames[] = {
36395 (char *) "self",(char *) "item",(char *) "textOnly", NULL
36396 };
36397
36398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36400 if (!SWIG_IsOK(res1)) {
36401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36402 }
36403 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36404 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36405 if (!SWIG_IsOK(res2)) {
36406 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36407 }
36408 if (!argp2) {
36409 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36410 }
36411 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36412 if (obj2) {
36413 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36414 if (!SWIG_IsOK(ecode3)) {
36415 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
36416 }
36417 arg3 = static_cast< bool >(val3);
36418 }
36419 {
36420 PyThreadState* __tstate = wxPyBeginAllowThreads();
36421 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
36422 wxPyEndAllowThreads(__tstate);
36423 if (PyErr_Occurred()) SWIG_fail;
36424 }
36425 resultobj = result;
36426 return resultobj;
36427 fail:
36428 return NULL;
36429 }
36430
36431
36432 SWIGINTERN PyObject *_wrap_TreeCtrl_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36433 PyObject *resultobj = 0;
36434 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36435 wxTreeItemId *arg2 = 0 ;
36436 int arg3 ;
36437 void *argp1 = 0 ;
36438 int res1 = 0 ;
36439 void *argp2 = 0 ;
36440 int res2 = 0 ;
36441 int val3 ;
36442 int ecode3 = 0 ;
36443 PyObject * obj0 = 0 ;
36444 PyObject * obj1 = 0 ;
36445 PyObject * obj2 = 0 ;
36446 char * kwnames[] = {
36447 (char *) "self",(char *) "node",(char *) "state", NULL
36448 };
36449
36450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36452 if (!SWIG_IsOK(res1)) {
36453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36454 }
36455 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36456 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36457 if (!SWIG_IsOK(res2)) {
36458 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36459 }
36460 if (!argp2) {
36461 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36462 }
36463 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36464 ecode3 = SWIG_AsVal_int(obj2, &val3);
36465 if (!SWIG_IsOK(ecode3)) {
36466 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetState" "', expected argument " "3"" of type '" "int""'");
36467 }
36468 arg3 = static_cast< int >(val3);
36469 {
36470 PyThreadState* __tstate = wxPyBeginAllowThreads();
36471 (arg1)->SetState((wxTreeItemId const &)*arg2,arg3);
36472 wxPyEndAllowThreads(__tstate);
36473 if (PyErr_Occurred()) SWIG_fail;
36474 }
36475 resultobj = SWIG_Py_Void();
36476 return resultobj;
36477 fail:
36478 return NULL;
36479 }
36480
36481
36482 SWIGINTERN PyObject *_wrap_TreeCtrl_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36483 PyObject *resultobj = 0;
36484 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36485 wxTreeItemId *arg2 = 0 ;
36486 int result;
36487 void *argp1 = 0 ;
36488 int res1 = 0 ;
36489 void *argp2 = 0 ;
36490 int res2 = 0 ;
36491 PyObject * obj0 = 0 ;
36492 PyObject * obj1 = 0 ;
36493 char * kwnames[] = {
36494 (char *) "self",(char *) "node", NULL
36495 };
36496
36497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetState",kwnames,&obj0,&obj1)) SWIG_fail;
36498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36499 if (!SWIG_IsOK(res1)) {
36500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36501 }
36502 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36503 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36504 if (!SWIG_IsOK(res2)) {
36505 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36506 }
36507 if (!argp2) {
36508 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36509 }
36510 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36511 {
36512 PyThreadState* __tstate = wxPyBeginAllowThreads();
36513 result = (int)(arg1)->GetState((wxTreeItemId const &)*arg2);
36514 wxPyEndAllowThreads(__tstate);
36515 if (PyErr_Occurred()) SWIG_fail;
36516 }
36517 resultobj = SWIG_From_int(static_cast< int >(result));
36518 return resultobj;
36519 fail:
36520 return NULL;
36521 }
36522
36523
36524 SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36525 PyObject *resultobj = 0;
36526 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
36527 SwigValueWrapper<wxVisualAttributes > result;
36528 int val1 ;
36529 int ecode1 = 0 ;
36530 PyObject * obj0 = 0 ;
36531 char * kwnames[] = {
36532 (char *) "variant", NULL
36533 };
36534
36535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
36536 if (obj0) {
36537 ecode1 = SWIG_AsVal_int(obj0, &val1);
36538 if (!SWIG_IsOK(ecode1)) {
36539 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
36540 }
36541 arg1 = static_cast< wxWindowVariant >(val1);
36542 }
36543 {
36544 if (!wxPyCheckForApp()) SWIG_fail;
36545 PyThreadState* __tstate = wxPyBeginAllowThreads();
36546 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
36547 wxPyEndAllowThreads(__tstate);
36548 if (PyErr_Occurred()) SWIG_fail;
36549 }
36550 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
36551 return resultobj;
36552 fail:
36553 return NULL;
36554 }
36555
36556
36557 SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36558 PyObject *obj;
36559 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
36560 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
36561 return SWIG_Py_Void();
36562 }
36563
36564 SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36565 return SWIG_Python_InitShadowInstance(args);
36566 }
36567
36568 SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
36569 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
36570 return 1;
36571 }
36572
36573
36574 SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
36575 PyObject *pyobj = 0;
36576
36577 {
36578 #if wxUSE_UNICODE
36579 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
36580 #else
36581 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
36582 #endif
36583 }
36584 return pyobj;
36585 }
36586
36587
36588 SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36589 PyObject *resultobj = 0;
36590 wxWindow *arg1 = (wxWindow *) 0 ;
36591 int arg2 = (int) (int)-1 ;
36592 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
36593 wxString *arg3 = (wxString *) &arg3_defvalue ;
36594 wxPoint const &arg4_defvalue = wxDefaultPosition ;
36595 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
36596 wxSize const &arg5_defvalue = wxDefaultSize ;
36597 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
36598 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
36599 wxString const &arg7_defvalue = wxPyEmptyString ;
36600 wxString *arg7 = (wxString *) &arg7_defvalue ;
36601 int arg8 = (int) 0 ;
36602 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
36603 wxString *arg9 = (wxString *) &arg9_defvalue ;
36604 wxGenericDirCtrl *result = 0 ;
36605 void *argp1 = 0 ;
36606 int res1 = 0 ;
36607 int val2 ;
36608 int ecode2 = 0 ;
36609 bool temp3 = false ;
36610 wxPoint temp4 ;
36611 wxSize temp5 ;
36612 long val6 ;
36613 int ecode6 = 0 ;
36614 bool temp7 = false ;
36615 int val8 ;
36616 int ecode8 = 0 ;
36617 bool temp9 = false ;
36618 PyObject * obj0 = 0 ;
36619 PyObject * obj1 = 0 ;
36620 PyObject * obj2 = 0 ;
36621 PyObject * obj3 = 0 ;
36622 PyObject * obj4 = 0 ;
36623 PyObject * obj5 = 0 ;
36624 PyObject * obj6 = 0 ;
36625 PyObject * obj7 = 0 ;
36626 PyObject * obj8 = 0 ;
36627 char * kwnames[] = {
36628 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
36629 };
36630
36631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
36632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36633 if (!SWIG_IsOK(res1)) {
36634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
36635 }
36636 arg1 = reinterpret_cast< wxWindow * >(argp1);
36637 if (obj1) {
36638 ecode2 = SWIG_AsVal_int(obj1, &val2);
36639 if (!SWIG_IsOK(ecode2)) {
36640 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
36641 }
36642 arg2 = static_cast< int >(val2);
36643 }
36644 if (obj2) {
36645 {
36646 arg3 = wxString_in_helper(obj2);
36647 if (arg3 == NULL) SWIG_fail;
36648 temp3 = true;
36649 }
36650 }
36651 if (obj3) {
36652 {
36653 arg4 = &temp4;
36654 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36655 }
36656 }
36657 if (obj4) {
36658 {
36659 arg5 = &temp5;
36660 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36661 }
36662 }
36663 if (obj5) {
36664 ecode6 = SWIG_AsVal_long(obj5, &val6);
36665 if (!SWIG_IsOK(ecode6)) {
36666 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
36667 }
36668 arg6 = static_cast< long >(val6);
36669 }
36670 if (obj6) {
36671 {
36672 arg7 = wxString_in_helper(obj6);
36673 if (arg7 == NULL) SWIG_fail;
36674 temp7 = true;
36675 }
36676 }
36677 if (obj7) {
36678 ecode8 = SWIG_AsVal_int(obj7, &val8);
36679 if (!SWIG_IsOK(ecode8)) {
36680 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
36681 }
36682 arg8 = static_cast< int >(val8);
36683 }
36684 if (obj8) {
36685 {
36686 arg9 = wxString_in_helper(obj8);
36687 if (arg9 == NULL) SWIG_fail;
36688 temp9 = true;
36689 }
36690 }
36691 {
36692 if (!wxPyCheckForApp()) SWIG_fail;
36693 PyThreadState* __tstate = wxPyBeginAllowThreads();
36694 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
36695 wxPyEndAllowThreads(__tstate);
36696 if (PyErr_Occurred()) SWIG_fail;
36697 }
36698 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
36699 {
36700 if (temp3)
36701 delete arg3;
36702 }
36703 {
36704 if (temp7)
36705 delete arg7;
36706 }
36707 {
36708 if (temp9)
36709 delete arg9;
36710 }
36711 return resultobj;
36712 fail:
36713 {
36714 if (temp3)
36715 delete arg3;
36716 }
36717 {
36718 if (temp7)
36719 delete arg7;
36720 }
36721 {
36722 if (temp9)
36723 delete arg9;
36724 }
36725 return NULL;
36726 }
36727
36728
36729 SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36730 PyObject *resultobj = 0;
36731 wxGenericDirCtrl *result = 0 ;
36732
36733 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
36734 {
36735 if (!wxPyCheckForApp()) SWIG_fail;
36736 PyThreadState* __tstate = wxPyBeginAllowThreads();
36737 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
36738 wxPyEndAllowThreads(__tstate);
36739 if (PyErr_Occurred()) SWIG_fail;
36740 }
36741 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
36742 return resultobj;
36743 fail:
36744 return NULL;
36745 }
36746
36747
36748 SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36749 PyObject *resultobj = 0;
36750 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36751 wxWindow *arg2 = (wxWindow *) 0 ;
36752 int arg3 = (int) (int)-1 ;
36753 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
36754 wxString *arg4 = (wxString *) &arg4_defvalue ;
36755 wxPoint const &arg5_defvalue = wxDefaultPosition ;
36756 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
36757 wxSize const &arg6_defvalue = wxDefaultSize ;
36758 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
36759 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
36760 wxString const &arg8_defvalue = wxPyEmptyString ;
36761 wxString *arg8 = (wxString *) &arg8_defvalue ;
36762 int arg9 = (int) 0 ;
36763 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
36764 wxString *arg10 = (wxString *) &arg10_defvalue ;
36765 bool result;
36766 void *argp1 = 0 ;
36767 int res1 = 0 ;
36768 void *argp2 = 0 ;
36769 int res2 = 0 ;
36770 int val3 ;
36771 int ecode3 = 0 ;
36772 bool temp4 = false ;
36773 wxPoint temp5 ;
36774 wxSize temp6 ;
36775 long val7 ;
36776 int ecode7 = 0 ;
36777 bool temp8 = false ;
36778 int val9 ;
36779 int ecode9 = 0 ;
36780 bool temp10 = false ;
36781 PyObject * obj0 = 0 ;
36782 PyObject * obj1 = 0 ;
36783 PyObject * obj2 = 0 ;
36784 PyObject * obj3 = 0 ;
36785 PyObject * obj4 = 0 ;
36786 PyObject * obj5 = 0 ;
36787 PyObject * obj6 = 0 ;
36788 PyObject * obj7 = 0 ;
36789 PyObject * obj8 = 0 ;
36790 PyObject * obj9 = 0 ;
36791 char * kwnames[] = {
36792 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
36793 };
36794
36795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
36796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
36797 if (!SWIG_IsOK(res1)) {
36798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
36799 }
36800 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
36801 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
36802 if (!SWIG_IsOK(res2)) {
36803 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
36804 }
36805 arg2 = reinterpret_cast< wxWindow * >(argp2);
36806 if (obj2) {
36807 ecode3 = SWIG_AsVal_int(obj2, &val3);
36808 if (!SWIG_IsOK(ecode3)) {
36809 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
36810 }
36811 arg3 = static_cast< int >(val3);
36812 }
36813 if (obj3) {
36814 {
36815 arg4 = wxString_in_helper(obj3);
36816 if (arg4 == NULL) SWIG_fail;
36817 temp4 = true;
36818 }
36819 }
36820 if (obj4) {
36821 {
36822 arg5 = &temp5;
36823 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36824 }
36825 }
36826 if (obj5) {
36827 {
36828 arg6 = &temp6;
36829 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
36830 }
36831 }
36832 if (obj6) {
36833 ecode7 = SWIG_AsVal_long(obj6, &val7);
36834 if (!SWIG_IsOK(ecode7)) {
36835 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
36836 }
36837 arg7 = static_cast< long >(val7);
36838 }
36839 if (obj7) {
36840 {
36841 arg8 = wxString_in_helper(obj7);
36842 if (arg8 == NULL) SWIG_fail;
36843 temp8 = true;
36844 }
36845 }
36846 if (obj8) {
36847 ecode9 = SWIG_AsVal_int(obj8, &val9);
36848 if (!SWIG_IsOK(ecode9)) {
36849 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
36850 }
36851 arg9 = static_cast< int >(val9);
36852 }
36853 if (obj9) {
36854 {
36855 arg10 = wxString_in_helper(obj9);
36856 if (arg10 == NULL) SWIG_fail;
36857 temp10 = true;
36858 }
36859 }
36860 {
36861 PyThreadState* __tstate = wxPyBeginAllowThreads();
36862 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
36863 wxPyEndAllowThreads(__tstate);
36864 if (PyErr_Occurred()) SWIG_fail;
36865 }
36866 {
36867 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36868 }
36869 {
36870 if (temp4)
36871 delete arg4;
36872 }
36873 {
36874 if (temp8)
36875 delete arg8;
36876 }
36877 {
36878 if (temp10)
36879 delete arg10;
36880 }
36881 return resultobj;
36882 fail:
36883 {
36884 if (temp4)
36885 delete arg4;
36886 }
36887 {
36888 if (temp8)
36889 delete arg8;
36890 }
36891 {
36892 if (temp10)
36893 delete arg10;
36894 }
36895 return NULL;
36896 }
36897
36898
36899 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36900 PyObject *resultobj = 0;
36901 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36902 wxString *arg2 = 0 ;
36903 bool result;
36904 void *argp1 = 0 ;
36905 int res1 = 0 ;
36906 bool temp2 = false ;
36907 PyObject * obj0 = 0 ;
36908 PyObject * obj1 = 0 ;
36909 char * kwnames[] = {
36910 (char *) "self",(char *) "path", NULL
36911 };
36912
36913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
36914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
36915 if (!SWIG_IsOK(res1)) {
36916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
36917 }
36918 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
36919 {
36920 arg2 = wxString_in_helper(obj1);
36921 if (arg2 == NULL) SWIG_fail;
36922 temp2 = true;
36923 }
36924 {
36925 PyThreadState* __tstate = wxPyBeginAllowThreads();
36926 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
36927 wxPyEndAllowThreads(__tstate);
36928 if (PyErr_Occurred()) SWIG_fail;
36929 }
36930 {
36931 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36932 }
36933 {
36934 if (temp2)
36935 delete arg2;
36936 }
36937 return resultobj;
36938 fail:
36939 {
36940 if (temp2)
36941 delete arg2;
36942 }
36943 return NULL;
36944 }
36945
36946
36947 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36948 PyObject *resultobj = 0;
36949 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36950 wxString result;
36951 void *argp1 = 0 ;
36952 int res1 = 0 ;
36953 PyObject *swig_obj[1] ;
36954
36955 if (!args) SWIG_fail;
36956 swig_obj[0] = args;
36957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
36958 if (!SWIG_IsOK(res1)) {
36959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
36960 }
36961 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
36962 {
36963 PyThreadState* __tstate = wxPyBeginAllowThreads();
36964 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
36965 wxPyEndAllowThreads(__tstate);
36966 if (PyErr_Occurred()) SWIG_fail;
36967 }
36968 {
36969 #if wxUSE_UNICODE
36970 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36971 #else
36972 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36973 #endif
36974 }
36975 return resultobj;
36976 fail:
36977 return NULL;
36978 }
36979
36980
36981 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36982 PyObject *resultobj = 0;
36983 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36984 wxString *arg2 = 0 ;
36985 void *argp1 = 0 ;
36986 int res1 = 0 ;
36987 bool temp2 = false ;
36988 PyObject * obj0 = 0 ;
36989 PyObject * obj1 = 0 ;
36990 char * kwnames[] = {
36991 (char *) "self",(char *) "path", NULL
36992 };
36993
36994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
36995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
36996 if (!SWIG_IsOK(res1)) {
36997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
36998 }
36999 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37000 {
37001 arg2 = wxString_in_helper(obj1);
37002 if (arg2 == NULL) SWIG_fail;
37003 temp2 = true;
37004 }
37005 {
37006 PyThreadState* __tstate = wxPyBeginAllowThreads();
37007 (arg1)->SetDefaultPath((wxString const &)*arg2);
37008 wxPyEndAllowThreads(__tstate);
37009 if (PyErr_Occurred()) SWIG_fail;
37010 }
37011 resultobj = SWIG_Py_Void();
37012 {
37013 if (temp2)
37014 delete arg2;
37015 }
37016 return resultobj;
37017 fail:
37018 {
37019 if (temp2)
37020 delete arg2;
37021 }
37022 return NULL;
37023 }
37024
37025
37026 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37027 PyObject *resultobj = 0;
37028 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37029 wxString result;
37030 void *argp1 = 0 ;
37031 int res1 = 0 ;
37032 PyObject *swig_obj[1] ;
37033
37034 if (!args) SWIG_fail;
37035 swig_obj[0] = args;
37036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37037 if (!SWIG_IsOK(res1)) {
37038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37039 }
37040 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37041 {
37042 PyThreadState* __tstate = wxPyBeginAllowThreads();
37043 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37044 wxPyEndAllowThreads(__tstate);
37045 if (PyErr_Occurred()) SWIG_fail;
37046 }
37047 {
37048 #if wxUSE_UNICODE
37049 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37050 #else
37051 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37052 #endif
37053 }
37054 return resultobj;
37055 fail:
37056 return NULL;
37057 }
37058
37059
37060 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37061 PyObject *resultobj = 0;
37062 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37063 wxString result;
37064 void *argp1 = 0 ;
37065 int res1 = 0 ;
37066 PyObject *swig_obj[1] ;
37067
37068 if (!args) SWIG_fail;
37069 swig_obj[0] = args;
37070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37071 if (!SWIG_IsOK(res1)) {
37072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37073 }
37074 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37075 {
37076 PyThreadState* __tstate = wxPyBeginAllowThreads();
37077 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37078 wxPyEndAllowThreads(__tstate);
37079 if (PyErr_Occurred()) SWIG_fail;
37080 }
37081 {
37082 #if wxUSE_UNICODE
37083 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37084 #else
37085 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37086 #endif
37087 }
37088 return resultobj;
37089 fail:
37090 return NULL;
37091 }
37092
37093
37094 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37095 PyObject *resultobj = 0;
37096 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37097 wxString *arg2 = 0 ;
37098 void *argp1 = 0 ;
37099 int res1 = 0 ;
37100 bool temp2 = false ;
37101 PyObject * obj0 = 0 ;
37102 PyObject * obj1 = 0 ;
37103 char * kwnames[] = {
37104 (char *) "self",(char *) "path", NULL
37105 };
37106
37107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37109 if (!SWIG_IsOK(res1)) {
37110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37111 }
37112 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37113 {
37114 arg2 = wxString_in_helper(obj1);
37115 if (arg2 == NULL) SWIG_fail;
37116 temp2 = true;
37117 }
37118 {
37119 PyThreadState* __tstate = wxPyBeginAllowThreads();
37120 (arg1)->SetPath((wxString const &)*arg2);
37121 wxPyEndAllowThreads(__tstate);
37122 if (PyErr_Occurred()) SWIG_fail;
37123 }
37124 resultobj = SWIG_Py_Void();
37125 {
37126 if (temp2)
37127 delete arg2;
37128 }
37129 return resultobj;
37130 fail:
37131 {
37132 if (temp2)
37133 delete arg2;
37134 }
37135 return NULL;
37136 }
37137
37138
37139 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37140 PyObject *resultobj = 0;
37141 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37142 bool arg2 ;
37143 void *argp1 = 0 ;
37144 int res1 = 0 ;
37145 bool val2 ;
37146 int ecode2 = 0 ;
37147 PyObject * obj0 = 0 ;
37148 PyObject * obj1 = 0 ;
37149 char * kwnames[] = {
37150 (char *) "self",(char *) "show", NULL
37151 };
37152
37153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37155 if (!SWIG_IsOK(res1)) {
37156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37157 }
37158 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37159 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37160 if (!SWIG_IsOK(ecode2)) {
37161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
37162 }
37163 arg2 = static_cast< bool >(val2);
37164 {
37165 PyThreadState* __tstate = wxPyBeginAllowThreads();
37166 (arg1)->ShowHidden(arg2);
37167 wxPyEndAllowThreads(__tstate);
37168 if (PyErr_Occurred()) SWIG_fail;
37169 }
37170 resultobj = SWIG_Py_Void();
37171 return resultobj;
37172 fail:
37173 return NULL;
37174 }
37175
37176
37177 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37178 PyObject *resultobj = 0;
37179 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37180 bool result;
37181 void *argp1 = 0 ;
37182 int res1 = 0 ;
37183 PyObject *swig_obj[1] ;
37184
37185 if (!args) SWIG_fail;
37186 swig_obj[0] = args;
37187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37188 if (!SWIG_IsOK(res1)) {
37189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37190 }
37191 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37192 {
37193 PyThreadState* __tstate = wxPyBeginAllowThreads();
37194 result = (bool)(arg1)->GetShowHidden();
37195 wxPyEndAllowThreads(__tstate);
37196 if (PyErr_Occurred()) SWIG_fail;
37197 }
37198 {
37199 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37200 }
37201 return resultobj;
37202 fail:
37203 return NULL;
37204 }
37205
37206
37207 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37208 PyObject *resultobj = 0;
37209 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37210 wxString result;
37211 void *argp1 = 0 ;
37212 int res1 = 0 ;
37213 PyObject *swig_obj[1] ;
37214
37215 if (!args) SWIG_fail;
37216 swig_obj[0] = args;
37217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37218 if (!SWIG_IsOK(res1)) {
37219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37220 }
37221 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37222 {
37223 PyThreadState* __tstate = wxPyBeginAllowThreads();
37224 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
37225 wxPyEndAllowThreads(__tstate);
37226 if (PyErr_Occurred()) SWIG_fail;
37227 }
37228 {
37229 #if wxUSE_UNICODE
37230 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37231 #else
37232 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37233 #endif
37234 }
37235 return resultobj;
37236 fail:
37237 return NULL;
37238 }
37239
37240
37241 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37242 PyObject *resultobj = 0;
37243 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37244 wxString *arg2 = 0 ;
37245 void *argp1 = 0 ;
37246 int res1 = 0 ;
37247 bool temp2 = false ;
37248 PyObject * obj0 = 0 ;
37249 PyObject * obj1 = 0 ;
37250 char * kwnames[] = {
37251 (char *) "self",(char *) "filter", NULL
37252 };
37253
37254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
37255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37256 if (!SWIG_IsOK(res1)) {
37257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37258 }
37259 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37260 {
37261 arg2 = wxString_in_helper(obj1);
37262 if (arg2 == NULL) SWIG_fail;
37263 temp2 = true;
37264 }
37265 {
37266 PyThreadState* __tstate = wxPyBeginAllowThreads();
37267 (arg1)->SetFilter((wxString const &)*arg2);
37268 wxPyEndAllowThreads(__tstate);
37269 if (PyErr_Occurred()) SWIG_fail;
37270 }
37271 resultobj = SWIG_Py_Void();
37272 {
37273 if (temp2)
37274 delete arg2;
37275 }
37276 return resultobj;
37277 fail:
37278 {
37279 if (temp2)
37280 delete arg2;
37281 }
37282 return NULL;
37283 }
37284
37285
37286 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37287 PyObject *resultobj = 0;
37288 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37289 int result;
37290 void *argp1 = 0 ;
37291 int res1 = 0 ;
37292 PyObject *swig_obj[1] ;
37293
37294 if (!args) SWIG_fail;
37295 swig_obj[0] = args;
37296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37297 if (!SWIG_IsOK(res1)) {
37298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37299 }
37300 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37301 {
37302 PyThreadState* __tstate = wxPyBeginAllowThreads();
37303 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
37304 wxPyEndAllowThreads(__tstate);
37305 if (PyErr_Occurred()) SWIG_fail;
37306 }
37307 resultobj = SWIG_From_int(static_cast< int >(result));
37308 return resultobj;
37309 fail:
37310 return NULL;
37311 }
37312
37313
37314 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37315 PyObject *resultobj = 0;
37316 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37317 int arg2 ;
37318 void *argp1 = 0 ;
37319 int res1 = 0 ;
37320 int val2 ;
37321 int ecode2 = 0 ;
37322 PyObject * obj0 = 0 ;
37323 PyObject * obj1 = 0 ;
37324 char * kwnames[] = {
37325 (char *) "self",(char *) "n", NULL
37326 };
37327
37328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
37329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37330 if (!SWIG_IsOK(res1)) {
37331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37332 }
37333 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37334 ecode2 = SWIG_AsVal_int(obj1, &val2);
37335 if (!SWIG_IsOK(ecode2)) {
37336 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
37337 }
37338 arg2 = static_cast< int >(val2);
37339 {
37340 PyThreadState* __tstate = wxPyBeginAllowThreads();
37341 (arg1)->SetFilterIndex(arg2);
37342 wxPyEndAllowThreads(__tstate);
37343 if (PyErr_Occurred()) SWIG_fail;
37344 }
37345 resultobj = SWIG_Py_Void();
37346 return resultobj;
37347 fail:
37348 return NULL;
37349 }
37350
37351
37352 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37353 PyObject *resultobj = 0;
37354 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37355 wxTreeItemId result;
37356 void *argp1 = 0 ;
37357 int res1 = 0 ;
37358 PyObject *swig_obj[1] ;
37359
37360 if (!args) SWIG_fail;
37361 swig_obj[0] = args;
37362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37363 if (!SWIG_IsOK(res1)) {
37364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37365 }
37366 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37367 {
37368 PyThreadState* __tstate = wxPyBeginAllowThreads();
37369 result = (arg1)->GetRootId();
37370 wxPyEndAllowThreads(__tstate);
37371 if (PyErr_Occurred()) SWIG_fail;
37372 }
37373 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37374 return resultobj;
37375 fail:
37376 return NULL;
37377 }
37378
37379
37380 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37381 PyObject *resultobj = 0;
37382 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37383 wxPyTreeCtrl *result = 0 ;
37384 void *argp1 = 0 ;
37385 int res1 = 0 ;
37386 PyObject *swig_obj[1] ;
37387
37388 if (!args) SWIG_fail;
37389 swig_obj[0] = args;
37390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37391 if (!SWIG_IsOK(res1)) {
37392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37393 }
37394 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37395 {
37396 PyThreadState* __tstate = wxPyBeginAllowThreads();
37397 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
37398 wxPyEndAllowThreads(__tstate);
37399 if (PyErr_Occurred()) SWIG_fail;
37400 }
37401 {
37402 resultobj = wxPyMake_wxObject(result, 0);
37403 }
37404 return resultobj;
37405 fail:
37406 return NULL;
37407 }
37408
37409
37410 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37411 PyObject *resultobj = 0;
37412 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37413 wxDirFilterListCtrl *result = 0 ;
37414 void *argp1 = 0 ;
37415 int res1 = 0 ;
37416 PyObject *swig_obj[1] ;
37417
37418 if (!args) SWIG_fail;
37419 swig_obj[0] = args;
37420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37421 if (!SWIG_IsOK(res1)) {
37422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37423 }
37424 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37425 {
37426 PyThreadState* __tstate = wxPyBeginAllowThreads();
37427 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
37428 wxPyEndAllowThreads(__tstate);
37429 if (PyErr_Occurred()) SWIG_fail;
37430 }
37431 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37432 return resultobj;
37433 fail:
37434 return NULL;
37435 }
37436
37437
37438 SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37439 PyObject *resultobj = 0;
37440 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37441 wxTreeItemId arg2 ;
37442 wxString *arg3 = 0 ;
37443 bool *arg4 = 0 ;
37444 wxTreeItemId result;
37445 void *argp1 = 0 ;
37446 int res1 = 0 ;
37447 void *argp2 ;
37448 int res2 = 0 ;
37449 bool temp3 = false ;
37450 bool temp4 ;
37451 int res4 = SWIG_TMPOBJ ;
37452 PyObject * obj0 = 0 ;
37453 PyObject * obj1 = 0 ;
37454 PyObject * obj2 = 0 ;
37455 char * kwnames[] = {
37456 (char *) "self",(char *) "parentId",(char *) "path", NULL
37457 };
37458
37459 arg4 = &temp4;
37460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37462 if (!SWIG_IsOK(res1)) {
37463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37464 }
37465 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37466 {
37467 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37468 if (!SWIG_IsOK(res2)) {
37469 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
37470 }
37471 if (!argp2) {
37472 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
37473 } else {
37474 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
37475 arg2 = *temp;
37476 if (SWIG_IsNewObj(res2)) delete temp;
37477 }
37478 }
37479 {
37480 arg3 = wxString_in_helper(obj2);
37481 if (arg3 == NULL) SWIG_fail;
37482 temp3 = true;
37483 }
37484 {
37485 PyThreadState* __tstate = wxPyBeginAllowThreads();
37486 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
37487 wxPyEndAllowThreads(__tstate);
37488 if (PyErr_Occurred()) SWIG_fail;
37489 }
37490 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37491 if (SWIG_IsTmpObj(res4)) {
37492 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
37493 } else {
37494 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37495 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
37496 }
37497 {
37498 if (temp3)
37499 delete arg3;
37500 }
37501 return resultobj;
37502 fail:
37503 {
37504 if (temp3)
37505 delete arg3;
37506 }
37507 return NULL;
37508 }
37509
37510
37511 SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37512 PyObject *resultobj = 0;
37513 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37514 void *argp1 = 0 ;
37515 int res1 = 0 ;
37516 PyObject *swig_obj[1] ;
37517
37518 if (!args) SWIG_fail;
37519 swig_obj[0] = args;
37520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37521 if (!SWIG_IsOK(res1)) {
37522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37523 }
37524 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37525 {
37526 PyThreadState* __tstate = wxPyBeginAllowThreads();
37527 (arg1)->DoResize();
37528 wxPyEndAllowThreads(__tstate);
37529 if (PyErr_Occurred()) SWIG_fail;
37530 }
37531 resultobj = SWIG_Py_Void();
37532 return resultobj;
37533 fail:
37534 return NULL;
37535 }
37536
37537
37538 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37539 PyObject *resultobj = 0;
37540 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37541 void *argp1 = 0 ;
37542 int res1 = 0 ;
37543 PyObject *swig_obj[1] ;
37544
37545 if (!args) SWIG_fail;
37546 swig_obj[0] = args;
37547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37548 if (!SWIG_IsOK(res1)) {
37549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37550 }
37551 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37552 {
37553 PyThreadState* __tstate = wxPyBeginAllowThreads();
37554 (arg1)->ReCreateTree();
37555 wxPyEndAllowThreads(__tstate);
37556 if (PyErr_Occurred()) SWIG_fail;
37557 }
37558 resultobj = SWIG_Py_Void();
37559 return resultobj;
37560 fail:
37561 return NULL;
37562 }
37563
37564
37565 SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37566 PyObject *obj;
37567 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37568 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
37569 return SWIG_Py_Void();
37570 }
37571
37572 SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37573 return SWIG_Python_InitShadowInstance(args);
37574 }
37575
37576 SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37577 PyObject *resultobj = 0;
37578 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37579 int arg2 = (int) (int)-1 ;
37580 wxPoint const &arg3_defvalue = wxDefaultPosition ;
37581 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
37582 wxSize const &arg4_defvalue = wxDefaultSize ;
37583 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
37584 long arg5 = (long) 0 ;
37585 wxDirFilterListCtrl *result = 0 ;
37586 void *argp1 = 0 ;
37587 int res1 = 0 ;
37588 int val2 ;
37589 int ecode2 = 0 ;
37590 wxPoint temp3 ;
37591 wxSize temp4 ;
37592 long val5 ;
37593 int ecode5 = 0 ;
37594 PyObject * obj0 = 0 ;
37595 PyObject * obj1 = 0 ;
37596 PyObject * obj2 = 0 ;
37597 PyObject * obj3 = 0 ;
37598 PyObject * obj4 = 0 ;
37599 char * kwnames[] = {
37600 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
37601 };
37602
37603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37605 if (!SWIG_IsOK(res1)) {
37606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37607 }
37608 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37609 if (obj1) {
37610 ecode2 = SWIG_AsVal_int(obj1, &val2);
37611 if (!SWIG_IsOK(ecode2)) {
37612 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
37613 }
37614 arg2 = static_cast< int >(val2);
37615 }
37616 if (obj2) {
37617 {
37618 arg3 = &temp3;
37619 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37620 }
37621 }
37622 if (obj3) {
37623 {
37624 arg4 = &temp4;
37625 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
37626 }
37627 }
37628 if (obj4) {
37629 ecode5 = SWIG_AsVal_long(obj4, &val5);
37630 if (!SWIG_IsOK(ecode5)) {
37631 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
37632 }
37633 arg5 = static_cast< long >(val5);
37634 }
37635 {
37636 if (!wxPyCheckForApp()) SWIG_fail;
37637 PyThreadState* __tstate = wxPyBeginAllowThreads();
37638 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
37639 wxPyEndAllowThreads(__tstate);
37640 if (PyErr_Occurred()) SWIG_fail;
37641 }
37642 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
37643 return resultobj;
37644 fail:
37645 return NULL;
37646 }
37647
37648
37649 SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37650 PyObject *resultobj = 0;
37651 wxDirFilterListCtrl *result = 0 ;
37652
37653 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
37654 {
37655 if (!wxPyCheckForApp()) SWIG_fail;
37656 PyThreadState* __tstate = wxPyBeginAllowThreads();
37657 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
37658 wxPyEndAllowThreads(__tstate);
37659 if (PyErr_Occurred()) SWIG_fail;
37660 }
37661 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
37662 return resultobj;
37663 fail:
37664 return NULL;
37665 }
37666
37667
37668 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37669 PyObject *resultobj = 0;
37670 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
37671 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
37672 int arg3 = (int) (int)-1 ;
37673 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37674 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37675 wxSize const &arg5_defvalue = wxDefaultSize ;
37676 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37677 long arg6 = (long) 0 ;
37678 bool result;
37679 void *argp1 = 0 ;
37680 int res1 = 0 ;
37681 void *argp2 = 0 ;
37682 int res2 = 0 ;
37683 int val3 ;
37684 int ecode3 = 0 ;
37685 wxPoint temp4 ;
37686 wxSize temp5 ;
37687 long val6 ;
37688 int ecode6 = 0 ;
37689 PyObject * obj0 = 0 ;
37690 PyObject * obj1 = 0 ;
37691 PyObject * obj2 = 0 ;
37692 PyObject * obj3 = 0 ;
37693 PyObject * obj4 = 0 ;
37694 PyObject * obj5 = 0 ;
37695 char * kwnames[] = {
37696 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
37697 };
37698
37699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37701 if (!SWIG_IsOK(res1)) {
37702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
37703 }
37704 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
37705 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37706 if (!SWIG_IsOK(res2)) {
37707 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
37708 }
37709 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
37710 if (obj2) {
37711 ecode3 = SWIG_AsVal_int(obj2, &val3);
37712 if (!SWIG_IsOK(ecode3)) {
37713 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37714 }
37715 arg3 = static_cast< int >(val3);
37716 }
37717 if (obj3) {
37718 {
37719 arg4 = &temp4;
37720 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37721 }
37722 }
37723 if (obj4) {
37724 {
37725 arg5 = &temp5;
37726 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
37727 }
37728 }
37729 if (obj5) {
37730 ecode6 = SWIG_AsVal_long(obj5, &val6);
37731 if (!SWIG_IsOK(ecode6)) {
37732 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
37733 }
37734 arg6 = static_cast< long >(val6);
37735 }
37736 {
37737 PyThreadState* __tstate = wxPyBeginAllowThreads();
37738 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
37739 wxPyEndAllowThreads(__tstate);
37740 if (PyErr_Occurred()) SWIG_fail;
37741 }
37742 {
37743 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37744 }
37745 return resultobj;
37746 fail:
37747 return NULL;
37748 }
37749
37750
37751 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37752 PyObject *resultobj = 0;
37753 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
37754 wxString *arg2 = 0 ;
37755 int arg3 ;
37756 void *argp1 = 0 ;
37757 int res1 = 0 ;
37758 bool temp2 = false ;
37759 int val3 ;
37760 int ecode3 = 0 ;
37761 PyObject * obj0 = 0 ;
37762 PyObject * obj1 = 0 ;
37763 PyObject * obj2 = 0 ;
37764 char * kwnames[] = {
37765 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
37766 };
37767
37768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37770 if (!SWIG_IsOK(res1)) {
37771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
37772 }
37773 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
37774 {
37775 arg2 = wxString_in_helper(obj1);
37776 if (arg2 == NULL) SWIG_fail;
37777 temp2 = true;
37778 }
37779 ecode3 = SWIG_AsVal_int(obj2, &val3);
37780 if (!SWIG_IsOK(ecode3)) {
37781 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
37782 }
37783 arg3 = static_cast< int >(val3);
37784 {
37785 PyThreadState* __tstate = wxPyBeginAllowThreads();
37786 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
37787 wxPyEndAllowThreads(__tstate);
37788 if (PyErr_Occurred()) SWIG_fail;
37789 }
37790 resultobj = SWIG_Py_Void();
37791 {
37792 if (temp2)
37793 delete arg2;
37794 }
37795 return resultobj;
37796 fail:
37797 {
37798 if (temp2)
37799 delete arg2;
37800 }
37801 return NULL;
37802 }
37803
37804
37805 SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37806 PyObject *obj;
37807 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37808 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
37809 return SWIG_Py_Void();
37810 }
37811
37812 SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37813 return SWIG_Python_InitShadowInstance(args);
37814 }
37815
37816 SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37817 PyObject *resultobj = 0;
37818 wxWindow *arg1 = (wxWindow *) 0 ;
37819 int arg2 = (int) (int)-1 ;
37820 wxPoint const &arg3_defvalue = wxDefaultPosition ;
37821 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
37822 wxSize const &arg4_defvalue = wxDefaultSize ;
37823 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
37824 long arg5 = (long) 0 ;
37825 wxValidator const &arg6_defvalue = wxDefaultValidator ;
37826 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
37827 wxString const &arg7_defvalue = wxPyControlNameStr ;
37828 wxString *arg7 = (wxString *) &arg7_defvalue ;
37829 wxPyControl *result = 0 ;
37830 void *argp1 = 0 ;
37831 int res1 = 0 ;
37832 int val2 ;
37833 int ecode2 = 0 ;
37834 wxPoint temp3 ;
37835 wxSize temp4 ;
37836 long val5 ;
37837 int ecode5 = 0 ;
37838 void *argp6 = 0 ;
37839 int res6 = 0 ;
37840 bool temp7 = false ;
37841 PyObject * obj0 = 0 ;
37842 PyObject * obj1 = 0 ;
37843 PyObject * obj2 = 0 ;
37844 PyObject * obj3 = 0 ;
37845 PyObject * obj4 = 0 ;
37846 PyObject * obj5 = 0 ;
37847 PyObject * obj6 = 0 ;
37848 char * kwnames[] = {
37849 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
37850 };
37851
37852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
37853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37854 if (!SWIG_IsOK(res1)) {
37855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
37856 }
37857 arg1 = reinterpret_cast< wxWindow * >(argp1);
37858 if (obj1) {
37859 ecode2 = SWIG_AsVal_int(obj1, &val2);
37860 if (!SWIG_IsOK(ecode2)) {
37861 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
37862 }
37863 arg2 = static_cast< int >(val2);
37864 }
37865 if (obj2) {
37866 {
37867 arg3 = &temp3;
37868 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37869 }
37870 }
37871 if (obj3) {
37872 {
37873 arg4 = &temp4;
37874 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
37875 }
37876 }
37877 if (obj4) {
37878 ecode5 = SWIG_AsVal_long(obj4, &val5);
37879 if (!SWIG_IsOK(ecode5)) {
37880 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
37881 }
37882 arg5 = static_cast< long >(val5);
37883 }
37884 if (obj5) {
37885 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
37886 if (!SWIG_IsOK(res6)) {
37887 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
37888 }
37889 if (!argp6) {
37890 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
37891 }
37892 arg6 = reinterpret_cast< wxValidator * >(argp6);
37893 }
37894 if (obj6) {
37895 {
37896 arg7 = wxString_in_helper(obj6);
37897 if (arg7 == NULL) SWIG_fail;
37898 temp7 = true;
37899 }
37900 }
37901 {
37902 if (!wxPyCheckForApp()) SWIG_fail;
37903 PyThreadState* __tstate = wxPyBeginAllowThreads();
37904 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
37905 wxPyEndAllowThreads(__tstate);
37906 if (PyErr_Occurred()) SWIG_fail;
37907 }
37908 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
37909 {
37910 if (temp7)
37911 delete arg7;
37912 }
37913 return resultobj;
37914 fail:
37915 {
37916 if (temp7)
37917 delete arg7;
37918 }
37919 return NULL;
37920 }
37921
37922
37923 SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37924 PyObject *resultobj = 0;
37925 wxPyControl *result = 0 ;
37926
37927 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
37928 {
37929 if (!wxPyCheckForApp()) SWIG_fail;
37930 PyThreadState* __tstate = wxPyBeginAllowThreads();
37931 result = (wxPyControl *)new wxPyControl();
37932 wxPyEndAllowThreads(__tstate);
37933 if (PyErr_Occurred()) SWIG_fail;
37934 }
37935 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
37936 return resultobj;
37937 fail:
37938 return NULL;
37939 }
37940
37941
37942 SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37943 PyObject *resultobj = 0;
37944 wxPyControl *arg1 = (wxPyControl *) 0 ;
37945 PyObject *arg2 = (PyObject *) 0 ;
37946 PyObject *arg3 = (PyObject *) 0 ;
37947 void *argp1 = 0 ;
37948 int res1 = 0 ;
37949 PyObject * obj0 = 0 ;
37950 PyObject * obj1 = 0 ;
37951 PyObject * obj2 = 0 ;
37952 char * kwnames[] = {
37953 (char *) "self",(char *) "self",(char *) "_class", NULL
37954 };
37955
37956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
37958 if (!SWIG_IsOK(res1)) {
37959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
37960 }
37961 arg1 = reinterpret_cast< wxPyControl * >(argp1);
37962 arg2 = obj1;
37963 arg3 = obj2;
37964 {
37965 PyThreadState* __tstate = wxPyBeginAllowThreads();
37966 (arg1)->_setCallbackInfo(arg2,arg3);
37967 wxPyEndAllowThreads(__tstate);
37968 if (PyErr_Occurred()) SWIG_fail;
37969 }
37970 resultobj = SWIG_Py_Void();
37971 return resultobj;
37972 fail:
37973 return NULL;
37974 }
37975
37976
37977 SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37978 PyObject *resultobj = 0;
37979 wxPyControl *arg1 = (wxPyControl *) 0 ;
37980 wxSize *arg2 = 0 ;
37981 void *argp1 = 0 ;
37982 int res1 = 0 ;
37983 wxSize temp2 ;
37984 PyObject * obj0 = 0 ;
37985 PyObject * obj1 = 0 ;
37986 char * kwnames[] = {
37987 (char *) "self",(char *) "size", NULL
37988 };
37989
37990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
37992 if (!SWIG_IsOK(res1)) {
37993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
37994 }
37995 arg1 = reinterpret_cast< wxPyControl * >(argp1);
37996 {
37997 arg2 = &temp2;
37998 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
37999 }
38000 {
38001 PyThreadState* __tstate = wxPyBeginAllowThreads();
38002 (arg1)->SetBestSize((wxSize const &)*arg2);
38003 wxPyEndAllowThreads(__tstate);
38004 if (PyErr_Occurred()) SWIG_fail;
38005 }
38006 resultobj = SWIG_Py_Void();
38007 return resultobj;
38008 fail:
38009 return NULL;
38010 }
38011
38012
38013 SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38014 PyObject *resultobj = 0;
38015 wxPyControl *arg1 = (wxPyControl *) 0 ;
38016 wxDC *arg2 = (wxDC *) 0 ;
38017 bool result;
38018 void *argp1 = 0 ;
38019 int res1 = 0 ;
38020 void *argp2 = 0 ;
38021 int res2 = 0 ;
38022 PyObject * obj0 = 0 ;
38023 PyObject * obj1 = 0 ;
38024 char * kwnames[] = {
38025 (char *) "self",(char *) "dc", NULL
38026 };
38027
38028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38030 if (!SWIG_IsOK(res1)) {
38031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38032 }
38033 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38034 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38035 if (!SWIG_IsOK(res2)) {
38036 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38037 }
38038 arg2 = reinterpret_cast< wxDC * >(argp2);
38039 {
38040 PyThreadState* __tstate = wxPyBeginAllowThreads();
38041 result = (bool)(arg1)->DoEraseBackground(arg2);
38042 wxPyEndAllowThreads(__tstate);
38043 if (PyErr_Occurred()) SWIG_fail;
38044 }
38045 {
38046 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38047 }
38048 return resultobj;
38049 fail:
38050 return NULL;
38051 }
38052
38053
38054 SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38055 PyObject *resultobj = 0;
38056 wxPyControl *arg1 = (wxPyControl *) 0 ;
38057 int arg2 ;
38058 int arg3 ;
38059 int arg4 ;
38060 int arg5 ;
38061 void *argp1 = 0 ;
38062 int res1 = 0 ;
38063 int val2 ;
38064 int ecode2 = 0 ;
38065 int val3 ;
38066 int ecode3 = 0 ;
38067 int val4 ;
38068 int ecode4 = 0 ;
38069 int val5 ;
38070 int ecode5 = 0 ;
38071 PyObject * obj0 = 0 ;
38072 PyObject * obj1 = 0 ;
38073 PyObject * obj2 = 0 ;
38074 PyObject * obj3 = 0 ;
38075 PyObject * obj4 = 0 ;
38076 char * kwnames[] = {
38077 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38078 };
38079
38080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38082 if (!SWIG_IsOK(res1)) {
38083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38084 }
38085 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38086 ecode2 = SWIG_AsVal_int(obj1, &val2);
38087 if (!SWIG_IsOK(ecode2)) {
38088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38089 }
38090 arg2 = static_cast< int >(val2);
38091 ecode3 = SWIG_AsVal_int(obj2, &val3);
38092 if (!SWIG_IsOK(ecode3)) {
38093 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38094 }
38095 arg3 = static_cast< int >(val3);
38096 ecode4 = SWIG_AsVal_int(obj3, &val4);
38097 if (!SWIG_IsOK(ecode4)) {
38098 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38099 }
38100 arg4 = static_cast< int >(val4);
38101 ecode5 = SWIG_AsVal_int(obj4, &val5);
38102 if (!SWIG_IsOK(ecode5)) {
38103 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38104 }
38105 arg5 = static_cast< int >(val5);
38106 {
38107 PyThreadState* __tstate = wxPyBeginAllowThreads();
38108 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38109 wxPyEndAllowThreads(__tstate);
38110 if (PyErr_Occurred()) SWIG_fail;
38111 }
38112 resultobj = SWIG_Py_Void();
38113 return resultobj;
38114 fail:
38115 return NULL;
38116 }
38117
38118
38119 SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38120 PyObject *resultobj = 0;
38121 wxPyControl *arg1 = (wxPyControl *) 0 ;
38122 int arg2 ;
38123 int arg3 ;
38124 int arg4 ;
38125 int arg5 ;
38126 int arg6 = (int) wxSIZE_AUTO ;
38127 void *argp1 = 0 ;
38128 int res1 = 0 ;
38129 int val2 ;
38130 int ecode2 = 0 ;
38131 int val3 ;
38132 int ecode3 = 0 ;
38133 int val4 ;
38134 int ecode4 = 0 ;
38135 int val5 ;
38136 int ecode5 = 0 ;
38137 int val6 ;
38138 int ecode6 = 0 ;
38139 PyObject * obj0 = 0 ;
38140 PyObject * obj1 = 0 ;
38141 PyObject * obj2 = 0 ;
38142 PyObject * obj3 = 0 ;
38143 PyObject * obj4 = 0 ;
38144 PyObject * obj5 = 0 ;
38145 char * kwnames[] = {
38146 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38147 };
38148
38149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38151 if (!SWIG_IsOK(res1)) {
38152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38153 }
38154 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38155 ecode2 = SWIG_AsVal_int(obj1, &val2);
38156 if (!SWIG_IsOK(ecode2)) {
38157 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38158 }
38159 arg2 = static_cast< int >(val2);
38160 ecode3 = SWIG_AsVal_int(obj2, &val3);
38161 if (!SWIG_IsOK(ecode3)) {
38162 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38163 }
38164 arg3 = static_cast< int >(val3);
38165 ecode4 = SWIG_AsVal_int(obj3, &val4);
38166 if (!SWIG_IsOK(ecode4)) {
38167 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
38168 }
38169 arg4 = static_cast< int >(val4);
38170 ecode5 = SWIG_AsVal_int(obj4, &val5);
38171 if (!SWIG_IsOK(ecode5)) {
38172 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
38173 }
38174 arg5 = static_cast< int >(val5);
38175 if (obj5) {
38176 ecode6 = SWIG_AsVal_int(obj5, &val6);
38177 if (!SWIG_IsOK(ecode6)) {
38178 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
38179 }
38180 arg6 = static_cast< int >(val6);
38181 }
38182 {
38183 PyThreadState* __tstate = wxPyBeginAllowThreads();
38184 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
38185 wxPyEndAllowThreads(__tstate);
38186 if (PyErr_Occurred()) SWIG_fail;
38187 }
38188 resultobj = SWIG_Py_Void();
38189 return resultobj;
38190 fail:
38191 return NULL;
38192 }
38193
38194
38195 SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38196 PyObject *resultobj = 0;
38197 wxPyControl *arg1 = (wxPyControl *) 0 ;
38198 int arg2 ;
38199 int arg3 ;
38200 void *argp1 = 0 ;
38201 int res1 = 0 ;
38202 int val2 ;
38203 int ecode2 = 0 ;
38204 int val3 ;
38205 int ecode3 = 0 ;
38206 PyObject * obj0 = 0 ;
38207 PyObject * obj1 = 0 ;
38208 PyObject * obj2 = 0 ;
38209 char * kwnames[] = {
38210 (char *) "self",(char *) "width",(char *) "height", NULL
38211 };
38212
38213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38215 if (!SWIG_IsOK(res1)) {
38216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38217 }
38218 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38219 ecode2 = SWIG_AsVal_int(obj1, &val2);
38220 if (!SWIG_IsOK(ecode2)) {
38221 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
38222 }
38223 arg2 = static_cast< int >(val2);
38224 ecode3 = SWIG_AsVal_int(obj2, &val3);
38225 if (!SWIG_IsOK(ecode3)) {
38226 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
38227 }
38228 arg3 = static_cast< int >(val3);
38229 {
38230 PyThreadState* __tstate = wxPyBeginAllowThreads();
38231 (arg1)->DoSetClientSize(arg2,arg3);
38232 wxPyEndAllowThreads(__tstate);
38233 if (PyErr_Occurred()) SWIG_fail;
38234 }
38235 resultobj = SWIG_Py_Void();
38236 return resultobj;
38237 fail:
38238 return NULL;
38239 }
38240
38241
38242 SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38243 PyObject *resultobj = 0;
38244 wxPyControl *arg1 = (wxPyControl *) 0 ;
38245 int arg2 ;
38246 int arg3 ;
38247 void *argp1 = 0 ;
38248 int res1 = 0 ;
38249 int val2 ;
38250 int ecode2 = 0 ;
38251 int val3 ;
38252 int ecode3 = 0 ;
38253 PyObject * obj0 = 0 ;
38254 PyObject * obj1 = 0 ;
38255 PyObject * obj2 = 0 ;
38256 char * kwnames[] = {
38257 (char *) "self",(char *) "x",(char *) "y", NULL
38258 };
38259
38260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38262 if (!SWIG_IsOK(res1)) {
38263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38264 }
38265 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38266 ecode2 = SWIG_AsVal_int(obj1, &val2);
38267 if (!SWIG_IsOK(ecode2)) {
38268 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
38269 }
38270 arg2 = static_cast< int >(val2);
38271 ecode3 = SWIG_AsVal_int(obj2, &val3);
38272 if (!SWIG_IsOK(ecode3)) {
38273 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
38274 }
38275 arg3 = static_cast< int >(val3);
38276 {
38277 PyThreadState* __tstate = wxPyBeginAllowThreads();
38278 (arg1)->DoSetVirtualSize(arg2,arg3);
38279 wxPyEndAllowThreads(__tstate);
38280 if (PyErr_Occurred()) SWIG_fail;
38281 }
38282 resultobj = SWIG_Py_Void();
38283 return resultobj;
38284 fail:
38285 return NULL;
38286 }
38287
38288
38289 SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38290 PyObject *resultobj = 0;
38291 wxPyControl *arg1 = (wxPyControl *) 0 ;
38292 int *arg2 = (int *) 0 ;
38293 int *arg3 = (int *) 0 ;
38294 void *argp1 = 0 ;
38295 int res1 = 0 ;
38296 int temp2 ;
38297 int res2 = SWIG_TMPOBJ ;
38298 int temp3 ;
38299 int res3 = SWIG_TMPOBJ ;
38300 PyObject *swig_obj[1] ;
38301
38302 arg2 = &temp2;
38303 arg3 = &temp3;
38304 if (!args) SWIG_fail;
38305 swig_obj[0] = args;
38306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38307 if (!SWIG_IsOK(res1)) {
38308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38309 }
38310 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38311 {
38312 PyThreadState* __tstate = wxPyBeginAllowThreads();
38313 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
38314 wxPyEndAllowThreads(__tstate);
38315 if (PyErr_Occurred()) SWIG_fail;
38316 }
38317 resultobj = SWIG_Py_Void();
38318 if (SWIG_IsTmpObj(res2)) {
38319 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38320 } else {
38321 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38322 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38323 }
38324 if (SWIG_IsTmpObj(res3)) {
38325 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38326 } else {
38327 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38328 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38329 }
38330 return resultobj;
38331 fail:
38332 return NULL;
38333 }
38334
38335
38336 SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38337 PyObject *resultobj = 0;
38338 wxPyControl *arg1 = (wxPyControl *) 0 ;
38339 int *arg2 = (int *) 0 ;
38340 int *arg3 = (int *) 0 ;
38341 void *argp1 = 0 ;
38342 int res1 = 0 ;
38343 int temp2 ;
38344 int res2 = SWIG_TMPOBJ ;
38345 int temp3 ;
38346 int res3 = SWIG_TMPOBJ ;
38347 PyObject *swig_obj[1] ;
38348
38349 arg2 = &temp2;
38350 arg3 = &temp3;
38351 if (!args) SWIG_fail;
38352 swig_obj[0] = args;
38353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38354 if (!SWIG_IsOK(res1)) {
38355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38356 }
38357 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38358 {
38359 PyThreadState* __tstate = wxPyBeginAllowThreads();
38360 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
38361 wxPyEndAllowThreads(__tstate);
38362 if (PyErr_Occurred()) SWIG_fail;
38363 }
38364 resultobj = SWIG_Py_Void();
38365 if (SWIG_IsTmpObj(res2)) {
38366 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38367 } else {
38368 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38369 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38370 }
38371 if (SWIG_IsTmpObj(res3)) {
38372 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38373 } else {
38374 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38375 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38376 }
38377 return resultobj;
38378 fail:
38379 return NULL;
38380 }
38381
38382
38383 SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38384 PyObject *resultobj = 0;
38385 wxPyControl *arg1 = (wxPyControl *) 0 ;
38386 int *arg2 = (int *) 0 ;
38387 int *arg3 = (int *) 0 ;
38388 void *argp1 = 0 ;
38389 int res1 = 0 ;
38390 int temp2 ;
38391 int res2 = SWIG_TMPOBJ ;
38392 int temp3 ;
38393 int res3 = SWIG_TMPOBJ ;
38394 PyObject *swig_obj[1] ;
38395
38396 arg2 = &temp2;
38397 arg3 = &temp3;
38398 if (!args) SWIG_fail;
38399 swig_obj[0] = args;
38400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38401 if (!SWIG_IsOK(res1)) {
38402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38403 }
38404 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38405 {
38406 PyThreadState* __tstate = wxPyBeginAllowThreads();
38407 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
38408 wxPyEndAllowThreads(__tstate);
38409 if (PyErr_Occurred()) SWIG_fail;
38410 }
38411 resultobj = SWIG_Py_Void();
38412 if (SWIG_IsTmpObj(res2)) {
38413 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38414 } else {
38415 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38416 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38417 }
38418 if (SWIG_IsTmpObj(res3)) {
38419 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38420 } else {
38421 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38422 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38423 }
38424 return resultobj;
38425 fail:
38426 return NULL;
38427 }
38428
38429
38430 SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38431 PyObject *resultobj = 0;
38432 wxPyControl *arg1 = (wxPyControl *) 0 ;
38433 wxSize result;
38434 void *argp1 = 0 ;
38435 int res1 = 0 ;
38436 PyObject *swig_obj[1] ;
38437
38438 if (!args) SWIG_fail;
38439 swig_obj[0] = args;
38440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38441 if (!SWIG_IsOK(res1)) {
38442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38443 }
38444 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38445 {
38446 PyThreadState* __tstate = wxPyBeginAllowThreads();
38447 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
38448 wxPyEndAllowThreads(__tstate);
38449 if (PyErr_Occurred()) SWIG_fail;
38450 }
38451 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
38452 return resultobj;
38453 fail:
38454 return NULL;
38455 }
38456
38457
38458 SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38459 PyObject *resultobj = 0;
38460 wxPyControl *arg1 = (wxPyControl *) 0 ;
38461 wxSize result;
38462 void *argp1 = 0 ;
38463 int res1 = 0 ;
38464 PyObject *swig_obj[1] ;
38465
38466 if (!args) SWIG_fail;
38467 swig_obj[0] = args;
38468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38469 if (!SWIG_IsOK(res1)) {
38470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38471 }
38472 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38473 {
38474 PyThreadState* __tstate = wxPyBeginAllowThreads();
38475 result = ((wxPyControl const *)arg1)->DoGetBestSize();
38476 wxPyEndAllowThreads(__tstate);
38477 if (PyErr_Occurred()) SWIG_fail;
38478 }
38479 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
38480 return resultobj;
38481 fail:
38482 return NULL;
38483 }
38484
38485
38486 SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38487 PyObject *resultobj = 0;
38488 wxPyControl *arg1 = (wxPyControl *) 0 ;
38489 SwigValueWrapper<wxVisualAttributes > result;
38490 void *argp1 = 0 ;
38491 int res1 = 0 ;
38492 PyObject *swig_obj[1] ;
38493
38494 if (!args) SWIG_fail;
38495 swig_obj[0] = args;
38496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38497 if (!SWIG_IsOK(res1)) {
38498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
38499 }
38500 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38501 {
38502 PyThreadState* __tstate = wxPyBeginAllowThreads();
38503 result = (arg1)->GetDefaultAttributes();
38504 wxPyEndAllowThreads(__tstate);
38505 if (PyErr_Occurred()) SWIG_fail;
38506 }
38507 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
38508 return resultobj;
38509 fail:
38510 return NULL;
38511 }
38512
38513
38514 SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38515 PyObject *resultobj = 0;
38516 wxPyControl *arg1 = (wxPyControl *) 0 ;
38517 void *argp1 = 0 ;
38518 int res1 = 0 ;
38519 PyObject *swig_obj[1] ;
38520
38521 if (!args) SWIG_fail;
38522 swig_obj[0] = args;
38523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38524 if (!SWIG_IsOK(res1)) {
38525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
38526 }
38527 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38528 {
38529 PyThreadState* __tstate = wxPyBeginAllowThreads();
38530 (arg1)->OnInternalIdle();
38531 wxPyEndAllowThreads(__tstate);
38532 if (PyErr_Occurred()) SWIG_fail;
38533 }
38534 resultobj = SWIG_Py_Void();
38535 return resultobj;
38536 fail:
38537 return NULL;
38538 }
38539
38540
38541 SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38542 PyObject *obj;
38543 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38544 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
38545 return SWIG_Py_Void();
38546 }
38547
38548 SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38549 return SWIG_Python_InitShadowInstance(args);
38550 }
38551
38552 SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38553 PyObject *resultobj = 0;
38554 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
38555 int arg2 = (int) 0 ;
38556 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38557 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38558 wxHelpEvent *result = 0 ;
38559 int val1 ;
38560 int ecode1 = 0 ;
38561 int val2 ;
38562 int ecode2 = 0 ;
38563 wxPoint temp3 ;
38564 PyObject * obj0 = 0 ;
38565 PyObject * obj1 = 0 ;
38566 PyObject * obj2 = 0 ;
38567 char * kwnames[] = {
38568 (char *) "type",(char *) "winid",(char *) "pt", NULL
38569 };
38570
38571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38572 if (obj0) {
38573 ecode1 = SWIG_AsVal_int(obj0, &val1);
38574 if (!SWIG_IsOK(ecode1)) {
38575 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
38576 }
38577 arg1 = static_cast< wxEventType >(val1);
38578 }
38579 if (obj1) {
38580 ecode2 = SWIG_AsVal_int(obj1, &val2);
38581 if (!SWIG_IsOK(ecode2)) {
38582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
38583 }
38584 arg2 = static_cast< int >(val2);
38585 }
38586 if (obj2) {
38587 {
38588 arg3 = &temp3;
38589 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38590 }
38591 }
38592 {
38593 PyThreadState* __tstate = wxPyBeginAllowThreads();
38594 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3);
38595 wxPyEndAllowThreads(__tstate);
38596 if (PyErr_Occurred()) SWIG_fail;
38597 }
38598 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
38599 return resultobj;
38600 fail:
38601 return NULL;
38602 }
38603
38604
38605 SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38606 PyObject *resultobj = 0;
38607 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38608 wxPoint result;
38609 void *argp1 = 0 ;
38610 int res1 = 0 ;
38611 PyObject *swig_obj[1] ;
38612
38613 if (!args) SWIG_fail;
38614 swig_obj[0] = args;
38615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38616 if (!SWIG_IsOK(res1)) {
38617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38618 }
38619 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38620 {
38621 PyThreadState* __tstate = wxPyBeginAllowThreads();
38622 result = ((wxHelpEvent const *)arg1)->GetPosition();
38623 wxPyEndAllowThreads(__tstate);
38624 if (PyErr_Occurred()) SWIG_fail;
38625 }
38626 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
38627 return resultobj;
38628 fail:
38629 return NULL;
38630 }
38631
38632
38633 SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38634 PyObject *resultobj = 0;
38635 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38636 wxPoint *arg2 = 0 ;
38637 void *argp1 = 0 ;
38638 int res1 = 0 ;
38639 wxPoint temp2 ;
38640 PyObject * obj0 = 0 ;
38641 PyObject * obj1 = 0 ;
38642 char * kwnames[] = {
38643 (char *) "self",(char *) "pos", NULL
38644 };
38645
38646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
38647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38648 if (!SWIG_IsOK(res1)) {
38649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
38650 }
38651 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38652 {
38653 arg2 = &temp2;
38654 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
38655 }
38656 {
38657 PyThreadState* __tstate = wxPyBeginAllowThreads();
38658 (arg1)->SetPosition((wxPoint const &)*arg2);
38659 wxPyEndAllowThreads(__tstate);
38660 if (PyErr_Occurred()) SWIG_fail;
38661 }
38662 resultobj = SWIG_Py_Void();
38663 return resultobj;
38664 fail:
38665 return NULL;
38666 }
38667
38668
38669 SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38670 PyObject *resultobj = 0;
38671 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38672 wxString *result = 0 ;
38673 void *argp1 = 0 ;
38674 int res1 = 0 ;
38675 PyObject *swig_obj[1] ;
38676
38677 if (!args) SWIG_fail;
38678 swig_obj[0] = args;
38679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38680 if (!SWIG_IsOK(res1)) {
38681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38682 }
38683 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38684 {
38685 PyThreadState* __tstate = wxPyBeginAllowThreads();
38686 {
38687 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
38688 result = (wxString *) &_result_ref;
38689 }
38690 wxPyEndAllowThreads(__tstate);
38691 if (PyErr_Occurred()) SWIG_fail;
38692 }
38693 {
38694 #if wxUSE_UNICODE
38695 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
38696 #else
38697 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
38698 #endif
38699 }
38700 return resultobj;
38701 fail:
38702 return NULL;
38703 }
38704
38705
38706 SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38707 PyObject *resultobj = 0;
38708 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38709 wxString *arg2 = 0 ;
38710 void *argp1 = 0 ;
38711 int res1 = 0 ;
38712 bool temp2 = false ;
38713 PyObject * obj0 = 0 ;
38714 PyObject * obj1 = 0 ;
38715 char * kwnames[] = {
38716 (char *) "self",(char *) "link", NULL
38717 };
38718
38719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
38720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38721 if (!SWIG_IsOK(res1)) {
38722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
38723 }
38724 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38725 {
38726 arg2 = wxString_in_helper(obj1);
38727 if (arg2 == NULL) SWIG_fail;
38728 temp2 = true;
38729 }
38730 {
38731 PyThreadState* __tstate = wxPyBeginAllowThreads();
38732 (arg1)->SetLink((wxString const &)*arg2);
38733 wxPyEndAllowThreads(__tstate);
38734 if (PyErr_Occurred()) SWIG_fail;
38735 }
38736 resultobj = SWIG_Py_Void();
38737 {
38738 if (temp2)
38739 delete arg2;
38740 }
38741 return resultobj;
38742 fail:
38743 {
38744 if (temp2)
38745 delete arg2;
38746 }
38747 return NULL;
38748 }
38749
38750
38751 SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38752 PyObject *resultobj = 0;
38753 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38754 wxString *result = 0 ;
38755 void *argp1 = 0 ;
38756 int res1 = 0 ;
38757 PyObject *swig_obj[1] ;
38758
38759 if (!args) SWIG_fail;
38760 swig_obj[0] = args;
38761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38762 if (!SWIG_IsOK(res1)) {
38763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38764 }
38765 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38766 {
38767 PyThreadState* __tstate = wxPyBeginAllowThreads();
38768 {
38769 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
38770 result = (wxString *) &_result_ref;
38771 }
38772 wxPyEndAllowThreads(__tstate);
38773 if (PyErr_Occurred()) SWIG_fail;
38774 }
38775 {
38776 #if wxUSE_UNICODE
38777 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
38778 #else
38779 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
38780 #endif
38781 }
38782 return resultobj;
38783 fail:
38784 return NULL;
38785 }
38786
38787
38788 SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38789 PyObject *resultobj = 0;
38790 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38791 wxString *arg2 = 0 ;
38792 void *argp1 = 0 ;
38793 int res1 = 0 ;
38794 bool temp2 = false ;
38795 PyObject * obj0 = 0 ;
38796 PyObject * obj1 = 0 ;
38797 char * kwnames[] = {
38798 (char *) "self",(char *) "target", NULL
38799 };
38800
38801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
38802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38803 if (!SWIG_IsOK(res1)) {
38804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
38805 }
38806 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38807 {
38808 arg2 = wxString_in_helper(obj1);
38809 if (arg2 == NULL) SWIG_fail;
38810 temp2 = true;
38811 }
38812 {
38813 PyThreadState* __tstate = wxPyBeginAllowThreads();
38814 (arg1)->SetTarget((wxString const &)*arg2);
38815 wxPyEndAllowThreads(__tstate);
38816 if (PyErr_Occurred()) SWIG_fail;
38817 }
38818 resultobj = SWIG_Py_Void();
38819 {
38820 if (temp2)
38821 delete arg2;
38822 }
38823 return resultobj;
38824 fail:
38825 {
38826 if (temp2)
38827 delete arg2;
38828 }
38829 return NULL;
38830 }
38831
38832
38833 SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38834 PyObject *obj;
38835 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38836 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
38837 return SWIG_Py_Void();
38838 }
38839
38840 SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38841 return SWIG_Python_InitShadowInstance(args);
38842 }
38843
38844 SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38845 PyObject *resultobj = 0;
38846 wxWindow *arg1 = (wxWindow *) NULL ;
38847 bool arg2 = (bool) true ;
38848 wxContextHelp *result = 0 ;
38849 void *argp1 = 0 ;
38850 int res1 = 0 ;
38851 bool val2 ;
38852 int ecode2 = 0 ;
38853 PyObject * obj0 = 0 ;
38854 PyObject * obj1 = 0 ;
38855 char * kwnames[] = {
38856 (char *) "window",(char *) "doNow", NULL
38857 };
38858
38859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
38860 if (obj0) {
38861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38862 if (!SWIG_IsOK(res1)) {
38863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
38864 }
38865 arg1 = reinterpret_cast< wxWindow * >(argp1);
38866 }
38867 if (obj1) {
38868 ecode2 = SWIG_AsVal_bool(obj1, &val2);
38869 if (!SWIG_IsOK(ecode2)) {
38870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
38871 }
38872 arg2 = static_cast< bool >(val2);
38873 }
38874 {
38875 if (!wxPyCheckForApp()) SWIG_fail;
38876 PyThreadState* __tstate = wxPyBeginAllowThreads();
38877 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
38878 wxPyEndAllowThreads(__tstate);
38879 if (PyErr_Occurred()) SWIG_fail;
38880 }
38881 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
38882 return resultobj;
38883 fail:
38884 return NULL;
38885 }
38886
38887
38888 SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38889 PyObject *resultobj = 0;
38890 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
38891 void *argp1 = 0 ;
38892 int res1 = 0 ;
38893 PyObject *swig_obj[1] ;
38894
38895 if (!args) SWIG_fail;
38896 swig_obj[0] = args;
38897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
38898 if (!SWIG_IsOK(res1)) {
38899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
38900 }
38901 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
38902 {
38903 PyThreadState* __tstate = wxPyBeginAllowThreads();
38904 delete arg1;
38905
38906 wxPyEndAllowThreads(__tstate);
38907 if (PyErr_Occurred()) SWIG_fail;
38908 }
38909 resultobj = SWIG_Py_Void();
38910 return resultobj;
38911 fail:
38912 return NULL;
38913 }
38914
38915
38916 SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38917 PyObject *resultobj = 0;
38918 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
38919 wxWindow *arg2 = (wxWindow *) NULL ;
38920 bool result;
38921 void *argp1 = 0 ;
38922 int res1 = 0 ;
38923 void *argp2 = 0 ;
38924 int res2 = 0 ;
38925 PyObject * obj0 = 0 ;
38926 PyObject * obj1 = 0 ;
38927 char * kwnames[] = {
38928 (char *) "self",(char *) "window", NULL
38929 };
38930
38931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
38932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
38933 if (!SWIG_IsOK(res1)) {
38934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
38935 }
38936 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
38937 if (obj1) {
38938 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
38939 if (!SWIG_IsOK(res2)) {
38940 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
38941 }
38942 arg2 = reinterpret_cast< wxWindow * >(argp2);
38943 }
38944 {
38945 PyThreadState* __tstate = wxPyBeginAllowThreads();
38946 result = (bool)(arg1)->BeginContextHelp(arg2);
38947 wxPyEndAllowThreads(__tstate);
38948 if (PyErr_Occurred()) SWIG_fail;
38949 }
38950 {
38951 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38952 }
38953 return resultobj;
38954 fail:
38955 return NULL;
38956 }
38957
38958
38959 SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38960 PyObject *resultobj = 0;
38961 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
38962 bool result;
38963 void *argp1 = 0 ;
38964 int res1 = 0 ;
38965 PyObject *swig_obj[1] ;
38966
38967 if (!args) SWIG_fail;
38968 swig_obj[0] = args;
38969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
38970 if (!SWIG_IsOK(res1)) {
38971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
38972 }
38973 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
38974 {
38975 PyThreadState* __tstate = wxPyBeginAllowThreads();
38976 result = (bool)(arg1)->EndContextHelp();
38977 wxPyEndAllowThreads(__tstate);
38978 if (PyErr_Occurred()) SWIG_fail;
38979 }
38980 {
38981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38982 }
38983 return resultobj;
38984 fail:
38985 return NULL;
38986 }
38987
38988
38989 SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38990 PyObject *obj;
38991 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38992 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
38993 return SWIG_Py_Void();
38994 }
38995
38996 SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38997 return SWIG_Python_InitShadowInstance(args);
38998 }
38999
39000 SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39001 PyObject *resultobj = 0;
39002 wxWindow *arg1 = (wxWindow *) 0 ;
39003 int arg2 = (int) wxID_CONTEXT_HELP ;
39004 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39005 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39006 wxSize const &arg4_defvalue = wxDefaultSize ;
39007 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39008 long arg5 = (long) wxBU_AUTODRAW ;
39009 wxContextHelpButton *result = 0 ;
39010 void *argp1 = 0 ;
39011 int res1 = 0 ;
39012 int val2 ;
39013 int ecode2 = 0 ;
39014 wxPoint temp3 ;
39015 wxSize temp4 ;
39016 long val5 ;
39017 int ecode5 = 0 ;
39018 PyObject * obj0 = 0 ;
39019 PyObject * obj1 = 0 ;
39020 PyObject * obj2 = 0 ;
39021 PyObject * obj3 = 0 ;
39022 PyObject * obj4 = 0 ;
39023 char * kwnames[] = {
39024 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39025 };
39026
39027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39029 if (!SWIG_IsOK(res1)) {
39030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39031 }
39032 arg1 = reinterpret_cast< wxWindow * >(argp1);
39033 if (obj1) {
39034 ecode2 = SWIG_AsVal_int(obj1, &val2);
39035 if (!SWIG_IsOK(ecode2)) {
39036 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39037 }
39038 arg2 = static_cast< int >(val2);
39039 }
39040 if (obj2) {
39041 {
39042 arg3 = &temp3;
39043 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39044 }
39045 }
39046 if (obj3) {
39047 {
39048 arg4 = &temp4;
39049 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
39050 }
39051 }
39052 if (obj4) {
39053 ecode5 = SWIG_AsVal_long(obj4, &val5);
39054 if (!SWIG_IsOK(ecode5)) {
39055 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39056 }
39057 arg5 = static_cast< long >(val5);
39058 }
39059 {
39060 if (!wxPyCheckForApp()) SWIG_fail;
39061 PyThreadState* __tstate = wxPyBeginAllowThreads();
39062 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39063 wxPyEndAllowThreads(__tstate);
39064 if (PyErr_Occurred()) SWIG_fail;
39065 }
39066 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39067 return resultobj;
39068 fail:
39069 return NULL;
39070 }
39071
39072
39073 SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39074 PyObject *obj;
39075 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39076 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39077 return SWIG_Py_Void();
39078 }
39079
39080 SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39081 return SWIG_Python_InitShadowInstance(args);
39082 }
39083
39084 SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39085 PyObject *resultobj = 0;
39086 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39087 wxHelpProvider *result = 0 ;
39088 int res1 = 0 ;
39089 PyObject * obj0 = 0 ;
39090 char * kwnames[] = {
39091 (char *) "helpProvider", NULL
39092 };
39093
39094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
39095 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39096 if (!SWIG_IsOK(res1)) {
39097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39098 }
39099 {
39100 PyThreadState* __tstate = wxPyBeginAllowThreads();
39101 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
39102 wxPyEndAllowThreads(__tstate);
39103 if (PyErr_Occurred()) SWIG_fail;
39104 }
39105 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
39106 return resultobj;
39107 fail:
39108 return NULL;
39109 }
39110
39111
39112 SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39113 PyObject *resultobj = 0;
39114 wxHelpProvider *result = 0 ;
39115
39116 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
39117 {
39118 PyThreadState* __tstate = wxPyBeginAllowThreads();
39119 result = (wxHelpProvider *)wxHelpProvider::Get();
39120 wxPyEndAllowThreads(__tstate);
39121 if (PyErr_Occurred()) SWIG_fail;
39122 }
39123 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39124 return resultobj;
39125 fail:
39126 return NULL;
39127 }
39128
39129
39130 SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39131 PyObject *resultobj = 0;
39132 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39133 wxWindow *arg2 = (wxWindow *) 0 ;
39134 wxString result;
39135 void *argp1 = 0 ;
39136 int res1 = 0 ;
39137 void *argp2 = 0 ;
39138 int res2 = 0 ;
39139 PyObject * obj0 = 0 ;
39140 PyObject * obj1 = 0 ;
39141 char * kwnames[] = {
39142 (char *) "self",(char *) "window", NULL
39143 };
39144
39145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39147 if (!SWIG_IsOK(res1)) {
39148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39149 }
39150 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39151 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39152 if (!SWIG_IsOK(res2)) {
39153 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
39154 }
39155 arg2 = reinterpret_cast< wxWindow * >(argp2);
39156 {
39157 PyThreadState* __tstate = wxPyBeginAllowThreads();
39158 result = (arg1)->GetHelp((wxWindow const *)arg2);
39159 wxPyEndAllowThreads(__tstate);
39160 if (PyErr_Occurred()) SWIG_fail;
39161 }
39162 {
39163 #if wxUSE_UNICODE
39164 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
39165 #else
39166 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
39167 #endif
39168 }
39169 return resultobj;
39170 fail:
39171 return NULL;
39172 }
39173
39174
39175 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39176 PyObject *resultobj = 0;
39177 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39178 wxWindow *arg2 = (wxWindow *) 0 ;
39179 bool result;
39180 void *argp1 = 0 ;
39181 int res1 = 0 ;
39182 void *argp2 = 0 ;
39183 int res2 = 0 ;
39184 PyObject * obj0 = 0 ;
39185 PyObject * obj1 = 0 ;
39186 char * kwnames[] = {
39187 (char *) "self",(char *) "window", NULL
39188 };
39189
39190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39192 if (!SWIG_IsOK(res1)) {
39193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39194 }
39195 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39196 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39197 if (!SWIG_IsOK(res2)) {
39198 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39199 }
39200 arg2 = reinterpret_cast< wxWindow * >(argp2);
39201 {
39202 PyThreadState* __tstate = wxPyBeginAllowThreads();
39203 result = (bool)(arg1)->ShowHelp(arg2);
39204 wxPyEndAllowThreads(__tstate);
39205 if (PyErr_Occurred()) SWIG_fail;
39206 }
39207 {
39208 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39209 }
39210 return resultobj;
39211 fail:
39212 return NULL;
39213 }
39214
39215
39216 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39217 PyObject *resultobj = 0;
39218 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39219 wxWindow *arg2 = (wxWindow *) 0 ;
39220 wxString *arg3 = 0 ;
39221 void *argp1 = 0 ;
39222 int res1 = 0 ;
39223 void *argp2 = 0 ;
39224 int res2 = 0 ;
39225 bool temp3 = false ;
39226 PyObject * obj0 = 0 ;
39227 PyObject * obj1 = 0 ;
39228 PyObject * obj2 = 0 ;
39229 char * kwnames[] = {
39230 (char *) "self",(char *) "window",(char *) "text", NULL
39231 };
39232
39233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39235 if (!SWIG_IsOK(res1)) {
39236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39237 }
39238 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39239 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39240 if (!SWIG_IsOK(res2)) {
39241 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39242 }
39243 arg2 = reinterpret_cast< wxWindow * >(argp2);
39244 {
39245 arg3 = wxString_in_helper(obj2);
39246 if (arg3 == NULL) SWIG_fail;
39247 temp3 = true;
39248 }
39249 {
39250 PyThreadState* __tstate = wxPyBeginAllowThreads();
39251 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39252 wxPyEndAllowThreads(__tstate);
39253 if (PyErr_Occurred()) SWIG_fail;
39254 }
39255 resultobj = SWIG_Py_Void();
39256 {
39257 if (temp3)
39258 delete arg3;
39259 }
39260 return resultobj;
39261 fail:
39262 {
39263 if (temp3)
39264 delete arg3;
39265 }
39266 return NULL;
39267 }
39268
39269
39270 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39271 PyObject *resultobj = 0;
39272 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39273 int arg2 ;
39274 wxString *arg3 = 0 ;
39275 void *argp1 = 0 ;
39276 int res1 = 0 ;
39277 int val2 ;
39278 int ecode2 = 0 ;
39279 bool temp3 = false ;
39280 PyObject * obj0 = 0 ;
39281 PyObject * obj1 = 0 ;
39282 PyObject * obj2 = 0 ;
39283 char * kwnames[] = {
39284 (char *) "self",(char *) "id",(char *) "text", NULL
39285 };
39286
39287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39289 if (!SWIG_IsOK(res1)) {
39290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39291 }
39292 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39293 ecode2 = SWIG_AsVal_int(obj1, &val2);
39294 if (!SWIG_IsOK(ecode2)) {
39295 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
39296 }
39297 arg2 = static_cast< int >(val2);
39298 {
39299 arg3 = wxString_in_helper(obj2);
39300 if (arg3 == NULL) SWIG_fail;
39301 temp3 = true;
39302 }
39303 {
39304 PyThreadState* __tstate = wxPyBeginAllowThreads();
39305 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39306 wxPyEndAllowThreads(__tstate);
39307 if (PyErr_Occurred()) SWIG_fail;
39308 }
39309 resultobj = SWIG_Py_Void();
39310 {
39311 if (temp3)
39312 delete arg3;
39313 }
39314 return resultobj;
39315 fail:
39316 {
39317 if (temp3)
39318 delete arg3;
39319 }
39320 return NULL;
39321 }
39322
39323
39324 SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39325 PyObject *resultobj = 0;
39326 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39327 wxWindow *arg2 = (wxWindow *) 0 ;
39328 void *argp1 = 0 ;
39329 int res1 = 0 ;
39330 void *argp2 = 0 ;
39331 int res2 = 0 ;
39332 PyObject * obj0 = 0 ;
39333 PyObject * obj1 = 0 ;
39334 char * kwnames[] = {
39335 (char *) "self",(char *) "window", NULL
39336 };
39337
39338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39340 if (!SWIG_IsOK(res1)) {
39341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39342 }
39343 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39344 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39345 if (!SWIG_IsOK(res2)) {
39346 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39347 }
39348 arg2 = reinterpret_cast< wxWindow * >(argp2);
39349 {
39350 PyThreadState* __tstate = wxPyBeginAllowThreads();
39351 (arg1)->RemoveHelp(arg2);
39352 wxPyEndAllowThreads(__tstate);
39353 if (PyErr_Occurred()) SWIG_fail;
39354 }
39355 resultobj = SWIG_Py_Void();
39356 return resultobj;
39357 fail:
39358 return NULL;
39359 }
39360
39361
39362 SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39363 PyObject *resultobj = 0;
39364 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39365 void *argp1 = 0 ;
39366 int res1 = 0 ;
39367 PyObject *swig_obj[1] ;
39368
39369 if (!args) SWIG_fail;
39370 swig_obj[0] = args;
39371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39372 if (!SWIG_IsOK(res1)) {
39373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39374 }
39375 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39376 {
39377 PyThreadState* __tstate = wxPyBeginAllowThreads();
39378 wxHelpProvider_Destroy(arg1);
39379 wxPyEndAllowThreads(__tstate);
39380 if (PyErr_Occurred()) SWIG_fail;
39381 }
39382 resultobj = SWIG_Py_Void();
39383 return resultobj;
39384 fail:
39385 return NULL;
39386 }
39387
39388
39389 SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39390 PyObject *obj;
39391 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39392 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
39393 return SWIG_Py_Void();
39394 }
39395
39396 SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39397 PyObject *resultobj = 0;
39398 wxSimpleHelpProvider *result = 0 ;
39399
39400 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
39401 {
39402 PyThreadState* __tstate = wxPyBeginAllowThreads();
39403 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
39404 wxPyEndAllowThreads(__tstate);
39405 if (PyErr_Occurred()) SWIG_fail;
39406 }
39407 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
39408 return resultobj;
39409 fail:
39410 return NULL;
39411 }
39412
39413
39414 SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39415 PyObject *obj;
39416 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39417 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
39418 return SWIG_Py_Void();
39419 }
39420
39421 SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39422 return SWIG_Python_InitShadowInstance(args);
39423 }
39424
39425 SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39426 PyObject *resultobj = 0;
39427 wxBitmap *arg1 = 0 ;
39428 wxCursor const &arg2_defvalue = wxNullCursor ;
39429 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39430 wxGenericDragImage *result = 0 ;
39431 void *argp1 = 0 ;
39432 int res1 = 0 ;
39433 void *argp2 = 0 ;
39434 int res2 = 0 ;
39435 PyObject * obj0 = 0 ;
39436 PyObject * obj1 = 0 ;
39437 char * kwnames[] = {
39438 (char *) "image",(char *) "cursor", NULL
39439 };
39440
39441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
39442 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
39443 if (!SWIG_IsOK(res1)) {
39444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
39445 }
39446 if (!argp1) {
39447 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
39448 }
39449 arg1 = reinterpret_cast< wxBitmap * >(argp1);
39450 if (obj1) {
39451 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39452 if (!SWIG_IsOK(res2)) {
39453 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
39454 }
39455 if (!argp2) {
39456 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
39457 }
39458 arg2 = reinterpret_cast< wxCursor * >(argp2);
39459 }
39460 {
39461 if (!wxPyCheckForApp()) SWIG_fail;
39462 PyThreadState* __tstate = wxPyBeginAllowThreads();
39463 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
39464 wxPyEndAllowThreads(__tstate);
39465 if (PyErr_Occurred()) SWIG_fail;
39466 }
39467 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
39468 return resultobj;
39469 fail:
39470 return NULL;
39471 }
39472
39473
39474 SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39475 PyObject *resultobj = 0;
39476 wxIcon *arg1 = 0 ;
39477 wxCursor const &arg2_defvalue = wxNullCursor ;
39478 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39479 wxGenericDragImage *result = 0 ;
39480 void *argp1 = 0 ;
39481 int res1 = 0 ;
39482 void *argp2 = 0 ;
39483 int res2 = 0 ;
39484 PyObject * obj0 = 0 ;
39485 PyObject * obj1 = 0 ;
39486 char * kwnames[] = {
39487 (char *) "image",(char *) "cursor", NULL
39488 };
39489
39490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
39491 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
39492 if (!SWIG_IsOK(res1)) {
39493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
39494 }
39495 if (!argp1) {
39496 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
39497 }
39498 arg1 = reinterpret_cast< wxIcon * >(argp1);
39499 if (obj1) {
39500 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39501 if (!SWIG_IsOK(res2)) {
39502 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
39503 }
39504 if (!argp2) {
39505 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
39506 }
39507 arg2 = reinterpret_cast< wxCursor * >(argp2);
39508 }
39509 {
39510 if (!wxPyCheckForApp()) SWIG_fail;
39511 PyThreadState* __tstate = wxPyBeginAllowThreads();
39512 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
39513 wxPyEndAllowThreads(__tstate);
39514 if (PyErr_Occurred()) SWIG_fail;
39515 }
39516 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39517 return resultobj;
39518 fail:
39519 return NULL;
39520 }
39521
39522
39523 SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39524 PyObject *resultobj = 0;
39525 wxString *arg1 = 0 ;
39526 wxCursor const &arg2_defvalue = wxNullCursor ;
39527 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39528 wxGenericDragImage *result = 0 ;
39529 bool temp1 = false ;
39530 void *argp2 = 0 ;
39531 int res2 = 0 ;
39532 PyObject * obj0 = 0 ;
39533 PyObject * obj1 = 0 ;
39534 char * kwnames[] = {
39535 (char *) "str",(char *) "cursor", NULL
39536 };
39537
39538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
39539 {
39540 arg1 = wxString_in_helper(obj0);
39541 if (arg1 == NULL) SWIG_fail;
39542 temp1 = true;
39543 }
39544 if (obj1) {
39545 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39546 if (!SWIG_IsOK(res2)) {
39547 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
39548 }
39549 if (!argp2) {
39550 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
39551 }
39552 arg2 = reinterpret_cast< wxCursor * >(argp2);
39553 }
39554 {
39555 if (!wxPyCheckForApp()) SWIG_fail;
39556 PyThreadState* __tstate = wxPyBeginAllowThreads();
39557 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
39558 wxPyEndAllowThreads(__tstate);
39559 if (PyErr_Occurred()) SWIG_fail;
39560 }
39561 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39562 {
39563 if (temp1)
39564 delete arg1;
39565 }
39566 return resultobj;
39567 fail:
39568 {
39569 if (temp1)
39570 delete arg1;
39571 }
39572 return NULL;
39573 }
39574
39575
39576 SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39577 PyObject *resultobj = 0;
39578 wxPyTreeCtrl *arg1 = 0 ;
39579 wxTreeItemId *arg2 = 0 ;
39580 wxGenericDragImage *result = 0 ;
39581 void *argp1 = 0 ;
39582 int res1 = 0 ;
39583 void *argp2 = 0 ;
39584 int res2 = 0 ;
39585 PyObject * obj0 = 0 ;
39586 PyObject * obj1 = 0 ;
39587 char * kwnames[] = {
39588 (char *) "treeCtrl",(char *) "id", NULL
39589 };
39590
39591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
39592 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
39593 if (!SWIG_IsOK(res1)) {
39594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
39595 }
39596 if (!argp1) {
39597 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
39598 }
39599 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
39600 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
39601 if (!SWIG_IsOK(res2)) {
39602 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
39603 }
39604 if (!argp2) {
39605 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
39606 }
39607 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
39608 {
39609 if (!wxPyCheckForApp()) SWIG_fail;
39610 PyThreadState* __tstate = wxPyBeginAllowThreads();
39611 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
39612 wxPyEndAllowThreads(__tstate);
39613 if (PyErr_Occurred()) SWIG_fail;
39614 }
39615 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39616 return resultobj;
39617 fail:
39618 return NULL;
39619 }
39620
39621
39622 SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39623 PyObject *resultobj = 0;
39624 wxPyListCtrl *arg1 = 0 ;
39625 long arg2 ;
39626 wxGenericDragImage *result = 0 ;
39627 void *argp1 = 0 ;
39628 int res1 = 0 ;
39629 long val2 ;
39630 int ecode2 = 0 ;
39631 PyObject * obj0 = 0 ;
39632 PyObject * obj1 = 0 ;
39633 char * kwnames[] = {
39634 (char *) "listCtrl",(char *) "id", NULL
39635 };
39636
39637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
39638 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
39639 if (!SWIG_IsOK(res1)) {
39640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
39641 }
39642 if (!argp1) {
39643 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
39644 }
39645 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
39646 ecode2 = SWIG_AsVal_long(obj1, &val2);
39647 if (!SWIG_IsOK(ecode2)) {
39648 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
39649 }
39650 arg2 = static_cast< long >(val2);
39651 {
39652 if (!wxPyCheckForApp()) SWIG_fail;
39653 PyThreadState* __tstate = wxPyBeginAllowThreads();
39654 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
39655 wxPyEndAllowThreads(__tstate);
39656 if (PyErr_Occurred()) SWIG_fail;
39657 }
39658 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39659 return resultobj;
39660 fail:
39661 return NULL;
39662 }
39663
39664
39665 SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39666 PyObject *resultobj = 0;
39667 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39668 void *argp1 = 0 ;
39669 int res1 = 0 ;
39670 PyObject *swig_obj[1] ;
39671
39672 if (!args) SWIG_fail;
39673 swig_obj[0] = args;
39674 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
39675 if (!SWIG_IsOK(res1)) {
39676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39677 }
39678 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39679 {
39680 PyThreadState* __tstate = wxPyBeginAllowThreads();
39681 delete arg1;
39682
39683 wxPyEndAllowThreads(__tstate);
39684 if (PyErr_Occurred()) SWIG_fail;
39685 }
39686 resultobj = SWIG_Py_Void();
39687 return resultobj;
39688 fail:
39689 return NULL;
39690 }
39691
39692
39693 SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39694 PyObject *resultobj = 0;
39695 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39696 wxBitmap *arg2 = (wxBitmap *) 0 ;
39697 void *argp1 = 0 ;
39698 int res1 = 0 ;
39699 void *argp2 = 0 ;
39700 int res2 = 0 ;
39701 PyObject * obj0 = 0 ;
39702 PyObject * obj1 = 0 ;
39703 char * kwnames[] = {
39704 (char *) "self",(char *) "bitmap", NULL
39705 };
39706
39707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
39708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39709 if (!SWIG_IsOK(res1)) {
39710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39711 }
39712 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39713 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
39714 if (!SWIG_IsOK(res2)) {
39715 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
39716 }
39717 arg2 = reinterpret_cast< wxBitmap * >(argp2);
39718 {
39719 PyThreadState* __tstate = wxPyBeginAllowThreads();
39720 (arg1)->SetBackingBitmap(arg2);
39721 wxPyEndAllowThreads(__tstate);
39722 if (PyErr_Occurred()) SWIG_fail;
39723 }
39724 resultobj = SWIG_Py_Void();
39725 return resultobj;
39726 fail:
39727 return NULL;
39728 }
39729
39730
39731 SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39732 PyObject *resultobj = 0;
39733 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39734 wxPoint *arg2 = 0 ;
39735 wxWindow *arg3 = (wxWindow *) 0 ;
39736 bool arg4 = (bool) false ;
39737 wxRect *arg5 = (wxRect *) NULL ;
39738 bool result;
39739 void *argp1 = 0 ;
39740 int res1 = 0 ;
39741 wxPoint temp2 ;
39742 void *argp3 = 0 ;
39743 int res3 = 0 ;
39744 bool val4 ;
39745 int ecode4 = 0 ;
39746 void *argp5 = 0 ;
39747 int res5 = 0 ;
39748 PyObject * obj0 = 0 ;
39749 PyObject * obj1 = 0 ;
39750 PyObject * obj2 = 0 ;
39751 PyObject * obj3 = 0 ;
39752 PyObject * obj4 = 0 ;
39753 char * kwnames[] = {
39754 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
39755 };
39756
39757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39759 if (!SWIG_IsOK(res1)) {
39760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39761 }
39762 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39763 {
39764 arg2 = &temp2;
39765 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39766 }
39767 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
39768 if (!SWIG_IsOK(res3)) {
39769 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
39770 }
39771 arg3 = reinterpret_cast< wxWindow * >(argp3);
39772 if (obj3) {
39773 ecode4 = SWIG_AsVal_bool(obj3, &val4);
39774 if (!SWIG_IsOK(ecode4)) {
39775 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
39776 }
39777 arg4 = static_cast< bool >(val4);
39778 }
39779 if (obj4) {
39780 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
39781 if (!SWIG_IsOK(res5)) {
39782 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
39783 }
39784 arg5 = reinterpret_cast< wxRect * >(argp5);
39785 }
39786 {
39787 PyThreadState* __tstate = wxPyBeginAllowThreads();
39788 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
39789 wxPyEndAllowThreads(__tstate);
39790 if (PyErr_Occurred()) SWIG_fail;
39791 }
39792 {
39793 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39794 }
39795 return resultobj;
39796 fail:
39797 return NULL;
39798 }
39799
39800
39801 SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39802 PyObject *resultobj = 0;
39803 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39804 wxPoint *arg2 = 0 ;
39805 wxWindow *arg3 = (wxWindow *) 0 ;
39806 wxWindow *arg4 = (wxWindow *) 0 ;
39807 bool result;
39808 void *argp1 = 0 ;
39809 int res1 = 0 ;
39810 wxPoint temp2 ;
39811 void *argp3 = 0 ;
39812 int res3 = 0 ;
39813 void *argp4 = 0 ;
39814 int res4 = 0 ;
39815 PyObject * obj0 = 0 ;
39816 PyObject * obj1 = 0 ;
39817 PyObject * obj2 = 0 ;
39818 PyObject * obj3 = 0 ;
39819 char * kwnames[] = {
39820 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
39821 };
39822
39823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39825 if (!SWIG_IsOK(res1)) {
39826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39827 }
39828 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39829 {
39830 arg2 = &temp2;
39831 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39832 }
39833 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
39834 if (!SWIG_IsOK(res3)) {
39835 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
39836 }
39837 arg3 = reinterpret_cast< wxWindow * >(argp3);
39838 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
39839 if (!SWIG_IsOK(res4)) {
39840 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
39841 }
39842 arg4 = reinterpret_cast< wxWindow * >(argp4);
39843 {
39844 PyThreadState* __tstate = wxPyBeginAllowThreads();
39845 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
39846 wxPyEndAllowThreads(__tstate);
39847 if (PyErr_Occurred()) SWIG_fail;
39848 }
39849 {
39850 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39851 }
39852 return resultobj;
39853 fail:
39854 return NULL;
39855 }
39856
39857
39858 SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39859 PyObject *resultobj = 0;
39860 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39861 bool result;
39862 void *argp1 = 0 ;
39863 int res1 = 0 ;
39864 PyObject *swig_obj[1] ;
39865
39866 if (!args) SWIG_fail;
39867 swig_obj[0] = args;
39868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39869 if (!SWIG_IsOK(res1)) {
39870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39871 }
39872 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39873 {
39874 PyThreadState* __tstate = wxPyBeginAllowThreads();
39875 result = (bool)(arg1)->EndDrag();
39876 wxPyEndAllowThreads(__tstate);
39877 if (PyErr_Occurred()) SWIG_fail;
39878 }
39879 {
39880 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39881 }
39882 return resultobj;
39883 fail:
39884 return NULL;
39885 }
39886
39887
39888 SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39889 PyObject *resultobj = 0;
39890 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39891 wxPoint *arg2 = 0 ;
39892 bool result;
39893 void *argp1 = 0 ;
39894 int res1 = 0 ;
39895 wxPoint temp2 ;
39896 PyObject * obj0 = 0 ;
39897 PyObject * obj1 = 0 ;
39898 char * kwnames[] = {
39899 (char *) "self",(char *) "pt", NULL
39900 };
39901
39902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
39903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39904 if (!SWIG_IsOK(res1)) {
39905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39906 }
39907 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39908 {
39909 arg2 = &temp2;
39910 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39911 }
39912 {
39913 PyThreadState* __tstate = wxPyBeginAllowThreads();
39914 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
39915 wxPyEndAllowThreads(__tstate);
39916 if (PyErr_Occurred()) SWIG_fail;
39917 }
39918 {
39919 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39920 }
39921 return resultobj;
39922 fail:
39923 return NULL;
39924 }
39925
39926
39927 SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39928 PyObject *resultobj = 0;
39929 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39930 bool result;
39931 void *argp1 = 0 ;
39932 int res1 = 0 ;
39933 PyObject *swig_obj[1] ;
39934
39935 if (!args) SWIG_fail;
39936 swig_obj[0] = args;
39937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39938 if (!SWIG_IsOK(res1)) {
39939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39940 }
39941 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39942 {
39943 PyThreadState* __tstate = wxPyBeginAllowThreads();
39944 result = (bool)(arg1)->Show();
39945 wxPyEndAllowThreads(__tstate);
39946 if (PyErr_Occurred()) SWIG_fail;
39947 }
39948 {
39949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39950 }
39951 return resultobj;
39952 fail:
39953 return NULL;
39954 }
39955
39956
39957 SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39958 PyObject *resultobj = 0;
39959 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39960 bool result;
39961 void *argp1 = 0 ;
39962 int res1 = 0 ;
39963 PyObject *swig_obj[1] ;
39964
39965 if (!args) SWIG_fail;
39966 swig_obj[0] = args;
39967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
39968 if (!SWIG_IsOK(res1)) {
39969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39970 }
39971 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
39972 {
39973 PyThreadState* __tstate = wxPyBeginAllowThreads();
39974 result = (bool)(arg1)->Hide();
39975 wxPyEndAllowThreads(__tstate);
39976 if (PyErr_Occurred()) SWIG_fail;
39977 }
39978 {
39979 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39980 }
39981 return resultobj;
39982 fail:
39983 return NULL;
39984 }
39985
39986
39987 SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39988 PyObject *resultobj = 0;
39989 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39990 wxPoint *arg2 = 0 ;
39991 wxRect result;
39992 void *argp1 = 0 ;
39993 int res1 = 0 ;
39994 wxPoint temp2 ;
39995 PyObject * obj0 = 0 ;
39996 PyObject * obj1 = 0 ;
39997 char * kwnames[] = {
39998 (char *) "self",(char *) "pos", NULL
39999 };
40000
40001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
40002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40003 if (!SWIG_IsOK(res1)) {
40004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40005 }
40006 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40007 {
40008 arg2 = &temp2;
40009 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40010 }
40011 {
40012 PyThreadState* __tstate = wxPyBeginAllowThreads();
40013 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
40014 wxPyEndAllowThreads(__tstate);
40015 if (PyErr_Occurred()) SWIG_fail;
40016 }
40017 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
40018 return resultobj;
40019 fail:
40020 return NULL;
40021 }
40022
40023
40024 SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40025 PyObject *resultobj = 0;
40026 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40027 wxDC *arg2 = 0 ;
40028 wxPoint *arg3 = 0 ;
40029 bool result;
40030 void *argp1 = 0 ;
40031 int res1 = 0 ;
40032 void *argp2 = 0 ;
40033 int res2 = 0 ;
40034 wxPoint temp3 ;
40035 PyObject * obj0 = 0 ;
40036 PyObject * obj1 = 0 ;
40037 PyObject * obj2 = 0 ;
40038 char * kwnames[] = {
40039 (char *) "self",(char *) "dc",(char *) "pos", NULL
40040 };
40041
40042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40044 if (!SWIG_IsOK(res1)) {
40045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40046 }
40047 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40048 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40049 if (!SWIG_IsOK(res2)) {
40050 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40051 }
40052 if (!argp2) {
40053 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40054 }
40055 arg2 = reinterpret_cast< wxDC * >(argp2);
40056 {
40057 arg3 = &temp3;
40058 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40059 }
40060 {
40061 PyThreadState* __tstate = wxPyBeginAllowThreads();
40062 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
40063 wxPyEndAllowThreads(__tstate);
40064 if (PyErr_Occurred()) SWIG_fail;
40065 }
40066 {
40067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40068 }
40069 return resultobj;
40070 fail:
40071 return NULL;
40072 }
40073
40074
40075 SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40076 PyObject *resultobj = 0;
40077 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40078 wxDC *arg2 = 0 ;
40079 wxMemoryDC *arg3 = 0 ;
40080 wxRect *arg4 = 0 ;
40081 wxRect *arg5 = 0 ;
40082 bool result;
40083 void *argp1 = 0 ;
40084 int res1 = 0 ;
40085 void *argp2 = 0 ;
40086 int res2 = 0 ;
40087 void *argp3 = 0 ;
40088 int res3 = 0 ;
40089 wxRect temp4 ;
40090 wxRect temp5 ;
40091 PyObject * obj0 = 0 ;
40092 PyObject * obj1 = 0 ;
40093 PyObject * obj2 = 0 ;
40094 PyObject * obj3 = 0 ;
40095 PyObject * obj4 = 0 ;
40096 char * kwnames[] = {
40097 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
40098 };
40099
40100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40102 if (!SWIG_IsOK(res1)) {
40103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40104 }
40105 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40106 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40107 if (!SWIG_IsOK(res2)) {
40108 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40109 }
40110 if (!argp2) {
40111 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40112 }
40113 arg2 = reinterpret_cast< wxDC * >(argp2);
40114 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
40115 if (!SWIG_IsOK(res3)) {
40116 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40117 }
40118 if (!argp3) {
40119 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40120 }
40121 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
40122 {
40123 arg4 = &temp4;
40124 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
40125 }
40126 {
40127 arg5 = &temp5;
40128 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
40129 }
40130 {
40131 PyThreadState* __tstate = wxPyBeginAllowThreads();
40132 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
40133 wxPyEndAllowThreads(__tstate);
40134 if (PyErr_Occurred()) SWIG_fail;
40135 }
40136 {
40137 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40138 }
40139 return resultobj;
40140 fail:
40141 return NULL;
40142 }
40143
40144
40145 SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40146 PyObject *resultobj = 0;
40147 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40148 wxPoint *arg2 = 0 ;
40149 wxPoint *arg3 = 0 ;
40150 bool arg4 ;
40151 bool arg5 ;
40152 bool result;
40153 void *argp1 = 0 ;
40154 int res1 = 0 ;
40155 wxPoint temp2 ;
40156 wxPoint temp3 ;
40157 bool val4 ;
40158 int ecode4 = 0 ;
40159 bool val5 ;
40160 int ecode5 = 0 ;
40161 PyObject * obj0 = 0 ;
40162 PyObject * obj1 = 0 ;
40163 PyObject * obj2 = 0 ;
40164 PyObject * obj3 = 0 ;
40165 PyObject * obj4 = 0 ;
40166 char * kwnames[] = {
40167 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
40168 };
40169
40170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40172 if (!SWIG_IsOK(res1)) {
40173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40174 }
40175 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40176 {
40177 arg2 = &temp2;
40178 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40179 }
40180 {
40181 arg3 = &temp3;
40182 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40183 }
40184 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40185 if (!SWIG_IsOK(ecode4)) {
40186 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
40187 }
40188 arg4 = static_cast< bool >(val4);
40189 ecode5 = SWIG_AsVal_bool(obj4, &val5);
40190 if (!SWIG_IsOK(ecode5)) {
40191 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
40192 }
40193 arg5 = static_cast< bool >(val5);
40194 {
40195 PyThreadState* __tstate = wxPyBeginAllowThreads();
40196 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
40197 wxPyEndAllowThreads(__tstate);
40198 if (PyErr_Occurred()) SWIG_fail;
40199 }
40200 {
40201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40202 }
40203 return resultobj;
40204 fail:
40205 return NULL;
40206 }
40207
40208
40209 SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40210 PyObject *obj;
40211 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40212 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
40213 return SWIG_Py_Void();
40214 }
40215
40216 SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40217 return SWIG_Python_InitShadowInstance(args);
40218 }
40219
40220 SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
40221 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
40222 return 1;
40223 }
40224
40225
40226 SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
40227 PyObject *pyobj = 0;
40228
40229 {
40230 #if wxUSE_UNICODE
40231 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40232 #else
40233 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40234 #endif
40235 }
40236 return pyobj;
40237 }
40238
40239
40240 SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40241 PyObject *resultobj = 0;
40242 wxWindow *arg1 = (wxWindow *) 0 ;
40243 int arg2 = (int) -1 ;
40244 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
40245 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
40246 wxPoint const &arg4_defvalue = wxDefaultPosition ;
40247 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
40248 wxSize const &arg5_defvalue = wxDefaultSize ;
40249 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
40250 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40251 wxValidator const &arg7_defvalue = wxDefaultValidator ;
40252 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
40253 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
40254 wxString *arg8 = (wxString *) &arg8_defvalue ;
40255 wxDatePickerCtrl *result = 0 ;
40256 void *argp1 = 0 ;
40257 int res1 = 0 ;
40258 int val2 ;
40259 int ecode2 = 0 ;
40260 void *argp3 = 0 ;
40261 int res3 = 0 ;
40262 wxPoint temp4 ;
40263 wxSize temp5 ;
40264 long val6 ;
40265 int ecode6 = 0 ;
40266 void *argp7 = 0 ;
40267 int res7 = 0 ;
40268 bool temp8 = false ;
40269 PyObject * obj0 = 0 ;
40270 PyObject * obj1 = 0 ;
40271 PyObject * obj2 = 0 ;
40272 PyObject * obj3 = 0 ;
40273 PyObject * obj4 = 0 ;
40274 PyObject * obj5 = 0 ;
40275 PyObject * obj6 = 0 ;
40276 PyObject * obj7 = 0 ;
40277 char * kwnames[] = {
40278 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40279 };
40280
40281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
40282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40283 if (!SWIG_IsOK(res1)) {
40284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
40285 }
40286 arg1 = reinterpret_cast< wxWindow * >(argp1);
40287 if (obj1) {
40288 ecode2 = SWIG_AsVal_int(obj1, &val2);
40289 if (!SWIG_IsOK(ecode2)) {
40290 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
40291 }
40292 arg2 = static_cast< int >(val2);
40293 }
40294 if (obj2) {
40295 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
40296 if (!SWIG_IsOK(res3)) {
40297 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40298 }
40299 if (!argp3) {
40300 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40301 }
40302 arg3 = reinterpret_cast< wxDateTime * >(argp3);
40303 }
40304 if (obj3) {
40305 {
40306 arg4 = &temp4;
40307 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
40308 }
40309 }
40310 if (obj4) {
40311 {
40312 arg5 = &temp5;
40313 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
40314 }
40315 }
40316 if (obj5) {
40317 ecode6 = SWIG_AsVal_long(obj5, &val6);
40318 if (!SWIG_IsOK(ecode6)) {
40319 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
40320 }
40321 arg6 = static_cast< long >(val6);
40322 }
40323 if (obj6) {
40324 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
40325 if (!SWIG_IsOK(res7)) {
40326 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
40327 }
40328 if (!argp7) {
40329 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
40330 }
40331 arg7 = reinterpret_cast< wxValidator * >(argp7);
40332 }
40333 if (obj7) {
40334 {
40335 arg8 = wxString_in_helper(obj7);
40336 if (arg8 == NULL) SWIG_fail;
40337 temp8 = true;
40338 }
40339 }
40340 {
40341 if (!wxPyCheckForApp()) SWIG_fail;
40342 PyThreadState* __tstate = wxPyBeginAllowThreads();
40343 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
40344 wxPyEndAllowThreads(__tstate);
40345 if (PyErr_Occurred()) SWIG_fail;
40346 }
40347 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
40348 {
40349 if (temp8)
40350 delete arg8;
40351 }
40352 return resultobj;
40353 fail:
40354 {
40355 if (temp8)
40356 delete arg8;
40357 }
40358 return NULL;
40359 }
40360
40361
40362 SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40363 PyObject *resultobj = 0;
40364 wxDatePickerCtrl *result = 0 ;
40365
40366 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
40367 {
40368 if (!wxPyCheckForApp()) SWIG_fail;
40369 PyThreadState* __tstate = wxPyBeginAllowThreads();
40370 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
40371 wxPyEndAllowThreads(__tstate);
40372 if (PyErr_Occurred()) SWIG_fail;
40373 }
40374 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
40375 return resultobj;
40376 fail:
40377 return NULL;
40378 }
40379
40380
40381 SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40382 PyObject *resultobj = 0;
40383 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40384 wxWindow *arg2 = (wxWindow *) 0 ;
40385 int arg3 = (int) -1 ;
40386 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
40387 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
40388 wxPoint const &arg5_defvalue = wxDefaultPosition ;
40389 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
40390 wxSize const &arg6_defvalue = wxDefaultSize ;
40391 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
40392 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40393 wxValidator const &arg8_defvalue = wxDefaultValidator ;
40394 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
40395 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
40396 wxString *arg9 = (wxString *) &arg9_defvalue ;
40397 bool result;
40398 void *argp1 = 0 ;
40399 int res1 = 0 ;
40400 void *argp2 = 0 ;
40401 int res2 = 0 ;
40402 int val3 ;
40403 int ecode3 = 0 ;
40404 void *argp4 = 0 ;
40405 int res4 = 0 ;
40406 wxPoint temp5 ;
40407 wxSize temp6 ;
40408 long val7 ;
40409 int ecode7 = 0 ;
40410 void *argp8 = 0 ;
40411 int res8 = 0 ;
40412 bool temp9 = false ;
40413 PyObject * obj0 = 0 ;
40414 PyObject * obj1 = 0 ;
40415 PyObject * obj2 = 0 ;
40416 PyObject * obj3 = 0 ;
40417 PyObject * obj4 = 0 ;
40418 PyObject * obj5 = 0 ;
40419 PyObject * obj6 = 0 ;
40420 PyObject * obj7 = 0 ;
40421 PyObject * obj8 = 0 ;
40422 char * kwnames[] = {
40423 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40424 };
40425
40426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
40427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40428 if (!SWIG_IsOK(res1)) {
40429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40430 }
40431 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40432 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40433 if (!SWIG_IsOK(res2)) {
40434 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
40435 }
40436 arg2 = reinterpret_cast< wxWindow * >(argp2);
40437 if (obj2) {
40438 ecode3 = SWIG_AsVal_int(obj2, &val3);
40439 if (!SWIG_IsOK(ecode3)) {
40440 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
40441 }
40442 arg3 = static_cast< int >(val3);
40443 }
40444 if (obj3) {
40445 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
40446 if (!SWIG_IsOK(res4)) {
40447 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
40448 }
40449 if (!argp4) {
40450 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
40451 }
40452 arg4 = reinterpret_cast< wxDateTime * >(argp4);
40453 }
40454 if (obj4) {
40455 {
40456 arg5 = &temp5;
40457 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
40458 }
40459 }
40460 if (obj5) {
40461 {
40462 arg6 = &temp6;
40463 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
40464 }
40465 }
40466 if (obj6) {
40467 ecode7 = SWIG_AsVal_long(obj6, &val7);
40468 if (!SWIG_IsOK(ecode7)) {
40469 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
40470 }
40471 arg7 = static_cast< long >(val7);
40472 }
40473 if (obj7) {
40474 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
40475 if (!SWIG_IsOK(res8)) {
40476 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
40477 }
40478 if (!argp8) {
40479 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
40480 }
40481 arg8 = reinterpret_cast< wxValidator * >(argp8);
40482 }
40483 if (obj8) {
40484 {
40485 arg9 = wxString_in_helper(obj8);
40486 if (arg9 == NULL) SWIG_fail;
40487 temp9 = true;
40488 }
40489 }
40490 {
40491 PyThreadState* __tstate = wxPyBeginAllowThreads();
40492 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
40493 wxPyEndAllowThreads(__tstate);
40494 if (PyErr_Occurred()) SWIG_fail;
40495 }
40496 {
40497 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40498 }
40499 {
40500 if (temp9)
40501 delete arg9;
40502 }
40503 return resultobj;
40504 fail:
40505 {
40506 if (temp9)
40507 delete arg9;
40508 }
40509 return NULL;
40510 }
40511
40512
40513 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40514 PyObject *resultobj = 0;
40515 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40516 wxDateTime *arg2 = 0 ;
40517 void *argp1 = 0 ;
40518 int res1 = 0 ;
40519 void *argp2 = 0 ;
40520 int res2 = 0 ;
40521 PyObject * obj0 = 0 ;
40522 PyObject * obj1 = 0 ;
40523 char * kwnames[] = {
40524 (char *) "self",(char *) "dt", NULL
40525 };
40526
40527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
40528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40529 if (!SWIG_IsOK(res1)) {
40530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40531 }
40532 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40533 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
40534 if (!SWIG_IsOK(res2)) {
40535 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40536 }
40537 if (!argp2) {
40538 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40539 }
40540 arg2 = reinterpret_cast< wxDateTime * >(argp2);
40541 {
40542 PyThreadState* __tstate = wxPyBeginAllowThreads();
40543 (arg1)->SetValue((wxDateTime const &)*arg2);
40544 wxPyEndAllowThreads(__tstate);
40545 if (PyErr_Occurred()) SWIG_fail;
40546 }
40547 resultobj = SWIG_Py_Void();
40548 return resultobj;
40549 fail:
40550 return NULL;
40551 }
40552
40553
40554 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40555 PyObject *resultobj = 0;
40556 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40557 wxDateTime result;
40558 void *argp1 = 0 ;
40559 int res1 = 0 ;
40560 PyObject *swig_obj[1] ;
40561
40562 if (!args) SWIG_fail;
40563 swig_obj[0] = args;
40564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40565 if (!SWIG_IsOK(res1)) {
40566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
40567 }
40568 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40569 {
40570 PyThreadState* __tstate = wxPyBeginAllowThreads();
40571 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
40572 wxPyEndAllowThreads(__tstate);
40573 if (PyErr_Occurred()) SWIG_fail;
40574 }
40575 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40576 return resultobj;
40577 fail:
40578 return NULL;
40579 }
40580
40581
40582 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40583 PyObject *resultobj = 0;
40584 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40585 wxDateTime *arg2 = 0 ;
40586 wxDateTime *arg3 = 0 ;
40587 void *argp1 = 0 ;
40588 int res1 = 0 ;
40589 void *argp2 = 0 ;
40590 int res2 = 0 ;
40591 void *argp3 = 0 ;
40592 int res3 = 0 ;
40593 PyObject * obj0 = 0 ;
40594 PyObject * obj1 = 0 ;
40595 PyObject * obj2 = 0 ;
40596 char * kwnames[] = {
40597 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
40598 };
40599
40600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40602 if (!SWIG_IsOK(res1)) {
40603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40604 }
40605 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40606 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
40607 if (!SWIG_IsOK(res2)) {
40608 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40609 }
40610 if (!argp2) {
40611 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40612 }
40613 arg2 = reinterpret_cast< wxDateTime * >(argp2);
40614 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
40615 if (!SWIG_IsOK(res3)) {
40616 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40617 }
40618 if (!argp3) {
40619 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40620 }
40621 arg3 = reinterpret_cast< wxDateTime * >(argp3);
40622 {
40623 PyThreadState* __tstate = wxPyBeginAllowThreads();
40624 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
40625 wxPyEndAllowThreads(__tstate);
40626 if (PyErr_Occurred()) SWIG_fail;
40627 }
40628 resultobj = SWIG_Py_Void();
40629 return resultobj;
40630 fail:
40631 return NULL;
40632 }
40633
40634
40635 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40636 PyObject *resultobj = 0;
40637 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40638 wxDateTime result;
40639 void *argp1 = 0 ;
40640 int res1 = 0 ;
40641 PyObject *swig_obj[1] ;
40642
40643 if (!args) SWIG_fail;
40644 swig_obj[0] = args;
40645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40646 if (!SWIG_IsOK(res1)) {
40647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40648 }
40649 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40650 {
40651 PyThreadState* __tstate = wxPyBeginAllowThreads();
40652 result = wxDatePickerCtrl_GetLowerLimit(arg1);
40653 wxPyEndAllowThreads(__tstate);
40654 if (PyErr_Occurred()) SWIG_fail;
40655 }
40656 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40657 return resultobj;
40658 fail:
40659 return NULL;
40660 }
40661
40662
40663 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40664 PyObject *resultobj = 0;
40665 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40666 wxDateTime result;
40667 void *argp1 = 0 ;
40668 int res1 = 0 ;
40669 PyObject *swig_obj[1] ;
40670
40671 if (!args) SWIG_fail;
40672 swig_obj[0] = args;
40673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40674 if (!SWIG_IsOK(res1)) {
40675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40676 }
40677 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40678 {
40679 PyThreadState* __tstate = wxPyBeginAllowThreads();
40680 result = wxDatePickerCtrl_GetUpperLimit(arg1);
40681 wxPyEndAllowThreads(__tstate);
40682 if (PyErr_Occurred()) SWIG_fail;
40683 }
40684 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40685 return resultobj;
40686 fail:
40687 return NULL;
40688 }
40689
40690
40691 SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40692 PyObject *obj;
40693 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40694 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
40695 return SWIG_Py_Void();
40696 }
40697
40698 SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40699 return SWIG_Python_InitShadowInstance(args);
40700 }
40701
40702 static PyMethodDef SwigMethods[] = {
40703 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
40704 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
40705 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40706 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
40707 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
40708 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40709 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
40710 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
40711 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
40712 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
40713 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40714 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
40715 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
40716 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
40717 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
40718 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
40719 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
40720 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
40721 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
40722 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
40723 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
40724 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
40725 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
40726 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
40727 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
40728 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
40729 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
40730 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
40731 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40732 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
40733 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
40734 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40735 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
40736 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
40737 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
40738 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
40739 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40740 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
40741 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
40742 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
40743 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
40744 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40745 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
40746 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40747 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
40748 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
40749 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
40750 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
40751 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40752 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
40753 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40754 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
40755 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
40756 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
40757 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40758 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
40759 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
40760 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
40761 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
40762 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
40763 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
40764 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40765 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
40766 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
40767 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
40768 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
40769 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
40770 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
40771 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
40772 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
40773 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
40774 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
40775 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
40776 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
40777 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40778 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
40779 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
40780 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
40781 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
40782 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40783 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
40784 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
40785 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40786 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
40787 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
40788 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
40789 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
40790 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
40791 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
40792 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40793 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
40794 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
40795 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
40796 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
40797 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40798 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40799 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
40800 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
40801 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
40802 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
40803 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40804 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
40805 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
40806 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40807 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
40808 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
40809 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
40810 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
40811 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40812 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
40813 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40814 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
40815 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
40816 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40817 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
40818 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40819 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
40820 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40821 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40822 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40823 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
40824 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
40825 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
40826 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
40827 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40828 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
40829 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
40830 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
40831 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
40832 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40833 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
40834 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
40835 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
40836 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40837 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
40838 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
40839 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
40840 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
40841 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
40842 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
40843 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
40844 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
40845 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
40846 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
40847 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40848 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
40849 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
40850 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
40851 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
40852 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40853 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
40854 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
40855 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
40856 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
40857 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
40858 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
40859 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
40860 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
40861 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
40862 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
40863 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
40864 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
40865 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
40866 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
40867 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
40868 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
40869 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
40870 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
40871 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
40872 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
40873 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
40874 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
40875 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
40876 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
40877 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
40878 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
40879 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
40880 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
40881 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
40882 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
40883 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
40884 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
40885 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
40886 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
40887 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
40888 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
40889 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
40890 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
40891 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
40892 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40893 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
40894 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40895 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
40896 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
40897 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
40898 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
40899 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
40900 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
40901 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
40902 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
40903 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
40904 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
40905 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
40906 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
40907 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
40908 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
40909 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
40910 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
40911 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
40912 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
40913 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
40914 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
40915 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
40916 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
40917 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
40918 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
40919 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
40920 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
40921 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
40922 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
40923 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
40924 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
40925 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
40926 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
40927 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
40928 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
40929 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
40930 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
40931 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
40932 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
40933 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
40934 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
40935 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40936 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
40937 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
40938 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
40939 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40940 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
40941 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
40942 { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS, NULL},
40943 { (char *)"TextCtrl_HideNativeCaret", (PyCFunction)_wrap_TextCtrl_HideNativeCaret, METH_O, NULL},
40944 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
40945 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
40946 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40947 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
40948 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
40949 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
40950 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
40951 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
40952 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
40953 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
40954 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
40955 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
40956 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
40957 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40958 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
40959 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
40960 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
40961 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
40962 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
40963 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
40964 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40965 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
40966 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
40967 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
40968 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
40969 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40970 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
40971 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
40972 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
40973 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40974 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
40975 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
40976 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
40977 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
40978 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40979 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
40980 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
40981 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
40982 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
40983 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
40984 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
40985 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
40986 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
40987 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
40988 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
40989 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
40990 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
40991 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
40992 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
40993 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
40994 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
40995 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
40996 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
40997 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
40998 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
40999 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
41000 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
41001 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41002 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41003 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
41004 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
41005 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41006 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
41007 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
41008 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
41009 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
41010 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
41011 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
41012 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
41013 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
41014 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
41015 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41016 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
41017 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
41018 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
41019 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
41020 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41021 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
41022 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41023 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41024 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
41025 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
41026 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
41027 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
41028 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41029 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
41030 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41031 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41032 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
41033 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
41034 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
41035 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
41036 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
41037 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
41038 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
41039 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
41040 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
41041 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
41042 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
41043 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
41044 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
41045 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
41046 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
41047 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
41048 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
41049 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41050 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41051 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
41052 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
41053 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
41054 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
41055 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41056 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41057 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
41058 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41059 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
41060 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
41061 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
41062 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
41063 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
41064 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
41065 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
41066 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
41067 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41068 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41069 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
41070 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
41071 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
41072 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
41073 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
41074 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
41075 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
41076 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
41077 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
41078 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
41079 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
41080 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
41081 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
41082 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
41083 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
41084 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41085 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41086 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41087 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
41088 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41089 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
41090 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41091 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
41092 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41093 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
41094 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
41095 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
41096 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
41097 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41098 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
41099 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
41100 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
41101 { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41102 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
41103 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41104 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
41105 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
41106 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41107 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
41108 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
41109 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
41110 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
41111 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41112 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
41113 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
41114 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
41115 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41116 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
41117 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
41118 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
41119 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
41120 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41121 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
41122 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
41123 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
41124 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41125 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
41126 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
41127 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
41128 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
41129 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41130 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
41131 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
41132 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
41133 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
41134 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
41135 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
41136 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
41137 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
41138 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
41139 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41140 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
41141 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
41142 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
41143 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
41144 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41145 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
41146 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
41147 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
41148 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
41149 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41150 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
41151 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
41152 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
41153 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
41154 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
41155 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
41156 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
41157 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
41158 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
41159 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
41160 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
41161 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
41162 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
41163 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
41164 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
41165 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
41166 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
41167 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
41168 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
41169 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
41170 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
41171 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
41172 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41173 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41174 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41175 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41176 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41177 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
41178 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
41179 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
41180 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
41181 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
41182 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
41183 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
41184 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
41185 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
41186 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
41187 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
41188 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
41189 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
41190 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
41191 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
41192 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
41193 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
41194 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
41195 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
41196 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
41197 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
41198 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
41199 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
41200 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
41201 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
41202 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
41203 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
41204 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41205 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41206 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41207 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41208 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
41209 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
41210 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
41211 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
41212 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
41213 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
41214 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
41215 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
41216 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
41217 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
41218 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
41219 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
41220 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
41221 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
41222 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
41223 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41224 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
41225 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
41226 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
41227 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
41228 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
41229 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
41230 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41231 { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41232 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41233 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
41234 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
41235 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
41236 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
41237 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41238 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41239 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
41240 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
41241 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
41242 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
41243 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
41244 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
41245 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
41246 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
41247 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
41248 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
41249 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
41250 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
41251 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
41252 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
41253 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
41254 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
41255 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
41256 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41257 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
41258 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
41259 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
41260 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
41261 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
41262 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41263 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
41264 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41265 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41266 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
41267 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
41268 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
41269 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
41270 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
41271 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
41272 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
41273 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
41274 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
41275 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
41276 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
41277 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
41278 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
41279 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
41280 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
41281 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
41282 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
41283 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
41284 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
41285 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
41286 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
41287 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
41288 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
41289 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
41290 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
41291 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
41292 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
41293 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
41294 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
41295 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
41296 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
41297 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
41298 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
41299 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
41300 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
41301 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
41302 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
41303 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41304 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
41305 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
41306 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
41307 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
41308 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
41309 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
41310 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
41311 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
41312 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
41313 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
41314 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
41315 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
41316 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
41317 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
41318 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
41319 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
41320 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
41321 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
41322 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
41323 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
41324 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
41325 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
41326 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
41327 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
41328 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
41329 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
41330 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
41331 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41332 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
41333 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41334 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
41335 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41336 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41337 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41338 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41339 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
41340 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
41341 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
41342 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
41343 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
41344 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
41345 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
41346 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
41347 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
41348 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
41349 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41350 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41351 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41352 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41353 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41354 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
41355 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41356 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
41357 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
41358 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
41359 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
41360 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
41361 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41362 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
41363 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
41364 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
41365 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41366 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41367 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41368 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
41369 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
41370 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
41371 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
41372 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
41373 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
41374 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
41375 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41376 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
41377 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
41378 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41379 { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41380 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41381 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
41382 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41383 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
41384 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41385 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
41386 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
41387 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
41388 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
41389 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
41390 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41391 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
41392 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
41393 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41394 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41395 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41396 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41397 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41398 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41399 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
41400 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
41401 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41402 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
41403 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
41404 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
41405 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
41406 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41407 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
41408 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
41409 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
41410 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41411 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
41412 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41413 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
41414 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
41415 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
41416 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
41417 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
41418 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
41419 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
41420 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
41421 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
41422 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
41423 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
41424 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
41425 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
41426 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41427 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
41428 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
41429 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
41430 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
41431 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
41432 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
41433 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
41434 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
41435 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41436 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
41437 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
41438 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
41439 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
41440 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
41441 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
41442 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
41443 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
41444 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41445 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
41446 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41447 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
41448 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
41449 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
41450 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
41451 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
41452 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
41453 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41454 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
41455 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41456 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
41457 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
41458 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
41459 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
41460 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
41461 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
41462 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
41463 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
41464 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41465 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41466 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41467 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41468 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41469 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
41470 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41471 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
41472 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41473 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41474 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41475 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41476 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
41477 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41478 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
41479 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41480 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
41481 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
41482 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41483 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41484 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41485 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41486 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41487 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
41488 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41489 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
41490 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
41491 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
41492 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
41493 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
41494 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
41495 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
41496 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
41497 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
41498 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
41499 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
41500 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
41501 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41502 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41503 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
41504 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
41505 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
41506 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
41507 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
41508 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
41509 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41510 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
41511 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
41512 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
41513 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
41514 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
41515 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
41516 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
41517 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
41518 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
41519 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41520 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41521 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
41522 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41523 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
41524 { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41525 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41526 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41527 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
41528 { (char *)"TreeCtrl_SetState", (PyCFunction) _wrap_TreeCtrl_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
41529 { (char *)"TreeCtrl_GetState", (PyCFunction) _wrap_TreeCtrl_GetState, METH_VARARGS | METH_KEYWORDS, NULL},
41530 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41531 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
41532 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
41533 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41534 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
41535 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41536 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
41537 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
41538 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
41539 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
41540 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
41541 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
41542 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
41543 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
41544 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
41545 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
41546 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
41547 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
41548 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
41549 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
41550 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
41551 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
41552 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
41553 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
41554 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
41555 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
41556 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41557 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
41558 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41559 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
41560 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
41561 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
41562 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
41563 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
41564 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
41565 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
41566 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
41567 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
41568 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
41569 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
41570 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
41571 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
41572 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
41573 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
41574 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
41575 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
41576 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
41577 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
41578 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
41579 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
41580 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41581 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
41582 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41583 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
41584 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
41585 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
41586 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
41587 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
41588 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
41589 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41590 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
41591 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41592 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
41593 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
41594 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
41595 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
41596 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
41597 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
41598 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
41599 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
41600 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41601 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41602 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41603 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
41604 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41605 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
41606 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
41607 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
41608 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
41609 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
41610 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
41611 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
41612 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
41613 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
41614 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
41615 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
41616 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41617 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
41618 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
41619 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
41620 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
41621 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
41622 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
41623 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
41624 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
41625 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
41626 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
41627 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
41628 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
41629 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41630 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
41631 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41632 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41633 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
41634 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41635 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
41636 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
41637 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
41638 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
41639 { NULL, NULL, 0, NULL }
41640 };
41641
41642
41643 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
41644
41645 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
41646 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
41647 }
41648 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
41649 return (void *)((wxEvent *) ((wxMenuEvent *) x));
41650 }
41651 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
41652 return (void *)((wxEvent *) ((wxCloseEvent *) x));
41653 }
41654 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
41655 return (void *)((wxEvent *) ((wxMouseEvent *) x));
41656 }
41657 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
41658 return (void *)((wxEvent *) ((wxEraseEvent *) x));
41659 }
41660 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
41661 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
41662 }
41663 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
41664 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
41665 }
41666 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
41667 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
41668 }
41669 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
41670 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
41671 }
41672 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
41673 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
41674 }
41675 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
41676 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
41677 }
41678 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
41679 return (void *)((wxEvent *) ((wxPyEvent *) x));
41680 }
41681 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
41682 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
41683 }
41684 static void *_p_wxListEventTo_p_wxEvent(void *x) {
41685 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
41686 }
41687 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
41688 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
41689 }
41690 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
41691 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
41692 }
41693 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
41694 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
41695 }
41696 static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
41697 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
41698 }
41699 static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
41700 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
41701 }
41702 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
41703 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
41704 }
41705 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
41706 return (void *)((wxEvent *) ((wxIdleEvent *) x));
41707 }
41708 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
41709 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
41710 }
41711 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
41712 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
41713 }
41714 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
41715 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
41716 }
41717 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
41718 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
41719 }
41720 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
41721 return (void *)((wxEvent *) ((wxActivateEvent *) x));
41722 }
41723 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
41724 return (void *)((wxEvent *) ((wxSizeEvent *) x));
41725 }
41726 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
41727 return (void *)((wxEvent *) ((wxMoveEvent *) x));
41728 }
41729 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
41730 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
41731 }
41732 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
41733 return (void *)((wxEvent *) ((wxPaintEvent *) x));
41734 }
41735 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
41736 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
41737 }
41738 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
41739 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
41740 }
41741 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
41742 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
41743 }
41744 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
41745 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
41746 }
41747 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
41748 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
41749 }
41750 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
41751 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
41752 }
41753 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
41754 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
41755 }
41756 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
41757 return (void *)((wxEvent *) ((wxFocusEvent *) x));
41758 }
41759 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
41760 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
41761 }
41762 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
41763 return (void *)((wxEvent *) ((wxShowEvent *) x));
41764 }
41765 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
41766 return (void *)((wxEvent *) ((wxCommandEvent *) x));
41767 }
41768 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
41769 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
41770 }
41771 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
41772 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
41773 }
41774 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
41775 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
41776 }
41777 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
41778 return (void *)((wxEvent *) ((wxKeyEvent *) x));
41779 }
41780 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
41781 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
41782 }
41783 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
41784 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
41785 }
41786 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
41787 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
41788 }
41789 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
41790 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
41791 }
41792 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
41793 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
41794 }
41795 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
41796 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
41797 }
41798 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
41799 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
41800 }
41801 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
41802 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
41803 }
41804 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
41805 return (void *)((wxPyListCtrl *) ((wxListView *) x));
41806 }
41807 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
41808 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
41809 }
41810 static void *_p_wxToolBarTo_p_wxControl(void *x) {
41811 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
41812 }
41813 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
41814 return (void *)((wxControl *) ((wxToggleButton *) x));
41815 }
41816 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
41817 return (void *)((wxControl *) ((wxRadioButton *) x));
41818 }
41819 static void *_p_wxToolbookTo_p_wxControl(void *x) {
41820 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
41821 }
41822 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
41823 return (void *)((wxControl *) ((wxToolBarBase *) x));
41824 }
41825 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
41826 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
41827 }
41828 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
41829 return (void *)((wxControl *) ((wxPyListCtrl *) x));
41830 }
41831 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
41832 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
41833 }
41834 static void *_p_wxPyControlTo_p_wxControl(void *x) {
41835 return (void *)((wxControl *) ((wxPyControl *) x));
41836 }
41837 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
41838 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
41839 }
41840 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
41841 return (void *)((wxControl *) ((wxScrollBar *) x));
41842 }
41843 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
41844 return (void *)((wxControl *) ((wxControlWithItems *) x));
41845 }
41846 static void *_p_wxGaugeTo_p_wxControl(void *x) {
41847 return (void *)((wxControl *) ((wxGauge *) x));
41848 }
41849 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
41850 return (void *)((wxControl *) ((wxStaticLine *) x));
41851 }
41852 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
41853 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
41854 }
41855 static void *_p_wxListbookTo_p_wxControl(void *x) {
41856 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
41857 }
41858 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
41859 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
41860 }
41861 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
41862 return (void *)((wxControl *) ((wxCheckBox *) x));
41863 }
41864 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
41865 return (void *)((wxControl *) ((wxRadioBox *) x));
41866 }
41867 static void *_p_wxChoiceTo_p_wxControl(void *x) {
41868 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
41869 }
41870 static void *_p_wxListBoxTo_p_wxControl(void *x) {
41871 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
41872 }
41873 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
41874 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
41875 }
41876 static void *_p_wxListViewTo_p_wxControl(void *x) {
41877 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
41878 }
41879 static void *_p_wxNotebookTo_p_wxControl(void *x) {
41880 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
41881 }
41882 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
41883 return (void *)((wxControl *) ((wxStaticBitmap *) x));
41884 }
41885 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
41886 return (void *)((wxControl *) ((wxSpinCtrl *) x));
41887 }
41888 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
41889 return (void *)((wxControl *) ((wxStaticText *) x));
41890 }
41891 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
41892 return (void *)((wxControl *) ((wxStaticBox *) x));
41893 }
41894 static void *_p_wxSliderTo_p_wxControl(void *x) {
41895 return (void *)((wxControl *) ((wxSlider *) x));
41896 }
41897 static void *_p_wxTreebookTo_p_wxControl(void *x) {
41898 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
41899 }
41900 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
41901 return (void *)((wxControl *) ((wxSpinButton *) x));
41902 }
41903 static void *_p_wxButtonTo_p_wxControl(void *x) {
41904 return (void *)((wxControl *) ((wxButton *) x));
41905 }
41906 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
41907 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
41908 }
41909 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
41910 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
41911 }
41912 static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
41913 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
41914 }
41915 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
41916 return (void *)((wxControl *) ((wxTextCtrl *) x));
41917 }
41918 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
41919 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
41920 }
41921 static void *_p_wxComboBoxTo_p_wxChoice(void *x) {
41922 return (void *)((wxChoice *) ((wxComboBox *) x));
41923 }
41924 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
41925 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
41926 }
41927 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
41928 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
41929 }
41930 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
41931 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
41932 }
41933 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
41934 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
41935 }
41936 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
41937 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
41938 }
41939 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
41940 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
41941 }
41942 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
41943 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
41944 }
41945 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
41946 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
41947 }
41948 static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
41949 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
41950 }
41951 static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
41952 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
41953 }
41954 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
41955 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
41956 }
41957 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
41958 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
41959 }
41960 static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
41961 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
41962 }
41963 static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
41964 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
41965 }
41966 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
41967 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
41968 }
41969 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
41970 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
41971 }
41972 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
41973 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
41974 }
41975 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
41976 return (void *)((wxEvtHandler *) ((wxValidator *) x));
41977 }
41978 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
41979 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
41980 }
41981 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
41982 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
41983 }
41984 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
41985 return (void *)((wxEvtHandler *) ((wxMenu *) x));
41986 }
41987 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
41988 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
41989 }
41990 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
41991 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
41992 }
41993 static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
41994 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
41995 }
41996 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
41997 return (void *)((wxEvtHandler *) ((wxWindow *) x));
41998 }
41999 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
42000 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
42001 }
42002 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
42003 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
42004 }
42005 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
42006 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
42007 }
42008 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
42009 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
42010 }
42011 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
42012 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42013 }
42014 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
42015 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
42016 }
42017 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
42018 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
42019 }
42020 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
42021 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
42022 }
42023 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
42024 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
42025 }
42026 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
42027 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
42028 }
42029 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
42030 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
42031 }
42032 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
42033 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
42034 }
42035 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
42036 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
42037 }
42038 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
42039 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
42040 }
42041 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
42042 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
42043 }
42044 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
42045 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
42046 }
42047 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
42048 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
42049 }
42050 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
42051 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42052 }
42053 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
42054 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
42055 }
42056 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
42057 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
42058 }
42059 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
42060 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
42061 }
42062 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
42063 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
42064 }
42065 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
42066 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
42067 }
42068 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
42069 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
42070 }
42071 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
42072 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
42073 }
42074 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
42075 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
42076 }
42077 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
42078 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
42079 }
42080 static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
42081 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
42082 }
42083 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
42084 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
42085 }
42086 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
42087 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
42088 }
42089 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
42090 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
42091 }
42092 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
42093 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42094 }
42095 static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
42096 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
42097 }
42098 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
42099 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
42100 }
42101 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
42102 return (void *)((wxListBox *) ((wxCheckListBox *) x));
42103 }
42104 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
42105 return (void *)((wxButton *) ((wxBitmapButton *) x));
42106 }
42107 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
42108 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
42109 }
42110 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
42111 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
42112 }
42113 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
42114 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
42115 }
42116 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
42117 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
42118 }
42119 static void *_p_wxToolbookTo_p_wxObject(void *x) {
42120 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
42121 }
42122 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
42123 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
42124 }
42125 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
42126 return (void *)((wxObject *) ((wxSizerItem *) x));
42127 }
42128 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
42129 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
42130 }
42131 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
42132 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
42133 }
42134 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
42135 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
42136 }
42137 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
42138 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
42139 }
42140 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
42141 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
42142 }
42143 static void *_p_wxSizerTo_p_wxObject(void *x) {
42144 return (void *)((wxObject *) ((wxSizer *) x));
42145 }
42146 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
42147 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
42148 }
42149 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
42150 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
42151 }
42152 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
42153 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
42154 }
42155 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
42156 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
42157 }
42158 static void *_p_wxEventTo_p_wxObject(void *x) {
42159 return (void *)((wxObject *) ((wxEvent *) x));
42160 }
42161 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
42162 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
42163 }
42164 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
42165 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
42166 }
42167 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
42168 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
42169 }
42170 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
42171 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
42172 }
42173 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
42174 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
42175 }
42176 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
42177 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42178 }
42179 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
42180 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
42181 }
42182 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
42183 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
42184 }
42185 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
42186 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
42187 }
42188 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
42189 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
42190 }
42191 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
42192 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
42193 }
42194 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
42195 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
42196 }
42197 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
42198 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
42199 }
42200 static void *_p_wxControlTo_p_wxObject(void *x) {
42201 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
42202 }
42203 static void *_p_wxPyControlTo_p_wxObject(void *x) {
42204 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
42205 }
42206 static void *_p_wxGaugeTo_p_wxObject(void *x) {
42207 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
42208 }
42209 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
42210 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
42211 }
42212 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
42213 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
42214 }
42215 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
42216 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
42217 }
42218 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
42219 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
42220 }
42221 static void *_p_wxChoiceTo_p_wxObject(void *x) {
42222 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
42223 }
42224 static void *_p_wxFSFileTo_p_wxObject(void *x) {
42225 return (void *)((wxObject *) ((wxFSFile *) x));
42226 }
42227 static void *_p_wxPySizerTo_p_wxObject(void *x) {
42228 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
42229 }
42230 static void *_p_wxTreebookTo_p_wxObject(void *x) {
42231 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
42232 }
42233 static void *_p_wxListViewTo_p_wxObject(void *x) {
42234 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
42235 }
42236 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
42237 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
42238 }
42239 static void *_p_wxNotebookTo_p_wxObject(void *x) {
42240 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
42241 }
42242 static void *_p_wxPyEventTo_p_wxObject(void *x) {
42243 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
42244 }
42245 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
42246 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
42247 }
42248 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
42249 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
42250 }
42251 static void *_p_wxListbookTo_p_wxObject(void *x) {
42252 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
42253 }
42254 static void *_p_wxShowEventTo_p_wxObject(void *x) {
42255 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
42256 }
42257 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
42258 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
42259 }
42260 static void *_p_wxSliderTo_p_wxObject(void *x) {
42261 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
42262 }
42263 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
42264 return (void *)((wxObject *) ((wxMenuItem *) x));
42265 }
42266 static void *_p_wxDateEventTo_p_wxObject(void *x) {
42267 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
42268 }
42269 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
42270 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
42271 }
42272 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
42273 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
42274 }
42275 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
42276 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
42277 }
42278 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
42279 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
42280 }
42281 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
42282 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
42283 }
42284 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
42285 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
42286 }
42287 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
42288 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
42289 }
42290 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
42291 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
42292 }
42293 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
42294 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
42295 }
42296 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
42297 return (void *)((wxObject *) ((wxContextHelp *) x));
42298 }
42299 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
42300 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
42301 }
42302 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
42303 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
42304 }
42305 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
42306 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
42307 }
42308 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
42309 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
42310 }
42311 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
42312 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
42313 }
42314 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
42315 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
42316 }
42317 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
42318 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
42319 }
42320 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
42321 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
42322 }
42323 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
42324 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
42325 }
42326 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
42327 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
42328 }
42329 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
42330 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
42331 }
42332 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
42333 return (void *)((wxObject *) ((wxImageHandler *) x));
42334 }
42335 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
42336 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
42337 }
42338 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
42339 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
42340 }
42341 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
42342 return (void *)((wxObject *) ((wxEvtHandler *) x));
42343 }
42344 static void *_p_wxListEventTo_p_wxObject(void *x) {
42345 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
42346 }
42347 static void *_p_wxListBoxTo_p_wxObject(void *x) {
42348 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
42349 }
42350 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
42351 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42352 }
42353 static void *_p_wxButtonTo_p_wxObject(void *x) {
42354 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
42355 }
42356 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
42357 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
42358 }
42359 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
42360 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
42361 }
42362 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
42363 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42364 }
42365 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
42366 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
42367 }
42368 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
42369 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
42370 }
42371 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
42372 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
42373 }
42374 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
42375 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
42376 }
42377 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
42378 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
42379 }
42380 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
42381 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
42382 }
42383 static void *_p_wxListItemTo_p_wxObject(void *x) {
42384 return (void *)((wxObject *) ((wxListItem *) x));
42385 }
42386 static void *_p_wxImageTo_p_wxObject(void *x) {
42387 return (void *)((wxObject *) ((wxImage *) x));
42388 }
42389 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
42390 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
42391 }
42392 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
42393 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
42394 }
42395 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
42396 return (void *)((wxObject *) ((wxGenericDragImage *) x));
42397 }
42398 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
42399 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
42400 }
42401 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
42402 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42403 }
42404 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
42405 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42406 }
42407 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
42408 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42409 }
42410 static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
42411 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42412 }
42413 static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
42414 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42415 }
42416 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
42417 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42418 }
42419 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
42420 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
42421 }
42422 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
42423 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
42424 }
42425 static void *_p_wxWindowTo_p_wxObject(void *x) {
42426 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
42427 }
42428 static void *_p_wxMenuTo_p_wxObject(void *x) {
42429 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
42430 }
42431 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
42432 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
42433 }
42434 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
42435 return (void *)((wxObject *) ((wxFileSystem *) x));
42436 }
42437 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
42438 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
42439 }
42440 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
42441 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
42442 }
42443 static void *_p_wxPyAppTo_p_wxObject(void *x) {
42444 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
42445 }
42446 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
42447 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
42448 }
42449 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
42450 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
42451 }
42452 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
42453 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
42454 }
42455 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
42456 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
42457 }
42458 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
42459 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
42460 }
42461 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
42462 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
42463 }
42464 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
42465 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
42466 }
42467 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
42468 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
42469 }
42470 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
42471 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
42472 }
42473 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
42474 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
42475 }
42476 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
42477 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
42478 }
42479 static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
42480 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
42481 }
42482 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
42483 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
42484 }
42485 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
42486 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
42487 }
42488 static void *_p_wxToolBarTo_p_wxObject(void *x) {
42489 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
42490 }
42491 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
42492 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
42493 }
42494 static void *_p_wxValidatorTo_p_wxObject(void *x) {
42495 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
42496 }
42497 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
42498 return (void *)((wxWindow *) ((wxMenuBar *) x));
42499 }
42500 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
42501 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
42502 }
42503 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
42504 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
42505 }
42506 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
42507 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
42508 }
42509 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
42510 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
42511 }
42512 static void *_p_wxToolbookTo_p_wxWindow(void *x) {
42513 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
42514 }
42515 static void *_p_wxControlTo_p_wxWindow(void *x) {
42516 return (void *)((wxWindow *) ((wxControl *) x));
42517 }
42518 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
42519 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
42520 }
42521 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
42522 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
42523 }
42524 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
42525 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
42526 }
42527 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
42528 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42529 }
42530 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
42531 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
42532 }
42533 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
42534 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
42535 }
42536 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
42537 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
42538 }
42539 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
42540 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
42541 }
42542 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
42543 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
42544 }
42545 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
42546 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
42547 }
42548 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
42549 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
42550 }
42551 static void *_p_wxListbookTo_p_wxWindow(void *x) {
42552 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
42553 }
42554 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
42555 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
42556 }
42557 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
42558 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
42559 }
42560 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
42561 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
42562 }
42563 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
42564 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42565 }
42566 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
42567 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
42568 }
42569 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
42570 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
42571 }
42572 static void *_p_wxListViewTo_p_wxWindow(void *x) {
42573 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
42574 }
42575 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
42576 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
42577 }
42578 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
42579 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
42580 }
42581 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
42582 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
42583 }
42584 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
42585 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
42586 }
42587 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
42588 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
42589 }
42590 static void *_p_wxSliderTo_p_wxWindow(void *x) {
42591 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
42592 }
42593 static void *_p_wxTreebookTo_p_wxWindow(void *x) {
42594 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
42595 }
42596 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
42597 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
42598 }
42599 static void *_p_wxButtonTo_p_wxWindow(void *x) {
42600 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
42601 }
42602 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
42603 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
42604 }
42605 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
42606 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42607 }
42608 static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
42609 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
42610 }
42611 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
42612 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
42613 }
42614 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42615 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42616 }
42617 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42618 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42619 }
42620 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42621 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42622 }
42623 static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42624 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42625 }
42626 static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42627 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42628 }
42629 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
42630 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42631 }
42632 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
42633 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
42634 }
42635 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
42636 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
42637 }
42638 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
42639 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
42640 }
42641 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
42642 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
42643 }
42644 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
42645 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
42646 }
42647 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
42648 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42649 }
42650 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
42651 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42652 }
42653 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
42654 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42655 }
42656 static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
42657 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42658 }
42659 static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
42660 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42661 }
42662 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
42663 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
42664 }
42665 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
42666 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
42667 }
42668 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
42669 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
42670 }
42671 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
42672 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
42673 }
42674 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
42675 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
42676 }
42677 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
42678 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
42679 }
42680 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
42681 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
42682 }
42683 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
42684 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
42685 }
42686 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
42687 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
42688 }
42689 static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) {
42690 return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x));
42691 }
42692 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
42693 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
42694 }
42695 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
42696 return (void *)((wxControlWithItems *) ((wxChoice *) x));
42697 }
42698 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
42699 return (void *)((wxControlWithItems *) ((wxListBox *) x));
42700 }
42701 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
42702 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
42703 }
42704 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
42705 return (void *)((wxValidator *) ((wxPyValidator *) x));
42706 }
42707 static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
42708 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
42709 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};
42710 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
42711 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
42712 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
42713 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
42714 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
42715 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
42716 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
42717 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
42718 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
42719 static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
42720 static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
42721 static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
42722 static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
42723 static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
42724 static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
42725 static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
42726 static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
42727 static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
42728 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
42729 static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
42730 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
42731 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
42732 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
42733 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
42734 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
42735 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
42736 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
42737 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
42738 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
42739 static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
42740 static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
42741 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
42742 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
42743 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
42744 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
42745 static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
42746 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
42747 static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
42748 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
42749 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
42750 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
42751 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
42752 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
42753 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
42754 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
42755 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
42756 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
42757 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
42758 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
42759 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
42760 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
42761 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
42762 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
42763 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
42764 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
42765 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
42766 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
42767 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
42768 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
42769 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
42770 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
42771 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
42772 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
42773 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
42774 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
42775 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
42776 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
42777 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
42778 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
42779 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
42780 static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
42781 static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
42782 static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
42783 static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
42784 static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
42785 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
42786 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
42787 static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
42788 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
42789 static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
42790 static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
42791 static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
42792 static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
42793 static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
42794 static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
42795 static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
42796 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
42797 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
42798 static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
42799 static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
42800 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
42801 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
42802 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
42803 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
42804 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
42805 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
42806 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
42807 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
42808 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
42809 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
42810 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
42811 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
42812 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
42813 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
42814 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
42815 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
42816 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
42817 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
42818 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
42819 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
42820 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
42821 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
42822 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
42823 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
42824 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
42825 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
42826 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
42827 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
42828 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
42829 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
42830 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
42831 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
42832 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
42833 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
42834 static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
42835 static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
42836 static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
42837 static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
42838 static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
42839 static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
42840 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
42841 static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
42842 static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
42843 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
42844 static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
42845 static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
42846 static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
42847 static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
42848 static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
42849 static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
42850 static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
42851 static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
42852 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
42853 static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
42854 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
42855 static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
42856 static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
42857 static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
42858 static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
42859 static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
42860 static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
42861 static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
42862 static swig_type_info _swigt__p_wxTreeCtrl = {"_p_wxTreeCtrl", "wxTreeCtrl *", 0, 0, (void*)0, 0};
42863 static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
42864 static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
42865 static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
42866 static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
42867 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
42868 static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
42869 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
42870
42871 static swig_type_info *swig_type_initial[] = {
42872 &_swigt__p_bool,
42873 &_swigt__p_char,
42874 &_swigt__p_form_ops_t,
42875 &_swigt__p_int,
42876 &_swigt__p_long,
42877 &_swigt__p_unsigned_char,
42878 &_swigt__p_unsigned_int,
42879 &_swigt__p_unsigned_long,
42880 &_swigt__p_void,
42881 &_swigt__p_wxANIHandler,
42882 &_swigt__p_wxAcceleratorTable,
42883 &_swigt__p_wxActivateEvent,
42884 &_swigt__p_wxArrayInt,
42885 &_swigt__p_wxArrayString,
42886 &_swigt__p_wxBMPHandler,
42887 &_swigt__p_wxBitmap,
42888 &_swigt__p_wxBitmapButton,
42889 &_swigt__p_wxBookCtrlBase,
42890 &_swigt__p_wxBookCtrlBaseEvent,
42891 &_swigt__p_wxBoxSizer,
42892 &_swigt__p_wxButton,
42893 &_swigt__p_wxCURHandler,
42894 &_swigt__p_wxCheckBox,
42895 &_swigt__p_wxCheckListBox,
42896 &_swigt__p_wxChildFocusEvent,
42897 &_swigt__p_wxChoice,
42898 &_swigt__p_wxChoicebook,
42899 &_swigt__p_wxChoicebookEvent,
42900 &_swigt__p_wxCloseEvent,
42901 &_swigt__p_wxColour,
42902 &_swigt__p_wxComboBox,
42903 &_swigt__p_wxCommandEvent,
42904 &_swigt__p_wxContextHelp,
42905 &_swigt__p_wxContextHelpButton,
42906 &_swigt__p_wxContextMenuEvent,
42907 &_swigt__p_wxControl,
42908 &_swigt__p_wxControlWithItems,
42909 &_swigt__p_wxCursor,
42910 &_swigt__p_wxDC,
42911 &_swigt__p_wxDateEvent,
42912 &_swigt__p_wxDatePickerCtrl,
42913 &_swigt__p_wxDateTime,
42914 &_swigt__p_wxDirFilterListCtrl,
42915 &_swigt__p_wxDisplayChangedEvent,
42916 &_swigt__p_wxDropFilesEvent,
42917 &_swigt__p_wxDuplexMode,
42918 &_swigt__p_wxEraseEvent,
42919 &_swigt__p_wxEvent,
42920 &_swigt__p_wxEvtHandler,
42921 &_swigt__p_wxFSFile,
42922 &_swigt__p_wxFileSystem,
42923 &_swigt__p_wxFlexGridSizer,
42924 &_swigt__p_wxFocusEvent,
42925 &_swigt__p_wxFont,
42926 &_swigt__p_wxGBSizerItem,
42927 &_swigt__p_wxGIFHandler,
42928 &_swigt__p_wxGauge,
42929 &_swigt__p_wxGenericDirCtrl,
42930 &_swigt__p_wxGenericDragImage,
42931 &_swigt__p_wxGridBagSizer,
42932 &_swigt__p_wxGridSizer,
42933 &_swigt__p_wxHelpEvent,
42934 &_swigt__p_wxHelpProvider,
42935 &_swigt__p_wxICOHandler,
42936 &_swigt__p_wxIcon,
42937 &_swigt__p_wxIconizeEvent,
42938 &_swigt__p_wxIdleEvent,
42939 &_swigt__p_wxImage,
42940 &_swigt__p_wxImageHandler,
42941 &_swigt__p_wxImageList,
42942 &_swigt__p_wxIndividualLayoutConstraint,
42943 &_swigt__p_wxInitDialogEvent,
42944 &_swigt__p_wxItemContainer,
42945 &_swigt__p_wxJPEGHandler,
42946 &_swigt__p_wxKeyEvent,
42947 &_swigt__p_wxLayoutConstraints,
42948 &_swigt__p_wxListBox,
42949 &_swigt__p_wxListEvent,
42950 &_swigt__p_wxListItem,
42951 &_swigt__p_wxListItemAttr,
42952 &_swigt__p_wxListView,
42953 &_swigt__p_wxListbook,
42954 &_swigt__p_wxListbookEvent,
42955 &_swigt__p_wxMaximizeEvent,
42956 &_swigt__p_wxMemoryDC,
42957 &_swigt__p_wxMenu,
42958 &_swigt__p_wxMenuBar,
42959 &_swigt__p_wxMenuEvent,
42960 &_swigt__p_wxMenuItem,
42961 &_swigt__p_wxMouseCaptureChangedEvent,
42962 &_swigt__p_wxMouseEvent,
42963 &_swigt__p_wxMoveEvent,
42964 &_swigt__p_wxNavigationKeyEvent,
42965 &_swigt__p_wxNcPaintEvent,
42966 &_swigt__p_wxNotebook,
42967 &_swigt__p_wxNotebookEvent,
42968 &_swigt__p_wxNotifyEvent,
42969 &_swigt__p_wxObject,
42970 &_swigt__p_wxPCXHandler,
42971 &_swigt__p_wxPNGHandler,
42972 &_swigt__p_wxPNMHandler,
42973 &_swigt__p_wxPaintEvent,
42974 &_swigt__p_wxPaletteChangedEvent,
42975 &_swigt__p_wxPaperSize,
42976 &_swigt__p_wxPoint,
42977 &_swigt__p_wxPyApp,
42978 &_swigt__p_wxPyCommandEvent,
42979 &_swigt__p_wxPyControl,
42980 &_swigt__p_wxPyEvent,
42981 &_swigt__p_wxPyImageHandler,
42982 &_swigt__p_wxPyListCtrl,
42983 &_swigt__p_wxPySizer,
42984 &_swigt__p_wxPyTreeCtrl,
42985 &_swigt__p_wxPyTreeItemData,
42986 &_swigt__p_wxPyValidator,
42987 &_swigt__p_wxQueryNewPaletteEvent,
42988 &_swigt__p_wxRadioBox,
42989 &_swigt__p_wxRadioButton,
42990 &_swigt__p_wxRect,
42991 &_swigt__p_wxScrollBar,
42992 &_swigt__p_wxScrollEvent,
42993 &_swigt__p_wxScrollWinEvent,
42994 &_swigt__p_wxSetCursorEvent,
42995 &_swigt__p_wxShowEvent,
42996 &_swigt__p_wxSimpleHelpProvider,
42997 &_swigt__p_wxSize,
42998 &_swigt__p_wxSizeEvent,
42999 &_swigt__p_wxSizer,
43000 &_swigt__p_wxSizerItem,
43001 &_swigt__p_wxSlider,
43002 &_swigt__p_wxSpinButton,
43003 &_swigt__p_wxSpinCtrl,
43004 &_swigt__p_wxSpinEvent,
43005 &_swigt__p_wxStaticBitmap,
43006 &_swigt__p_wxStaticBox,
43007 &_swigt__p_wxStaticBoxSizer,
43008 &_swigt__p_wxStaticLine,
43009 &_swigt__p_wxStaticText,
43010 &_swigt__p_wxStdDialogButtonSizer,
43011 &_swigt__p_wxString,
43012 &_swigt__p_wxSysColourChangedEvent,
43013 &_swigt__p_wxTIFFHandler,
43014 &_swigt__p_wxTextAttr,
43015 &_swigt__p_wxTextCtrl,
43016 &_swigt__p_wxTextUrlEvent,
43017 &_swigt__p_wxToggleButton,
43018 &_swigt__p_wxToolBar,
43019 &_swigt__p_wxToolBarBase,
43020 &_swigt__p_wxToolBarToolBase,
43021 &_swigt__p_wxToolbook,
43022 &_swigt__p_wxToolbookEvent,
43023 &_swigt__p_wxTreeCtrl,
43024 &_swigt__p_wxTreeEvent,
43025 &_swigt__p_wxTreeItemId,
43026 &_swigt__p_wxTreebook,
43027 &_swigt__p_wxTreebookEvent,
43028 &_swigt__p_wxUpdateUIEvent,
43029 &_swigt__p_wxValidator,
43030 &_swigt__p_wxVisualAttributes,
43031 &_swigt__p_wxWindow,
43032 &_swigt__p_wxWindowCreateEvent,
43033 &_swigt__p_wxWindowDestroyEvent,
43034 &_swigt__p_wxXPMHandler,
43035 };
43036
43037 static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
43038 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
43039 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
43040 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
43041 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
43042 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
43043 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
43044 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
43045 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
43046 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
43047 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
43048 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
43049 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}};
43050 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}};
43051 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}};
43052 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}};
43053 static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
43054 static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
43055 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}};
43056 static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
43057 static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
43058 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
43059 static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
43060 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
43061 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
43062 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
43063 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
43064 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
43065 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
43066 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
43067 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
43068 static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}};
43069 static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
43070 static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
43071 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}};
43072 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}};
43073 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
43074 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
43075 static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
43076 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
43077 static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
43078 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
43079 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
43080 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
43081 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
43082 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
43083 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
43084 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
43085 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
43086 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
43087 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
43088 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
43089 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
43090 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
43091 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
43092 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
43093 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
43094 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43095 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43096 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43097 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43098 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
43099 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
43100 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
43101 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
43102 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
43103 static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}};
43104 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
43105 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
43106 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
43107 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
43108 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}};
43109 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
43110 static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
43111 static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
43112 static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
43113 static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
43114 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}};
43115 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
43116 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
43117 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}};
43118 static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
43119 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}};
43120 static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
43121 static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
43122 static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
43123 static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
43124 static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
43125 static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
43126 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
43127 static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
43128 static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
43129 static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
43130 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}};
43131 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
43132 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
43133 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
43134 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
43135 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
43136 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
43137 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
43138 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
43139 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
43140 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
43141 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
43142 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
43143 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
43144 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
43145 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
43146 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
43147 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
43148 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
43149 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
43150 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
43151 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
43152 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
43153 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
43154 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
43155 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
43156 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
43157 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
43158 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
43159 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
43160 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
43161 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelp, _p_wxContextHelpTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxListItem, _p_wxListItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDragImage, _p_wxGenericDragImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarToolBase, _p_wxToolBarToolBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
43162 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
43163 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
43164 static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
43165 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}};
43166 static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
43167 static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
43168 static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
43169 static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
43170 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
43171 static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
43172 static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
43173 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
43174 static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
43175 static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
43176 static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
43177 static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
43178 static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
43179 static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
43180 static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
43181 static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
43182 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
43183 static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
43184 static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
43185 static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
43186 static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
43187 static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
43188 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}};
43189 static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
43190 static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
43191 static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
43192 static swig_cast_info _swigc__p_wxTreeCtrl[] = { {&_swigt__p_wxTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
43193 static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
43194 static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
43195 static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
43196 static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
43197 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}};
43198 static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
43199 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}};
43200
43201 static swig_cast_info *swig_cast_initial[] = {
43202 _swigc__p_bool,
43203 _swigc__p_char,
43204 _swigc__p_form_ops_t,
43205 _swigc__p_int,
43206 _swigc__p_long,
43207 _swigc__p_unsigned_char,
43208 _swigc__p_unsigned_int,
43209 _swigc__p_unsigned_long,
43210 _swigc__p_void,
43211 _swigc__p_wxANIHandler,
43212 _swigc__p_wxAcceleratorTable,
43213 _swigc__p_wxActivateEvent,
43214 _swigc__p_wxArrayInt,
43215 _swigc__p_wxArrayString,
43216 _swigc__p_wxBMPHandler,
43217 _swigc__p_wxBitmap,
43218 _swigc__p_wxBitmapButton,
43219 _swigc__p_wxBookCtrlBase,
43220 _swigc__p_wxBookCtrlBaseEvent,
43221 _swigc__p_wxBoxSizer,
43222 _swigc__p_wxButton,
43223 _swigc__p_wxCURHandler,
43224 _swigc__p_wxCheckBox,
43225 _swigc__p_wxCheckListBox,
43226 _swigc__p_wxChildFocusEvent,
43227 _swigc__p_wxChoice,
43228 _swigc__p_wxChoicebook,
43229 _swigc__p_wxChoicebookEvent,
43230 _swigc__p_wxCloseEvent,
43231 _swigc__p_wxColour,
43232 _swigc__p_wxComboBox,
43233 _swigc__p_wxCommandEvent,
43234 _swigc__p_wxContextHelp,
43235 _swigc__p_wxContextHelpButton,
43236 _swigc__p_wxContextMenuEvent,
43237 _swigc__p_wxControl,
43238 _swigc__p_wxControlWithItems,
43239 _swigc__p_wxCursor,
43240 _swigc__p_wxDC,
43241 _swigc__p_wxDateEvent,
43242 _swigc__p_wxDatePickerCtrl,
43243 _swigc__p_wxDateTime,
43244 _swigc__p_wxDirFilterListCtrl,
43245 _swigc__p_wxDisplayChangedEvent,
43246 _swigc__p_wxDropFilesEvent,
43247 _swigc__p_wxDuplexMode,
43248 _swigc__p_wxEraseEvent,
43249 _swigc__p_wxEvent,
43250 _swigc__p_wxEvtHandler,
43251 _swigc__p_wxFSFile,
43252 _swigc__p_wxFileSystem,
43253 _swigc__p_wxFlexGridSizer,
43254 _swigc__p_wxFocusEvent,
43255 _swigc__p_wxFont,
43256 _swigc__p_wxGBSizerItem,
43257 _swigc__p_wxGIFHandler,
43258 _swigc__p_wxGauge,
43259 _swigc__p_wxGenericDirCtrl,
43260 _swigc__p_wxGenericDragImage,
43261 _swigc__p_wxGridBagSizer,
43262 _swigc__p_wxGridSizer,
43263 _swigc__p_wxHelpEvent,
43264 _swigc__p_wxHelpProvider,
43265 _swigc__p_wxICOHandler,
43266 _swigc__p_wxIcon,
43267 _swigc__p_wxIconizeEvent,
43268 _swigc__p_wxIdleEvent,
43269 _swigc__p_wxImage,
43270 _swigc__p_wxImageHandler,
43271 _swigc__p_wxImageList,
43272 _swigc__p_wxIndividualLayoutConstraint,
43273 _swigc__p_wxInitDialogEvent,
43274 _swigc__p_wxItemContainer,
43275 _swigc__p_wxJPEGHandler,
43276 _swigc__p_wxKeyEvent,
43277 _swigc__p_wxLayoutConstraints,
43278 _swigc__p_wxListBox,
43279 _swigc__p_wxListEvent,
43280 _swigc__p_wxListItem,
43281 _swigc__p_wxListItemAttr,
43282 _swigc__p_wxListView,
43283 _swigc__p_wxListbook,
43284 _swigc__p_wxListbookEvent,
43285 _swigc__p_wxMaximizeEvent,
43286 _swigc__p_wxMemoryDC,
43287 _swigc__p_wxMenu,
43288 _swigc__p_wxMenuBar,
43289 _swigc__p_wxMenuEvent,
43290 _swigc__p_wxMenuItem,
43291 _swigc__p_wxMouseCaptureChangedEvent,
43292 _swigc__p_wxMouseEvent,
43293 _swigc__p_wxMoveEvent,
43294 _swigc__p_wxNavigationKeyEvent,
43295 _swigc__p_wxNcPaintEvent,
43296 _swigc__p_wxNotebook,
43297 _swigc__p_wxNotebookEvent,
43298 _swigc__p_wxNotifyEvent,
43299 _swigc__p_wxObject,
43300 _swigc__p_wxPCXHandler,
43301 _swigc__p_wxPNGHandler,
43302 _swigc__p_wxPNMHandler,
43303 _swigc__p_wxPaintEvent,
43304 _swigc__p_wxPaletteChangedEvent,
43305 _swigc__p_wxPaperSize,
43306 _swigc__p_wxPoint,
43307 _swigc__p_wxPyApp,
43308 _swigc__p_wxPyCommandEvent,
43309 _swigc__p_wxPyControl,
43310 _swigc__p_wxPyEvent,
43311 _swigc__p_wxPyImageHandler,
43312 _swigc__p_wxPyListCtrl,
43313 _swigc__p_wxPySizer,
43314 _swigc__p_wxPyTreeCtrl,
43315 _swigc__p_wxPyTreeItemData,
43316 _swigc__p_wxPyValidator,
43317 _swigc__p_wxQueryNewPaletteEvent,
43318 _swigc__p_wxRadioBox,
43319 _swigc__p_wxRadioButton,
43320 _swigc__p_wxRect,
43321 _swigc__p_wxScrollBar,
43322 _swigc__p_wxScrollEvent,
43323 _swigc__p_wxScrollWinEvent,
43324 _swigc__p_wxSetCursorEvent,
43325 _swigc__p_wxShowEvent,
43326 _swigc__p_wxSimpleHelpProvider,
43327 _swigc__p_wxSize,
43328 _swigc__p_wxSizeEvent,
43329 _swigc__p_wxSizer,
43330 _swigc__p_wxSizerItem,
43331 _swigc__p_wxSlider,
43332 _swigc__p_wxSpinButton,
43333 _swigc__p_wxSpinCtrl,
43334 _swigc__p_wxSpinEvent,
43335 _swigc__p_wxStaticBitmap,
43336 _swigc__p_wxStaticBox,
43337 _swigc__p_wxStaticBoxSizer,
43338 _swigc__p_wxStaticLine,
43339 _swigc__p_wxStaticText,
43340 _swigc__p_wxStdDialogButtonSizer,
43341 _swigc__p_wxString,
43342 _swigc__p_wxSysColourChangedEvent,
43343 _swigc__p_wxTIFFHandler,
43344 _swigc__p_wxTextAttr,
43345 _swigc__p_wxTextCtrl,
43346 _swigc__p_wxTextUrlEvent,
43347 _swigc__p_wxToggleButton,
43348 _swigc__p_wxToolBar,
43349 _swigc__p_wxToolBarBase,
43350 _swigc__p_wxToolBarToolBase,
43351 _swigc__p_wxToolbook,
43352 _swigc__p_wxToolbookEvent,
43353 _swigc__p_wxTreeCtrl,
43354 _swigc__p_wxTreeEvent,
43355 _swigc__p_wxTreeItemId,
43356 _swigc__p_wxTreebook,
43357 _swigc__p_wxTreebookEvent,
43358 _swigc__p_wxUpdateUIEvent,
43359 _swigc__p_wxValidator,
43360 _swigc__p_wxVisualAttributes,
43361 _swigc__p_wxWindow,
43362 _swigc__p_wxWindowCreateEvent,
43363 _swigc__p_wxWindowDestroyEvent,
43364 _swigc__p_wxXPMHandler,
43365 };
43366
43367
43368 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
43369
43370 static swig_const_info swig_const_table[] = {
43371 {0, 0, 0, 0.0, 0, 0}};
43372
43373 #ifdef __cplusplus
43374 }
43375 #endif
43376 /* -----------------------------------------------------------------------------
43377 * Type initialization:
43378 * This problem is tough by the requirement that no dynamic
43379 * memory is used. Also, since swig_type_info structures store pointers to
43380 * swig_cast_info structures and swig_cast_info structures store pointers back
43381 * to swig_type_info structures, we need some lookup code at initialization.
43382 * The idea is that swig generates all the structures that are needed.
43383 * The runtime then collects these partially filled structures.
43384 * The SWIG_InitializeModule function takes these initial arrays out of
43385 * swig_module, and does all the lookup, filling in the swig_module.types
43386 * array with the correct data and linking the correct swig_cast_info
43387 * structures together.
43388 *
43389 * The generated swig_type_info structures are assigned staticly to an initial
43390 * array. We just loop though that array, and handle each type individually.
43391 * First we lookup if this type has been already loaded, and if so, use the
43392 * loaded structure instead of the generated one. Then we have to fill in the
43393 * cast linked list. The cast data is initially stored in something like a
43394 * two-dimensional array. Each row corresponds to a type (there are the same
43395 * number of rows as there are in the swig_type_initial array). Each entry in
43396 * a column is one of the swig_cast_info structures for that type.
43397 * The cast_initial array is actually an array of arrays, because each row has
43398 * a variable number of columns. So to actually build the cast linked list,
43399 * we find the array of casts associated with the type, and loop through it
43400 * adding the casts to the list. The one last trick we need to do is making
43401 * sure the type pointer in the swig_cast_info struct is correct.
43402 *
43403 * First off, we lookup the cast->type name to see if it is already loaded.
43404 * There are three cases to handle:
43405 * 1) If the cast->type has already been loaded AND the type we are adding
43406 * casting info to has not been loaded (it is in this module), THEN we
43407 * replace the cast->type pointer with the type pointer that has already
43408 * been loaded.
43409 * 2) If BOTH types (the one we are adding casting info to, and the
43410 * cast->type) are loaded, THEN the cast info has already been loaded by
43411 * the previous module so we just ignore it.
43412 * 3) Finally, if cast->type has not already been loaded, then we add that
43413 * swig_cast_info to the linked list (because the cast->type) pointer will
43414 * be correct.
43415 * ----------------------------------------------------------------------------- */
43416
43417 #ifdef __cplusplus
43418 extern "C" {
43419 #if 0
43420 } /* c-mode */
43421 #endif
43422 #endif
43423
43424 #if 0
43425 #define SWIGRUNTIME_DEBUG
43426 #endif
43427
43428 SWIGRUNTIME void
43429 SWIG_InitializeModule(void *clientdata) {
43430 size_t i;
43431 swig_module_info *module_head;
43432 static int init_run = 0;
43433
43434 clientdata = clientdata;
43435
43436 if (init_run) return;
43437 init_run = 1;
43438
43439 /* Initialize the swig_module */
43440 swig_module.type_initial = swig_type_initial;
43441 swig_module.cast_initial = swig_cast_initial;
43442
43443 /* Try and load any already created modules */
43444 module_head = SWIG_GetModule(clientdata);
43445 if (module_head) {
43446 swig_module.next = module_head->next;
43447 module_head->next = &swig_module;
43448 } else {
43449 /* This is the first module loaded */
43450 swig_module.next = &swig_module;
43451 SWIG_SetModule(clientdata, &swig_module);
43452 }
43453
43454 /* Now work on filling in swig_module.types */
43455 #ifdef SWIGRUNTIME_DEBUG
43456 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
43457 #endif
43458 for (i = 0; i < swig_module.size; ++i) {
43459 swig_type_info *type = 0;
43460 swig_type_info *ret;
43461 swig_cast_info *cast;
43462
43463 #ifdef SWIGRUNTIME_DEBUG
43464 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
43465 #endif
43466
43467 /* if there is another module already loaded */
43468 if (swig_module.next != &swig_module) {
43469 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
43470 }
43471 if (type) {
43472 /* Overwrite clientdata field */
43473 #ifdef SWIGRUNTIME_DEBUG
43474 printf("SWIG_InitializeModule: found type %s\n", type->name);
43475 #endif
43476 if (swig_module.type_initial[i]->clientdata) {
43477 type->clientdata = swig_module.type_initial[i]->clientdata;
43478 #ifdef SWIGRUNTIME_DEBUG
43479 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
43480 #endif
43481 }
43482 } else {
43483 type = swig_module.type_initial[i];
43484 }
43485
43486 /* Insert casting types */
43487 cast = swig_module.cast_initial[i];
43488 while (cast->type) {
43489 /* Don't need to add information already in the list */
43490 ret = 0;
43491 #ifdef SWIGRUNTIME_DEBUG
43492 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
43493 #endif
43494 if (swig_module.next != &swig_module) {
43495 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
43496 #ifdef SWIGRUNTIME_DEBUG
43497 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
43498 #endif
43499 }
43500 if (ret) {
43501 if (type == swig_module.type_initial[i]) {
43502 #ifdef SWIGRUNTIME_DEBUG
43503 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
43504 #endif
43505 cast->type = ret;
43506 ret = 0;
43507 } else {
43508 /* Check for casting already in the list */
43509 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
43510 #ifdef SWIGRUNTIME_DEBUG
43511 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
43512 #endif
43513 if (!ocast) ret = 0;
43514 }
43515 }
43516
43517 if (!ret) {
43518 #ifdef SWIGRUNTIME_DEBUG
43519 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
43520 #endif
43521 if (type->cast) {
43522 type->cast->prev = cast;
43523 cast->next = type->cast;
43524 }
43525 type->cast = cast;
43526 }
43527 cast++;
43528 }
43529 /* Set entry in modules->types array equal to the type */
43530 swig_module.types[i] = type;
43531 }
43532 swig_module.types[i] = 0;
43533
43534 #ifdef SWIGRUNTIME_DEBUG
43535 printf("**** SWIG_InitializeModule: Cast List ******\n");
43536 for (i = 0; i < swig_module.size; ++i) {
43537 int j = 0;
43538 swig_cast_info *cast = swig_module.cast_initial[i];
43539 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
43540 while (cast->type) {
43541 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
43542 cast++;
43543 ++j;
43544 }
43545 printf("---- Total casts: %d\n",j);
43546 }
43547 printf("**** SWIG_InitializeModule: Cast List ******\n");
43548 #endif
43549 }
43550
43551 /* This function will propagate the clientdata field of type to
43552 * any new swig_type_info structures that have been added into the list
43553 * of equivalent types. It is like calling
43554 * SWIG_TypeClientData(type, clientdata) a second time.
43555 */
43556 SWIGRUNTIME void
43557 SWIG_PropagateClientData(void) {
43558 size_t i;
43559 swig_cast_info *equiv;
43560 static int init_run = 0;
43561
43562 if (init_run) return;
43563 init_run = 1;
43564
43565 for (i = 0; i < swig_module.size; i++) {
43566 if (swig_module.types[i]->clientdata) {
43567 equiv = swig_module.types[i]->cast;
43568 while (equiv) {
43569 if (!equiv->converter) {
43570 if (equiv->type && !equiv->type->clientdata)
43571 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
43572 }
43573 equiv = equiv->next;
43574 }
43575 }
43576 }
43577 }
43578
43579 #ifdef __cplusplus
43580 #if 0
43581 {
43582 /* c-mode */
43583 #endif
43584 }
43585 #endif
43586
43587
43588
43589 #ifdef __cplusplus
43590 extern "C" {
43591 #endif
43592
43593 /* Python-specific SWIG API */
43594 #define SWIG_newvarlink() SWIG_Python_newvarlink()
43595 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
43596 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
43597
43598 /* -----------------------------------------------------------------------------
43599 * global variable support code.
43600 * ----------------------------------------------------------------------------- */
43601
43602 typedef struct swig_globalvar {
43603 char *name; /* Name of global variable */
43604 PyObject *(*get_attr)(void); /* Return the current value */
43605 int (*set_attr)(PyObject *); /* Set the value */
43606 struct swig_globalvar *next;
43607 } swig_globalvar;
43608
43609 typedef struct swig_varlinkobject {
43610 PyObject_HEAD
43611 swig_globalvar *vars;
43612 } swig_varlinkobject;
43613
43614 SWIGINTERN PyObject *
43615 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
43616 return PyString_FromString("<Swig global variables>");
43617 }
43618
43619 SWIGINTERN PyObject *
43620 swig_varlink_str(swig_varlinkobject *v) {
43621 PyObject *str = PyString_FromString("(");
43622 swig_globalvar *var;
43623 for (var = v->vars; var; var=var->next) {
43624 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
43625 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
43626 }
43627 PyString_ConcatAndDel(&str,PyString_FromString(")"));
43628 return str;
43629 }
43630
43631 SWIGINTERN int
43632 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
43633 PyObject *str = swig_varlink_str(v);
43634 fprintf(fp,"Swig global variables ");
43635 fprintf(fp,"%s\n", PyString_AsString(str));
43636 Py_DECREF(str);
43637 return 0;
43638 }
43639
43640 SWIGINTERN void
43641 swig_varlink_dealloc(swig_varlinkobject *v) {
43642 swig_globalvar *var = v->vars;
43643 while (var) {
43644 swig_globalvar *n = var->next;
43645 free(var->name);
43646 free(var);
43647 var = n;
43648 }
43649 }
43650
43651 SWIGINTERN PyObject *
43652 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
43653 PyObject *res = NULL;
43654 swig_globalvar *var = v->vars;
43655 while (var) {
43656 if (strcmp(var->name,n) == 0) {
43657 res = (*var->get_attr)();
43658 break;
43659 }
43660 var = var->next;
43661 }
43662 if (res == NULL && !PyErr_Occurred()) {
43663 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
43664 }
43665 return res;
43666 }
43667
43668 SWIGINTERN int
43669 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
43670 int res = 1;
43671 swig_globalvar *var = v->vars;
43672 while (var) {
43673 if (strcmp(var->name,n) == 0) {
43674 res = (*var->set_attr)(p);
43675 break;
43676 }
43677 var = var->next;
43678 }
43679 if (res == 1 && !PyErr_Occurred()) {
43680 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
43681 }
43682 return res;
43683 }
43684
43685 SWIGINTERN PyTypeObject*
43686 swig_varlink_type(void) {
43687 static char varlink__doc__[] = "Swig var link object";
43688 static PyTypeObject varlink_type;
43689 static int type_init = 0;
43690 if (!type_init) {
43691 const PyTypeObject tmp
43692 = {
43693 PyObject_HEAD_INIT(NULL)
43694 0, /* Number of items in variable part (ob_size) */
43695 (char *)"swigvarlink", /* Type name (tp_name) */
43696 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
43697 0, /* Itemsize (tp_itemsize) */
43698 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
43699 (printfunc) swig_varlink_print, /* Print (tp_print) */
43700 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
43701 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
43702 0, /* tp_compare */
43703 (reprfunc) swig_varlink_repr, /* tp_repr */
43704 0, /* tp_as_number */
43705 0, /* tp_as_sequence */
43706 0, /* tp_as_mapping */
43707 0, /* tp_hash */
43708 0, /* tp_call */
43709 (reprfunc)swig_varlink_str, /* tp_str */
43710 0, /* tp_getattro */
43711 0, /* tp_setattro */
43712 0, /* tp_as_buffer */
43713 0, /* tp_flags */
43714 varlink__doc__, /* tp_doc */
43715 0, /* tp_traverse */
43716 0, /* tp_clear */
43717 0, /* tp_richcompare */
43718 0, /* tp_weaklistoffset */
43719 #if PY_VERSION_HEX >= 0x02020000
43720 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
43721 #endif
43722 #if PY_VERSION_HEX >= 0x02030000
43723 0, /* tp_del */
43724 #endif
43725 #ifdef COUNT_ALLOCS
43726 0,0,0,0 /* tp_alloc -> tp_next */
43727 #endif
43728 };
43729 varlink_type = tmp;
43730 varlink_type.ob_type = &PyType_Type;
43731 type_init = 1;
43732 }
43733 return &varlink_type;
43734 }
43735
43736 /* Create a variable linking object for use later */
43737 SWIGINTERN PyObject *
43738 SWIG_Python_newvarlink(void) {
43739 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
43740 if (result) {
43741 result->vars = 0;
43742 }
43743 return ((PyObject*) result);
43744 }
43745
43746 SWIGINTERN void
43747 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
43748 swig_varlinkobject *v = (swig_varlinkobject *) p;
43749 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
43750 if (gv) {
43751 size_t size = strlen(name)+1;
43752 gv->name = (char *)malloc(size);
43753 if (gv->name) {
43754 strncpy(gv->name,name,size);
43755 gv->get_attr = get_attr;
43756 gv->set_attr = set_attr;
43757 gv->next = v->vars;
43758 }
43759 }
43760 v->vars = gv;
43761 }
43762
43763 SWIGINTERN PyObject *
43764 SWIG_globals() {
43765 static PyObject *_SWIG_globals = 0;
43766 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
43767 return _SWIG_globals;
43768 }
43769
43770 /* -----------------------------------------------------------------------------
43771 * constants/methods manipulation
43772 * ----------------------------------------------------------------------------- */
43773
43774 /* Install Constants */
43775 SWIGINTERN void
43776 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
43777 PyObject *obj = 0;
43778 size_t i;
43779 for (i = 0; constants[i].type; ++i) {
43780 switch(constants[i].type) {
43781 case SWIG_PY_POINTER:
43782 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
43783 break;
43784 case SWIG_PY_BINARY:
43785 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
43786 break;
43787 default:
43788 obj = 0;
43789 break;
43790 }
43791 if (obj) {
43792 PyDict_SetItemString(d, constants[i].name, obj);
43793 Py_DECREF(obj);
43794 }
43795 }
43796 }
43797
43798 /* -----------------------------------------------------------------------------*/
43799 /* Fix SwigMethods to carry the callback ptrs when needed */
43800 /* -----------------------------------------------------------------------------*/
43801
43802 SWIGINTERN void
43803 SWIG_Python_FixMethods(PyMethodDef *methods,
43804 swig_const_info *const_table,
43805 swig_type_info **types,
43806 swig_type_info **types_initial) {
43807 size_t i;
43808 for (i = 0; methods[i].ml_name; ++i) {
43809 char *c = methods[i].ml_doc;
43810 if (c && (c = strstr(c, "swig_ptr: "))) {
43811 int j;
43812 swig_const_info *ci = 0;
43813 char *name = c + 10;
43814 for (j = 0; const_table[j].type; ++j) {
43815 if (strncmp(const_table[j].name, name,
43816 strlen(const_table[j].name)) == 0) {
43817 ci = &(const_table[j]);
43818 break;
43819 }
43820 }
43821 if (ci) {
43822 size_t shift = (ci->ptype) - types;
43823 swig_type_info *ty = types_initial[shift];
43824 size_t ldoc = (c - methods[i].ml_doc);
43825 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
43826 char *ndoc = (char*)malloc(ldoc + lptr + 10);
43827 if (ndoc) {
43828 char *buff = ndoc;
43829 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
43830 if (ptr) {
43831 strncpy(buff, methods[i].ml_doc, ldoc);
43832 buff += ldoc;
43833 strncpy(buff, "swig_ptr: ", 10);
43834 buff += 10;
43835 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
43836 methods[i].ml_doc = ndoc;
43837 }
43838 }
43839 }
43840 }
43841 }
43842 }
43843
43844 #ifdef __cplusplus
43845 }
43846 #endif
43847
43848 /* -----------------------------------------------------------------------------*
43849 * Partial Init method
43850 * -----------------------------------------------------------------------------*/
43851
43852 #ifdef __cplusplus
43853 extern "C"
43854 #endif
43855 SWIGEXPORT void SWIG_init(void) {
43856 PyObject *m, *d;
43857
43858 /* Fix SwigMethods to carry the callback ptrs when needed */
43859 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
43860
43861 m = Py_InitModule((char *) SWIG_name, SwigMethods);
43862 d = PyModule_GetDict(m);
43863
43864 SWIG_InitializeModule(0);
43865 SWIG_InstallConstants(d,swig_const_table);
43866
43867
43868 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
43869 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
43870 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
43871 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
43872 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
43873 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
43874 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
43875 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
43876 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
43877 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
43878 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
43879 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
43880 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
43881 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
43882 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
43883 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
43884 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
43885 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
43886 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
43887 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
43888 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
43889 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
43890 SWIG_Python_SetConstant(d, "GA_PROGRESSBAR",SWIG_From_int(static_cast< int >(wxGA_PROGRESSBAR)));
43891 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
43892 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
43893 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
43894 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
43895 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
43896 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
43897 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
43898 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
43899 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
43900 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
43901 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
43902 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
43903 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
43904 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
43905 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
43906 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
43907 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
43908 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
43909 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
43910 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
43911 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
43912 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
43913 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
43914 SWIG_Python_SetConstant(d, "TE_LINEWRAP",SWIG_From_int(static_cast< int >(wxTE_LINEWRAP)));
43915 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
43916 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
43917 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
43918 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
43919 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
43920 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
43921 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
43922 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
43923 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
43924 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
43925 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
43926 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
43927 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
43928 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
43929 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
43930 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
43931 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
43932 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
43933 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
43934 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
43935 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
43936 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
43937 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
43938 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
43939 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
43940 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
43941 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
43942 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
43943 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
43944 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
43945 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
43946 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
43947 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
43948 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
43949 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
43950 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
43951 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
43952 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
43953 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
43954 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
43955 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
43956 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
43957 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
43958 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
43959 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
43960 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
43961 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
43962 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
43963 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
43964 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
43965 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
43966 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
43967 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
43968 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
43969 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
43970 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
43971 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
43972 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
43973 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
43974 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
43975 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
43976 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
43977 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
43978 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
43979 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
43980 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
43981 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
43982 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
43983 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
43984 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
43985 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
43986 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
43987 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
43988 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
43989 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
43990 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
43991 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
43992 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
43993 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
43994 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
43995 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
43996 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
43997 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
43998 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
43999 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
44000 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
44001 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
44002 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
44003 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
44004 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
44005 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
44006 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
44007 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
44008 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
44009 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
44010 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
44011 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
44012 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
44013 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
44014 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
44015 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
44016 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
44017 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
44018 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
44019 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
44020 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
44021 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
44022 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
44023 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
44024 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
44025 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
44026 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
44027 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
44028 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
44029 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
44030 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
44031 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
44032 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
44033 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
44034 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
44035 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
44036 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
44037 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
44038 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
44039 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
44040 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
44041 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
44042 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
44043 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
44044 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
44045 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
44046 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
44047 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
44048 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
44049 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
44050 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
44051 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
44052 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
44053 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
44054 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
44055 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
44056 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
44057 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
44058 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
44059 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
44060 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
44061 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
44062 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
44063 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
44064 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
44065 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
44066 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
44067 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
44068 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
44069 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
44070 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
44071 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
44072 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
44073 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
44074 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
44075 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
44076 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
44077 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
44078 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
44079 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
44080 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
44081 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
44082 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
44083 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
44084 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
44085 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
44086 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
44087 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
44088 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
44089 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
44090 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
44091 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
44092 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
44093 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
44094 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
44095 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
44096 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
44097 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
44098 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
44099 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
44100 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
44101 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
44102 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
44103 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
44104 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
44105 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
44106 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
44107 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
44108 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
44109 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
44110 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
44111 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
44112 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
44113 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
44114 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
44115 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
44116
44117 // Map renamed classes back to their common name for OOR
44118 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
44119
44120 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
44121 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
44122 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
44123 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
44124 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
44125 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
44126 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
44127 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
44128 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
44129 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
44130 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
44131 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
44132 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
44133 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
44134 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
44135 SWIG_Python_SetConstant(d, "TR_MAC_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_MAC_BUTTONS)));
44136 SWIG_Python_SetConstant(d, "TR_AQUA_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_AQUA_BUTTONS)));
44137 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
44138 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
44139 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
44140 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
44141 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
44142 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
44143 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
44144 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
44145 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
44146 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
44147 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
44148 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
44149 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
44150 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
44151 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
44152 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
44153 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
44154 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
44155 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
44156 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
44157 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
44158 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
44159 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
44160 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
44161 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
44162 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
44163 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
44164 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
44165 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
44166 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
44167 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
44168 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
44169 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
44170 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
44171 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
44172 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
44173 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
44174 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
44175 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
44176 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
44177
44178 // Map renamed classes back to their common name for OOR
44179 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
44180 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
44181
44182 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
44183 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
44184 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
44185 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
44186 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
44187 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
44188 SWIG_Python_SetConstant(d, "FRAME_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxFRAME_EX_CONTEXTHELP)));
44189 SWIG_Python_SetConstant(d, "DIALOG_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxDIALOG_EX_CONTEXTHELP)));
44190 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
44191 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
44192
44193 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
44194
44195 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
44196 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
44197 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
44198 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
44199 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
44200 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
44201 }
44202