]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_controls_wrap.cpp
Use correct DLL import/export specifier for multi-lib builds
[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 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
2812 SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
2813 if (clientData)
2814 {
2815 wxPyClientData* data = new wxPyClientData(clientData);
2816 self->Insert(item, pos, data);
2817 }
2818 else
2819 self->Insert(item, pos);
2820 }
2821
2822 SWIGINTERN int
2823 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2824 {
2825 long v = 0;
2826 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2827 return SWIG_TypeError;
2828 }
2829 else if (val)
2830 *val = (unsigned long)v;
2831 return SWIG_OK;
2832 }
2833
2834
2835 SWIGINTERN int
2836 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2837 {
2838 unsigned long v;
2839 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2840 if (SWIG_IsOK(res)) {
2841 if ((v > UINT_MAX)) {
2842 return SWIG_OverflowError;
2843 } else {
2844 if (val) *val = static_cast< unsigned int >(v);
2845 }
2846 }
2847 return res;
2848 }
2849
2850 SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
2851 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2852 wxArrayInt lst;
2853 self->GetSelections(lst);
2854 PyObject *tup = PyTuple_New(lst.GetCount());
2855 for (size_t i=0; i<lst.GetCount(); i++)
2856 {
2857 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2858 }
2859 wxPyEndBlockThreads(blocked);
2860 return tup;
2861 }
2862 SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
2863 #ifdef __WXMSW__
2864 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2865 self->GetItem(item)->SetTextColour(c);
2866 #endif
2867 }
2868 SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
2869 #ifdef __WXMSW__
2870 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2871 self->GetItem(item)->SetBackgroundColour(c);
2872 #endif
2873 }
2874 SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
2875 #ifdef __WXMSW__
2876 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2877 self->GetItem(item)->SetFont(f);
2878 #endif
2879 }
2880 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
2881 SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
2882 self->AppendText(text);
2883 }
2884 SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
2885 return self->GetValue().Mid(from, to - from);
2886 }
2887 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2888 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2889 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2890 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2891 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2892
2893 SWIGINTERNINLINE PyObject*
2894 SWIG_From_unsigned_SS_long (unsigned long value)
2895 {
2896 return (value > LONG_MAX) ?
2897 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2898 }
2899
2900
2901 SWIGINTERNINLINE PyObject *
2902 SWIG_From_size_t (size_t value)
2903 {
2904 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2905 }
2906
2907
2908 SWIGINTERNINLINE PyObject *
2909 SWIG_From_unsigned_SS_int (unsigned int value)
2910 {
2911 return SWIG_From_unsigned_SS_long (value);
2912 }
2913
2914
2915 #include <wx/slider.h>
2916
2917
2918 static const wxString wxPySliderNameStr(wxSliderNameStr);
2919 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2920
2921 #if !wxUSE_TOGGLEBTN
2922 // implement dummy items for platforms that don't have this class
2923
2924 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2925
2926 class wxToggleButton : public wxControl
2927 {
2928 public:
2929 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2930 const wxPoint&, const wxSize&, long,
2931 const wxValidator&, const wxString&)
2932 { wxPyRaiseNotImplemented(); }
2933
2934 wxToggleButton()
2935 { wxPyRaiseNotImplemented(); }
2936 };
2937 #endif
2938
2939 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
2940
2941 SWIGINTERNINLINE int
2942 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
2943 {
2944 unsigned long v;
2945 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2946 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2947 return res;
2948 }
2949
2950 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
2951 SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
2952 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2953 if (udata) {
2954 Py_INCREF(udata->m_obj);
2955 return udata->m_obj;
2956 } else {
2957 Py_INCREF(Py_None);
2958 return Py_None;
2959 }
2960 }
2961 SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
2962 self->SetClientData(new wxPyUserData(clientData));
2963 }
2964 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){
2965 wxPyUserData* udata = NULL;
2966 if (clientData && clientData != Py_None)
2967 udata = new wxPyUserData(clientData);
2968 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2969 shortHelp, longHelp, udata);
2970 }
2971 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){
2972 wxPyUserData* udata = NULL;
2973 if (clientData && clientData != Py_None)
2974 udata = new wxPyUserData(clientData);
2975 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2976 shortHelp, longHelp, udata);
2977 }
2978 SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
2979 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2980 if (udata) {
2981 Py_INCREF(udata->m_obj);
2982 return udata->m_obj;
2983 } else {
2984 Py_INCREF(Py_None);
2985 return Py_None;
2986 }
2987 }
2988 SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
2989 self->SetToolClientData(id, new wxPyUserData(clientData));
2990 }
2991
2992 #include <wx/listctrl.h>
2993
2994 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
2995 SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
2996 // Python aware sorting function for wxPyListCtrl
2997 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
2998 int retval = 0;
2999 PyObject* func = (PyObject*)funcPtr;
3000 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3001
3002 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3003 PyObject* result = PyEval_CallObject(func, args);
3004 Py_DECREF(args);
3005 if (result) {
3006 retval = PyInt_AsLong(result);
3007 Py_DECREF(result);
3008 }
3009
3010 wxPyEndBlockThreads(blocked);
3011 return retval;
3012 }
3013
3014 // C++ Version of a Python aware class
3015 class wxPyListCtrl : public wxListCtrl {
3016 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
3017 public:
3018 wxPyListCtrl() : wxListCtrl() {}
3019 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3020 const wxPoint& pos,
3021 const wxSize& size,
3022 long style,
3023 const wxValidator& validator,
3024 const wxString& name) :
3025 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3026
3027 bool Create(wxWindow* parent, wxWindowID id,
3028 const wxPoint& pos,
3029 const wxSize& size,
3030 long style,
3031 const wxValidator& validator,
3032 const wxString& name) {
3033 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3034 }
3035
3036 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
3037 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3038
3039 // use the virtual version to avoid a confusing assert in the base class
3040 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
3041 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
3042
3043 PYPRIVATE;
3044 };
3045
3046 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3047
3048 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
3049 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
3050 IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
3051 IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3052
3053
3054 SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
3055 wxListItem item;
3056 item.SetMask( wxLIST_MASK_STATE |
3057 wxLIST_MASK_TEXT |
3058 wxLIST_MASK_IMAGE |
3059 wxLIST_MASK_DATA |
3060 wxLIST_SET_ITEM |
3061 wxLIST_MASK_WIDTH |
3062 wxLIST_MASK_FORMAT
3063 );
3064 if (self->GetColumn(col, item))
3065 return new wxListItem(item);
3066 else
3067 return NULL;
3068 }
3069 SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
3070 wxListItem* info = new wxListItem;
3071 info->m_itemId = itemId;
3072 info->m_col = col;
3073 info->m_mask = 0xFFFF;
3074 self->GetItem(*info);
3075 return info;
3076 }
3077 SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
3078 wxPoint pos;
3079 self->GetItemPosition(item, pos);
3080 return pos;
3081 }
3082 SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
3083 wxRect rect;
3084 self->GetItemRect(item, rect, code);
3085 return rect;
3086 }
3087 SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
3088 if (!PyCallable_Check(func))
3089 return false;
3090 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3091 }
3092 SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
3093
3094 return self;
3095
3096
3097
3098 }
3099
3100 #include <wx/treectrl.h>
3101 #include "wx/wxPython/pytree.h"
3102
3103 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
3104 SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3105 SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3106 SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
3107 // C++ version of Python aware wxTreeCtrl
3108 class wxPyTreeCtrl : public wxTreeCtrl {
3109 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
3110 public:
3111 wxPyTreeCtrl() : wxTreeCtrl() {}
3112 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3113 const wxPoint& pos,
3114 const wxSize& size,
3115 long style,
3116 const wxValidator& validator,
3117 const wxString& name) :
3118 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3119
3120 bool Create(wxWindow *parent, wxWindowID id,
3121 const wxPoint& pos,
3122 const wxSize& size,
3123 long style,
3124 const wxValidator& validator,
3125 const wxString& name) {
3126 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3127 }
3128
3129
3130 int OnCompareItems(const wxTreeItemId& item1,
3131 const wxTreeItemId& item2) {
3132 int rval = 0;
3133 bool found;
3134 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3135 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
3136 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3137 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
3138 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3139 Py_DECREF(o1);
3140 Py_DECREF(o2);
3141 }
3142 wxPyEndBlockThreads(blocked);
3143 if (! found)
3144 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3145 return rval;
3146 }
3147 PYPRIVATE;
3148 };
3149
3150 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3151
3152
3153 SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3154 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3155 if (data == NULL) {
3156 data = new wxPyTreeItemData();
3157 data->SetId(item); // set the id
3158 self->SetItemData(item, data);
3159 }
3160 return data;
3161 }
3162 SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3163 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3164 if (data == NULL) {
3165 data = new wxPyTreeItemData();
3166 data->SetId(item); // set the id
3167 self->SetItemData(item, data);
3168 }
3169 return data->GetData();
3170 }
3171 SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
3172 data->SetId(item); // set the id
3173 self->SetItemData(item, data);
3174 }
3175 SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
3176 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3177 if (data == NULL) {
3178 data = new wxPyTreeItemData(obj);
3179 data->SetId(item); // set the id
3180 self->SetItemData(item, data);
3181 } else
3182 data->SetData(obj);
3183 }
3184 SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
3185 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3186 PyObject* rval = PyList_New(0);
3187 wxArrayTreeItemIds array;
3188 size_t num, x;
3189 num = self->GetSelections(array);
3190 for (x=0; x < num; x++) {
3191 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
3192 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
3193 PyList_Append(rval, item);
3194 Py_DECREF(item);
3195 }
3196 wxPyEndBlockThreads(blocked);
3197 return rval;
3198 }
3199 SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
3200 void* cookie = 0;
3201 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
3202 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3203 PyObject* tup = PyTuple_New(2);
3204 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3205 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3206 wxPyEndBlockThreads(blocked);
3207 return tup;
3208 }
3209 SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
3210 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
3211 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3212 PyObject* tup = PyTuple_New(2);
3213 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3214 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3215 wxPyEndBlockThreads(blocked);
3216 return tup;
3217 }
3218 SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
3219 wxRect rect;
3220 if (self->GetBoundingRect(item, rect, textOnly)) {
3221 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3222 wxRect* r = new wxRect(rect);
3223 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
3224 wxPyEndBlockThreads(blocked);
3225 return val;
3226 }
3227 else
3228 RETURN_NONE();
3229 }
3230 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
3231
3232 SWIGINTERNINLINE PyObject*
3233 SWIG_From_bool (bool value)
3234 {
3235 return PyBool_FromLong(value ? 1 : 0);
3236 }
3237
3238 // C++ version of Python aware wxControl
3239 class wxPyControl : public wxControl
3240 {
3241 DECLARE_DYNAMIC_CLASS(wxPyControl)
3242 public:
3243 wxPyControl() : wxControl() {}
3244 wxPyControl(wxWindow* parent, const wxWindowID id,
3245 const wxPoint& pos = wxDefaultPosition,
3246 const wxSize& size = wxDefaultSize,
3247 long style = 0,
3248 const wxValidator& validator=wxDefaultValidator,
3249 const wxString& name = wxPyControlNameStr)
3250 : wxControl(parent, id, pos, size, style, validator, name) {}
3251
3252 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
3253
3254 bool DoEraseBackground(wxDC* dc) {
3255 #ifdef __WXMSW__
3256 return wxWindow::DoEraseBackground(dc->GetHDC());
3257 #else
3258 dc->SetBackground(wxBrush(GetBackgroundColour()));
3259 dc->Clear();
3260 return true;
3261 #endif
3262 }
3263
3264 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3265 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3266 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3267 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3268
3269 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3270 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3271 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3272
3273 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3274 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3275
3276 DEC_PYCALLBACK__(InitDialog);
3277 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3278 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3279 DEC_PYCALLBACK_BOOL_(Validate);
3280
3281 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3282 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3283 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3284
3285 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3286 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3287
3288 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
3289 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
3290
3291 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3292
3293 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3294
3295 PYPRIVATE;
3296 };
3297
3298 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3299
3300 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3301 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3302 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3303 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3304
3305 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3306 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3307 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3308
3309 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3310 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3311
3312 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3313 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3314 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3315 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3316
3317 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3318 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3319 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3320
3321 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3322 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3323
3324 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
3325 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
3326
3327 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
3328
3329 IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3330
3331
3332
3333 SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
3334
3335 #include <wx/generic/dragimgg.h>
3336
3337 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
3338 SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
3339 wxDateTime rv;
3340 self->GetRange(&rv, NULL);
3341 return rv;
3342 }
3343 SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
3344 wxDateTime rv;
3345 self->GetRange(NULL, &rv);
3346 return rv;
3347 }
3348 #ifdef __cplusplus
3349 extern "C" {
3350 #endif
3351 SWIGINTERN int ButtonNameStr_set(PyObject *) {
3352 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3353 return 1;
3354 }
3355
3356
3357 SWIGINTERN PyObject *ButtonNameStr_get(void) {
3358 PyObject *pyobj = 0;
3359
3360 {
3361 #if wxUSE_UNICODE
3362 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3363 #else
3364 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3365 #endif
3366 }
3367 return pyobj;
3368 }
3369
3370
3371 SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3372 PyObject *resultobj = 0;
3373 wxWindow *arg1 = (wxWindow *) 0 ;
3374 int arg2 = (int) -1 ;
3375 wxString const &arg3_defvalue = wxPyEmptyString ;
3376 wxString *arg3 = (wxString *) &arg3_defvalue ;
3377 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3378 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3379 wxSize const &arg5_defvalue = wxDefaultSize ;
3380 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3381 long arg6 = (long) 0 ;
3382 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3383 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3384 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3385 wxString *arg8 = (wxString *) &arg8_defvalue ;
3386 wxButton *result = 0 ;
3387 void *argp1 = 0 ;
3388 int res1 = 0 ;
3389 int val2 ;
3390 int ecode2 = 0 ;
3391 bool temp3 = false ;
3392 wxPoint temp4 ;
3393 wxSize temp5 ;
3394 long val6 ;
3395 int ecode6 = 0 ;
3396 void *argp7 = 0 ;
3397 int res7 = 0 ;
3398 bool temp8 = false ;
3399 PyObject * obj0 = 0 ;
3400 PyObject * obj1 = 0 ;
3401 PyObject * obj2 = 0 ;
3402 PyObject * obj3 = 0 ;
3403 PyObject * obj4 = 0 ;
3404 PyObject * obj5 = 0 ;
3405 PyObject * obj6 = 0 ;
3406 PyObject * obj7 = 0 ;
3407 char * kwnames[] = {
3408 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3409 };
3410
3411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3413 if (!SWIG_IsOK(res1)) {
3414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3415 }
3416 arg1 = reinterpret_cast< wxWindow * >(argp1);
3417 if (obj1) {
3418 ecode2 = SWIG_AsVal_int(obj1, &val2);
3419 if (!SWIG_IsOK(ecode2)) {
3420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3421 }
3422 arg2 = static_cast< int >(val2);
3423 }
3424 if (obj2) {
3425 {
3426 arg3 = wxString_in_helper(obj2);
3427 if (arg3 == NULL) SWIG_fail;
3428 temp3 = true;
3429 }
3430 }
3431 if (obj3) {
3432 {
3433 arg4 = &temp4;
3434 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3435 }
3436 }
3437 if (obj4) {
3438 {
3439 arg5 = &temp5;
3440 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3441 }
3442 }
3443 if (obj5) {
3444 ecode6 = SWIG_AsVal_long(obj5, &val6);
3445 if (!SWIG_IsOK(ecode6)) {
3446 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3447 }
3448 arg6 = static_cast< long >(val6);
3449 }
3450 if (obj6) {
3451 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3452 if (!SWIG_IsOK(res7)) {
3453 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3454 }
3455 if (!argp7) {
3456 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3457 }
3458 arg7 = reinterpret_cast< wxValidator * >(argp7);
3459 }
3460 if (obj7) {
3461 {
3462 arg8 = wxString_in_helper(obj7);
3463 if (arg8 == NULL) SWIG_fail;
3464 temp8 = true;
3465 }
3466 }
3467 {
3468 if (!wxPyCheckForApp()) SWIG_fail;
3469 PyThreadState* __tstate = wxPyBeginAllowThreads();
3470 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3471 wxPyEndAllowThreads(__tstate);
3472 if (PyErr_Occurred()) SWIG_fail;
3473 }
3474 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3475 {
3476 if (temp3)
3477 delete arg3;
3478 }
3479 {
3480 if (temp8)
3481 delete arg8;
3482 }
3483 return resultobj;
3484 fail:
3485 {
3486 if (temp3)
3487 delete arg3;
3488 }
3489 {
3490 if (temp8)
3491 delete arg8;
3492 }
3493 return NULL;
3494 }
3495
3496
3497 SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3498 PyObject *resultobj = 0;
3499 wxButton *result = 0 ;
3500
3501 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3502 {
3503 if (!wxPyCheckForApp()) SWIG_fail;
3504 PyThreadState* __tstate = wxPyBeginAllowThreads();
3505 result = (wxButton *)new wxButton();
3506 wxPyEndAllowThreads(__tstate);
3507 if (PyErr_Occurred()) SWIG_fail;
3508 }
3509 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3510 return resultobj;
3511 fail:
3512 return NULL;
3513 }
3514
3515
3516 SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3517 PyObject *resultobj = 0;
3518 wxButton *arg1 = (wxButton *) 0 ;
3519 wxWindow *arg2 = (wxWindow *) 0 ;
3520 int arg3 = (int) -1 ;
3521 wxString const &arg4_defvalue = wxPyEmptyString ;
3522 wxString *arg4 = (wxString *) &arg4_defvalue ;
3523 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3524 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3525 wxSize const &arg6_defvalue = wxDefaultSize ;
3526 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3527 long arg7 = (long) 0 ;
3528 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3529 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3530 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3531 wxString *arg9 = (wxString *) &arg9_defvalue ;
3532 bool result;
3533 void *argp1 = 0 ;
3534 int res1 = 0 ;
3535 void *argp2 = 0 ;
3536 int res2 = 0 ;
3537 int val3 ;
3538 int ecode3 = 0 ;
3539 bool temp4 = false ;
3540 wxPoint temp5 ;
3541 wxSize temp6 ;
3542 long val7 ;
3543 int ecode7 = 0 ;
3544 void *argp8 = 0 ;
3545 int res8 = 0 ;
3546 bool temp9 = false ;
3547 PyObject * obj0 = 0 ;
3548 PyObject * obj1 = 0 ;
3549 PyObject * obj2 = 0 ;
3550 PyObject * obj3 = 0 ;
3551 PyObject * obj4 = 0 ;
3552 PyObject * obj5 = 0 ;
3553 PyObject * obj6 = 0 ;
3554 PyObject * obj7 = 0 ;
3555 PyObject * obj8 = 0 ;
3556 char * kwnames[] = {
3557 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3558 };
3559
3560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3562 if (!SWIG_IsOK(res1)) {
3563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3564 }
3565 arg1 = reinterpret_cast< wxButton * >(argp1);
3566 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3567 if (!SWIG_IsOK(res2)) {
3568 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3569 }
3570 arg2 = reinterpret_cast< wxWindow * >(argp2);
3571 if (obj2) {
3572 ecode3 = SWIG_AsVal_int(obj2, &val3);
3573 if (!SWIG_IsOK(ecode3)) {
3574 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3575 }
3576 arg3 = static_cast< int >(val3);
3577 }
3578 if (obj3) {
3579 {
3580 arg4 = wxString_in_helper(obj3);
3581 if (arg4 == NULL) SWIG_fail;
3582 temp4 = true;
3583 }
3584 }
3585 if (obj4) {
3586 {
3587 arg5 = &temp5;
3588 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3589 }
3590 }
3591 if (obj5) {
3592 {
3593 arg6 = &temp6;
3594 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3595 }
3596 }
3597 if (obj6) {
3598 ecode7 = SWIG_AsVal_long(obj6, &val7);
3599 if (!SWIG_IsOK(ecode7)) {
3600 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3601 }
3602 arg7 = static_cast< long >(val7);
3603 }
3604 if (obj7) {
3605 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3606 if (!SWIG_IsOK(res8)) {
3607 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3608 }
3609 if (!argp8) {
3610 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3611 }
3612 arg8 = reinterpret_cast< wxValidator * >(argp8);
3613 }
3614 if (obj8) {
3615 {
3616 arg9 = wxString_in_helper(obj8);
3617 if (arg9 == NULL) SWIG_fail;
3618 temp9 = true;
3619 }
3620 }
3621 {
3622 PyThreadState* __tstate = wxPyBeginAllowThreads();
3623 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3624 wxPyEndAllowThreads(__tstate);
3625 if (PyErr_Occurred()) SWIG_fail;
3626 }
3627 {
3628 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3629 }
3630 {
3631 if (temp4)
3632 delete arg4;
3633 }
3634 {
3635 if (temp9)
3636 delete arg9;
3637 }
3638 return resultobj;
3639 fail:
3640 {
3641 if (temp4)
3642 delete arg4;
3643 }
3644 {
3645 if (temp9)
3646 delete arg9;
3647 }
3648 return NULL;
3649 }
3650
3651
3652 SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3653 PyObject *resultobj = 0;
3654 wxButton *arg1 = (wxButton *) 0 ;
3655 void *argp1 = 0 ;
3656 int res1 = 0 ;
3657 PyObject *swig_obj[1] ;
3658
3659 if (!args) SWIG_fail;
3660 swig_obj[0] = args;
3661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3662 if (!SWIG_IsOK(res1)) {
3663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3664 }
3665 arg1 = reinterpret_cast< wxButton * >(argp1);
3666 {
3667 PyThreadState* __tstate = wxPyBeginAllowThreads();
3668 (arg1)->SetDefault();
3669 wxPyEndAllowThreads(__tstate);
3670 if (PyErr_Occurred()) SWIG_fail;
3671 }
3672 resultobj = SWIG_Py_Void();
3673 return resultobj;
3674 fail:
3675 return NULL;
3676 }
3677
3678
3679 SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3680 PyObject *resultobj = 0;
3681 wxSize result;
3682
3683 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3684 {
3685 PyThreadState* __tstate = wxPyBeginAllowThreads();
3686 result = wxButton::GetDefaultSize();
3687 wxPyEndAllowThreads(__tstate);
3688 if (PyErr_Occurred()) SWIG_fail;
3689 }
3690 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3691 return resultobj;
3692 fail:
3693 return NULL;
3694 }
3695
3696
3697 SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3698 PyObject *resultobj = 0;
3699 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3700 SwigValueWrapper<wxVisualAttributes > result;
3701 int val1 ;
3702 int ecode1 = 0 ;
3703 PyObject * obj0 = 0 ;
3704 char * kwnames[] = {
3705 (char *) "variant", NULL
3706 };
3707
3708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3709 if (obj0) {
3710 ecode1 = SWIG_AsVal_int(obj0, &val1);
3711 if (!SWIG_IsOK(ecode1)) {
3712 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3713 }
3714 arg1 = static_cast< wxWindowVariant >(val1);
3715 }
3716 {
3717 if (!wxPyCheckForApp()) SWIG_fail;
3718 PyThreadState* __tstate = wxPyBeginAllowThreads();
3719 result = wxButton::GetClassDefaultAttributes(arg1);
3720 wxPyEndAllowThreads(__tstate);
3721 if (PyErr_Occurred()) SWIG_fail;
3722 }
3723 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3724 return resultobj;
3725 fail:
3726 return NULL;
3727 }
3728
3729
3730 SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3731 PyObject *obj;
3732 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3733 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3734 return SWIG_Py_Void();
3735 }
3736
3737 SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3738 return SWIG_Python_InitShadowInstance(args);
3739 }
3740
3741 SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3742 PyObject *resultobj = 0;
3743 wxWindow *arg1 = (wxWindow *) 0 ;
3744 int arg2 = (int) -1 ;
3745 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3746 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3747 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3748 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3749 wxSize const &arg5_defvalue = wxDefaultSize ;
3750 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3751 long arg6 = (long) wxBU_AUTODRAW ;
3752 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3753 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3754 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3755 wxString *arg8 = (wxString *) &arg8_defvalue ;
3756 wxBitmapButton *result = 0 ;
3757 void *argp1 = 0 ;
3758 int res1 = 0 ;
3759 int val2 ;
3760 int ecode2 = 0 ;
3761 void *argp3 = 0 ;
3762 int res3 = 0 ;
3763 wxPoint temp4 ;
3764 wxSize temp5 ;
3765 long val6 ;
3766 int ecode6 = 0 ;
3767 void *argp7 = 0 ;
3768 int res7 = 0 ;
3769 bool temp8 = false ;
3770 PyObject * obj0 = 0 ;
3771 PyObject * obj1 = 0 ;
3772 PyObject * obj2 = 0 ;
3773 PyObject * obj3 = 0 ;
3774 PyObject * obj4 = 0 ;
3775 PyObject * obj5 = 0 ;
3776 PyObject * obj6 = 0 ;
3777 PyObject * obj7 = 0 ;
3778 char * kwnames[] = {
3779 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3780 };
3781
3782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3784 if (!SWIG_IsOK(res1)) {
3785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3786 }
3787 arg1 = reinterpret_cast< wxWindow * >(argp1);
3788 if (obj1) {
3789 ecode2 = SWIG_AsVal_int(obj1, &val2);
3790 if (!SWIG_IsOK(ecode2)) {
3791 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3792 }
3793 arg2 = static_cast< int >(val2);
3794 }
3795 if (obj2) {
3796 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3797 if (!SWIG_IsOK(res3)) {
3798 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3799 }
3800 if (!argp3) {
3801 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3802 }
3803 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3804 }
3805 if (obj3) {
3806 {
3807 arg4 = &temp4;
3808 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3809 }
3810 }
3811 if (obj4) {
3812 {
3813 arg5 = &temp5;
3814 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3815 }
3816 }
3817 if (obj5) {
3818 ecode6 = SWIG_AsVal_long(obj5, &val6);
3819 if (!SWIG_IsOK(ecode6)) {
3820 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3821 }
3822 arg6 = static_cast< long >(val6);
3823 }
3824 if (obj6) {
3825 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3826 if (!SWIG_IsOK(res7)) {
3827 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3828 }
3829 if (!argp7) {
3830 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3831 }
3832 arg7 = reinterpret_cast< wxValidator * >(argp7);
3833 }
3834 if (obj7) {
3835 {
3836 arg8 = wxString_in_helper(obj7);
3837 if (arg8 == NULL) SWIG_fail;
3838 temp8 = true;
3839 }
3840 }
3841 {
3842 if (!wxPyCheckForApp()) SWIG_fail;
3843 PyThreadState* __tstate = wxPyBeginAllowThreads();
3844 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3845 wxPyEndAllowThreads(__tstate);
3846 if (PyErr_Occurred()) SWIG_fail;
3847 }
3848 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3849 {
3850 if (temp8)
3851 delete arg8;
3852 }
3853 return resultobj;
3854 fail:
3855 {
3856 if (temp8)
3857 delete arg8;
3858 }
3859 return NULL;
3860 }
3861
3862
3863 SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3864 PyObject *resultobj = 0;
3865 wxBitmapButton *result = 0 ;
3866
3867 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3868 {
3869 if (!wxPyCheckForApp()) SWIG_fail;
3870 PyThreadState* __tstate = wxPyBeginAllowThreads();
3871 result = (wxBitmapButton *)new wxBitmapButton();
3872 wxPyEndAllowThreads(__tstate);
3873 if (PyErr_Occurred()) SWIG_fail;
3874 }
3875 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3876 return resultobj;
3877 fail:
3878 return NULL;
3879 }
3880
3881
3882 SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3883 PyObject *resultobj = 0;
3884 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3885 wxWindow *arg2 = (wxWindow *) 0 ;
3886 int arg3 = (int) -1 ;
3887 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3888 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3889 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3890 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3891 wxSize const &arg6_defvalue = wxDefaultSize ;
3892 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3893 long arg7 = (long) wxBU_AUTODRAW ;
3894 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3895 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3896 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3897 wxString *arg9 = (wxString *) &arg9_defvalue ;
3898 bool result;
3899 void *argp1 = 0 ;
3900 int res1 = 0 ;
3901 void *argp2 = 0 ;
3902 int res2 = 0 ;
3903 int val3 ;
3904 int ecode3 = 0 ;
3905 void *argp4 = 0 ;
3906 int res4 = 0 ;
3907 wxPoint temp5 ;
3908 wxSize temp6 ;
3909 long val7 ;
3910 int ecode7 = 0 ;
3911 void *argp8 = 0 ;
3912 int res8 = 0 ;
3913 bool temp9 = false ;
3914 PyObject * obj0 = 0 ;
3915 PyObject * obj1 = 0 ;
3916 PyObject * obj2 = 0 ;
3917 PyObject * obj3 = 0 ;
3918 PyObject * obj4 = 0 ;
3919 PyObject * obj5 = 0 ;
3920 PyObject * obj6 = 0 ;
3921 PyObject * obj7 = 0 ;
3922 PyObject * obj8 = 0 ;
3923 char * kwnames[] = {
3924 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3925 };
3926
3927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3929 if (!SWIG_IsOK(res1)) {
3930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3931 }
3932 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3933 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3934 if (!SWIG_IsOK(res2)) {
3935 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3936 }
3937 arg2 = reinterpret_cast< wxWindow * >(argp2);
3938 if (obj2) {
3939 ecode3 = SWIG_AsVal_int(obj2, &val3);
3940 if (!SWIG_IsOK(ecode3)) {
3941 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3942 }
3943 arg3 = static_cast< int >(val3);
3944 }
3945 if (obj3) {
3946 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3947 if (!SWIG_IsOK(res4)) {
3948 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3949 }
3950 if (!argp4) {
3951 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3952 }
3953 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3954 }
3955 if (obj4) {
3956 {
3957 arg5 = &temp5;
3958 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3959 }
3960 }
3961 if (obj5) {
3962 {
3963 arg6 = &temp6;
3964 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3965 }
3966 }
3967 if (obj6) {
3968 ecode7 = SWIG_AsVal_long(obj6, &val7);
3969 if (!SWIG_IsOK(ecode7)) {
3970 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
3971 }
3972 arg7 = static_cast< long >(val7);
3973 }
3974 if (obj7) {
3975 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3976 if (!SWIG_IsOK(res8)) {
3977 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3978 }
3979 if (!argp8) {
3980 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3981 }
3982 arg8 = reinterpret_cast< wxValidator * >(argp8);
3983 }
3984 if (obj8) {
3985 {
3986 arg9 = wxString_in_helper(obj8);
3987 if (arg9 == NULL) SWIG_fail;
3988 temp9 = true;
3989 }
3990 }
3991 {
3992 PyThreadState* __tstate = wxPyBeginAllowThreads();
3993 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3994 wxPyEndAllowThreads(__tstate);
3995 if (PyErr_Occurred()) SWIG_fail;
3996 }
3997 {
3998 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3999 }
4000 {
4001 if (temp9)
4002 delete arg9;
4003 }
4004 return resultobj;
4005 fail:
4006 {
4007 if (temp9)
4008 delete arg9;
4009 }
4010 return NULL;
4011 }
4012
4013
4014 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4015 PyObject *resultobj = 0;
4016 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4017 wxBitmap result;
4018 void *argp1 = 0 ;
4019 int res1 = 0 ;
4020 PyObject *swig_obj[1] ;
4021
4022 if (!args) SWIG_fail;
4023 swig_obj[0] = args;
4024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4025 if (!SWIG_IsOK(res1)) {
4026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4027 }
4028 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4029 {
4030 PyThreadState* __tstate = wxPyBeginAllowThreads();
4031 result = (arg1)->GetBitmapLabel();
4032 wxPyEndAllowThreads(__tstate);
4033 if (PyErr_Occurred()) SWIG_fail;
4034 }
4035 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4036 return resultobj;
4037 fail:
4038 return NULL;
4039 }
4040
4041
4042 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4043 PyObject *resultobj = 0;
4044 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4045 wxBitmap result;
4046 void *argp1 = 0 ;
4047 int res1 = 0 ;
4048 PyObject *swig_obj[1] ;
4049
4050 if (!args) SWIG_fail;
4051 swig_obj[0] = args;
4052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4053 if (!SWIG_IsOK(res1)) {
4054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4055 }
4056 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4057 {
4058 PyThreadState* __tstate = wxPyBeginAllowThreads();
4059 result = (arg1)->GetBitmapDisabled();
4060 wxPyEndAllowThreads(__tstate);
4061 if (PyErr_Occurred()) SWIG_fail;
4062 }
4063 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4064 return resultobj;
4065 fail:
4066 return NULL;
4067 }
4068
4069
4070 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4071 PyObject *resultobj = 0;
4072 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4073 wxBitmap result;
4074 void *argp1 = 0 ;
4075 int res1 = 0 ;
4076 PyObject *swig_obj[1] ;
4077
4078 if (!args) SWIG_fail;
4079 swig_obj[0] = args;
4080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4081 if (!SWIG_IsOK(res1)) {
4082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4083 }
4084 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4085 {
4086 PyThreadState* __tstate = wxPyBeginAllowThreads();
4087 result = (arg1)->GetBitmapFocus();
4088 wxPyEndAllowThreads(__tstate);
4089 if (PyErr_Occurred()) SWIG_fail;
4090 }
4091 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4092 return resultobj;
4093 fail:
4094 return NULL;
4095 }
4096
4097
4098 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4099 PyObject *resultobj = 0;
4100 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4101 wxBitmap result;
4102 void *argp1 = 0 ;
4103 int res1 = 0 ;
4104 PyObject *swig_obj[1] ;
4105
4106 if (!args) SWIG_fail;
4107 swig_obj[0] = args;
4108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4109 if (!SWIG_IsOK(res1)) {
4110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4111 }
4112 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4113 {
4114 PyThreadState* __tstate = wxPyBeginAllowThreads();
4115 result = (arg1)->GetBitmapSelected();
4116 wxPyEndAllowThreads(__tstate);
4117 if (PyErr_Occurred()) SWIG_fail;
4118 }
4119 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4120 return resultobj;
4121 fail:
4122 return NULL;
4123 }
4124
4125
4126 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4127 PyObject *resultobj = 0;
4128 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4129 wxBitmap result;
4130 void *argp1 = 0 ;
4131 int res1 = 0 ;
4132 PyObject *swig_obj[1] ;
4133
4134 if (!args) SWIG_fail;
4135 swig_obj[0] = args;
4136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4137 if (!SWIG_IsOK(res1)) {
4138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4139 }
4140 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4141 {
4142 PyThreadState* __tstate = wxPyBeginAllowThreads();
4143 result = (arg1)->GetBitmapHover();
4144 wxPyEndAllowThreads(__tstate);
4145 if (PyErr_Occurred()) SWIG_fail;
4146 }
4147 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4148 return resultobj;
4149 fail:
4150 return NULL;
4151 }
4152
4153
4154 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4155 PyObject *resultobj = 0;
4156 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4157 wxBitmap *arg2 = 0 ;
4158 void *argp1 = 0 ;
4159 int res1 = 0 ;
4160 void *argp2 = 0 ;
4161 int res2 = 0 ;
4162 PyObject * obj0 = 0 ;
4163 PyObject * obj1 = 0 ;
4164 char * kwnames[] = {
4165 (char *) "self",(char *) "bitmap", NULL
4166 };
4167
4168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4170 if (!SWIG_IsOK(res1)) {
4171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4172 }
4173 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4174 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4175 if (!SWIG_IsOK(res2)) {
4176 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4177 }
4178 if (!argp2) {
4179 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4180 }
4181 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4182 {
4183 PyThreadState* __tstate = wxPyBeginAllowThreads();
4184 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4185 wxPyEndAllowThreads(__tstate);
4186 if (PyErr_Occurred()) SWIG_fail;
4187 }
4188 resultobj = SWIG_Py_Void();
4189 return resultobj;
4190 fail:
4191 return NULL;
4192 }
4193
4194
4195 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4196 PyObject *resultobj = 0;
4197 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4198 wxBitmap *arg2 = 0 ;
4199 void *argp1 = 0 ;
4200 int res1 = 0 ;
4201 void *argp2 = 0 ;
4202 int res2 = 0 ;
4203 PyObject * obj0 = 0 ;
4204 PyObject * obj1 = 0 ;
4205 char * kwnames[] = {
4206 (char *) "self",(char *) "bitmap", NULL
4207 };
4208
4209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4211 if (!SWIG_IsOK(res1)) {
4212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4213 }
4214 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4215 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4216 if (!SWIG_IsOK(res2)) {
4217 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4218 }
4219 if (!argp2) {
4220 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4221 }
4222 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4223 {
4224 PyThreadState* __tstate = wxPyBeginAllowThreads();
4225 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4226 wxPyEndAllowThreads(__tstate);
4227 if (PyErr_Occurred()) SWIG_fail;
4228 }
4229 resultobj = SWIG_Py_Void();
4230 return resultobj;
4231 fail:
4232 return NULL;
4233 }
4234
4235
4236 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4237 PyObject *resultobj = 0;
4238 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4239 wxBitmap *arg2 = 0 ;
4240 void *argp1 = 0 ;
4241 int res1 = 0 ;
4242 void *argp2 = 0 ;
4243 int res2 = 0 ;
4244 PyObject * obj0 = 0 ;
4245 PyObject * obj1 = 0 ;
4246 char * kwnames[] = {
4247 (char *) "self",(char *) "bitmap", NULL
4248 };
4249
4250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4252 if (!SWIG_IsOK(res1)) {
4253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4254 }
4255 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4256 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4257 if (!SWIG_IsOK(res2)) {
4258 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4259 }
4260 if (!argp2) {
4261 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4262 }
4263 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4264 {
4265 PyThreadState* __tstate = wxPyBeginAllowThreads();
4266 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4267 wxPyEndAllowThreads(__tstate);
4268 if (PyErr_Occurred()) SWIG_fail;
4269 }
4270 resultobj = SWIG_Py_Void();
4271 return resultobj;
4272 fail:
4273 return NULL;
4274 }
4275
4276
4277 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4278 PyObject *resultobj = 0;
4279 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4280 wxBitmap *arg2 = 0 ;
4281 void *argp1 = 0 ;
4282 int res1 = 0 ;
4283 void *argp2 = 0 ;
4284 int res2 = 0 ;
4285 PyObject * obj0 = 0 ;
4286 PyObject * obj1 = 0 ;
4287 char * kwnames[] = {
4288 (char *) "self",(char *) "bitmap", NULL
4289 };
4290
4291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4293 if (!SWIG_IsOK(res1)) {
4294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4295 }
4296 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4297 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4298 if (!SWIG_IsOK(res2)) {
4299 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4300 }
4301 if (!argp2) {
4302 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4303 }
4304 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4305 {
4306 PyThreadState* __tstate = wxPyBeginAllowThreads();
4307 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4308 wxPyEndAllowThreads(__tstate);
4309 if (PyErr_Occurred()) SWIG_fail;
4310 }
4311 resultobj = SWIG_Py_Void();
4312 return resultobj;
4313 fail:
4314 return NULL;
4315 }
4316
4317
4318 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4319 PyObject *resultobj = 0;
4320 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4321 wxBitmap *arg2 = 0 ;
4322 void *argp1 = 0 ;
4323 int res1 = 0 ;
4324 void *argp2 = 0 ;
4325 int res2 = 0 ;
4326 PyObject * obj0 = 0 ;
4327 PyObject * obj1 = 0 ;
4328 char * kwnames[] = {
4329 (char *) "self",(char *) "hover", NULL
4330 };
4331
4332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4334 if (!SWIG_IsOK(res1)) {
4335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4336 }
4337 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4338 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4339 if (!SWIG_IsOK(res2)) {
4340 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4341 }
4342 if (!argp2) {
4343 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4344 }
4345 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4346 {
4347 PyThreadState* __tstate = wxPyBeginAllowThreads();
4348 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4349 wxPyEndAllowThreads(__tstate);
4350 if (PyErr_Occurred()) SWIG_fail;
4351 }
4352 resultobj = SWIG_Py_Void();
4353 return resultobj;
4354 fail:
4355 return NULL;
4356 }
4357
4358
4359 SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4360 PyObject *resultobj = 0;
4361 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4362 int arg2 ;
4363 int arg3 ;
4364 void *argp1 = 0 ;
4365 int res1 = 0 ;
4366 int val2 ;
4367 int ecode2 = 0 ;
4368 int val3 ;
4369 int ecode3 = 0 ;
4370 PyObject * obj0 = 0 ;
4371 PyObject * obj1 = 0 ;
4372 PyObject * obj2 = 0 ;
4373 char * kwnames[] = {
4374 (char *) "self",(char *) "x",(char *) "y", NULL
4375 };
4376
4377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4379 if (!SWIG_IsOK(res1)) {
4380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4381 }
4382 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4383 ecode2 = SWIG_AsVal_int(obj1, &val2);
4384 if (!SWIG_IsOK(ecode2)) {
4385 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4386 }
4387 arg2 = static_cast< int >(val2);
4388 ecode3 = SWIG_AsVal_int(obj2, &val3);
4389 if (!SWIG_IsOK(ecode3)) {
4390 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4391 }
4392 arg3 = static_cast< int >(val3);
4393 {
4394 PyThreadState* __tstate = wxPyBeginAllowThreads();
4395 (arg1)->SetMargins(arg2,arg3);
4396 wxPyEndAllowThreads(__tstate);
4397 if (PyErr_Occurred()) SWIG_fail;
4398 }
4399 resultobj = SWIG_Py_Void();
4400 return resultobj;
4401 fail:
4402 return NULL;
4403 }
4404
4405
4406 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4407 PyObject *resultobj = 0;
4408 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4409 int result;
4410 void *argp1 = 0 ;
4411 int res1 = 0 ;
4412 PyObject *swig_obj[1] ;
4413
4414 if (!args) SWIG_fail;
4415 swig_obj[0] = args;
4416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4417 if (!SWIG_IsOK(res1)) {
4418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4419 }
4420 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4421 {
4422 PyThreadState* __tstate = wxPyBeginAllowThreads();
4423 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4424 wxPyEndAllowThreads(__tstate);
4425 if (PyErr_Occurred()) SWIG_fail;
4426 }
4427 resultobj = SWIG_From_int(static_cast< int >(result));
4428 return resultobj;
4429 fail:
4430 return NULL;
4431 }
4432
4433
4434 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4435 PyObject *resultobj = 0;
4436 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4437 int result;
4438 void *argp1 = 0 ;
4439 int res1 = 0 ;
4440 PyObject *swig_obj[1] ;
4441
4442 if (!args) SWIG_fail;
4443 swig_obj[0] = args;
4444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4445 if (!SWIG_IsOK(res1)) {
4446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4447 }
4448 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4449 {
4450 PyThreadState* __tstate = wxPyBeginAllowThreads();
4451 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4452 wxPyEndAllowThreads(__tstate);
4453 if (PyErr_Occurred()) SWIG_fail;
4454 }
4455 resultobj = SWIG_From_int(static_cast< int >(result));
4456 return resultobj;
4457 fail:
4458 return NULL;
4459 }
4460
4461
4462 SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4463 PyObject *obj;
4464 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4465 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4466 return SWIG_Py_Void();
4467 }
4468
4469 SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4470 return SWIG_Python_InitShadowInstance(args);
4471 }
4472
4473 SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4474 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4475 return 1;
4476 }
4477
4478
4479 SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4480 PyObject *pyobj = 0;
4481
4482 {
4483 #if wxUSE_UNICODE
4484 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4485 #else
4486 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4487 #endif
4488 }
4489 return pyobj;
4490 }
4491
4492
4493 SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4494 PyObject *resultobj = 0;
4495 wxWindow *arg1 = (wxWindow *) 0 ;
4496 int arg2 = (int) -1 ;
4497 wxString const &arg3_defvalue = wxPyEmptyString ;
4498 wxString *arg3 = (wxString *) &arg3_defvalue ;
4499 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4500 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4501 wxSize const &arg5_defvalue = wxDefaultSize ;
4502 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4503 long arg6 = (long) 0 ;
4504 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4505 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4506 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4507 wxString *arg8 = (wxString *) &arg8_defvalue ;
4508 wxCheckBox *result = 0 ;
4509 void *argp1 = 0 ;
4510 int res1 = 0 ;
4511 int val2 ;
4512 int ecode2 = 0 ;
4513 bool temp3 = false ;
4514 wxPoint temp4 ;
4515 wxSize temp5 ;
4516 long val6 ;
4517 int ecode6 = 0 ;
4518 void *argp7 = 0 ;
4519 int res7 = 0 ;
4520 bool temp8 = false ;
4521 PyObject * obj0 = 0 ;
4522 PyObject * obj1 = 0 ;
4523 PyObject * obj2 = 0 ;
4524 PyObject * obj3 = 0 ;
4525 PyObject * obj4 = 0 ;
4526 PyObject * obj5 = 0 ;
4527 PyObject * obj6 = 0 ;
4528 PyObject * obj7 = 0 ;
4529 char * kwnames[] = {
4530 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4531 };
4532
4533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4535 if (!SWIG_IsOK(res1)) {
4536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4537 }
4538 arg1 = reinterpret_cast< wxWindow * >(argp1);
4539 if (obj1) {
4540 ecode2 = SWIG_AsVal_int(obj1, &val2);
4541 if (!SWIG_IsOK(ecode2)) {
4542 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4543 }
4544 arg2 = static_cast< int >(val2);
4545 }
4546 if (obj2) {
4547 {
4548 arg3 = wxString_in_helper(obj2);
4549 if (arg3 == NULL) SWIG_fail;
4550 temp3 = true;
4551 }
4552 }
4553 if (obj3) {
4554 {
4555 arg4 = &temp4;
4556 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4557 }
4558 }
4559 if (obj4) {
4560 {
4561 arg5 = &temp5;
4562 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4563 }
4564 }
4565 if (obj5) {
4566 ecode6 = SWIG_AsVal_long(obj5, &val6);
4567 if (!SWIG_IsOK(ecode6)) {
4568 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4569 }
4570 arg6 = static_cast< long >(val6);
4571 }
4572 if (obj6) {
4573 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4574 if (!SWIG_IsOK(res7)) {
4575 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4576 }
4577 if (!argp7) {
4578 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4579 }
4580 arg7 = reinterpret_cast< wxValidator * >(argp7);
4581 }
4582 if (obj7) {
4583 {
4584 arg8 = wxString_in_helper(obj7);
4585 if (arg8 == NULL) SWIG_fail;
4586 temp8 = true;
4587 }
4588 }
4589 {
4590 if (!wxPyCheckForApp()) SWIG_fail;
4591 PyThreadState* __tstate = wxPyBeginAllowThreads();
4592 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4593 wxPyEndAllowThreads(__tstate);
4594 if (PyErr_Occurred()) SWIG_fail;
4595 }
4596 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4597 {
4598 if (temp3)
4599 delete arg3;
4600 }
4601 {
4602 if (temp8)
4603 delete arg8;
4604 }
4605 return resultobj;
4606 fail:
4607 {
4608 if (temp3)
4609 delete arg3;
4610 }
4611 {
4612 if (temp8)
4613 delete arg8;
4614 }
4615 return NULL;
4616 }
4617
4618
4619 SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4620 PyObject *resultobj = 0;
4621 wxCheckBox *result = 0 ;
4622
4623 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4624 {
4625 if (!wxPyCheckForApp()) SWIG_fail;
4626 PyThreadState* __tstate = wxPyBeginAllowThreads();
4627 result = (wxCheckBox *)new wxCheckBox();
4628 wxPyEndAllowThreads(__tstate);
4629 if (PyErr_Occurred()) SWIG_fail;
4630 }
4631 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4632 return resultobj;
4633 fail:
4634 return NULL;
4635 }
4636
4637
4638 SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4639 PyObject *resultobj = 0;
4640 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4641 wxWindow *arg2 = (wxWindow *) 0 ;
4642 int arg3 = (int) -1 ;
4643 wxString const &arg4_defvalue = wxPyEmptyString ;
4644 wxString *arg4 = (wxString *) &arg4_defvalue ;
4645 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4646 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4647 wxSize const &arg6_defvalue = wxDefaultSize ;
4648 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4649 long arg7 = (long) 0 ;
4650 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4651 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4652 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4653 wxString *arg9 = (wxString *) &arg9_defvalue ;
4654 bool result;
4655 void *argp1 = 0 ;
4656 int res1 = 0 ;
4657 void *argp2 = 0 ;
4658 int res2 = 0 ;
4659 int val3 ;
4660 int ecode3 = 0 ;
4661 bool temp4 = false ;
4662 wxPoint temp5 ;
4663 wxSize temp6 ;
4664 long val7 ;
4665 int ecode7 = 0 ;
4666 void *argp8 = 0 ;
4667 int res8 = 0 ;
4668 bool temp9 = false ;
4669 PyObject * obj0 = 0 ;
4670 PyObject * obj1 = 0 ;
4671 PyObject * obj2 = 0 ;
4672 PyObject * obj3 = 0 ;
4673 PyObject * obj4 = 0 ;
4674 PyObject * obj5 = 0 ;
4675 PyObject * obj6 = 0 ;
4676 PyObject * obj7 = 0 ;
4677 PyObject * obj8 = 0 ;
4678 char * kwnames[] = {
4679 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4680 };
4681
4682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4684 if (!SWIG_IsOK(res1)) {
4685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4686 }
4687 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4688 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4689 if (!SWIG_IsOK(res2)) {
4690 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4691 }
4692 arg2 = reinterpret_cast< wxWindow * >(argp2);
4693 if (obj2) {
4694 ecode3 = SWIG_AsVal_int(obj2, &val3);
4695 if (!SWIG_IsOK(ecode3)) {
4696 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4697 }
4698 arg3 = static_cast< int >(val3);
4699 }
4700 if (obj3) {
4701 {
4702 arg4 = wxString_in_helper(obj3);
4703 if (arg4 == NULL) SWIG_fail;
4704 temp4 = true;
4705 }
4706 }
4707 if (obj4) {
4708 {
4709 arg5 = &temp5;
4710 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4711 }
4712 }
4713 if (obj5) {
4714 {
4715 arg6 = &temp6;
4716 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4717 }
4718 }
4719 if (obj6) {
4720 ecode7 = SWIG_AsVal_long(obj6, &val7);
4721 if (!SWIG_IsOK(ecode7)) {
4722 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4723 }
4724 arg7 = static_cast< long >(val7);
4725 }
4726 if (obj7) {
4727 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4728 if (!SWIG_IsOK(res8)) {
4729 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4730 }
4731 if (!argp8) {
4732 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4733 }
4734 arg8 = reinterpret_cast< wxValidator * >(argp8);
4735 }
4736 if (obj8) {
4737 {
4738 arg9 = wxString_in_helper(obj8);
4739 if (arg9 == NULL) SWIG_fail;
4740 temp9 = true;
4741 }
4742 }
4743 {
4744 PyThreadState* __tstate = wxPyBeginAllowThreads();
4745 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4746 wxPyEndAllowThreads(__tstate);
4747 if (PyErr_Occurred()) SWIG_fail;
4748 }
4749 {
4750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4751 }
4752 {
4753 if (temp4)
4754 delete arg4;
4755 }
4756 {
4757 if (temp9)
4758 delete arg9;
4759 }
4760 return resultobj;
4761 fail:
4762 {
4763 if (temp4)
4764 delete arg4;
4765 }
4766 {
4767 if (temp9)
4768 delete arg9;
4769 }
4770 return NULL;
4771 }
4772
4773
4774 SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4775 PyObject *resultobj = 0;
4776 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4777 bool result;
4778 void *argp1 = 0 ;
4779 int res1 = 0 ;
4780 PyObject *swig_obj[1] ;
4781
4782 if (!args) SWIG_fail;
4783 swig_obj[0] = args;
4784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4785 if (!SWIG_IsOK(res1)) {
4786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4787 }
4788 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4789 {
4790 PyThreadState* __tstate = wxPyBeginAllowThreads();
4791 result = (bool)(arg1)->GetValue();
4792 wxPyEndAllowThreads(__tstate);
4793 if (PyErr_Occurred()) SWIG_fail;
4794 }
4795 {
4796 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4797 }
4798 return resultobj;
4799 fail:
4800 return NULL;
4801 }
4802
4803
4804 SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4805 PyObject *resultobj = 0;
4806 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4807 bool result;
4808 void *argp1 = 0 ;
4809 int res1 = 0 ;
4810 PyObject *swig_obj[1] ;
4811
4812 if (!args) SWIG_fail;
4813 swig_obj[0] = args;
4814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4815 if (!SWIG_IsOK(res1)) {
4816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4817 }
4818 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4819 {
4820 PyThreadState* __tstate = wxPyBeginAllowThreads();
4821 result = (bool)(arg1)->IsChecked();
4822 wxPyEndAllowThreads(__tstate);
4823 if (PyErr_Occurred()) SWIG_fail;
4824 }
4825 {
4826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4827 }
4828 return resultobj;
4829 fail:
4830 return NULL;
4831 }
4832
4833
4834 SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4835 PyObject *resultobj = 0;
4836 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4837 bool arg2 ;
4838 void *argp1 = 0 ;
4839 int res1 = 0 ;
4840 bool val2 ;
4841 int ecode2 = 0 ;
4842 PyObject * obj0 = 0 ;
4843 PyObject * obj1 = 0 ;
4844 char * kwnames[] = {
4845 (char *) "self",(char *) "state", NULL
4846 };
4847
4848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4850 if (!SWIG_IsOK(res1)) {
4851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4852 }
4853 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4854 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4855 if (!SWIG_IsOK(ecode2)) {
4856 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4857 }
4858 arg2 = static_cast< bool >(val2);
4859 {
4860 PyThreadState* __tstate = wxPyBeginAllowThreads();
4861 (arg1)->SetValue(arg2);
4862 wxPyEndAllowThreads(__tstate);
4863 if (PyErr_Occurred()) SWIG_fail;
4864 }
4865 resultobj = SWIG_Py_Void();
4866 return resultobj;
4867 fail:
4868 return NULL;
4869 }
4870
4871
4872 SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4873 PyObject *resultobj = 0;
4874 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4875 wxCheckBoxState result;
4876 void *argp1 = 0 ;
4877 int res1 = 0 ;
4878 PyObject *swig_obj[1] ;
4879
4880 if (!args) SWIG_fail;
4881 swig_obj[0] = args;
4882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4883 if (!SWIG_IsOK(res1)) {
4884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4885 }
4886 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4887 {
4888 PyThreadState* __tstate = wxPyBeginAllowThreads();
4889 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4890 wxPyEndAllowThreads(__tstate);
4891 if (PyErr_Occurred()) SWIG_fail;
4892 }
4893 resultobj = SWIG_From_int(static_cast< int >(result));
4894 return resultobj;
4895 fail:
4896 return NULL;
4897 }
4898
4899
4900 SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4901 PyObject *resultobj = 0;
4902 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4903 wxCheckBoxState arg2 ;
4904 void *argp1 = 0 ;
4905 int res1 = 0 ;
4906 int val2 ;
4907 int ecode2 = 0 ;
4908 PyObject * obj0 = 0 ;
4909 PyObject * obj1 = 0 ;
4910 char * kwnames[] = {
4911 (char *) "self",(char *) "state", NULL
4912 };
4913
4914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4916 if (!SWIG_IsOK(res1)) {
4917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4918 }
4919 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4920 ecode2 = SWIG_AsVal_int(obj1, &val2);
4921 if (!SWIG_IsOK(ecode2)) {
4922 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4923 }
4924 arg2 = static_cast< wxCheckBoxState >(val2);
4925 {
4926 PyThreadState* __tstate = wxPyBeginAllowThreads();
4927 (arg1)->Set3StateValue(arg2);
4928 wxPyEndAllowThreads(__tstate);
4929 if (PyErr_Occurred()) SWIG_fail;
4930 }
4931 resultobj = SWIG_Py_Void();
4932 return resultobj;
4933 fail:
4934 return NULL;
4935 }
4936
4937
4938 SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4939 PyObject *resultobj = 0;
4940 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4941 bool result;
4942 void *argp1 = 0 ;
4943 int res1 = 0 ;
4944 PyObject *swig_obj[1] ;
4945
4946 if (!args) SWIG_fail;
4947 swig_obj[0] = args;
4948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4949 if (!SWIG_IsOK(res1)) {
4950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4951 }
4952 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4953 {
4954 PyThreadState* __tstate = wxPyBeginAllowThreads();
4955 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4956 wxPyEndAllowThreads(__tstate);
4957 if (PyErr_Occurred()) SWIG_fail;
4958 }
4959 {
4960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4961 }
4962 return resultobj;
4963 fail:
4964 return NULL;
4965 }
4966
4967
4968 SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4969 PyObject *resultobj = 0;
4970 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4971 bool result;
4972 void *argp1 = 0 ;
4973 int res1 = 0 ;
4974 PyObject *swig_obj[1] ;
4975
4976 if (!args) SWIG_fail;
4977 swig_obj[0] = args;
4978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4979 if (!SWIG_IsOK(res1)) {
4980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4981 }
4982 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4983 {
4984 PyThreadState* __tstate = wxPyBeginAllowThreads();
4985 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
4986 wxPyEndAllowThreads(__tstate);
4987 if (PyErr_Occurred()) SWIG_fail;
4988 }
4989 {
4990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4991 }
4992 return resultobj;
4993 fail:
4994 return NULL;
4995 }
4996
4997
4998 SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4999 PyObject *resultobj = 0;
5000 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5001 SwigValueWrapper<wxVisualAttributes > result;
5002 int val1 ;
5003 int ecode1 = 0 ;
5004 PyObject * obj0 = 0 ;
5005 char * kwnames[] = {
5006 (char *) "variant", NULL
5007 };
5008
5009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5010 if (obj0) {
5011 ecode1 = SWIG_AsVal_int(obj0, &val1);
5012 if (!SWIG_IsOK(ecode1)) {
5013 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5014 }
5015 arg1 = static_cast< wxWindowVariant >(val1);
5016 }
5017 {
5018 if (!wxPyCheckForApp()) SWIG_fail;
5019 PyThreadState* __tstate = wxPyBeginAllowThreads();
5020 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5021 wxPyEndAllowThreads(__tstate);
5022 if (PyErr_Occurred()) SWIG_fail;
5023 }
5024 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5025 return resultobj;
5026 fail:
5027 return NULL;
5028 }
5029
5030
5031 SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5032 PyObject *obj;
5033 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5034 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5035 return SWIG_Py_Void();
5036 }
5037
5038 SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5039 return SWIG_Python_InitShadowInstance(args);
5040 }
5041
5042 SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5043 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5044 return 1;
5045 }
5046
5047
5048 SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5049 PyObject *pyobj = 0;
5050
5051 {
5052 #if wxUSE_UNICODE
5053 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5054 #else
5055 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5056 #endif
5057 }
5058 return pyobj;
5059 }
5060
5061
5062 SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5063 PyObject *resultobj = 0;
5064 wxWindow *arg1 = (wxWindow *) 0 ;
5065 int arg2 = (int) -1 ;
5066 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5067 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5068 wxSize const &arg4_defvalue = wxDefaultSize ;
5069 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5070 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5071 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5072 long arg6 = (long) 0 ;
5073 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5074 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5075 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5076 wxString *arg8 = (wxString *) &arg8_defvalue ;
5077 wxChoice *result = 0 ;
5078 void *argp1 = 0 ;
5079 int res1 = 0 ;
5080 int val2 ;
5081 int ecode2 = 0 ;
5082 wxPoint temp3 ;
5083 wxSize temp4 ;
5084 bool temp5 = false ;
5085 long val6 ;
5086 int ecode6 = 0 ;
5087 void *argp7 = 0 ;
5088 int res7 = 0 ;
5089 bool temp8 = false ;
5090 PyObject * obj0 = 0 ;
5091 PyObject * obj1 = 0 ;
5092 PyObject * obj2 = 0 ;
5093 PyObject * obj3 = 0 ;
5094 PyObject * obj4 = 0 ;
5095 PyObject * obj5 = 0 ;
5096 PyObject * obj6 = 0 ;
5097 PyObject * obj7 = 0 ;
5098 char * kwnames[] = {
5099 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5100 };
5101
5102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5104 if (!SWIG_IsOK(res1)) {
5105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5106 }
5107 arg1 = reinterpret_cast< wxWindow * >(argp1);
5108 if (obj1) {
5109 ecode2 = SWIG_AsVal_int(obj1, &val2);
5110 if (!SWIG_IsOK(ecode2)) {
5111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5112 }
5113 arg2 = static_cast< int >(val2);
5114 }
5115 if (obj2) {
5116 {
5117 arg3 = &temp3;
5118 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5119 }
5120 }
5121 if (obj3) {
5122 {
5123 arg4 = &temp4;
5124 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5125 }
5126 }
5127 if (obj4) {
5128 {
5129 if (! PySequence_Check(obj4)) {
5130 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5131 SWIG_fail;
5132 }
5133 arg5 = new wxArrayString;
5134 temp5 = true;
5135 int i, len=PySequence_Length(obj4);
5136 for (i=0; i<len; i++) {
5137 PyObject* item = PySequence_GetItem(obj4, i);
5138 wxString* s = wxString_in_helper(item);
5139 if (PyErr_Occurred()) SWIG_fail;
5140 arg5->Add(*s);
5141 delete s;
5142 Py_DECREF(item);
5143 }
5144 }
5145 }
5146 if (obj5) {
5147 ecode6 = SWIG_AsVal_long(obj5, &val6);
5148 if (!SWIG_IsOK(ecode6)) {
5149 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5150 }
5151 arg6 = static_cast< long >(val6);
5152 }
5153 if (obj6) {
5154 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5155 if (!SWIG_IsOK(res7)) {
5156 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5157 }
5158 if (!argp7) {
5159 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5160 }
5161 arg7 = reinterpret_cast< wxValidator * >(argp7);
5162 }
5163 if (obj7) {
5164 {
5165 arg8 = wxString_in_helper(obj7);
5166 if (arg8 == NULL) SWIG_fail;
5167 temp8 = true;
5168 }
5169 }
5170 {
5171 if (!wxPyCheckForApp()) SWIG_fail;
5172 PyThreadState* __tstate = wxPyBeginAllowThreads();
5173 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5174 wxPyEndAllowThreads(__tstate);
5175 if (PyErr_Occurred()) SWIG_fail;
5176 }
5177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5178 {
5179 if (temp5) delete arg5;
5180 }
5181 {
5182 if (temp8)
5183 delete arg8;
5184 }
5185 return resultobj;
5186 fail:
5187 {
5188 if (temp5) delete arg5;
5189 }
5190 {
5191 if (temp8)
5192 delete arg8;
5193 }
5194 return NULL;
5195 }
5196
5197
5198 SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5199 PyObject *resultobj = 0;
5200 wxChoice *result = 0 ;
5201
5202 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5203 {
5204 if (!wxPyCheckForApp()) SWIG_fail;
5205 PyThreadState* __tstate = wxPyBeginAllowThreads();
5206 result = (wxChoice *)new wxChoice();
5207 wxPyEndAllowThreads(__tstate);
5208 if (PyErr_Occurred()) SWIG_fail;
5209 }
5210 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5211 return resultobj;
5212 fail:
5213 return NULL;
5214 }
5215
5216
5217 SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5218 PyObject *resultobj = 0;
5219 wxChoice *arg1 = (wxChoice *) 0 ;
5220 wxWindow *arg2 = (wxWindow *) 0 ;
5221 int arg3 = (int) -1 ;
5222 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5223 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5224 wxSize const &arg5_defvalue = wxDefaultSize ;
5225 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5226 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5227 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5228 long arg7 = (long) 0 ;
5229 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5230 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5231 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5232 wxString *arg9 = (wxString *) &arg9_defvalue ;
5233 bool result;
5234 void *argp1 = 0 ;
5235 int res1 = 0 ;
5236 void *argp2 = 0 ;
5237 int res2 = 0 ;
5238 int val3 ;
5239 int ecode3 = 0 ;
5240 wxPoint temp4 ;
5241 wxSize temp5 ;
5242 bool temp6 = false ;
5243 long val7 ;
5244 int ecode7 = 0 ;
5245 void *argp8 = 0 ;
5246 int res8 = 0 ;
5247 bool temp9 = false ;
5248 PyObject * obj0 = 0 ;
5249 PyObject * obj1 = 0 ;
5250 PyObject * obj2 = 0 ;
5251 PyObject * obj3 = 0 ;
5252 PyObject * obj4 = 0 ;
5253 PyObject * obj5 = 0 ;
5254 PyObject * obj6 = 0 ;
5255 PyObject * obj7 = 0 ;
5256 PyObject * obj8 = 0 ;
5257 char * kwnames[] = {
5258 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5259 };
5260
5261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5263 if (!SWIG_IsOK(res1)) {
5264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5265 }
5266 arg1 = reinterpret_cast< wxChoice * >(argp1);
5267 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5268 if (!SWIG_IsOK(res2)) {
5269 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5270 }
5271 arg2 = reinterpret_cast< wxWindow * >(argp2);
5272 if (obj2) {
5273 ecode3 = SWIG_AsVal_int(obj2, &val3);
5274 if (!SWIG_IsOK(ecode3)) {
5275 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5276 }
5277 arg3 = static_cast< int >(val3);
5278 }
5279 if (obj3) {
5280 {
5281 arg4 = &temp4;
5282 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5283 }
5284 }
5285 if (obj4) {
5286 {
5287 arg5 = &temp5;
5288 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5289 }
5290 }
5291 if (obj5) {
5292 {
5293 if (! PySequence_Check(obj5)) {
5294 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5295 SWIG_fail;
5296 }
5297 arg6 = new wxArrayString;
5298 temp6 = true;
5299 int i, len=PySequence_Length(obj5);
5300 for (i=0; i<len; i++) {
5301 PyObject* item = PySequence_GetItem(obj5, i);
5302 wxString* s = wxString_in_helper(item);
5303 if (PyErr_Occurred()) SWIG_fail;
5304 arg6->Add(*s);
5305 delete s;
5306 Py_DECREF(item);
5307 }
5308 }
5309 }
5310 if (obj6) {
5311 ecode7 = SWIG_AsVal_long(obj6, &val7);
5312 if (!SWIG_IsOK(ecode7)) {
5313 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5314 }
5315 arg7 = static_cast< long >(val7);
5316 }
5317 if (obj7) {
5318 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5319 if (!SWIG_IsOK(res8)) {
5320 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5321 }
5322 if (!argp8) {
5323 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5324 }
5325 arg8 = reinterpret_cast< wxValidator * >(argp8);
5326 }
5327 if (obj8) {
5328 {
5329 arg9 = wxString_in_helper(obj8);
5330 if (arg9 == NULL) SWIG_fail;
5331 temp9 = true;
5332 }
5333 }
5334 {
5335 PyThreadState* __tstate = wxPyBeginAllowThreads();
5336 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5337 wxPyEndAllowThreads(__tstate);
5338 if (PyErr_Occurred()) SWIG_fail;
5339 }
5340 {
5341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5342 }
5343 {
5344 if (temp6) delete arg6;
5345 }
5346 {
5347 if (temp9)
5348 delete arg9;
5349 }
5350 return resultobj;
5351 fail:
5352 {
5353 if (temp6) delete arg6;
5354 }
5355 {
5356 if (temp9)
5357 delete arg9;
5358 }
5359 return NULL;
5360 }
5361
5362
5363 SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5364 PyObject *resultobj = 0;
5365 wxChoice *arg1 = (wxChoice *) 0 ;
5366 int result;
5367 void *argp1 = 0 ;
5368 int res1 = 0 ;
5369 PyObject *swig_obj[1] ;
5370
5371 if (!args) SWIG_fail;
5372 swig_obj[0] = args;
5373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5374 if (!SWIG_IsOK(res1)) {
5375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5376 }
5377 arg1 = reinterpret_cast< wxChoice * >(argp1);
5378 {
5379 PyThreadState* __tstate = wxPyBeginAllowThreads();
5380 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5381 wxPyEndAllowThreads(__tstate);
5382 if (PyErr_Occurred()) SWIG_fail;
5383 }
5384 resultobj = SWIG_From_int(static_cast< int >(result));
5385 return resultobj;
5386 fail:
5387 return NULL;
5388 }
5389
5390
5391 SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5392 PyObject *resultobj = 0;
5393 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5394 SwigValueWrapper<wxVisualAttributes > result;
5395 int val1 ;
5396 int ecode1 = 0 ;
5397 PyObject * obj0 = 0 ;
5398 char * kwnames[] = {
5399 (char *) "variant", NULL
5400 };
5401
5402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5403 if (obj0) {
5404 ecode1 = SWIG_AsVal_int(obj0, &val1);
5405 if (!SWIG_IsOK(ecode1)) {
5406 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5407 }
5408 arg1 = static_cast< wxWindowVariant >(val1);
5409 }
5410 {
5411 if (!wxPyCheckForApp()) SWIG_fail;
5412 PyThreadState* __tstate = wxPyBeginAllowThreads();
5413 result = wxChoice::GetClassDefaultAttributes(arg1);
5414 wxPyEndAllowThreads(__tstate);
5415 if (PyErr_Occurred()) SWIG_fail;
5416 }
5417 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5418 return resultobj;
5419 fail:
5420 return NULL;
5421 }
5422
5423
5424 SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5425 PyObject *obj;
5426 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5427 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5428 return SWIG_Py_Void();
5429 }
5430
5431 SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5432 return SWIG_Python_InitShadowInstance(args);
5433 }
5434
5435 SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5436 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5437 return 1;
5438 }
5439
5440
5441 SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5442 PyObject *pyobj = 0;
5443
5444 {
5445 #if wxUSE_UNICODE
5446 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5447 #else
5448 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5449 #endif
5450 }
5451 return pyobj;
5452 }
5453
5454
5455 SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5456 PyObject *resultobj = 0;
5457 wxWindow *arg1 = (wxWindow *) 0 ;
5458 int arg2 = (int) -1 ;
5459 wxString const &arg3_defvalue = wxPyEmptyString ;
5460 wxString *arg3 = (wxString *) &arg3_defvalue ;
5461 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5462 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5463 wxSize const &arg5_defvalue = wxDefaultSize ;
5464 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5465 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5466 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5467 long arg7 = (long) 0 ;
5468 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5469 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5470 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5471 wxString *arg9 = (wxString *) &arg9_defvalue ;
5472 wxComboBox *result = 0 ;
5473 void *argp1 = 0 ;
5474 int res1 = 0 ;
5475 int val2 ;
5476 int ecode2 = 0 ;
5477 bool temp3 = false ;
5478 wxPoint temp4 ;
5479 wxSize temp5 ;
5480 bool temp6 = false ;
5481 long val7 ;
5482 int ecode7 = 0 ;
5483 void *argp8 = 0 ;
5484 int res8 = 0 ;
5485 bool temp9 = false ;
5486 PyObject * obj0 = 0 ;
5487 PyObject * obj1 = 0 ;
5488 PyObject * obj2 = 0 ;
5489 PyObject * obj3 = 0 ;
5490 PyObject * obj4 = 0 ;
5491 PyObject * obj5 = 0 ;
5492 PyObject * obj6 = 0 ;
5493 PyObject * obj7 = 0 ;
5494 PyObject * obj8 = 0 ;
5495 char * kwnames[] = {
5496 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5497 };
5498
5499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5501 if (!SWIG_IsOK(res1)) {
5502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5503 }
5504 arg1 = reinterpret_cast< wxWindow * >(argp1);
5505 if (obj1) {
5506 ecode2 = SWIG_AsVal_int(obj1, &val2);
5507 if (!SWIG_IsOK(ecode2)) {
5508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5509 }
5510 arg2 = static_cast< int >(val2);
5511 }
5512 if (obj2) {
5513 {
5514 arg3 = wxString_in_helper(obj2);
5515 if (arg3 == NULL) SWIG_fail;
5516 temp3 = true;
5517 }
5518 }
5519 if (obj3) {
5520 {
5521 arg4 = &temp4;
5522 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5523 }
5524 }
5525 if (obj4) {
5526 {
5527 arg5 = &temp5;
5528 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5529 }
5530 }
5531 if (obj5) {
5532 {
5533 if (! PySequence_Check(obj5)) {
5534 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5535 SWIG_fail;
5536 }
5537 arg6 = new wxArrayString;
5538 temp6 = true;
5539 int i, len=PySequence_Length(obj5);
5540 for (i=0; i<len; i++) {
5541 PyObject* item = PySequence_GetItem(obj5, i);
5542 wxString* s = wxString_in_helper(item);
5543 if (PyErr_Occurred()) SWIG_fail;
5544 arg6->Add(*s);
5545 delete s;
5546 Py_DECREF(item);
5547 }
5548 }
5549 }
5550 if (obj6) {
5551 ecode7 = SWIG_AsVal_long(obj6, &val7);
5552 if (!SWIG_IsOK(ecode7)) {
5553 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5554 }
5555 arg7 = static_cast< long >(val7);
5556 }
5557 if (obj7) {
5558 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5559 if (!SWIG_IsOK(res8)) {
5560 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5561 }
5562 if (!argp8) {
5563 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5564 }
5565 arg8 = reinterpret_cast< wxValidator * >(argp8);
5566 }
5567 if (obj8) {
5568 {
5569 arg9 = wxString_in_helper(obj8);
5570 if (arg9 == NULL) SWIG_fail;
5571 temp9 = true;
5572 }
5573 }
5574 {
5575 if (!wxPyCheckForApp()) SWIG_fail;
5576 PyThreadState* __tstate = wxPyBeginAllowThreads();
5577 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);
5578 wxPyEndAllowThreads(__tstate);
5579 if (PyErr_Occurred()) SWIG_fail;
5580 }
5581 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5582 {
5583 if (temp3)
5584 delete arg3;
5585 }
5586 {
5587 if (temp6) delete arg6;
5588 }
5589 {
5590 if (temp9)
5591 delete arg9;
5592 }
5593 return resultobj;
5594 fail:
5595 {
5596 if (temp3)
5597 delete arg3;
5598 }
5599 {
5600 if (temp6) delete arg6;
5601 }
5602 {
5603 if (temp9)
5604 delete arg9;
5605 }
5606 return NULL;
5607 }
5608
5609
5610 SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5611 PyObject *resultobj = 0;
5612 wxComboBox *result = 0 ;
5613
5614 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5615 {
5616 if (!wxPyCheckForApp()) SWIG_fail;
5617 PyThreadState* __tstate = wxPyBeginAllowThreads();
5618 result = (wxComboBox *)new wxComboBox();
5619 wxPyEndAllowThreads(__tstate);
5620 if (PyErr_Occurred()) SWIG_fail;
5621 }
5622 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5623 return resultobj;
5624 fail:
5625 return NULL;
5626 }
5627
5628
5629 SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5630 PyObject *resultobj = 0;
5631 wxComboBox *arg1 = (wxComboBox *) 0 ;
5632 wxWindow *arg2 = (wxWindow *) 0 ;
5633 int arg3 = (int) -1 ;
5634 wxString const &arg4_defvalue = wxPyEmptyString ;
5635 wxString *arg4 = (wxString *) &arg4_defvalue ;
5636 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5637 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5638 wxSize const &arg6_defvalue = wxDefaultSize ;
5639 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5640 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5641 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5642 long arg8 = (long) 0 ;
5643 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5644 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5645 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5646 wxString *arg10 = (wxString *) &arg10_defvalue ;
5647 bool result;
5648 void *argp1 = 0 ;
5649 int res1 = 0 ;
5650 void *argp2 = 0 ;
5651 int res2 = 0 ;
5652 int val3 ;
5653 int ecode3 = 0 ;
5654 bool temp4 = false ;
5655 wxPoint temp5 ;
5656 wxSize temp6 ;
5657 bool temp7 = false ;
5658 long val8 ;
5659 int ecode8 = 0 ;
5660 void *argp9 = 0 ;
5661 int res9 = 0 ;
5662 bool temp10 = false ;
5663 PyObject * obj0 = 0 ;
5664 PyObject * obj1 = 0 ;
5665 PyObject * obj2 = 0 ;
5666 PyObject * obj3 = 0 ;
5667 PyObject * obj4 = 0 ;
5668 PyObject * obj5 = 0 ;
5669 PyObject * obj6 = 0 ;
5670 PyObject * obj7 = 0 ;
5671 PyObject * obj8 = 0 ;
5672 PyObject * obj9 = 0 ;
5673 char * kwnames[] = {
5674 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5675 };
5676
5677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5679 if (!SWIG_IsOK(res1)) {
5680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5681 }
5682 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5683 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5684 if (!SWIG_IsOK(res2)) {
5685 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5686 }
5687 arg2 = reinterpret_cast< wxWindow * >(argp2);
5688 if (obj2) {
5689 ecode3 = SWIG_AsVal_int(obj2, &val3);
5690 if (!SWIG_IsOK(ecode3)) {
5691 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5692 }
5693 arg3 = static_cast< int >(val3);
5694 }
5695 if (obj3) {
5696 {
5697 arg4 = wxString_in_helper(obj3);
5698 if (arg4 == NULL) SWIG_fail;
5699 temp4 = true;
5700 }
5701 }
5702 if (obj4) {
5703 {
5704 arg5 = &temp5;
5705 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5706 }
5707 }
5708 if (obj5) {
5709 {
5710 arg6 = &temp6;
5711 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5712 }
5713 }
5714 if (obj6) {
5715 {
5716 if (! PySequence_Check(obj6)) {
5717 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5718 SWIG_fail;
5719 }
5720 arg7 = new wxArrayString;
5721 temp7 = true;
5722 int i, len=PySequence_Length(obj6);
5723 for (i=0; i<len; i++) {
5724 PyObject* item = PySequence_GetItem(obj6, i);
5725 wxString* s = wxString_in_helper(item);
5726 if (PyErr_Occurred()) SWIG_fail;
5727 arg7->Add(*s);
5728 delete s;
5729 Py_DECREF(item);
5730 }
5731 }
5732 }
5733 if (obj7) {
5734 ecode8 = SWIG_AsVal_long(obj7, &val8);
5735 if (!SWIG_IsOK(ecode8)) {
5736 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5737 }
5738 arg8 = static_cast< long >(val8);
5739 }
5740 if (obj8) {
5741 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5742 if (!SWIG_IsOK(res9)) {
5743 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5744 }
5745 if (!argp9) {
5746 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5747 }
5748 arg9 = reinterpret_cast< wxValidator * >(argp9);
5749 }
5750 if (obj9) {
5751 {
5752 arg10 = wxString_in_helper(obj9);
5753 if (arg10 == NULL) SWIG_fail;
5754 temp10 = true;
5755 }
5756 }
5757 {
5758 PyThreadState* __tstate = wxPyBeginAllowThreads();
5759 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);
5760 wxPyEndAllowThreads(__tstate);
5761 if (PyErr_Occurred()) SWIG_fail;
5762 }
5763 {
5764 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5765 }
5766 {
5767 if (temp4)
5768 delete arg4;
5769 }
5770 {
5771 if (temp7) delete arg7;
5772 }
5773 {
5774 if (temp10)
5775 delete arg10;
5776 }
5777 return resultobj;
5778 fail:
5779 {
5780 if (temp4)
5781 delete arg4;
5782 }
5783 {
5784 if (temp7) delete arg7;
5785 }
5786 {
5787 if (temp10)
5788 delete arg10;
5789 }
5790 return NULL;
5791 }
5792
5793
5794 SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5795 PyObject *resultobj = 0;
5796 wxComboBox *arg1 = (wxComboBox *) 0 ;
5797 wxString result;
5798 void *argp1 = 0 ;
5799 int res1 = 0 ;
5800 PyObject *swig_obj[1] ;
5801
5802 if (!args) SWIG_fail;
5803 swig_obj[0] = args;
5804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5805 if (!SWIG_IsOK(res1)) {
5806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5807 }
5808 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5809 {
5810 PyThreadState* __tstate = wxPyBeginAllowThreads();
5811 result = ((wxComboBox const *)arg1)->GetValue();
5812 wxPyEndAllowThreads(__tstate);
5813 if (PyErr_Occurred()) SWIG_fail;
5814 }
5815 {
5816 #if wxUSE_UNICODE
5817 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5818 #else
5819 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5820 #endif
5821 }
5822 return resultobj;
5823 fail:
5824 return NULL;
5825 }
5826
5827
5828 SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5829 PyObject *resultobj = 0;
5830 wxComboBox *arg1 = (wxComboBox *) 0 ;
5831 wxString *arg2 = 0 ;
5832 void *argp1 = 0 ;
5833 int res1 = 0 ;
5834 bool temp2 = false ;
5835 PyObject * obj0 = 0 ;
5836 PyObject * obj1 = 0 ;
5837 char * kwnames[] = {
5838 (char *) "self",(char *) "value", NULL
5839 };
5840
5841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5843 if (!SWIG_IsOK(res1)) {
5844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5845 }
5846 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5847 {
5848 arg2 = wxString_in_helper(obj1);
5849 if (arg2 == NULL) SWIG_fail;
5850 temp2 = true;
5851 }
5852 {
5853 PyThreadState* __tstate = wxPyBeginAllowThreads();
5854 (arg1)->SetValue((wxString const &)*arg2);
5855 wxPyEndAllowThreads(__tstate);
5856 if (PyErr_Occurred()) SWIG_fail;
5857 }
5858 resultobj = SWIG_Py_Void();
5859 {
5860 if (temp2)
5861 delete arg2;
5862 }
5863 return resultobj;
5864 fail:
5865 {
5866 if (temp2)
5867 delete arg2;
5868 }
5869 return NULL;
5870 }
5871
5872
5873 SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5874 PyObject *resultobj = 0;
5875 wxComboBox *arg1 = (wxComboBox *) 0 ;
5876 void *argp1 = 0 ;
5877 int res1 = 0 ;
5878 PyObject *swig_obj[1] ;
5879
5880 if (!args) SWIG_fail;
5881 swig_obj[0] = args;
5882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5883 if (!SWIG_IsOK(res1)) {
5884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5885 }
5886 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5887 {
5888 PyThreadState* __tstate = wxPyBeginAllowThreads();
5889 (arg1)->Copy();
5890 wxPyEndAllowThreads(__tstate);
5891 if (PyErr_Occurred()) SWIG_fail;
5892 }
5893 resultobj = SWIG_Py_Void();
5894 return resultobj;
5895 fail:
5896 return NULL;
5897 }
5898
5899
5900 SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5901 PyObject *resultobj = 0;
5902 wxComboBox *arg1 = (wxComboBox *) 0 ;
5903 void *argp1 = 0 ;
5904 int res1 = 0 ;
5905 PyObject *swig_obj[1] ;
5906
5907 if (!args) SWIG_fail;
5908 swig_obj[0] = args;
5909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5910 if (!SWIG_IsOK(res1)) {
5911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5912 }
5913 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5914 {
5915 PyThreadState* __tstate = wxPyBeginAllowThreads();
5916 (arg1)->Cut();
5917 wxPyEndAllowThreads(__tstate);
5918 if (PyErr_Occurred()) SWIG_fail;
5919 }
5920 resultobj = SWIG_Py_Void();
5921 return resultobj;
5922 fail:
5923 return NULL;
5924 }
5925
5926
5927 SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5928 PyObject *resultobj = 0;
5929 wxComboBox *arg1 = (wxComboBox *) 0 ;
5930 void *argp1 = 0 ;
5931 int res1 = 0 ;
5932 PyObject *swig_obj[1] ;
5933
5934 if (!args) SWIG_fail;
5935 swig_obj[0] = args;
5936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5937 if (!SWIG_IsOK(res1)) {
5938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5939 }
5940 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5941 {
5942 PyThreadState* __tstate = wxPyBeginAllowThreads();
5943 (arg1)->Paste();
5944 wxPyEndAllowThreads(__tstate);
5945 if (PyErr_Occurred()) SWIG_fail;
5946 }
5947 resultobj = SWIG_Py_Void();
5948 return resultobj;
5949 fail:
5950 return NULL;
5951 }
5952
5953
5954 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5955 PyObject *resultobj = 0;
5956 wxComboBox *arg1 = (wxComboBox *) 0 ;
5957 long arg2 ;
5958 void *argp1 = 0 ;
5959 int res1 = 0 ;
5960 long val2 ;
5961 int ecode2 = 0 ;
5962 PyObject * obj0 = 0 ;
5963 PyObject * obj1 = 0 ;
5964 char * kwnames[] = {
5965 (char *) "self",(char *) "pos", NULL
5966 };
5967
5968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5970 if (!SWIG_IsOK(res1)) {
5971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
5972 }
5973 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5974 ecode2 = SWIG_AsVal_long(obj1, &val2);
5975 if (!SWIG_IsOK(ecode2)) {
5976 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
5977 }
5978 arg2 = static_cast< long >(val2);
5979 {
5980 PyThreadState* __tstate = wxPyBeginAllowThreads();
5981 (arg1)->SetInsertionPoint(arg2);
5982 wxPyEndAllowThreads(__tstate);
5983 if (PyErr_Occurred()) SWIG_fail;
5984 }
5985 resultobj = SWIG_Py_Void();
5986 return resultobj;
5987 fail:
5988 return NULL;
5989 }
5990
5991
5992 SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5993 PyObject *resultobj = 0;
5994 wxComboBox *arg1 = (wxComboBox *) 0 ;
5995 long result;
5996 void *argp1 = 0 ;
5997 int res1 = 0 ;
5998 PyObject *swig_obj[1] ;
5999
6000 if (!args) SWIG_fail;
6001 swig_obj[0] = args;
6002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6003 if (!SWIG_IsOK(res1)) {
6004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6005 }
6006 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6007 {
6008 PyThreadState* __tstate = wxPyBeginAllowThreads();
6009 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6010 wxPyEndAllowThreads(__tstate);
6011 if (PyErr_Occurred()) SWIG_fail;
6012 }
6013 resultobj = SWIG_From_long(static_cast< long >(result));
6014 return resultobj;
6015 fail:
6016 return NULL;
6017 }
6018
6019
6020 SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6021 PyObject *resultobj = 0;
6022 wxComboBox *arg1 = (wxComboBox *) 0 ;
6023 long result;
6024 void *argp1 = 0 ;
6025 int res1 = 0 ;
6026 PyObject *swig_obj[1] ;
6027
6028 if (!args) SWIG_fail;
6029 swig_obj[0] = args;
6030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6031 if (!SWIG_IsOK(res1)) {
6032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6033 }
6034 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6035 {
6036 PyThreadState* __tstate = wxPyBeginAllowThreads();
6037 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6038 wxPyEndAllowThreads(__tstate);
6039 if (PyErr_Occurred()) SWIG_fail;
6040 }
6041 resultobj = SWIG_From_long(static_cast< long >(result));
6042 return resultobj;
6043 fail:
6044 return NULL;
6045 }
6046
6047
6048 SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6049 PyObject *resultobj = 0;
6050 wxComboBox *arg1 = (wxComboBox *) 0 ;
6051 long arg2 ;
6052 long arg3 ;
6053 wxString *arg4 = 0 ;
6054 void *argp1 = 0 ;
6055 int res1 = 0 ;
6056 long val2 ;
6057 int ecode2 = 0 ;
6058 long val3 ;
6059 int ecode3 = 0 ;
6060 bool temp4 = false ;
6061 PyObject * obj0 = 0 ;
6062 PyObject * obj1 = 0 ;
6063 PyObject * obj2 = 0 ;
6064 PyObject * obj3 = 0 ;
6065 char * kwnames[] = {
6066 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
6067 };
6068
6069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6071 if (!SWIG_IsOK(res1)) {
6072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6073 }
6074 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6075 ecode2 = SWIG_AsVal_long(obj1, &val2);
6076 if (!SWIG_IsOK(ecode2)) {
6077 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6078 }
6079 arg2 = static_cast< long >(val2);
6080 ecode3 = SWIG_AsVal_long(obj2, &val3);
6081 if (!SWIG_IsOK(ecode3)) {
6082 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6083 }
6084 arg3 = static_cast< long >(val3);
6085 {
6086 arg4 = wxString_in_helper(obj3);
6087 if (arg4 == NULL) SWIG_fail;
6088 temp4 = true;
6089 }
6090 {
6091 PyThreadState* __tstate = wxPyBeginAllowThreads();
6092 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6093 wxPyEndAllowThreads(__tstate);
6094 if (PyErr_Occurred()) SWIG_fail;
6095 }
6096 resultobj = SWIG_Py_Void();
6097 {
6098 if (temp4)
6099 delete arg4;
6100 }
6101 return resultobj;
6102 fail:
6103 {
6104 if (temp4)
6105 delete arg4;
6106 }
6107 return NULL;
6108 }
6109
6110
6111 SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6112 PyObject *resultobj = 0;
6113 wxComboBox *arg1 = (wxComboBox *) 0 ;
6114 long arg2 ;
6115 long arg3 ;
6116 void *argp1 = 0 ;
6117 int res1 = 0 ;
6118 long val2 ;
6119 int ecode2 = 0 ;
6120 long val3 ;
6121 int ecode3 = 0 ;
6122 PyObject * obj0 = 0 ;
6123 PyObject * obj1 = 0 ;
6124 PyObject * obj2 = 0 ;
6125 char * kwnames[] = {
6126 (char *) "self",(char *) "from",(char *) "to", NULL
6127 };
6128
6129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6131 if (!SWIG_IsOK(res1)) {
6132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6133 }
6134 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6135 ecode2 = SWIG_AsVal_long(obj1, &val2);
6136 if (!SWIG_IsOK(ecode2)) {
6137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6138 }
6139 arg2 = static_cast< long >(val2);
6140 ecode3 = SWIG_AsVal_long(obj2, &val3);
6141 if (!SWIG_IsOK(ecode3)) {
6142 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6143 }
6144 arg3 = static_cast< long >(val3);
6145 {
6146 PyThreadState* __tstate = wxPyBeginAllowThreads();
6147 (arg1)->SetSelection(arg2,arg3);
6148 wxPyEndAllowThreads(__tstate);
6149 if (PyErr_Occurred()) SWIG_fail;
6150 }
6151 resultobj = SWIG_Py_Void();
6152 return resultobj;
6153 fail:
6154 return NULL;
6155 }
6156
6157
6158 SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6159 PyObject *resultobj = 0;
6160 wxComboBox *arg1 = (wxComboBox *) 0 ;
6161 long *arg2 = (long *) 0 ;
6162 long *arg3 = (long *) 0 ;
6163 void *argp1 = 0 ;
6164 int res1 = 0 ;
6165 long temp2 ;
6166 int res2 = SWIG_TMPOBJ ;
6167 long temp3 ;
6168 int res3 = SWIG_TMPOBJ ;
6169 PyObject *swig_obj[1] ;
6170
6171 arg2 = &temp2;
6172 arg3 = &temp3;
6173 if (!args) SWIG_fail;
6174 swig_obj[0] = args;
6175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6176 if (!SWIG_IsOK(res1)) {
6177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6178 }
6179 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6180 {
6181 PyThreadState* __tstate = wxPyBeginAllowThreads();
6182 (arg1)->GetSelection(arg2,arg3);
6183 wxPyEndAllowThreads(__tstate);
6184 if (PyErr_Occurred()) SWIG_fail;
6185 }
6186 resultobj = SWIG_Py_Void();
6187 if (SWIG_IsTmpObj(res2)) {
6188 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6189 } else {
6190 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6191 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6192 }
6193 if (SWIG_IsTmpObj(res3)) {
6194 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6195 } else {
6196 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6197 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6198 }
6199 return resultobj;
6200 fail:
6201 return NULL;
6202 }
6203
6204
6205 SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6206 PyObject *resultobj = 0;
6207 wxComboBox *arg1 = (wxComboBox *) 0 ;
6208 int result;
6209 void *argp1 = 0 ;
6210 int res1 = 0 ;
6211 PyObject *swig_obj[1] ;
6212
6213 if (!args) SWIG_fail;
6214 swig_obj[0] = args;
6215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6216 if (!SWIG_IsOK(res1)) {
6217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6218 }
6219 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6220 {
6221 PyThreadState* __tstate = wxPyBeginAllowThreads();
6222 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6223 wxPyEndAllowThreads(__tstate);
6224 if (PyErr_Occurred()) SWIG_fail;
6225 }
6226 resultobj = SWIG_From_int(static_cast< int >(result));
6227 return resultobj;
6228 fail:
6229 return NULL;
6230 }
6231
6232
6233 SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6234 PyObject *resultobj = 0;
6235 wxComboBox *arg1 = (wxComboBox *) 0 ;
6236 wxString *arg2 = 0 ;
6237 bool result;
6238 void *argp1 = 0 ;
6239 int res1 = 0 ;
6240 bool temp2 = false ;
6241 PyObject * obj0 = 0 ;
6242 PyObject * obj1 = 0 ;
6243 char * kwnames[] = {
6244 (char *) "self",(char *) "string", NULL
6245 };
6246
6247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6249 if (!SWIG_IsOK(res1)) {
6250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6251 }
6252 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6253 {
6254 arg2 = wxString_in_helper(obj1);
6255 if (arg2 == NULL) SWIG_fail;
6256 temp2 = true;
6257 }
6258 {
6259 PyThreadState* __tstate = wxPyBeginAllowThreads();
6260 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6261 wxPyEndAllowThreads(__tstate);
6262 if (PyErr_Occurred()) SWIG_fail;
6263 }
6264 {
6265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6266 }
6267 {
6268 if (temp2)
6269 delete arg2;
6270 }
6271 return resultobj;
6272 fail:
6273 {
6274 if (temp2)
6275 delete arg2;
6276 }
6277 return NULL;
6278 }
6279
6280
6281 SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6282 PyObject *resultobj = 0;
6283 wxComboBox *arg1 = (wxComboBox *) 0 ;
6284 int arg2 ;
6285 wxString *arg3 = 0 ;
6286 void *argp1 = 0 ;
6287 int res1 = 0 ;
6288 int val2 ;
6289 int ecode2 = 0 ;
6290 bool temp3 = false ;
6291 PyObject * obj0 = 0 ;
6292 PyObject * obj1 = 0 ;
6293 PyObject * obj2 = 0 ;
6294 char * kwnames[] = {
6295 (char *) "self",(char *) "n",(char *) "string", NULL
6296 };
6297
6298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6300 if (!SWIG_IsOK(res1)) {
6301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'");
6302 }
6303 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6304 ecode2 = SWIG_AsVal_int(obj1, &val2);
6305 if (!SWIG_IsOK(ecode2)) {
6306 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'");
6307 }
6308 arg2 = static_cast< int >(val2);
6309 {
6310 arg3 = wxString_in_helper(obj2);
6311 if (arg3 == NULL) SWIG_fail;
6312 temp3 = true;
6313 }
6314 {
6315 PyThreadState* __tstate = wxPyBeginAllowThreads();
6316 (arg1)->SetString(arg2,(wxString const &)*arg3);
6317 wxPyEndAllowThreads(__tstate);
6318 if (PyErr_Occurred()) SWIG_fail;
6319 }
6320 resultobj = SWIG_Py_Void();
6321 {
6322 if (temp3)
6323 delete arg3;
6324 }
6325 return resultobj;
6326 fail:
6327 {
6328 if (temp3)
6329 delete arg3;
6330 }
6331 return NULL;
6332 }
6333
6334
6335 SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6336 PyObject *resultobj = 0;
6337 wxComboBox *arg1 = (wxComboBox *) 0 ;
6338 bool arg2 ;
6339 void *argp1 = 0 ;
6340 int res1 = 0 ;
6341 bool val2 ;
6342 int ecode2 = 0 ;
6343 PyObject * obj0 = 0 ;
6344 PyObject * obj1 = 0 ;
6345 char * kwnames[] = {
6346 (char *) "self",(char *) "editable", NULL
6347 };
6348
6349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6351 if (!SWIG_IsOK(res1)) {
6352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6353 }
6354 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6355 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6356 if (!SWIG_IsOK(ecode2)) {
6357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6358 }
6359 arg2 = static_cast< bool >(val2);
6360 {
6361 PyThreadState* __tstate = wxPyBeginAllowThreads();
6362 (arg1)->SetEditable(arg2);
6363 wxPyEndAllowThreads(__tstate);
6364 if (PyErr_Occurred()) SWIG_fail;
6365 }
6366 resultobj = SWIG_Py_Void();
6367 return resultobj;
6368 fail:
6369 return NULL;
6370 }
6371
6372
6373 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6374 PyObject *resultobj = 0;
6375 wxComboBox *arg1 = (wxComboBox *) 0 ;
6376 void *argp1 = 0 ;
6377 int res1 = 0 ;
6378 PyObject *swig_obj[1] ;
6379
6380 if (!args) SWIG_fail;
6381 swig_obj[0] = args;
6382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6383 if (!SWIG_IsOK(res1)) {
6384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6385 }
6386 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6387 {
6388 PyThreadState* __tstate = wxPyBeginAllowThreads();
6389 (arg1)->SetInsertionPointEnd();
6390 wxPyEndAllowThreads(__tstate);
6391 if (PyErr_Occurred()) SWIG_fail;
6392 }
6393 resultobj = SWIG_Py_Void();
6394 return resultobj;
6395 fail:
6396 return NULL;
6397 }
6398
6399
6400 SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6401 PyObject *resultobj = 0;
6402 wxComboBox *arg1 = (wxComboBox *) 0 ;
6403 long arg2 ;
6404 long arg3 ;
6405 void *argp1 = 0 ;
6406 int res1 = 0 ;
6407 long val2 ;
6408 int ecode2 = 0 ;
6409 long val3 ;
6410 int ecode3 = 0 ;
6411 PyObject * obj0 = 0 ;
6412 PyObject * obj1 = 0 ;
6413 PyObject * obj2 = 0 ;
6414 char * kwnames[] = {
6415 (char *) "self",(char *) "from",(char *) "to", NULL
6416 };
6417
6418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6420 if (!SWIG_IsOK(res1)) {
6421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6422 }
6423 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6424 ecode2 = SWIG_AsVal_long(obj1, &val2);
6425 if (!SWIG_IsOK(ecode2)) {
6426 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6427 }
6428 arg2 = static_cast< long >(val2);
6429 ecode3 = SWIG_AsVal_long(obj2, &val3);
6430 if (!SWIG_IsOK(ecode3)) {
6431 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6432 }
6433 arg3 = static_cast< long >(val3);
6434 {
6435 PyThreadState* __tstate = wxPyBeginAllowThreads();
6436 (arg1)->Remove(arg2,arg3);
6437 wxPyEndAllowThreads(__tstate);
6438 if (PyErr_Occurred()) SWIG_fail;
6439 }
6440 resultobj = SWIG_Py_Void();
6441 return resultobj;
6442 fail:
6443 return NULL;
6444 }
6445
6446
6447 SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6448 PyObject *resultobj = 0;
6449 wxComboBox *arg1 = (wxComboBox *) 0 ;
6450 bool result;
6451 void *argp1 = 0 ;
6452 int res1 = 0 ;
6453 PyObject *swig_obj[1] ;
6454
6455 if (!args) SWIG_fail;
6456 swig_obj[0] = args;
6457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6458 if (!SWIG_IsOK(res1)) {
6459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6460 }
6461 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6462 {
6463 PyThreadState* __tstate = wxPyBeginAllowThreads();
6464 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6465 wxPyEndAllowThreads(__tstate);
6466 if (PyErr_Occurred()) SWIG_fail;
6467 }
6468 {
6469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6470 }
6471 return resultobj;
6472 fail:
6473 return NULL;
6474 }
6475
6476
6477 SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6478 PyObject *resultobj = 0;
6479 wxComboBox *arg1 = (wxComboBox *) 0 ;
6480 void *argp1 = 0 ;
6481 int res1 = 0 ;
6482 PyObject *swig_obj[1] ;
6483
6484 if (!args) SWIG_fail;
6485 swig_obj[0] = args;
6486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6487 if (!SWIG_IsOK(res1)) {
6488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6489 }
6490 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6491 {
6492 PyThreadState* __tstate = wxPyBeginAllowThreads();
6493 (arg1)->Undo();
6494 wxPyEndAllowThreads(__tstate);
6495 if (PyErr_Occurred()) SWIG_fail;
6496 }
6497 resultobj = SWIG_Py_Void();
6498 return resultobj;
6499 fail:
6500 return NULL;
6501 }
6502
6503
6504 SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6505 PyObject *resultobj = 0;
6506 wxComboBox *arg1 = (wxComboBox *) 0 ;
6507 void *argp1 = 0 ;
6508 int res1 = 0 ;
6509 PyObject *swig_obj[1] ;
6510
6511 if (!args) SWIG_fail;
6512 swig_obj[0] = args;
6513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6514 if (!SWIG_IsOK(res1)) {
6515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6516 }
6517 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6518 {
6519 PyThreadState* __tstate = wxPyBeginAllowThreads();
6520 (arg1)->Redo();
6521 wxPyEndAllowThreads(__tstate);
6522 if (PyErr_Occurred()) SWIG_fail;
6523 }
6524 resultobj = SWIG_Py_Void();
6525 return resultobj;
6526 fail:
6527 return NULL;
6528 }
6529
6530
6531 SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6532 PyObject *resultobj = 0;
6533 wxComboBox *arg1 = (wxComboBox *) 0 ;
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_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6543 }
6544 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6545 {
6546 PyThreadState* __tstate = wxPyBeginAllowThreads();
6547 (arg1)->SelectAll();
6548 wxPyEndAllowThreads(__tstate);
6549 if (PyErr_Occurred()) SWIG_fail;
6550 }
6551 resultobj = SWIG_Py_Void();
6552 return resultobj;
6553 fail:
6554 return NULL;
6555 }
6556
6557
6558 SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6559 PyObject *resultobj = 0;
6560 wxComboBox *arg1 = (wxComboBox *) 0 ;
6561 bool result;
6562 void *argp1 = 0 ;
6563 int res1 = 0 ;
6564 PyObject *swig_obj[1] ;
6565
6566 if (!args) SWIG_fail;
6567 swig_obj[0] = args;
6568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6569 if (!SWIG_IsOK(res1)) {
6570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6571 }
6572 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6573 {
6574 PyThreadState* __tstate = wxPyBeginAllowThreads();
6575 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6576 wxPyEndAllowThreads(__tstate);
6577 if (PyErr_Occurred()) SWIG_fail;
6578 }
6579 {
6580 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6581 }
6582 return resultobj;
6583 fail:
6584 return NULL;
6585 }
6586
6587
6588 SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6589 PyObject *resultobj = 0;
6590 wxComboBox *arg1 = (wxComboBox *) 0 ;
6591 bool result;
6592 void *argp1 = 0 ;
6593 int res1 = 0 ;
6594 PyObject *swig_obj[1] ;
6595
6596 if (!args) SWIG_fail;
6597 swig_obj[0] = args;
6598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6599 if (!SWIG_IsOK(res1)) {
6600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6601 }
6602 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6603 {
6604 PyThreadState* __tstate = wxPyBeginAllowThreads();
6605 result = (bool)((wxComboBox const *)arg1)->CanCut();
6606 wxPyEndAllowThreads(__tstate);
6607 if (PyErr_Occurred()) SWIG_fail;
6608 }
6609 {
6610 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6611 }
6612 return resultobj;
6613 fail:
6614 return NULL;
6615 }
6616
6617
6618 SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6619 PyObject *resultobj = 0;
6620 wxComboBox *arg1 = (wxComboBox *) 0 ;
6621 bool result;
6622 void *argp1 = 0 ;
6623 int res1 = 0 ;
6624 PyObject *swig_obj[1] ;
6625
6626 if (!args) SWIG_fail;
6627 swig_obj[0] = args;
6628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6629 if (!SWIG_IsOK(res1)) {
6630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6631 }
6632 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6633 {
6634 PyThreadState* __tstate = wxPyBeginAllowThreads();
6635 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6636 wxPyEndAllowThreads(__tstate);
6637 if (PyErr_Occurred()) SWIG_fail;
6638 }
6639 {
6640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6641 }
6642 return resultobj;
6643 fail:
6644 return NULL;
6645 }
6646
6647
6648 SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6649 PyObject *resultobj = 0;
6650 wxComboBox *arg1 = (wxComboBox *) 0 ;
6651 bool result;
6652 void *argp1 = 0 ;
6653 int res1 = 0 ;
6654 PyObject *swig_obj[1] ;
6655
6656 if (!args) SWIG_fail;
6657 swig_obj[0] = args;
6658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6659 if (!SWIG_IsOK(res1)) {
6660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6661 }
6662 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6663 {
6664 PyThreadState* __tstate = wxPyBeginAllowThreads();
6665 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6666 wxPyEndAllowThreads(__tstate);
6667 if (PyErr_Occurred()) SWIG_fail;
6668 }
6669 {
6670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6671 }
6672 return resultobj;
6673 fail:
6674 return NULL;
6675 }
6676
6677
6678 SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6679 PyObject *resultobj = 0;
6680 wxComboBox *arg1 = (wxComboBox *) 0 ;
6681 bool result;
6682 void *argp1 = 0 ;
6683 int res1 = 0 ;
6684 PyObject *swig_obj[1] ;
6685
6686 if (!args) SWIG_fail;
6687 swig_obj[0] = args;
6688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6689 if (!SWIG_IsOK(res1)) {
6690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6691 }
6692 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6693 {
6694 PyThreadState* __tstate = wxPyBeginAllowThreads();
6695 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6696 wxPyEndAllowThreads(__tstate);
6697 if (PyErr_Occurred()) SWIG_fail;
6698 }
6699 {
6700 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6701 }
6702 return resultobj;
6703 fail:
6704 return NULL;
6705 }
6706
6707
6708 SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6709 PyObject *resultobj = 0;
6710 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6711 SwigValueWrapper<wxVisualAttributes > result;
6712 int val1 ;
6713 int ecode1 = 0 ;
6714 PyObject * obj0 = 0 ;
6715 char * kwnames[] = {
6716 (char *) "variant", NULL
6717 };
6718
6719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6720 if (obj0) {
6721 ecode1 = SWIG_AsVal_int(obj0, &val1);
6722 if (!SWIG_IsOK(ecode1)) {
6723 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6724 }
6725 arg1 = static_cast< wxWindowVariant >(val1);
6726 }
6727 {
6728 if (!wxPyCheckForApp()) SWIG_fail;
6729 PyThreadState* __tstate = wxPyBeginAllowThreads();
6730 result = wxComboBox::GetClassDefaultAttributes(arg1);
6731 wxPyEndAllowThreads(__tstate);
6732 if (PyErr_Occurred()) SWIG_fail;
6733 }
6734 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6735 return resultobj;
6736 fail:
6737 return NULL;
6738 }
6739
6740
6741 SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6742 PyObject *obj;
6743 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6744 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6745 return SWIG_Py_Void();
6746 }
6747
6748 SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6749 return SWIG_Python_InitShadowInstance(args);
6750 }
6751
6752 SWIGINTERN int GaugeNameStr_set(PyObject *) {
6753 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6754 return 1;
6755 }
6756
6757
6758 SWIGINTERN PyObject *GaugeNameStr_get(void) {
6759 PyObject *pyobj = 0;
6760
6761 {
6762 #if wxUSE_UNICODE
6763 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6764 #else
6765 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6766 #endif
6767 }
6768 return pyobj;
6769 }
6770
6771
6772 SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6773 PyObject *resultobj = 0;
6774 wxWindow *arg1 = (wxWindow *) 0 ;
6775 int arg2 = (int) -1 ;
6776 int arg3 = (int) 100 ;
6777 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6778 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6779 wxSize const &arg5_defvalue = wxDefaultSize ;
6780 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6781 long arg6 = (long) wxGA_HORIZONTAL ;
6782 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6783 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6784 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6785 wxString *arg8 = (wxString *) &arg8_defvalue ;
6786 wxGauge *result = 0 ;
6787 void *argp1 = 0 ;
6788 int res1 = 0 ;
6789 int val2 ;
6790 int ecode2 = 0 ;
6791 int val3 ;
6792 int ecode3 = 0 ;
6793 wxPoint temp4 ;
6794 wxSize temp5 ;
6795 long val6 ;
6796 int ecode6 = 0 ;
6797 void *argp7 = 0 ;
6798 int res7 = 0 ;
6799 bool temp8 = false ;
6800 PyObject * obj0 = 0 ;
6801 PyObject * obj1 = 0 ;
6802 PyObject * obj2 = 0 ;
6803 PyObject * obj3 = 0 ;
6804 PyObject * obj4 = 0 ;
6805 PyObject * obj5 = 0 ;
6806 PyObject * obj6 = 0 ;
6807 PyObject * obj7 = 0 ;
6808 char * kwnames[] = {
6809 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6810 };
6811
6812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6814 if (!SWIG_IsOK(res1)) {
6815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6816 }
6817 arg1 = reinterpret_cast< wxWindow * >(argp1);
6818 if (obj1) {
6819 ecode2 = SWIG_AsVal_int(obj1, &val2);
6820 if (!SWIG_IsOK(ecode2)) {
6821 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6822 }
6823 arg2 = static_cast< int >(val2);
6824 }
6825 if (obj2) {
6826 ecode3 = SWIG_AsVal_int(obj2, &val3);
6827 if (!SWIG_IsOK(ecode3)) {
6828 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6829 }
6830 arg3 = static_cast< int >(val3);
6831 }
6832 if (obj3) {
6833 {
6834 arg4 = &temp4;
6835 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6836 }
6837 }
6838 if (obj4) {
6839 {
6840 arg5 = &temp5;
6841 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6842 }
6843 }
6844 if (obj5) {
6845 ecode6 = SWIG_AsVal_long(obj5, &val6);
6846 if (!SWIG_IsOK(ecode6)) {
6847 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6848 }
6849 arg6 = static_cast< long >(val6);
6850 }
6851 if (obj6) {
6852 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6853 if (!SWIG_IsOK(res7)) {
6854 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6855 }
6856 if (!argp7) {
6857 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6858 }
6859 arg7 = reinterpret_cast< wxValidator * >(argp7);
6860 }
6861 if (obj7) {
6862 {
6863 arg8 = wxString_in_helper(obj7);
6864 if (arg8 == NULL) SWIG_fail;
6865 temp8 = true;
6866 }
6867 }
6868 {
6869 if (!wxPyCheckForApp()) SWIG_fail;
6870 PyThreadState* __tstate = wxPyBeginAllowThreads();
6871 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6872 wxPyEndAllowThreads(__tstate);
6873 if (PyErr_Occurred()) SWIG_fail;
6874 }
6875 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6876 {
6877 if (temp8)
6878 delete arg8;
6879 }
6880 return resultobj;
6881 fail:
6882 {
6883 if (temp8)
6884 delete arg8;
6885 }
6886 return NULL;
6887 }
6888
6889
6890 SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6891 PyObject *resultobj = 0;
6892 wxGauge *result = 0 ;
6893
6894 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6895 {
6896 if (!wxPyCheckForApp()) SWIG_fail;
6897 PyThreadState* __tstate = wxPyBeginAllowThreads();
6898 result = (wxGauge *)new wxGauge();
6899 wxPyEndAllowThreads(__tstate);
6900 if (PyErr_Occurred()) SWIG_fail;
6901 }
6902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6903 return resultobj;
6904 fail:
6905 return NULL;
6906 }
6907
6908
6909 SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6910 PyObject *resultobj = 0;
6911 wxGauge *arg1 = (wxGauge *) 0 ;
6912 wxWindow *arg2 = (wxWindow *) 0 ;
6913 int arg3 = (int) -1 ;
6914 int arg4 = (int) 100 ;
6915 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6916 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6917 wxSize const &arg6_defvalue = wxDefaultSize ;
6918 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6919 long arg7 = (long) wxGA_HORIZONTAL ;
6920 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6921 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6922 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6923 wxString *arg9 = (wxString *) &arg9_defvalue ;
6924 bool result;
6925 void *argp1 = 0 ;
6926 int res1 = 0 ;
6927 void *argp2 = 0 ;
6928 int res2 = 0 ;
6929 int val3 ;
6930 int ecode3 = 0 ;
6931 int val4 ;
6932 int ecode4 = 0 ;
6933 wxPoint temp5 ;
6934 wxSize temp6 ;
6935 long val7 ;
6936 int ecode7 = 0 ;
6937 void *argp8 = 0 ;
6938 int res8 = 0 ;
6939 bool temp9 = false ;
6940 PyObject * obj0 = 0 ;
6941 PyObject * obj1 = 0 ;
6942 PyObject * obj2 = 0 ;
6943 PyObject * obj3 = 0 ;
6944 PyObject * obj4 = 0 ;
6945 PyObject * obj5 = 0 ;
6946 PyObject * obj6 = 0 ;
6947 PyObject * obj7 = 0 ;
6948 PyObject * obj8 = 0 ;
6949 char * kwnames[] = {
6950 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6951 };
6952
6953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6955 if (!SWIG_IsOK(res1)) {
6956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6957 }
6958 arg1 = reinterpret_cast< wxGauge * >(argp1);
6959 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6960 if (!SWIG_IsOK(res2)) {
6961 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6962 }
6963 arg2 = reinterpret_cast< wxWindow * >(argp2);
6964 if (obj2) {
6965 ecode3 = SWIG_AsVal_int(obj2, &val3);
6966 if (!SWIG_IsOK(ecode3)) {
6967 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6968 }
6969 arg3 = static_cast< int >(val3);
6970 }
6971 if (obj3) {
6972 ecode4 = SWIG_AsVal_int(obj3, &val4);
6973 if (!SWIG_IsOK(ecode4)) {
6974 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6975 }
6976 arg4 = static_cast< int >(val4);
6977 }
6978 if (obj4) {
6979 {
6980 arg5 = &temp5;
6981 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
6982 }
6983 }
6984 if (obj5) {
6985 {
6986 arg6 = &temp6;
6987 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
6988 }
6989 }
6990 if (obj6) {
6991 ecode7 = SWIG_AsVal_long(obj6, &val7);
6992 if (!SWIG_IsOK(ecode7)) {
6993 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
6994 }
6995 arg7 = static_cast< long >(val7);
6996 }
6997 if (obj7) {
6998 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
6999 if (!SWIG_IsOK(res8)) {
7000 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7001 }
7002 if (!argp8) {
7003 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7004 }
7005 arg8 = reinterpret_cast< wxValidator * >(argp8);
7006 }
7007 if (obj8) {
7008 {
7009 arg9 = wxString_in_helper(obj8);
7010 if (arg9 == NULL) SWIG_fail;
7011 temp9 = true;
7012 }
7013 }
7014 {
7015 PyThreadState* __tstate = wxPyBeginAllowThreads();
7016 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7017 wxPyEndAllowThreads(__tstate);
7018 if (PyErr_Occurred()) SWIG_fail;
7019 }
7020 {
7021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7022 }
7023 {
7024 if (temp9)
7025 delete arg9;
7026 }
7027 return resultobj;
7028 fail:
7029 {
7030 if (temp9)
7031 delete arg9;
7032 }
7033 return NULL;
7034 }
7035
7036
7037 SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7038 PyObject *resultobj = 0;
7039 wxGauge *arg1 = (wxGauge *) 0 ;
7040 int arg2 ;
7041 void *argp1 = 0 ;
7042 int res1 = 0 ;
7043 int val2 ;
7044 int ecode2 = 0 ;
7045 PyObject * obj0 = 0 ;
7046 PyObject * obj1 = 0 ;
7047 char * kwnames[] = {
7048 (char *) "self",(char *) "range", NULL
7049 };
7050
7051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7053 if (!SWIG_IsOK(res1)) {
7054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7055 }
7056 arg1 = reinterpret_cast< wxGauge * >(argp1);
7057 ecode2 = SWIG_AsVal_int(obj1, &val2);
7058 if (!SWIG_IsOK(ecode2)) {
7059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7060 }
7061 arg2 = static_cast< int >(val2);
7062 {
7063 PyThreadState* __tstate = wxPyBeginAllowThreads();
7064 (arg1)->SetRange(arg2);
7065 wxPyEndAllowThreads(__tstate);
7066 if (PyErr_Occurred()) SWIG_fail;
7067 }
7068 resultobj = SWIG_Py_Void();
7069 return resultobj;
7070 fail:
7071 return NULL;
7072 }
7073
7074
7075 SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7076 PyObject *resultobj = 0;
7077 wxGauge *arg1 = (wxGauge *) 0 ;
7078 int result;
7079 void *argp1 = 0 ;
7080 int res1 = 0 ;
7081 PyObject *swig_obj[1] ;
7082
7083 if (!args) SWIG_fail;
7084 swig_obj[0] = args;
7085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7086 if (!SWIG_IsOK(res1)) {
7087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7088 }
7089 arg1 = reinterpret_cast< wxGauge * >(argp1);
7090 {
7091 PyThreadState* __tstate = wxPyBeginAllowThreads();
7092 result = (int)((wxGauge const *)arg1)->GetRange();
7093 wxPyEndAllowThreads(__tstate);
7094 if (PyErr_Occurred()) SWIG_fail;
7095 }
7096 resultobj = SWIG_From_int(static_cast< int >(result));
7097 return resultobj;
7098 fail:
7099 return NULL;
7100 }
7101
7102
7103 SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7104 PyObject *resultobj = 0;
7105 wxGauge *arg1 = (wxGauge *) 0 ;
7106 int arg2 ;
7107 void *argp1 = 0 ;
7108 int res1 = 0 ;
7109 int val2 ;
7110 int ecode2 = 0 ;
7111 PyObject * obj0 = 0 ;
7112 PyObject * obj1 = 0 ;
7113 char * kwnames[] = {
7114 (char *) "self",(char *) "pos", NULL
7115 };
7116
7117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7119 if (!SWIG_IsOK(res1)) {
7120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7121 }
7122 arg1 = reinterpret_cast< wxGauge * >(argp1);
7123 ecode2 = SWIG_AsVal_int(obj1, &val2);
7124 if (!SWIG_IsOK(ecode2)) {
7125 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7126 }
7127 arg2 = static_cast< int >(val2);
7128 {
7129 PyThreadState* __tstate = wxPyBeginAllowThreads();
7130 (arg1)->SetValue(arg2);
7131 wxPyEndAllowThreads(__tstate);
7132 if (PyErr_Occurred()) SWIG_fail;
7133 }
7134 resultobj = SWIG_Py_Void();
7135 return resultobj;
7136 fail:
7137 return NULL;
7138 }
7139
7140
7141 SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7142 PyObject *resultobj = 0;
7143 wxGauge *arg1 = (wxGauge *) 0 ;
7144 int result;
7145 void *argp1 = 0 ;
7146 int res1 = 0 ;
7147 PyObject *swig_obj[1] ;
7148
7149 if (!args) SWIG_fail;
7150 swig_obj[0] = args;
7151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7152 if (!SWIG_IsOK(res1)) {
7153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7154 }
7155 arg1 = reinterpret_cast< wxGauge * >(argp1);
7156 {
7157 PyThreadState* __tstate = wxPyBeginAllowThreads();
7158 result = (int)((wxGauge const *)arg1)->GetValue();
7159 wxPyEndAllowThreads(__tstate);
7160 if (PyErr_Occurred()) SWIG_fail;
7161 }
7162 resultobj = SWIG_From_int(static_cast< int >(result));
7163 return resultobj;
7164 fail:
7165 return NULL;
7166 }
7167
7168
7169 SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7170 PyObject *resultobj = 0;
7171 wxGauge *arg1 = (wxGauge *) 0 ;
7172 bool result;
7173 void *argp1 = 0 ;
7174 int res1 = 0 ;
7175 PyObject *swig_obj[1] ;
7176
7177 if (!args) SWIG_fail;
7178 swig_obj[0] = args;
7179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7180 if (!SWIG_IsOK(res1)) {
7181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7182 }
7183 arg1 = reinterpret_cast< wxGauge * >(argp1);
7184 {
7185 PyThreadState* __tstate = wxPyBeginAllowThreads();
7186 result = (bool)((wxGauge const *)arg1)->IsVertical();
7187 wxPyEndAllowThreads(__tstate);
7188 if (PyErr_Occurred()) SWIG_fail;
7189 }
7190 {
7191 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7192 }
7193 return resultobj;
7194 fail:
7195 return NULL;
7196 }
7197
7198
7199 SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7200 PyObject *resultobj = 0;
7201 wxGauge *arg1 = (wxGauge *) 0 ;
7202 int arg2 ;
7203 void *argp1 = 0 ;
7204 int res1 = 0 ;
7205 int val2 ;
7206 int ecode2 = 0 ;
7207 PyObject * obj0 = 0 ;
7208 PyObject * obj1 = 0 ;
7209 char * kwnames[] = {
7210 (char *) "self",(char *) "w", NULL
7211 };
7212
7213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7215 if (!SWIG_IsOK(res1)) {
7216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7217 }
7218 arg1 = reinterpret_cast< wxGauge * >(argp1);
7219 ecode2 = SWIG_AsVal_int(obj1, &val2);
7220 if (!SWIG_IsOK(ecode2)) {
7221 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7222 }
7223 arg2 = static_cast< int >(val2);
7224 {
7225 PyThreadState* __tstate = wxPyBeginAllowThreads();
7226 (arg1)->SetShadowWidth(arg2);
7227 wxPyEndAllowThreads(__tstate);
7228 if (PyErr_Occurred()) SWIG_fail;
7229 }
7230 resultobj = SWIG_Py_Void();
7231 return resultobj;
7232 fail:
7233 return NULL;
7234 }
7235
7236
7237 SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7238 PyObject *resultobj = 0;
7239 wxGauge *arg1 = (wxGauge *) 0 ;
7240 int result;
7241 void *argp1 = 0 ;
7242 int res1 = 0 ;
7243 PyObject *swig_obj[1] ;
7244
7245 if (!args) SWIG_fail;
7246 swig_obj[0] = args;
7247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7248 if (!SWIG_IsOK(res1)) {
7249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7250 }
7251 arg1 = reinterpret_cast< wxGauge * >(argp1);
7252 {
7253 PyThreadState* __tstate = wxPyBeginAllowThreads();
7254 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7255 wxPyEndAllowThreads(__tstate);
7256 if (PyErr_Occurred()) SWIG_fail;
7257 }
7258 resultobj = SWIG_From_int(static_cast< int >(result));
7259 return resultobj;
7260 fail:
7261 return NULL;
7262 }
7263
7264
7265 SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7266 PyObject *resultobj = 0;
7267 wxGauge *arg1 = (wxGauge *) 0 ;
7268 int arg2 ;
7269 void *argp1 = 0 ;
7270 int res1 = 0 ;
7271 int val2 ;
7272 int ecode2 = 0 ;
7273 PyObject * obj0 = 0 ;
7274 PyObject * obj1 = 0 ;
7275 char * kwnames[] = {
7276 (char *) "self",(char *) "w", NULL
7277 };
7278
7279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7281 if (!SWIG_IsOK(res1)) {
7282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7283 }
7284 arg1 = reinterpret_cast< wxGauge * >(argp1);
7285 ecode2 = SWIG_AsVal_int(obj1, &val2);
7286 if (!SWIG_IsOK(ecode2)) {
7287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7288 }
7289 arg2 = static_cast< int >(val2);
7290 {
7291 PyThreadState* __tstate = wxPyBeginAllowThreads();
7292 (arg1)->SetBezelFace(arg2);
7293 wxPyEndAllowThreads(__tstate);
7294 if (PyErr_Occurred()) SWIG_fail;
7295 }
7296 resultobj = SWIG_Py_Void();
7297 return resultobj;
7298 fail:
7299 return NULL;
7300 }
7301
7302
7303 SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7304 PyObject *resultobj = 0;
7305 wxGauge *arg1 = (wxGauge *) 0 ;
7306 int result;
7307 void *argp1 = 0 ;
7308 int res1 = 0 ;
7309 PyObject *swig_obj[1] ;
7310
7311 if (!args) SWIG_fail;
7312 swig_obj[0] = args;
7313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7314 if (!SWIG_IsOK(res1)) {
7315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7316 }
7317 arg1 = reinterpret_cast< wxGauge * >(argp1);
7318 {
7319 PyThreadState* __tstate = wxPyBeginAllowThreads();
7320 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7321 wxPyEndAllowThreads(__tstate);
7322 if (PyErr_Occurred()) SWIG_fail;
7323 }
7324 resultobj = SWIG_From_int(static_cast< int >(result));
7325 return resultobj;
7326 fail:
7327 return NULL;
7328 }
7329
7330
7331 SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7332 PyObject *resultobj = 0;
7333 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7334 SwigValueWrapper<wxVisualAttributes > result;
7335 int val1 ;
7336 int ecode1 = 0 ;
7337 PyObject * obj0 = 0 ;
7338 char * kwnames[] = {
7339 (char *) "variant", NULL
7340 };
7341
7342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7343 if (obj0) {
7344 ecode1 = SWIG_AsVal_int(obj0, &val1);
7345 if (!SWIG_IsOK(ecode1)) {
7346 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7347 }
7348 arg1 = static_cast< wxWindowVariant >(val1);
7349 }
7350 {
7351 if (!wxPyCheckForApp()) SWIG_fail;
7352 PyThreadState* __tstate = wxPyBeginAllowThreads();
7353 result = wxGauge::GetClassDefaultAttributes(arg1);
7354 wxPyEndAllowThreads(__tstate);
7355 if (PyErr_Occurred()) SWIG_fail;
7356 }
7357 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7358 return resultobj;
7359 fail:
7360 return NULL;
7361 }
7362
7363
7364 SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7365 PyObject *obj;
7366 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7367 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7368 return SWIG_Py_Void();
7369 }
7370
7371 SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7372 return SWIG_Python_InitShadowInstance(args);
7373 }
7374
7375 SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7376 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7377 return 1;
7378 }
7379
7380
7381 SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7382 PyObject *pyobj = 0;
7383
7384 {
7385 #if wxUSE_UNICODE
7386 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7387 #else
7388 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7389 #endif
7390 }
7391 return pyobj;
7392 }
7393
7394
7395 SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7396 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7397 return 1;
7398 }
7399
7400
7401 SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7402 PyObject *pyobj = 0;
7403
7404 {
7405 #if wxUSE_UNICODE
7406 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7407 #else
7408 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7409 #endif
7410 }
7411 return pyobj;
7412 }
7413
7414
7415 SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7416 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7417 return 1;
7418 }
7419
7420
7421 SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7422 PyObject *pyobj = 0;
7423
7424 {
7425 #if wxUSE_UNICODE
7426 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7427 #else
7428 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7429 #endif
7430 }
7431 return pyobj;
7432 }
7433
7434
7435 SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7436 PyObject *resultobj = 0;
7437 wxWindow *arg1 = (wxWindow *) 0 ;
7438 int arg2 = (int) -1 ;
7439 wxString const &arg3_defvalue = wxPyEmptyString ;
7440 wxString *arg3 = (wxString *) &arg3_defvalue ;
7441 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7442 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7443 wxSize const &arg5_defvalue = wxDefaultSize ;
7444 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7445 long arg6 = (long) 0 ;
7446 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7447 wxString *arg7 = (wxString *) &arg7_defvalue ;
7448 wxStaticBox *result = 0 ;
7449 void *argp1 = 0 ;
7450 int res1 = 0 ;
7451 int val2 ;
7452 int ecode2 = 0 ;
7453 bool temp3 = false ;
7454 wxPoint temp4 ;
7455 wxSize temp5 ;
7456 long val6 ;
7457 int ecode6 = 0 ;
7458 bool temp7 = false ;
7459 PyObject * obj0 = 0 ;
7460 PyObject * obj1 = 0 ;
7461 PyObject * obj2 = 0 ;
7462 PyObject * obj3 = 0 ;
7463 PyObject * obj4 = 0 ;
7464 PyObject * obj5 = 0 ;
7465 PyObject * obj6 = 0 ;
7466 char * kwnames[] = {
7467 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7468 };
7469
7470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7472 if (!SWIG_IsOK(res1)) {
7473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7474 }
7475 arg1 = reinterpret_cast< wxWindow * >(argp1);
7476 if (obj1) {
7477 ecode2 = SWIG_AsVal_int(obj1, &val2);
7478 if (!SWIG_IsOK(ecode2)) {
7479 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7480 }
7481 arg2 = static_cast< int >(val2);
7482 }
7483 if (obj2) {
7484 {
7485 arg3 = wxString_in_helper(obj2);
7486 if (arg3 == NULL) SWIG_fail;
7487 temp3 = true;
7488 }
7489 }
7490 if (obj3) {
7491 {
7492 arg4 = &temp4;
7493 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7494 }
7495 }
7496 if (obj4) {
7497 {
7498 arg5 = &temp5;
7499 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7500 }
7501 }
7502 if (obj5) {
7503 ecode6 = SWIG_AsVal_long(obj5, &val6);
7504 if (!SWIG_IsOK(ecode6)) {
7505 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7506 }
7507 arg6 = static_cast< long >(val6);
7508 }
7509 if (obj6) {
7510 {
7511 arg7 = wxString_in_helper(obj6);
7512 if (arg7 == NULL) SWIG_fail;
7513 temp7 = true;
7514 }
7515 }
7516 {
7517 if (!wxPyCheckForApp()) SWIG_fail;
7518 PyThreadState* __tstate = wxPyBeginAllowThreads();
7519 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7520 wxPyEndAllowThreads(__tstate);
7521 if (PyErr_Occurred()) SWIG_fail;
7522 }
7523 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7524 {
7525 if (temp3)
7526 delete arg3;
7527 }
7528 {
7529 if (temp7)
7530 delete arg7;
7531 }
7532 return resultobj;
7533 fail:
7534 {
7535 if (temp3)
7536 delete arg3;
7537 }
7538 {
7539 if (temp7)
7540 delete arg7;
7541 }
7542 return NULL;
7543 }
7544
7545
7546 SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7547 PyObject *resultobj = 0;
7548 wxStaticBox *result = 0 ;
7549
7550 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7551 {
7552 if (!wxPyCheckForApp()) SWIG_fail;
7553 PyThreadState* __tstate = wxPyBeginAllowThreads();
7554 result = (wxStaticBox *)new wxStaticBox();
7555 wxPyEndAllowThreads(__tstate);
7556 if (PyErr_Occurred()) SWIG_fail;
7557 }
7558 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7559 return resultobj;
7560 fail:
7561 return NULL;
7562 }
7563
7564
7565 SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7566 PyObject *resultobj = 0;
7567 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7568 wxWindow *arg2 = (wxWindow *) 0 ;
7569 int arg3 = (int) -1 ;
7570 wxString const &arg4_defvalue = wxPyEmptyString ;
7571 wxString *arg4 = (wxString *) &arg4_defvalue ;
7572 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7573 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7574 wxSize const &arg6_defvalue = wxDefaultSize ;
7575 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7576 long arg7 = (long) 0 ;
7577 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7578 wxString *arg8 = (wxString *) &arg8_defvalue ;
7579 bool result;
7580 void *argp1 = 0 ;
7581 int res1 = 0 ;
7582 void *argp2 = 0 ;
7583 int res2 = 0 ;
7584 int val3 ;
7585 int ecode3 = 0 ;
7586 bool temp4 = false ;
7587 wxPoint temp5 ;
7588 wxSize temp6 ;
7589 long val7 ;
7590 int ecode7 = 0 ;
7591 bool temp8 = false ;
7592 PyObject * obj0 = 0 ;
7593 PyObject * obj1 = 0 ;
7594 PyObject * obj2 = 0 ;
7595 PyObject * obj3 = 0 ;
7596 PyObject * obj4 = 0 ;
7597 PyObject * obj5 = 0 ;
7598 PyObject * obj6 = 0 ;
7599 PyObject * obj7 = 0 ;
7600 char * kwnames[] = {
7601 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7602 };
7603
7604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7606 if (!SWIG_IsOK(res1)) {
7607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7608 }
7609 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7610 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7611 if (!SWIG_IsOK(res2)) {
7612 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7613 }
7614 arg2 = reinterpret_cast< wxWindow * >(argp2);
7615 if (obj2) {
7616 ecode3 = SWIG_AsVal_int(obj2, &val3);
7617 if (!SWIG_IsOK(ecode3)) {
7618 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7619 }
7620 arg3 = static_cast< int >(val3);
7621 }
7622 if (obj3) {
7623 {
7624 arg4 = wxString_in_helper(obj3);
7625 if (arg4 == NULL) SWIG_fail;
7626 temp4 = true;
7627 }
7628 }
7629 if (obj4) {
7630 {
7631 arg5 = &temp5;
7632 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7633 }
7634 }
7635 if (obj5) {
7636 {
7637 arg6 = &temp6;
7638 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7639 }
7640 }
7641 if (obj6) {
7642 ecode7 = SWIG_AsVal_long(obj6, &val7);
7643 if (!SWIG_IsOK(ecode7)) {
7644 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7645 }
7646 arg7 = static_cast< long >(val7);
7647 }
7648 if (obj7) {
7649 {
7650 arg8 = wxString_in_helper(obj7);
7651 if (arg8 == NULL) SWIG_fail;
7652 temp8 = true;
7653 }
7654 }
7655 {
7656 PyThreadState* __tstate = wxPyBeginAllowThreads();
7657 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7658 wxPyEndAllowThreads(__tstate);
7659 if (PyErr_Occurred()) SWIG_fail;
7660 }
7661 {
7662 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7663 }
7664 {
7665 if (temp4)
7666 delete arg4;
7667 }
7668 {
7669 if (temp8)
7670 delete arg8;
7671 }
7672 return resultobj;
7673 fail:
7674 {
7675 if (temp4)
7676 delete arg4;
7677 }
7678 {
7679 if (temp8)
7680 delete arg8;
7681 }
7682 return NULL;
7683 }
7684
7685
7686 SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7687 PyObject *resultobj = 0;
7688 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7689 SwigValueWrapper<wxVisualAttributes > result;
7690 int val1 ;
7691 int ecode1 = 0 ;
7692 PyObject * obj0 = 0 ;
7693 char * kwnames[] = {
7694 (char *) "variant", NULL
7695 };
7696
7697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7698 if (obj0) {
7699 ecode1 = SWIG_AsVal_int(obj0, &val1);
7700 if (!SWIG_IsOK(ecode1)) {
7701 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7702 }
7703 arg1 = static_cast< wxWindowVariant >(val1);
7704 }
7705 {
7706 if (!wxPyCheckForApp()) SWIG_fail;
7707 PyThreadState* __tstate = wxPyBeginAllowThreads();
7708 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7709 wxPyEndAllowThreads(__tstate);
7710 if (PyErr_Occurred()) SWIG_fail;
7711 }
7712 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7713 return resultobj;
7714 fail:
7715 return NULL;
7716 }
7717
7718
7719 SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7720 PyObject *obj;
7721 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7722 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7723 return SWIG_Py_Void();
7724 }
7725
7726 SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7727 return SWIG_Python_InitShadowInstance(args);
7728 }
7729
7730 SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7731 PyObject *resultobj = 0;
7732 wxWindow *arg1 = (wxWindow *) 0 ;
7733 int arg2 = (int) -1 ;
7734 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7735 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7736 wxSize const &arg4_defvalue = wxDefaultSize ;
7737 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7738 long arg5 = (long) wxLI_HORIZONTAL ;
7739 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7740 wxString *arg6 = (wxString *) &arg6_defvalue ;
7741 wxStaticLine *result = 0 ;
7742 void *argp1 = 0 ;
7743 int res1 = 0 ;
7744 int val2 ;
7745 int ecode2 = 0 ;
7746 wxPoint temp3 ;
7747 wxSize temp4 ;
7748 long val5 ;
7749 int ecode5 = 0 ;
7750 bool temp6 = false ;
7751 PyObject * obj0 = 0 ;
7752 PyObject * obj1 = 0 ;
7753 PyObject * obj2 = 0 ;
7754 PyObject * obj3 = 0 ;
7755 PyObject * obj4 = 0 ;
7756 PyObject * obj5 = 0 ;
7757 char * kwnames[] = {
7758 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7759 };
7760
7761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7763 if (!SWIG_IsOK(res1)) {
7764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7765 }
7766 arg1 = reinterpret_cast< wxWindow * >(argp1);
7767 if (obj1) {
7768 ecode2 = SWIG_AsVal_int(obj1, &val2);
7769 if (!SWIG_IsOK(ecode2)) {
7770 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7771 }
7772 arg2 = static_cast< int >(val2);
7773 }
7774 if (obj2) {
7775 {
7776 arg3 = &temp3;
7777 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7778 }
7779 }
7780 if (obj3) {
7781 {
7782 arg4 = &temp4;
7783 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7784 }
7785 }
7786 if (obj4) {
7787 ecode5 = SWIG_AsVal_long(obj4, &val5);
7788 if (!SWIG_IsOK(ecode5)) {
7789 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7790 }
7791 arg5 = static_cast< long >(val5);
7792 }
7793 if (obj5) {
7794 {
7795 arg6 = wxString_in_helper(obj5);
7796 if (arg6 == NULL) SWIG_fail;
7797 temp6 = true;
7798 }
7799 }
7800 {
7801 if (!wxPyCheckForApp()) SWIG_fail;
7802 PyThreadState* __tstate = wxPyBeginAllowThreads();
7803 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7804 wxPyEndAllowThreads(__tstate);
7805 if (PyErr_Occurred()) SWIG_fail;
7806 }
7807 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7808 {
7809 if (temp6)
7810 delete arg6;
7811 }
7812 return resultobj;
7813 fail:
7814 {
7815 if (temp6)
7816 delete arg6;
7817 }
7818 return NULL;
7819 }
7820
7821
7822 SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7823 PyObject *resultobj = 0;
7824 wxStaticLine *result = 0 ;
7825
7826 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7827 {
7828 if (!wxPyCheckForApp()) SWIG_fail;
7829 PyThreadState* __tstate = wxPyBeginAllowThreads();
7830 result = (wxStaticLine *)new wxStaticLine();
7831 wxPyEndAllowThreads(__tstate);
7832 if (PyErr_Occurred()) SWIG_fail;
7833 }
7834 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7835 return resultobj;
7836 fail:
7837 return NULL;
7838 }
7839
7840
7841 SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7842 PyObject *resultobj = 0;
7843 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7844 wxWindow *arg2 = (wxWindow *) 0 ;
7845 int arg3 = (int) -1 ;
7846 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7847 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7848 wxSize const &arg5_defvalue = wxDefaultSize ;
7849 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7850 long arg6 = (long) wxLI_HORIZONTAL ;
7851 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7852 wxString *arg7 = (wxString *) &arg7_defvalue ;
7853 bool result;
7854 void *argp1 = 0 ;
7855 int res1 = 0 ;
7856 void *argp2 = 0 ;
7857 int res2 = 0 ;
7858 int val3 ;
7859 int ecode3 = 0 ;
7860 wxPoint temp4 ;
7861 wxSize temp5 ;
7862 long val6 ;
7863 int ecode6 = 0 ;
7864 bool temp7 = false ;
7865 PyObject * obj0 = 0 ;
7866 PyObject * obj1 = 0 ;
7867 PyObject * obj2 = 0 ;
7868 PyObject * obj3 = 0 ;
7869 PyObject * obj4 = 0 ;
7870 PyObject * obj5 = 0 ;
7871 PyObject * obj6 = 0 ;
7872 char * kwnames[] = {
7873 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7874 };
7875
7876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7878 if (!SWIG_IsOK(res1)) {
7879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7880 }
7881 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7882 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7883 if (!SWIG_IsOK(res2)) {
7884 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7885 }
7886 arg2 = reinterpret_cast< wxWindow * >(argp2);
7887 if (obj2) {
7888 ecode3 = SWIG_AsVal_int(obj2, &val3);
7889 if (!SWIG_IsOK(ecode3)) {
7890 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7891 }
7892 arg3 = static_cast< int >(val3);
7893 }
7894 if (obj3) {
7895 {
7896 arg4 = &temp4;
7897 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7898 }
7899 }
7900 if (obj4) {
7901 {
7902 arg5 = &temp5;
7903 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7904 }
7905 }
7906 if (obj5) {
7907 ecode6 = SWIG_AsVal_long(obj5, &val6);
7908 if (!SWIG_IsOK(ecode6)) {
7909 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7910 }
7911 arg6 = static_cast< long >(val6);
7912 }
7913 if (obj6) {
7914 {
7915 arg7 = wxString_in_helper(obj6);
7916 if (arg7 == NULL) SWIG_fail;
7917 temp7 = true;
7918 }
7919 }
7920 {
7921 PyThreadState* __tstate = wxPyBeginAllowThreads();
7922 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7923 wxPyEndAllowThreads(__tstate);
7924 if (PyErr_Occurred()) SWIG_fail;
7925 }
7926 {
7927 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7928 }
7929 {
7930 if (temp7)
7931 delete arg7;
7932 }
7933 return resultobj;
7934 fail:
7935 {
7936 if (temp7)
7937 delete arg7;
7938 }
7939 return NULL;
7940 }
7941
7942
7943 SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7944 PyObject *resultobj = 0;
7945 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7946 bool result;
7947 void *argp1 = 0 ;
7948 int res1 = 0 ;
7949 PyObject *swig_obj[1] ;
7950
7951 if (!args) SWIG_fail;
7952 swig_obj[0] = args;
7953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7954 if (!SWIG_IsOK(res1)) {
7955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7956 }
7957 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7958 {
7959 PyThreadState* __tstate = wxPyBeginAllowThreads();
7960 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7961 wxPyEndAllowThreads(__tstate);
7962 if (PyErr_Occurred()) SWIG_fail;
7963 }
7964 {
7965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7966 }
7967 return resultobj;
7968 fail:
7969 return NULL;
7970 }
7971
7972
7973 SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7974 PyObject *resultobj = 0;
7975 int result;
7976
7977 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
7978 {
7979 PyThreadState* __tstate = wxPyBeginAllowThreads();
7980 result = (int)wxStaticLine::GetDefaultSize();
7981 wxPyEndAllowThreads(__tstate);
7982 if (PyErr_Occurred()) SWIG_fail;
7983 }
7984 resultobj = SWIG_From_int(static_cast< int >(result));
7985 return resultobj;
7986 fail:
7987 return NULL;
7988 }
7989
7990
7991 SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7992 PyObject *resultobj = 0;
7993 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7994 SwigValueWrapper<wxVisualAttributes > result;
7995 int val1 ;
7996 int ecode1 = 0 ;
7997 PyObject * obj0 = 0 ;
7998 char * kwnames[] = {
7999 (char *) "variant", NULL
8000 };
8001
8002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8003 if (obj0) {
8004 ecode1 = SWIG_AsVal_int(obj0, &val1);
8005 if (!SWIG_IsOK(ecode1)) {
8006 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8007 }
8008 arg1 = static_cast< wxWindowVariant >(val1);
8009 }
8010 {
8011 if (!wxPyCheckForApp()) SWIG_fail;
8012 PyThreadState* __tstate = wxPyBeginAllowThreads();
8013 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8014 wxPyEndAllowThreads(__tstate);
8015 if (PyErr_Occurred()) SWIG_fail;
8016 }
8017 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8018 return resultobj;
8019 fail:
8020 return NULL;
8021 }
8022
8023
8024 SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8025 PyObject *obj;
8026 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8027 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8028 return SWIG_Py_Void();
8029 }
8030
8031 SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8032 return SWIG_Python_InitShadowInstance(args);
8033 }
8034
8035 SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8036 PyObject *resultobj = 0;
8037 wxWindow *arg1 = (wxWindow *) 0 ;
8038 int arg2 = (int) -1 ;
8039 wxString const &arg3_defvalue = wxPyEmptyString ;
8040 wxString *arg3 = (wxString *) &arg3_defvalue ;
8041 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8042 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8043 wxSize const &arg5_defvalue = wxDefaultSize ;
8044 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8045 long arg6 = (long) 0 ;
8046 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8047 wxString *arg7 = (wxString *) &arg7_defvalue ;
8048 wxStaticText *result = 0 ;
8049 void *argp1 = 0 ;
8050 int res1 = 0 ;
8051 int val2 ;
8052 int ecode2 = 0 ;
8053 bool temp3 = false ;
8054 wxPoint temp4 ;
8055 wxSize temp5 ;
8056 long val6 ;
8057 int ecode6 = 0 ;
8058 bool temp7 = false ;
8059 PyObject * obj0 = 0 ;
8060 PyObject * obj1 = 0 ;
8061 PyObject * obj2 = 0 ;
8062 PyObject * obj3 = 0 ;
8063 PyObject * obj4 = 0 ;
8064 PyObject * obj5 = 0 ;
8065 PyObject * obj6 = 0 ;
8066 char * kwnames[] = {
8067 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8068 };
8069
8070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8072 if (!SWIG_IsOK(res1)) {
8073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8074 }
8075 arg1 = reinterpret_cast< wxWindow * >(argp1);
8076 if (obj1) {
8077 ecode2 = SWIG_AsVal_int(obj1, &val2);
8078 if (!SWIG_IsOK(ecode2)) {
8079 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8080 }
8081 arg2 = static_cast< int >(val2);
8082 }
8083 if (obj2) {
8084 {
8085 arg3 = wxString_in_helper(obj2);
8086 if (arg3 == NULL) SWIG_fail;
8087 temp3 = true;
8088 }
8089 }
8090 if (obj3) {
8091 {
8092 arg4 = &temp4;
8093 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8094 }
8095 }
8096 if (obj4) {
8097 {
8098 arg5 = &temp5;
8099 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8100 }
8101 }
8102 if (obj5) {
8103 ecode6 = SWIG_AsVal_long(obj5, &val6);
8104 if (!SWIG_IsOK(ecode6)) {
8105 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8106 }
8107 arg6 = static_cast< long >(val6);
8108 }
8109 if (obj6) {
8110 {
8111 arg7 = wxString_in_helper(obj6);
8112 if (arg7 == NULL) SWIG_fail;
8113 temp7 = true;
8114 }
8115 }
8116 {
8117 if (!wxPyCheckForApp()) SWIG_fail;
8118 PyThreadState* __tstate = wxPyBeginAllowThreads();
8119 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8120 wxPyEndAllowThreads(__tstate);
8121 if (PyErr_Occurred()) SWIG_fail;
8122 }
8123 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8124 {
8125 if (temp3)
8126 delete arg3;
8127 }
8128 {
8129 if (temp7)
8130 delete arg7;
8131 }
8132 return resultobj;
8133 fail:
8134 {
8135 if (temp3)
8136 delete arg3;
8137 }
8138 {
8139 if (temp7)
8140 delete arg7;
8141 }
8142 return NULL;
8143 }
8144
8145
8146 SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8147 PyObject *resultobj = 0;
8148 wxStaticText *result = 0 ;
8149
8150 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8151 {
8152 if (!wxPyCheckForApp()) SWIG_fail;
8153 PyThreadState* __tstate = wxPyBeginAllowThreads();
8154 result = (wxStaticText *)new wxStaticText();
8155 wxPyEndAllowThreads(__tstate);
8156 if (PyErr_Occurred()) SWIG_fail;
8157 }
8158 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8159 return resultobj;
8160 fail:
8161 return NULL;
8162 }
8163
8164
8165 SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8166 PyObject *resultobj = 0;
8167 wxStaticText *arg1 = (wxStaticText *) 0 ;
8168 wxWindow *arg2 = (wxWindow *) 0 ;
8169 int arg3 = (int) -1 ;
8170 wxString const &arg4_defvalue = wxPyEmptyString ;
8171 wxString *arg4 = (wxString *) &arg4_defvalue ;
8172 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8173 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8174 wxSize const &arg6_defvalue = wxDefaultSize ;
8175 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8176 long arg7 = (long) 0 ;
8177 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8178 wxString *arg8 = (wxString *) &arg8_defvalue ;
8179 bool result;
8180 void *argp1 = 0 ;
8181 int res1 = 0 ;
8182 void *argp2 = 0 ;
8183 int res2 = 0 ;
8184 int val3 ;
8185 int ecode3 = 0 ;
8186 bool temp4 = false ;
8187 wxPoint temp5 ;
8188 wxSize temp6 ;
8189 long val7 ;
8190 int ecode7 = 0 ;
8191 bool temp8 = false ;
8192 PyObject * obj0 = 0 ;
8193 PyObject * obj1 = 0 ;
8194 PyObject * obj2 = 0 ;
8195 PyObject * obj3 = 0 ;
8196 PyObject * obj4 = 0 ;
8197 PyObject * obj5 = 0 ;
8198 PyObject * obj6 = 0 ;
8199 PyObject * obj7 = 0 ;
8200 char * kwnames[] = {
8201 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8202 };
8203
8204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8206 if (!SWIG_IsOK(res1)) {
8207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8208 }
8209 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8210 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8211 if (!SWIG_IsOK(res2)) {
8212 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8213 }
8214 arg2 = reinterpret_cast< wxWindow * >(argp2);
8215 if (obj2) {
8216 ecode3 = SWIG_AsVal_int(obj2, &val3);
8217 if (!SWIG_IsOK(ecode3)) {
8218 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8219 }
8220 arg3 = static_cast< int >(val3);
8221 }
8222 if (obj3) {
8223 {
8224 arg4 = wxString_in_helper(obj3);
8225 if (arg4 == NULL) SWIG_fail;
8226 temp4 = true;
8227 }
8228 }
8229 if (obj4) {
8230 {
8231 arg5 = &temp5;
8232 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8233 }
8234 }
8235 if (obj5) {
8236 {
8237 arg6 = &temp6;
8238 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8239 }
8240 }
8241 if (obj6) {
8242 ecode7 = SWIG_AsVal_long(obj6, &val7);
8243 if (!SWIG_IsOK(ecode7)) {
8244 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8245 }
8246 arg7 = static_cast< long >(val7);
8247 }
8248 if (obj7) {
8249 {
8250 arg8 = wxString_in_helper(obj7);
8251 if (arg8 == NULL) SWIG_fail;
8252 temp8 = true;
8253 }
8254 }
8255 {
8256 PyThreadState* __tstate = wxPyBeginAllowThreads();
8257 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8258 wxPyEndAllowThreads(__tstate);
8259 if (PyErr_Occurred()) SWIG_fail;
8260 }
8261 {
8262 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8263 }
8264 {
8265 if (temp4)
8266 delete arg4;
8267 }
8268 {
8269 if (temp8)
8270 delete arg8;
8271 }
8272 return resultobj;
8273 fail:
8274 {
8275 if (temp4)
8276 delete arg4;
8277 }
8278 {
8279 if (temp8)
8280 delete arg8;
8281 }
8282 return NULL;
8283 }
8284
8285
8286 SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8287 PyObject *resultobj = 0;
8288 wxStaticText *arg1 = (wxStaticText *) 0 ;
8289 int arg2 ;
8290 void *argp1 = 0 ;
8291 int res1 = 0 ;
8292 int val2 ;
8293 int ecode2 = 0 ;
8294 PyObject * obj0 = 0 ;
8295 PyObject * obj1 = 0 ;
8296 char * kwnames[] = {
8297 (char *) "self",(char *) "width", NULL
8298 };
8299
8300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8302 if (!SWIG_IsOK(res1)) {
8303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8304 }
8305 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8306 ecode2 = SWIG_AsVal_int(obj1, &val2);
8307 if (!SWIG_IsOK(ecode2)) {
8308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8309 }
8310 arg2 = static_cast< int >(val2);
8311 {
8312 PyThreadState* __tstate = wxPyBeginAllowThreads();
8313 (arg1)->Wrap(arg2);
8314 wxPyEndAllowThreads(__tstate);
8315 if (PyErr_Occurred()) SWIG_fail;
8316 }
8317 resultobj = SWIG_Py_Void();
8318 return resultobj;
8319 fail:
8320 return NULL;
8321 }
8322
8323
8324 SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8325 PyObject *resultobj = 0;
8326 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8327 SwigValueWrapper<wxVisualAttributes > result;
8328 int val1 ;
8329 int ecode1 = 0 ;
8330 PyObject * obj0 = 0 ;
8331 char * kwnames[] = {
8332 (char *) "variant", NULL
8333 };
8334
8335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8336 if (obj0) {
8337 ecode1 = SWIG_AsVal_int(obj0, &val1);
8338 if (!SWIG_IsOK(ecode1)) {
8339 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8340 }
8341 arg1 = static_cast< wxWindowVariant >(val1);
8342 }
8343 {
8344 if (!wxPyCheckForApp()) SWIG_fail;
8345 PyThreadState* __tstate = wxPyBeginAllowThreads();
8346 result = wxStaticText::GetClassDefaultAttributes(arg1);
8347 wxPyEndAllowThreads(__tstate);
8348 if (PyErr_Occurred()) SWIG_fail;
8349 }
8350 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8351 return resultobj;
8352 fail:
8353 return NULL;
8354 }
8355
8356
8357 SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8358 PyObject *obj;
8359 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8360 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8361 return SWIG_Py_Void();
8362 }
8363
8364 SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8365 return SWIG_Python_InitShadowInstance(args);
8366 }
8367
8368 SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8369 PyObject *resultobj = 0;
8370 wxWindow *arg1 = (wxWindow *) 0 ;
8371 int arg2 = (int) -1 ;
8372 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8373 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8374 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8375 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8376 wxSize const &arg5_defvalue = wxDefaultSize ;
8377 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8378 long arg6 = (long) 0 ;
8379 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8380 wxString *arg7 = (wxString *) &arg7_defvalue ;
8381 wxStaticBitmap *result = 0 ;
8382 void *argp1 = 0 ;
8383 int res1 = 0 ;
8384 int val2 ;
8385 int ecode2 = 0 ;
8386 void *argp3 = 0 ;
8387 int res3 = 0 ;
8388 wxPoint temp4 ;
8389 wxSize temp5 ;
8390 long val6 ;
8391 int ecode6 = 0 ;
8392 bool temp7 = false ;
8393 PyObject * obj0 = 0 ;
8394 PyObject * obj1 = 0 ;
8395 PyObject * obj2 = 0 ;
8396 PyObject * obj3 = 0 ;
8397 PyObject * obj4 = 0 ;
8398 PyObject * obj5 = 0 ;
8399 PyObject * obj6 = 0 ;
8400 char * kwnames[] = {
8401 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8402 };
8403
8404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8406 if (!SWIG_IsOK(res1)) {
8407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8408 }
8409 arg1 = reinterpret_cast< wxWindow * >(argp1);
8410 if (obj1) {
8411 ecode2 = SWIG_AsVal_int(obj1, &val2);
8412 if (!SWIG_IsOK(ecode2)) {
8413 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8414 }
8415 arg2 = static_cast< int >(val2);
8416 }
8417 if (obj2) {
8418 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8419 if (!SWIG_IsOK(res3)) {
8420 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8421 }
8422 if (!argp3) {
8423 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8424 }
8425 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8426 }
8427 if (obj3) {
8428 {
8429 arg4 = &temp4;
8430 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8431 }
8432 }
8433 if (obj4) {
8434 {
8435 arg5 = &temp5;
8436 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8437 }
8438 }
8439 if (obj5) {
8440 ecode6 = SWIG_AsVal_long(obj5, &val6);
8441 if (!SWIG_IsOK(ecode6)) {
8442 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8443 }
8444 arg6 = static_cast< long >(val6);
8445 }
8446 if (obj6) {
8447 {
8448 arg7 = wxString_in_helper(obj6);
8449 if (arg7 == NULL) SWIG_fail;
8450 temp7 = true;
8451 }
8452 }
8453 {
8454 if (!wxPyCheckForApp()) SWIG_fail;
8455 PyThreadState* __tstate = wxPyBeginAllowThreads();
8456 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8457 wxPyEndAllowThreads(__tstate);
8458 if (PyErr_Occurred()) SWIG_fail;
8459 }
8460 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8461 {
8462 if (temp7)
8463 delete arg7;
8464 }
8465 return resultobj;
8466 fail:
8467 {
8468 if (temp7)
8469 delete arg7;
8470 }
8471 return NULL;
8472 }
8473
8474
8475 SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8476 PyObject *resultobj = 0;
8477 wxStaticBitmap *result = 0 ;
8478
8479 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8480 {
8481 if (!wxPyCheckForApp()) SWIG_fail;
8482 PyThreadState* __tstate = wxPyBeginAllowThreads();
8483 result = (wxStaticBitmap *)new wxStaticBitmap();
8484 wxPyEndAllowThreads(__tstate);
8485 if (PyErr_Occurred()) SWIG_fail;
8486 }
8487 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8488 return resultobj;
8489 fail:
8490 return NULL;
8491 }
8492
8493
8494 SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8495 PyObject *resultobj = 0;
8496 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8497 wxWindow *arg2 = (wxWindow *) 0 ;
8498 int arg3 = (int) -1 ;
8499 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8500 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8501 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8502 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8503 wxSize const &arg6_defvalue = wxDefaultSize ;
8504 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8505 long arg7 = (long) 0 ;
8506 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8507 wxString *arg8 = (wxString *) &arg8_defvalue ;
8508 bool result;
8509 void *argp1 = 0 ;
8510 int res1 = 0 ;
8511 void *argp2 = 0 ;
8512 int res2 = 0 ;
8513 int val3 ;
8514 int ecode3 = 0 ;
8515 void *argp4 = 0 ;
8516 int res4 = 0 ;
8517 wxPoint temp5 ;
8518 wxSize temp6 ;
8519 long val7 ;
8520 int ecode7 = 0 ;
8521 bool temp8 = false ;
8522 PyObject * obj0 = 0 ;
8523 PyObject * obj1 = 0 ;
8524 PyObject * obj2 = 0 ;
8525 PyObject * obj3 = 0 ;
8526 PyObject * obj4 = 0 ;
8527 PyObject * obj5 = 0 ;
8528 PyObject * obj6 = 0 ;
8529 PyObject * obj7 = 0 ;
8530 char * kwnames[] = {
8531 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8532 };
8533
8534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8536 if (!SWIG_IsOK(res1)) {
8537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8538 }
8539 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8540 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8541 if (!SWIG_IsOK(res2)) {
8542 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8543 }
8544 arg2 = reinterpret_cast< wxWindow * >(argp2);
8545 if (obj2) {
8546 ecode3 = SWIG_AsVal_int(obj2, &val3);
8547 if (!SWIG_IsOK(ecode3)) {
8548 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8549 }
8550 arg3 = static_cast< int >(val3);
8551 }
8552 if (obj3) {
8553 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8554 if (!SWIG_IsOK(res4)) {
8555 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8556 }
8557 if (!argp4) {
8558 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8559 }
8560 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8561 }
8562 if (obj4) {
8563 {
8564 arg5 = &temp5;
8565 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8566 }
8567 }
8568 if (obj5) {
8569 {
8570 arg6 = &temp6;
8571 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8572 }
8573 }
8574 if (obj6) {
8575 ecode7 = SWIG_AsVal_long(obj6, &val7);
8576 if (!SWIG_IsOK(ecode7)) {
8577 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8578 }
8579 arg7 = static_cast< long >(val7);
8580 }
8581 if (obj7) {
8582 {
8583 arg8 = wxString_in_helper(obj7);
8584 if (arg8 == NULL) SWIG_fail;
8585 temp8 = true;
8586 }
8587 }
8588 {
8589 PyThreadState* __tstate = wxPyBeginAllowThreads();
8590 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8591 wxPyEndAllowThreads(__tstate);
8592 if (PyErr_Occurred()) SWIG_fail;
8593 }
8594 {
8595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8596 }
8597 {
8598 if (temp8)
8599 delete arg8;
8600 }
8601 return resultobj;
8602 fail:
8603 {
8604 if (temp8)
8605 delete arg8;
8606 }
8607 return NULL;
8608 }
8609
8610
8611 SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8612 PyObject *resultobj = 0;
8613 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8614 wxBitmap result;
8615 void *argp1 = 0 ;
8616 int res1 = 0 ;
8617 PyObject *swig_obj[1] ;
8618
8619 if (!args) SWIG_fail;
8620 swig_obj[0] = args;
8621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8622 if (!SWIG_IsOK(res1)) {
8623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8624 }
8625 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8626 {
8627 PyThreadState* __tstate = wxPyBeginAllowThreads();
8628 result = (arg1)->GetBitmap();
8629 wxPyEndAllowThreads(__tstate);
8630 if (PyErr_Occurred()) SWIG_fail;
8631 }
8632 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8633 return resultobj;
8634 fail:
8635 return NULL;
8636 }
8637
8638
8639 SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8640 PyObject *resultobj = 0;
8641 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8642 wxBitmap *arg2 = 0 ;
8643 void *argp1 = 0 ;
8644 int res1 = 0 ;
8645 void *argp2 = 0 ;
8646 int res2 = 0 ;
8647 PyObject * obj0 = 0 ;
8648 PyObject * obj1 = 0 ;
8649 char * kwnames[] = {
8650 (char *) "self",(char *) "bitmap", NULL
8651 };
8652
8653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8655 if (!SWIG_IsOK(res1)) {
8656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8657 }
8658 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8659 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8660 if (!SWIG_IsOK(res2)) {
8661 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8662 }
8663 if (!argp2) {
8664 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8665 }
8666 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8667 {
8668 PyThreadState* __tstate = wxPyBeginAllowThreads();
8669 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8670 wxPyEndAllowThreads(__tstate);
8671 if (PyErr_Occurred()) SWIG_fail;
8672 }
8673 resultobj = SWIG_Py_Void();
8674 return resultobj;
8675 fail:
8676 return NULL;
8677 }
8678
8679
8680 SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8681 PyObject *resultobj = 0;
8682 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8683 wxIcon *arg2 = 0 ;
8684 void *argp1 = 0 ;
8685 int res1 = 0 ;
8686 void *argp2 = 0 ;
8687 int res2 = 0 ;
8688 PyObject * obj0 = 0 ;
8689 PyObject * obj1 = 0 ;
8690 char * kwnames[] = {
8691 (char *) "self",(char *) "icon", NULL
8692 };
8693
8694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8696 if (!SWIG_IsOK(res1)) {
8697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8698 }
8699 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8700 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8701 if (!SWIG_IsOK(res2)) {
8702 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8703 }
8704 if (!argp2) {
8705 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8706 }
8707 arg2 = reinterpret_cast< wxIcon * >(argp2);
8708 {
8709 PyThreadState* __tstate = wxPyBeginAllowThreads();
8710 (arg1)->SetIcon((wxIcon const &)*arg2);
8711 wxPyEndAllowThreads(__tstate);
8712 if (PyErr_Occurred()) SWIG_fail;
8713 }
8714 resultobj = SWIG_Py_Void();
8715 return resultobj;
8716 fail:
8717 return NULL;
8718 }
8719
8720
8721 SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8722 PyObject *resultobj = 0;
8723 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8724 SwigValueWrapper<wxVisualAttributes > result;
8725 int val1 ;
8726 int ecode1 = 0 ;
8727 PyObject * obj0 = 0 ;
8728 char * kwnames[] = {
8729 (char *) "variant", NULL
8730 };
8731
8732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8733 if (obj0) {
8734 ecode1 = SWIG_AsVal_int(obj0, &val1);
8735 if (!SWIG_IsOK(ecode1)) {
8736 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8737 }
8738 arg1 = static_cast< wxWindowVariant >(val1);
8739 }
8740 {
8741 if (!wxPyCheckForApp()) SWIG_fail;
8742 PyThreadState* __tstate = wxPyBeginAllowThreads();
8743 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8744 wxPyEndAllowThreads(__tstate);
8745 if (PyErr_Occurred()) SWIG_fail;
8746 }
8747 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8748 return resultobj;
8749 fail:
8750 return NULL;
8751 }
8752
8753
8754 SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8755 PyObject *obj;
8756 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8757 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8758 return SWIG_Py_Void();
8759 }
8760
8761 SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8762 return SWIG_Python_InitShadowInstance(args);
8763 }
8764
8765 SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8766 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8767 return 1;
8768 }
8769
8770
8771 SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8772 PyObject *pyobj = 0;
8773
8774 {
8775 #if wxUSE_UNICODE
8776 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8777 #else
8778 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8779 #endif
8780 }
8781 return pyobj;
8782 }
8783
8784
8785 SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8786 PyObject *resultobj = 0;
8787 wxWindow *arg1 = (wxWindow *) 0 ;
8788 int arg2 = (int) -1 ;
8789 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8790 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8791 wxSize const &arg4_defvalue = wxDefaultSize ;
8792 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8793 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8794 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8795 long arg6 = (long) 0 ;
8796 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8797 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8798 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8799 wxString *arg8 = (wxString *) &arg8_defvalue ;
8800 wxListBox *result = 0 ;
8801 void *argp1 = 0 ;
8802 int res1 = 0 ;
8803 int val2 ;
8804 int ecode2 = 0 ;
8805 wxPoint temp3 ;
8806 wxSize temp4 ;
8807 bool temp5 = false ;
8808 long val6 ;
8809 int ecode6 = 0 ;
8810 void *argp7 = 0 ;
8811 int res7 = 0 ;
8812 bool temp8 = false ;
8813 PyObject * obj0 = 0 ;
8814 PyObject * obj1 = 0 ;
8815 PyObject * obj2 = 0 ;
8816 PyObject * obj3 = 0 ;
8817 PyObject * obj4 = 0 ;
8818 PyObject * obj5 = 0 ;
8819 PyObject * obj6 = 0 ;
8820 PyObject * obj7 = 0 ;
8821 char * kwnames[] = {
8822 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8823 };
8824
8825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8827 if (!SWIG_IsOK(res1)) {
8828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8829 }
8830 arg1 = reinterpret_cast< wxWindow * >(argp1);
8831 if (obj1) {
8832 ecode2 = SWIG_AsVal_int(obj1, &val2);
8833 if (!SWIG_IsOK(ecode2)) {
8834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8835 }
8836 arg2 = static_cast< int >(val2);
8837 }
8838 if (obj2) {
8839 {
8840 arg3 = &temp3;
8841 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
8842 }
8843 }
8844 if (obj3) {
8845 {
8846 arg4 = &temp4;
8847 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
8848 }
8849 }
8850 if (obj4) {
8851 {
8852 if (! PySequence_Check(obj4)) {
8853 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8854 SWIG_fail;
8855 }
8856 arg5 = new wxArrayString;
8857 temp5 = true;
8858 int i, len=PySequence_Length(obj4);
8859 for (i=0; i<len; i++) {
8860 PyObject* item = PySequence_GetItem(obj4, i);
8861 wxString* s = wxString_in_helper(item);
8862 if (PyErr_Occurred()) SWIG_fail;
8863 arg5->Add(*s);
8864 delete s;
8865 Py_DECREF(item);
8866 }
8867 }
8868 }
8869 if (obj5) {
8870 ecode6 = SWIG_AsVal_long(obj5, &val6);
8871 if (!SWIG_IsOK(ecode6)) {
8872 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8873 }
8874 arg6 = static_cast< long >(val6);
8875 }
8876 if (obj6) {
8877 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8878 if (!SWIG_IsOK(res7)) {
8879 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8880 }
8881 if (!argp7) {
8882 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8883 }
8884 arg7 = reinterpret_cast< wxValidator * >(argp7);
8885 }
8886 if (obj7) {
8887 {
8888 arg8 = wxString_in_helper(obj7);
8889 if (arg8 == NULL) SWIG_fail;
8890 temp8 = true;
8891 }
8892 }
8893 {
8894 if (!wxPyCheckForApp()) SWIG_fail;
8895 PyThreadState* __tstate = wxPyBeginAllowThreads();
8896 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8897 wxPyEndAllowThreads(__tstate);
8898 if (PyErr_Occurred()) SWIG_fail;
8899 }
8900 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8901 {
8902 if (temp5) delete arg5;
8903 }
8904 {
8905 if (temp8)
8906 delete arg8;
8907 }
8908 return resultobj;
8909 fail:
8910 {
8911 if (temp5) delete arg5;
8912 }
8913 {
8914 if (temp8)
8915 delete arg8;
8916 }
8917 return NULL;
8918 }
8919
8920
8921 SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8922 PyObject *resultobj = 0;
8923 wxListBox *result = 0 ;
8924
8925 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8926 {
8927 if (!wxPyCheckForApp()) SWIG_fail;
8928 PyThreadState* __tstate = wxPyBeginAllowThreads();
8929 result = (wxListBox *)new wxListBox();
8930 wxPyEndAllowThreads(__tstate);
8931 if (PyErr_Occurred()) SWIG_fail;
8932 }
8933 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8934 return resultobj;
8935 fail:
8936 return NULL;
8937 }
8938
8939
8940 SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8941 PyObject *resultobj = 0;
8942 wxListBox *arg1 = (wxListBox *) 0 ;
8943 wxWindow *arg2 = (wxWindow *) 0 ;
8944 int arg3 = (int) -1 ;
8945 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8946 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8947 wxSize const &arg5_defvalue = wxDefaultSize ;
8948 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8949 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8950 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8951 long arg7 = (long) 0 ;
8952 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8953 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8954 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8955 wxString *arg9 = (wxString *) &arg9_defvalue ;
8956 bool result;
8957 void *argp1 = 0 ;
8958 int res1 = 0 ;
8959 void *argp2 = 0 ;
8960 int res2 = 0 ;
8961 int val3 ;
8962 int ecode3 = 0 ;
8963 wxPoint temp4 ;
8964 wxSize temp5 ;
8965 bool temp6 = false ;
8966 long val7 ;
8967 int ecode7 = 0 ;
8968 void *argp8 = 0 ;
8969 int res8 = 0 ;
8970 bool temp9 = false ;
8971 PyObject * obj0 = 0 ;
8972 PyObject * obj1 = 0 ;
8973 PyObject * obj2 = 0 ;
8974 PyObject * obj3 = 0 ;
8975 PyObject * obj4 = 0 ;
8976 PyObject * obj5 = 0 ;
8977 PyObject * obj6 = 0 ;
8978 PyObject * obj7 = 0 ;
8979 PyObject * obj8 = 0 ;
8980 char * kwnames[] = {
8981 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8982 };
8983
8984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
8985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
8986 if (!SWIG_IsOK(res1)) {
8987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
8988 }
8989 arg1 = reinterpret_cast< wxListBox * >(argp1);
8990 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8991 if (!SWIG_IsOK(res2)) {
8992 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8993 }
8994 arg2 = reinterpret_cast< wxWindow * >(argp2);
8995 if (obj2) {
8996 ecode3 = SWIG_AsVal_int(obj2, &val3);
8997 if (!SWIG_IsOK(ecode3)) {
8998 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
8999 }
9000 arg3 = static_cast< int >(val3);
9001 }
9002 if (obj3) {
9003 {
9004 arg4 = &temp4;
9005 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9006 }
9007 }
9008 if (obj4) {
9009 {
9010 arg5 = &temp5;
9011 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
9012 }
9013 }
9014 if (obj5) {
9015 {
9016 if (! PySequence_Check(obj5)) {
9017 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9018 SWIG_fail;
9019 }
9020 arg6 = new wxArrayString;
9021 temp6 = true;
9022 int i, len=PySequence_Length(obj5);
9023 for (i=0; i<len; i++) {
9024 PyObject* item = PySequence_GetItem(obj5, i);
9025 wxString* s = wxString_in_helper(item);
9026 if (PyErr_Occurred()) SWIG_fail;
9027 arg6->Add(*s);
9028 delete s;
9029 Py_DECREF(item);
9030 }
9031 }
9032 }
9033 if (obj6) {
9034 ecode7 = SWIG_AsVal_long(obj6, &val7);
9035 if (!SWIG_IsOK(ecode7)) {
9036 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9037 }
9038 arg7 = static_cast< long >(val7);
9039 }
9040 if (obj7) {
9041 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9042 if (!SWIG_IsOK(res8)) {
9043 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9044 }
9045 if (!argp8) {
9046 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9047 }
9048 arg8 = reinterpret_cast< wxValidator * >(argp8);
9049 }
9050 if (obj8) {
9051 {
9052 arg9 = wxString_in_helper(obj8);
9053 if (arg9 == NULL) SWIG_fail;
9054 temp9 = true;
9055 }
9056 }
9057 {
9058 PyThreadState* __tstate = wxPyBeginAllowThreads();
9059 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9060 wxPyEndAllowThreads(__tstate);
9061 if (PyErr_Occurred()) SWIG_fail;
9062 }
9063 {
9064 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9065 }
9066 {
9067 if (temp6) delete arg6;
9068 }
9069 {
9070 if (temp9)
9071 delete arg9;
9072 }
9073 return resultobj;
9074 fail:
9075 {
9076 if (temp6) delete arg6;
9077 }
9078 {
9079 if (temp9)
9080 delete arg9;
9081 }
9082 return NULL;
9083 }
9084
9085
9086 SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9087 PyObject *resultobj = 0;
9088 wxListBox *arg1 = (wxListBox *) 0 ;
9089 wxString *arg2 = 0 ;
9090 int arg3 ;
9091 PyObject *arg4 = (PyObject *) NULL ;
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 PyObject * obj3 = 0 ;
9101 char * kwnames[] = {
9102 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9103 };
9104
9105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9107 if (!SWIG_IsOK(res1)) {
9108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9109 }
9110 arg1 = reinterpret_cast< wxListBox * >(argp1);
9111 {
9112 arg2 = wxString_in_helper(obj1);
9113 if (arg2 == NULL) SWIG_fail;
9114 temp2 = true;
9115 }
9116 ecode3 = SWIG_AsVal_int(obj2, &val3);
9117 if (!SWIG_IsOK(ecode3)) {
9118 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9119 }
9120 arg3 = static_cast< int >(val3);
9121 if (obj3) {
9122 arg4 = obj3;
9123 }
9124 {
9125 PyThreadState* __tstate = wxPyBeginAllowThreads();
9126 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9127 wxPyEndAllowThreads(__tstate);
9128 if (PyErr_Occurred()) SWIG_fail;
9129 }
9130 resultobj = SWIG_Py_Void();
9131 {
9132 if (temp2)
9133 delete arg2;
9134 }
9135 return resultobj;
9136 fail:
9137 {
9138 if (temp2)
9139 delete arg2;
9140 }
9141 return NULL;
9142 }
9143
9144
9145 SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9146 PyObject *resultobj = 0;
9147 wxListBox *arg1 = (wxListBox *) 0 ;
9148 wxArrayString *arg2 = 0 ;
9149 unsigned int arg3 ;
9150 void *argp1 = 0 ;
9151 int res1 = 0 ;
9152 bool temp2 = false ;
9153 unsigned int val3 ;
9154 int ecode3 = 0 ;
9155 PyObject * obj0 = 0 ;
9156 PyObject * obj1 = 0 ;
9157 PyObject * obj2 = 0 ;
9158 char * kwnames[] = {
9159 (char *) "self",(char *) "items",(char *) "pos", NULL
9160 };
9161
9162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9164 if (!SWIG_IsOK(res1)) {
9165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9166 }
9167 arg1 = reinterpret_cast< wxListBox * >(argp1);
9168 {
9169 if (! PySequence_Check(obj1)) {
9170 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9171 SWIG_fail;
9172 }
9173 arg2 = new wxArrayString;
9174 temp2 = true;
9175 int i, len=PySequence_Length(obj1);
9176 for (i=0; i<len; i++) {
9177 PyObject* item = PySequence_GetItem(obj1, i);
9178 wxString* s = wxString_in_helper(item);
9179 if (PyErr_Occurred()) SWIG_fail;
9180 arg2->Add(*s);
9181 delete s;
9182 Py_DECREF(item);
9183 }
9184 }
9185 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
9186 if (!SWIG_IsOK(ecode3)) {
9187 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
9188 }
9189 arg3 = static_cast< unsigned int >(val3);
9190 {
9191 PyThreadState* __tstate = wxPyBeginAllowThreads();
9192 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9193 wxPyEndAllowThreads(__tstate);
9194 if (PyErr_Occurred()) SWIG_fail;
9195 }
9196 resultobj = SWIG_Py_Void();
9197 {
9198 if (temp2) delete arg2;
9199 }
9200 return resultobj;
9201 fail:
9202 {
9203 if (temp2) delete arg2;
9204 }
9205 return NULL;
9206 }
9207
9208
9209 SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9210 PyObject *resultobj = 0;
9211 wxListBox *arg1 = (wxListBox *) 0 ;
9212 wxArrayString *arg2 = 0 ;
9213 void *argp1 = 0 ;
9214 int res1 = 0 ;
9215 bool temp2 = false ;
9216 PyObject * obj0 = 0 ;
9217 PyObject * obj1 = 0 ;
9218 char * kwnames[] = {
9219 (char *) "self",(char *) "items", NULL
9220 };
9221
9222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9224 if (!SWIG_IsOK(res1)) {
9225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9226 }
9227 arg1 = reinterpret_cast< wxListBox * >(argp1);
9228 {
9229 if (! PySequence_Check(obj1)) {
9230 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9231 SWIG_fail;
9232 }
9233 arg2 = new wxArrayString;
9234 temp2 = true;
9235 int i, len=PySequence_Length(obj1);
9236 for (i=0; i<len; i++) {
9237 PyObject* item = PySequence_GetItem(obj1, i);
9238 wxString* s = wxString_in_helper(item);
9239 if (PyErr_Occurred()) SWIG_fail;
9240 arg2->Add(*s);
9241 delete s;
9242 Py_DECREF(item);
9243 }
9244 }
9245 {
9246 PyThreadState* __tstate = wxPyBeginAllowThreads();
9247 (arg1)->Set((wxArrayString const &)*arg2);
9248 wxPyEndAllowThreads(__tstate);
9249 if (PyErr_Occurred()) SWIG_fail;
9250 }
9251 resultobj = SWIG_Py_Void();
9252 {
9253 if (temp2) delete arg2;
9254 }
9255 return resultobj;
9256 fail:
9257 {
9258 if (temp2) delete arg2;
9259 }
9260 return NULL;
9261 }
9262
9263
9264 SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9265 PyObject *resultobj = 0;
9266 wxListBox *arg1 = (wxListBox *) 0 ;
9267 int arg2 ;
9268 bool result;
9269 void *argp1 = 0 ;
9270 int res1 = 0 ;
9271 int val2 ;
9272 int ecode2 = 0 ;
9273 PyObject * obj0 = 0 ;
9274 PyObject * obj1 = 0 ;
9275 char * kwnames[] = {
9276 (char *) "self",(char *) "n", NULL
9277 };
9278
9279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9281 if (!SWIG_IsOK(res1)) {
9282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9283 }
9284 arg1 = reinterpret_cast< wxListBox * >(argp1);
9285 ecode2 = SWIG_AsVal_int(obj1, &val2);
9286 if (!SWIG_IsOK(ecode2)) {
9287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9288 }
9289 arg2 = static_cast< int >(val2);
9290 {
9291 PyThreadState* __tstate = wxPyBeginAllowThreads();
9292 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9293 wxPyEndAllowThreads(__tstate);
9294 if (PyErr_Occurred()) SWIG_fail;
9295 }
9296 {
9297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9298 }
9299 return resultobj;
9300 fail:
9301 return NULL;
9302 }
9303
9304
9305 SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9306 PyObject *resultobj = 0;
9307 wxListBox *arg1 = (wxListBox *) 0 ;
9308 int arg2 ;
9309 bool arg3 = (bool) true ;
9310 void *argp1 = 0 ;
9311 int res1 = 0 ;
9312 int val2 ;
9313 int ecode2 = 0 ;
9314 bool val3 ;
9315 int ecode3 = 0 ;
9316 PyObject * obj0 = 0 ;
9317 PyObject * obj1 = 0 ;
9318 PyObject * obj2 = 0 ;
9319 char * kwnames[] = {
9320 (char *) "self",(char *) "n",(char *) "select", NULL
9321 };
9322
9323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9325 if (!SWIG_IsOK(res1)) {
9326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9327 }
9328 arg1 = reinterpret_cast< wxListBox * >(argp1);
9329 ecode2 = SWIG_AsVal_int(obj1, &val2);
9330 if (!SWIG_IsOK(ecode2)) {
9331 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9332 }
9333 arg2 = static_cast< int >(val2);
9334 if (obj2) {
9335 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9336 if (!SWIG_IsOK(ecode3)) {
9337 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9338 }
9339 arg3 = static_cast< bool >(val3);
9340 }
9341 {
9342 PyThreadState* __tstate = wxPyBeginAllowThreads();
9343 (arg1)->SetSelection(arg2,arg3);
9344 wxPyEndAllowThreads(__tstate);
9345 if (PyErr_Occurred()) SWIG_fail;
9346 }
9347 resultobj = SWIG_Py_Void();
9348 return resultobj;
9349 fail:
9350 return NULL;
9351 }
9352
9353
9354 SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9355 PyObject *resultobj = 0;
9356 wxListBox *arg1 = (wxListBox *) 0 ;
9357 int arg2 ;
9358 void *argp1 = 0 ;
9359 int res1 = 0 ;
9360 int val2 ;
9361 int ecode2 = 0 ;
9362 PyObject * obj0 = 0 ;
9363 PyObject * obj1 = 0 ;
9364 char * kwnames[] = {
9365 (char *) "self",(char *) "n", NULL
9366 };
9367
9368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9370 if (!SWIG_IsOK(res1)) {
9371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9372 }
9373 arg1 = reinterpret_cast< wxListBox * >(argp1);
9374 ecode2 = SWIG_AsVal_int(obj1, &val2);
9375 if (!SWIG_IsOK(ecode2)) {
9376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9377 }
9378 arg2 = static_cast< int >(val2);
9379 {
9380 PyThreadState* __tstate = wxPyBeginAllowThreads();
9381 (arg1)->Select(arg2);
9382 wxPyEndAllowThreads(__tstate);
9383 if (PyErr_Occurred()) SWIG_fail;
9384 }
9385 resultobj = SWIG_Py_Void();
9386 return resultobj;
9387 fail:
9388 return NULL;
9389 }
9390
9391
9392 SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9393 PyObject *resultobj = 0;
9394 wxListBox *arg1 = (wxListBox *) 0 ;
9395 int arg2 ;
9396 void *argp1 = 0 ;
9397 int res1 = 0 ;
9398 int val2 ;
9399 int ecode2 = 0 ;
9400 PyObject * obj0 = 0 ;
9401 PyObject * obj1 = 0 ;
9402 char * kwnames[] = {
9403 (char *) "self",(char *) "n", NULL
9404 };
9405
9406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9408 if (!SWIG_IsOK(res1)) {
9409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9410 }
9411 arg1 = reinterpret_cast< wxListBox * >(argp1);
9412 ecode2 = SWIG_AsVal_int(obj1, &val2);
9413 if (!SWIG_IsOK(ecode2)) {
9414 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9415 }
9416 arg2 = static_cast< int >(val2);
9417 {
9418 PyThreadState* __tstate = wxPyBeginAllowThreads();
9419 (arg1)->Deselect(arg2);
9420 wxPyEndAllowThreads(__tstate);
9421 if (PyErr_Occurred()) SWIG_fail;
9422 }
9423 resultobj = SWIG_Py_Void();
9424 return resultobj;
9425 fail:
9426 return NULL;
9427 }
9428
9429
9430 SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9431 PyObject *resultobj = 0;
9432 wxListBox *arg1 = (wxListBox *) 0 ;
9433 int arg2 = (int) -1 ;
9434 void *argp1 = 0 ;
9435 int res1 = 0 ;
9436 int val2 ;
9437 int ecode2 = 0 ;
9438 PyObject * obj0 = 0 ;
9439 PyObject * obj1 = 0 ;
9440 char * kwnames[] = {
9441 (char *) "self",(char *) "itemToLeaveSelected", NULL
9442 };
9443
9444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9446 if (!SWIG_IsOK(res1)) {
9447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9448 }
9449 arg1 = reinterpret_cast< wxListBox * >(argp1);
9450 if (obj1) {
9451 ecode2 = SWIG_AsVal_int(obj1, &val2);
9452 if (!SWIG_IsOK(ecode2)) {
9453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9454 }
9455 arg2 = static_cast< int >(val2);
9456 }
9457 {
9458 PyThreadState* __tstate = wxPyBeginAllowThreads();
9459 (arg1)->DeselectAll(arg2);
9460 wxPyEndAllowThreads(__tstate);
9461 if (PyErr_Occurred()) SWIG_fail;
9462 }
9463 resultobj = SWIG_Py_Void();
9464 return resultobj;
9465 fail:
9466 return NULL;
9467 }
9468
9469
9470 SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9471 PyObject *resultobj = 0;
9472 wxListBox *arg1 = (wxListBox *) 0 ;
9473 wxString *arg2 = 0 ;
9474 bool arg3 = (bool) true ;
9475 bool result;
9476 void *argp1 = 0 ;
9477 int res1 = 0 ;
9478 bool temp2 = false ;
9479 bool val3 ;
9480 int ecode3 = 0 ;
9481 PyObject * obj0 = 0 ;
9482 PyObject * obj1 = 0 ;
9483 PyObject * obj2 = 0 ;
9484 char * kwnames[] = {
9485 (char *) "self",(char *) "s",(char *) "select", NULL
9486 };
9487
9488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9490 if (!SWIG_IsOK(res1)) {
9491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9492 }
9493 arg1 = reinterpret_cast< wxListBox * >(argp1);
9494 {
9495 arg2 = wxString_in_helper(obj1);
9496 if (arg2 == NULL) SWIG_fail;
9497 temp2 = true;
9498 }
9499 if (obj2) {
9500 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9501 if (!SWIG_IsOK(ecode3)) {
9502 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9503 }
9504 arg3 = static_cast< bool >(val3);
9505 }
9506 {
9507 PyThreadState* __tstate = wxPyBeginAllowThreads();
9508 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9509 wxPyEndAllowThreads(__tstate);
9510 if (PyErr_Occurred()) SWIG_fail;
9511 }
9512 {
9513 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9514 }
9515 {
9516 if (temp2)
9517 delete arg2;
9518 }
9519 return resultobj;
9520 fail:
9521 {
9522 if (temp2)
9523 delete arg2;
9524 }
9525 return NULL;
9526 }
9527
9528
9529 SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9530 PyObject *resultobj = 0;
9531 wxListBox *arg1 = (wxListBox *) 0 ;
9532 PyObject *result = 0 ;
9533 void *argp1 = 0 ;
9534 int res1 = 0 ;
9535 PyObject *swig_obj[1] ;
9536
9537 if (!args) SWIG_fail;
9538 swig_obj[0] = args;
9539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9540 if (!SWIG_IsOK(res1)) {
9541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9542 }
9543 arg1 = reinterpret_cast< wxListBox * >(argp1);
9544 {
9545 PyThreadState* __tstate = wxPyBeginAllowThreads();
9546 result = (PyObject *)wxListBox_GetSelections(arg1);
9547 wxPyEndAllowThreads(__tstate);
9548 if (PyErr_Occurred()) SWIG_fail;
9549 }
9550 resultobj = result;
9551 return resultobj;
9552 fail:
9553 return NULL;
9554 }
9555
9556
9557 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9558 PyObject *resultobj = 0;
9559 wxListBox *arg1 = (wxListBox *) 0 ;
9560 int arg2 ;
9561 void *argp1 = 0 ;
9562 int res1 = 0 ;
9563 int val2 ;
9564 int ecode2 = 0 ;
9565 PyObject * obj0 = 0 ;
9566 PyObject * obj1 = 0 ;
9567 char * kwnames[] = {
9568 (char *) "self",(char *) "n", NULL
9569 };
9570
9571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9573 if (!SWIG_IsOK(res1)) {
9574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9575 }
9576 arg1 = reinterpret_cast< wxListBox * >(argp1);
9577 ecode2 = SWIG_AsVal_int(obj1, &val2);
9578 if (!SWIG_IsOK(ecode2)) {
9579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9580 }
9581 arg2 = static_cast< int >(val2);
9582 {
9583 PyThreadState* __tstate = wxPyBeginAllowThreads();
9584 (arg1)->SetFirstItem(arg2);
9585 wxPyEndAllowThreads(__tstate);
9586 if (PyErr_Occurred()) SWIG_fail;
9587 }
9588 resultobj = SWIG_Py_Void();
9589 return resultobj;
9590 fail:
9591 return NULL;
9592 }
9593
9594
9595 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9596 PyObject *resultobj = 0;
9597 wxListBox *arg1 = (wxListBox *) 0 ;
9598 wxString *arg2 = 0 ;
9599 void *argp1 = 0 ;
9600 int res1 = 0 ;
9601 bool temp2 = false ;
9602 PyObject * obj0 = 0 ;
9603 PyObject * obj1 = 0 ;
9604 char * kwnames[] = {
9605 (char *) "self",(char *) "s", NULL
9606 };
9607
9608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9610 if (!SWIG_IsOK(res1)) {
9611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9612 }
9613 arg1 = reinterpret_cast< wxListBox * >(argp1);
9614 {
9615 arg2 = wxString_in_helper(obj1);
9616 if (arg2 == NULL) SWIG_fail;
9617 temp2 = true;
9618 }
9619 {
9620 PyThreadState* __tstate = wxPyBeginAllowThreads();
9621 (arg1)->SetFirstItem((wxString const &)*arg2);
9622 wxPyEndAllowThreads(__tstate);
9623 if (PyErr_Occurred()) SWIG_fail;
9624 }
9625 resultobj = SWIG_Py_Void();
9626 {
9627 if (temp2)
9628 delete arg2;
9629 }
9630 return resultobj;
9631 fail:
9632 {
9633 if (temp2)
9634 delete arg2;
9635 }
9636 return NULL;
9637 }
9638
9639
9640 SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9641 PyObject *resultobj = 0;
9642 wxListBox *arg1 = (wxListBox *) 0 ;
9643 int arg2 ;
9644 void *argp1 = 0 ;
9645 int res1 = 0 ;
9646 int val2 ;
9647 int ecode2 = 0 ;
9648 PyObject * obj0 = 0 ;
9649 PyObject * obj1 = 0 ;
9650 char * kwnames[] = {
9651 (char *) "self",(char *) "n", NULL
9652 };
9653
9654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9656 if (!SWIG_IsOK(res1)) {
9657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9658 }
9659 arg1 = reinterpret_cast< wxListBox * >(argp1);
9660 ecode2 = SWIG_AsVal_int(obj1, &val2);
9661 if (!SWIG_IsOK(ecode2)) {
9662 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9663 }
9664 arg2 = static_cast< int >(val2);
9665 {
9666 PyThreadState* __tstate = wxPyBeginAllowThreads();
9667 (arg1)->EnsureVisible(arg2);
9668 wxPyEndAllowThreads(__tstate);
9669 if (PyErr_Occurred()) SWIG_fail;
9670 }
9671 resultobj = SWIG_Py_Void();
9672 return resultobj;
9673 fail:
9674 return NULL;
9675 }
9676
9677
9678 SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9679 PyObject *resultobj = 0;
9680 wxListBox *arg1 = (wxListBox *) 0 ;
9681 wxString *arg2 = 0 ;
9682 void *argp1 = 0 ;
9683 int res1 = 0 ;
9684 bool temp2 = false ;
9685 PyObject * obj0 = 0 ;
9686 PyObject * obj1 = 0 ;
9687 char * kwnames[] = {
9688 (char *) "self",(char *) "s", NULL
9689 };
9690
9691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9693 if (!SWIG_IsOK(res1)) {
9694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9695 }
9696 arg1 = reinterpret_cast< wxListBox * >(argp1);
9697 {
9698 arg2 = wxString_in_helper(obj1);
9699 if (arg2 == NULL) SWIG_fail;
9700 temp2 = true;
9701 }
9702 {
9703 PyThreadState* __tstate = wxPyBeginAllowThreads();
9704 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9705 wxPyEndAllowThreads(__tstate);
9706 if (PyErr_Occurred()) SWIG_fail;
9707 }
9708 resultobj = SWIG_Py_Void();
9709 {
9710 if (temp2)
9711 delete arg2;
9712 }
9713 return resultobj;
9714 fail:
9715 {
9716 if (temp2)
9717 delete arg2;
9718 }
9719 return NULL;
9720 }
9721
9722
9723 SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9724 PyObject *resultobj = 0;
9725 wxListBox *arg1 = (wxListBox *) 0 ;
9726 bool result;
9727 void *argp1 = 0 ;
9728 int res1 = 0 ;
9729 PyObject *swig_obj[1] ;
9730
9731 if (!args) SWIG_fail;
9732 swig_obj[0] = args;
9733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9734 if (!SWIG_IsOK(res1)) {
9735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9736 }
9737 arg1 = reinterpret_cast< wxListBox * >(argp1);
9738 {
9739 PyThreadState* __tstate = wxPyBeginAllowThreads();
9740 result = (bool)((wxListBox const *)arg1)->IsSorted();
9741 wxPyEndAllowThreads(__tstate);
9742 if (PyErr_Occurred()) SWIG_fail;
9743 }
9744 {
9745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9746 }
9747 return resultobj;
9748 fail:
9749 return NULL;
9750 }
9751
9752
9753 SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9754 PyObject *resultobj = 0;
9755 wxListBox *arg1 = (wxListBox *) 0 ;
9756 wxPoint *arg2 = 0 ;
9757 int result;
9758 void *argp1 = 0 ;
9759 int res1 = 0 ;
9760 wxPoint temp2 ;
9761 PyObject * obj0 = 0 ;
9762 PyObject * obj1 = 0 ;
9763 char * kwnames[] = {
9764 (char *) "self",(char *) "pt", NULL
9765 };
9766
9767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9769 if (!SWIG_IsOK(res1)) {
9770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9771 }
9772 arg1 = reinterpret_cast< wxListBox * >(argp1);
9773 {
9774 arg2 = &temp2;
9775 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9776 }
9777 {
9778 PyThreadState* __tstate = wxPyBeginAllowThreads();
9779 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9780 wxPyEndAllowThreads(__tstate);
9781 if (PyErr_Occurred()) SWIG_fail;
9782 }
9783 resultobj = SWIG_From_int(static_cast< int >(result));
9784 return resultobj;
9785 fail:
9786 return NULL;
9787 }
9788
9789
9790 SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9791 PyObject *resultobj = 0;
9792 wxListBox *arg1 = (wxListBox *) 0 ;
9793 int arg2 ;
9794 wxColour *arg3 = 0 ;
9795 void *argp1 = 0 ;
9796 int res1 = 0 ;
9797 int val2 ;
9798 int ecode2 = 0 ;
9799 wxColour temp3 ;
9800 PyObject * obj0 = 0 ;
9801 PyObject * obj1 = 0 ;
9802 PyObject * obj2 = 0 ;
9803 char * kwnames[] = {
9804 (char *) "self",(char *) "item",(char *) "c", NULL
9805 };
9806
9807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9809 if (!SWIG_IsOK(res1)) {
9810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9811 }
9812 arg1 = reinterpret_cast< wxListBox * >(argp1);
9813 ecode2 = SWIG_AsVal_int(obj1, &val2);
9814 if (!SWIG_IsOK(ecode2)) {
9815 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9816 }
9817 arg2 = static_cast< int >(val2);
9818 {
9819 arg3 = &temp3;
9820 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9821 }
9822 {
9823 PyThreadState* __tstate = wxPyBeginAllowThreads();
9824 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9825 wxPyEndAllowThreads(__tstate);
9826 if (PyErr_Occurred()) SWIG_fail;
9827 }
9828 resultobj = SWIG_Py_Void();
9829 return resultobj;
9830 fail:
9831 return NULL;
9832 }
9833
9834
9835 SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9836 PyObject *resultobj = 0;
9837 wxListBox *arg1 = (wxListBox *) 0 ;
9838 int arg2 ;
9839 wxColour *arg3 = 0 ;
9840 void *argp1 = 0 ;
9841 int res1 = 0 ;
9842 int val2 ;
9843 int ecode2 = 0 ;
9844 wxColour temp3 ;
9845 PyObject * obj0 = 0 ;
9846 PyObject * obj1 = 0 ;
9847 PyObject * obj2 = 0 ;
9848 char * kwnames[] = {
9849 (char *) "self",(char *) "item",(char *) "c", NULL
9850 };
9851
9852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9854 if (!SWIG_IsOK(res1)) {
9855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9856 }
9857 arg1 = reinterpret_cast< wxListBox * >(argp1);
9858 ecode2 = SWIG_AsVal_int(obj1, &val2);
9859 if (!SWIG_IsOK(ecode2)) {
9860 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9861 }
9862 arg2 = static_cast< int >(val2);
9863 {
9864 arg3 = &temp3;
9865 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9866 }
9867 {
9868 PyThreadState* __tstate = wxPyBeginAllowThreads();
9869 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9870 wxPyEndAllowThreads(__tstate);
9871 if (PyErr_Occurred()) SWIG_fail;
9872 }
9873 resultobj = SWIG_Py_Void();
9874 return resultobj;
9875 fail:
9876 return NULL;
9877 }
9878
9879
9880 SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9881 PyObject *resultobj = 0;
9882 wxListBox *arg1 = (wxListBox *) 0 ;
9883 int arg2 ;
9884 wxFont *arg3 = 0 ;
9885 void *argp1 = 0 ;
9886 int res1 = 0 ;
9887 int val2 ;
9888 int ecode2 = 0 ;
9889 void *argp3 = 0 ;
9890 int res3 = 0 ;
9891 PyObject * obj0 = 0 ;
9892 PyObject * obj1 = 0 ;
9893 PyObject * obj2 = 0 ;
9894 char * kwnames[] = {
9895 (char *) "self",(char *) "item",(char *) "f", NULL
9896 };
9897
9898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9900 if (!SWIG_IsOK(res1)) {
9901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9902 }
9903 arg1 = reinterpret_cast< wxListBox * >(argp1);
9904 ecode2 = SWIG_AsVal_int(obj1, &val2);
9905 if (!SWIG_IsOK(ecode2)) {
9906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9907 }
9908 arg2 = static_cast< int >(val2);
9909 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9910 if (!SWIG_IsOK(res3)) {
9911 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9912 }
9913 if (!argp3) {
9914 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9915 }
9916 arg3 = reinterpret_cast< wxFont * >(argp3);
9917 {
9918 PyThreadState* __tstate = wxPyBeginAllowThreads();
9919 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9920 wxPyEndAllowThreads(__tstate);
9921 if (PyErr_Occurred()) SWIG_fail;
9922 }
9923 resultobj = SWIG_Py_Void();
9924 return resultobj;
9925 fail:
9926 return NULL;
9927 }
9928
9929
9930 SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9931 PyObject *resultobj = 0;
9932 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9933 SwigValueWrapper<wxVisualAttributes > result;
9934 int val1 ;
9935 int ecode1 = 0 ;
9936 PyObject * obj0 = 0 ;
9937 char * kwnames[] = {
9938 (char *) "variant", NULL
9939 };
9940
9941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9942 if (obj0) {
9943 ecode1 = SWIG_AsVal_int(obj0, &val1);
9944 if (!SWIG_IsOK(ecode1)) {
9945 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9946 }
9947 arg1 = static_cast< wxWindowVariant >(val1);
9948 }
9949 {
9950 if (!wxPyCheckForApp()) SWIG_fail;
9951 PyThreadState* __tstate = wxPyBeginAllowThreads();
9952 result = wxListBox::GetClassDefaultAttributes(arg1);
9953 wxPyEndAllowThreads(__tstate);
9954 if (PyErr_Occurred()) SWIG_fail;
9955 }
9956 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9957 return resultobj;
9958 fail:
9959 return NULL;
9960 }
9961
9962
9963 SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9964 PyObject *obj;
9965 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9966 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9967 return SWIG_Py_Void();
9968 }
9969
9970 SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9971 return SWIG_Python_InitShadowInstance(args);
9972 }
9973
9974 SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9975 PyObject *resultobj = 0;
9976 wxWindow *arg1 = (wxWindow *) 0 ;
9977 int arg2 = (int) -1 ;
9978 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9979 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9980 wxSize const &arg4_defvalue = wxDefaultSize ;
9981 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9982 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
9983 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
9984 long arg6 = (long) 0 ;
9985 wxValidator const &arg7_defvalue = wxDefaultValidator ;
9986 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
9987 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
9988 wxString *arg8 = (wxString *) &arg8_defvalue ;
9989 wxCheckListBox *result = 0 ;
9990 void *argp1 = 0 ;
9991 int res1 = 0 ;
9992 int val2 ;
9993 int ecode2 = 0 ;
9994 wxPoint temp3 ;
9995 wxSize temp4 ;
9996 bool temp5 = false ;
9997 long val6 ;
9998 int ecode6 = 0 ;
9999 void *argp7 = 0 ;
10000 int res7 = 0 ;
10001 bool temp8 = false ;
10002 PyObject * obj0 = 0 ;
10003 PyObject * obj1 = 0 ;
10004 PyObject * obj2 = 0 ;
10005 PyObject * obj3 = 0 ;
10006 PyObject * obj4 = 0 ;
10007 PyObject * obj5 = 0 ;
10008 PyObject * obj6 = 0 ;
10009 PyObject * obj7 = 0 ;
10010 char * kwnames[] = {
10011 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10012 };
10013
10014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10016 if (!SWIG_IsOK(res1)) {
10017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10018 }
10019 arg1 = reinterpret_cast< wxWindow * >(argp1);
10020 if (obj1) {
10021 ecode2 = SWIG_AsVal_int(obj1, &val2);
10022 if (!SWIG_IsOK(ecode2)) {
10023 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10024 }
10025 arg2 = static_cast< int >(val2);
10026 }
10027 if (obj2) {
10028 {
10029 arg3 = &temp3;
10030 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10031 }
10032 }
10033 if (obj3) {
10034 {
10035 arg4 = &temp4;
10036 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10037 }
10038 }
10039 if (obj4) {
10040 {
10041 if (! PySequence_Check(obj4)) {
10042 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10043 SWIG_fail;
10044 }
10045 arg5 = new wxArrayString;
10046 temp5 = true;
10047 int i, len=PySequence_Length(obj4);
10048 for (i=0; i<len; i++) {
10049 PyObject* item = PySequence_GetItem(obj4, i);
10050 wxString* s = wxString_in_helper(item);
10051 if (PyErr_Occurred()) SWIG_fail;
10052 arg5->Add(*s);
10053 delete s;
10054 Py_DECREF(item);
10055 }
10056 }
10057 }
10058 if (obj5) {
10059 ecode6 = SWIG_AsVal_long(obj5, &val6);
10060 if (!SWIG_IsOK(ecode6)) {
10061 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10062 }
10063 arg6 = static_cast< long >(val6);
10064 }
10065 if (obj6) {
10066 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10067 if (!SWIG_IsOK(res7)) {
10068 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10069 }
10070 if (!argp7) {
10071 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10072 }
10073 arg7 = reinterpret_cast< wxValidator * >(argp7);
10074 }
10075 if (obj7) {
10076 {
10077 arg8 = wxString_in_helper(obj7);
10078 if (arg8 == NULL) SWIG_fail;
10079 temp8 = true;
10080 }
10081 }
10082 {
10083 if (!wxPyCheckForApp()) SWIG_fail;
10084 PyThreadState* __tstate = wxPyBeginAllowThreads();
10085 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10086 wxPyEndAllowThreads(__tstate);
10087 if (PyErr_Occurred()) SWIG_fail;
10088 }
10089 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10090 {
10091 if (temp5) delete arg5;
10092 }
10093 {
10094 if (temp8)
10095 delete arg8;
10096 }
10097 return resultobj;
10098 fail:
10099 {
10100 if (temp5) delete arg5;
10101 }
10102 {
10103 if (temp8)
10104 delete arg8;
10105 }
10106 return NULL;
10107 }
10108
10109
10110 SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10111 PyObject *resultobj = 0;
10112 wxCheckListBox *result = 0 ;
10113
10114 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10115 {
10116 if (!wxPyCheckForApp()) SWIG_fail;
10117 PyThreadState* __tstate = wxPyBeginAllowThreads();
10118 result = (wxCheckListBox *)new wxCheckListBox();
10119 wxPyEndAllowThreads(__tstate);
10120 if (PyErr_Occurred()) SWIG_fail;
10121 }
10122 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10123 return resultobj;
10124 fail:
10125 return NULL;
10126 }
10127
10128
10129 SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10130 PyObject *resultobj = 0;
10131 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10132 wxWindow *arg2 = (wxWindow *) 0 ;
10133 int arg3 = (int) -1 ;
10134 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10135 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10136 wxSize const &arg5_defvalue = wxDefaultSize ;
10137 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10138 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10139 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10140 long arg7 = (long) 0 ;
10141 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10142 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10143 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10144 wxString *arg9 = (wxString *) &arg9_defvalue ;
10145 bool result;
10146 void *argp1 = 0 ;
10147 int res1 = 0 ;
10148 void *argp2 = 0 ;
10149 int res2 = 0 ;
10150 int val3 ;
10151 int ecode3 = 0 ;
10152 wxPoint temp4 ;
10153 wxSize temp5 ;
10154 bool temp6 = false ;
10155 long val7 ;
10156 int ecode7 = 0 ;
10157 void *argp8 = 0 ;
10158 int res8 = 0 ;
10159 bool temp9 = false ;
10160 PyObject * obj0 = 0 ;
10161 PyObject * obj1 = 0 ;
10162 PyObject * obj2 = 0 ;
10163 PyObject * obj3 = 0 ;
10164 PyObject * obj4 = 0 ;
10165 PyObject * obj5 = 0 ;
10166 PyObject * obj6 = 0 ;
10167 PyObject * obj7 = 0 ;
10168 PyObject * obj8 = 0 ;
10169 char * kwnames[] = {
10170 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10171 };
10172
10173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10175 if (!SWIG_IsOK(res1)) {
10176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10177 }
10178 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10179 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10180 if (!SWIG_IsOK(res2)) {
10181 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10182 }
10183 arg2 = reinterpret_cast< wxWindow * >(argp2);
10184 if (obj2) {
10185 ecode3 = SWIG_AsVal_int(obj2, &val3);
10186 if (!SWIG_IsOK(ecode3)) {
10187 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10188 }
10189 arg3 = static_cast< int >(val3);
10190 }
10191 if (obj3) {
10192 {
10193 arg4 = &temp4;
10194 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10195 }
10196 }
10197 if (obj4) {
10198 {
10199 arg5 = &temp5;
10200 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10201 }
10202 }
10203 if (obj5) {
10204 {
10205 if (! PySequence_Check(obj5)) {
10206 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10207 SWIG_fail;
10208 }
10209 arg6 = new wxArrayString;
10210 temp6 = true;
10211 int i, len=PySequence_Length(obj5);
10212 for (i=0; i<len; i++) {
10213 PyObject* item = PySequence_GetItem(obj5, i);
10214 wxString* s = wxString_in_helper(item);
10215 if (PyErr_Occurred()) SWIG_fail;
10216 arg6->Add(*s);
10217 delete s;
10218 Py_DECREF(item);
10219 }
10220 }
10221 }
10222 if (obj6) {
10223 ecode7 = SWIG_AsVal_long(obj6, &val7);
10224 if (!SWIG_IsOK(ecode7)) {
10225 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10226 }
10227 arg7 = static_cast< long >(val7);
10228 }
10229 if (obj7) {
10230 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10231 if (!SWIG_IsOK(res8)) {
10232 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10233 }
10234 if (!argp8) {
10235 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10236 }
10237 arg8 = reinterpret_cast< wxValidator * >(argp8);
10238 }
10239 if (obj8) {
10240 {
10241 arg9 = wxString_in_helper(obj8);
10242 if (arg9 == NULL) SWIG_fail;
10243 temp9 = true;
10244 }
10245 }
10246 {
10247 PyThreadState* __tstate = wxPyBeginAllowThreads();
10248 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10249 wxPyEndAllowThreads(__tstate);
10250 if (PyErr_Occurred()) SWIG_fail;
10251 }
10252 {
10253 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10254 }
10255 {
10256 if (temp6) delete arg6;
10257 }
10258 {
10259 if (temp9)
10260 delete arg9;
10261 }
10262 return resultobj;
10263 fail:
10264 {
10265 if (temp6) delete arg6;
10266 }
10267 {
10268 if (temp9)
10269 delete arg9;
10270 }
10271 return NULL;
10272 }
10273
10274
10275 SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10276 PyObject *resultobj = 0;
10277 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10278 unsigned int arg2 ;
10279 bool result;
10280 void *argp1 = 0 ;
10281 int res1 = 0 ;
10282 unsigned int val2 ;
10283 int ecode2 = 0 ;
10284 PyObject * obj0 = 0 ;
10285 PyObject * obj1 = 0 ;
10286 char * kwnames[] = {
10287 (char *) "self",(char *) "index", NULL
10288 };
10289
10290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10292 if (!SWIG_IsOK(res1)) {
10293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10294 }
10295 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10296 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10297 if (!SWIG_IsOK(ecode2)) {
10298 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
10299 }
10300 arg2 = static_cast< unsigned int >(val2);
10301 {
10302 PyThreadState* __tstate = wxPyBeginAllowThreads();
10303 result = (bool)(arg1)->IsChecked(arg2);
10304 wxPyEndAllowThreads(__tstate);
10305 if (PyErr_Occurred()) SWIG_fail;
10306 }
10307 {
10308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10309 }
10310 return resultobj;
10311 fail:
10312 return NULL;
10313 }
10314
10315
10316 SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10317 PyObject *resultobj = 0;
10318 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10319 unsigned int arg2 ;
10320 int arg3 = (int) true ;
10321 void *argp1 = 0 ;
10322 int res1 = 0 ;
10323 unsigned int val2 ;
10324 int ecode2 = 0 ;
10325 int val3 ;
10326 int ecode3 = 0 ;
10327 PyObject * obj0 = 0 ;
10328 PyObject * obj1 = 0 ;
10329 PyObject * obj2 = 0 ;
10330 char * kwnames[] = {
10331 (char *) "self",(char *) "index",(char *) "check", NULL
10332 };
10333
10334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10336 if (!SWIG_IsOK(res1)) {
10337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10338 }
10339 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10340 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10341 if (!SWIG_IsOK(ecode2)) {
10342 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
10343 }
10344 arg2 = static_cast< unsigned int >(val2);
10345 if (obj2) {
10346 ecode3 = SWIG_AsVal_int(obj2, &val3);
10347 if (!SWIG_IsOK(ecode3)) {
10348 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10349 }
10350 arg3 = static_cast< int >(val3);
10351 }
10352 {
10353 PyThreadState* __tstate = wxPyBeginAllowThreads();
10354 (arg1)->Check(arg2,arg3);
10355 wxPyEndAllowThreads(__tstate);
10356 if (PyErr_Occurred()) SWIG_fail;
10357 }
10358 resultobj = SWIG_Py_Void();
10359 return resultobj;
10360 fail:
10361 return NULL;
10362 }
10363
10364
10365 SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10366 PyObject *resultobj = 0;
10367 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10368 int result;
10369 void *argp1 = 0 ;
10370 int res1 = 0 ;
10371 PyObject *swig_obj[1] ;
10372
10373 if (!args) SWIG_fail;
10374 swig_obj[0] = args;
10375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10376 if (!SWIG_IsOK(res1)) {
10377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10378 }
10379 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10380 {
10381 PyThreadState* __tstate = wxPyBeginAllowThreads();
10382 result = (int)(arg1)->GetItemHeight();
10383 wxPyEndAllowThreads(__tstate);
10384 if (PyErr_Occurred()) SWIG_fail;
10385 }
10386 resultobj = SWIG_From_int(static_cast< int >(result));
10387 return resultobj;
10388 fail:
10389 return NULL;
10390 }
10391
10392
10393 SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10394 PyObject *obj;
10395 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10396 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10397 return SWIG_Py_Void();
10398 }
10399
10400 SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10401 return SWIG_Python_InitShadowInstance(args);
10402 }
10403
10404 SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10405 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10406 return 1;
10407 }
10408
10409
10410 SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10411 PyObject *pyobj = 0;
10412
10413 {
10414 #if wxUSE_UNICODE
10415 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10416 #else
10417 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10418 #endif
10419 }
10420 return pyobj;
10421 }
10422
10423
10424 SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10425 PyObject *resultobj = 0;
10426 wxColour const &arg1_defvalue = wxNullColour ;
10427 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10428 wxColour const &arg2_defvalue = wxNullColour ;
10429 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10430 wxFont const &arg3_defvalue = wxNullFont ;
10431 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10432 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10433 wxTextAttr *result = 0 ;
10434 wxColour temp1 ;
10435 wxColour temp2 ;
10436 void *argp3 = 0 ;
10437 int res3 = 0 ;
10438 int val4 ;
10439 int ecode4 = 0 ;
10440 PyObject * obj0 = 0 ;
10441 PyObject * obj1 = 0 ;
10442 PyObject * obj2 = 0 ;
10443 PyObject * obj3 = 0 ;
10444 char * kwnames[] = {
10445 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10446 };
10447
10448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10449 if (obj0) {
10450 {
10451 arg1 = &temp1;
10452 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
10453 }
10454 }
10455 if (obj1) {
10456 {
10457 arg2 = &temp2;
10458 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10459 }
10460 }
10461 if (obj2) {
10462 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10463 if (!SWIG_IsOK(res3)) {
10464 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10465 }
10466 if (!argp3) {
10467 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10468 }
10469 arg3 = reinterpret_cast< wxFont * >(argp3);
10470 }
10471 if (obj3) {
10472 ecode4 = SWIG_AsVal_int(obj3, &val4);
10473 if (!SWIG_IsOK(ecode4)) {
10474 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10475 }
10476 arg4 = static_cast< wxTextAttrAlignment >(val4);
10477 }
10478 {
10479 PyThreadState* __tstate = wxPyBeginAllowThreads();
10480 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10481 wxPyEndAllowThreads(__tstate);
10482 if (PyErr_Occurred()) SWIG_fail;
10483 }
10484 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10485 return resultobj;
10486 fail:
10487 return NULL;
10488 }
10489
10490
10491 SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10492 PyObject *resultobj = 0;
10493 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10494 void *argp1 = 0 ;
10495 int res1 = 0 ;
10496 PyObject *swig_obj[1] ;
10497
10498 if (!args) SWIG_fail;
10499 swig_obj[0] = args;
10500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10501 if (!SWIG_IsOK(res1)) {
10502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10503 }
10504 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10505 {
10506 PyThreadState* __tstate = wxPyBeginAllowThreads();
10507 delete arg1;
10508
10509 wxPyEndAllowThreads(__tstate);
10510 if (PyErr_Occurred()) SWIG_fail;
10511 }
10512 resultobj = SWIG_Py_Void();
10513 return resultobj;
10514 fail:
10515 return NULL;
10516 }
10517
10518
10519 SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10520 PyObject *resultobj = 0;
10521 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10522 void *argp1 = 0 ;
10523 int res1 = 0 ;
10524 PyObject *swig_obj[1] ;
10525
10526 if (!args) SWIG_fail;
10527 swig_obj[0] = args;
10528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10529 if (!SWIG_IsOK(res1)) {
10530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10531 }
10532 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10533 {
10534 PyThreadState* __tstate = wxPyBeginAllowThreads();
10535 (arg1)->Init();
10536 wxPyEndAllowThreads(__tstate);
10537 if (PyErr_Occurred()) SWIG_fail;
10538 }
10539 resultobj = SWIG_Py_Void();
10540 return resultobj;
10541 fail:
10542 return NULL;
10543 }
10544
10545
10546 SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10547 PyObject *resultobj = 0;
10548 wxTextAttr *arg1 = 0 ;
10549 wxTextAttr *arg2 = 0 ;
10550 wxTextAttr result;
10551 void *argp1 = 0 ;
10552 int res1 = 0 ;
10553 void *argp2 = 0 ;
10554 int res2 = 0 ;
10555 PyObject * obj0 = 0 ;
10556 PyObject * obj1 = 0 ;
10557 char * kwnames[] = {
10558 (char *) "base",(char *) "overlay", NULL
10559 };
10560
10561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10562 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10563 if (!SWIG_IsOK(res1)) {
10564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10565 }
10566 if (!argp1) {
10567 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10568 }
10569 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10570 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10571 if (!SWIG_IsOK(res2)) {
10572 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10573 }
10574 if (!argp2) {
10575 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10576 }
10577 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10578 {
10579 PyThreadState* __tstate = wxPyBeginAllowThreads();
10580 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10581 wxPyEndAllowThreads(__tstate);
10582 if (PyErr_Occurred()) SWIG_fail;
10583 }
10584 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10585 return resultobj;
10586 fail:
10587 return NULL;
10588 }
10589
10590
10591 SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10592 PyObject *resultobj = 0;
10593 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10594 wxColour *arg2 = 0 ;
10595 void *argp1 = 0 ;
10596 int res1 = 0 ;
10597 wxColour temp2 ;
10598 PyObject * obj0 = 0 ;
10599 PyObject * obj1 = 0 ;
10600 char * kwnames[] = {
10601 (char *) "self",(char *) "colText", NULL
10602 };
10603
10604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10606 if (!SWIG_IsOK(res1)) {
10607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10608 }
10609 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10610 {
10611 arg2 = &temp2;
10612 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10613 }
10614 {
10615 PyThreadState* __tstate = wxPyBeginAllowThreads();
10616 (arg1)->SetTextColour((wxColour const &)*arg2);
10617 wxPyEndAllowThreads(__tstate);
10618 if (PyErr_Occurred()) SWIG_fail;
10619 }
10620 resultobj = SWIG_Py_Void();
10621 return resultobj;
10622 fail:
10623 return NULL;
10624 }
10625
10626
10627 SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10628 PyObject *resultobj = 0;
10629 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10630 wxColour *arg2 = 0 ;
10631 void *argp1 = 0 ;
10632 int res1 = 0 ;
10633 wxColour temp2 ;
10634 PyObject * obj0 = 0 ;
10635 PyObject * obj1 = 0 ;
10636 char * kwnames[] = {
10637 (char *) "self",(char *) "colBack", NULL
10638 };
10639
10640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10642 if (!SWIG_IsOK(res1)) {
10643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10644 }
10645 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10646 {
10647 arg2 = &temp2;
10648 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10649 }
10650 {
10651 PyThreadState* __tstate = wxPyBeginAllowThreads();
10652 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10653 wxPyEndAllowThreads(__tstate);
10654 if (PyErr_Occurred()) SWIG_fail;
10655 }
10656 resultobj = SWIG_Py_Void();
10657 return resultobj;
10658 fail:
10659 return NULL;
10660 }
10661
10662
10663 SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10664 PyObject *resultobj = 0;
10665 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10666 wxFont *arg2 = 0 ;
10667 long arg3 = (long) wxTEXT_ATTR_FONT ;
10668 void *argp1 = 0 ;
10669 int res1 = 0 ;
10670 void *argp2 = 0 ;
10671 int res2 = 0 ;
10672 long val3 ;
10673 int ecode3 = 0 ;
10674 PyObject * obj0 = 0 ;
10675 PyObject * obj1 = 0 ;
10676 PyObject * obj2 = 0 ;
10677 char * kwnames[] = {
10678 (char *) "self",(char *) "font",(char *) "flags", NULL
10679 };
10680
10681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10683 if (!SWIG_IsOK(res1)) {
10684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10685 }
10686 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10687 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10688 if (!SWIG_IsOK(res2)) {
10689 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10690 }
10691 if (!argp2) {
10692 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10693 }
10694 arg2 = reinterpret_cast< wxFont * >(argp2);
10695 if (obj2) {
10696 ecode3 = SWIG_AsVal_long(obj2, &val3);
10697 if (!SWIG_IsOK(ecode3)) {
10698 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10699 }
10700 arg3 = static_cast< long >(val3);
10701 }
10702 {
10703 PyThreadState* __tstate = wxPyBeginAllowThreads();
10704 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10705 wxPyEndAllowThreads(__tstate);
10706 if (PyErr_Occurred()) SWIG_fail;
10707 }
10708 resultobj = SWIG_Py_Void();
10709 return resultobj;
10710 fail:
10711 return NULL;
10712 }
10713
10714
10715 SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10716 PyObject *resultobj = 0;
10717 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10718 wxTextAttrAlignment arg2 ;
10719 void *argp1 = 0 ;
10720 int res1 = 0 ;
10721 int val2 ;
10722 int ecode2 = 0 ;
10723 PyObject * obj0 = 0 ;
10724 PyObject * obj1 = 0 ;
10725 char * kwnames[] = {
10726 (char *) "self",(char *) "alignment", NULL
10727 };
10728
10729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10731 if (!SWIG_IsOK(res1)) {
10732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10733 }
10734 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10735 ecode2 = SWIG_AsVal_int(obj1, &val2);
10736 if (!SWIG_IsOK(ecode2)) {
10737 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10738 }
10739 arg2 = static_cast< wxTextAttrAlignment >(val2);
10740 {
10741 PyThreadState* __tstate = wxPyBeginAllowThreads();
10742 (arg1)->SetAlignment(arg2);
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_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10754 PyObject *resultobj = 0;
10755 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10756 wxArrayInt *arg2 = 0 ;
10757 void *argp1 = 0 ;
10758 int res1 = 0 ;
10759 bool temp2 = false ;
10760 PyObject * obj0 = 0 ;
10761 PyObject * obj1 = 0 ;
10762 char * kwnames[] = {
10763 (char *) "self",(char *) "tabs", NULL
10764 };
10765
10766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10768 if (!SWIG_IsOK(res1)) {
10769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10770 }
10771 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10772 {
10773 if (! PySequence_Check(obj1)) {
10774 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10775 SWIG_fail;
10776 }
10777 arg2 = new wxArrayInt;
10778 temp2 = true;
10779 int i, len=PySequence_Length(obj1);
10780 for (i=0; i<len; i++) {
10781 PyObject* item = PySequence_GetItem(obj1, i);
10782 PyObject* number = PyNumber_Int(item);
10783 arg2->Add(PyInt_AS_LONG(number));
10784 Py_DECREF(item);
10785 Py_DECREF(number);
10786 }
10787 }
10788 {
10789 PyThreadState* __tstate = wxPyBeginAllowThreads();
10790 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10791 wxPyEndAllowThreads(__tstate);
10792 if (PyErr_Occurred()) SWIG_fail;
10793 }
10794 resultobj = SWIG_Py_Void();
10795 {
10796 if (temp2) delete arg2;
10797 }
10798 return resultobj;
10799 fail:
10800 {
10801 if (temp2) delete arg2;
10802 }
10803 return NULL;
10804 }
10805
10806
10807 SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10808 PyObject *resultobj = 0;
10809 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10810 int arg2 ;
10811 int arg3 = (int) 0 ;
10812 void *argp1 = 0 ;
10813 int res1 = 0 ;
10814 int val2 ;
10815 int ecode2 = 0 ;
10816 int val3 ;
10817 int ecode3 = 0 ;
10818 PyObject * obj0 = 0 ;
10819 PyObject * obj1 = 0 ;
10820 PyObject * obj2 = 0 ;
10821 char * kwnames[] = {
10822 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10823 };
10824
10825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10827 if (!SWIG_IsOK(res1)) {
10828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10829 }
10830 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10831 ecode2 = SWIG_AsVal_int(obj1, &val2);
10832 if (!SWIG_IsOK(ecode2)) {
10833 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10834 }
10835 arg2 = static_cast< int >(val2);
10836 if (obj2) {
10837 ecode3 = SWIG_AsVal_int(obj2, &val3);
10838 if (!SWIG_IsOK(ecode3)) {
10839 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10840 }
10841 arg3 = static_cast< int >(val3);
10842 }
10843 {
10844 PyThreadState* __tstate = wxPyBeginAllowThreads();
10845 (arg1)->SetLeftIndent(arg2,arg3);
10846 wxPyEndAllowThreads(__tstate);
10847 if (PyErr_Occurred()) SWIG_fail;
10848 }
10849 resultobj = SWIG_Py_Void();
10850 return resultobj;
10851 fail:
10852 return NULL;
10853 }
10854
10855
10856 SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10857 PyObject *resultobj = 0;
10858 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10859 int arg2 ;
10860 void *argp1 = 0 ;
10861 int res1 = 0 ;
10862 int val2 ;
10863 int ecode2 = 0 ;
10864 PyObject * obj0 = 0 ;
10865 PyObject * obj1 = 0 ;
10866 char * kwnames[] = {
10867 (char *) "self",(char *) "indent", NULL
10868 };
10869
10870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10872 if (!SWIG_IsOK(res1)) {
10873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10874 }
10875 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10876 ecode2 = SWIG_AsVal_int(obj1, &val2);
10877 if (!SWIG_IsOK(ecode2)) {
10878 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10879 }
10880 arg2 = static_cast< int >(val2);
10881 {
10882 PyThreadState* __tstate = wxPyBeginAllowThreads();
10883 (arg1)->SetRightIndent(arg2);
10884 wxPyEndAllowThreads(__tstate);
10885 if (PyErr_Occurred()) SWIG_fail;
10886 }
10887 resultobj = SWIG_Py_Void();
10888 return resultobj;
10889 fail:
10890 return NULL;
10891 }
10892
10893
10894 SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10895 PyObject *resultobj = 0;
10896 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10897 long arg2 ;
10898 void *argp1 = 0 ;
10899 int res1 = 0 ;
10900 long val2 ;
10901 int ecode2 = 0 ;
10902 PyObject * obj0 = 0 ;
10903 PyObject * obj1 = 0 ;
10904 char * kwnames[] = {
10905 (char *) "self",(char *) "flags", NULL
10906 };
10907
10908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10910 if (!SWIG_IsOK(res1)) {
10911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10912 }
10913 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10914 ecode2 = SWIG_AsVal_long(obj1, &val2);
10915 if (!SWIG_IsOK(ecode2)) {
10916 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10917 }
10918 arg2 = static_cast< long >(val2);
10919 {
10920 PyThreadState* __tstate = wxPyBeginAllowThreads();
10921 (arg1)->SetFlags(arg2);
10922 wxPyEndAllowThreads(__tstate);
10923 if (PyErr_Occurred()) SWIG_fail;
10924 }
10925 resultobj = SWIG_Py_Void();
10926 return resultobj;
10927 fail:
10928 return NULL;
10929 }
10930
10931
10932 SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10933 PyObject *resultobj = 0;
10934 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10935 bool result;
10936 void *argp1 = 0 ;
10937 int res1 = 0 ;
10938 PyObject *swig_obj[1] ;
10939
10940 if (!args) SWIG_fail;
10941 swig_obj[0] = args;
10942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10943 if (!SWIG_IsOK(res1)) {
10944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10945 }
10946 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10947 {
10948 PyThreadState* __tstate = wxPyBeginAllowThreads();
10949 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10950 wxPyEndAllowThreads(__tstate);
10951 if (PyErr_Occurred()) SWIG_fail;
10952 }
10953 {
10954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10955 }
10956 return resultobj;
10957 fail:
10958 return NULL;
10959 }
10960
10961
10962 SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10963 PyObject *resultobj = 0;
10964 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10965 bool result;
10966 void *argp1 = 0 ;
10967 int res1 = 0 ;
10968 PyObject *swig_obj[1] ;
10969
10970 if (!args) SWIG_fail;
10971 swig_obj[0] = args;
10972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10973 if (!SWIG_IsOK(res1)) {
10974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10975 }
10976 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10977 {
10978 PyThreadState* __tstate = wxPyBeginAllowThreads();
10979 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
10980 wxPyEndAllowThreads(__tstate);
10981 if (PyErr_Occurred()) SWIG_fail;
10982 }
10983 {
10984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10985 }
10986 return resultobj;
10987 fail:
10988 return NULL;
10989 }
10990
10991
10992 SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10993 PyObject *resultobj = 0;
10994 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10995 bool result;
10996 void *argp1 = 0 ;
10997 int res1 = 0 ;
10998 PyObject *swig_obj[1] ;
10999
11000 if (!args) SWIG_fail;
11001 swig_obj[0] = args;
11002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11003 if (!SWIG_IsOK(res1)) {
11004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11005 }
11006 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11007 {
11008 PyThreadState* __tstate = wxPyBeginAllowThreads();
11009 result = (bool)((wxTextAttr const *)arg1)->HasFont();
11010 wxPyEndAllowThreads(__tstate);
11011 if (PyErr_Occurred()) SWIG_fail;
11012 }
11013 {
11014 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11015 }
11016 return resultobj;
11017 fail:
11018 return NULL;
11019 }
11020
11021
11022 SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11023 PyObject *resultobj = 0;
11024 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11025 bool result;
11026 void *argp1 = 0 ;
11027 int res1 = 0 ;
11028 PyObject *swig_obj[1] ;
11029
11030 if (!args) SWIG_fail;
11031 swig_obj[0] = args;
11032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11033 if (!SWIG_IsOK(res1)) {
11034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11035 }
11036 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11037 {
11038 PyThreadState* __tstate = wxPyBeginAllowThreads();
11039 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11040 wxPyEndAllowThreads(__tstate);
11041 if (PyErr_Occurred()) SWIG_fail;
11042 }
11043 {
11044 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11045 }
11046 return resultobj;
11047 fail:
11048 return NULL;
11049 }
11050
11051
11052 SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11053 PyObject *resultobj = 0;
11054 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11055 bool result;
11056 void *argp1 = 0 ;
11057 int res1 = 0 ;
11058 PyObject *swig_obj[1] ;
11059
11060 if (!args) SWIG_fail;
11061 swig_obj[0] = args;
11062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11063 if (!SWIG_IsOK(res1)) {
11064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11065 }
11066 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11067 {
11068 PyThreadState* __tstate = wxPyBeginAllowThreads();
11069 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11070 wxPyEndAllowThreads(__tstate);
11071 if (PyErr_Occurred()) SWIG_fail;
11072 }
11073 {
11074 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11075 }
11076 return resultobj;
11077 fail:
11078 return NULL;
11079 }
11080
11081
11082 SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11083 PyObject *resultobj = 0;
11084 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11085 bool result;
11086 void *argp1 = 0 ;
11087 int res1 = 0 ;
11088 PyObject *swig_obj[1] ;
11089
11090 if (!args) SWIG_fail;
11091 swig_obj[0] = args;
11092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11093 if (!SWIG_IsOK(res1)) {
11094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11095 }
11096 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11097 {
11098 PyThreadState* __tstate = wxPyBeginAllowThreads();
11099 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11100 wxPyEndAllowThreads(__tstate);
11101 if (PyErr_Occurred()) SWIG_fail;
11102 }
11103 {
11104 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11105 }
11106 return resultobj;
11107 fail:
11108 return NULL;
11109 }
11110
11111
11112 SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11113 PyObject *resultobj = 0;
11114 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11115 bool result;
11116 void *argp1 = 0 ;
11117 int res1 = 0 ;
11118 PyObject *swig_obj[1] ;
11119
11120 if (!args) SWIG_fail;
11121 swig_obj[0] = args;
11122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11123 if (!SWIG_IsOK(res1)) {
11124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11125 }
11126 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11127 {
11128 PyThreadState* __tstate = wxPyBeginAllowThreads();
11129 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11130 wxPyEndAllowThreads(__tstate);
11131 if (PyErr_Occurred()) SWIG_fail;
11132 }
11133 {
11134 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11135 }
11136 return resultobj;
11137 fail:
11138 return NULL;
11139 }
11140
11141
11142 SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11143 PyObject *resultobj = 0;
11144 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11145 long arg2 ;
11146 bool result;
11147 void *argp1 = 0 ;
11148 int res1 = 0 ;
11149 long val2 ;
11150 int ecode2 = 0 ;
11151 PyObject * obj0 = 0 ;
11152 PyObject * obj1 = 0 ;
11153 char * kwnames[] = {
11154 (char *) "self",(char *) "flag", NULL
11155 };
11156
11157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11159 if (!SWIG_IsOK(res1)) {
11160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11161 }
11162 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11163 ecode2 = SWIG_AsVal_long(obj1, &val2);
11164 if (!SWIG_IsOK(ecode2)) {
11165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11166 }
11167 arg2 = static_cast< long >(val2);
11168 {
11169 PyThreadState* __tstate = wxPyBeginAllowThreads();
11170 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11171 wxPyEndAllowThreads(__tstate);
11172 if (PyErr_Occurred()) SWIG_fail;
11173 }
11174 {
11175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11176 }
11177 return resultobj;
11178 fail:
11179 return NULL;
11180 }
11181
11182
11183 SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11184 PyObject *resultobj = 0;
11185 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11186 wxColour *result = 0 ;
11187 void *argp1 = 0 ;
11188 int res1 = 0 ;
11189 PyObject *swig_obj[1] ;
11190
11191 if (!args) SWIG_fail;
11192 swig_obj[0] = args;
11193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11194 if (!SWIG_IsOK(res1)) {
11195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11196 }
11197 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11198 {
11199 PyThreadState* __tstate = wxPyBeginAllowThreads();
11200 {
11201 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11202 result = (wxColour *) &_result_ref;
11203 }
11204 wxPyEndAllowThreads(__tstate);
11205 if (PyErr_Occurred()) SWIG_fail;
11206 }
11207 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11208 return resultobj;
11209 fail:
11210 return NULL;
11211 }
11212
11213
11214 SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11215 PyObject *resultobj = 0;
11216 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11217 wxColour *result = 0 ;
11218 void *argp1 = 0 ;
11219 int res1 = 0 ;
11220 PyObject *swig_obj[1] ;
11221
11222 if (!args) SWIG_fail;
11223 swig_obj[0] = args;
11224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11225 if (!SWIG_IsOK(res1)) {
11226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11227 }
11228 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11229 {
11230 PyThreadState* __tstate = wxPyBeginAllowThreads();
11231 {
11232 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11233 result = (wxColour *) &_result_ref;
11234 }
11235 wxPyEndAllowThreads(__tstate);
11236 if (PyErr_Occurred()) SWIG_fail;
11237 }
11238 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11239 return resultobj;
11240 fail:
11241 return NULL;
11242 }
11243
11244
11245 SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11246 PyObject *resultobj = 0;
11247 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11248 wxFont *result = 0 ;
11249 void *argp1 = 0 ;
11250 int res1 = 0 ;
11251 PyObject *swig_obj[1] ;
11252
11253 if (!args) SWIG_fail;
11254 swig_obj[0] = args;
11255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11256 if (!SWIG_IsOK(res1)) {
11257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11258 }
11259 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11260 {
11261 PyThreadState* __tstate = wxPyBeginAllowThreads();
11262 {
11263 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11264 result = (wxFont *) &_result_ref;
11265 }
11266 wxPyEndAllowThreads(__tstate);
11267 if (PyErr_Occurred()) SWIG_fail;
11268 }
11269 {
11270 wxFont* resultptr = new wxFont(*result);
11271 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11272 }
11273 return resultobj;
11274 fail:
11275 return NULL;
11276 }
11277
11278
11279 SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11280 PyObject *resultobj = 0;
11281 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11282 wxTextAttrAlignment result;
11283 void *argp1 = 0 ;
11284 int res1 = 0 ;
11285 PyObject *swig_obj[1] ;
11286
11287 if (!args) SWIG_fail;
11288 swig_obj[0] = args;
11289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11290 if (!SWIG_IsOK(res1)) {
11291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11292 }
11293 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11294 {
11295 PyThreadState* __tstate = wxPyBeginAllowThreads();
11296 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11297 wxPyEndAllowThreads(__tstate);
11298 if (PyErr_Occurred()) SWIG_fail;
11299 }
11300 resultobj = SWIG_From_int(static_cast< int >(result));
11301 return resultobj;
11302 fail:
11303 return NULL;
11304 }
11305
11306
11307 SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11308 PyObject *resultobj = 0;
11309 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11310 wxArrayInt *result = 0 ;
11311 void *argp1 = 0 ;
11312 int res1 = 0 ;
11313 PyObject *swig_obj[1] ;
11314
11315 if (!args) SWIG_fail;
11316 swig_obj[0] = args;
11317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11318 if (!SWIG_IsOK(res1)) {
11319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11320 }
11321 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11322 {
11323 PyThreadState* __tstate = wxPyBeginAllowThreads();
11324 {
11325 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11326 result = (wxArrayInt *) &_result_ref;
11327 }
11328 wxPyEndAllowThreads(__tstate);
11329 if (PyErr_Occurred()) SWIG_fail;
11330 }
11331 {
11332 resultobj = PyList_New(0);
11333 size_t idx;
11334 for (idx = 0; idx < result->GetCount(); idx += 1) {
11335 PyObject* val = PyInt_FromLong( result->Item(idx) );
11336 PyList_Append(resultobj, val);
11337 Py_DECREF(val);
11338 }
11339 }
11340 return resultobj;
11341 fail:
11342 return NULL;
11343 }
11344
11345
11346 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11347 PyObject *resultobj = 0;
11348 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11349 long result;
11350 void *argp1 = 0 ;
11351 int res1 = 0 ;
11352 PyObject *swig_obj[1] ;
11353
11354 if (!args) SWIG_fail;
11355 swig_obj[0] = args;
11356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11357 if (!SWIG_IsOK(res1)) {
11358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11359 }
11360 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11361 {
11362 PyThreadState* __tstate = wxPyBeginAllowThreads();
11363 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11364 wxPyEndAllowThreads(__tstate);
11365 if (PyErr_Occurred()) SWIG_fail;
11366 }
11367 resultobj = SWIG_From_long(static_cast< long >(result));
11368 return resultobj;
11369 fail:
11370 return NULL;
11371 }
11372
11373
11374 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11375 PyObject *resultobj = 0;
11376 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11377 long result;
11378 void *argp1 = 0 ;
11379 int res1 = 0 ;
11380 PyObject *swig_obj[1] ;
11381
11382 if (!args) SWIG_fail;
11383 swig_obj[0] = args;
11384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11385 if (!SWIG_IsOK(res1)) {
11386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11387 }
11388 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11389 {
11390 PyThreadState* __tstate = wxPyBeginAllowThreads();
11391 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11392 wxPyEndAllowThreads(__tstate);
11393 if (PyErr_Occurred()) SWIG_fail;
11394 }
11395 resultobj = SWIG_From_long(static_cast< long >(result));
11396 return resultobj;
11397 fail:
11398 return NULL;
11399 }
11400
11401
11402 SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11403 PyObject *resultobj = 0;
11404 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11405 long result;
11406 void *argp1 = 0 ;
11407 int res1 = 0 ;
11408 PyObject *swig_obj[1] ;
11409
11410 if (!args) SWIG_fail;
11411 swig_obj[0] = args;
11412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11413 if (!SWIG_IsOK(res1)) {
11414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11415 }
11416 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11417 {
11418 PyThreadState* __tstate = wxPyBeginAllowThreads();
11419 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11420 wxPyEndAllowThreads(__tstate);
11421 if (PyErr_Occurred()) SWIG_fail;
11422 }
11423 resultobj = SWIG_From_long(static_cast< long >(result));
11424 return resultobj;
11425 fail:
11426 return NULL;
11427 }
11428
11429
11430 SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11431 PyObject *resultobj = 0;
11432 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11433 long result;
11434 void *argp1 = 0 ;
11435 int res1 = 0 ;
11436 PyObject *swig_obj[1] ;
11437
11438 if (!args) SWIG_fail;
11439 swig_obj[0] = args;
11440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11441 if (!SWIG_IsOK(res1)) {
11442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11443 }
11444 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11445 {
11446 PyThreadState* __tstate = wxPyBeginAllowThreads();
11447 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11448 wxPyEndAllowThreads(__tstate);
11449 if (PyErr_Occurred()) SWIG_fail;
11450 }
11451 resultobj = SWIG_From_long(static_cast< long >(result));
11452 return resultobj;
11453 fail:
11454 return NULL;
11455 }
11456
11457
11458 SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11459 PyObject *resultobj = 0;
11460 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11461 bool result;
11462 void *argp1 = 0 ;
11463 int res1 = 0 ;
11464 PyObject *swig_obj[1] ;
11465
11466 if (!args) SWIG_fail;
11467 swig_obj[0] = args;
11468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11469 if (!SWIG_IsOK(res1)) {
11470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11471 }
11472 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11473 {
11474 PyThreadState* __tstate = wxPyBeginAllowThreads();
11475 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11476 wxPyEndAllowThreads(__tstate);
11477 if (PyErr_Occurred()) SWIG_fail;
11478 }
11479 {
11480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11481 }
11482 return resultobj;
11483 fail:
11484 return NULL;
11485 }
11486
11487
11488 SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11489 PyObject *resultobj = 0;
11490 wxTextAttr *arg1 = 0 ;
11491 wxTextAttr *arg2 = 0 ;
11492 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11493 wxTextAttr result;
11494 void *argp1 = 0 ;
11495 int res1 = 0 ;
11496 void *argp2 = 0 ;
11497 int res2 = 0 ;
11498 void *argp3 = 0 ;
11499 int res3 = 0 ;
11500 PyObject * obj0 = 0 ;
11501 PyObject * obj1 = 0 ;
11502 PyObject * obj2 = 0 ;
11503 char * kwnames[] = {
11504 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11505 };
11506
11507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11508 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11509 if (!SWIG_IsOK(res1)) {
11510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11511 }
11512 if (!argp1) {
11513 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11514 }
11515 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11516 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11517 if (!SWIG_IsOK(res2)) {
11518 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11519 }
11520 if (!argp2) {
11521 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11522 }
11523 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11524 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11525 if (!SWIG_IsOK(res3)) {
11526 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11527 }
11528 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11529 {
11530 PyThreadState* __tstate = wxPyBeginAllowThreads();
11531 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11532 wxPyEndAllowThreads(__tstate);
11533 if (PyErr_Occurred()) SWIG_fail;
11534 }
11535 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11536 return resultobj;
11537 fail:
11538 return NULL;
11539 }
11540
11541
11542 SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11543 PyObject *obj;
11544 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11545 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11546 return SWIG_Py_Void();
11547 }
11548
11549 SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11550 return SWIG_Python_InitShadowInstance(args);
11551 }
11552
11553 SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11554 PyObject *resultobj = 0;
11555 wxWindow *arg1 = (wxWindow *) 0 ;
11556 int arg2 = (int) -1 ;
11557 wxString const &arg3_defvalue = wxPyEmptyString ;
11558 wxString *arg3 = (wxString *) &arg3_defvalue ;
11559 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11560 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11561 wxSize const &arg5_defvalue = wxDefaultSize ;
11562 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11563 long arg6 = (long) 0 ;
11564 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11565 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11566 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11567 wxString *arg8 = (wxString *) &arg8_defvalue ;
11568 wxTextCtrl *result = 0 ;
11569 void *argp1 = 0 ;
11570 int res1 = 0 ;
11571 int val2 ;
11572 int ecode2 = 0 ;
11573 bool temp3 = false ;
11574 wxPoint temp4 ;
11575 wxSize temp5 ;
11576 long val6 ;
11577 int ecode6 = 0 ;
11578 void *argp7 = 0 ;
11579 int res7 = 0 ;
11580 bool temp8 = false ;
11581 PyObject * obj0 = 0 ;
11582 PyObject * obj1 = 0 ;
11583 PyObject * obj2 = 0 ;
11584 PyObject * obj3 = 0 ;
11585 PyObject * obj4 = 0 ;
11586 PyObject * obj5 = 0 ;
11587 PyObject * obj6 = 0 ;
11588 PyObject * obj7 = 0 ;
11589 char * kwnames[] = {
11590 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11591 };
11592
11593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11595 if (!SWIG_IsOK(res1)) {
11596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11597 }
11598 arg1 = reinterpret_cast< wxWindow * >(argp1);
11599 if (obj1) {
11600 ecode2 = SWIG_AsVal_int(obj1, &val2);
11601 if (!SWIG_IsOK(ecode2)) {
11602 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11603 }
11604 arg2 = static_cast< int >(val2);
11605 }
11606 if (obj2) {
11607 {
11608 arg3 = wxString_in_helper(obj2);
11609 if (arg3 == NULL) SWIG_fail;
11610 temp3 = true;
11611 }
11612 }
11613 if (obj3) {
11614 {
11615 arg4 = &temp4;
11616 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11617 }
11618 }
11619 if (obj4) {
11620 {
11621 arg5 = &temp5;
11622 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11623 }
11624 }
11625 if (obj5) {
11626 ecode6 = SWIG_AsVal_long(obj5, &val6);
11627 if (!SWIG_IsOK(ecode6)) {
11628 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11629 }
11630 arg6 = static_cast< long >(val6);
11631 }
11632 if (obj6) {
11633 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11634 if (!SWIG_IsOK(res7)) {
11635 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11636 }
11637 if (!argp7) {
11638 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11639 }
11640 arg7 = reinterpret_cast< wxValidator * >(argp7);
11641 }
11642 if (obj7) {
11643 {
11644 arg8 = wxString_in_helper(obj7);
11645 if (arg8 == NULL) SWIG_fail;
11646 temp8 = true;
11647 }
11648 }
11649 {
11650 if (!wxPyCheckForApp()) SWIG_fail;
11651 PyThreadState* __tstate = wxPyBeginAllowThreads();
11652 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11653 wxPyEndAllowThreads(__tstate);
11654 if (PyErr_Occurred()) SWIG_fail;
11655 }
11656 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11657 {
11658 if (temp3)
11659 delete arg3;
11660 }
11661 {
11662 if (temp8)
11663 delete arg8;
11664 }
11665 return resultobj;
11666 fail:
11667 {
11668 if (temp3)
11669 delete arg3;
11670 }
11671 {
11672 if (temp8)
11673 delete arg8;
11674 }
11675 return NULL;
11676 }
11677
11678
11679 SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11680 PyObject *resultobj = 0;
11681 wxTextCtrl *result = 0 ;
11682
11683 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11684 {
11685 if (!wxPyCheckForApp()) SWIG_fail;
11686 PyThreadState* __tstate = wxPyBeginAllowThreads();
11687 result = (wxTextCtrl *)new wxTextCtrl();
11688 wxPyEndAllowThreads(__tstate);
11689 if (PyErr_Occurred()) SWIG_fail;
11690 }
11691 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11692 return resultobj;
11693 fail:
11694 return NULL;
11695 }
11696
11697
11698 SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11699 PyObject *resultobj = 0;
11700 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11701 wxWindow *arg2 = (wxWindow *) 0 ;
11702 int arg3 = (int) -1 ;
11703 wxString const &arg4_defvalue = wxPyEmptyString ;
11704 wxString *arg4 = (wxString *) &arg4_defvalue ;
11705 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11706 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11707 wxSize const &arg6_defvalue = wxDefaultSize ;
11708 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11709 long arg7 = (long) 0 ;
11710 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11711 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11712 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11713 wxString *arg9 = (wxString *) &arg9_defvalue ;
11714 bool result;
11715 void *argp1 = 0 ;
11716 int res1 = 0 ;
11717 void *argp2 = 0 ;
11718 int res2 = 0 ;
11719 int val3 ;
11720 int ecode3 = 0 ;
11721 bool temp4 = false ;
11722 wxPoint temp5 ;
11723 wxSize temp6 ;
11724 long val7 ;
11725 int ecode7 = 0 ;
11726 void *argp8 = 0 ;
11727 int res8 = 0 ;
11728 bool temp9 = false ;
11729 PyObject * obj0 = 0 ;
11730 PyObject * obj1 = 0 ;
11731 PyObject * obj2 = 0 ;
11732 PyObject * obj3 = 0 ;
11733 PyObject * obj4 = 0 ;
11734 PyObject * obj5 = 0 ;
11735 PyObject * obj6 = 0 ;
11736 PyObject * obj7 = 0 ;
11737 PyObject * obj8 = 0 ;
11738 char * kwnames[] = {
11739 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11740 };
11741
11742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11744 if (!SWIG_IsOK(res1)) {
11745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11746 }
11747 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11748 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11749 if (!SWIG_IsOK(res2)) {
11750 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11751 }
11752 arg2 = reinterpret_cast< wxWindow * >(argp2);
11753 if (obj2) {
11754 ecode3 = SWIG_AsVal_int(obj2, &val3);
11755 if (!SWIG_IsOK(ecode3)) {
11756 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11757 }
11758 arg3 = static_cast< int >(val3);
11759 }
11760 if (obj3) {
11761 {
11762 arg4 = wxString_in_helper(obj3);
11763 if (arg4 == NULL) SWIG_fail;
11764 temp4 = true;
11765 }
11766 }
11767 if (obj4) {
11768 {
11769 arg5 = &temp5;
11770 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11771 }
11772 }
11773 if (obj5) {
11774 {
11775 arg6 = &temp6;
11776 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11777 }
11778 }
11779 if (obj6) {
11780 ecode7 = SWIG_AsVal_long(obj6, &val7);
11781 if (!SWIG_IsOK(ecode7)) {
11782 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11783 }
11784 arg7 = static_cast< long >(val7);
11785 }
11786 if (obj7) {
11787 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11788 if (!SWIG_IsOK(res8)) {
11789 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11790 }
11791 if (!argp8) {
11792 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11793 }
11794 arg8 = reinterpret_cast< wxValidator * >(argp8);
11795 }
11796 if (obj8) {
11797 {
11798 arg9 = wxString_in_helper(obj8);
11799 if (arg9 == NULL) SWIG_fail;
11800 temp9 = true;
11801 }
11802 }
11803 {
11804 PyThreadState* __tstate = wxPyBeginAllowThreads();
11805 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11806 wxPyEndAllowThreads(__tstate);
11807 if (PyErr_Occurred()) SWIG_fail;
11808 }
11809 {
11810 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11811 }
11812 {
11813 if (temp4)
11814 delete arg4;
11815 }
11816 {
11817 if (temp9)
11818 delete arg9;
11819 }
11820 return resultobj;
11821 fail:
11822 {
11823 if (temp4)
11824 delete arg4;
11825 }
11826 {
11827 if (temp9)
11828 delete arg9;
11829 }
11830 return NULL;
11831 }
11832
11833
11834 SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11835 PyObject *resultobj = 0;
11836 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11837 wxString result;
11838 void *argp1 = 0 ;
11839 int res1 = 0 ;
11840 PyObject *swig_obj[1] ;
11841
11842 if (!args) SWIG_fail;
11843 swig_obj[0] = args;
11844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11845 if (!SWIG_IsOK(res1)) {
11846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11847 }
11848 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11849 {
11850 PyThreadState* __tstate = wxPyBeginAllowThreads();
11851 result = ((wxTextCtrl const *)arg1)->GetValue();
11852 wxPyEndAllowThreads(__tstate);
11853 if (PyErr_Occurred()) SWIG_fail;
11854 }
11855 {
11856 #if wxUSE_UNICODE
11857 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11858 #else
11859 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11860 #endif
11861 }
11862 return resultobj;
11863 fail:
11864 return NULL;
11865 }
11866
11867
11868 SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11869 PyObject *resultobj = 0;
11870 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11871 wxString *arg2 = 0 ;
11872 void *argp1 = 0 ;
11873 int res1 = 0 ;
11874 bool temp2 = false ;
11875 PyObject * obj0 = 0 ;
11876 PyObject * obj1 = 0 ;
11877 char * kwnames[] = {
11878 (char *) "self",(char *) "value", NULL
11879 };
11880
11881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11883 if (!SWIG_IsOK(res1)) {
11884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11885 }
11886 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11887 {
11888 arg2 = wxString_in_helper(obj1);
11889 if (arg2 == NULL) SWIG_fail;
11890 temp2 = true;
11891 }
11892 {
11893 PyThreadState* __tstate = wxPyBeginAllowThreads();
11894 (arg1)->SetValue((wxString const &)*arg2);
11895 wxPyEndAllowThreads(__tstate);
11896 if (PyErr_Occurred()) SWIG_fail;
11897 }
11898 resultobj = SWIG_Py_Void();
11899 {
11900 if (temp2)
11901 delete arg2;
11902 }
11903 return resultobj;
11904 fail:
11905 {
11906 if (temp2)
11907 delete arg2;
11908 }
11909 return NULL;
11910 }
11911
11912
11913 SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11914 PyObject *resultobj = 0;
11915 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11916 long arg2 ;
11917 long arg3 ;
11918 wxString result;
11919 void *argp1 = 0 ;
11920 int res1 = 0 ;
11921 long val2 ;
11922 int ecode2 = 0 ;
11923 long val3 ;
11924 int ecode3 = 0 ;
11925 PyObject * obj0 = 0 ;
11926 PyObject * obj1 = 0 ;
11927 PyObject * obj2 = 0 ;
11928 char * kwnames[] = {
11929 (char *) "self",(char *) "from",(char *) "to", NULL
11930 };
11931
11932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11934 if (!SWIG_IsOK(res1)) {
11935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11936 }
11937 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11938 ecode2 = SWIG_AsVal_long(obj1, &val2);
11939 if (!SWIG_IsOK(ecode2)) {
11940 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11941 }
11942 arg2 = static_cast< long >(val2);
11943 ecode3 = SWIG_AsVal_long(obj2, &val3);
11944 if (!SWIG_IsOK(ecode3)) {
11945 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
11946 }
11947 arg3 = static_cast< long >(val3);
11948 {
11949 PyThreadState* __tstate = wxPyBeginAllowThreads();
11950 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
11951 wxPyEndAllowThreads(__tstate);
11952 if (PyErr_Occurred()) SWIG_fail;
11953 }
11954 {
11955 #if wxUSE_UNICODE
11956 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11957 #else
11958 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11959 #endif
11960 }
11961 return resultobj;
11962 fail:
11963 return NULL;
11964 }
11965
11966
11967 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11968 PyObject *resultobj = 0;
11969 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11970 long arg2 ;
11971 int result;
11972 void *argp1 = 0 ;
11973 int res1 = 0 ;
11974 long val2 ;
11975 int ecode2 = 0 ;
11976 PyObject * obj0 = 0 ;
11977 PyObject * obj1 = 0 ;
11978 char * kwnames[] = {
11979 (char *) "self",(char *) "lineNo", NULL
11980 };
11981
11982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
11983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11984 if (!SWIG_IsOK(res1)) {
11985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11986 }
11987 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11988 ecode2 = SWIG_AsVal_long(obj1, &val2);
11989 if (!SWIG_IsOK(ecode2)) {
11990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
11991 }
11992 arg2 = static_cast< long >(val2);
11993 {
11994 PyThreadState* __tstate = wxPyBeginAllowThreads();
11995 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
11996 wxPyEndAllowThreads(__tstate);
11997 if (PyErr_Occurred()) SWIG_fail;
11998 }
11999 resultobj = SWIG_From_int(static_cast< int >(result));
12000 return resultobj;
12001 fail:
12002 return NULL;
12003 }
12004
12005
12006 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12007 PyObject *resultobj = 0;
12008 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12009 long arg2 ;
12010 wxString result;
12011 void *argp1 = 0 ;
12012 int res1 = 0 ;
12013 long val2 ;
12014 int ecode2 = 0 ;
12015 PyObject * obj0 = 0 ;
12016 PyObject * obj1 = 0 ;
12017 char * kwnames[] = {
12018 (char *) "self",(char *) "lineNo", NULL
12019 };
12020
12021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12023 if (!SWIG_IsOK(res1)) {
12024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12025 }
12026 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12027 ecode2 = SWIG_AsVal_long(obj1, &val2);
12028 if (!SWIG_IsOK(ecode2)) {
12029 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12030 }
12031 arg2 = static_cast< long >(val2);
12032 {
12033 PyThreadState* __tstate = wxPyBeginAllowThreads();
12034 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12035 wxPyEndAllowThreads(__tstate);
12036 if (PyErr_Occurred()) SWIG_fail;
12037 }
12038 {
12039 #if wxUSE_UNICODE
12040 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12041 #else
12042 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12043 #endif
12044 }
12045 return resultobj;
12046 fail:
12047 return NULL;
12048 }
12049
12050
12051 SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12052 PyObject *resultobj = 0;
12053 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12054 int result;
12055 void *argp1 = 0 ;
12056 int res1 = 0 ;
12057 PyObject *swig_obj[1] ;
12058
12059 if (!args) SWIG_fail;
12060 swig_obj[0] = args;
12061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12062 if (!SWIG_IsOK(res1)) {
12063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12064 }
12065 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12066 {
12067 PyThreadState* __tstate = wxPyBeginAllowThreads();
12068 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12069 wxPyEndAllowThreads(__tstate);
12070 if (PyErr_Occurred()) SWIG_fail;
12071 }
12072 resultobj = SWIG_From_int(static_cast< int >(result));
12073 return resultobj;
12074 fail:
12075 return NULL;
12076 }
12077
12078
12079 SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12080 PyObject *resultobj = 0;
12081 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12082 bool result;
12083 void *argp1 = 0 ;
12084 int res1 = 0 ;
12085 PyObject *swig_obj[1] ;
12086
12087 if (!args) SWIG_fail;
12088 swig_obj[0] = args;
12089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12090 if (!SWIG_IsOK(res1)) {
12091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12092 }
12093 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12094 {
12095 PyThreadState* __tstate = wxPyBeginAllowThreads();
12096 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12097 wxPyEndAllowThreads(__tstate);
12098 if (PyErr_Occurred()) SWIG_fail;
12099 }
12100 {
12101 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12102 }
12103 return resultobj;
12104 fail:
12105 return NULL;
12106 }
12107
12108
12109 SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12110 PyObject *resultobj = 0;
12111 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12112 bool result;
12113 void *argp1 = 0 ;
12114 int res1 = 0 ;
12115 PyObject *swig_obj[1] ;
12116
12117 if (!args) SWIG_fail;
12118 swig_obj[0] = args;
12119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12120 if (!SWIG_IsOK(res1)) {
12121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12122 }
12123 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12124 {
12125 PyThreadState* __tstate = wxPyBeginAllowThreads();
12126 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12127 wxPyEndAllowThreads(__tstate);
12128 if (PyErr_Occurred()) SWIG_fail;
12129 }
12130 {
12131 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12132 }
12133 return resultobj;
12134 fail:
12135 return NULL;
12136 }
12137
12138
12139 SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12140 PyObject *resultobj = 0;
12141 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12142 bool result;
12143 void *argp1 = 0 ;
12144 int res1 = 0 ;
12145 PyObject *swig_obj[1] ;
12146
12147 if (!args) SWIG_fail;
12148 swig_obj[0] = args;
12149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12150 if (!SWIG_IsOK(res1)) {
12151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12152 }
12153 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12154 {
12155 PyThreadState* __tstate = wxPyBeginAllowThreads();
12156 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12157 wxPyEndAllowThreads(__tstate);
12158 if (PyErr_Occurred()) SWIG_fail;
12159 }
12160 {
12161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12162 }
12163 return resultobj;
12164 fail:
12165 return NULL;
12166 }
12167
12168
12169 SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12170 PyObject *resultobj = 0;
12171 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12172 bool result;
12173 void *argp1 = 0 ;
12174 int res1 = 0 ;
12175 PyObject *swig_obj[1] ;
12176
12177 if (!args) SWIG_fail;
12178 swig_obj[0] = args;
12179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12180 if (!SWIG_IsOK(res1)) {
12181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12182 }
12183 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12184 {
12185 PyThreadState* __tstate = wxPyBeginAllowThreads();
12186 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12187 wxPyEndAllowThreads(__tstate);
12188 if (PyErr_Occurred()) SWIG_fail;
12189 }
12190 {
12191 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12192 }
12193 return resultobj;
12194 fail:
12195 return NULL;
12196 }
12197
12198
12199 SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12200 PyObject *resultobj = 0;
12201 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12202 long *arg2 = (long *) 0 ;
12203 long *arg3 = (long *) 0 ;
12204 void *argp1 = 0 ;
12205 int res1 = 0 ;
12206 long temp2 ;
12207 int res2 = SWIG_TMPOBJ ;
12208 long temp3 ;
12209 int res3 = SWIG_TMPOBJ ;
12210 PyObject *swig_obj[1] ;
12211
12212 arg2 = &temp2;
12213 arg3 = &temp3;
12214 if (!args) SWIG_fail;
12215 swig_obj[0] = args;
12216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12217 if (!SWIG_IsOK(res1)) {
12218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12219 }
12220 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12221 {
12222 PyThreadState* __tstate = wxPyBeginAllowThreads();
12223 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12224 wxPyEndAllowThreads(__tstate);
12225 if (PyErr_Occurred()) SWIG_fail;
12226 }
12227 resultobj = SWIG_Py_Void();
12228 if (SWIG_IsTmpObj(res2)) {
12229 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12230 } else {
12231 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12232 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12233 }
12234 if (SWIG_IsTmpObj(res3)) {
12235 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12236 } else {
12237 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12238 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12239 }
12240 return resultobj;
12241 fail:
12242 return NULL;
12243 }
12244
12245
12246 SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12247 PyObject *resultobj = 0;
12248 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12249 wxString result;
12250 void *argp1 = 0 ;
12251 int res1 = 0 ;
12252 PyObject *swig_obj[1] ;
12253
12254 if (!args) SWIG_fail;
12255 swig_obj[0] = args;
12256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12257 if (!SWIG_IsOK(res1)) {
12258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12259 }
12260 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12261 {
12262 PyThreadState* __tstate = wxPyBeginAllowThreads();
12263 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12264 wxPyEndAllowThreads(__tstate);
12265 if (PyErr_Occurred()) SWIG_fail;
12266 }
12267 {
12268 #if wxUSE_UNICODE
12269 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12270 #else
12271 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12272 #endif
12273 }
12274 return resultobj;
12275 fail:
12276 return NULL;
12277 }
12278
12279
12280 SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12281 PyObject *resultobj = 0;
12282 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12283 void *argp1 = 0 ;
12284 int res1 = 0 ;
12285 PyObject *swig_obj[1] ;
12286
12287 if (!args) SWIG_fail;
12288 swig_obj[0] = args;
12289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12290 if (!SWIG_IsOK(res1)) {
12291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12292 }
12293 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12294 {
12295 PyThreadState* __tstate = wxPyBeginAllowThreads();
12296 (arg1)->Clear();
12297 wxPyEndAllowThreads(__tstate);
12298 if (PyErr_Occurred()) SWIG_fail;
12299 }
12300 resultobj = SWIG_Py_Void();
12301 return resultobj;
12302 fail:
12303 return NULL;
12304 }
12305
12306
12307 SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12308 PyObject *resultobj = 0;
12309 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12310 long arg2 ;
12311 long arg3 ;
12312 wxString *arg4 = 0 ;
12313 void *argp1 = 0 ;
12314 int res1 = 0 ;
12315 long val2 ;
12316 int ecode2 = 0 ;
12317 long val3 ;
12318 int ecode3 = 0 ;
12319 bool temp4 = false ;
12320 PyObject * obj0 = 0 ;
12321 PyObject * obj1 = 0 ;
12322 PyObject * obj2 = 0 ;
12323 PyObject * obj3 = 0 ;
12324 char * kwnames[] = {
12325 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
12326 };
12327
12328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) 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_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12332 }
12333 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12334 ecode2 = SWIG_AsVal_long(obj1, &val2);
12335 if (!SWIG_IsOK(ecode2)) {
12336 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12337 }
12338 arg2 = static_cast< long >(val2);
12339 ecode3 = SWIG_AsVal_long(obj2, &val3);
12340 if (!SWIG_IsOK(ecode3)) {
12341 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12342 }
12343 arg3 = static_cast< long >(val3);
12344 {
12345 arg4 = wxString_in_helper(obj3);
12346 if (arg4 == NULL) SWIG_fail;
12347 temp4 = true;
12348 }
12349 {
12350 PyThreadState* __tstate = wxPyBeginAllowThreads();
12351 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12352 wxPyEndAllowThreads(__tstate);
12353 if (PyErr_Occurred()) SWIG_fail;
12354 }
12355 resultobj = SWIG_Py_Void();
12356 {
12357 if (temp4)
12358 delete arg4;
12359 }
12360 return resultobj;
12361 fail:
12362 {
12363 if (temp4)
12364 delete arg4;
12365 }
12366 return NULL;
12367 }
12368
12369
12370 SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12371 PyObject *resultobj = 0;
12372 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12373 long arg2 ;
12374 long arg3 ;
12375 void *argp1 = 0 ;
12376 int res1 = 0 ;
12377 long val2 ;
12378 int ecode2 = 0 ;
12379 long val3 ;
12380 int ecode3 = 0 ;
12381 PyObject * obj0 = 0 ;
12382 PyObject * obj1 = 0 ;
12383 PyObject * obj2 = 0 ;
12384 char * kwnames[] = {
12385 (char *) "self",(char *) "from",(char *) "to", NULL
12386 };
12387
12388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12390 if (!SWIG_IsOK(res1)) {
12391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12392 }
12393 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12394 ecode2 = SWIG_AsVal_long(obj1, &val2);
12395 if (!SWIG_IsOK(ecode2)) {
12396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12397 }
12398 arg2 = static_cast< long >(val2);
12399 ecode3 = SWIG_AsVal_long(obj2, &val3);
12400 if (!SWIG_IsOK(ecode3)) {
12401 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12402 }
12403 arg3 = static_cast< long >(val3);
12404 {
12405 PyThreadState* __tstate = wxPyBeginAllowThreads();
12406 (arg1)->Remove(arg2,arg3);
12407 wxPyEndAllowThreads(__tstate);
12408 if (PyErr_Occurred()) SWIG_fail;
12409 }
12410 resultobj = SWIG_Py_Void();
12411 return resultobj;
12412 fail:
12413 return NULL;
12414 }
12415
12416
12417 SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12418 PyObject *resultobj = 0;
12419 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12420 wxString *arg2 = 0 ;
12421 bool result;
12422 void *argp1 = 0 ;
12423 int res1 = 0 ;
12424 bool temp2 = false ;
12425 PyObject * obj0 = 0 ;
12426 PyObject * obj1 = 0 ;
12427 char * kwnames[] = {
12428 (char *) "self",(char *) "file", NULL
12429 };
12430
12431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) SWIG_fail;
12432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12433 if (!SWIG_IsOK(res1)) {
12434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12435 }
12436 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12437 {
12438 arg2 = wxString_in_helper(obj1);
12439 if (arg2 == NULL) SWIG_fail;
12440 temp2 = true;
12441 }
12442 {
12443 PyThreadState* __tstate = wxPyBeginAllowThreads();
12444 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
12445 wxPyEndAllowThreads(__tstate);
12446 if (PyErr_Occurred()) SWIG_fail;
12447 }
12448 {
12449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12450 }
12451 {
12452 if (temp2)
12453 delete arg2;
12454 }
12455 return resultobj;
12456 fail:
12457 {
12458 if (temp2)
12459 delete arg2;
12460 }
12461 return NULL;
12462 }
12463
12464
12465 SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12466 PyObject *resultobj = 0;
12467 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12468 wxString const &arg2_defvalue = wxPyEmptyString ;
12469 wxString *arg2 = (wxString *) &arg2_defvalue ;
12470 bool result;
12471 void *argp1 = 0 ;
12472 int res1 = 0 ;
12473 bool temp2 = false ;
12474 PyObject * obj0 = 0 ;
12475 PyObject * obj1 = 0 ;
12476 char * kwnames[] = {
12477 (char *) "self",(char *) "file", NULL
12478 };
12479
12480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) SWIG_fail;
12481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12482 if (!SWIG_IsOK(res1)) {
12483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12484 }
12485 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12486 if (obj1) {
12487 {
12488 arg2 = wxString_in_helper(obj1);
12489 if (arg2 == NULL) SWIG_fail;
12490 temp2 = true;
12491 }
12492 }
12493 {
12494 PyThreadState* __tstate = wxPyBeginAllowThreads();
12495 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
12496 wxPyEndAllowThreads(__tstate);
12497 if (PyErr_Occurred()) SWIG_fail;
12498 }
12499 {
12500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12501 }
12502 {
12503 if (temp2)
12504 delete arg2;
12505 }
12506 return resultobj;
12507 fail:
12508 {
12509 if (temp2)
12510 delete arg2;
12511 }
12512 return NULL;
12513 }
12514
12515
12516 SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12517 PyObject *resultobj = 0;
12518 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12519 void *argp1 = 0 ;
12520 int res1 = 0 ;
12521 PyObject *swig_obj[1] ;
12522
12523 if (!args) SWIG_fail;
12524 swig_obj[0] = args;
12525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12526 if (!SWIG_IsOK(res1)) {
12527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12528 }
12529 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12530 {
12531 PyThreadState* __tstate = wxPyBeginAllowThreads();
12532 (arg1)->MarkDirty();
12533 wxPyEndAllowThreads(__tstate);
12534 if (PyErr_Occurred()) SWIG_fail;
12535 }
12536 resultobj = SWIG_Py_Void();
12537 return resultobj;
12538 fail:
12539 return NULL;
12540 }
12541
12542
12543 SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12544 PyObject *resultobj = 0;
12545 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12546 void *argp1 = 0 ;
12547 int res1 = 0 ;
12548 PyObject *swig_obj[1] ;
12549
12550 if (!args) SWIG_fail;
12551 swig_obj[0] = args;
12552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12553 if (!SWIG_IsOK(res1)) {
12554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12555 }
12556 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12557 {
12558 PyThreadState* __tstate = wxPyBeginAllowThreads();
12559 (arg1)->DiscardEdits();
12560 wxPyEndAllowThreads(__tstate);
12561 if (PyErr_Occurred()) SWIG_fail;
12562 }
12563 resultobj = SWIG_Py_Void();
12564 return resultobj;
12565 fail:
12566 return NULL;
12567 }
12568
12569
12570 SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12571 PyObject *resultobj = 0;
12572 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12573 unsigned long arg2 ;
12574 void *argp1 = 0 ;
12575 int res1 = 0 ;
12576 unsigned long val2 ;
12577 int ecode2 = 0 ;
12578 PyObject * obj0 = 0 ;
12579 PyObject * obj1 = 0 ;
12580 char * kwnames[] = {
12581 (char *) "self",(char *) "len", NULL
12582 };
12583
12584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12586 if (!SWIG_IsOK(res1)) {
12587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12588 }
12589 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12590 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12591 if (!SWIG_IsOK(ecode2)) {
12592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12593 }
12594 arg2 = static_cast< unsigned long >(val2);
12595 {
12596 PyThreadState* __tstate = wxPyBeginAllowThreads();
12597 (arg1)->SetMaxLength(arg2);
12598 wxPyEndAllowThreads(__tstate);
12599 if (PyErr_Occurred()) SWIG_fail;
12600 }
12601 resultobj = SWIG_Py_Void();
12602 return resultobj;
12603 fail:
12604 return NULL;
12605 }
12606
12607
12608 SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12609 PyObject *resultobj = 0;
12610 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12611 wxString *arg2 = 0 ;
12612 void *argp1 = 0 ;
12613 int res1 = 0 ;
12614 bool temp2 = false ;
12615 PyObject * obj0 = 0 ;
12616 PyObject * obj1 = 0 ;
12617 char * kwnames[] = {
12618 (char *) "self",(char *) "text", NULL
12619 };
12620
12621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12623 if (!SWIG_IsOK(res1)) {
12624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12625 }
12626 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12627 {
12628 arg2 = wxString_in_helper(obj1);
12629 if (arg2 == NULL) SWIG_fail;
12630 temp2 = true;
12631 }
12632 {
12633 PyThreadState* __tstate = wxPyBeginAllowThreads();
12634 (arg1)->WriteText((wxString const &)*arg2);
12635 wxPyEndAllowThreads(__tstate);
12636 if (PyErr_Occurred()) SWIG_fail;
12637 }
12638 resultobj = SWIG_Py_Void();
12639 {
12640 if (temp2)
12641 delete arg2;
12642 }
12643 return resultobj;
12644 fail:
12645 {
12646 if (temp2)
12647 delete arg2;
12648 }
12649 return NULL;
12650 }
12651
12652
12653 SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12654 PyObject *resultobj = 0;
12655 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12656 wxString *arg2 = 0 ;
12657 void *argp1 = 0 ;
12658 int res1 = 0 ;
12659 bool temp2 = false ;
12660 PyObject * obj0 = 0 ;
12661 PyObject * obj1 = 0 ;
12662 char * kwnames[] = {
12663 (char *) "self",(char *) "text", NULL
12664 };
12665
12666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12668 if (!SWIG_IsOK(res1)) {
12669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12670 }
12671 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12672 {
12673 arg2 = wxString_in_helper(obj1);
12674 if (arg2 == NULL) SWIG_fail;
12675 temp2 = true;
12676 }
12677 {
12678 PyThreadState* __tstate = wxPyBeginAllowThreads();
12679 (arg1)->AppendText((wxString const &)*arg2);
12680 wxPyEndAllowThreads(__tstate);
12681 if (PyErr_Occurred()) SWIG_fail;
12682 }
12683 resultobj = SWIG_Py_Void();
12684 {
12685 if (temp2)
12686 delete arg2;
12687 }
12688 return resultobj;
12689 fail:
12690 {
12691 if (temp2)
12692 delete arg2;
12693 }
12694 return NULL;
12695 }
12696
12697
12698 SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12699 PyObject *resultobj = 0;
12700 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12701 wxKeyEvent *arg2 = 0 ;
12702 bool result;
12703 void *argp1 = 0 ;
12704 int res1 = 0 ;
12705 void *argp2 = 0 ;
12706 int res2 = 0 ;
12707 PyObject * obj0 = 0 ;
12708 PyObject * obj1 = 0 ;
12709 char * kwnames[] = {
12710 (char *) "self",(char *) "event", NULL
12711 };
12712
12713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12715 if (!SWIG_IsOK(res1)) {
12716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12717 }
12718 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12719 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12720 if (!SWIG_IsOK(res2)) {
12721 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12722 }
12723 if (!argp2) {
12724 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12725 }
12726 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12727 {
12728 PyThreadState* __tstate = wxPyBeginAllowThreads();
12729 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12730 wxPyEndAllowThreads(__tstate);
12731 if (PyErr_Occurred()) SWIG_fail;
12732 }
12733 {
12734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12735 }
12736 return resultobj;
12737 fail:
12738 return NULL;
12739 }
12740
12741
12742 SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12743 PyObject *resultobj = 0;
12744 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12745 long arg2 ;
12746 long arg3 ;
12747 wxTextAttr *arg4 = 0 ;
12748 bool result;
12749 void *argp1 = 0 ;
12750 int res1 = 0 ;
12751 long val2 ;
12752 int ecode2 = 0 ;
12753 long val3 ;
12754 int ecode3 = 0 ;
12755 void *argp4 = 0 ;
12756 int res4 = 0 ;
12757 PyObject * obj0 = 0 ;
12758 PyObject * obj1 = 0 ;
12759 PyObject * obj2 = 0 ;
12760 PyObject * obj3 = 0 ;
12761 char * kwnames[] = {
12762 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12763 };
12764
12765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12767 if (!SWIG_IsOK(res1)) {
12768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12769 }
12770 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12771 ecode2 = SWIG_AsVal_long(obj1, &val2);
12772 if (!SWIG_IsOK(ecode2)) {
12773 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12774 }
12775 arg2 = static_cast< long >(val2);
12776 ecode3 = SWIG_AsVal_long(obj2, &val3);
12777 if (!SWIG_IsOK(ecode3)) {
12778 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12779 }
12780 arg3 = static_cast< long >(val3);
12781 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12782 if (!SWIG_IsOK(res4)) {
12783 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12784 }
12785 if (!argp4) {
12786 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12787 }
12788 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12789 {
12790 PyThreadState* __tstate = wxPyBeginAllowThreads();
12791 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12792 wxPyEndAllowThreads(__tstate);
12793 if (PyErr_Occurred()) SWIG_fail;
12794 }
12795 {
12796 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12797 }
12798 return resultobj;
12799 fail:
12800 return NULL;
12801 }
12802
12803
12804 SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12805 PyObject *resultobj = 0;
12806 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12807 long arg2 ;
12808 wxTextAttr *arg3 = 0 ;
12809 bool result;
12810 void *argp1 = 0 ;
12811 int res1 = 0 ;
12812 long val2 ;
12813 int ecode2 = 0 ;
12814 void *argp3 = 0 ;
12815 int res3 = 0 ;
12816 PyObject * obj0 = 0 ;
12817 PyObject * obj1 = 0 ;
12818 PyObject * obj2 = 0 ;
12819 char * kwnames[] = {
12820 (char *) "self",(char *) "position",(char *) "style", NULL
12821 };
12822
12823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12825 if (!SWIG_IsOK(res1)) {
12826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12827 }
12828 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12829 ecode2 = SWIG_AsVal_long(obj1, &val2);
12830 if (!SWIG_IsOK(ecode2)) {
12831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12832 }
12833 arg2 = static_cast< long >(val2);
12834 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12835 if (!SWIG_IsOK(res3)) {
12836 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12837 }
12838 if (!argp3) {
12839 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12840 }
12841 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12842 {
12843 PyThreadState* __tstate = wxPyBeginAllowThreads();
12844 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12845 wxPyEndAllowThreads(__tstate);
12846 if (PyErr_Occurred()) SWIG_fail;
12847 }
12848 {
12849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12850 }
12851 return resultobj;
12852 fail:
12853 return NULL;
12854 }
12855
12856
12857 SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12858 PyObject *resultobj = 0;
12859 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12860 wxTextAttr *arg2 = 0 ;
12861 bool result;
12862 void *argp1 = 0 ;
12863 int res1 = 0 ;
12864 void *argp2 = 0 ;
12865 int res2 = 0 ;
12866 PyObject * obj0 = 0 ;
12867 PyObject * obj1 = 0 ;
12868 char * kwnames[] = {
12869 (char *) "self",(char *) "style", NULL
12870 };
12871
12872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12874 if (!SWIG_IsOK(res1)) {
12875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12876 }
12877 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12878 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12879 if (!SWIG_IsOK(res2)) {
12880 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12881 }
12882 if (!argp2) {
12883 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12884 }
12885 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12886 {
12887 PyThreadState* __tstate = wxPyBeginAllowThreads();
12888 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
12889 wxPyEndAllowThreads(__tstate);
12890 if (PyErr_Occurred()) SWIG_fail;
12891 }
12892 {
12893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12894 }
12895 return resultobj;
12896 fail:
12897 return NULL;
12898 }
12899
12900
12901 SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12902 PyObject *resultobj = 0;
12903 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12904 wxTextAttr *result = 0 ;
12905 void *argp1 = 0 ;
12906 int res1 = 0 ;
12907 PyObject *swig_obj[1] ;
12908
12909 if (!args) SWIG_fail;
12910 swig_obj[0] = args;
12911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12912 if (!SWIG_IsOK(res1)) {
12913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12914 }
12915 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12916 {
12917 PyThreadState* __tstate = wxPyBeginAllowThreads();
12918 {
12919 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
12920 result = (wxTextAttr *) &_result_ref;
12921 }
12922 wxPyEndAllowThreads(__tstate);
12923 if (PyErr_Occurred()) SWIG_fail;
12924 }
12925 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
12926 return resultobj;
12927 fail:
12928 return NULL;
12929 }
12930
12931
12932 SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12933 PyObject *resultobj = 0;
12934 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12935 long arg2 ;
12936 long arg3 ;
12937 long result;
12938 void *argp1 = 0 ;
12939 int res1 = 0 ;
12940 long val2 ;
12941 int ecode2 = 0 ;
12942 long val3 ;
12943 int ecode3 = 0 ;
12944 PyObject * obj0 = 0 ;
12945 PyObject * obj1 = 0 ;
12946 PyObject * obj2 = 0 ;
12947 char * kwnames[] = {
12948 (char *) "self",(char *) "x",(char *) "y", NULL
12949 };
12950
12951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12953 if (!SWIG_IsOK(res1)) {
12954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12955 }
12956 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12957 ecode2 = SWIG_AsVal_long(obj1, &val2);
12958 if (!SWIG_IsOK(ecode2)) {
12959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
12960 }
12961 arg2 = static_cast< long >(val2);
12962 ecode3 = SWIG_AsVal_long(obj2, &val3);
12963 if (!SWIG_IsOK(ecode3)) {
12964 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
12965 }
12966 arg3 = static_cast< long >(val3);
12967 {
12968 PyThreadState* __tstate = wxPyBeginAllowThreads();
12969 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
12970 wxPyEndAllowThreads(__tstate);
12971 if (PyErr_Occurred()) SWIG_fail;
12972 }
12973 resultobj = SWIG_From_long(static_cast< long >(result));
12974 return resultobj;
12975 fail:
12976 return NULL;
12977 }
12978
12979
12980 SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12981 PyObject *resultobj = 0;
12982 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12983 long arg2 ;
12984 long *arg3 = (long *) 0 ;
12985 long *arg4 = (long *) 0 ;
12986 void *argp1 = 0 ;
12987 int res1 = 0 ;
12988 long val2 ;
12989 int ecode2 = 0 ;
12990 long temp3 ;
12991 int res3 = SWIG_TMPOBJ ;
12992 long temp4 ;
12993 int res4 = SWIG_TMPOBJ ;
12994 PyObject * obj0 = 0 ;
12995 PyObject * obj1 = 0 ;
12996 char * kwnames[] = {
12997 (char *) "self",(char *) "pos", NULL
12998 };
12999
13000 arg3 = &temp3;
13001 arg4 = &temp4;
13002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13004 if (!SWIG_IsOK(res1)) {
13005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13006 }
13007 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13008 ecode2 = SWIG_AsVal_long(obj1, &val2);
13009 if (!SWIG_IsOK(ecode2)) {
13010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13011 }
13012 arg2 = static_cast< long >(val2);
13013 {
13014 PyThreadState* __tstate = wxPyBeginAllowThreads();
13015 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13016 wxPyEndAllowThreads(__tstate);
13017 if (PyErr_Occurred()) SWIG_fail;
13018 }
13019 resultobj = SWIG_Py_Void();
13020 if (SWIG_IsTmpObj(res3)) {
13021 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13022 } else {
13023 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13024 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13025 }
13026 if (SWIG_IsTmpObj(res4)) {
13027 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13028 } else {
13029 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13030 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13031 }
13032 return resultobj;
13033 fail:
13034 return NULL;
13035 }
13036
13037
13038 SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13039 PyObject *resultobj = 0;
13040 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13041 long arg2 ;
13042 void *argp1 = 0 ;
13043 int res1 = 0 ;
13044 long val2 ;
13045 int ecode2 = 0 ;
13046 PyObject * obj0 = 0 ;
13047 PyObject * obj1 = 0 ;
13048 char * kwnames[] = {
13049 (char *) "self",(char *) "pos", NULL
13050 };
13051
13052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13054 if (!SWIG_IsOK(res1)) {
13055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13056 }
13057 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13058 ecode2 = SWIG_AsVal_long(obj1, &val2);
13059 if (!SWIG_IsOK(ecode2)) {
13060 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13061 }
13062 arg2 = static_cast< long >(val2);
13063 {
13064 PyThreadState* __tstate = wxPyBeginAllowThreads();
13065 (arg1)->ShowPosition(arg2);
13066 wxPyEndAllowThreads(__tstate);
13067 if (PyErr_Occurred()) SWIG_fail;
13068 }
13069 resultobj = SWIG_Py_Void();
13070 return resultobj;
13071 fail:
13072 return NULL;
13073 }
13074
13075
13076 SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13077 PyObject *resultobj = 0;
13078 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13079 wxPoint *arg2 = 0 ;
13080 long *arg3 = (long *) 0 ;
13081 long *arg4 = (long *) 0 ;
13082 wxTextCtrlHitTestResult result;
13083 void *argp1 = 0 ;
13084 int res1 = 0 ;
13085 wxPoint temp2 ;
13086 long temp3 ;
13087 int res3 = SWIG_TMPOBJ ;
13088 long temp4 ;
13089 int res4 = SWIG_TMPOBJ ;
13090 PyObject * obj0 = 0 ;
13091 PyObject * obj1 = 0 ;
13092 char * kwnames[] = {
13093 (char *) "self",(char *) "pt", NULL
13094 };
13095
13096 arg3 = &temp3;
13097 arg4 = &temp4;
13098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13100 if (!SWIG_IsOK(res1)) {
13101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13102 }
13103 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13104 {
13105 arg2 = &temp2;
13106 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13107 }
13108 {
13109 PyThreadState* __tstate = wxPyBeginAllowThreads();
13110 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13111 wxPyEndAllowThreads(__tstate);
13112 if (PyErr_Occurred()) SWIG_fail;
13113 }
13114 resultobj = SWIG_From_int(static_cast< int >(result));
13115 if (SWIG_IsTmpObj(res3)) {
13116 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13117 } else {
13118 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13119 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13120 }
13121 if (SWIG_IsTmpObj(res4)) {
13122 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13123 } else {
13124 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13125 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13126 }
13127 return resultobj;
13128 fail:
13129 return NULL;
13130 }
13131
13132
13133 SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13134 PyObject *resultobj = 0;
13135 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13136 wxPoint *arg2 = 0 ;
13137 long *arg3 = (long *) 0 ;
13138 wxTextCtrlHitTestResult result;
13139 void *argp1 = 0 ;
13140 int res1 = 0 ;
13141 wxPoint temp2 ;
13142 long temp3 ;
13143 int res3 = SWIG_TMPOBJ ;
13144 PyObject * obj0 = 0 ;
13145 PyObject * obj1 = 0 ;
13146 char * kwnames[] = {
13147 (char *) "self",(char *) "pt", NULL
13148 };
13149
13150 arg3 = &temp3;
13151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13153 if (!SWIG_IsOK(res1)) {
13154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13155 }
13156 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13157 {
13158 arg2 = &temp2;
13159 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13160 }
13161 {
13162 PyThreadState* __tstate = wxPyBeginAllowThreads();
13163 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13164 wxPyEndAllowThreads(__tstate);
13165 if (PyErr_Occurred()) SWIG_fail;
13166 }
13167 resultobj = SWIG_From_int(static_cast< int >(result));
13168 if (SWIG_IsTmpObj(res3)) {
13169 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13170 } else {
13171 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13172 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13173 }
13174 return resultobj;
13175 fail:
13176 return NULL;
13177 }
13178
13179
13180 SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13181 PyObject *resultobj = 0;
13182 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13183 void *argp1 = 0 ;
13184 int res1 = 0 ;
13185 PyObject *swig_obj[1] ;
13186
13187 if (!args) SWIG_fail;
13188 swig_obj[0] = args;
13189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13190 if (!SWIG_IsOK(res1)) {
13191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13192 }
13193 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13194 {
13195 PyThreadState* __tstate = wxPyBeginAllowThreads();
13196 (arg1)->Copy();
13197 wxPyEndAllowThreads(__tstate);
13198 if (PyErr_Occurred()) SWIG_fail;
13199 }
13200 resultobj = SWIG_Py_Void();
13201 return resultobj;
13202 fail:
13203 return NULL;
13204 }
13205
13206
13207 SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13208 PyObject *resultobj = 0;
13209 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13210 void *argp1 = 0 ;
13211 int res1 = 0 ;
13212 PyObject *swig_obj[1] ;
13213
13214 if (!args) SWIG_fail;
13215 swig_obj[0] = args;
13216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13217 if (!SWIG_IsOK(res1)) {
13218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13219 }
13220 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13221 {
13222 PyThreadState* __tstate = wxPyBeginAllowThreads();
13223 (arg1)->Cut();
13224 wxPyEndAllowThreads(__tstate);
13225 if (PyErr_Occurred()) SWIG_fail;
13226 }
13227 resultobj = SWIG_Py_Void();
13228 return resultobj;
13229 fail:
13230 return NULL;
13231 }
13232
13233
13234 SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13235 PyObject *resultobj = 0;
13236 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13237 void *argp1 = 0 ;
13238 int res1 = 0 ;
13239 PyObject *swig_obj[1] ;
13240
13241 if (!args) SWIG_fail;
13242 swig_obj[0] = args;
13243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13244 if (!SWIG_IsOK(res1)) {
13245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13246 }
13247 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13248 {
13249 PyThreadState* __tstate = wxPyBeginAllowThreads();
13250 (arg1)->Paste();
13251 wxPyEndAllowThreads(__tstate);
13252 if (PyErr_Occurred()) SWIG_fail;
13253 }
13254 resultobj = SWIG_Py_Void();
13255 return resultobj;
13256 fail:
13257 return NULL;
13258 }
13259
13260
13261 SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13262 PyObject *resultobj = 0;
13263 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13264 bool result;
13265 void *argp1 = 0 ;
13266 int res1 = 0 ;
13267 PyObject *swig_obj[1] ;
13268
13269 if (!args) SWIG_fail;
13270 swig_obj[0] = args;
13271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13272 if (!SWIG_IsOK(res1)) {
13273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13274 }
13275 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13276 {
13277 PyThreadState* __tstate = wxPyBeginAllowThreads();
13278 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13279 wxPyEndAllowThreads(__tstate);
13280 if (PyErr_Occurred()) SWIG_fail;
13281 }
13282 {
13283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13284 }
13285 return resultobj;
13286 fail:
13287 return NULL;
13288 }
13289
13290
13291 SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13292 PyObject *resultobj = 0;
13293 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13294 bool result;
13295 void *argp1 = 0 ;
13296 int res1 = 0 ;
13297 PyObject *swig_obj[1] ;
13298
13299 if (!args) SWIG_fail;
13300 swig_obj[0] = args;
13301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13302 if (!SWIG_IsOK(res1)) {
13303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13304 }
13305 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13306 {
13307 PyThreadState* __tstate = wxPyBeginAllowThreads();
13308 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13309 wxPyEndAllowThreads(__tstate);
13310 if (PyErr_Occurred()) SWIG_fail;
13311 }
13312 {
13313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13314 }
13315 return resultobj;
13316 fail:
13317 return NULL;
13318 }
13319
13320
13321 SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13322 PyObject *resultobj = 0;
13323 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13324 bool result;
13325 void *argp1 = 0 ;
13326 int res1 = 0 ;
13327 PyObject *swig_obj[1] ;
13328
13329 if (!args) SWIG_fail;
13330 swig_obj[0] = args;
13331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13332 if (!SWIG_IsOK(res1)) {
13333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13334 }
13335 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13336 {
13337 PyThreadState* __tstate = wxPyBeginAllowThreads();
13338 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13339 wxPyEndAllowThreads(__tstate);
13340 if (PyErr_Occurred()) SWIG_fail;
13341 }
13342 {
13343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13344 }
13345 return resultobj;
13346 fail:
13347 return NULL;
13348 }
13349
13350
13351 SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13352 PyObject *resultobj = 0;
13353 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13354 void *argp1 = 0 ;
13355 int res1 = 0 ;
13356 PyObject *swig_obj[1] ;
13357
13358 if (!args) SWIG_fail;
13359 swig_obj[0] = args;
13360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13361 if (!SWIG_IsOK(res1)) {
13362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13363 }
13364 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13365 {
13366 PyThreadState* __tstate = wxPyBeginAllowThreads();
13367 (arg1)->Undo();
13368 wxPyEndAllowThreads(__tstate);
13369 if (PyErr_Occurred()) SWIG_fail;
13370 }
13371 resultobj = SWIG_Py_Void();
13372 return resultobj;
13373 fail:
13374 return NULL;
13375 }
13376
13377
13378 SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13379 PyObject *resultobj = 0;
13380 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13381 void *argp1 = 0 ;
13382 int res1 = 0 ;
13383 PyObject *swig_obj[1] ;
13384
13385 if (!args) SWIG_fail;
13386 swig_obj[0] = args;
13387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13388 if (!SWIG_IsOK(res1)) {
13389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13390 }
13391 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13392 {
13393 PyThreadState* __tstate = wxPyBeginAllowThreads();
13394 (arg1)->Redo();
13395 wxPyEndAllowThreads(__tstate);
13396 if (PyErr_Occurred()) SWIG_fail;
13397 }
13398 resultobj = SWIG_Py_Void();
13399 return resultobj;
13400 fail:
13401 return NULL;
13402 }
13403
13404
13405 SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13406 PyObject *resultobj = 0;
13407 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13408 bool result;
13409 void *argp1 = 0 ;
13410 int res1 = 0 ;
13411 PyObject *swig_obj[1] ;
13412
13413 if (!args) SWIG_fail;
13414 swig_obj[0] = args;
13415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13416 if (!SWIG_IsOK(res1)) {
13417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13418 }
13419 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13420 {
13421 PyThreadState* __tstate = wxPyBeginAllowThreads();
13422 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13423 wxPyEndAllowThreads(__tstate);
13424 if (PyErr_Occurred()) SWIG_fail;
13425 }
13426 {
13427 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13428 }
13429 return resultobj;
13430 fail:
13431 return NULL;
13432 }
13433
13434
13435 SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13436 PyObject *resultobj = 0;
13437 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13438 bool result;
13439 void *argp1 = 0 ;
13440 int res1 = 0 ;
13441 PyObject *swig_obj[1] ;
13442
13443 if (!args) SWIG_fail;
13444 swig_obj[0] = args;
13445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13446 if (!SWIG_IsOK(res1)) {
13447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13448 }
13449 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13450 {
13451 PyThreadState* __tstate = wxPyBeginAllowThreads();
13452 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13453 wxPyEndAllowThreads(__tstate);
13454 if (PyErr_Occurred()) SWIG_fail;
13455 }
13456 {
13457 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13458 }
13459 return resultobj;
13460 fail:
13461 return NULL;
13462 }
13463
13464
13465 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13466 PyObject *resultobj = 0;
13467 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13468 long arg2 ;
13469 void *argp1 = 0 ;
13470 int res1 = 0 ;
13471 long val2 ;
13472 int ecode2 = 0 ;
13473 PyObject * obj0 = 0 ;
13474 PyObject * obj1 = 0 ;
13475 char * kwnames[] = {
13476 (char *) "self",(char *) "pos", NULL
13477 };
13478
13479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13481 if (!SWIG_IsOK(res1)) {
13482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13483 }
13484 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13485 ecode2 = SWIG_AsVal_long(obj1, &val2);
13486 if (!SWIG_IsOK(ecode2)) {
13487 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13488 }
13489 arg2 = static_cast< long >(val2);
13490 {
13491 PyThreadState* __tstate = wxPyBeginAllowThreads();
13492 (arg1)->SetInsertionPoint(arg2);
13493 wxPyEndAllowThreads(__tstate);
13494 if (PyErr_Occurred()) SWIG_fail;
13495 }
13496 resultobj = SWIG_Py_Void();
13497 return resultobj;
13498 fail:
13499 return NULL;
13500 }
13501
13502
13503 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13504 PyObject *resultobj = 0;
13505 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13506 void *argp1 = 0 ;
13507 int res1 = 0 ;
13508 PyObject *swig_obj[1] ;
13509
13510 if (!args) SWIG_fail;
13511 swig_obj[0] = args;
13512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13513 if (!SWIG_IsOK(res1)) {
13514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13515 }
13516 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13517 {
13518 PyThreadState* __tstate = wxPyBeginAllowThreads();
13519 (arg1)->SetInsertionPointEnd();
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_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13531 PyObject *resultobj = 0;
13532 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13533 long result;
13534 void *argp1 = 0 ;
13535 int res1 = 0 ;
13536 PyObject *swig_obj[1] ;
13537
13538 if (!args) SWIG_fail;
13539 swig_obj[0] = args;
13540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13541 if (!SWIG_IsOK(res1)) {
13542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13543 }
13544 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13545 {
13546 PyThreadState* __tstate = wxPyBeginAllowThreads();
13547 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13548 wxPyEndAllowThreads(__tstate);
13549 if (PyErr_Occurred()) SWIG_fail;
13550 }
13551 resultobj = SWIG_From_long(static_cast< long >(result));
13552 return resultobj;
13553 fail:
13554 return NULL;
13555 }
13556
13557
13558 SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13559 PyObject *resultobj = 0;
13560 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13561 long result;
13562 void *argp1 = 0 ;
13563 int res1 = 0 ;
13564 PyObject *swig_obj[1] ;
13565
13566 if (!args) SWIG_fail;
13567 swig_obj[0] = args;
13568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13569 if (!SWIG_IsOK(res1)) {
13570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13571 }
13572 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13573 {
13574 PyThreadState* __tstate = wxPyBeginAllowThreads();
13575 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13576 wxPyEndAllowThreads(__tstate);
13577 if (PyErr_Occurred()) SWIG_fail;
13578 }
13579 resultobj = SWIG_From_long(static_cast< long >(result));
13580 return resultobj;
13581 fail:
13582 return NULL;
13583 }
13584
13585
13586 SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13587 PyObject *resultobj = 0;
13588 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13589 long arg2 ;
13590 long arg3 ;
13591 void *argp1 = 0 ;
13592 int res1 = 0 ;
13593 long val2 ;
13594 int ecode2 = 0 ;
13595 long val3 ;
13596 int ecode3 = 0 ;
13597 PyObject * obj0 = 0 ;
13598 PyObject * obj1 = 0 ;
13599 PyObject * obj2 = 0 ;
13600 char * kwnames[] = {
13601 (char *) "self",(char *) "from",(char *) "to", NULL
13602 };
13603
13604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13606 if (!SWIG_IsOK(res1)) {
13607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13608 }
13609 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13610 ecode2 = SWIG_AsVal_long(obj1, &val2);
13611 if (!SWIG_IsOK(ecode2)) {
13612 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13613 }
13614 arg2 = static_cast< long >(val2);
13615 ecode3 = SWIG_AsVal_long(obj2, &val3);
13616 if (!SWIG_IsOK(ecode3)) {
13617 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13618 }
13619 arg3 = static_cast< long >(val3);
13620 {
13621 PyThreadState* __tstate = wxPyBeginAllowThreads();
13622 (arg1)->SetSelection(arg2,arg3);
13623 wxPyEndAllowThreads(__tstate);
13624 if (PyErr_Occurred()) SWIG_fail;
13625 }
13626 resultobj = SWIG_Py_Void();
13627 return resultobj;
13628 fail:
13629 return NULL;
13630 }
13631
13632
13633 SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13634 PyObject *resultobj = 0;
13635 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13636 void *argp1 = 0 ;
13637 int res1 = 0 ;
13638 PyObject *swig_obj[1] ;
13639
13640 if (!args) SWIG_fail;
13641 swig_obj[0] = args;
13642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13643 if (!SWIG_IsOK(res1)) {
13644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13645 }
13646 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13647 {
13648 PyThreadState* __tstate = wxPyBeginAllowThreads();
13649 (arg1)->SelectAll();
13650 wxPyEndAllowThreads(__tstate);
13651 if (PyErr_Occurred()) SWIG_fail;
13652 }
13653 resultobj = SWIG_Py_Void();
13654 return resultobj;
13655 fail:
13656 return NULL;
13657 }
13658
13659
13660 SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13661 PyObject *resultobj = 0;
13662 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13663 bool arg2 ;
13664 void *argp1 = 0 ;
13665 int res1 = 0 ;
13666 bool val2 ;
13667 int ecode2 = 0 ;
13668 PyObject * obj0 = 0 ;
13669 PyObject * obj1 = 0 ;
13670 char * kwnames[] = {
13671 (char *) "self",(char *) "editable", NULL
13672 };
13673
13674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13676 if (!SWIG_IsOK(res1)) {
13677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13678 }
13679 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13680 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13681 if (!SWIG_IsOK(ecode2)) {
13682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13683 }
13684 arg2 = static_cast< bool >(val2);
13685 {
13686 PyThreadState* __tstate = wxPyBeginAllowThreads();
13687 (arg1)->SetEditable(arg2);
13688 wxPyEndAllowThreads(__tstate);
13689 if (PyErr_Occurred()) SWIG_fail;
13690 }
13691 resultobj = SWIG_Py_Void();
13692 return resultobj;
13693 fail:
13694 return NULL;
13695 }
13696
13697
13698 SWIGINTERN PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13699 PyObject *resultobj = 0;
13700 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13701 bool arg2 = (bool) true ;
13702 bool result;
13703 void *argp1 = 0 ;
13704 int res1 = 0 ;
13705 bool val2 ;
13706 int ecode2 = 0 ;
13707 PyObject * obj0 = 0 ;
13708 PyObject * obj1 = 0 ;
13709 char * kwnames[] = {
13710 (char *) "self",(char *) "show", NULL
13711 };
13712
13713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) SWIG_fail;
13714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13715 if (!SWIG_IsOK(res1)) {
13716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13717 }
13718 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13719 if (obj1) {
13720 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13721 if (!SWIG_IsOK(ecode2)) {
13722 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "2"" of type '" "bool""'");
13723 }
13724 arg2 = static_cast< bool >(val2);
13725 }
13726 {
13727 PyThreadState* __tstate = wxPyBeginAllowThreads();
13728 result = (bool)(arg1)->ShowNativeCaret(arg2);
13729 wxPyEndAllowThreads(__tstate);
13730 if (PyErr_Occurred()) SWIG_fail;
13731 }
13732 {
13733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13734 }
13735 return resultobj;
13736 fail:
13737 return NULL;
13738 }
13739
13740
13741 SWIGINTERN PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13742 PyObject *resultobj = 0;
13743 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13744 bool result;
13745 void *argp1 = 0 ;
13746 int res1 = 0 ;
13747 PyObject *swig_obj[1] ;
13748
13749 if (!args) SWIG_fail;
13750 swig_obj[0] = args;
13751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13752 if (!SWIG_IsOK(res1)) {
13753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HideNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13754 }
13755 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13756 {
13757 PyThreadState* __tstate = wxPyBeginAllowThreads();
13758 result = (bool)(arg1)->HideNativeCaret();
13759 wxPyEndAllowThreads(__tstate);
13760 if (PyErr_Occurred()) SWIG_fail;
13761 }
13762 {
13763 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13764 }
13765 return resultobj;
13766 fail:
13767 return NULL;
13768 }
13769
13770
13771 SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13772 PyObject *resultobj = 0;
13773 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13774 wxString *arg2 = 0 ;
13775 void *argp1 = 0 ;
13776 int res1 = 0 ;
13777 bool temp2 = false ;
13778 PyObject * obj0 = 0 ;
13779 PyObject * obj1 = 0 ;
13780 char * kwnames[] = {
13781 (char *) "self",(char *) "text", NULL
13782 };
13783
13784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13786 if (!SWIG_IsOK(res1)) {
13787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13788 }
13789 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13790 {
13791 arg2 = wxString_in_helper(obj1);
13792 if (arg2 == NULL) SWIG_fail;
13793 temp2 = true;
13794 }
13795 {
13796 PyThreadState* __tstate = wxPyBeginAllowThreads();
13797 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13798 wxPyEndAllowThreads(__tstate);
13799 if (PyErr_Occurred()) SWIG_fail;
13800 }
13801 resultobj = SWIG_Py_Void();
13802 {
13803 if (temp2)
13804 delete arg2;
13805 }
13806 return resultobj;
13807 fail:
13808 {
13809 if (temp2)
13810 delete arg2;
13811 }
13812 return NULL;
13813 }
13814
13815
13816 SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13817 PyObject *resultobj = 0;
13818 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13819 long arg2 ;
13820 long arg3 ;
13821 wxString result;
13822 void *argp1 = 0 ;
13823 int res1 = 0 ;
13824 long val2 ;
13825 int ecode2 = 0 ;
13826 long val3 ;
13827 int ecode3 = 0 ;
13828 PyObject * obj0 = 0 ;
13829 PyObject * obj1 = 0 ;
13830 PyObject * obj2 = 0 ;
13831 char * kwnames[] = {
13832 (char *) "self",(char *) "from",(char *) "to", NULL
13833 };
13834
13835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13837 if (!SWIG_IsOK(res1)) {
13838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13839 }
13840 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13841 ecode2 = SWIG_AsVal_long(obj1, &val2);
13842 if (!SWIG_IsOK(ecode2)) {
13843 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13844 }
13845 arg2 = static_cast< long >(val2);
13846 ecode3 = SWIG_AsVal_long(obj2, &val3);
13847 if (!SWIG_IsOK(ecode3)) {
13848 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13849 }
13850 arg3 = static_cast< long >(val3);
13851 {
13852 PyThreadState* __tstate = wxPyBeginAllowThreads();
13853 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13854 wxPyEndAllowThreads(__tstate);
13855 if (PyErr_Occurred()) SWIG_fail;
13856 }
13857 {
13858 #if wxUSE_UNICODE
13859 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13860 #else
13861 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13862 #endif
13863 }
13864 return resultobj;
13865 fail:
13866 return NULL;
13867 }
13868
13869
13870 SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13871 PyObject *resultobj = 0;
13872 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13873 SwigValueWrapper<wxVisualAttributes > result;
13874 int val1 ;
13875 int ecode1 = 0 ;
13876 PyObject * obj0 = 0 ;
13877 char * kwnames[] = {
13878 (char *) "variant", NULL
13879 };
13880
13881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13882 if (obj0) {
13883 ecode1 = SWIG_AsVal_int(obj0, &val1);
13884 if (!SWIG_IsOK(ecode1)) {
13885 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13886 }
13887 arg1 = static_cast< wxWindowVariant >(val1);
13888 }
13889 {
13890 if (!wxPyCheckForApp()) SWIG_fail;
13891 PyThreadState* __tstate = wxPyBeginAllowThreads();
13892 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13893 wxPyEndAllowThreads(__tstate);
13894 if (PyErr_Occurred()) SWIG_fail;
13895 }
13896 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13897 return resultobj;
13898 fail:
13899 return NULL;
13900 }
13901
13902
13903 SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13904 PyObject *obj;
13905 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13906 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13907 return SWIG_Py_Void();
13908 }
13909
13910 SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13911 return SWIG_Python_InitShadowInstance(args);
13912 }
13913
13914 SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13915 PyObject *resultobj = 0;
13916 int arg1 ;
13917 wxMouseEvent *arg2 = 0 ;
13918 long arg3 ;
13919 long arg4 ;
13920 wxTextUrlEvent *result = 0 ;
13921 int val1 ;
13922 int ecode1 = 0 ;
13923 void *argp2 = 0 ;
13924 int res2 = 0 ;
13925 long val3 ;
13926 int ecode3 = 0 ;
13927 long val4 ;
13928 int ecode4 = 0 ;
13929 PyObject * obj0 = 0 ;
13930 PyObject * obj1 = 0 ;
13931 PyObject * obj2 = 0 ;
13932 PyObject * obj3 = 0 ;
13933 char * kwnames[] = {
13934 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
13935 };
13936
13937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13938 ecode1 = SWIG_AsVal_int(obj0, &val1);
13939 if (!SWIG_IsOK(ecode1)) {
13940 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
13941 }
13942 arg1 = static_cast< int >(val1);
13943 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
13944 if (!SWIG_IsOK(res2)) {
13945 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13946 }
13947 if (!argp2) {
13948 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13949 }
13950 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
13951 ecode3 = SWIG_AsVal_long(obj2, &val3);
13952 if (!SWIG_IsOK(ecode3)) {
13953 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
13954 }
13955 arg3 = static_cast< long >(val3);
13956 ecode4 = SWIG_AsVal_long(obj3, &val4);
13957 if (!SWIG_IsOK(ecode4)) {
13958 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
13959 }
13960 arg4 = static_cast< long >(val4);
13961 {
13962 PyThreadState* __tstate = wxPyBeginAllowThreads();
13963 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
13964 wxPyEndAllowThreads(__tstate);
13965 if (PyErr_Occurred()) SWIG_fail;
13966 }
13967 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
13968 return resultobj;
13969 fail:
13970 return NULL;
13971 }
13972
13973
13974 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13975 PyObject *resultobj = 0;
13976 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13977 wxMouseEvent *result = 0 ;
13978 void *argp1 = 0 ;
13979 int res1 = 0 ;
13980 PyObject *swig_obj[1] ;
13981
13982 if (!args) SWIG_fail;
13983 swig_obj[0] = args;
13984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13985 if (!SWIG_IsOK(res1)) {
13986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
13987 }
13988 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13989 {
13990 PyThreadState* __tstate = wxPyBeginAllowThreads();
13991 {
13992 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
13993 result = (wxMouseEvent *) &_result_ref;
13994 }
13995 wxPyEndAllowThreads(__tstate);
13996 if (PyErr_Occurred()) SWIG_fail;
13997 }
13998 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
13999 return resultobj;
14000 fail:
14001 return NULL;
14002 }
14003
14004
14005 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14006 PyObject *resultobj = 0;
14007 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14008 long result;
14009 void *argp1 = 0 ;
14010 int res1 = 0 ;
14011 PyObject *swig_obj[1] ;
14012
14013 if (!args) SWIG_fail;
14014 swig_obj[0] = args;
14015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14016 if (!SWIG_IsOK(res1)) {
14017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14018 }
14019 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14020 {
14021 PyThreadState* __tstate = wxPyBeginAllowThreads();
14022 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14023 wxPyEndAllowThreads(__tstate);
14024 if (PyErr_Occurred()) SWIG_fail;
14025 }
14026 resultobj = SWIG_From_long(static_cast< long >(result));
14027 return resultobj;
14028 fail:
14029 return NULL;
14030 }
14031
14032
14033 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14034 PyObject *resultobj = 0;
14035 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14036 long result;
14037 void *argp1 = 0 ;
14038 int res1 = 0 ;
14039 PyObject *swig_obj[1] ;
14040
14041 if (!args) SWIG_fail;
14042 swig_obj[0] = args;
14043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14044 if (!SWIG_IsOK(res1)) {
14045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14046 }
14047 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14048 {
14049 PyThreadState* __tstate = wxPyBeginAllowThreads();
14050 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14051 wxPyEndAllowThreads(__tstate);
14052 if (PyErr_Occurred()) SWIG_fail;
14053 }
14054 resultobj = SWIG_From_long(static_cast< long >(result));
14055 return resultobj;
14056 fail:
14057 return NULL;
14058 }
14059
14060
14061 SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14062 PyObject *obj;
14063 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14064 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14065 return SWIG_Py_Void();
14066 }
14067
14068 SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14069 return SWIG_Python_InitShadowInstance(args);
14070 }
14071
14072 SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14073 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14074 return 1;
14075 }
14076
14077
14078 SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14079 PyObject *pyobj = 0;
14080
14081 {
14082 #if wxUSE_UNICODE
14083 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14084 #else
14085 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14086 #endif
14087 }
14088 return pyobj;
14089 }
14090
14091
14092 SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14093 PyObject *resultobj = 0;
14094 wxWindow *arg1 = (wxWindow *) 0 ;
14095 int arg2 = (int) -1 ;
14096 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14097 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14098 wxSize const &arg4_defvalue = wxDefaultSize ;
14099 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14100 long arg5 = (long) wxSB_HORIZONTAL ;
14101 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14102 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14103 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14104 wxString *arg7 = (wxString *) &arg7_defvalue ;
14105 wxScrollBar *result = 0 ;
14106 void *argp1 = 0 ;
14107 int res1 = 0 ;
14108 int val2 ;
14109 int ecode2 = 0 ;
14110 wxPoint temp3 ;
14111 wxSize temp4 ;
14112 long val5 ;
14113 int ecode5 = 0 ;
14114 void *argp6 = 0 ;
14115 int res6 = 0 ;
14116 bool temp7 = false ;
14117 PyObject * obj0 = 0 ;
14118 PyObject * obj1 = 0 ;
14119 PyObject * obj2 = 0 ;
14120 PyObject * obj3 = 0 ;
14121 PyObject * obj4 = 0 ;
14122 PyObject * obj5 = 0 ;
14123 PyObject * obj6 = 0 ;
14124 char * kwnames[] = {
14125 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14126 };
14127
14128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14130 if (!SWIG_IsOK(res1)) {
14131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14132 }
14133 arg1 = reinterpret_cast< wxWindow * >(argp1);
14134 if (obj1) {
14135 ecode2 = SWIG_AsVal_int(obj1, &val2);
14136 if (!SWIG_IsOK(ecode2)) {
14137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14138 }
14139 arg2 = static_cast< int >(val2);
14140 }
14141 if (obj2) {
14142 {
14143 arg3 = &temp3;
14144 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14145 }
14146 }
14147 if (obj3) {
14148 {
14149 arg4 = &temp4;
14150 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14151 }
14152 }
14153 if (obj4) {
14154 ecode5 = SWIG_AsVal_long(obj4, &val5);
14155 if (!SWIG_IsOK(ecode5)) {
14156 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14157 }
14158 arg5 = static_cast< long >(val5);
14159 }
14160 if (obj5) {
14161 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14162 if (!SWIG_IsOK(res6)) {
14163 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14164 }
14165 if (!argp6) {
14166 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14167 }
14168 arg6 = reinterpret_cast< wxValidator * >(argp6);
14169 }
14170 if (obj6) {
14171 {
14172 arg7 = wxString_in_helper(obj6);
14173 if (arg7 == NULL) SWIG_fail;
14174 temp7 = true;
14175 }
14176 }
14177 {
14178 if (!wxPyCheckForApp()) SWIG_fail;
14179 PyThreadState* __tstate = wxPyBeginAllowThreads();
14180 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14181 wxPyEndAllowThreads(__tstate);
14182 if (PyErr_Occurred()) SWIG_fail;
14183 }
14184 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14185 {
14186 if (temp7)
14187 delete arg7;
14188 }
14189 return resultobj;
14190 fail:
14191 {
14192 if (temp7)
14193 delete arg7;
14194 }
14195 return NULL;
14196 }
14197
14198
14199 SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14200 PyObject *resultobj = 0;
14201 wxScrollBar *result = 0 ;
14202
14203 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14204 {
14205 if (!wxPyCheckForApp()) SWIG_fail;
14206 PyThreadState* __tstate = wxPyBeginAllowThreads();
14207 result = (wxScrollBar *)new wxScrollBar();
14208 wxPyEndAllowThreads(__tstate);
14209 if (PyErr_Occurred()) SWIG_fail;
14210 }
14211 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14212 return resultobj;
14213 fail:
14214 return NULL;
14215 }
14216
14217
14218 SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14219 PyObject *resultobj = 0;
14220 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14221 wxWindow *arg2 = (wxWindow *) 0 ;
14222 int arg3 = (int) -1 ;
14223 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14224 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14225 wxSize const &arg5_defvalue = wxDefaultSize ;
14226 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14227 long arg6 = (long) wxSB_HORIZONTAL ;
14228 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14229 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14230 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14231 wxString *arg8 = (wxString *) &arg8_defvalue ;
14232 bool result;
14233 void *argp1 = 0 ;
14234 int res1 = 0 ;
14235 void *argp2 = 0 ;
14236 int res2 = 0 ;
14237 int val3 ;
14238 int ecode3 = 0 ;
14239 wxPoint temp4 ;
14240 wxSize temp5 ;
14241 long val6 ;
14242 int ecode6 = 0 ;
14243 void *argp7 = 0 ;
14244 int res7 = 0 ;
14245 bool temp8 = false ;
14246 PyObject * obj0 = 0 ;
14247 PyObject * obj1 = 0 ;
14248 PyObject * obj2 = 0 ;
14249 PyObject * obj3 = 0 ;
14250 PyObject * obj4 = 0 ;
14251 PyObject * obj5 = 0 ;
14252 PyObject * obj6 = 0 ;
14253 PyObject * obj7 = 0 ;
14254 char * kwnames[] = {
14255 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14256 };
14257
14258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14260 if (!SWIG_IsOK(res1)) {
14261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14262 }
14263 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14264 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14265 if (!SWIG_IsOK(res2)) {
14266 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14267 }
14268 arg2 = reinterpret_cast< wxWindow * >(argp2);
14269 if (obj2) {
14270 ecode3 = SWIG_AsVal_int(obj2, &val3);
14271 if (!SWIG_IsOK(ecode3)) {
14272 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14273 }
14274 arg3 = static_cast< int >(val3);
14275 }
14276 if (obj3) {
14277 {
14278 arg4 = &temp4;
14279 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14280 }
14281 }
14282 if (obj4) {
14283 {
14284 arg5 = &temp5;
14285 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14286 }
14287 }
14288 if (obj5) {
14289 ecode6 = SWIG_AsVal_long(obj5, &val6);
14290 if (!SWIG_IsOK(ecode6)) {
14291 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14292 }
14293 arg6 = static_cast< long >(val6);
14294 }
14295 if (obj6) {
14296 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14297 if (!SWIG_IsOK(res7)) {
14298 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14299 }
14300 if (!argp7) {
14301 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14302 }
14303 arg7 = reinterpret_cast< wxValidator * >(argp7);
14304 }
14305 if (obj7) {
14306 {
14307 arg8 = wxString_in_helper(obj7);
14308 if (arg8 == NULL) SWIG_fail;
14309 temp8 = true;
14310 }
14311 }
14312 {
14313 PyThreadState* __tstate = wxPyBeginAllowThreads();
14314 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14315 wxPyEndAllowThreads(__tstate);
14316 if (PyErr_Occurred()) SWIG_fail;
14317 }
14318 {
14319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14320 }
14321 {
14322 if (temp8)
14323 delete arg8;
14324 }
14325 return resultobj;
14326 fail:
14327 {
14328 if (temp8)
14329 delete arg8;
14330 }
14331 return NULL;
14332 }
14333
14334
14335 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14336 PyObject *resultobj = 0;
14337 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14338 int result;
14339 void *argp1 = 0 ;
14340 int res1 = 0 ;
14341 PyObject *swig_obj[1] ;
14342
14343 if (!args) SWIG_fail;
14344 swig_obj[0] = args;
14345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14346 if (!SWIG_IsOK(res1)) {
14347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14348 }
14349 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14350 {
14351 PyThreadState* __tstate = wxPyBeginAllowThreads();
14352 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14353 wxPyEndAllowThreads(__tstate);
14354 if (PyErr_Occurred()) SWIG_fail;
14355 }
14356 resultobj = SWIG_From_int(static_cast< int >(result));
14357 return resultobj;
14358 fail:
14359 return NULL;
14360 }
14361
14362
14363 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14364 PyObject *resultobj = 0;
14365 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14366 int result;
14367 void *argp1 = 0 ;
14368 int res1 = 0 ;
14369 PyObject *swig_obj[1] ;
14370
14371 if (!args) SWIG_fail;
14372 swig_obj[0] = args;
14373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14374 if (!SWIG_IsOK(res1)) {
14375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14376 }
14377 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14378 {
14379 PyThreadState* __tstate = wxPyBeginAllowThreads();
14380 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14381 wxPyEndAllowThreads(__tstate);
14382 if (PyErr_Occurred()) SWIG_fail;
14383 }
14384 resultobj = SWIG_From_int(static_cast< int >(result));
14385 return resultobj;
14386 fail:
14387 return NULL;
14388 }
14389
14390
14391 SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14392 PyObject *resultobj = 0;
14393 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14394 int result;
14395 void *argp1 = 0 ;
14396 int res1 = 0 ;
14397 PyObject *swig_obj[1] ;
14398
14399 if (!args) SWIG_fail;
14400 swig_obj[0] = args;
14401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14402 if (!SWIG_IsOK(res1)) {
14403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14404 }
14405 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14406 {
14407 PyThreadState* __tstate = wxPyBeginAllowThreads();
14408 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14409 wxPyEndAllowThreads(__tstate);
14410 if (PyErr_Occurred()) SWIG_fail;
14411 }
14412 resultobj = SWIG_From_int(static_cast< int >(result));
14413 return resultobj;
14414 fail:
14415 return NULL;
14416 }
14417
14418
14419 SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14420 PyObject *resultobj = 0;
14421 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14422 int result;
14423 void *argp1 = 0 ;
14424 int res1 = 0 ;
14425 PyObject *swig_obj[1] ;
14426
14427 if (!args) SWIG_fail;
14428 swig_obj[0] = args;
14429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14430 if (!SWIG_IsOK(res1)) {
14431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14432 }
14433 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14434 {
14435 PyThreadState* __tstate = wxPyBeginAllowThreads();
14436 result = (int)((wxScrollBar const *)arg1)->GetRange();
14437 wxPyEndAllowThreads(__tstate);
14438 if (PyErr_Occurred()) SWIG_fail;
14439 }
14440 resultobj = SWIG_From_int(static_cast< int >(result));
14441 return resultobj;
14442 fail:
14443 return NULL;
14444 }
14445
14446
14447 SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14448 PyObject *resultobj = 0;
14449 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14450 bool result;
14451 void *argp1 = 0 ;
14452 int res1 = 0 ;
14453 PyObject *swig_obj[1] ;
14454
14455 if (!args) SWIG_fail;
14456 swig_obj[0] = args;
14457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14458 if (!SWIG_IsOK(res1)) {
14459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14460 }
14461 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14462 {
14463 PyThreadState* __tstate = wxPyBeginAllowThreads();
14464 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14465 wxPyEndAllowThreads(__tstate);
14466 if (PyErr_Occurred()) SWIG_fail;
14467 }
14468 {
14469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14470 }
14471 return resultobj;
14472 fail:
14473 return NULL;
14474 }
14475
14476
14477 SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14478 PyObject *resultobj = 0;
14479 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14480 int arg2 ;
14481 void *argp1 = 0 ;
14482 int res1 = 0 ;
14483 int val2 ;
14484 int ecode2 = 0 ;
14485 PyObject * obj0 = 0 ;
14486 PyObject * obj1 = 0 ;
14487 char * kwnames[] = {
14488 (char *) "self",(char *) "viewStart", NULL
14489 };
14490
14491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14493 if (!SWIG_IsOK(res1)) {
14494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14495 }
14496 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14497 ecode2 = SWIG_AsVal_int(obj1, &val2);
14498 if (!SWIG_IsOK(ecode2)) {
14499 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14500 }
14501 arg2 = static_cast< int >(val2);
14502 {
14503 PyThreadState* __tstate = wxPyBeginAllowThreads();
14504 (arg1)->SetThumbPosition(arg2);
14505 wxPyEndAllowThreads(__tstate);
14506 if (PyErr_Occurred()) SWIG_fail;
14507 }
14508 resultobj = SWIG_Py_Void();
14509 return resultobj;
14510 fail:
14511 return NULL;
14512 }
14513
14514
14515 SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14516 PyObject *resultobj = 0;
14517 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14518 SwigValueWrapper<wxVisualAttributes > result;
14519 int val1 ;
14520 int ecode1 = 0 ;
14521 PyObject * obj0 = 0 ;
14522 char * kwnames[] = {
14523 (char *) "variant", NULL
14524 };
14525
14526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14527 if (obj0) {
14528 ecode1 = SWIG_AsVal_int(obj0, &val1);
14529 if (!SWIG_IsOK(ecode1)) {
14530 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14531 }
14532 arg1 = static_cast< wxWindowVariant >(val1);
14533 }
14534 {
14535 if (!wxPyCheckForApp()) SWIG_fail;
14536 PyThreadState* __tstate = wxPyBeginAllowThreads();
14537 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14538 wxPyEndAllowThreads(__tstate);
14539 if (PyErr_Occurred()) SWIG_fail;
14540 }
14541 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14542 return resultobj;
14543 fail:
14544 return NULL;
14545 }
14546
14547
14548 SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14549 PyObject *obj;
14550 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14551 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14552 return SWIG_Py_Void();
14553 }
14554
14555 SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14556 return SWIG_Python_InitShadowInstance(args);
14557 }
14558
14559 SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14560 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14561 return 1;
14562 }
14563
14564
14565 SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14566 PyObject *pyobj = 0;
14567
14568 {
14569 #if wxUSE_UNICODE
14570 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14571 #else
14572 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14573 #endif
14574 }
14575 return pyobj;
14576 }
14577
14578
14579 SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14580 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14581 return 1;
14582 }
14583
14584
14585 SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14586 PyObject *pyobj = 0;
14587
14588 {
14589 #if wxUSE_UNICODE
14590 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14591 #else
14592 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14593 #endif
14594 }
14595 return pyobj;
14596 }
14597
14598
14599 SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14600 PyObject *resultobj = 0;
14601 wxWindow *arg1 = (wxWindow *) 0 ;
14602 int arg2 = (int) -1 ;
14603 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14604 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14605 wxSize const &arg4_defvalue = wxDefaultSize ;
14606 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14607 long arg5 = (long) wxSP_HORIZONTAL ;
14608 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14609 wxString *arg6 = (wxString *) &arg6_defvalue ;
14610 wxSpinButton *result = 0 ;
14611 void *argp1 = 0 ;
14612 int res1 = 0 ;
14613 int val2 ;
14614 int ecode2 = 0 ;
14615 wxPoint temp3 ;
14616 wxSize temp4 ;
14617 long val5 ;
14618 int ecode5 = 0 ;
14619 bool temp6 = false ;
14620 PyObject * obj0 = 0 ;
14621 PyObject * obj1 = 0 ;
14622 PyObject * obj2 = 0 ;
14623 PyObject * obj3 = 0 ;
14624 PyObject * obj4 = 0 ;
14625 PyObject * obj5 = 0 ;
14626 char * kwnames[] = {
14627 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14628 };
14629
14630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14632 if (!SWIG_IsOK(res1)) {
14633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14634 }
14635 arg1 = reinterpret_cast< wxWindow * >(argp1);
14636 if (obj1) {
14637 ecode2 = SWIG_AsVal_int(obj1, &val2);
14638 if (!SWIG_IsOK(ecode2)) {
14639 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14640 }
14641 arg2 = static_cast< int >(val2);
14642 }
14643 if (obj2) {
14644 {
14645 arg3 = &temp3;
14646 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14647 }
14648 }
14649 if (obj3) {
14650 {
14651 arg4 = &temp4;
14652 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14653 }
14654 }
14655 if (obj4) {
14656 ecode5 = SWIG_AsVal_long(obj4, &val5);
14657 if (!SWIG_IsOK(ecode5)) {
14658 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14659 }
14660 arg5 = static_cast< long >(val5);
14661 }
14662 if (obj5) {
14663 {
14664 arg6 = wxString_in_helper(obj5);
14665 if (arg6 == NULL) SWIG_fail;
14666 temp6 = true;
14667 }
14668 }
14669 {
14670 if (!wxPyCheckForApp()) SWIG_fail;
14671 PyThreadState* __tstate = wxPyBeginAllowThreads();
14672 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14673 wxPyEndAllowThreads(__tstate);
14674 if (PyErr_Occurred()) SWIG_fail;
14675 }
14676 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14677 {
14678 if (temp6)
14679 delete arg6;
14680 }
14681 return resultobj;
14682 fail:
14683 {
14684 if (temp6)
14685 delete arg6;
14686 }
14687 return NULL;
14688 }
14689
14690
14691 SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14692 PyObject *resultobj = 0;
14693 wxSpinButton *result = 0 ;
14694
14695 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14696 {
14697 if (!wxPyCheckForApp()) SWIG_fail;
14698 PyThreadState* __tstate = wxPyBeginAllowThreads();
14699 result = (wxSpinButton *)new wxSpinButton();
14700 wxPyEndAllowThreads(__tstate);
14701 if (PyErr_Occurred()) SWIG_fail;
14702 }
14703 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14704 return resultobj;
14705 fail:
14706 return NULL;
14707 }
14708
14709
14710 SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14711 PyObject *resultobj = 0;
14712 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14713 wxWindow *arg2 = (wxWindow *) 0 ;
14714 int arg3 = (int) -1 ;
14715 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14716 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14717 wxSize const &arg5_defvalue = wxDefaultSize ;
14718 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14719 long arg6 = (long) wxSP_HORIZONTAL ;
14720 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14721 wxString *arg7 = (wxString *) &arg7_defvalue ;
14722 bool result;
14723 void *argp1 = 0 ;
14724 int res1 = 0 ;
14725 void *argp2 = 0 ;
14726 int res2 = 0 ;
14727 int val3 ;
14728 int ecode3 = 0 ;
14729 wxPoint temp4 ;
14730 wxSize temp5 ;
14731 long val6 ;
14732 int ecode6 = 0 ;
14733 bool temp7 = false ;
14734 PyObject * obj0 = 0 ;
14735 PyObject * obj1 = 0 ;
14736 PyObject * obj2 = 0 ;
14737 PyObject * obj3 = 0 ;
14738 PyObject * obj4 = 0 ;
14739 PyObject * obj5 = 0 ;
14740 PyObject * obj6 = 0 ;
14741 char * kwnames[] = {
14742 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14743 };
14744
14745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14747 if (!SWIG_IsOK(res1)) {
14748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14749 }
14750 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14751 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14752 if (!SWIG_IsOK(res2)) {
14753 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14754 }
14755 arg2 = reinterpret_cast< wxWindow * >(argp2);
14756 if (obj2) {
14757 ecode3 = SWIG_AsVal_int(obj2, &val3);
14758 if (!SWIG_IsOK(ecode3)) {
14759 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14760 }
14761 arg3 = static_cast< int >(val3);
14762 }
14763 if (obj3) {
14764 {
14765 arg4 = &temp4;
14766 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14767 }
14768 }
14769 if (obj4) {
14770 {
14771 arg5 = &temp5;
14772 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14773 }
14774 }
14775 if (obj5) {
14776 ecode6 = SWIG_AsVal_long(obj5, &val6);
14777 if (!SWIG_IsOK(ecode6)) {
14778 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14779 }
14780 arg6 = static_cast< long >(val6);
14781 }
14782 if (obj6) {
14783 {
14784 arg7 = wxString_in_helper(obj6);
14785 if (arg7 == NULL) SWIG_fail;
14786 temp7 = true;
14787 }
14788 }
14789 {
14790 PyThreadState* __tstate = wxPyBeginAllowThreads();
14791 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14792 wxPyEndAllowThreads(__tstate);
14793 if (PyErr_Occurred()) SWIG_fail;
14794 }
14795 {
14796 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14797 }
14798 {
14799 if (temp7)
14800 delete arg7;
14801 }
14802 return resultobj;
14803 fail:
14804 {
14805 if (temp7)
14806 delete arg7;
14807 }
14808 return NULL;
14809 }
14810
14811
14812 SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14813 PyObject *resultobj = 0;
14814 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14815 int result;
14816 void *argp1 = 0 ;
14817 int res1 = 0 ;
14818 PyObject *swig_obj[1] ;
14819
14820 if (!args) SWIG_fail;
14821 swig_obj[0] = args;
14822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14823 if (!SWIG_IsOK(res1)) {
14824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14825 }
14826 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14827 {
14828 PyThreadState* __tstate = wxPyBeginAllowThreads();
14829 result = (int)((wxSpinButton const *)arg1)->GetValue();
14830 wxPyEndAllowThreads(__tstate);
14831 if (PyErr_Occurred()) SWIG_fail;
14832 }
14833 resultobj = SWIG_From_int(static_cast< int >(result));
14834 return resultobj;
14835 fail:
14836 return NULL;
14837 }
14838
14839
14840 SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14841 PyObject *resultobj = 0;
14842 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14843 int result;
14844 void *argp1 = 0 ;
14845 int res1 = 0 ;
14846 PyObject *swig_obj[1] ;
14847
14848 if (!args) SWIG_fail;
14849 swig_obj[0] = args;
14850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14851 if (!SWIG_IsOK(res1)) {
14852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14853 }
14854 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14855 {
14856 PyThreadState* __tstate = wxPyBeginAllowThreads();
14857 result = (int)((wxSpinButton const *)arg1)->GetMin();
14858 wxPyEndAllowThreads(__tstate);
14859 if (PyErr_Occurred()) SWIG_fail;
14860 }
14861 resultobj = SWIG_From_int(static_cast< int >(result));
14862 return resultobj;
14863 fail:
14864 return NULL;
14865 }
14866
14867
14868 SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14869 PyObject *resultobj = 0;
14870 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14871 int result;
14872 void *argp1 = 0 ;
14873 int res1 = 0 ;
14874 PyObject *swig_obj[1] ;
14875
14876 if (!args) SWIG_fail;
14877 swig_obj[0] = args;
14878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14879 if (!SWIG_IsOK(res1)) {
14880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14881 }
14882 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14883 {
14884 PyThreadState* __tstate = wxPyBeginAllowThreads();
14885 result = (int)((wxSpinButton const *)arg1)->GetMax();
14886 wxPyEndAllowThreads(__tstate);
14887 if (PyErr_Occurred()) SWIG_fail;
14888 }
14889 resultobj = SWIG_From_int(static_cast< int >(result));
14890 return resultobj;
14891 fail:
14892 return NULL;
14893 }
14894
14895
14896 SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14897 PyObject *resultobj = 0;
14898 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14899 int arg2 ;
14900 void *argp1 = 0 ;
14901 int res1 = 0 ;
14902 int val2 ;
14903 int ecode2 = 0 ;
14904 PyObject * obj0 = 0 ;
14905 PyObject * obj1 = 0 ;
14906 char * kwnames[] = {
14907 (char *) "self",(char *) "val", NULL
14908 };
14909
14910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14912 if (!SWIG_IsOK(res1)) {
14913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14914 }
14915 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14916 ecode2 = SWIG_AsVal_int(obj1, &val2);
14917 if (!SWIG_IsOK(ecode2)) {
14918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14919 }
14920 arg2 = static_cast< int >(val2);
14921 {
14922 PyThreadState* __tstate = wxPyBeginAllowThreads();
14923 (arg1)->SetValue(arg2);
14924 wxPyEndAllowThreads(__tstate);
14925 if (PyErr_Occurred()) SWIG_fail;
14926 }
14927 resultobj = SWIG_Py_Void();
14928 return resultobj;
14929 fail:
14930 return NULL;
14931 }
14932
14933
14934 SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14935 PyObject *resultobj = 0;
14936 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14937 int arg2 ;
14938 void *argp1 = 0 ;
14939 int res1 = 0 ;
14940 int val2 ;
14941 int ecode2 = 0 ;
14942 PyObject * obj0 = 0 ;
14943 PyObject * obj1 = 0 ;
14944 char * kwnames[] = {
14945 (char *) "self",(char *) "minVal", NULL
14946 };
14947
14948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
14949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14950 if (!SWIG_IsOK(res1)) {
14951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14952 }
14953 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14954 ecode2 = SWIG_AsVal_int(obj1, &val2);
14955 if (!SWIG_IsOK(ecode2)) {
14956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
14957 }
14958 arg2 = static_cast< int >(val2);
14959 {
14960 PyThreadState* __tstate = wxPyBeginAllowThreads();
14961 (arg1)->SetMin(arg2);
14962 wxPyEndAllowThreads(__tstate);
14963 if (PyErr_Occurred()) SWIG_fail;
14964 }
14965 resultobj = SWIG_Py_Void();
14966 return resultobj;
14967 fail:
14968 return NULL;
14969 }
14970
14971
14972 SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14973 PyObject *resultobj = 0;
14974 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14975 int arg2 ;
14976 void *argp1 = 0 ;
14977 int res1 = 0 ;
14978 int val2 ;
14979 int ecode2 = 0 ;
14980 PyObject * obj0 = 0 ;
14981 PyObject * obj1 = 0 ;
14982 char * kwnames[] = {
14983 (char *) "self",(char *) "maxVal", NULL
14984 };
14985
14986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
14987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14988 if (!SWIG_IsOK(res1)) {
14989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14990 }
14991 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14992 ecode2 = SWIG_AsVal_int(obj1, &val2);
14993 if (!SWIG_IsOK(ecode2)) {
14994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
14995 }
14996 arg2 = static_cast< int >(val2);
14997 {
14998 PyThreadState* __tstate = wxPyBeginAllowThreads();
14999 (arg1)->SetMax(arg2);
15000 wxPyEndAllowThreads(__tstate);
15001 if (PyErr_Occurred()) SWIG_fail;
15002 }
15003 resultobj = SWIG_Py_Void();
15004 return resultobj;
15005 fail:
15006 return NULL;
15007 }
15008
15009
15010 SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15011 PyObject *resultobj = 0;
15012 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15013 int arg2 ;
15014 int arg3 ;
15015 void *argp1 = 0 ;
15016 int res1 = 0 ;
15017 int val2 ;
15018 int ecode2 = 0 ;
15019 int val3 ;
15020 int ecode3 = 0 ;
15021 PyObject * obj0 = 0 ;
15022 PyObject * obj1 = 0 ;
15023 PyObject * obj2 = 0 ;
15024 char * kwnames[] = {
15025 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15026 };
15027
15028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15030 if (!SWIG_IsOK(res1)) {
15031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15032 }
15033 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15034 ecode2 = SWIG_AsVal_int(obj1, &val2);
15035 if (!SWIG_IsOK(ecode2)) {
15036 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15037 }
15038 arg2 = static_cast< int >(val2);
15039 ecode3 = SWIG_AsVal_int(obj2, &val3);
15040 if (!SWIG_IsOK(ecode3)) {
15041 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15042 }
15043 arg3 = static_cast< int >(val3);
15044 {
15045 PyThreadState* __tstate = wxPyBeginAllowThreads();
15046 (arg1)->SetRange(arg2,arg3);
15047 wxPyEndAllowThreads(__tstate);
15048 if (PyErr_Occurred()) SWIG_fail;
15049 }
15050 resultobj = SWIG_Py_Void();
15051 return resultobj;
15052 fail:
15053 return NULL;
15054 }
15055
15056
15057 SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15058 PyObject *resultobj = 0;
15059 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15060 bool result;
15061 void *argp1 = 0 ;
15062 int res1 = 0 ;
15063 PyObject *swig_obj[1] ;
15064
15065 if (!args) SWIG_fail;
15066 swig_obj[0] = args;
15067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15068 if (!SWIG_IsOK(res1)) {
15069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15070 }
15071 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15072 {
15073 PyThreadState* __tstate = wxPyBeginAllowThreads();
15074 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15075 wxPyEndAllowThreads(__tstate);
15076 if (PyErr_Occurred()) SWIG_fail;
15077 }
15078 {
15079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15080 }
15081 return resultobj;
15082 fail:
15083 return NULL;
15084 }
15085
15086
15087 SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15088 PyObject *resultobj = 0;
15089 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15090 SwigValueWrapper<wxVisualAttributes > result;
15091 int val1 ;
15092 int ecode1 = 0 ;
15093 PyObject * obj0 = 0 ;
15094 char * kwnames[] = {
15095 (char *) "variant", NULL
15096 };
15097
15098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15099 if (obj0) {
15100 ecode1 = SWIG_AsVal_int(obj0, &val1);
15101 if (!SWIG_IsOK(ecode1)) {
15102 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15103 }
15104 arg1 = static_cast< wxWindowVariant >(val1);
15105 }
15106 {
15107 if (!wxPyCheckForApp()) SWIG_fail;
15108 PyThreadState* __tstate = wxPyBeginAllowThreads();
15109 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15110 wxPyEndAllowThreads(__tstate);
15111 if (PyErr_Occurred()) SWIG_fail;
15112 }
15113 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15114 return resultobj;
15115 fail:
15116 return NULL;
15117 }
15118
15119
15120 SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15121 PyObject *obj;
15122 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15123 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15124 return SWIG_Py_Void();
15125 }
15126
15127 SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15128 return SWIG_Python_InitShadowInstance(args);
15129 }
15130
15131 SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15132 PyObject *resultobj = 0;
15133 wxWindow *arg1 = (wxWindow *) 0 ;
15134 int arg2 = (int) -1 ;
15135 wxString const &arg3_defvalue = wxPyEmptyString ;
15136 wxString *arg3 = (wxString *) &arg3_defvalue ;
15137 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15138 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15139 wxSize const &arg5_defvalue = wxDefaultSize ;
15140 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15141 long arg6 = (long) wxSP_ARROW_KEYS ;
15142 int arg7 = (int) 0 ;
15143 int arg8 = (int) 100 ;
15144 int arg9 = (int) 0 ;
15145 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15146 wxString *arg10 = (wxString *) &arg10_defvalue ;
15147 wxSpinCtrl *result = 0 ;
15148 void *argp1 = 0 ;
15149 int res1 = 0 ;
15150 int val2 ;
15151 int ecode2 = 0 ;
15152 bool temp3 = false ;
15153 wxPoint temp4 ;
15154 wxSize temp5 ;
15155 long val6 ;
15156 int ecode6 = 0 ;
15157 int val7 ;
15158 int ecode7 = 0 ;
15159 int val8 ;
15160 int ecode8 = 0 ;
15161 int val9 ;
15162 int ecode9 = 0 ;
15163 bool temp10 = false ;
15164 PyObject * obj0 = 0 ;
15165 PyObject * obj1 = 0 ;
15166 PyObject * obj2 = 0 ;
15167 PyObject * obj3 = 0 ;
15168 PyObject * obj4 = 0 ;
15169 PyObject * obj5 = 0 ;
15170 PyObject * obj6 = 0 ;
15171 PyObject * obj7 = 0 ;
15172 PyObject * obj8 = 0 ;
15173 PyObject * obj9 = 0 ;
15174 char * kwnames[] = {
15175 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15176 };
15177
15178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15180 if (!SWIG_IsOK(res1)) {
15181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15182 }
15183 arg1 = reinterpret_cast< wxWindow * >(argp1);
15184 if (obj1) {
15185 ecode2 = SWIG_AsVal_int(obj1, &val2);
15186 if (!SWIG_IsOK(ecode2)) {
15187 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15188 }
15189 arg2 = static_cast< int >(val2);
15190 }
15191 if (obj2) {
15192 {
15193 arg3 = wxString_in_helper(obj2);
15194 if (arg3 == NULL) SWIG_fail;
15195 temp3 = true;
15196 }
15197 }
15198 if (obj3) {
15199 {
15200 arg4 = &temp4;
15201 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15202 }
15203 }
15204 if (obj4) {
15205 {
15206 arg5 = &temp5;
15207 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15208 }
15209 }
15210 if (obj5) {
15211 ecode6 = SWIG_AsVal_long(obj5, &val6);
15212 if (!SWIG_IsOK(ecode6)) {
15213 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15214 }
15215 arg6 = static_cast< long >(val6);
15216 }
15217 if (obj6) {
15218 ecode7 = SWIG_AsVal_int(obj6, &val7);
15219 if (!SWIG_IsOK(ecode7)) {
15220 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15221 }
15222 arg7 = static_cast< int >(val7);
15223 }
15224 if (obj7) {
15225 ecode8 = SWIG_AsVal_int(obj7, &val8);
15226 if (!SWIG_IsOK(ecode8)) {
15227 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15228 }
15229 arg8 = static_cast< int >(val8);
15230 }
15231 if (obj8) {
15232 ecode9 = SWIG_AsVal_int(obj8, &val9);
15233 if (!SWIG_IsOK(ecode9)) {
15234 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15235 }
15236 arg9 = static_cast< int >(val9);
15237 }
15238 if (obj9) {
15239 {
15240 arg10 = wxString_in_helper(obj9);
15241 if (arg10 == NULL) SWIG_fail;
15242 temp10 = true;
15243 }
15244 }
15245 {
15246 if (!wxPyCheckForApp()) SWIG_fail;
15247 PyThreadState* __tstate = wxPyBeginAllowThreads();
15248 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15249 wxPyEndAllowThreads(__tstate);
15250 if (PyErr_Occurred()) SWIG_fail;
15251 }
15252 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15253 {
15254 if (temp3)
15255 delete arg3;
15256 }
15257 {
15258 if (temp10)
15259 delete arg10;
15260 }
15261 return resultobj;
15262 fail:
15263 {
15264 if (temp3)
15265 delete arg3;
15266 }
15267 {
15268 if (temp10)
15269 delete arg10;
15270 }
15271 return NULL;
15272 }
15273
15274
15275 SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15276 PyObject *resultobj = 0;
15277 wxSpinCtrl *result = 0 ;
15278
15279 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15280 {
15281 if (!wxPyCheckForApp()) SWIG_fail;
15282 PyThreadState* __tstate = wxPyBeginAllowThreads();
15283 result = (wxSpinCtrl *)new wxSpinCtrl();
15284 wxPyEndAllowThreads(__tstate);
15285 if (PyErr_Occurred()) SWIG_fail;
15286 }
15287 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15288 return resultobj;
15289 fail:
15290 return NULL;
15291 }
15292
15293
15294 SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15295 PyObject *resultobj = 0;
15296 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15297 wxWindow *arg2 = (wxWindow *) 0 ;
15298 int arg3 = (int) -1 ;
15299 wxString const &arg4_defvalue = wxPyEmptyString ;
15300 wxString *arg4 = (wxString *) &arg4_defvalue ;
15301 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15302 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15303 wxSize const &arg6_defvalue = wxDefaultSize ;
15304 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15305 long arg7 = (long) wxSP_ARROW_KEYS ;
15306 int arg8 = (int) 0 ;
15307 int arg9 = (int) 100 ;
15308 int arg10 = (int) 0 ;
15309 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15310 wxString *arg11 = (wxString *) &arg11_defvalue ;
15311 bool result;
15312 void *argp1 = 0 ;
15313 int res1 = 0 ;
15314 void *argp2 = 0 ;
15315 int res2 = 0 ;
15316 int val3 ;
15317 int ecode3 = 0 ;
15318 bool temp4 = false ;
15319 wxPoint temp5 ;
15320 wxSize temp6 ;
15321 long val7 ;
15322 int ecode7 = 0 ;
15323 int val8 ;
15324 int ecode8 = 0 ;
15325 int val9 ;
15326 int ecode9 = 0 ;
15327 int val10 ;
15328 int ecode10 = 0 ;
15329 bool temp11 = false ;
15330 PyObject * obj0 = 0 ;
15331 PyObject * obj1 = 0 ;
15332 PyObject * obj2 = 0 ;
15333 PyObject * obj3 = 0 ;
15334 PyObject * obj4 = 0 ;
15335 PyObject * obj5 = 0 ;
15336 PyObject * obj6 = 0 ;
15337 PyObject * obj7 = 0 ;
15338 PyObject * obj8 = 0 ;
15339 PyObject * obj9 = 0 ;
15340 PyObject * obj10 = 0 ;
15341 char * kwnames[] = {
15342 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15343 };
15344
15345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15347 if (!SWIG_IsOK(res1)) {
15348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15349 }
15350 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15351 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15352 if (!SWIG_IsOK(res2)) {
15353 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15354 }
15355 arg2 = reinterpret_cast< wxWindow * >(argp2);
15356 if (obj2) {
15357 ecode3 = SWIG_AsVal_int(obj2, &val3);
15358 if (!SWIG_IsOK(ecode3)) {
15359 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15360 }
15361 arg3 = static_cast< int >(val3);
15362 }
15363 if (obj3) {
15364 {
15365 arg4 = wxString_in_helper(obj3);
15366 if (arg4 == NULL) SWIG_fail;
15367 temp4 = true;
15368 }
15369 }
15370 if (obj4) {
15371 {
15372 arg5 = &temp5;
15373 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15374 }
15375 }
15376 if (obj5) {
15377 {
15378 arg6 = &temp6;
15379 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
15380 }
15381 }
15382 if (obj6) {
15383 ecode7 = SWIG_AsVal_long(obj6, &val7);
15384 if (!SWIG_IsOK(ecode7)) {
15385 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15386 }
15387 arg7 = static_cast< long >(val7);
15388 }
15389 if (obj7) {
15390 ecode8 = SWIG_AsVal_int(obj7, &val8);
15391 if (!SWIG_IsOK(ecode8)) {
15392 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15393 }
15394 arg8 = static_cast< int >(val8);
15395 }
15396 if (obj8) {
15397 ecode9 = SWIG_AsVal_int(obj8, &val9);
15398 if (!SWIG_IsOK(ecode9)) {
15399 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15400 }
15401 arg9 = static_cast< int >(val9);
15402 }
15403 if (obj9) {
15404 ecode10 = SWIG_AsVal_int(obj9, &val10);
15405 if (!SWIG_IsOK(ecode10)) {
15406 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15407 }
15408 arg10 = static_cast< int >(val10);
15409 }
15410 if (obj10) {
15411 {
15412 arg11 = wxString_in_helper(obj10);
15413 if (arg11 == NULL) SWIG_fail;
15414 temp11 = true;
15415 }
15416 }
15417 {
15418 PyThreadState* __tstate = wxPyBeginAllowThreads();
15419 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15420 wxPyEndAllowThreads(__tstate);
15421 if (PyErr_Occurred()) SWIG_fail;
15422 }
15423 {
15424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15425 }
15426 {
15427 if (temp4)
15428 delete arg4;
15429 }
15430 {
15431 if (temp11)
15432 delete arg11;
15433 }
15434 return resultobj;
15435 fail:
15436 {
15437 if (temp4)
15438 delete arg4;
15439 }
15440 {
15441 if (temp11)
15442 delete arg11;
15443 }
15444 return NULL;
15445 }
15446
15447
15448 SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15449 PyObject *resultobj = 0;
15450 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15451 int result;
15452 void *argp1 = 0 ;
15453 int res1 = 0 ;
15454 PyObject *swig_obj[1] ;
15455
15456 if (!args) SWIG_fail;
15457 swig_obj[0] = args;
15458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15459 if (!SWIG_IsOK(res1)) {
15460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15461 }
15462 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15463 {
15464 PyThreadState* __tstate = wxPyBeginAllowThreads();
15465 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15466 wxPyEndAllowThreads(__tstate);
15467 if (PyErr_Occurred()) SWIG_fail;
15468 }
15469 resultobj = SWIG_From_int(static_cast< int >(result));
15470 return resultobj;
15471 fail:
15472 return NULL;
15473 }
15474
15475
15476 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15477 PyObject *resultobj = 0;
15478 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15479 int arg2 ;
15480 void *argp1 = 0 ;
15481 int res1 = 0 ;
15482 int val2 ;
15483 int ecode2 = 0 ;
15484 PyObject * obj0 = 0 ;
15485 PyObject * obj1 = 0 ;
15486 char * kwnames[] = {
15487 (char *) "self",(char *) "value", NULL
15488 };
15489
15490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15492 if (!SWIG_IsOK(res1)) {
15493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15494 }
15495 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15496 ecode2 = SWIG_AsVal_int(obj1, &val2);
15497 if (!SWIG_IsOK(ecode2)) {
15498 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15499 }
15500 arg2 = static_cast< int >(val2);
15501 {
15502 PyThreadState* __tstate = wxPyBeginAllowThreads();
15503 (arg1)->SetValue(arg2);
15504 wxPyEndAllowThreads(__tstate);
15505 if (PyErr_Occurred()) SWIG_fail;
15506 }
15507 resultobj = SWIG_Py_Void();
15508 return resultobj;
15509 fail:
15510 return NULL;
15511 }
15512
15513
15514 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15515 PyObject *resultobj = 0;
15516 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15517 wxString *arg2 = 0 ;
15518 void *argp1 = 0 ;
15519 int res1 = 0 ;
15520 bool temp2 = false ;
15521 PyObject * obj0 = 0 ;
15522 PyObject * obj1 = 0 ;
15523 char * kwnames[] = {
15524 (char *) "self",(char *) "text", NULL
15525 };
15526
15527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15529 if (!SWIG_IsOK(res1)) {
15530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15531 }
15532 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15533 {
15534 arg2 = wxString_in_helper(obj1);
15535 if (arg2 == NULL) SWIG_fail;
15536 temp2 = true;
15537 }
15538 {
15539 PyThreadState* __tstate = wxPyBeginAllowThreads();
15540 (arg1)->SetValue((wxString const &)*arg2);
15541 wxPyEndAllowThreads(__tstate);
15542 if (PyErr_Occurred()) SWIG_fail;
15543 }
15544 resultobj = SWIG_Py_Void();
15545 {
15546 if (temp2)
15547 delete arg2;
15548 }
15549 return resultobj;
15550 fail:
15551 {
15552 if (temp2)
15553 delete arg2;
15554 }
15555 return NULL;
15556 }
15557
15558
15559 SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15560 PyObject *resultobj = 0;
15561 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15562 int arg2 ;
15563 int arg3 ;
15564 void *argp1 = 0 ;
15565 int res1 = 0 ;
15566 int val2 ;
15567 int ecode2 = 0 ;
15568 int val3 ;
15569 int ecode3 = 0 ;
15570 PyObject * obj0 = 0 ;
15571 PyObject * obj1 = 0 ;
15572 PyObject * obj2 = 0 ;
15573 char * kwnames[] = {
15574 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15575 };
15576
15577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",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_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15581 }
15582 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15583 ecode2 = SWIG_AsVal_int(obj1, &val2);
15584 if (!SWIG_IsOK(ecode2)) {
15585 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15586 }
15587 arg2 = static_cast< int >(val2);
15588 ecode3 = SWIG_AsVal_int(obj2, &val3);
15589 if (!SWIG_IsOK(ecode3)) {
15590 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15591 }
15592 arg3 = static_cast< int >(val3);
15593 {
15594 PyThreadState* __tstate = wxPyBeginAllowThreads();
15595 (arg1)->SetRange(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_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15607 PyObject *resultobj = 0;
15608 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15609 int result;
15610 void *argp1 = 0 ;
15611 int res1 = 0 ;
15612 PyObject *swig_obj[1] ;
15613
15614 if (!args) SWIG_fail;
15615 swig_obj[0] = args;
15616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15617 if (!SWIG_IsOK(res1)) {
15618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15619 }
15620 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15621 {
15622 PyThreadState* __tstate = wxPyBeginAllowThreads();
15623 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15624 wxPyEndAllowThreads(__tstate);
15625 if (PyErr_Occurred()) SWIG_fail;
15626 }
15627 resultobj = SWIG_From_int(static_cast< int >(result));
15628 return resultobj;
15629 fail:
15630 return NULL;
15631 }
15632
15633
15634 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15635 PyObject *resultobj = 0;
15636 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15637 int result;
15638 void *argp1 = 0 ;
15639 int res1 = 0 ;
15640 PyObject *swig_obj[1] ;
15641
15642 if (!args) SWIG_fail;
15643 swig_obj[0] = args;
15644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15645 if (!SWIG_IsOK(res1)) {
15646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15647 }
15648 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15649 {
15650 PyThreadState* __tstate = wxPyBeginAllowThreads();
15651 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15652 wxPyEndAllowThreads(__tstate);
15653 if (PyErr_Occurred()) SWIG_fail;
15654 }
15655 resultobj = SWIG_From_int(static_cast< int >(result));
15656 return resultobj;
15657 fail:
15658 return NULL;
15659 }
15660
15661
15662 SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15663 PyObject *resultobj = 0;
15664 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15665 long arg2 ;
15666 long arg3 ;
15667 void *argp1 = 0 ;
15668 int res1 = 0 ;
15669 long val2 ;
15670 int ecode2 = 0 ;
15671 long val3 ;
15672 int ecode3 = 0 ;
15673 PyObject * obj0 = 0 ;
15674 PyObject * obj1 = 0 ;
15675 PyObject * obj2 = 0 ;
15676 char * kwnames[] = {
15677 (char *) "self",(char *) "from",(char *) "to", NULL
15678 };
15679
15680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15682 if (!SWIG_IsOK(res1)) {
15683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15684 }
15685 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15686 ecode2 = SWIG_AsVal_long(obj1, &val2);
15687 if (!SWIG_IsOK(ecode2)) {
15688 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15689 }
15690 arg2 = static_cast< long >(val2);
15691 ecode3 = SWIG_AsVal_long(obj2, &val3);
15692 if (!SWIG_IsOK(ecode3)) {
15693 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15694 }
15695 arg3 = static_cast< long >(val3);
15696 {
15697 PyThreadState* __tstate = wxPyBeginAllowThreads();
15698 (arg1)->SetSelection(arg2,arg3);
15699 wxPyEndAllowThreads(__tstate);
15700 if (PyErr_Occurred()) SWIG_fail;
15701 }
15702 resultobj = SWIG_Py_Void();
15703 return resultobj;
15704 fail:
15705 return NULL;
15706 }
15707
15708
15709 SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15710 PyObject *resultobj = 0;
15711 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15712 SwigValueWrapper<wxVisualAttributes > result;
15713 int val1 ;
15714 int ecode1 = 0 ;
15715 PyObject * obj0 = 0 ;
15716 char * kwnames[] = {
15717 (char *) "variant", NULL
15718 };
15719
15720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15721 if (obj0) {
15722 ecode1 = SWIG_AsVal_int(obj0, &val1);
15723 if (!SWIG_IsOK(ecode1)) {
15724 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15725 }
15726 arg1 = static_cast< wxWindowVariant >(val1);
15727 }
15728 {
15729 if (!wxPyCheckForApp()) SWIG_fail;
15730 PyThreadState* __tstate = wxPyBeginAllowThreads();
15731 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15732 wxPyEndAllowThreads(__tstate);
15733 if (PyErr_Occurred()) SWIG_fail;
15734 }
15735 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15736 return resultobj;
15737 fail:
15738 return NULL;
15739 }
15740
15741
15742 SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15743 PyObject *obj;
15744 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15745 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15746 return SWIG_Py_Void();
15747 }
15748
15749 SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15750 return SWIG_Python_InitShadowInstance(args);
15751 }
15752
15753 SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15754 PyObject *resultobj = 0;
15755 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15756 int arg2 = (int) 0 ;
15757 wxSpinEvent *result = 0 ;
15758 int val1 ;
15759 int ecode1 = 0 ;
15760 int val2 ;
15761 int ecode2 = 0 ;
15762 PyObject * obj0 = 0 ;
15763 PyObject * obj1 = 0 ;
15764 char * kwnames[] = {
15765 (char *) "commandType",(char *) "winid", NULL
15766 };
15767
15768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15769 if (obj0) {
15770 ecode1 = SWIG_AsVal_int(obj0, &val1);
15771 if (!SWIG_IsOK(ecode1)) {
15772 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15773 }
15774 arg1 = static_cast< wxEventType >(val1);
15775 }
15776 if (obj1) {
15777 ecode2 = SWIG_AsVal_int(obj1, &val2);
15778 if (!SWIG_IsOK(ecode2)) {
15779 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15780 }
15781 arg2 = static_cast< int >(val2);
15782 }
15783 {
15784 PyThreadState* __tstate = wxPyBeginAllowThreads();
15785 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15786 wxPyEndAllowThreads(__tstate);
15787 if (PyErr_Occurred()) SWIG_fail;
15788 }
15789 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15790 return resultobj;
15791 fail:
15792 return NULL;
15793 }
15794
15795
15796 SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15797 PyObject *resultobj = 0;
15798 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15799 int result;
15800 void *argp1 = 0 ;
15801 int res1 = 0 ;
15802 PyObject *swig_obj[1] ;
15803
15804 if (!args) SWIG_fail;
15805 swig_obj[0] = args;
15806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15807 if (!SWIG_IsOK(res1)) {
15808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15809 }
15810 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15811 {
15812 PyThreadState* __tstate = wxPyBeginAllowThreads();
15813 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15814 wxPyEndAllowThreads(__tstate);
15815 if (PyErr_Occurred()) SWIG_fail;
15816 }
15817 resultobj = SWIG_From_int(static_cast< int >(result));
15818 return resultobj;
15819 fail:
15820 return NULL;
15821 }
15822
15823
15824 SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15825 PyObject *resultobj = 0;
15826 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15827 int arg2 ;
15828 void *argp1 = 0 ;
15829 int res1 = 0 ;
15830 int val2 ;
15831 int ecode2 = 0 ;
15832 PyObject * obj0 = 0 ;
15833 PyObject * obj1 = 0 ;
15834 char * kwnames[] = {
15835 (char *) "self",(char *) "pos", NULL
15836 };
15837
15838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15840 if (!SWIG_IsOK(res1)) {
15841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15842 }
15843 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15844 ecode2 = SWIG_AsVal_int(obj1, &val2);
15845 if (!SWIG_IsOK(ecode2)) {
15846 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15847 }
15848 arg2 = static_cast< int >(val2);
15849 {
15850 PyThreadState* __tstate = wxPyBeginAllowThreads();
15851 (arg1)->SetPosition(arg2);
15852 wxPyEndAllowThreads(__tstate);
15853 if (PyErr_Occurred()) SWIG_fail;
15854 }
15855 resultobj = SWIG_Py_Void();
15856 return resultobj;
15857 fail:
15858 return NULL;
15859 }
15860
15861
15862 SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15863 PyObject *obj;
15864 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15865 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15866 return SWIG_Py_Void();
15867 }
15868
15869 SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15870 return SWIG_Python_InitShadowInstance(args);
15871 }
15872
15873 SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15874 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15875 return 1;
15876 }
15877
15878
15879 SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15880 PyObject *pyobj = 0;
15881
15882 {
15883 #if wxUSE_UNICODE
15884 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15885 #else
15886 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15887 #endif
15888 }
15889 return pyobj;
15890 }
15891
15892
15893 SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15894 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15895 return 1;
15896 }
15897
15898
15899 SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15900 PyObject *pyobj = 0;
15901
15902 {
15903 #if wxUSE_UNICODE
15904 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15905 #else
15906 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15907 #endif
15908 }
15909 return pyobj;
15910 }
15911
15912
15913 SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15914 PyObject *resultobj = 0;
15915 wxWindow *arg1 = (wxWindow *) 0 ;
15916 int arg2 = (int) -1 ;
15917 wxString const &arg3_defvalue = wxPyEmptyString ;
15918 wxString *arg3 = (wxString *) &arg3_defvalue ;
15919 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15920 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15921 wxSize const &arg5_defvalue = wxDefaultSize ;
15922 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15923 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
15924 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
15925 int arg7 = (int) 0 ;
15926 long arg8 = (long) wxRA_HORIZONTAL ;
15927 wxValidator const &arg9_defvalue = wxDefaultValidator ;
15928 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
15929 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
15930 wxString *arg10 = (wxString *) &arg10_defvalue ;
15931 wxRadioBox *result = 0 ;
15932 void *argp1 = 0 ;
15933 int res1 = 0 ;
15934 int val2 ;
15935 int ecode2 = 0 ;
15936 bool temp3 = false ;
15937 wxPoint temp4 ;
15938 wxSize temp5 ;
15939 bool temp6 = false ;
15940 int val7 ;
15941 int ecode7 = 0 ;
15942 long val8 ;
15943 int ecode8 = 0 ;
15944 void *argp9 = 0 ;
15945 int res9 = 0 ;
15946 bool temp10 = false ;
15947 PyObject * obj0 = 0 ;
15948 PyObject * obj1 = 0 ;
15949 PyObject * obj2 = 0 ;
15950 PyObject * obj3 = 0 ;
15951 PyObject * obj4 = 0 ;
15952 PyObject * obj5 = 0 ;
15953 PyObject * obj6 = 0 ;
15954 PyObject * obj7 = 0 ;
15955 PyObject * obj8 = 0 ;
15956 PyObject * obj9 = 0 ;
15957 char * kwnames[] = {
15958 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
15959 };
15960
15961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15963 if (!SWIG_IsOK(res1)) {
15964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
15965 }
15966 arg1 = reinterpret_cast< wxWindow * >(argp1);
15967 if (obj1) {
15968 ecode2 = SWIG_AsVal_int(obj1, &val2);
15969 if (!SWIG_IsOK(ecode2)) {
15970 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
15971 }
15972 arg2 = static_cast< int >(val2);
15973 }
15974 if (obj2) {
15975 {
15976 arg3 = wxString_in_helper(obj2);
15977 if (arg3 == NULL) SWIG_fail;
15978 temp3 = true;
15979 }
15980 }
15981 if (obj3) {
15982 {
15983 arg4 = &temp4;
15984 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15985 }
15986 }
15987 if (obj4) {
15988 {
15989 arg5 = &temp5;
15990 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15991 }
15992 }
15993 if (obj5) {
15994 {
15995 if (! PySequence_Check(obj5)) {
15996 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
15997 SWIG_fail;
15998 }
15999 arg6 = new wxArrayString;
16000 temp6 = true;
16001 int i, len=PySequence_Length(obj5);
16002 for (i=0; i<len; i++) {
16003 PyObject* item = PySequence_GetItem(obj5, i);
16004 wxString* s = wxString_in_helper(item);
16005 if (PyErr_Occurred()) SWIG_fail;
16006 arg6->Add(*s);
16007 delete s;
16008 Py_DECREF(item);
16009 }
16010 }
16011 }
16012 if (obj6) {
16013 ecode7 = SWIG_AsVal_int(obj6, &val7);
16014 if (!SWIG_IsOK(ecode7)) {
16015 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16016 }
16017 arg7 = static_cast< int >(val7);
16018 }
16019 if (obj7) {
16020 ecode8 = SWIG_AsVal_long(obj7, &val8);
16021 if (!SWIG_IsOK(ecode8)) {
16022 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16023 }
16024 arg8 = static_cast< long >(val8);
16025 }
16026 if (obj8) {
16027 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16028 if (!SWIG_IsOK(res9)) {
16029 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16030 }
16031 if (!argp9) {
16032 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16033 }
16034 arg9 = reinterpret_cast< wxValidator * >(argp9);
16035 }
16036 if (obj9) {
16037 {
16038 arg10 = wxString_in_helper(obj9);
16039 if (arg10 == NULL) SWIG_fail;
16040 temp10 = true;
16041 }
16042 }
16043 {
16044 if (!wxPyCheckForApp()) SWIG_fail;
16045 PyThreadState* __tstate = wxPyBeginAllowThreads();
16046 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);
16047 wxPyEndAllowThreads(__tstate);
16048 if (PyErr_Occurred()) SWIG_fail;
16049 }
16050 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16051 {
16052 if (temp3)
16053 delete arg3;
16054 }
16055 {
16056 if (temp6) delete arg6;
16057 }
16058 {
16059 if (temp10)
16060 delete arg10;
16061 }
16062 return resultobj;
16063 fail:
16064 {
16065 if (temp3)
16066 delete arg3;
16067 }
16068 {
16069 if (temp6) delete arg6;
16070 }
16071 {
16072 if (temp10)
16073 delete arg10;
16074 }
16075 return NULL;
16076 }
16077
16078
16079 SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16080 PyObject *resultobj = 0;
16081 wxRadioBox *result = 0 ;
16082
16083 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16084 {
16085 if (!wxPyCheckForApp()) SWIG_fail;
16086 PyThreadState* __tstate = wxPyBeginAllowThreads();
16087 result = (wxRadioBox *)new wxRadioBox();
16088 wxPyEndAllowThreads(__tstate);
16089 if (PyErr_Occurred()) SWIG_fail;
16090 }
16091 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16092 return resultobj;
16093 fail:
16094 return NULL;
16095 }
16096
16097
16098 SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16099 PyObject *resultobj = 0;
16100 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16101 wxWindow *arg2 = (wxWindow *) 0 ;
16102 int arg3 = (int) -1 ;
16103 wxString const &arg4_defvalue = wxPyEmptyString ;
16104 wxString *arg4 = (wxString *) &arg4_defvalue ;
16105 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16106 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16107 wxSize const &arg6_defvalue = wxDefaultSize ;
16108 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16109 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16110 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16111 int arg8 = (int) 0 ;
16112 long arg9 = (long) wxRA_HORIZONTAL ;
16113 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16114 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16115 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16116 wxString *arg11 = (wxString *) &arg11_defvalue ;
16117 bool result;
16118 void *argp1 = 0 ;
16119 int res1 = 0 ;
16120 void *argp2 = 0 ;
16121 int res2 = 0 ;
16122 int val3 ;
16123 int ecode3 = 0 ;
16124 bool temp4 = false ;
16125 wxPoint temp5 ;
16126 wxSize temp6 ;
16127 bool temp7 = false ;
16128 int val8 ;
16129 int ecode8 = 0 ;
16130 long val9 ;
16131 int ecode9 = 0 ;
16132 void *argp10 = 0 ;
16133 int res10 = 0 ;
16134 bool temp11 = false ;
16135 PyObject * obj0 = 0 ;
16136 PyObject * obj1 = 0 ;
16137 PyObject * obj2 = 0 ;
16138 PyObject * obj3 = 0 ;
16139 PyObject * obj4 = 0 ;
16140 PyObject * obj5 = 0 ;
16141 PyObject * obj6 = 0 ;
16142 PyObject * obj7 = 0 ;
16143 PyObject * obj8 = 0 ;
16144 PyObject * obj9 = 0 ;
16145 PyObject * obj10 = 0 ;
16146 char * kwnames[] = {
16147 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16148 };
16149
16150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16152 if (!SWIG_IsOK(res1)) {
16153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16154 }
16155 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16156 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16157 if (!SWIG_IsOK(res2)) {
16158 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16159 }
16160 arg2 = reinterpret_cast< wxWindow * >(argp2);
16161 if (obj2) {
16162 ecode3 = SWIG_AsVal_int(obj2, &val3);
16163 if (!SWIG_IsOK(ecode3)) {
16164 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16165 }
16166 arg3 = static_cast< int >(val3);
16167 }
16168 if (obj3) {
16169 {
16170 arg4 = wxString_in_helper(obj3);
16171 if (arg4 == NULL) SWIG_fail;
16172 temp4 = true;
16173 }
16174 }
16175 if (obj4) {
16176 {
16177 arg5 = &temp5;
16178 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16179 }
16180 }
16181 if (obj5) {
16182 {
16183 arg6 = &temp6;
16184 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
16185 }
16186 }
16187 if (obj6) {
16188 {
16189 if (! PySequence_Check(obj6)) {
16190 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16191 SWIG_fail;
16192 }
16193 arg7 = new wxArrayString;
16194 temp7 = true;
16195 int i, len=PySequence_Length(obj6);
16196 for (i=0; i<len; i++) {
16197 PyObject* item = PySequence_GetItem(obj6, i);
16198 wxString* s = wxString_in_helper(item);
16199 if (PyErr_Occurred()) SWIG_fail;
16200 arg7->Add(*s);
16201 delete s;
16202 Py_DECREF(item);
16203 }
16204 }
16205 }
16206 if (obj7) {
16207 ecode8 = SWIG_AsVal_int(obj7, &val8);
16208 if (!SWIG_IsOK(ecode8)) {
16209 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16210 }
16211 arg8 = static_cast< int >(val8);
16212 }
16213 if (obj8) {
16214 ecode9 = SWIG_AsVal_long(obj8, &val9);
16215 if (!SWIG_IsOK(ecode9)) {
16216 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16217 }
16218 arg9 = static_cast< long >(val9);
16219 }
16220 if (obj9) {
16221 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16222 if (!SWIG_IsOK(res10)) {
16223 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16224 }
16225 if (!argp10) {
16226 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16227 }
16228 arg10 = reinterpret_cast< wxValidator * >(argp10);
16229 }
16230 if (obj10) {
16231 {
16232 arg11 = wxString_in_helper(obj10);
16233 if (arg11 == NULL) SWIG_fail;
16234 temp11 = true;
16235 }
16236 }
16237 {
16238 PyThreadState* __tstate = wxPyBeginAllowThreads();
16239 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);
16240 wxPyEndAllowThreads(__tstate);
16241 if (PyErr_Occurred()) SWIG_fail;
16242 }
16243 {
16244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16245 }
16246 {
16247 if (temp4)
16248 delete arg4;
16249 }
16250 {
16251 if (temp7) delete arg7;
16252 }
16253 {
16254 if (temp11)
16255 delete arg11;
16256 }
16257 return resultobj;
16258 fail:
16259 {
16260 if (temp4)
16261 delete arg4;
16262 }
16263 {
16264 if (temp7) delete arg7;
16265 }
16266 {
16267 if (temp11)
16268 delete arg11;
16269 }
16270 return NULL;
16271 }
16272
16273
16274 SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16275 PyObject *resultobj = 0;
16276 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16277 int arg2 ;
16278 void *argp1 = 0 ;
16279 int res1 = 0 ;
16280 int val2 ;
16281 int ecode2 = 0 ;
16282 PyObject * obj0 = 0 ;
16283 PyObject * obj1 = 0 ;
16284 char * kwnames[] = {
16285 (char *) "self",(char *) "n", NULL
16286 };
16287
16288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16290 if (!SWIG_IsOK(res1)) {
16291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16292 }
16293 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16294 ecode2 = SWIG_AsVal_int(obj1, &val2);
16295 if (!SWIG_IsOK(ecode2)) {
16296 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16297 }
16298 arg2 = static_cast< int >(val2);
16299 {
16300 PyThreadState* __tstate = wxPyBeginAllowThreads();
16301 (arg1)->SetSelection(arg2);
16302 wxPyEndAllowThreads(__tstate);
16303 if (PyErr_Occurred()) SWIG_fail;
16304 }
16305 resultobj = SWIG_Py_Void();
16306 return resultobj;
16307 fail:
16308 return NULL;
16309 }
16310
16311
16312 SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16313 PyObject *resultobj = 0;
16314 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16315 int result;
16316 void *argp1 = 0 ;
16317 int res1 = 0 ;
16318 PyObject *swig_obj[1] ;
16319
16320 if (!args) SWIG_fail;
16321 swig_obj[0] = args;
16322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16323 if (!SWIG_IsOK(res1)) {
16324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16325 }
16326 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16327 {
16328 PyThreadState* __tstate = wxPyBeginAllowThreads();
16329 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16330 wxPyEndAllowThreads(__tstate);
16331 if (PyErr_Occurred()) SWIG_fail;
16332 }
16333 resultobj = SWIG_From_int(static_cast< int >(result));
16334 return resultobj;
16335 fail:
16336 return NULL;
16337 }
16338
16339
16340 SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16341 PyObject *resultobj = 0;
16342 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16343 wxString result;
16344 void *argp1 = 0 ;
16345 int res1 = 0 ;
16346 PyObject *swig_obj[1] ;
16347
16348 if (!args) SWIG_fail;
16349 swig_obj[0] = args;
16350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16351 if (!SWIG_IsOK(res1)) {
16352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16353 }
16354 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16355 {
16356 PyThreadState* __tstate = wxPyBeginAllowThreads();
16357 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16358 wxPyEndAllowThreads(__tstate);
16359 if (PyErr_Occurred()) SWIG_fail;
16360 }
16361 {
16362 #if wxUSE_UNICODE
16363 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16364 #else
16365 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16366 #endif
16367 }
16368 return resultobj;
16369 fail:
16370 return NULL;
16371 }
16372
16373
16374 SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16375 PyObject *resultobj = 0;
16376 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16377 wxString *arg2 = 0 ;
16378 bool result;
16379 void *argp1 = 0 ;
16380 int res1 = 0 ;
16381 bool temp2 = false ;
16382 PyObject * obj0 = 0 ;
16383 PyObject * obj1 = 0 ;
16384 char * kwnames[] = {
16385 (char *) "self",(char *) "s", NULL
16386 };
16387
16388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16390 if (!SWIG_IsOK(res1)) {
16391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16392 }
16393 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16394 {
16395 arg2 = wxString_in_helper(obj1);
16396 if (arg2 == NULL) SWIG_fail;
16397 temp2 = true;
16398 }
16399 {
16400 PyThreadState* __tstate = wxPyBeginAllowThreads();
16401 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16402 wxPyEndAllowThreads(__tstate);
16403 if (PyErr_Occurred()) SWIG_fail;
16404 }
16405 {
16406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16407 }
16408 {
16409 if (temp2)
16410 delete arg2;
16411 }
16412 return resultobj;
16413 fail:
16414 {
16415 if (temp2)
16416 delete arg2;
16417 }
16418 return NULL;
16419 }
16420
16421
16422 SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16423 PyObject *resultobj = 0;
16424 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16425 size_t result;
16426 void *argp1 = 0 ;
16427 int res1 = 0 ;
16428 PyObject *swig_obj[1] ;
16429
16430 if (!args) SWIG_fail;
16431 swig_obj[0] = args;
16432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16433 if (!SWIG_IsOK(res1)) {
16434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16435 }
16436 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16437 {
16438 PyThreadState* __tstate = wxPyBeginAllowThreads();
16439 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
16440 wxPyEndAllowThreads(__tstate);
16441 if (PyErr_Occurred()) SWIG_fail;
16442 }
16443 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
16444 return resultobj;
16445 fail:
16446 return NULL;
16447 }
16448
16449
16450 SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16451 PyObject *resultobj = 0;
16452 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16453 wxString *arg2 = 0 ;
16454 int result;
16455 void *argp1 = 0 ;
16456 int res1 = 0 ;
16457 bool temp2 = false ;
16458 PyObject * obj0 = 0 ;
16459 PyObject * obj1 = 0 ;
16460 char * kwnames[] = {
16461 (char *) "self",(char *) "s", NULL
16462 };
16463
16464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16466 if (!SWIG_IsOK(res1)) {
16467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16468 }
16469 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16470 {
16471 arg2 = wxString_in_helper(obj1);
16472 if (arg2 == NULL) SWIG_fail;
16473 temp2 = true;
16474 }
16475 {
16476 PyThreadState* __tstate = wxPyBeginAllowThreads();
16477 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16478 wxPyEndAllowThreads(__tstate);
16479 if (PyErr_Occurred()) SWIG_fail;
16480 }
16481 resultobj = SWIG_From_int(static_cast< int >(result));
16482 {
16483 if (temp2)
16484 delete arg2;
16485 }
16486 return resultobj;
16487 fail:
16488 {
16489 if (temp2)
16490 delete arg2;
16491 }
16492 return NULL;
16493 }
16494
16495
16496 SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16497 PyObject *resultobj = 0;
16498 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16499 int arg2 ;
16500 wxString result;
16501 void *argp1 = 0 ;
16502 int res1 = 0 ;
16503 int val2 ;
16504 int ecode2 = 0 ;
16505 PyObject * obj0 = 0 ;
16506 PyObject * obj1 = 0 ;
16507 char * kwnames[] = {
16508 (char *) "self",(char *) "n", NULL
16509 };
16510
16511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16513 if (!SWIG_IsOK(res1)) {
16514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16515 }
16516 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16517 ecode2 = SWIG_AsVal_int(obj1, &val2);
16518 if (!SWIG_IsOK(ecode2)) {
16519 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16520 }
16521 arg2 = static_cast< int >(val2);
16522 {
16523 PyThreadState* __tstate = wxPyBeginAllowThreads();
16524 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16525 wxPyEndAllowThreads(__tstate);
16526 if (PyErr_Occurred()) SWIG_fail;
16527 }
16528 {
16529 #if wxUSE_UNICODE
16530 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16531 #else
16532 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16533 #endif
16534 }
16535 return resultobj;
16536 fail:
16537 return NULL;
16538 }
16539
16540
16541 SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16542 PyObject *resultobj = 0;
16543 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16544 int arg2 ;
16545 wxString *arg3 = 0 ;
16546 void *argp1 = 0 ;
16547 int res1 = 0 ;
16548 int val2 ;
16549 int ecode2 = 0 ;
16550 bool temp3 = false ;
16551 PyObject * obj0 = 0 ;
16552 PyObject * obj1 = 0 ;
16553 PyObject * obj2 = 0 ;
16554 char * kwnames[] = {
16555 (char *) "self",(char *) "n",(char *) "label", NULL
16556 };
16557
16558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16560 if (!SWIG_IsOK(res1)) {
16561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16562 }
16563 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16564 ecode2 = SWIG_AsVal_int(obj1, &val2);
16565 if (!SWIG_IsOK(ecode2)) {
16566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16567 }
16568 arg2 = static_cast< int >(val2);
16569 {
16570 arg3 = wxString_in_helper(obj2);
16571 if (arg3 == NULL) SWIG_fail;
16572 temp3 = true;
16573 }
16574 {
16575 PyThreadState* __tstate = wxPyBeginAllowThreads();
16576 (arg1)->SetString(arg2,(wxString const &)*arg3);
16577 wxPyEndAllowThreads(__tstate);
16578 if (PyErr_Occurred()) SWIG_fail;
16579 }
16580 resultobj = SWIG_Py_Void();
16581 {
16582 if (temp3)
16583 delete arg3;
16584 }
16585 return resultobj;
16586 fail:
16587 {
16588 if (temp3)
16589 delete arg3;
16590 }
16591 return NULL;
16592 }
16593
16594
16595 SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16596 PyObject *resultobj = 0;
16597 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16598 unsigned int arg2 ;
16599 bool arg3 = (bool) true ;
16600 void *argp1 = 0 ;
16601 int res1 = 0 ;
16602 unsigned int val2 ;
16603 int ecode2 = 0 ;
16604 bool val3 ;
16605 int ecode3 = 0 ;
16606 PyObject * obj0 = 0 ;
16607 PyObject * obj1 = 0 ;
16608 PyObject * obj2 = 0 ;
16609 char * kwnames[] = {
16610 (char *) "self",(char *) "n",(char *) "enable", NULL
16611 };
16612
16613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16615 if (!SWIG_IsOK(res1)) {
16616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16617 }
16618 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16619 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16620 if (!SWIG_IsOK(ecode2)) {
16621 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
16622 }
16623 arg2 = static_cast< unsigned int >(val2);
16624 if (obj2) {
16625 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16626 if (!SWIG_IsOK(ecode3)) {
16627 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16628 }
16629 arg3 = static_cast< bool >(val3);
16630 }
16631 {
16632 PyThreadState* __tstate = wxPyBeginAllowThreads();
16633 (arg1)->Enable(arg2,arg3);
16634 wxPyEndAllowThreads(__tstate);
16635 if (PyErr_Occurred()) SWIG_fail;
16636 }
16637 resultobj = SWIG_Py_Void();
16638 return resultobj;
16639 fail:
16640 return NULL;
16641 }
16642
16643
16644 SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16645 PyObject *resultobj = 0;
16646 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16647 unsigned int arg2 ;
16648 bool arg3 = (bool) true ;
16649 void *argp1 = 0 ;
16650 int res1 = 0 ;
16651 unsigned int val2 ;
16652 int ecode2 = 0 ;
16653 bool val3 ;
16654 int ecode3 = 0 ;
16655 PyObject * obj0 = 0 ;
16656 PyObject * obj1 = 0 ;
16657 PyObject * obj2 = 0 ;
16658 char * kwnames[] = {
16659 (char *) "self",(char *) "n",(char *) "show", NULL
16660 };
16661
16662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16664 if (!SWIG_IsOK(res1)) {
16665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16666 }
16667 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16668 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16669 if (!SWIG_IsOK(ecode2)) {
16670 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
16671 }
16672 arg2 = static_cast< unsigned int >(val2);
16673 if (obj2) {
16674 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16675 if (!SWIG_IsOK(ecode3)) {
16676 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16677 }
16678 arg3 = static_cast< bool >(val3);
16679 }
16680 {
16681 PyThreadState* __tstate = wxPyBeginAllowThreads();
16682 (arg1)->Show(arg2,arg3);
16683 wxPyEndAllowThreads(__tstate);
16684 if (PyErr_Occurred()) SWIG_fail;
16685 }
16686 resultobj = SWIG_Py_Void();
16687 return resultobj;
16688 fail:
16689 return NULL;
16690 }
16691
16692
16693 SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16694 PyObject *resultobj = 0;
16695 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16696 unsigned int arg2 ;
16697 bool result;
16698 void *argp1 = 0 ;
16699 int res1 = 0 ;
16700 unsigned int val2 ;
16701 int ecode2 = 0 ;
16702 PyObject * obj0 = 0 ;
16703 PyObject * obj1 = 0 ;
16704 char * kwnames[] = {
16705 (char *) "self",(char *) "n", NULL
16706 };
16707
16708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16710 if (!SWIG_IsOK(res1)) {
16711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16712 }
16713 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16714 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16715 if (!SWIG_IsOK(ecode2)) {
16716 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16717 }
16718 arg2 = static_cast< unsigned int >(val2);
16719 {
16720 PyThreadState* __tstate = wxPyBeginAllowThreads();
16721 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16722 wxPyEndAllowThreads(__tstate);
16723 if (PyErr_Occurred()) SWIG_fail;
16724 }
16725 {
16726 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16727 }
16728 return resultobj;
16729 fail:
16730 return NULL;
16731 }
16732
16733
16734 SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16735 PyObject *resultobj = 0;
16736 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16737 unsigned int arg2 ;
16738 bool result;
16739 void *argp1 = 0 ;
16740 int res1 = 0 ;
16741 unsigned int val2 ;
16742 int ecode2 = 0 ;
16743 PyObject * obj0 = 0 ;
16744 PyObject * obj1 = 0 ;
16745 char * kwnames[] = {
16746 (char *) "self",(char *) "n", NULL
16747 };
16748
16749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16751 if (!SWIG_IsOK(res1)) {
16752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16753 }
16754 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16755 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16756 if (!SWIG_IsOK(ecode2)) {
16757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16758 }
16759 arg2 = static_cast< unsigned int >(val2);
16760 {
16761 PyThreadState* __tstate = wxPyBeginAllowThreads();
16762 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16763 wxPyEndAllowThreads(__tstate);
16764 if (PyErr_Occurred()) SWIG_fail;
16765 }
16766 {
16767 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16768 }
16769 return resultobj;
16770 fail:
16771 return NULL;
16772 }
16773
16774
16775 SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16776 PyObject *resultobj = 0;
16777 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16778 unsigned int result;
16779 void *argp1 = 0 ;
16780 int res1 = 0 ;
16781 PyObject *swig_obj[1] ;
16782
16783 if (!args) SWIG_fail;
16784 swig_obj[0] = args;
16785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16786 if (!SWIG_IsOK(res1)) {
16787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16788 }
16789 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16790 {
16791 PyThreadState* __tstate = wxPyBeginAllowThreads();
16792 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
16793 wxPyEndAllowThreads(__tstate);
16794 if (PyErr_Occurred()) SWIG_fail;
16795 }
16796 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16797 return resultobj;
16798 fail:
16799 return NULL;
16800 }
16801
16802
16803 SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16804 PyObject *resultobj = 0;
16805 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16806 unsigned int result;
16807 void *argp1 = 0 ;
16808 int res1 = 0 ;
16809 PyObject *swig_obj[1] ;
16810
16811 if (!args) SWIG_fail;
16812 swig_obj[0] = args;
16813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16814 if (!SWIG_IsOK(res1)) {
16815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16816 }
16817 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16818 {
16819 PyThreadState* __tstate = wxPyBeginAllowThreads();
16820 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
16821 wxPyEndAllowThreads(__tstate);
16822 if (PyErr_Occurred()) SWIG_fail;
16823 }
16824 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16825 return resultobj;
16826 fail:
16827 return NULL;
16828 }
16829
16830
16831 SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16832 PyObject *resultobj = 0;
16833 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16834 int arg2 ;
16835 wxDirection arg3 ;
16836 long arg4 ;
16837 int result;
16838 void *argp1 = 0 ;
16839 int res1 = 0 ;
16840 int val2 ;
16841 int ecode2 = 0 ;
16842 int val3 ;
16843 int ecode3 = 0 ;
16844 long val4 ;
16845 int ecode4 = 0 ;
16846 PyObject * obj0 = 0 ;
16847 PyObject * obj1 = 0 ;
16848 PyObject * obj2 = 0 ;
16849 PyObject * obj3 = 0 ;
16850 char * kwnames[] = {
16851 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16852 };
16853
16854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16856 if (!SWIG_IsOK(res1)) {
16857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16858 }
16859 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16860 ecode2 = SWIG_AsVal_int(obj1, &val2);
16861 if (!SWIG_IsOK(ecode2)) {
16862 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16863 }
16864 arg2 = static_cast< int >(val2);
16865 ecode3 = SWIG_AsVal_int(obj2, &val3);
16866 if (!SWIG_IsOK(ecode3)) {
16867 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16868 }
16869 arg3 = static_cast< wxDirection >(val3);
16870 ecode4 = SWIG_AsVal_long(obj3, &val4);
16871 if (!SWIG_IsOK(ecode4)) {
16872 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16873 }
16874 arg4 = static_cast< long >(val4);
16875 {
16876 PyThreadState* __tstate = wxPyBeginAllowThreads();
16877 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
16878 wxPyEndAllowThreads(__tstate);
16879 if (PyErr_Occurred()) SWIG_fail;
16880 }
16881 resultobj = SWIG_From_int(static_cast< int >(result));
16882 return resultobj;
16883 fail:
16884 return NULL;
16885 }
16886
16887
16888 SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16889 PyObject *resultobj = 0;
16890 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16891 unsigned int arg2 ;
16892 wxString *arg3 = 0 ;
16893 void *argp1 = 0 ;
16894 int res1 = 0 ;
16895 unsigned int val2 ;
16896 int ecode2 = 0 ;
16897 bool temp3 = false ;
16898 PyObject * obj0 = 0 ;
16899 PyObject * obj1 = 0 ;
16900 PyObject * obj2 = 0 ;
16901 char * kwnames[] = {
16902 (char *) "self",(char *) "item",(char *) "text", NULL
16903 };
16904
16905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16907 if (!SWIG_IsOK(res1)) {
16908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16909 }
16910 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16911 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16912 if (!SWIG_IsOK(ecode2)) {
16913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16914 }
16915 arg2 = static_cast< unsigned int >(val2);
16916 {
16917 arg3 = wxString_in_helper(obj2);
16918 if (arg3 == NULL) SWIG_fail;
16919 temp3 = true;
16920 }
16921 {
16922 PyThreadState* __tstate = wxPyBeginAllowThreads();
16923 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
16924 wxPyEndAllowThreads(__tstate);
16925 if (PyErr_Occurred()) SWIG_fail;
16926 }
16927 resultobj = SWIG_Py_Void();
16928 {
16929 if (temp3)
16930 delete arg3;
16931 }
16932 return resultobj;
16933 fail:
16934 {
16935 if (temp3)
16936 delete arg3;
16937 }
16938 return NULL;
16939 }
16940
16941
16942 SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16943 PyObject *resultobj = 0;
16944 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16945 unsigned int arg2 ;
16946 wxToolTip *result = 0 ;
16947 void *argp1 = 0 ;
16948 int res1 = 0 ;
16949 unsigned int val2 ;
16950 int ecode2 = 0 ;
16951 PyObject * obj0 = 0 ;
16952 PyObject * obj1 = 0 ;
16953 char * kwnames[] = {
16954 (char *) "self",(char *) "item", NULL
16955 };
16956
16957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
16958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16959 if (!SWIG_IsOK(res1)) {
16960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16961 }
16962 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16963 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16964 if (!SWIG_IsOK(ecode2)) {
16965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16966 }
16967 arg2 = static_cast< unsigned int >(val2);
16968 {
16969 PyThreadState* __tstate = wxPyBeginAllowThreads();
16970 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
16971 wxPyEndAllowThreads(__tstate);
16972 if (PyErr_Occurred()) SWIG_fail;
16973 }
16974 {
16975 resultobj = wxPyMake_wxObject(result, (bool)0);
16976 }
16977 return resultobj;
16978 fail:
16979 return NULL;
16980 }
16981
16982
16983 SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16984 PyObject *resultobj = 0;
16985 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
16986 SwigValueWrapper<wxVisualAttributes > result;
16987 int val1 ;
16988 int ecode1 = 0 ;
16989 PyObject * obj0 = 0 ;
16990 char * kwnames[] = {
16991 (char *) "variant", NULL
16992 };
16993
16994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
16995 if (obj0) {
16996 ecode1 = SWIG_AsVal_int(obj0, &val1);
16997 if (!SWIG_IsOK(ecode1)) {
16998 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
16999 }
17000 arg1 = static_cast< wxWindowVariant >(val1);
17001 }
17002 {
17003 if (!wxPyCheckForApp()) SWIG_fail;
17004 PyThreadState* __tstate = wxPyBeginAllowThreads();
17005 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17006 wxPyEndAllowThreads(__tstate);
17007 if (PyErr_Occurred()) SWIG_fail;
17008 }
17009 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17010 return resultobj;
17011 fail:
17012 return NULL;
17013 }
17014
17015
17016 SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17017 PyObject *obj;
17018 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17019 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17020 return SWIG_Py_Void();
17021 }
17022
17023 SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17024 return SWIG_Python_InitShadowInstance(args);
17025 }
17026
17027 SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17028 PyObject *resultobj = 0;
17029 wxWindow *arg1 = (wxWindow *) 0 ;
17030 int arg2 = (int) -1 ;
17031 wxString const &arg3_defvalue = wxPyEmptyString ;
17032 wxString *arg3 = (wxString *) &arg3_defvalue ;
17033 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17034 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17035 wxSize const &arg5_defvalue = wxDefaultSize ;
17036 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17037 long arg6 = (long) 0 ;
17038 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17039 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17040 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17041 wxString *arg8 = (wxString *) &arg8_defvalue ;
17042 wxRadioButton *result = 0 ;
17043 void *argp1 = 0 ;
17044 int res1 = 0 ;
17045 int val2 ;
17046 int ecode2 = 0 ;
17047 bool temp3 = false ;
17048 wxPoint temp4 ;
17049 wxSize temp5 ;
17050 long val6 ;
17051 int ecode6 = 0 ;
17052 void *argp7 = 0 ;
17053 int res7 = 0 ;
17054 bool temp8 = false ;
17055 PyObject * obj0 = 0 ;
17056 PyObject * obj1 = 0 ;
17057 PyObject * obj2 = 0 ;
17058 PyObject * obj3 = 0 ;
17059 PyObject * obj4 = 0 ;
17060 PyObject * obj5 = 0 ;
17061 PyObject * obj6 = 0 ;
17062 PyObject * obj7 = 0 ;
17063 char * kwnames[] = {
17064 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17065 };
17066
17067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17069 if (!SWIG_IsOK(res1)) {
17070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17071 }
17072 arg1 = reinterpret_cast< wxWindow * >(argp1);
17073 if (obj1) {
17074 ecode2 = SWIG_AsVal_int(obj1, &val2);
17075 if (!SWIG_IsOK(ecode2)) {
17076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17077 }
17078 arg2 = static_cast< int >(val2);
17079 }
17080 if (obj2) {
17081 {
17082 arg3 = wxString_in_helper(obj2);
17083 if (arg3 == NULL) SWIG_fail;
17084 temp3 = true;
17085 }
17086 }
17087 if (obj3) {
17088 {
17089 arg4 = &temp4;
17090 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17091 }
17092 }
17093 if (obj4) {
17094 {
17095 arg5 = &temp5;
17096 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17097 }
17098 }
17099 if (obj5) {
17100 ecode6 = SWIG_AsVal_long(obj5, &val6);
17101 if (!SWIG_IsOK(ecode6)) {
17102 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17103 }
17104 arg6 = static_cast< long >(val6);
17105 }
17106 if (obj6) {
17107 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17108 if (!SWIG_IsOK(res7)) {
17109 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17110 }
17111 if (!argp7) {
17112 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17113 }
17114 arg7 = reinterpret_cast< wxValidator * >(argp7);
17115 }
17116 if (obj7) {
17117 {
17118 arg8 = wxString_in_helper(obj7);
17119 if (arg8 == NULL) SWIG_fail;
17120 temp8 = true;
17121 }
17122 }
17123 {
17124 if (!wxPyCheckForApp()) SWIG_fail;
17125 PyThreadState* __tstate = wxPyBeginAllowThreads();
17126 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17127 wxPyEndAllowThreads(__tstate);
17128 if (PyErr_Occurred()) SWIG_fail;
17129 }
17130 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17131 {
17132 if (temp3)
17133 delete arg3;
17134 }
17135 {
17136 if (temp8)
17137 delete arg8;
17138 }
17139 return resultobj;
17140 fail:
17141 {
17142 if (temp3)
17143 delete arg3;
17144 }
17145 {
17146 if (temp8)
17147 delete arg8;
17148 }
17149 return NULL;
17150 }
17151
17152
17153 SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17154 PyObject *resultobj = 0;
17155 wxRadioButton *result = 0 ;
17156
17157 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17158 {
17159 if (!wxPyCheckForApp()) SWIG_fail;
17160 PyThreadState* __tstate = wxPyBeginAllowThreads();
17161 result = (wxRadioButton *)new wxRadioButton();
17162 wxPyEndAllowThreads(__tstate);
17163 if (PyErr_Occurred()) SWIG_fail;
17164 }
17165 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17166 return resultobj;
17167 fail:
17168 return NULL;
17169 }
17170
17171
17172 SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17173 PyObject *resultobj = 0;
17174 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17175 wxWindow *arg2 = (wxWindow *) 0 ;
17176 int arg3 = (int) -1 ;
17177 wxString const &arg4_defvalue = wxPyEmptyString ;
17178 wxString *arg4 = (wxString *) &arg4_defvalue ;
17179 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17180 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17181 wxSize const &arg6_defvalue = wxDefaultSize ;
17182 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17183 long arg7 = (long) 0 ;
17184 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17185 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17186 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17187 wxString *arg9 = (wxString *) &arg9_defvalue ;
17188 bool result;
17189 void *argp1 = 0 ;
17190 int res1 = 0 ;
17191 void *argp2 = 0 ;
17192 int res2 = 0 ;
17193 int val3 ;
17194 int ecode3 = 0 ;
17195 bool temp4 = false ;
17196 wxPoint temp5 ;
17197 wxSize temp6 ;
17198 long val7 ;
17199 int ecode7 = 0 ;
17200 void *argp8 = 0 ;
17201 int res8 = 0 ;
17202 bool temp9 = false ;
17203 PyObject * obj0 = 0 ;
17204 PyObject * obj1 = 0 ;
17205 PyObject * obj2 = 0 ;
17206 PyObject * obj3 = 0 ;
17207 PyObject * obj4 = 0 ;
17208 PyObject * obj5 = 0 ;
17209 PyObject * obj6 = 0 ;
17210 PyObject * obj7 = 0 ;
17211 PyObject * obj8 = 0 ;
17212 char * kwnames[] = {
17213 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17214 };
17215
17216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17218 if (!SWIG_IsOK(res1)) {
17219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17220 }
17221 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17222 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17223 if (!SWIG_IsOK(res2)) {
17224 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17225 }
17226 arg2 = reinterpret_cast< wxWindow * >(argp2);
17227 if (obj2) {
17228 ecode3 = SWIG_AsVal_int(obj2, &val3);
17229 if (!SWIG_IsOK(ecode3)) {
17230 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17231 }
17232 arg3 = static_cast< int >(val3);
17233 }
17234 if (obj3) {
17235 {
17236 arg4 = wxString_in_helper(obj3);
17237 if (arg4 == NULL) SWIG_fail;
17238 temp4 = true;
17239 }
17240 }
17241 if (obj4) {
17242 {
17243 arg5 = &temp5;
17244 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17245 }
17246 }
17247 if (obj5) {
17248 {
17249 arg6 = &temp6;
17250 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17251 }
17252 }
17253 if (obj6) {
17254 ecode7 = SWIG_AsVal_long(obj6, &val7);
17255 if (!SWIG_IsOK(ecode7)) {
17256 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17257 }
17258 arg7 = static_cast< long >(val7);
17259 }
17260 if (obj7) {
17261 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17262 if (!SWIG_IsOK(res8)) {
17263 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17264 }
17265 if (!argp8) {
17266 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17267 }
17268 arg8 = reinterpret_cast< wxValidator * >(argp8);
17269 }
17270 if (obj8) {
17271 {
17272 arg9 = wxString_in_helper(obj8);
17273 if (arg9 == NULL) SWIG_fail;
17274 temp9 = true;
17275 }
17276 }
17277 {
17278 PyThreadState* __tstate = wxPyBeginAllowThreads();
17279 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17280 wxPyEndAllowThreads(__tstate);
17281 if (PyErr_Occurred()) SWIG_fail;
17282 }
17283 {
17284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17285 }
17286 {
17287 if (temp4)
17288 delete arg4;
17289 }
17290 {
17291 if (temp9)
17292 delete arg9;
17293 }
17294 return resultobj;
17295 fail:
17296 {
17297 if (temp4)
17298 delete arg4;
17299 }
17300 {
17301 if (temp9)
17302 delete arg9;
17303 }
17304 return NULL;
17305 }
17306
17307
17308 SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17309 PyObject *resultobj = 0;
17310 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17311 bool result;
17312 void *argp1 = 0 ;
17313 int res1 = 0 ;
17314 PyObject *swig_obj[1] ;
17315
17316 if (!args) SWIG_fail;
17317 swig_obj[0] = args;
17318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17319 if (!SWIG_IsOK(res1)) {
17320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17321 }
17322 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17323 {
17324 PyThreadState* __tstate = wxPyBeginAllowThreads();
17325 result = (bool)(arg1)->GetValue();
17326 wxPyEndAllowThreads(__tstate);
17327 if (PyErr_Occurred()) SWIG_fail;
17328 }
17329 {
17330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17331 }
17332 return resultobj;
17333 fail:
17334 return NULL;
17335 }
17336
17337
17338 SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17339 PyObject *resultobj = 0;
17340 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17341 bool arg2 ;
17342 void *argp1 = 0 ;
17343 int res1 = 0 ;
17344 bool val2 ;
17345 int ecode2 = 0 ;
17346 PyObject * obj0 = 0 ;
17347 PyObject * obj1 = 0 ;
17348 char * kwnames[] = {
17349 (char *) "self",(char *) "value", NULL
17350 };
17351
17352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17354 if (!SWIG_IsOK(res1)) {
17355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17356 }
17357 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17358 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17359 if (!SWIG_IsOK(ecode2)) {
17360 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17361 }
17362 arg2 = static_cast< bool >(val2);
17363 {
17364 PyThreadState* __tstate = wxPyBeginAllowThreads();
17365 (arg1)->SetValue(arg2);
17366 wxPyEndAllowThreads(__tstate);
17367 if (PyErr_Occurred()) SWIG_fail;
17368 }
17369 resultobj = SWIG_Py_Void();
17370 return resultobj;
17371 fail:
17372 return NULL;
17373 }
17374
17375
17376 SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17377 PyObject *resultobj = 0;
17378 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17379 SwigValueWrapper<wxVisualAttributes > result;
17380 int val1 ;
17381 int ecode1 = 0 ;
17382 PyObject * obj0 = 0 ;
17383 char * kwnames[] = {
17384 (char *) "variant", NULL
17385 };
17386
17387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17388 if (obj0) {
17389 ecode1 = SWIG_AsVal_int(obj0, &val1);
17390 if (!SWIG_IsOK(ecode1)) {
17391 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17392 }
17393 arg1 = static_cast< wxWindowVariant >(val1);
17394 }
17395 {
17396 if (!wxPyCheckForApp()) SWIG_fail;
17397 PyThreadState* __tstate = wxPyBeginAllowThreads();
17398 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17399 wxPyEndAllowThreads(__tstate);
17400 if (PyErr_Occurred()) SWIG_fail;
17401 }
17402 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17403 return resultobj;
17404 fail:
17405 return NULL;
17406 }
17407
17408
17409 SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17410 PyObject *obj;
17411 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17412 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17413 return SWIG_Py_Void();
17414 }
17415
17416 SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17417 return SWIG_Python_InitShadowInstance(args);
17418 }
17419
17420 SWIGINTERN int SliderNameStr_set(PyObject *) {
17421 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17422 return 1;
17423 }
17424
17425
17426 SWIGINTERN PyObject *SliderNameStr_get(void) {
17427 PyObject *pyobj = 0;
17428
17429 {
17430 #if wxUSE_UNICODE
17431 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17432 #else
17433 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17434 #endif
17435 }
17436 return pyobj;
17437 }
17438
17439
17440 SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17441 PyObject *resultobj = 0;
17442 wxWindow *arg1 = (wxWindow *) 0 ;
17443 int arg2 = (int) -1 ;
17444 int arg3 = (int) 0 ;
17445 int arg4 = (int) 0 ;
17446 int arg5 = (int) 100 ;
17447 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17448 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17449 wxSize const &arg7_defvalue = wxDefaultSize ;
17450 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17451 long arg8 = (long) wxSL_HORIZONTAL ;
17452 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17453 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17454 wxString const &arg10_defvalue = wxPySliderNameStr ;
17455 wxString *arg10 = (wxString *) &arg10_defvalue ;
17456 wxSlider *result = 0 ;
17457 void *argp1 = 0 ;
17458 int res1 = 0 ;
17459 int val2 ;
17460 int ecode2 = 0 ;
17461 int val3 ;
17462 int ecode3 = 0 ;
17463 int val4 ;
17464 int ecode4 = 0 ;
17465 int val5 ;
17466 int ecode5 = 0 ;
17467 wxPoint temp6 ;
17468 wxSize temp7 ;
17469 long val8 ;
17470 int ecode8 = 0 ;
17471 void *argp9 = 0 ;
17472 int res9 = 0 ;
17473 bool temp10 = false ;
17474 PyObject * obj0 = 0 ;
17475 PyObject * obj1 = 0 ;
17476 PyObject * obj2 = 0 ;
17477 PyObject * obj3 = 0 ;
17478 PyObject * obj4 = 0 ;
17479 PyObject * obj5 = 0 ;
17480 PyObject * obj6 = 0 ;
17481 PyObject * obj7 = 0 ;
17482 PyObject * obj8 = 0 ;
17483 PyObject * obj9 = 0 ;
17484 char * kwnames[] = {
17485 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17486 };
17487
17488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17490 if (!SWIG_IsOK(res1)) {
17491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17492 }
17493 arg1 = reinterpret_cast< wxWindow * >(argp1);
17494 if (obj1) {
17495 ecode2 = SWIG_AsVal_int(obj1, &val2);
17496 if (!SWIG_IsOK(ecode2)) {
17497 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17498 }
17499 arg2 = static_cast< int >(val2);
17500 }
17501 if (obj2) {
17502 ecode3 = SWIG_AsVal_int(obj2, &val3);
17503 if (!SWIG_IsOK(ecode3)) {
17504 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17505 }
17506 arg3 = static_cast< int >(val3);
17507 }
17508 if (obj3) {
17509 ecode4 = SWIG_AsVal_int(obj3, &val4);
17510 if (!SWIG_IsOK(ecode4)) {
17511 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17512 }
17513 arg4 = static_cast< int >(val4);
17514 }
17515 if (obj4) {
17516 ecode5 = SWIG_AsVal_int(obj4, &val5);
17517 if (!SWIG_IsOK(ecode5)) {
17518 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17519 }
17520 arg5 = static_cast< int >(val5);
17521 }
17522 if (obj5) {
17523 {
17524 arg6 = &temp6;
17525 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
17526 }
17527 }
17528 if (obj6) {
17529 {
17530 arg7 = &temp7;
17531 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
17532 }
17533 }
17534 if (obj7) {
17535 ecode8 = SWIG_AsVal_long(obj7, &val8);
17536 if (!SWIG_IsOK(ecode8)) {
17537 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17538 }
17539 arg8 = static_cast< long >(val8);
17540 }
17541 if (obj8) {
17542 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17543 if (!SWIG_IsOK(res9)) {
17544 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17545 }
17546 if (!argp9) {
17547 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17548 }
17549 arg9 = reinterpret_cast< wxValidator * >(argp9);
17550 }
17551 if (obj9) {
17552 {
17553 arg10 = wxString_in_helper(obj9);
17554 if (arg10 == NULL) SWIG_fail;
17555 temp10 = true;
17556 }
17557 }
17558 {
17559 if (!wxPyCheckForApp()) SWIG_fail;
17560 PyThreadState* __tstate = wxPyBeginAllowThreads();
17561 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17562 wxPyEndAllowThreads(__tstate);
17563 if (PyErr_Occurred()) SWIG_fail;
17564 }
17565 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17566 {
17567 if (temp10)
17568 delete arg10;
17569 }
17570 return resultobj;
17571 fail:
17572 {
17573 if (temp10)
17574 delete arg10;
17575 }
17576 return NULL;
17577 }
17578
17579
17580 SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17581 PyObject *resultobj = 0;
17582 wxSlider *result = 0 ;
17583
17584 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17585 {
17586 if (!wxPyCheckForApp()) SWIG_fail;
17587 PyThreadState* __tstate = wxPyBeginAllowThreads();
17588 result = (wxSlider *)new wxSlider();
17589 wxPyEndAllowThreads(__tstate);
17590 if (PyErr_Occurred()) SWIG_fail;
17591 }
17592 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17593 return resultobj;
17594 fail:
17595 return NULL;
17596 }
17597
17598
17599 SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17600 PyObject *resultobj = 0;
17601 wxSlider *arg1 = (wxSlider *) 0 ;
17602 wxWindow *arg2 = (wxWindow *) 0 ;
17603 int arg3 = (int) -1 ;
17604 int arg4 = (int) 0 ;
17605 int arg5 = (int) 0 ;
17606 int arg6 = (int) 100 ;
17607 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17608 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17609 wxSize const &arg8_defvalue = wxDefaultSize ;
17610 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17611 long arg9 = (long) wxSL_HORIZONTAL ;
17612 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17613 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17614 wxString const &arg11_defvalue = wxPySliderNameStr ;
17615 wxString *arg11 = (wxString *) &arg11_defvalue ;
17616 bool result;
17617 void *argp1 = 0 ;
17618 int res1 = 0 ;
17619 void *argp2 = 0 ;
17620 int res2 = 0 ;
17621 int val3 ;
17622 int ecode3 = 0 ;
17623 int val4 ;
17624 int ecode4 = 0 ;
17625 int val5 ;
17626 int ecode5 = 0 ;
17627 int val6 ;
17628 int ecode6 = 0 ;
17629 wxPoint temp7 ;
17630 wxSize temp8 ;
17631 long val9 ;
17632 int ecode9 = 0 ;
17633 void *argp10 = 0 ;
17634 int res10 = 0 ;
17635 bool temp11 = false ;
17636 PyObject * obj0 = 0 ;
17637 PyObject * obj1 = 0 ;
17638 PyObject * obj2 = 0 ;
17639 PyObject * obj3 = 0 ;
17640 PyObject * obj4 = 0 ;
17641 PyObject * obj5 = 0 ;
17642 PyObject * obj6 = 0 ;
17643 PyObject * obj7 = 0 ;
17644 PyObject * obj8 = 0 ;
17645 PyObject * obj9 = 0 ;
17646 PyObject * obj10 = 0 ;
17647 char * kwnames[] = {
17648 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17649 };
17650
17651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17653 if (!SWIG_IsOK(res1)) {
17654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17655 }
17656 arg1 = reinterpret_cast< wxSlider * >(argp1);
17657 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17658 if (!SWIG_IsOK(res2)) {
17659 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17660 }
17661 arg2 = reinterpret_cast< wxWindow * >(argp2);
17662 if (obj2) {
17663 ecode3 = SWIG_AsVal_int(obj2, &val3);
17664 if (!SWIG_IsOK(ecode3)) {
17665 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17666 }
17667 arg3 = static_cast< int >(val3);
17668 }
17669 if (obj3) {
17670 ecode4 = SWIG_AsVal_int(obj3, &val4);
17671 if (!SWIG_IsOK(ecode4)) {
17672 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17673 }
17674 arg4 = static_cast< int >(val4);
17675 }
17676 if (obj4) {
17677 ecode5 = SWIG_AsVal_int(obj4, &val5);
17678 if (!SWIG_IsOK(ecode5)) {
17679 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17680 }
17681 arg5 = static_cast< int >(val5);
17682 }
17683 if (obj5) {
17684 ecode6 = SWIG_AsVal_int(obj5, &val6);
17685 if (!SWIG_IsOK(ecode6)) {
17686 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17687 }
17688 arg6 = static_cast< int >(val6);
17689 }
17690 if (obj6) {
17691 {
17692 arg7 = &temp7;
17693 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
17694 }
17695 }
17696 if (obj7) {
17697 {
17698 arg8 = &temp8;
17699 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
17700 }
17701 }
17702 if (obj8) {
17703 ecode9 = SWIG_AsVal_long(obj8, &val9);
17704 if (!SWIG_IsOK(ecode9)) {
17705 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17706 }
17707 arg9 = static_cast< long >(val9);
17708 }
17709 if (obj9) {
17710 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17711 if (!SWIG_IsOK(res10)) {
17712 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17713 }
17714 if (!argp10) {
17715 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17716 }
17717 arg10 = reinterpret_cast< wxValidator * >(argp10);
17718 }
17719 if (obj10) {
17720 {
17721 arg11 = wxString_in_helper(obj10);
17722 if (arg11 == NULL) SWIG_fail;
17723 temp11 = true;
17724 }
17725 }
17726 {
17727 PyThreadState* __tstate = wxPyBeginAllowThreads();
17728 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17729 wxPyEndAllowThreads(__tstate);
17730 if (PyErr_Occurred()) SWIG_fail;
17731 }
17732 {
17733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17734 }
17735 {
17736 if (temp11)
17737 delete arg11;
17738 }
17739 return resultobj;
17740 fail:
17741 {
17742 if (temp11)
17743 delete arg11;
17744 }
17745 return NULL;
17746 }
17747
17748
17749 SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17750 PyObject *resultobj = 0;
17751 wxSlider *arg1 = (wxSlider *) 0 ;
17752 int result;
17753 void *argp1 = 0 ;
17754 int res1 = 0 ;
17755 PyObject *swig_obj[1] ;
17756
17757 if (!args) SWIG_fail;
17758 swig_obj[0] = args;
17759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17760 if (!SWIG_IsOK(res1)) {
17761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17762 }
17763 arg1 = reinterpret_cast< wxSlider * >(argp1);
17764 {
17765 PyThreadState* __tstate = wxPyBeginAllowThreads();
17766 result = (int)((wxSlider const *)arg1)->GetValue();
17767 wxPyEndAllowThreads(__tstate);
17768 if (PyErr_Occurred()) SWIG_fail;
17769 }
17770 resultobj = SWIG_From_int(static_cast< int >(result));
17771 return resultobj;
17772 fail:
17773 return NULL;
17774 }
17775
17776
17777 SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17778 PyObject *resultobj = 0;
17779 wxSlider *arg1 = (wxSlider *) 0 ;
17780 int arg2 ;
17781 void *argp1 = 0 ;
17782 int res1 = 0 ;
17783 int val2 ;
17784 int ecode2 = 0 ;
17785 PyObject * obj0 = 0 ;
17786 PyObject * obj1 = 0 ;
17787 char * kwnames[] = {
17788 (char *) "self",(char *) "value", NULL
17789 };
17790
17791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17793 if (!SWIG_IsOK(res1)) {
17794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17795 }
17796 arg1 = reinterpret_cast< wxSlider * >(argp1);
17797 ecode2 = SWIG_AsVal_int(obj1, &val2);
17798 if (!SWIG_IsOK(ecode2)) {
17799 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17800 }
17801 arg2 = static_cast< int >(val2);
17802 {
17803 PyThreadState* __tstate = wxPyBeginAllowThreads();
17804 (arg1)->SetValue(arg2);
17805 wxPyEndAllowThreads(__tstate);
17806 if (PyErr_Occurred()) SWIG_fail;
17807 }
17808 resultobj = SWIG_Py_Void();
17809 return resultobj;
17810 fail:
17811 return NULL;
17812 }
17813
17814
17815 SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17816 PyObject *resultobj = 0;
17817 wxSlider *arg1 = (wxSlider *) 0 ;
17818 int arg2 ;
17819 int arg3 ;
17820 void *argp1 = 0 ;
17821 int res1 = 0 ;
17822 int val2 ;
17823 int ecode2 = 0 ;
17824 int val3 ;
17825 int ecode3 = 0 ;
17826 PyObject * obj0 = 0 ;
17827 PyObject * obj1 = 0 ;
17828 PyObject * obj2 = 0 ;
17829 char * kwnames[] = {
17830 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
17831 };
17832
17833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17835 if (!SWIG_IsOK(res1)) {
17836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
17837 }
17838 arg1 = reinterpret_cast< wxSlider * >(argp1);
17839 ecode2 = SWIG_AsVal_int(obj1, &val2);
17840 if (!SWIG_IsOK(ecode2)) {
17841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
17842 }
17843 arg2 = static_cast< int >(val2);
17844 ecode3 = SWIG_AsVal_int(obj2, &val3);
17845 if (!SWIG_IsOK(ecode3)) {
17846 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
17847 }
17848 arg3 = static_cast< int >(val3);
17849 {
17850 PyThreadState* __tstate = wxPyBeginAllowThreads();
17851 (arg1)->SetRange(arg2,arg3);
17852 wxPyEndAllowThreads(__tstate);
17853 if (PyErr_Occurred()) SWIG_fail;
17854 }
17855 resultobj = SWIG_Py_Void();
17856 return resultobj;
17857 fail:
17858 return NULL;
17859 }
17860
17861
17862 SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17863 PyObject *resultobj = 0;
17864 wxSlider *arg1 = (wxSlider *) 0 ;
17865 int result;
17866 void *argp1 = 0 ;
17867 int res1 = 0 ;
17868 PyObject *swig_obj[1] ;
17869
17870 if (!args) SWIG_fail;
17871 swig_obj[0] = args;
17872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17873 if (!SWIG_IsOK(res1)) {
17874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
17875 }
17876 arg1 = reinterpret_cast< wxSlider * >(argp1);
17877 {
17878 PyThreadState* __tstate = wxPyBeginAllowThreads();
17879 result = (int)((wxSlider const *)arg1)->GetMin();
17880 wxPyEndAllowThreads(__tstate);
17881 if (PyErr_Occurred()) SWIG_fail;
17882 }
17883 resultobj = SWIG_From_int(static_cast< int >(result));
17884 return resultobj;
17885 fail:
17886 return NULL;
17887 }
17888
17889
17890 SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17891 PyObject *resultobj = 0;
17892 wxSlider *arg1 = (wxSlider *) 0 ;
17893 int result;
17894 void *argp1 = 0 ;
17895 int res1 = 0 ;
17896 PyObject *swig_obj[1] ;
17897
17898 if (!args) SWIG_fail;
17899 swig_obj[0] = args;
17900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17901 if (!SWIG_IsOK(res1)) {
17902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
17903 }
17904 arg1 = reinterpret_cast< wxSlider * >(argp1);
17905 {
17906 PyThreadState* __tstate = wxPyBeginAllowThreads();
17907 result = (int)((wxSlider const *)arg1)->GetMax();
17908 wxPyEndAllowThreads(__tstate);
17909 if (PyErr_Occurred()) SWIG_fail;
17910 }
17911 resultobj = SWIG_From_int(static_cast< int >(result));
17912 return resultobj;
17913 fail:
17914 return NULL;
17915 }
17916
17917
17918 SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17919 PyObject *resultobj = 0;
17920 wxSlider *arg1 = (wxSlider *) 0 ;
17921 int arg2 ;
17922 void *argp1 = 0 ;
17923 int res1 = 0 ;
17924 int val2 ;
17925 int ecode2 = 0 ;
17926 PyObject * obj0 = 0 ;
17927 PyObject * obj1 = 0 ;
17928 char * kwnames[] = {
17929 (char *) "self",(char *) "minValue", NULL
17930 };
17931
17932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
17933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17934 if (!SWIG_IsOK(res1)) {
17935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
17936 }
17937 arg1 = reinterpret_cast< wxSlider * >(argp1);
17938 ecode2 = SWIG_AsVal_int(obj1, &val2);
17939 if (!SWIG_IsOK(ecode2)) {
17940 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
17941 }
17942 arg2 = static_cast< int >(val2);
17943 {
17944 PyThreadState* __tstate = wxPyBeginAllowThreads();
17945 (arg1)->SetMin(arg2);
17946 wxPyEndAllowThreads(__tstate);
17947 if (PyErr_Occurred()) SWIG_fail;
17948 }
17949 resultobj = SWIG_Py_Void();
17950 return resultobj;
17951 fail:
17952 return NULL;
17953 }
17954
17955
17956 SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17957 PyObject *resultobj = 0;
17958 wxSlider *arg1 = (wxSlider *) 0 ;
17959 int arg2 ;
17960 void *argp1 = 0 ;
17961 int res1 = 0 ;
17962 int val2 ;
17963 int ecode2 = 0 ;
17964 PyObject * obj0 = 0 ;
17965 PyObject * obj1 = 0 ;
17966 char * kwnames[] = {
17967 (char *) "self",(char *) "maxValue", NULL
17968 };
17969
17970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
17971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17972 if (!SWIG_IsOK(res1)) {
17973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
17974 }
17975 arg1 = reinterpret_cast< wxSlider * >(argp1);
17976 ecode2 = SWIG_AsVal_int(obj1, &val2);
17977 if (!SWIG_IsOK(ecode2)) {
17978 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
17979 }
17980 arg2 = static_cast< int >(val2);
17981 {
17982 PyThreadState* __tstate = wxPyBeginAllowThreads();
17983 (arg1)->SetMax(arg2);
17984 wxPyEndAllowThreads(__tstate);
17985 if (PyErr_Occurred()) SWIG_fail;
17986 }
17987 resultobj = SWIG_Py_Void();
17988 return resultobj;
17989 fail:
17990 return NULL;
17991 }
17992
17993
17994 SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17995 PyObject *resultobj = 0;
17996 wxSlider *arg1 = (wxSlider *) 0 ;
17997 int arg2 ;
17998 void *argp1 = 0 ;
17999 int res1 = 0 ;
18000 int val2 ;
18001 int ecode2 = 0 ;
18002 PyObject * obj0 = 0 ;
18003 PyObject * obj1 = 0 ;
18004 char * kwnames[] = {
18005 (char *) "self",(char *) "lineSize", NULL
18006 };
18007
18008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18010 if (!SWIG_IsOK(res1)) {
18011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18012 }
18013 arg1 = reinterpret_cast< wxSlider * >(argp1);
18014 ecode2 = SWIG_AsVal_int(obj1, &val2);
18015 if (!SWIG_IsOK(ecode2)) {
18016 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18017 }
18018 arg2 = static_cast< int >(val2);
18019 {
18020 PyThreadState* __tstate = wxPyBeginAllowThreads();
18021 (arg1)->SetLineSize(arg2);
18022 wxPyEndAllowThreads(__tstate);
18023 if (PyErr_Occurred()) SWIG_fail;
18024 }
18025 resultobj = SWIG_Py_Void();
18026 return resultobj;
18027 fail:
18028 return NULL;
18029 }
18030
18031
18032 SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18033 PyObject *resultobj = 0;
18034 wxSlider *arg1 = (wxSlider *) 0 ;
18035 int arg2 ;
18036 void *argp1 = 0 ;
18037 int res1 = 0 ;
18038 int val2 ;
18039 int ecode2 = 0 ;
18040 PyObject * obj0 = 0 ;
18041 PyObject * obj1 = 0 ;
18042 char * kwnames[] = {
18043 (char *) "self",(char *) "pageSize", NULL
18044 };
18045
18046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18048 if (!SWIG_IsOK(res1)) {
18049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18050 }
18051 arg1 = reinterpret_cast< wxSlider * >(argp1);
18052 ecode2 = SWIG_AsVal_int(obj1, &val2);
18053 if (!SWIG_IsOK(ecode2)) {
18054 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18055 }
18056 arg2 = static_cast< int >(val2);
18057 {
18058 PyThreadState* __tstate = wxPyBeginAllowThreads();
18059 (arg1)->SetPageSize(arg2);
18060 wxPyEndAllowThreads(__tstate);
18061 if (PyErr_Occurred()) SWIG_fail;
18062 }
18063 resultobj = SWIG_Py_Void();
18064 return resultobj;
18065 fail:
18066 return NULL;
18067 }
18068
18069
18070 SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18071 PyObject *resultobj = 0;
18072 wxSlider *arg1 = (wxSlider *) 0 ;
18073 int result;
18074 void *argp1 = 0 ;
18075 int res1 = 0 ;
18076 PyObject *swig_obj[1] ;
18077
18078 if (!args) SWIG_fail;
18079 swig_obj[0] = args;
18080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18081 if (!SWIG_IsOK(res1)) {
18082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18083 }
18084 arg1 = reinterpret_cast< wxSlider * >(argp1);
18085 {
18086 PyThreadState* __tstate = wxPyBeginAllowThreads();
18087 result = (int)((wxSlider const *)arg1)->GetLineSize();
18088 wxPyEndAllowThreads(__tstate);
18089 if (PyErr_Occurred()) SWIG_fail;
18090 }
18091 resultobj = SWIG_From_int(static_cast< int >(result));
18092 return resultobj;
18093 fail:
18094 return NULL;
18095 }
18096
18097
18098 SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18099 PyObject *resultobj = 0;
18100 wxSlider *arg1 = (wxSlider *) 0 ;
18101 int result;
18102 void *argp1 = 0 ;
18103 int res1 = 0 ;
18104 PyObject *swig_obj[1] ;
18105
18106 if (!args) SWIG_fail;
18107 swig_obj[0] = args;
18108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18109 if (!SWIG_IsOK(res1)) {
18110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18111 }
18112 arg1 = reinterpret_cast< wxSlider * >(argp1);
18113 {
18114 PyThreadState* __tstate = wxPyBeginAllowThreads();
18115 result = (int)((wxSlider const *)arg1)->GetPageSize();
18116 wxPyEndAllowThreads(__tstate);
18117 if (PyErr_Occurred()) SWIG_fail;
18118 }
18119 resultobj = SWIG_From_int(static_cast< int >(result));
18120 return resultobj;
18121 fail:
18122 return NULL;
18123 }
18124
18125
18126 SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18127 PyObject *resultobj = 0;
18128 wxSlider *arg1 = (wxSlider *) 0 ;
18129 int arg2 ;
18130 void *argp1 = 0 ;
18131 int res1 = 0 ;
18132 int val2 ;
18133 int ecode2 = 0 ;
18134 PyObject * obj0 = 0 ;
18135 PyObject * obj1 = 0 ;
18136 char * kwnames[] = {
18137 (char *) "self",(char *) "lenPixels", NULL
18138 };
18139
18140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18142 if (!SWIG_IsOK(res1)) {
18143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18144 }
18145 arg1 = reinterpret_cast< wxSlider * >(argp1);
18146 ecode2 = SWIG_AsVal_int(obj1, &val2);
18147 if (!SWIG_IsOK(ecode2)) {
18148 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18149 }
18150 arg2 = static_cast< int >(val2);
18151 {
18152 PyThreadState* __tstate = wxPyBeginAllowThreads();
18153 (arg1)->SetThumbLength(arg2);
18154 wxPyEndAllowThreads(__tstate);
18155 if (PyErr_Occurred()) SWIG_fail;
18156 }
18157 resultobj = SWIG_Py_Void();
18158 return resultobj;
18159 fail:
18160 return NULL;
18161 }
18162
18163
18164 SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18165 PyObject *resultobj = 0;
18166 wxSlider *arg1 = (wxSlider *) 0 ;
18167 int result;
18168 void *argp1 = 0 ;
18169 int res1 = 0 ;
18170 PyObject *swig_obj[1] ;
18171
18172 if (!args) SWIG_fail;
18173 swig_obj[0] = args;
18174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18175 if (!SWIG_IsOK(res1)) {
18176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18177 }
18178 arg1 = reinterpret_cast< wxSlider * >(argp1);
18179 {
18180 PyThreadState* __tstate = wxPyBeginAllowThreads();
18181 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18182 wxPyEndAllowThreads(__tstate);
18183 if (PyErr_Occurred()) SWIG_fail;
18184 }
18185 resultobj = SWIG_From_int(static_cast< int >(result));
18186 return resultobj;
18187 fail:
18188 return NULL;
18189 }
18190
18191
18192 SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18193 PyObject *resultobj = 0;
18194 wxSlider *arg1 = (wxSlider *) 0 ;
18195 int arg2 ;
18196 int arg3 = (int) 1 ;
18197 void *argp1 = 0 ;
18198 int res1 = 0 ;
18199 int val2 ;
18200 int ecode2 = 0 ;
18201 int val3 ;
18202 int ecode3 = 0 ;
18203 PyObject * obj0 = 0 ;
18204 PyObject * obj1 = 0 ;
18205 PyObject * obj2 = 0 ;
18206 char * kwnames[] = {
18207 (char *) "self",(char *) "n",(char *) "pos", NULL
18208 };
18209
18210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18212 if (!SWIG_IsOK(res1)) {
18213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18214 }
18215 arg1 = reinterpret_cast< wxSlider * >(argp1);
18216 ecode2 = SWIG_AsVal_int(obj1, &val2);
18217 if (!SWIG_IsOK(ecode2)) {
18218 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18219 }
18220 arg2 = static_cast< int >(val2);
18221 if (obj2) {
18222 ecode3 = SWIG_AsVal_int(obj2, &val3);
18223 if (!SWIG_IsOK(ecode3)) {
18224 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18225 }
18226 arg3 = static_cast< int >(val3);
18227 }
18228 {
18229 PyThreadState* __tstate = wxPyBeginAllowThreads();
18230 (arg1)->SetTickFreq(arg2,arg3);
18231 wxPyEndAllowThreads(__tstate);
18232 if (PyErr_Occurred()) SWIG_fail;
18233 }
18234 resultobj = SWIG_Py_Void();
18235 return resultobj;
18236 fail:
18237 return NULL;
18238 }
18239
18240
18241 SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18242 PyObject *resultobj = 0;
18243 wxSlider *arg1 = (wxSlider *) 0 ;
18244 int result;
18245 void *argp1 = 0 ;
18246 int res1 = 0 ;
18247 PyObject *swig_obj[1] ;
18248
18249 if (!args) SWIG_fail;
18250 swig_obj[0] = args;
18251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18252 if (!SWIG_IsOK(res1)) {
18253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18254 }
18255 arg1 = reinterpret_cast< wxSlider * >(argp1);
18256 {
18257 PyThreadState* __tstate = wxPyBeginAllowThreads();
18258 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18259 wxPyEndAllowThreads(__tstate);
18260 if (PyErr_Occurred()) SWIG_fail;
18261 }
18262 resultobj = SWIG_From_int(static_cast< int >(result));
18263 return resultobj;
18264 fail:
18265 return NULL;
18266 }
18267
18268
18269 SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18270 PyObject *resultobj = 0;
18271 wxSlider *arg1 = (wxSlider *) 0 ;
18272 void *argp1 = 0 ;
18273 int res1 = 0 ;
18274 PyObject *swig_obj[1] ;
18275
18276 if (!args) SWIG_fail;
18277 swig_obj[0] = args;
18278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18279 if (!SWIG_IsOK(res1)) {
18280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18281 }
18282 arg1 = reinterpret_cast< wxSlider * >(argp1);
18283 {
18284 PyThreadState* __tstate = wxPyBeginAllowThreads();
18285 (arg1)->ClearTicks();
18286 wxPyEndAllowThreads(__tstate);
18287 if (PyErr_Occurred()) SWIG_fail;
18288 }
18289 resultobj = SWIG_Py_Void();
18290 return resultobj;
18291 fail:
18292 return NULL;
18293 }
18294
18295
18296 SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18297 PyObject *resultobj = 0;
18298 wxSlider *arg1 = (wxSlider *) 0 ;
18299 int arg2 ;
18300 void *argp1 = 0 ;
18301 int res1 = 0 ;
18302 int val2 ;
18303 int ecode2 = 0 ;
18304 PyObject * obj0 = 0 ;
18305 PyObject * obj1 = 0 ;
18306 char * kwnames[] = {
18307 (char *) "self",(char *) "tickPos", NULL
18308 };
18309
18310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18312 if (!SWIG_IsOK(res1)) {
18313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18314 }
18315 arg1 = reinterpret_cast< wxSlider * >(argp1);
18316 ecode2 = SWIG_AsVal_int(obj1, &val2);
18317 if (!SWIG_IsOK(ecode2)) {
18318 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18319 }
18320 arg2 = static_cast< int >(val2);
18321 {
18322 PyThreadState* __tstate = wxPyBeginAllowThreads();
18323 (arg1)->SetTick(arg2);
18324 wxPyEndAllowThreads(__tstate);
18325 if (PyErr_Occurred()) SWIG_fail;
18326 }
18327 resultobj = SWIG_Py_Void();
18328 return resultobj;
18329 fail:
18330 return NULL;
18331 }
18332
18333
18334 SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18335 PyObject *resultobj = 0;
18336 wxSlider *arg1 = (wxSlider *) 0 ;
18337 void *argp1 = 0 ;
18338 int res1 = 0 ;
18339 PyObject *swig_obj[1] ;
18340
18341 if (!args) SWIG_fail;
18342 swig_obj[0] = args;
18343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18344 if (!SWIG_IsOK(res1)) {
18345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18346 }
18347 arg1 = reinterpret_cast< wxSlider * >(argp1);
18348 {
18349 PyThreadState* __tstate = wxPyBeginAllowThreads();
18350 (arg1)->ClearSel();
18351 wxPyEndAllowThreads(__tstate);
18352 if (PyErr_Occurred()) SWIG_fail;
18353 }
18354 resultobj = SWIG_Py_Void();
18355 return resultobj;
18356 fail:
18357 return NULL;
18358 }
18359
18360
18361 SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18362 PyObject *resultobj = 0;
18363 wxSlider *arg1 = (wxSlider *) 0 ;
18364 int result;
18365 void *argp1 = 0 ;
18366 int res1 = 0 ;
18367 PyObject *swig_obj[1] ;
18368
18369 if (!args) SWIG_fail;
18370 swig_obj[0] = args;
18371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18372 if (!SWIG_IsOK(res1)) {
18373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18374 }
18375 arg1 = reinterpret_cast< wxSlider * >(argp1);
18376 {
18377 PyThreadState* __tstate = wxPyBeginAllowThreads();
18378 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18379 wxPyEndAllowThreads(__tstate);
18380 if (PyErr_Occurred()) SWIG_fail;
18381 }
18382 resultobj = SWIG_From_int(static_cast< int >(result));
18383 return resultobj;
18384 fail:
18385 return NULL;
18386 }
18387
18388
18389 SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18390 PyObject *resultobj = 0;
18391 wxSlider *arg1 = (wxSlider *) 0 ;
18392 int result;
18393 void *argp1 = 0 ;
18394 int res1 = 0 ;
18395 PyObject *swig_obj[1] ;
18396
18397 if (!args) SWIG_fail;
18398 swig_obj[0] = args;
18399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18400 if (!SWIG_IsOK(res1)) {
18401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18402 }
18403 arg1 = reinterpret_cast< wxSlider * >(argp1);
18404 {
18405 PyThreadState* __tstate = wxPyBeginAllowThreads();
18406 result = (int)((wxSlider const *)arg1)->GetSelStart();
18407 wxPyEndAllowThreads(__tstate);
18408 if (PyErr_Occurred()) SWIG_fail;
18409 }
18410 resultobj = SWIG_From_int(static_cast< int >(result));
18411 return resultobj;
18412 fail:
18413 return NULL;
18414 }
18415
18416
18417 SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18418 PyObject *resultobj = 0;
18419 wxSlider *arg1 = (wxSlider *) 0 ;
18420 int arg2 ;
18421 int arg3 ;
18422 void *argp1 = 0 ;
18423 int res1 = 0 ;
18424 int val2 ;
18425 int ecode2 = 0 ;
18426 int val3 ;
18427 int ecode3 = 0 ;
18428 PyObject * obj0 = 0 ;
18429 PyObject * obj1 = 0 ;
18430 PyObject * obj2 = 0 ;
18431 char * kwnames[] = {
18432 (char *) "self",(char *) "min",(char *) "max", NULL
18433 };
18434
18435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18437 if (!SWIG_IsOK(res1)) {
18438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18439 }
18440 arg1 = reinterpret_cast< wxSlider * >(argp1);
18441 ecode2 = SWIG_AsVal_int(obj1, &val2);
18442 if (!SWIG_IsOK(ecode2)) {
18443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18444 }
18445 arg2 = static_cast< int >(val2);
18446 ecode3 = SWIG_AsVal_int(obj2, &val3);
18447 if (!SWIG_IsOK(ecode3)) {
18448 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18449 }
18450 arg3 = static_cast< int >(val3);
18451 {
18452 PyThreadState* __tstate = wxPyBeginAllowThreads();
18453 (arg1)->SetSelection(arg2,arg3);
18454 wxPyEndAllowThreads(__tstate);
18455 if (PyErr_Occurred()) SWIG_fail;
18456 }
18457 resultobj = SWIG_Py_Void();
18458 return resultobj;
18459 fail:
18460 return NULL;
18461 }
18462
18463
18464 SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18465 PyObject *resultobj = 0;
18466 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18467 SwigValueWrapper<wxVisualAttributes > result;
18468 int val1 ;
18469 int ecode1 = 0 ;
18470 PyObject * obj0 = 0 ;
18471 char * kwnames[] = {
18472 (char *) "variant", NULL
18473 };
18474
18475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18476 if (obj0) {
18477 ecode1 = SWIG_AsVal_int(obj0, &val1);
18478 if (!SWIG_IsOK(ecode1)) {
18479 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18480 }
18481 arg1 = static_cast< wxWindowVariant >(val1);
18482 }
18483 {
18484 if (!wxPyCheckForApp()) SWIG_fail;
18485 PyThreadState* __tstate = wxPyBeginAllowThreads();
18486 result = wxSlider::GetClassDefaultAttributes(arg1);
18487 wxPyEndAllowThreads(__tstate);
18488 if (PyErr_Occurred()) SWIG_fail;
18489 }
18490 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18491 return resultobj;
18492 fail:
18493 return NULL;
18494 }
18495
18496
18497 SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18498 PyObject *obj;
18499 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18500 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18501 return SWIG_Py_Void();
18502 }
18503
18504 SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18505 return SWIG_Python_InitShadowInstance(args);
18506 }
18507
18508 SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18509 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18510 return 1;
18511 }
18512
18513
18514 SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18515 PyObject *pyobj = 0;
18516
18517 {
18518 #if wxUSE_UNICODE
18519 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18520 #else
18521 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18522 #endif
18523 }
18524 return pyobj;
18525 }
18526
18527
18528 SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18529 PyObject *resultobj = 0;
18530 wxWindow *arg1 = (wxWindow *) 0 ;
18531 int arg2 = (int) -1 ;
18532 wxString const &arg3_defvalue = wxPyEmptyString ;
18533 wxString *arg3 = (wxString *) &arg3_defvalue ;
18534 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18535 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18536 wxSize const &arg5_defvalue = wxDefaultSize ;
18537 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18538 long arg6 = (long) 0 ;
18539 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18540 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18541 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18542 wxString *arg8 = (wxString *) &arg8_defvalue ;
18543 wxToggleButton *result = 0 ;
18544 void *argp1 = 0 ;
18545 int res1 = 0 ;
18546 int val2 ;
18547 int ecode2 = 0 ;
18548 bool temp3 = false ;
18549 wxPoint temp4 ;
18550 wxSize temp5 ;
18551 long val6 ;
18552 int ecode6 = 0 ;
18553 void *argp7 = 0 ;
18554 int res7 = 0 ;
18555 bool temp8 = false ;
18556 PyObject * obj0 = 0 ;
18557 PyObject * obj1 = 0 ;
18558 PyObject * obj2 = 0 ;
18559 PyObject * obj3 = 0 ;
18560 PyObject * obj4 = 0 ;
18561 PyObject * obj5 = 0 ;
18562 PyObject * obj6 = 0 ;
18563 PyObject * obj7 = 0 ;
18564 char * kwnames[] = {
18565 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18566 };
18567
18568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18570 if (!SWIG_IsOK(res1)) {
18571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18572 }
18573 arg1 = reinterpret_cast< wxWindow * >(argp1);
18574 if (obj1) {
18575 ecode2 = SWIG_AsVal_int(obj1, &val2);
18576 if (!SWIG_IsOK(ecode2)) {
18577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18578 }
18579 arg2 = static_cast< int >(val2);
18580 }
18581 if (obj2) {
18582 {
18583 arg3 = wxString_in_helper(obj2);
18584 if (arg3 == NULL) SWIG_fail;
18585 temp3 = true;
18586 }
18587 }
18588 if (obj3) {
18589 {
18590 arg4 = &temp4;
18591 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18592 }
18593 }
18594 if (obj4) {
18595 {
18596 arg5 = &temp5;
18597 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18598 }
18599 }
18600 if (obj5) {
18601 ecode6 = SWIG_AsVal_long(obj5, &val6);
18602 if (!SWIG_IsOK(ecode6)) {
18603 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18604 }
18605 arg6 = static_cast< long >(val6);
18606 }
18607 if (obj6) {
18608 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18609 if (!SWIG_IsOK(res7)) {
18610 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18611 }
18612 if (!argp7) {
18613 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18614 }
18615 arg7 = reinterpret_cast< wxValidator * >(argp7);
18616 }
18617 if (obj7) {
18618 {
18619 arg8 = wxString_in_helper(obj7);
18620 if (arg8 == NULL) SWIG_fail;
18621 temp8 = true;
18622 }
18623 }
18624 {
18625 if (!wxPyCheckForApp()) SWIG_fail;
18626 PyThreadState* __tstate = wxPyBeginAllowThreads();
18627 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18628 wxPyEndAllowThreads(__tstate);
18629 if (PyErr_Occurred()) SWIG_fail;
18630 }
18631 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18632 {
18633 if (temp3)
18634 delete arg3;
18635 }
18636 {
18637 if (temp8)
18638 delete arg8;
18639 }
18640 return resultobj;
18641 fail:
18642 {
18643 if (temp3)
18644 delete arg3;
18645 }
18646 {
18647 if (temp8)
18648 delete arg8;
18649 }
18650 return NULL;
18651 }
18652
18653
18654 SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18655 PyObject *resultobj = 0;
18656 wxToggleButton *result = 0 ;
18657
18658 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18659 {
18660 if (!wxPyCheckForApp()) SWIG_fail;
18661 PyThreadState* __tstate = wxPyBeginAllowThreads();
18662 result = (wxToggleButton *)new wxToggleButton();
18663 wxPyEndAllowThreads(__tstate);
18664 if (PyErr_Occurred()) SWIG_fail;
18665 }
18666 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18667 return resultobj;
18668 fail:
18669 return NULL;
18670 }
18671
18672
18673 SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18674 PyObject *resultobj = 0;
18675 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18676 wxWindow *arg2 = (wxWindow *) 0 ;
18677 int arg3 = (int) -1 ;
18678 wxString const &arg4_defvalue = wxPyEmptyString ;
18679 wxString *arg4 = (wxString *) &arg4_defvalue ;
18680 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18681 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18682 wxSize const &arg6_defvalue = wxDefaultSize ;
18683 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18684 long arg7 = (long) 0 ;
18685 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18686 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18687 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18688 wxString *arg9 = (wxString *) &arg9_defvalue ;
18689 bool result;
18690 void *argp1 = 0 ;
18691 int res1 = 0 ;
18692 void *argp2 = 0 ;
18693 int res2 = 0 ;
18694 int val3 ;
18695 int ecode3 = 0 ;
18696 bool temp4 = false ;
18697 wxPoint temp5 ;
18698 wxSize temp6 ;
18699 long val7 ;
18700 int ecode7 = 0 ;
18701 void *argp8 = 0 ;
18702 int res8 = 0 ;
18703 bool temp9 = false ;
18704 PyObject * obj0 = 0 ;
18705 PyObject * obj1 = 0 ;
18706 PyObject * obj2 = 0 ;
18707 PyObject * obj3 = 0 ;
18708 PyObject * obj4 = 0 ;
18709 PyObject * obj5 = 0 ;
18710 PyObject * obj6 = 0 ;
18711 PyObject * obj7 = 0 ;
18712 PyObject * obj8 = 0 ;
18713 char * kwnames[] = {
18714 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18715 };
18716
18717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18719 if (!SWIG_IsOK(res1)) {
18720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18721 }
18722 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18723 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18724 if (!SWIG_IsOK(res2)) {
18725 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18726 }
18727 arg2 = reinterpret_cast< wxWindow * >(argp2);
18728 if (obj2) {
18729 ecode3 = SWIG_AsVal_int(obj2, &val3);
18730 if (!SWIG_IsOK(ecode3)) {
18731 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18732 }
18733 arg3 = static_cast< int >(val3);
18734 }
18735 if (obj3) {
18736 {
18737 arg4 = wxString_in_helper(obj3);
18738 if (arg4 == NULL) SWIG_fail;
18739 temp4 = true;
18740 }
18741 }
18742 if (obj4) {
18743 {
18744 arg5 = &temp5;
18745 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18746 }
18747 }
18748 if (obj5) {
18749 {
18750 arg6 = &temp6;
18751 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
18752 }
18753 }
18754 if (obj6) {
18755 ecode7 = SWIG_AsVal_long(obj6, &val7);
18756 if (!SWIG_IsOK(ecode7)) {
18757 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18758 }
18759 arg7 = static_cast< long >(val7);
18760 }
18761 if (obj7) {
18762 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18763 if (!SWIG_IsOK(res8)) {
18764 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18765 }
18766 if (!argp8) {
18767 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18768 }
18769 arg8 = reinterpret_cast< wxValidator * >(argp8);
18770 }
18771 if (obj8) {
18772 {
18773 arg9 = wxString_in_helper(obj8);
18774 if (arg9 == NULL) SWIG_fail;
18775 temp9 = true;
18776 }
18777 }
18778 {
18779 PyThreadState* __tstate = wxPyBeginAllowThreads();
18780 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18781 wxPyEndAllowThreads(__tstate);
18782 if (PyErr_Occurred()) SWIG_fail;
18783 }
18784 {
18785 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18786 }
18787 {
18788 if (temp4)
18789 delete arg4;
18790 }
18791 {
18792 if (temp9)
18793 delete arg9;
18794 }
18795 return resultobj;
18796 fail:
18797 {
18798 if (temp4)
18799 delete arg4;
18800 }
18801 {
18802 if (temp9)
18803 delete arg9;
18804 }
18805 return NULL;
18806 }
18807
18808
18809 SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18810 PyObject *resultobj = 0;
18811 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18812 bool arg2 ;
18813 void *argp1 = 0 ;
18814 int res1 = 0 ;
18815 bool val2 ;
18816 int ecode2 = 0 ;
18817 PyObject * obj0 = 0 ;
18818 PyObject * obj1 = 0 ;
18819 char * kwnames[] = {
18820 (char *) "self",(char *) "value", NULL
18821 };
18822
18823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18825 if (!SWIG_IsOK(res1)) {
18826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18827 }
18828 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18829 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18830 if (!SWIG_IsOK(ecode2)) {
18831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
18832 }
18833 arg2 = static_cast< bool >(val2);
18834 {
18835 PyThreadState* __tstate = wxPyBeginAllowThreads();
18836 (arg1)->SetValue(arg2);
18837 wxPyEndAllowThreads(__tstate);
18838 if (PyErr_Occurred()) SWIG_fail;
18839 }
18840 resultobj = SWIG_Py_Void();
18841 return resultobj;
18842 fail:
18843 return NULL;
18844 }
18845
18846
18847 SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18848 PyObject *resultobj = 0;
18849 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18850 bool result;
18851 void *argp1 = 0 ;
18852 int res1 = 0 ;
18853 PyObject *swig_obj[1] ;
18854
18855 if (!args) SWIG_fail;
18856 swig_obj[0] = args;
18857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18858 if (!SWIG_IsOK(res1)) {
18859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
18860 }
18861 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18862 {
18863 PyThreadState* __tstate = wxPyBeginAllowThreads();
18864 result = (bool)((wxToggleButton const *)arg1)->GetValue();
18865 wxPyEndAllowThreads(__tstate);
18866 if (PyErr_Occurred()) SWIG_fail;
18867 }
18868 {
18869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18870 }
18871 return resultobj;
18872 fail:
18873 return NULL;
18874 }
18875
18876
18877 SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18878 PyObject *resultobj = 0;
18879 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18880 SwigValueWrapper<wxVisualAttributes > result;
18881 int val1 ;
18882 int ecode1 = 0 ;
18883 PyObject * obj0 = 0 ;
18884 char * kwnames[] = {
18885 (char *) "variant", NULL
18886 };
18887
18888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18889 if (obj0) {
18890 ecode1 = SWIG_AsVal_int(obj0, &val1);
18891 if (!SWIG_IsOK(ecode1)) {
18892 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18893 }
18894 arg1 = static_cast< wxWindowVariant >(val1);
18895 }
18896 {
18897 if (!wxPyCheckForApp()) SWIG_fail;
18898 PyThreadState* __tstate = wxPyBeginAllowThreads();
18899 result = wxToggleButton::GetClassDefaultAttributes(arg1);
18900 wxPyEndAllowThreads(__tstate);
18901 if (PyErr_Occurred()) SWIG_fail;
18902 }
18903 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18904 return resultobj;
18905 fail:
18906 return NULL;
18907 }
18908
18909
18910 SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18911 PyObject *obj;
18912 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18913 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
18914 return SWIG_Py_Void();
18915 }
18916
18917 SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18918 return SWIG_Python_InitShadowInstance(args);
18919 }
18920
18921 SWIGINTERN int NotebookNameStr_set(PyObject *) {
18922 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
18923 return 1;
18924 }
18925
18926
18927 SWIGINTERN PyObject *NotebookNameStr_get(void) {
18928 PyObject *pyobj = 0;
18929
18930 {
18931 #if wxUSE_UNICODE
18932 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
18933 #else
18934 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
18935 #endif
18936 }
18937 return pyobj;
18938 }
18939
18940
18941 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18942 PyObject *resultobj = 0;
18943 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18944 size_t result;
18945 void *argp1 = 0 ;
18946 int res1 = 0 ;
18947 PyObject *swig_obj[1] ;
18948
18949 if (!args) SWIG_fail;
18950 swig_obj[0] = args;
18951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18952 if (!SWIG_IsOK(res1)) {
18953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18954 }
18955 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18956 {
18957 PyThreadState* __tstate = wxPyBeginAllowThreads();
18958 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
18959 wxPyEndAllowThreads(__tstate);
18960 if (PyErr_Occurred()) SWIG_fail;
18961 }
18962 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
18963 return resultobj;
18964 fail:
18965 return NULL;
18966 }
18967
18968
18969 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18970 PyObject *resultobj = 0;
18971 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18972 size_t arg2 ;
18973 wxWindow *result = 0 ;
18974 void *argp1 = 0 ;
18975 int res1 = 0 ;
18976 size_t val2 ;
18977 int ecode2 = 0 ;
18978 PyObject * obj0 = 0 ;
18979 PyObject * obj1 = 0 ;
18980 char * kwnames[] = {
18981 (char *) "self",(char *) "n", NULL
18982 };
18983
18984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
18985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18986 if (!SWIG_IsOK(res1)) {
18987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
18988 }
18989 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18990 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18991 if (!SWIG_IsOK(ecode2)) {
18992 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
18993 }
18994 arg2 = static_cast< size_t >(val2);
18995 {
18996 PyThreadState* __tstate = wxPyBeginAllowThreads();
18997 result = (wxWindow *)(arg1)->GetPage(arg2);
18998 wxPyEndAllowThreads(__tstate);
18999 if (PyErr_Occurred()) SWIG_fail;
19000 }
19001 {
19002 resultobj = wxPyMake_wxObject(result, 0);
19003 }
19004 return resultobj;
19005 fail:
19006 return NULL;
19007 }
19008
19009
19010 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19011 PyObject *resultobj = 0;
19012 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19013 wxWindow *result = 0 ;
19014 void *argp1 = 0 ;
19015 int res1 = 0 ;
19016 PyObject *swig_obj[1] ;
19017
19018 if (!args) SWIG_fail;
19019 swig_obj[0] = args;
19020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19021 if (!SWIG_IsOK(res1)) {
19022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19023 }
19024 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19025 {
19026 PyThreadState* __tstate = wxPyBeginAllowThreads();
19027 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19028 wxPyEndAllowThreads(__tstate);
19029 if (PyErr_Occurred()) SWIG_fail;
19030 }
19031 {
19032 resultobj = wxPyMake_wxObject(result, 0);
19033 }
19034 return resultobj;
19035 fail:
19036 return NULL;
19037 }
19038
19039
19040 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19041 PyObject *resultobj = 0;
19042 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19043 int result;
19044 void *argp1 = 0 ;
19045 int res1 = 0 ;
19046 PyObject *swig_obj[1] ;
19047
19048 if (!args) SWIG_fail;
19049 swig_obj[0] = args;
19050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19051 if (!SWIG_IsOK(res1)) {
19052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19053 }
19054 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19055 {
19056 PyThreadState* __tstate = wxPyBeginAllowThreads();
19057 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19058 wxPyEndAllowThreads(__tstate);
19059 if (PyErr_Occurred()) SWIG_fail;
19060 }
19061 resultobj = SWIG_From_int(static_cast< int >(result));
19062 return resultobj;
19063 fail:
19064 return NULL;
19065 }
19066
19067
19068 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19069 PyObject *resultobj = 0;
19070 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19071 size_t arg2 ;
19072 wxString *arg3 = 0 ;
19073 bool result;
19074 void *argp1 = 0 ;
19075 int res1 = 0 ;
19076 size_t val2 ;
19077 int ecode2 = 0 ;
19078 bool temp3 = false ;
19079 PyObject * obj0 = 0 ;
19080 PyObject * obj1 = 0 ;
19081 PyObject * obj2 = 0 ;
19082 char * kwnames[] = {
19083 (char *) "self",(char *) "n",(char *) "strText", NULL
19084 };
19085
19086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19088 if (!SWIG_IsOK(res1)) {
19089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19090 }
19091 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19092 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19093 if (!SWIG_IsOK(ecode2)) {
19094 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19095 }
19096 arg2 = static_cast< size_t >(val2);
19097 {
19098 arg3 = wxString_in_helper(obj2);
19099 if (arg3 == NULL) SWIG_fail;
19100 temp3 = true;
19101 }
19102 {
19103 PyThreadState* __tstate = wxPyBeginAllowThreads();
19104 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19105 wxPyEndAllowThreads(__tstate);
19106 if (PyErr_Occurred()) SWIG_fail;
19107 }
19108 {
19109 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19110 }
19111 {
19112 if (temp3)
19113 delete arg3;
19114 }
19115 return resultobj;
19116 fail:
19117 {
19118 if (temp3)
19119 delete arg3;
19120 }
19121 return NULL;
19122 }
19123
19124
19125 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19126 PyObject *resultobj = 0;
19127 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19128 size_t arg2 ;
19129 wxString result;
19130 void *argp1 = 0 ;
19131 int res1 = 0 ;
19132 size_t val2 ;
19133 int ecode2 = 0 ;
19134 PyObject * obj0 = 0 ;
19135 PyObject * obj1 = 0 ;
19136 char * kwnames[] = {
19137 (char *) "self",(char *) "n", NULL
19138 };
19139
19140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19142 if (!SWIG_IsOK(res1)) {
19143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19144 }
19145 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19146 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19147 if (!SWIG_IsOK(ecode2)) {
19148 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19149 }
19150 arg2 = static_cast< size_t >(val2);
19151 {
19152 PyThreadState* __tstate = wxPyBeginAllowThreads();
19153 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19154 wxPyEndAllowThreads(__tstate);
19155 if (PyErr_Occurred()) SWIG_fail;
19156 }
19157 {
19158 #if wxUSE_UNICODE
19159 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19160 #else
19161 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19162 #endif
19163 }
19164 return resultobj;
19165 fail:
19166 return NULL;
19167 }
19168
19169
19170 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19171 PyObject *resultobj = 0;
19172 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19173 wxImageList *arg2 = (wxImageList *) 0 ;
19174 void *argp1 = 0 ;
19175 int res1 = 0 ;
19176 void *argp2 = 0 ;
19177 int res2 = 0 ;
19178 PyObject * obj0 = 0 ;
19179 PyObject * obj1 = 0 ;
19180 char * kwnames[] = {
19181 (char *) "self",(char *) "imageList", NULL
19182 };
19183
19184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19186 if (!SWIG_IsOK(res1)) {
19187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19188 }
19189 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19190 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19191 if (!SWIG_IsOK(res2)) {
19192 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19193 }
19194 arg2 = reinterpret_cast< wxImageList * >(argp2);
19195 {
19196 PyThreadState* __tstate = wxPyBeginAllowThreads();
19197 (arg1)->SetImageList(arg2);
19198 wxPyEndAllowThreads(__tstate);
19199 if (PyErr_Occurred()) SWIG_fail;
19200 }
19201 resultobj = SWIG_Py_Void();
19202 return resultobj;
19203 fail:
19204 return NULL;
19205 }
19206
19207
19208 SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19209 PyObject *resultobj = 0;
19210 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19211 wxImageList *arg2 = (wxImageList *) 0 ;
19212 void *argp1 = 0 ;
19213 int res1 = 0 ;
19214 int res2 = 0 ;
19215 PyObject * obj0 = 0 ;
19216 PyObject * obj1 = 0 ;
19217 char * kwnames[] = {
19218 (char *) "self",(char *) "imageList", NULL
19219 };
19220
19221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19223 if (!SWIG_IsOK(res1)) {
19224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19225 }
19226 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19227 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19228 if (!SWIG_IsOK(res2)) {
19229 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19230 }
19231 {
19232 PyThreadState* __tstate = wxPyBeginAllowThreads();
19233 (arg1)->AssignImageList(arg2);
19234 wxPyEndAllowThreads(__tstate);
19235 if (PyErr_Occurred()) SWIG_fail;
19236 }
19237 resultobj = SWIG_Py_Void();
19238 return resultobj;
19239 fail:
19240 return NULL;
19241 }
19242
19243
19244 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19245 PyObject *resultobj = 0;
19246 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19247 wxImageList *result = 0 ;
19248 void *argp1 = 0 ;
19249 int res1 = 0 ;
19250 PyObject *swig_obj[1] ;
19251
19252 if (!args) SWIG_fail;
19253 swig_obj[0] = args;
19254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19255 if (!SWIG_IsOK(res1)) {
19256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19257 }
19258 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19259 {
19260 PyThreadState* __tstate = wxPyBeginAllowThreads();
19261 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19262 wxPyEndAllowThreads(__tstate);
19263 if (PyErr_Occurred()) SWIG_fail;
19264 }
19265 {
19266 resultobj = wxPyMake_wxObject(result, (bool)0);
19267 }
19268 return resultobj;
19269 fail:
19270 return NULL;
19271 }
19272
19273
19274 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19275 PyObject *resultobj = 0;
19276 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19277 size_t arg2 ;
19278 int result;
19279 void *argp1 = 0 ;
19280 int res1 = 0 ;
19281 size_t val2 ;
19282 int ecode2 = 0 ;
19283 PyObject * obj0 = 0 ;
19284 PyObject * obj1 = 0 ;
19285 char * kwnames[] = {
19286 (char *) "self",(char *) "n", NULL
19287 };
19288
19289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19291 if (!SWIG_IsOK(res1)) {
19292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19293 }
19294 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19295 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19296 if (!SWIG_IsOK(ecode2)) {
19297 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19298 }
19299 arg2 = static_cast< size_t >(val2);
19300 {
19301 PyThreadState* __tstate = wxPyBeginAllowThreads();
19302 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19303 wxPyEndAllowThreads(__tstate);
19304 if (PyErr_Occurred()) SWIG_fail;
19305 }
19306 resultobj = SWIG_From_int(static_cast< int >(result));
19307 return resultobj;
19308 fail:
19309 return NULL;
19310 }
19311
19312
19313 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19314 PyObject *resultobj = 0;
19315 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19316 size_t arg2 ;
19317 int arg3 ;
19318 bool result;
19319 void *argp1 = 0 ;
19320 int res1 = 0 ;
19321 size_t val2 ;
19322 int ecode2 = 0 ;
19323 int val3 ;
19324 int ecode3 = 0 ;
19325 PyObject * obj0 = 0 ;
19326 PyObject * obj1 = 0 ;
19327 PyObject * obj2 = 0 ;
19328 char * kwnames[] = {
19329 (char *) "self",(char *) "n",(char *) "imageId", NULL
19330 };
19331
19332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19334 if (!SWIG_IsOK(res1)) {
19335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19336 }
19337 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19338 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19339 if (!SWIG_IsOK(ecode2)) {
19340 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19341 }
19342 arg2 = static_cast< size_t >(val2);
19343 ecode3 = SWIG_AsVal_int(obj2, &val3);
19344 if (!SWIG_IsOK(ecode3)) {
19345 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19346 }
19347 arg3 = static_cast< int >(val3);
19348 {
19349 PyThreadState* __tstate = wxPyBeginAllowThreads();
19350 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19351 wxPyEndAllowThreads(__tstate);
19352 if (PyErr_Occurred()) SWIG_fail;
19353 }
19354 {
19355 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19356 }
19357 return resultobj;
19358 fail:
19359 return NULL;
19360 }
19361
19362
19363 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19364 PyObject *resultobj = 0;
19365 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19366 wxSize *arg2 = 0 ;
19367 void *argp1 = 0 ;
19368 int res1 = 0 ;
19369 wxSize temp2 ;
19370 PyObject * obj0 = 0 ;
19371 PyObject * obj1 = 0 ;
19372 char * kwnames[] = {
19373 (char *) "self",(char *) "size", NULL
19374 };
19375
19376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",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_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19380 }
19381 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19382 {
19383 arg2 = &temp2;
19384 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19385 }
19386 {
19387 PyThreadState* __tstate = wxPyBeginAllowThreads();
19388 (arg1)->SetPageSize((wxSize const &)*arg2);
19389 wxPyEndAllowThreads(__tstate);
19390 if (PyErr_Occurred()) SWIG_fail;
19391 }
19392 resultobj = SWIG_Py_Void();
19393 return resultobj;
19394 fail:
19395 return NULL;
19396 }
19397
19398
19399 SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19400 PyObject *resultobj = 0;
19401 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19402 wxSize *arg2 = 0 ;
19403 wxSize result;
19404 void *argp1 = 0 ;
19405 int res1 = 0 ;
19406 wxSize temp2 ;
19407 PyObject * obj0 = 0 ;
19408 PyObject * obj1 = 0 ;
19409 char * kwnames[] = {
19410 (char *) "self",(char *) "sizePage", NULL
19411 };
19412
19413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19415 if (!SWIG_IsOK(res1)) {
19416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19417 }
19418 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19419 {
19420 arg2 = &temp2;
19421 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19422 }
19423 {
19424 PyThreadState* __tstate = wxPyBeginAllowThreads();
19425 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19426 wxPyEndAllowThreads(__tstate);
19427 if (PyErr_Occurred()) SWIG_fail;
19428 }
19429 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19430 return resultobj;
19431 fail:
19432 return NULL;
19433 }
19434
19435
19436 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19437 PyObject *resultobj = 0;
19438 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19439 unsigned int result;
19440 void *argp1 = 0 ;
19441 int res1 = 0 ;
19442 PyObject *swig_obj[1] ;
19443
19444 if (!args) SWIG_fail;
19445 swig_obj[0] = args;
19446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19447 if (!SWIG_IsOK(res1)) {
19448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19449 }
19450 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19451 {
19452 PyThreadState* __tstate = wxPyBeginAllowThreads();
19453 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
19454 wxPyEndAllowThreads(__tstate);
19455 if (PyErr_Occurred()) SWIG_fail;
19456 }
19457 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19458 return resultobj;
19459 fail:
19460 return NULL;
19461 }
19462
19463
19464 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19465 PyObject *resultobj = 0;
19466 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19467 unsigned int arg2 ;
19468 void *argp1 = 0 ;
19469 int res1 = 0 ;
19470 unsigned int val2 ;
19471 int ecode2 = 0 ;
19472 PyObject * obj0 = 0 ;
19473 PyObject * obj1 = 0 ;
19474 char * kwnames[] = {
19475 (char *) "self",(char *) "internalBorder", NULL
19476 };
19477
19478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19480 if (!SWIG_IsOK(res1)) {
19481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19482 }
19483 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19484 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
19485 if (!SWIG_IsOK(ecode2)) {
19486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
19487 }
19488 arg2 = static_cast< unsigned int >(val2);
19489 {
19490 PyThreadState* __tstate = wxPyBeginAllowThreads();
19491 (arg1)->SetInternalBorder(arg2);
19492 wxPyEndAllowThreads(__tstate);
19493 if (PyErr_Occurred()) SWIG_fail;
19494 }
19495 resultobj = SWIG_Py_Void();
19496 return resultobj;
19497 fail:
19498 return NULL;
19499 }
19500
19501
19502 SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19503 PyObject *resultobj = 0;
19504 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19505 bool result;
19506 void *argp1 = 0 ;
19507 int res1 = 0 ;
19508 PyObject *swig_obj[1] ;
19509
19510 if (!args) SWIG_fail;
19511 swig_obj[0] = args;
19512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19513 if (!SWIG_IsOK(res1)) {
19514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19515 }
19516 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19517 {
19518 PyThreadState* __tstate = wxPyBeginAllowThreads();
19519 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19520 wxPyEndAllowThreads(__tstate);
19521 if (PyErr_Occurred()) SWIG_fail;
19522 }
19523 {
19524 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19525 }
19526 return resultobj;
19527 fail:
19528 return NULL;
19529 }
19530
19531
19532 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19533 PyObject *resultobj = 0;
19534 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19535 int arg2 ;
19536 void *argp1 = 0 ;
19537 int res1 = 0 ;
19538 int val2 ;
19539 int ecode2 = 0 ;
19540 PyObject * obj0 = 0 ;
19541 PyObject * obj1 = 0 ;
19542 char * kwnames[] = {
19543 (char *) "self",(char *) "margin", NULL
19544 };
19545
19546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19548 if (!SWIG_IsOK(res1)) {
19549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19550 }
19551 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19552 ecode2 = SWIG_AsVal_int(obj1, &val2);
19553 if (!SWIG_IsOK(ecode2)) {
19554 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19555 }
19556 arg2 = static_cast< int >(val2);
19557 {
19558 PyThreadState* __tstate = wxPyBeginAllowThreads();
19559 (arg1)->SetControlMargin(arg2);
19560 wxPyEndAllowThreads(__tstate);
19561 if (PyErr_Occurred()) SWIG_fail;
19562 }
19563 resultobj = SWIG_Py_Void();
19564 return resultobj;
19565 fail:
19566 return NULL;
19567 }
19568
19569
19570 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19571 PyObject *resultobj = 0;
19572 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19573 int result;
19574 void *argp1 = 0 ;
19575 int res1 = 0 ;
19576 PyObject *swig_obj[1] ;
19577
19578 if (!args) SWIG_fail;
19579 swig_obj[0] = args;
19580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19581 if (!SWIG_IsOK(res1)) {
19582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19583 }
19584 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19585 {
19586 PyThreadState* __tstate = wxPyBeginAllowThreads();
19587 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19588 wxPyEndAllowThreads(__tstate);
19589 if (PyErr_Occurred()) SWIG_fail;
19590 }
19591 resultobj = SWIG_From_int(static_cast< int >(result));
19592 return resultobj;
19593 fail:
19594 return NULL;
19595 }
19596
19597
19598 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19599 PyObject *resultobj = 0;
19600 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19601 bool arg2 ;
19602 void *argp1 = 0 ;
19603 int res1 = 0 ;
19604 bool val2 ;
19605 int ecode2 = 0 ;
19606 PyObject * obj0 = 0 ;
19607 PyObject * obj1 = 0 ;
19608 char * kwnames[] = {
19609 (char *) "self",(char *) "fit", NULL
19610 };
19611
19612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19614 if (!SWIG_IsOK(res1)) {
19615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19616 }
19617 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19618 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19619 if (!SWIG_IsOK(ecode2)) {
19620 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19621 }
19622 arg2 = static_cast< bool >(val2);
19623 {
19624 PyThreadState* __tstate = wxPyBeginAllowThreads();
19625 (arg1)->SetFitToCurrentPage(arg2);
19626 wxPyEndAllowThreads(__tstate);
19627 if (PyErr_Occurred()) SWIG_fail;
19628 }
19629 resultobj = SWIG_Py_Void();
19630 return resultobj;
19631 fail:
19632 return NULL;
19633 }
19634
19635
19636 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19637 PyObject *resultobj = 0;
19638 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19639 bool result;
19640 void *argp1 = 0 ;
19641 int res1 = 0 ;
19642 PyObject *swig_obj[1] ;
19643
19644 if (!args) SWIG_fail;
19645 swig_obj[0] = args;
19646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19647 if (!SWIG_IsOK(res1)) {
19648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19649 }
19650 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19651 {
19652 PyThreadState* __tstate = wxPyBeginAllowThreads();
19653 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19654 wxPyEndAllowThreads(__tstate);
19655 if (PyErr_Occurred()) SWIG_fail;
19656 }
19657 {
19658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19659 }
19660 return resultobj;
19661 fail:
19662 return NULL;
19663 }
19664
19665
19666 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19667 PyObject *resultobj = 0;
19668 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19669 wxSizer *result = 0 ;
19670 void *argp1 = 0 ;
19671 int res1 = 0 ;
19672 PyObject *swig_obj[1] ;
19673
19674 if (!args) SWIG_fail;
19675 swig_obj[0] = args;
19676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19677 if (!SWIG_IsOK(res1)) {
19678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19679 }
19680 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19681 {
19682 PyThreadState* __tstate = wxPyBeginAllowThreads();
19683 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19684 wxPyEndAllowThreads(__tstate);
19685 if (PyErr_Occurred()) SWIG_fail;
19686 }
19687 {
19688 resultobj = wxPyMake_wxObject(result, (bool)0);
19689 }
19690 return resultobj;
19691 fail:
19692 return NULL;
19693 }
19694
19695
19696 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19697 PyObject *resultobj = 0;
19698 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19699 size_t arg2 ;
19700 bool result;
19701 void *argp1 = 0 ;
19702 int res1 = 0 ;
19703 size_t val2 ;
19704 int ecode2 = 0 ;
19705 PyObject * obj0 = 0 ;
19706 PyObject * obj1 = 0 ;
19707 char * kwnames[] = {
19708 (char *) "self",(char *) "n", NULL
19709 };
19710
19711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19713 if (!SWIG_IsOK(res1)) {
19714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19715 }
19716 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19717 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19718 if (!SWIG_IsOK(ecode2)) {
19719 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19720 }
19721 arg2 = static_cast< size_t >(val2);
19722 {
19723 PyThreadState* __tstate = wxPyBeginAllowThreads();
19724 result = (bool)(arg1)->DeletePage(arg2);
19725 wxPyEndAllowThreads(__tstate);
19726 if (PyErr_Occurred()) SWIG_fail;
19727 }
19728 {
19729 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19730 }
19731 return resultobj;
19732 fail:
19733 return NULL;
19734 }
19735
19736
19737 SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19738 PyObject *resultobj = 0;
19739 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19740 size_t arg2 ;
19741 bool result;
19742 void *argp1 = 0 ;
19743 int res1 = 0 ;
19744 size_t val2 ;
19745 int ecode2 = 0 ;
19746 PyObject * obj0 = 0 ;
19747 PyObject * obj1 = 0 ;
19748 char * kwnames[] = {
19749 (char *) "self",(char *) "n", NULL
19750 };
19751
19752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19754 if (!SWIG_IsOK(res1)) {
19755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19756 }
19757 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19758 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19759 if (!SWIG_IsOK(ecode2)) {
19760 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19761 }
19762 arg2 = static_cast< size_t >(val2);
19763 {
19764 PyThreadState* __tstate = wxPyBeginAllowThreads();
19765 result = (bool)(arg1)->RemovePage(arg2);
19766 wxPyEndAllowThreads(__tstate);
19767 if (PyErr_Occurred()) SWIG_fail;
19768 }
19769 {
19770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19771 }
19772 return resultobj;
19773 fail:
19774 return NULL;
19775 }
19776
19777
19778 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19779 PyObject *resultobj = 0;
19780 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19781 bool result;
19782 void *argp1 = 0 ;
19783 int res1 = 0 ;
19784 PyObject *swig_obj[1] ;
19785
19786 if (!args) SWIG_fail;
19787 swig_obj[0] = args;
19788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19789 if (!SWIG_IsOK(res1)) {
19790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19791 }
19792 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19793 {
19794 PyThreadState* __tstate = wxPyBeginAllowThreads();
19795 result = (bool)(arg1)->DeleteAllPages();
19796 wxPyEndAllowThreads(__tstate);
19797 if (PyErr_Occurred()) SWIG_fail;
19798 }
19799 {
19800 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19801 }
19802 return resultobj;
19803 fail:
19804 return NULL;
19805 }
19806
19807
19808 SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19809 PyObject *resultobj = 0;
19810 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19811 wxWindow *arg2 = (wxWindow *) 0 ;
19812 wxString *arg3 = 0 ;
19813 bool arg4 = (bool) false ;
19814 int arg5 = (int) -1 ;
19815 bool result;
19816 void *argp1 = 0 ;
19817 int res1 = 0 ;
19818 void *argp2 = 0 ;
19819 int res2 = 0 ;
19820 bool temp3 = false ;
19821 bool val4 ;
19822 int ecode4 = 0 ;
19823 int val5 ;
19824 int ecode5 = 0 ;
19825 PyObject * obj0 = 0 ;
19826 PyObject * obj1 = 0 ;
19827 PyObject * obj2 = 0 ;
19828 PyObject * obj3 = 0 ;
19829 PyObject * obj4 = 0 ;
19830 char * kwnames[] = {
19831 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19832 };
19833
19834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19836 if (!SWIG_IsOK(res1)) {
19837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19838 }
19839 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19840 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19841 if (!SWIG_IsOK(res2)) {
19842 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
19843 }
19844 arg2 = reinterpret_cast< wxWindow * >(argp2);
19845 {
19846 arg3 = wxString_in_helper(obj2);
19847 if (arg3 == NULL) SWIG_fail;
19848 temp3 = true;
19849 }
19850 if (obj3) {
19851 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19852 if (!SWIG_IsOK(ecode4)) {
19853 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
19854 }
19855 arg4 = static_cast< bool >(val4);
19856 }
19857 if (obj4) {
19858 ecode5 = SWIG_AsVal_int(obj4, &val5);
19859 if (!SWIG_IsOK(ecode5)) {
19860 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
19861 }
19862 arg5 = static_cast< int >(val5);
19863 }
19864 {
19865 PyThreadState* __tstate = wxPyBeginAllowThreads();
19866 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
19867 wxPyEndAllowThreads(__tstate);
19868 if (PyErr_Occurred()) SWIG_fail;
19869 }
19870 {
19871 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19872 }
19873 {
19874 if (temp3)
19875 delete arg3;
19876 }
19877 return resultobj;
19878 fail:
19879 {
19880 if (temp3)
19881 delete arg3;
19882 }
19883 return NULL;
19884 }
19885
19886
19887 SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19888 PyObject *resultobj = 0;
19889 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19890 size_t arg2 ;
19891 wxWindow *arg3 = (wxWindow *) 0 ;
19892 wxString *arg4 = 0 ;
19893 bool arg5 = (bool) false ;
19894 int arg6 = (int) -1 ;
19895 bool result;
19896 void *argp1 = 0 ;
19897 int res1 = 0 ;
19898 size_t val2 ;
19899 int ecode2 = 0 ;
19900 void *argp3 = 0 ;
19901 int res3 = 0 ;
19902 bool temp4 = false ;
19903 bool val5 ;
19904 int ecode5 = 0 ;
19905 int val6 ;
19906 int ecode6 = 0 ;
19907 PyObject * obj0 = 0 ;
19908 PyObject * obj1 = 0 ;
19909 PyObject * obj2 = 0 ;
19910 PyObject * obj3 = 0 ;
19911 PyObject * obj4 = 0 ;
19912 PyObject * obj5 = 0 ;
19913 char * kwnames[] = {
19914 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19915 };
19916
19917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19919 if (!SWIG_IsOK(res1)) {
19920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19921 }
19922 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19923 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19924 if (!SWIG_IsOK(ecode2)) {
19925 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
19926 }
19927 arg2 = static_cast< size_t >(val2);
19928 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
19929 if (!SWIG_IsOK(res3)) {
19930 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
19931 }
19932 arg3 = reinterpret_cast< wxWindow * >(argp3);
19933 {
19934 arg4 = wxString_in_helper(obj3);
19935 if (arg4 == NULL) SWIG_fail;
19936 temp4 = true;
19937 }
19938 if (obj4) {
19939 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19940 if (!SWIG_IsOK(ecode5)) {
19941 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
19942 }
19943 arg5 = static_cast< bool >(val5);
19944 }
19945 if (obj5) {
19946 ecode6 = SWIG_AsVal_int(obj5, &val6);
19947 if (!SWIG_IsOK(ecode6)) {
19948 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
19949 }
19950 arg6 = static_cast< int >(val6);
19951 }
19952 {
19953 PyThreadState* __tstate = wxPyBeginAllowThreads();
19954 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
19955 wxPyEndAllowThreads(__tstate);
19956 if (PyErr_Occurred()) SWIG_fail;
19957 }
19958 {
19959 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19960 }
19961 {
19962 if (temp4)
19963 delete arg4;
19964 }
19965 return resultobj;
19966 fail:
19967 {
19968 if (temp4)
19969 delete arg4;
19970 }
19971 return NULL;
19972 }
19973
19974
19975 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19976 PyObject *resultobj = 0;
19977 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19978 size_t arg2 ;
19979 int result;
19980 void *argp1 = 0 ;
19981 int res1 = 0 ;
19982 size_t val2 ;
19983 int ecode2 = 0 ;
19984 PyObject * obj0 = 0 ;
19985 PyObject * obj1 = 0 ;
19986 char * kwnames[] = {
19987 (char *) "self",(char *) "n", NULL
19988 };
19989
19990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19992 if (!SWIG_IsOK(res1)) {
19993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19994 }
19995 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19996 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19997 if (!SWIG_IsOK(ecode2)) {
19998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
19999 }
20000 arg2 = static_cast< size_t >(val2);
20001 {
20002 PyThreadState* __tstate = wxPyBeginAllowThreads();
20003 result = (int)(arg1)->SetSelection(arg2);
20004 wxPyEndAllowThreads(__tstate);
20005 if (PyErr_Occurred()) SWIG_fail;
20006 }
20007 resultobj = SWIG_From_int(static_cast< int >(result));
20008 return resultobj;
20009 fail:
20010 return NULL;
20011 }
20012
20013
20014 SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20015 PyObject *resultobj = 0;
20016 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20017 bool arg2 = (bool) true ;
20018 void *argp1 = 0 ;
20019 int res1 = 0 ;
20020 bool val2 ;
20021 int ecode2 = 0 ;
20022 PyObject * obj0 = 0 ;
20023 PyObject * obj1 = 0 ;
20024 char * kwnames[] = {
20025 (char *) "self",(char *) "forward", NULL
20026 };
20027
20028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20030 if (!SWIG_IsOK(res1)) {
20031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20032 }
20033 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20034 if (obj1) {
20035 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20036 if (!SWIG_IsOK(ecode2)) {
20037 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20038 }
20039 arg2 = static_cast< bool >(val2);
20040 }
20041 {
20042 PyThreadState* __tstate = wxPyBeginAllowThreads();
20043 (arg1)->AdvanceSelection(arg2);
20044 wxPyEndAllowThreads(__tstate);
20045 if (PyErr_Occurred()) SWIG_fail;
20046 }
20047 resultobj = SWIG_Py_Void();
20048 return resultobj;
20049 fail:
20050 return NULL;
20051 }
20052
20053
20054 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20055 PyObject *resultobj = 0;
20056 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20057 SwigValueWrapper<wxVisualAttributes > result;
20058 int val1 ;
20059 int ecode1 = 0 ;
20060 PyObject * obj0 = 0 ;
20061 char * kwnames[] = {
20062 (char *) "variant", NULL
20063 };
20064
20065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20066 if (obj0) {
20067 ecode1 = SWIG_AsVal_int(obj0, &val1);
20068 if (!SWIG_IsOK(ecode1)) {
20069 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20070 }
20071 arg1 = static_cast< wxWindowVariant >(val1);
20072 }
20073 {
20074 if (!wxPyCheckForApp()) SWIG_fail;
20075 PyThreadState* __tstate = wxPyBeginAllowThreads();
20076 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20077 wxPyEndAllowThreads(__tstate);
20078 if (PyErr_Occurred()) SWIG_fail;
20079 }
20080 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20081 return resultobj;
20082 fail:
20083 return NULL;
20084 }
20085
20086
20087 SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20088 PyObject *obj;
20089 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20090 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20091 return SWIG_Py_Void();
20092 }
20093
20094 SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20095 PyObject *resultobj = 0;
20096 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20097 int arg2 = (int) 0 ;
20098 int arg3 = (int) -1 ;
20099 int arg4 = (int) -1 ;
20100 wxBookCtrlBaseEvent *result = 0 ;
20101 int val1 ;
20102 int ecode1 = 0 ;
20103 int val2 ;
20104 int ecode2 = 0 ;
20105 int val3 ;
20106 int ecode3 = 0 ;
20107 int val4 ;
20108 int ecode4 = 0 ;
20109 PyObject * obj0 = 0 ;
20110 PyObject * obj1 = 0 ;
20111 PyObject * obj2 = 0 ;
20112 PyObject * obj3 = 0 ;
20113 char * kwnames[] = {
20114 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20115 };
20116
20117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20118 if (obj0) {
20119 ecode1 = SWIG_AsVal_int(obj0, &val1);
20120 if (!SWIG_IsOK(ecode1)) {
20121 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20122 }
20123 arg1 = static_cast< wxEventType >(val1);
20124 }
20125 if (obj1) {
20126 ecode2 = SWIG_AsVal_int(obj1, &val2);
20127 if (!SWIG_IsOK(ecode2)) {
20128 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20129 }
20130 arg2 = static_cast< int >(val2);
20131 }
20132 if (obj2) {
20133 ecode3 = SWIG_AsVal_int(obj2, &val3);
20134 if (!SWIG_IsOK(ecode3)) {
20135 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20136 }
20137 arg3 = static_cast< int >(val3);
20138 }
20139 if (obj3) {
20140 ecode4 = SWIG_AsVal_int(obj3, &val4);
20141 if (!SWIG_IsOK(ecode4)) {
20142 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20143 }
20144 arg4 = static_cast< int >(val4);
20145 }
20146 {
20147 PyThreadState* __tstate = wxPyBeginAllowThreads();
20148 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20149 wxPyEndAllowThreads(__tstate);
20150 if (PyErr_Occurred()) SWIG_fail;
20151 }
20152 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20153 return resultobj;
20154 fail:
20155 return NULL;
20156 }
20157
20158
20159 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20160 PyObject *resultobj = 0;
20161 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20162 int result;
20163 void *argp1 = 0 ;
20164 int res1 = 0 ;
20165 PyObject *swig_obj[1] ;
20166
20167 if (!args) SWIG_fail;
20168 swig_obj[0] = args;
20169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20170 if (!SWIG_IsOK(res1)) {
20171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20172 }
20173 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20174 {
20175 PyThreadState* __tstate = wxPyBeginAllowThreads();
20176 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20177 wxPyEndAllowThreads(__tstate);
20178 if (PyErr_Occurred()) SWIG_fail;
20179 }
20180 resultobj = SWIG_From_int(static_cast< int >(result));
20181 return resultobj;
20182 fail:
20183 return NULL;
20184 }
20185
20186
20187 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20188 PyObject *resultobj = 0;
20189 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20190 int arg2 ;
20191 void *argp1 = 0 ;
20192 int res1 = 0 ;
20193 int val2 ;
20194 int ecode2 = 0 ;
20195 PyObject * obj0 = 0 ;
20196 PyObject * obj1 = 0 ;
20197 char * kwnames[] = {
20198 (char *) "self",(char *) "nSel", NULL
20199 };
20200
20201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20203 if (!SWIG_IsOK(res1)) {
20204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20205 }
20206 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20207 ecode2 = SWIG_AsVal_int(obj1, &val2);
20208 if (!SWIG_IsOK(ecode2)) {
20209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20210 }
20211 arg2 = static_cast< int >(val2);
20212 {
20213 PyThreadState* __tstate = wxPyBeginAllowThreads();
20214 (arg1)->SetSelection(arg2);
20215 wxPyEndAllowThreads(__tstate);
20216 if (PyErr_Occurred()) SWIG_fail;
20217 }
20218 resultobj = SWIG_Py_Void();
20219 return resultobj;
20220 fail:
20221 return NULL;
20222 }
20223
20224
20225 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20226 PyObject *resultobj = 0;
20227 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20228 int result;
20229 void *argp1 = 0 ;
20230 int res1 = 0 ;
20231 PyObject *swig_obj[1] ;
20232
20233 if (!args) SWIG_fail;
20234 swig_obj[0] = args;
20235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20236 if (!SWIG_IsOK(res1)) {
20237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20238 }
20239 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20240 {
20241 PyThreadState* __tstate = wxPyBeginAllowThreads();
20242 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20243 wxPyEndAllowThreads(__tstate);
20244 if (PyErr_Occurred()) SWIG_fail;
20245 }
20246 resultobj = SWIG_From_int(static_cast< int >(result));
20247 return resultobj;
20248 fail:
20249 return NULL;
20250 }
20251
20252
20253 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20254 PyObject *resultobj = 0;
20255 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20256 int arg2 ;
20257 void *argp1 = 0 ;
20258 int res1 = 0 ;
20259 int val2 ;
20260 int ecode2 = 0 ;
20261 PyObject * obj0 = 0 ;
20262 PyObject * obj1 = 0 ;
20263 char * kwnames[] = {
20264 (char *) "self",(char *) "nOldSel", NULL
20265 };
20266
20267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20269 if (!SWIG_IsOK(res1)) {
20270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20271 }
20272 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20273 ecode2 = SWIG_AsVal_int(obj1, &val2);
20274 if (!SWIG_IsOK(ecode2)) {
20275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20276 }
20277 arg2 = static_cast< int >(val2);
20278 {
20279 PyThreadState* __tstate = wxPyBeginAllowThreads();
20280 (arg1)->SetOldSelection(arg2);
20281 wxPyEndAllowThreads(__tstate);
20282 if (PyErr_Occurred()) SWIG_fail;
20283 }
20284 resultobj = SWIG_Py_Void();
20285 return resultobj;
20286 fail:
20287 return NULL;
20288 }
20289
20290
20291 SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20292 PyObject *obj;
20293 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20294 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20295 return SWIG_Py_Void();
20296 }
20297
20298 SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20299 return SWIG_Python_InitShadowInstance(args);
20300 }
20301
20302 SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20303 PyObject *resultobj = 0;
20304 wxWindow *arg1 = (wxWindow *) 0 ;
20305 int arg2 = (int) -1 ;
20306 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20307 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20308 wxSize const &arg4_defvalue = wxDefaultSize ;
20309 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20310 long arg5 = (long) 0 ;
20311 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20312 wxString *arg6 = (wxString *) &arg6_defvalue ;
20313 wxNotebook *result = 0 ;
20314 void *argp1 = 0 ;
20315 int res1 = 0 ;
20316 int val2 ;
20317 int ecode2 = 0 ;
20318 wxPoint temp3 ;
20319 wxSize temp4 ;
20320 long val5 ;
20321 int ecode5 = 0 ;
20322 bool temp6 = false ;
20323 PyObject * obj0 = 0 ;
20324 PyObject * obj1 = 0 ;
20325 PyObject * obj2 = 0 ;
20326 PyObject * obj3 = 0 ;
20327 PyObject * obj4 = 0 ;
20328 PyObject * obj5 = 0 ;
20329 char * kwnames[] = {
20330 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20331 };
20332
20333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20335 if (!SWIG_IsOK(res1)) {
20336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20337 }
20338 arg1 = reinterpret_cast< wxWindow * >(argp1);
20339 if (obj1) {
20340 ecode2 = SWIG_AsVal_int(obj1, &val2);
20341 if (!SWIG_IsOK(ecode2)) {
20342 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20343 }
20344 arg2 = static_cast< int >(val2);
20345 }
20346 if (obj2) {
20347 {
20348 arg3 = &temp3;
20349 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20350 }
20351 }
20352 if (obj3) {
20353 {
20354 arg4 = &temp4;
20355 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20356 }
20357 }
20358 if (obj4) {
20359 ecode5 = SWIG_AsVal_long(obj4, &val5);
20360 if (!SWIG_IsOK(ecode5)) {
20361 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20362 }
20363 arg5 = static_cast< long >(val5);
20364 }
20365 if (obj5) {
20366 {
20367 arg6 = wxString_in_helper(obj5);
20368 if (arg6 == NULL) SWIG_fail;
20369 temp6 = true;
20370 }
20371 }
20372 {
20373 if (!wxPyCheckForApp()) SWIG_fail;
20374 PyThreadState* __tstate = wxPyBeginAllowThreads();
20375 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20376 wxPyEndAllowThreads(__tstate);
20377 if (PyErr_Occurred()) SWIG_fail;
20378 }
20379 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20380 {
20381 if (temp6)
20382 delete arg6;
20383 }
20384 return resultobj;
20385 fail:
20386 {
20387 if (temp6)
20388 delete arg6;
20389 }
20390 return NULL;
20391 }
20392
20393
20394 SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20395 PyObject *resultobj = 0;
20396 wxNotebook *result = 0 ;
20397
20398 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20399 {
20400 if (!wxPyCheckForApp()) SWIG_fail;
20401 PyThreadState* __tstate = wxPyBeginAllowThreads();
20402 result = (wxNotebook *)new wxNotebook();
20403 wxPyEndAllowThreads(__tstate);
20404 if (PyErr_Occurred()) SWIG_fail;
20405 }
20406 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20407 return resultobj;
20408 fail:
20409 return NULL;
20410 }
20411
20412
20413 SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20414 PyObject *resultobj = 0;
20415 wxNotebook *arg1 = (wxNotebook *) 0 ;
20416 wxWindow *arg2 = (wxWindow *) 0 ;
20417 int arg3 = (int) -1 ;
20418 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20419 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20420 wxSize const &arg5_defvalue = wxDefaultSize ;
20421 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20422 long arg6 = (long) 0 ;
20423 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20424 wxString *arg7 = (wxString *) &arg7_defvalue ;
20425 bool result;
20426 void *argp1 = 0 ;
20427 int res1 = 0 ;
20428 void *argp2 = 0 ;
20429 int res2 = 0 ;
20430 int val3 ;
20431 int ecode3 = 0 ;
20432 wxPoint temp4 ;
20433 wxSize temp5 ;
20434 long val6 ;
20435 int ecode6 = 0 ;
20436 bool temp7 = false ;
20437 PyObject * obj0 = 0 ;
20438 PyObject * obj1 = 0 ;
20439 PyObject * obj2 = 0 ;
20440 PyObject * obj3 = 0 ;
20441 PyObject * obj4 = 0 ;
20442 PyObject * obj5 = 0 ;
20443 PyObject * obj6 = 0 ;
20444 char * kwnames[] = {
20445 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20446 };
20447
20448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20450 if (!SWIG_IsOK(res1)) {
20451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20452 }
20453 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20454 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20455 if (!SWIG_IsOK(res2)) {
20456 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20457 }
20458 arg2 = reinterpret_cast< wxWindow * >(argp2);
20459 if (obj2) {
20460 ecode3 = SWIG_AsVal_int(obj2, &val3);
20461 if (!SWIG_IsOK(ecode3)) {
20462 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20463 }
20464 arg3 = static_cast< int >(val3);
20465 }
20466 if (obj3) {
20467 {
20468 arg4 = &temp4;
20469 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20470 }
20471 }
20472 if (obj4) {
20473 {
20474 arg5 = &temp5;
20475 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20476 }
20477 }
20478 if (obj5) {
20479 ecode6 = SWIG_AsVal_long(obj5, &val6);
20480 if (!SWIG_IsOK(ecode6)) {
20481 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20482 }
20483 arg6 = static_cast< long >(val6);
20484 }
20485 if (obj6) {
20486 {
20487 arg7 = wxString_in_helper(obj6);
20488 if (arg7 == NULL) SWIG_fail;
20489 temp7 = true;
20490 }
20491 }
20492 {
20493 PyThreadState* __tstate = wxPyBeginAllowThreads();
20494 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20495 wxPyEndAllowThreads(__tstate);
20496 if (PyErr_Occurred()) SWIG_fail;
20497 }
20498 {
20499 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20500 }
20501 {
20502 if (temp7)
20503 delete arg7;
20504 }
20505 return resultobj;
20506 fail:
20507 {
20508 if (temp7)
20509 delete arg7;
20510 }
20511 return NULL;
20512 }
20513
20514
20515 SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20516 PyObject *resultobj = 0;
20517 wxNotebook *arg1 = (wxNotebook *) 0 ;
20518 int result;
20519 void *argp1 = 0 ;
20520 int res1 = 0 ;
20521 PyObject *swig_obj[1] ;
20522
20523 if (!args) SWIG_fail;
20524 swig_obj[0] = args;
20525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20526 if (!SWIG_IsOK(res1)) {
20527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20528 }
20529 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20530 {
20531 PyThreadState* __tstate = wxPyBeginAllowThreads();
20532 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20533 wxPyEndAllowThreads(__tstate);
20534 if (PyErr_Occurred()) SWIG_fail;
20535 }
20536 resultobj = SWIG_From_int(static_cast< int >(result));
20537 return resultobj;
20538 fail:
20539 return NULL;
20540 }
20541
20542
20543 SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20544 PyObject *resultobj = 0;
20545 wxNotebook *arg1 = (wxNotebook *) 0 ;
20546 wxSize *arg2 = 0 ;
20547 void *argp1 = 0 ;
20548 int res1 = 0 ;
20549 wxSize temp2 ;
20550 PyObject * obj0 = 0 ;
20551 PyObject * obj1 = 0 ;
20552 char * kwnames[] = {
20553 (char *) "self",(char *) "padding", NULL
20554 };
20555
20556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20558 if (!SWIG_IsOK(res1)) {
20559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20560 }
20561 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20562 {
20563 arg2 = &temp2;
20564 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20565 }
20566 {
20567 PyThreadState* __tstate = wxPyBeginAllowThreads();
20568 (arg1)->SetPadding((wxSize const &)*arg2);
20569 wxPyEndAllowThreads(__tstate);
20570 if (PyErr_Occurred()) SWIG_fail;
20571 }
20572 resultobj = SWIG_Py_Void();
20573 return resultobj;
20574 fail:
20575 return NULL;
20576 }
20577
20578
20579 SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20580 PyObject *resultobj = 0;
20581 wxNotebook *arg1 = (wxNotebook *) 0 ;
20582 wxSize *arg2 = 0 ;
20583 void *argp1 = 0 ;
20584 int res1 = 0 ;
20585 wxSize temp2 ;
20586 PyObject * obj0 = 0 ;
20587 PyObject * obj1 = 0 ;
20588 char * kwnames[] = {
20589 (char *) "self",(char *) "sz", NULL
20590 };
20591
20592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20594 if (!SWIG_IsOK(res1)) {
20595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20596 }
20597 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20598 {
20599 arg2 = &temp2;
20600 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20601 }
20602 {
20603 PyThreadState* __tstate = wxPyBeginAllowThreads();
20604 (arg1)->SetTabSize((wxSize const &)*arg2);
20605 wxPyEndAllowThreads(__tstate);
20606 if (PyErr_Occurred()) SWIG_fail;
20607 }
20608 resultobj = SWIG_Py_Void();
20609 return resultobj;
20610 fail:
20611 return NULL;
20612 }
20613
20614
20615 SWIGINTERN PyObject *_wrap_Notebook_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20616 PyObject *resultobj = 0;
20617 wxNotebook *arg1 = (wxNotebook *) 0 ;
20618 wxPoint *arg2 = 0 ;
20619 long *arg3 = (long *) 0 ;
20620 int result;
20621 void *argp1 = 0 ;
20622 int res1 = 0 ;
20623 wxPoint temp2 ;
20624 long temp3 ;
20625 int res3 = SWIG_TMPOBJ ;
20626 PyObject * obj0 = 0 ;
20627 PyObject * obj1 = 0 ;
20628 char * kwnames[] = {
20629 (char *) "self",(char *) "pt", NULL
20630 };
20631
20632 arg3 = &temp3;
20633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20635 if (!SWIG_IsOK(res1)) {
20636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_HitTest" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20637 }
20638 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20639 {
20640 arg2 = &temp2;
20641 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20642 }
20643 {
20644 PyThreadState* __tstate = wxPyBeginAllowThreads();
20645 result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20646 wxPyEndAllowThreads(__tstate);
20647 if (PyErr_Occurred()) SWIG_fail;
20648 }
20649 resultobj = SWIG_From_int(static_cast< int >(result));
20650 if (SWIG_IsTmpObj(res3)) {
20651 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20652 } else {
20653 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20654 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20655 }
20656 return resultobj;
20657 fail:
20658 return NULL;
20659 }
20660
20661
20662 SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20663 PyObject *resultobj = 0;
20664 wxNotebook *arg1 = (wxNotebook *) 0 ;
20665 wxColour result;
20666 void *argp1 = 0 ;
20667 int res1 = 0 ;
20668 PyObject *swig_obj[1] ;
20669
20670 if (!args) SWIG_fail;
20671 swig_obj[0] = args;
20672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20673 if (!SWIG_IsOK(res1)) {
20674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20675 }
20676 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20677 {
20678 PyThreadState* __tstate = wxPyBeginAllowThreads();
20679 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20680 wxPyEndAllowThreads(__tstate);
20681 if (PyErr_Occurred()) SWIG_fail;
20682 }
20683 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20684 return resultobj;
20685 fail:
20686 return NULL;
20687 }
20688
20689
20690 SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20691 PyObject *resultobj = 0;
20692 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20693 SwigValueWrapper<wxVisualAttributes > result;
20694 int val1 ;
20695 int ecode1 = 0 ;
20696 PyObject * obj0 = 0 ;
20697 char * kwnames[] = {
20698 (char *) "variant", NULL
20699 };
20700
20701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20702 if (obj0) {
20703 ecode1 = SWIG_AsVal_int(obj0, &val1);
20704 if (!SWIG_IsOK(ecode1)) {
20705 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20706 }
20707 arg1 = static_cast< wxWindowVariant >(val1);
20708 }
20709 {
20710 if (!wxPyCheckForApp()) SWIG_fail;
20711 PyThreadState* __tstate = wxPyBeginAllowThreads();
20712 result = wxNotebook::GetClassDefaultAttributes(arg1);
20713 wxPyEndAllowThreads(__tstate);
20714 if (PyErr_Occurred()) SWIG_fail;
20715 }
20716 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20717 return resultobj;
20718 fail:
20719 return NULL;
20720 }
20721
20722
20723 SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20724 PyObject *obj;
20725 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20726 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
20727 return SWIG_Py_Void();
20728 }
20729
20730 SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20731 return SWIG_Python_InitShadowInstance(args);
20732 }
20733
20734 SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20735 PyObject *resultobj = 0;
20736 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20737 int arg2 = (int) 0 ;
20738 int arg3 = (int) -1 ;
20739 int arg4 = (int) -1 ;
20740 wxNotebookEvent *result = 0 ;
20741 int val1 ;
20742 int ecode1 = 0 ;
20743 int val2 ;
20744 int ecode2 = 0 ;
20745 int val3 ;
20746 int ecode3 = 0 ;
20747 int val4 ;
20748 int ecode4 = 0 ;
20749 PyObject * obj0 = 0 ;
20750 PyObject * obj1 = 0 ;
20751 PyObject * obj2 = 0 ;
20752 PyObject * obj3 = 0 ;
20753 char * kwnames[] = {
20754 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20755 };
20756
20757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20758 if (obj0) {
20759 ecode1 = SWIG_AsVal_int(obj0, &val1);
20760 if (!SWIG_IsOK(ecode1)) {
20761 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20762 }
20763 arg1 = static_cast< wxEventType >(val1);
20764 }
20765 if (obj1) {
20766 ecode2 = SWIG_AsVal_int(obj1, &val2);
20767 if (!SWIG_IsOK(ecode2)) {
20768 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
20769 }
20770 arg2 = static_cast< int >(val2);
20771 }
20772 if (obj2) {
20773 ecode3 = SWIG_AsVal_int(obj2, &val3);
20774 if (!SWIG_IsOK(ecode3)) {
20775 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
20776 }
20777 arg3 = static_cast< int >(val3);
20778 }
20779 if (obj3) {
20780 ecode4 = SWIG_AsVal_int(obj3, &val4);
20781 if (!SWIG_IsOK(ecode4)) {
20782 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
20783 }
20784 arg4 = static_cast< int >(val4);
20785 }
20786 {
20787 PyThreadState* __tstate = wxPyBeginAllowThreads();
20788 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
20789 wxPyEndAllowThreads(__tstate);
20790 if (PyErr_Occurred()) SWIG_fail;
20791 }
20792 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
20793 return resultobj;
20794 fail:
20795 return NULL;
20796 }
20797
20798
20799 SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20800 PyObject *obj;
20801 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20802 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
20803 return SWIG_Py_Void();
20804 }
20805
20806 SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20807 return SWIG_Python_InitShadowInstance(args);
20808 }
20809
20810 SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20811 PyObject *resultobj = 0;
20812 wxWindow *arg1 = (wxWindow *) 0 ;
20813 int arg2 = (int) -1 ;
20814 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20815 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20816 wxSize const &arg4_defvalue = wxDefaultSize ;
20817 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20818 long arg5 = (long) 0 ;
20819 wxString const &arg6_defvalue = wxPyEmptyString ;
20820 wxString *arg6 = (wxString *) &arg6_defvalue ;
20821 wxListbook *result = 0 ;
20822 void *argp1 = 0 ;
20823 int res1 = 0 ;
20824 int val2 ;
20825 int ecode2 = 0 ;
20826 wxPoint temp3 ;
20827 wxSize temp4 ;
20828 long val5 ;
20829 int ecode5 = 0 ;
20830 bool temp6 = false ;
20831 PyObject * obj0 = 0 ;
20832 PyObject * obj1 = 0 ;
20833 PyObject * obj2 = 0 ;
20834 PyObject * obj3 = 0 ;
20835 PyObject * obj4 = 0 ;
20836 PyObject * obj5 = 0 ;
20837 char * kwnames[] = {
20838 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20839 };
20840
20841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20843 if (!SWIG_IsOK(res1)) {
20844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
20845 }
20846 arg1 = reinterpret_cast< wxWindow * >(argp1);
20847 if (obj1) {
20848 ecode2 = SWIG_AsVal_int(obj1, &val2);
20849 if (!SWIG_IsOK(ecode2)) {
20850 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
20851 }
20852 arg2 = static_cast< int >(val2);
20853 }
20854 if (obj2) {
20855 {
20856 arg3 = &temp3;
20857 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20858 }
20859 }
20860 if (obj3) {
20861 {
20862 arg4 = &temp4;
20863 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20864 }
20865 }
20866 if (obj4) {
20867 ecode5 = SWIG_AsVal_long(obj4, &val5);
20868 if (!SWIG_IsOK(ecode5)) {
20869 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
20870 }
20871 arg5 = static_cast< long >(val5);
20872 }
20873 if (obj5) {
20874 {
20875 arg6 = wxString_in_helper(obj5);
20876 if (arg6 == NULL) SWIG_fail;
20877 temp6 = true;
20878 }
20879 }
20880 {
20881 if (!wxPyCheckForApp()) SWIG_fail;
20882 PyThreadState* __tstate = wxPyBeginAllowThreads();
20883 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20884 wxPyEndAllowThreads(__tstate);
20885 if (PyErr_Occurred()) SWIG_fail;
20886 }
20887 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
20888 {
20889 if (temp6)
20890 delete arg6;
20891 }
20892 return resultobj;
20893 fail:
20894 {
20895 if (temp6)
20896 delete arg6;
20897 }
20898 return NULL;
20899 }
20900
20901
20902 SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20903 PyObject *resultobj = 0;
20904 wxListbook *result = 0 ;
20905
20906 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
20907 {
20908 if (!wxPyCheckForApp()) SWIG_fail;
20909 PyThreadState* __tstate = wxPyBeginAllowThreads();
20910 result = (wxListbook *)new wxListbook();
20911 wxPyEndAllowThreads(__tstate);
20912 if (PyErr_Occurred()) SWIG_fail;
20913 }
20914 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
20915 return resultobj;
20916 fail:
20917 return NULL;
20918 }
20919
20920
20921 SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20922 PyObject *resultobj = 0;
20923 wxListbook *arg1 = (wxListbook *) 0 ;
20924 wxWindow *arg2 = (wxWindow *) 0 ;
20925 int arg3 = (int) -1 ;
20926 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20927 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20928 wxSize const &arg5_defvalue = wxDefaultSize ;
20929 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20930 long arg6 = (long) 0 ;
20931 wxString const &arg7_defvalue = wxPyEmptyString ;
20932 wxString *arg7 = (wxString *) &arg7_defvalue ;
20933 bool result;
20934 void *argp1 = 0 ;
20935 int res1 = 0 ;
20936 void *argp2 = 0 ;
20937 int res2 = 0 ;
20938 int val3 ;
20939 int ecode3 = 0 ;
20940 wxPoint temp4 ;
20941 wxSize temp5 ;
20942 long val6 ;
20943 int ecode6 = 0 ;
20944 bool temp7 = false ;
20945 PyObject * obj0 = 0 ;
20946 PyObject * obj1 = 0 ;
20947 PyObject * obj2 = 0 ;
20948 PyObject * obj3 = 0 ;
20949 PyObject * obj4 = 0 ;
20950 PyObject * obj5 = 0 ;
20951 PyObject * obj6 = 0 ;
20952 char * kwnames[] = {
20953 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20954 };
20955
20956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
20958 if (!SWIG_IsOK(res1)) {
20959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
20960 }
20961 arg1 = reinterpret_cast< wxListbook * >(argp1);
20962 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20963 if (!SWIG_IsOK(res2)) {
20964 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20965 }
20966 arg2 = reinterpret_cast< wxWindow * >(argp2);
20967 if (obj2) {
20968 ecode3 = SWIG_AsVal_int(obj2, &val3);
20969 if (!SWIG_IsOK(ecode3)) {
20970 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
20971 }
20972 arg3 = static_cast< int >(val3);
20973 }
20974 if (obj3) {
20975 {
20976 arg4 = &temp4;
20977 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20978 }
20979 }
20980 if (obj4) {
20981 {
20982 arg5 = &temp5;
20983 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20984 }
20985 }
20986 if (obj5) {
20987 ecode6 = SWIG_AsVal_long(obj5, &val6);
20988 if (!SWIG_IsOK(ecode6)) {
20989 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
20990 }
20991 arg6 = static_cast< long >(val6);
20992 }
20993 if (obj6) {
20994 {
20995 arg7 = wxString_in_helper(obj6);
20996 if (arg7 == NULL) SWIG_fail;
20997 temp7 = true;
20998 }
20999 }
21000 {
21001 PyThreadState* __tstate = wxPyBeginAllowThreads();
21002 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21003 wxPyEndAllowThreads(__tstate);
21004 if (PyErr_Occurred()) SWIG_fail;
21005 }
21006 {
21007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21008 }
21009 {
21010 if (temp7)
21011 delete arg7;
21012 }
21013 return resultobj;
21014 fail:
21015 {
21016 if (temp7)
21017 delete arg7;
21018 }
21019 return NULL;
21020 }
21021
21022
21023 SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21024 PyObject *resultobj = 0;
21025 wxListbook *arg1 = (wxListbook *) 0 ;
21026 wxListView *result = 0 ;
21027 void *argp1 = 0 ;
21028 int res1 = 0 ;
21029 PyObject *swig_obj[1] ;
21030
21031 if (!args) SWIG_fail;
21032 swig_obj[0] = args;
21033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21034 if (!SWIG_IsOK(res1)) {
21035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21036 }
21037 arg1 = reinterpret_cast< wxListbook * >(argp1);
21038 {
21039 PyThreadState* __tstate = wxPyBeginAllowThreads();
21040 result = (wxListView *)(arg1)->GetListView();
21041 wxPyEndAllowThreads(__tstate);
21042 if (PyErr_Occurred()) SWIG_fail;
21043 }
21044 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21045 return resultobj;
21046 fail:
21047 return NULL;
21048 }
21049
21050
21051 SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21052 PyObject *obj;
21053 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21054 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21055 return SWIG_Py_Void();
21056 }
21057
21058 SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21059 return SWIG_Python_InitShadowInstance(args);
21060 }
21061
21062 SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21063 PyObject *resultobj = 0;
21064 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21065 int arg2 = (int) 0 ;
21066 int arg3 = (int) -1 ;
21067 int arg4 = (int) -1 ;
21068 wxListbookEvent *result = 0 ;
21069 int val1 ;
21070 int ecode1 = 0 ;
21071 int val2 ;
21072 int ecode2 = 0 ;
21073 int val3 ;
21074 int ecode3 = 0 ;
21075 int val4 ;
21076 int ecode4 = 0 ;
21077 PyObject * obj0 = 0 ;
21078 PyObject * obj1 = 0 ;
21079 PyObject * obj2 = 0 ;
21080 PyObject * obj3 = 0 ;
21081 char * kwnames[] = {
21082 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21083 };
21084
21085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21086 if (obj0) {
21087 ecode1 = SWIG_AsVal_int(obj0, &val1);
21088 if (!SWIG_IsOK(ecode1)) {
21089 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21090 }
21091 arg1 = static_cast< wxEventType >(val1);
21092 }
21093 if (obj1) {
21094 ecode2 = SWIG_AsVal_int(obj1, &val2);
21095 if (!SWIG_IsOK(ecode2)) {
21096 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21097 }
21098 arg2 = static_cast< int >(val2);
21099 }
21100 if (obj2) {
21101 ecode3 = SWIG_AsVal_int(obj2, &val3);
21102 if (!SWIG_IsOK(ecode3)) {
21103 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21104 }
21105 arg3 = static_cast< int >(val3);
21106 }
21107 if (obj3) {
21108 ecode4 = SWIG_AsVal_int(obj3, &val4);
21109 if (!SWIG_IsOK(ecode4)) {
21110 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21111 }
21112 arg4 = static_cast< int >(val4);
21113 }
21114 {
21115 PyThreadState* __tstate = wxPyBeginAllowThreads();
21116 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21117 wxPyEndAllowThreads(__tstate);
21118 if (PyErr_Occurred()) SWIG_fail;
21119 }
21120 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21121 return resultobj;
21122 fail:
21123 return NULL;
21124 }
21125
21126
21127 SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21128 PyObject *obj;
21129 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21130 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21131 return SWIG_Py_Void();
21132 }
21133
21134 SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21135 return SWIG_Python_InitShadowInstance(args);
21136 }
21137
21138 SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21139 PyObject *resultobj = 0;
21140 wxWindow *arg1 = (wxWindow *) 0 ;
21141 int arg2 ;
21142 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21143 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21144 wxSize const &arg4_defvalue = wxDefaultSize ;
21145 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21146 long arg5 = (long) 0 ;
21147 wxString const &arg6_defvalue = wxPyEmptyString ;
21148 wxString *arg6 = (wxString *) &arg6_defvalue ;
21149 wxChoicebook *result = 0 ;
21150 void *argp1 = 0 ;
21151 int res1 = 0 ;
21152 int val2 ;
21153 int ecode2 = 0 ;
21154 wxPoint temp3 ;
21155 wxSize temp4 ;
21156 long val5 ;
21157 int ecode5 = 0 ;
21158 bool temp6 = false ;
21159 PyObject * obj0 = 0 ;
21160 PyObject * obj1 = 0 ;
21161 PyObject * obj2 = 0 ;
21162 PyObject * obj3 = 0 ;
21163 PyObject * obj4 = 0 ;
21164 PyObject * obj5 = 0 ;
21165 char * kwnames[] = {
21166 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21167 };
21168
21169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21171 if (!SWIG_IsOK(res1)) {
21172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21173 }
21174 arg1 = reinterpret_cast< wxWindow * >(argp1);
21175 ecode2 = SWIG_AsVal_int(obj1, &val2);
21176 if (!SWIG_IsOK(ecode2)) {
21177 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21178 }
21179 arg2 = static_cast< int >(val2);
21180 if (obj2) {
21181 {
21182 arg3 = &temp3;
21183 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21184 }
21185 }
21186 if (obj3) {
21187 {
21188 arg4 = &temp4;
21189 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21190 }
21191 }
21192 if (obj4) {
21193 ecode5 = SWIG_AsVal_long(obj4, &val5);
21194 if (!SWIG_IsOK(ecode5)) {
21195 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21196 }
21197 arg5 = static_cast< long >(val5);
21198 }
21199 if (obj5) {
21200 {
21201 arg6 = wxString_in_helper(obj5);
21202 if (arg6 == NULL) SWIG_fail;
21203 temp6 = true;
21204 }
21205 }
21206 {
21207 if (!wxPyCheckForApp()) SWIG_fail;
21208 PyThreadState* __tstate = wxPyBeginAllowThreads();
21209 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21210 wxPyEndAllowThreads(__tstate);
21211 if (PyErr_Occurred()) SWIG_fail;
21212 }
21213 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21214 {
21215 if (temp6)
21216 delete arg6;
21217 }
21218 return resultobj;
21219 fail:
21220 {
21221 if (temp6)
21222 delete arg6;
21223 }
21224 return NULL;
21225 }
21226
21227
21228 SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21229 PyObject *resultobj = 0;
21230 wxChoicebook *result = 0 ;
21231
21232 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21233 {
21234 if (!wxPyCheckForApp()) SWIG_fail;
21235 PyThreadState* __tstate = wxPyBeginAllowThreads();
21236 result = (wxChoicebook *)new wxChoicebook();
21237 wxPyEndAllowThreads(__tstate);
21238 if (PyErr_Occurred()) SWIG_fail;
21239 }
21240 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21241 return resultobj;
21242 fail:
21243 return NULL;
21244 }
21245
21246
21247 SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21248 PyObject *resultobj = 0;
21249 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21250 wxWindow *arg2 = (wxWindow *) 0 ;
21251 int arg3 ;
21252 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21253 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21254 wxSize const &arg5_defvalue = wxDefaultSize ;
21255 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21256 long arg6 = (long) 0 ;
21257 wxString const &arg7_defvalue = wxPyEmptyString ;
21258 wxString *arg7 = (wxString *) &arg7_defvalue ;
21259 bool result;
21260 void *argp1 = 0 ;
21261 int res1 = 0 ;
21262 void *argp2 = 0 ;
21263 int res2 = 0 ;
21264 int val3 ;
21265 int ecode3 = 0 ;
21266 wxPoint temp4 ;
21267 wxSize temp5 ;
21268 long val6 ;
21269 int ecode6 = 0 ;
21270 bool temp7 = false ;
21271 PyObject * obj0 = 0 ;
21272 PyObject * obj1 = 0 ;
21273 PyObject * obj2 = 0 ;
21274 PyObject * obj3 = 0 ;
21275 PyObject * obj4 = 0 ;
21276 PyObject * obj5 = 0 ;
21277 PyObject * obj6 = 0 ;
21278 char * kwnames[] = {
21279 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21280 };
21281
21282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21284 if (!SWIG_IsOK(res1)) {
21285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21286 }
21287 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21288 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21289 if (!SWIG_IsOK(res2)) {
21290 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21291 }
21292 arg2 = reinterpret_cast< wxWindow * >(argp2);
21293 ecode3 = SWIG_AsVal_int(obj2, &val3);
21294 if (!SWIG_IsOK(ecode3)) {
21295 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21296 }
21297 arg3 = static_cast< int >(val3);
21298 if (obj3) {
21299 {
21300 arg4 = &temp4;
21301 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21302 }
21303 }
21304 if (obj4) {
21305 {
21306 arg5 = &temp5;
21307 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21308 }
21309 }
21310 if (obj5) {
21311 ecode6 = SWIG_AsVal_long(obj5, &val6);
21312 if (!SWIG_IsOK(ecode6)) {
21313 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21314 }
21315 arg6 = static_cast< long >(val6);
21316 }
21317 if (obj6) {
21318 {
21319 arg7 = wxString_in_helper(obj6);
21320 if (arg7 == NULL) SWIG_fail;
21321 temp7 = true;
21322 }
21323 }
21324 {
21325 PyThreadState* __tstate = wxPyBeginAllowThreads();
21326 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21327 wxPyEndAllowThreads(__tstate);
21328 if (PyErr_Occurred()) SWIG_fail;
21329 }
21330 {
21331 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21332 }
21333 {
21334 if (temp7)
21335 delete arg7;
21336 }
21337 return resultobj;
21338 fail:
21339 {
21340 if (temp7)
21341 delete arg7;
21342 }
21343 return NULL;
21344 }
21345
21346
21347 SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21348 PyObject *resultobj = 0;
21349 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21350 wxChoice *result = 0 ;
21351 void *argp1 = 0 ;
21352 int res1 = 0 ;
21353 PyObject *swig_obj[1] ;
21354
21355 if (!args) SWIG_fail;
21356 swig_obj[0] = args;
21357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21358 if (!SWIG_IsOK(res1)) {
21359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21360 }
21361 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21362 {
21363 PyThreadState* __tstate = wxPyBeginAllowThreads();
21364 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21365 wxPyEndAllowThreads(__tstate);
21366 if (PyErr_Occurred()) SWIG_fail;
21367 }
21368 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21369 return resultobj;
21370 fail:
21371 return NULL;
21372 }
21373
21374
21375 SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21376 PyObject *obj;
21377 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21378 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21379 return SWIG_Py_Void();
21380 }
21381
21382 SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21383 return SWIG_Python_InitShadowInstance(args);
21384 }
21385
21386 SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21387 PyObject *resultobj = 0;
21388 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21389 int arg2 = (int) 0 ;
21390 int arg3 = (int) -1 ;
21391 int arg4 = (int) -1 ;
21392 wxChoicebookEvent *result = 0 ;
21393 int val1 ;
21394 int ecode1 = 0 ;
21395 int val2 ;
21396 int ecode2 = 0 ;
21397 int val3 ;
21398 int ecode3 = 0 ;
21399 int val4 ;
21400 int ecode4 = 0 ;
21401 PyObject * obj0 = 0 ;
21402 PyObject * obj1 = 0 ;
21403 PyObject * obj2 = 0 ;
21404 PyObject * obj3 = 0 ;
21405 char * kwnames[] = {
21406 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21407 };
21408
21409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21410 if (obj0) {
21411 ecode1 = SWIG_AsVal_int(obj0, &val1);
21412 if (!SWIG_IsOK(ecode1)) {
21413 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21414 }
21415 arg1 = static_cast< wxEventType >(val1);
21416 }
21417 if (obj1) {
21418 ecode2 = SWIG_AsVal_int(obj1, &val2);
21419 if (!SWIG_IsOK(ecode2)) {
21420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21421 }
21422 arg2 = static_cast< int >(val2);
21423 }
21424 if (obj2) {
21425 ecode3 = SWIG_AsVal_int(obj2, &val3);
21426 if (!SWIG_IsOK(ecode3)) {
21427 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21428 }
21429 arg3 = static_cast< int >(val3);
21430 }
21431 if (obj3) {
21432 ecode4 = SWIG_AsVal_int(obj3, &val4);
21433 if (!SWIG_IsOK(ecode4)) {
21434 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21435 }
21436 arg4 = static_cast< int >(val4);
21437 }
21438 {
21439 PyThreadState* __tstate = wxPyBeginAllowThreads();
21440 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21441 wxPyEndAllowThreads(__tstate);
21442 if (PyErr_Occurred()) SWIG_fail;
21443 }
21444 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21445 return resultobj;
21446 fail:
21447 return NULL;
21448 }
21449
21450
21451 SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21452 PyObject *obj;
21453 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21454 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21455 return SWIG_Py_Void();
21456 }
21457
21458 SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21459 return SWIG_Python_InitShadowInstance(args);
21460 }
21461
21462 SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21463 PyObject *resultobj = 0;
21464 wxWindow *arg1 = (wxWindow *) 0 ;
21465 int arg2 ;
21466 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21467 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21468 wxSize const &arg4_defvalue = wxDefaultSize ;
21469 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21470 long arg5 = (long) wxBK_DEFAULT ;
21471 wxString const &arg6_defvalue = wxPyEmptyString ;
21472 wxString *arg6 = (wxString *) &arg6_defvalue ;
21473 wxTreebook *result = 0 ;
21474 void *argp1 = 0 ;
21475 int res1 = 0 ;
21476 int val2 ;
21477 int ecode2 = 0 ;
21478 wxPoint temp3 ;
21479 wxSize temp4 ;
21480 long val5 ;
21481 int ecode5 = 0 ;
21482 bool temp6 = false ;
21483 PyObject * obj0 = 0 ;
21484 PyObject * obj1 = 0 ;
21485 PyObject * obj2 = 0 ;
21486 PyObject * obj3 = 0 ;
21487 PyObject * obj4 = 0 ;
21488 PyObject * obj5 = 0 ;
21489 char * kwnames[] = {
21490 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21491 };
21492
21493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21495 if (!SWIG_IsOK(res1)) {
21496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21497 }
21498 arg1 = reinterpret_cast< wxWindow * >(argp1);
21499 ecode2 = SWIG_AsVal_int(obj1, &val2);
21500 if (!SWIG_IsOK(ecode2)) {
21501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21502 }
21503 arg2 = static_cast< int >(val2);
21504 if (obj2) {
21505 {
21506 arg3 = &temp3;
21507 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21508 }
21509 }
21510 if (obj3) {
21511 {
21512 arg4 = &temp4;
21513 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21514 }
21515 }
21516 if (obj4) {
21517 ecode5 = SWIG_AsVal_long(obj4, &val5);
21518 if (!SWIG_IsOK(ecode5)) {
21519 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21520 }
21521 arg5 = static_cast< long >(val5);
21522 }
21523 if (obj5) {
21524 {
21525 arg6 = wxString_in_helper(obj5);
21526 if (arg6 == NULL) SWIG_fail;
21527 temp6 = true;
21528 }
21529 }
21530 {
21531 if (!wxPyCheckForApp()) SWIG_fail;
21532 PyThreadState* __tstate = wxPyBeginAllowThreads();
21533 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21534 wxPyEndAllowThreads(__tstate);
21535 if (PyErr_Occurred()) SWIG_fail;
21536 }
21537 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21538 {
21539 if (temp6)
21540 delete arg6;
21541 }
21542 return resultobj;
21543 fail:
21544 {
21545 if (temp6)
21546 delete arg6;
21547 }
21548 return NULL;
21549 }
21550
21551
21552 SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21553 PyObject *resultobj = 0;
21554 wxTreebook *result = 0 ;
21555
21556 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21557 {
21558 if (!wxPyCheckForApp()) SWIG_fail;
21559 PyThreadState* __tstate = wxPyBeginAllowThreads();
21560 result = (wxTreebook *)new wxTreebook();
21561 wxPyEndAllowThreads(__tstate);
21562 if (PyErr_Occurred()) SWIG_fail;
21563 }
21564 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21565 return resultobj;
21566 fail:
21567 return NULL;
21568 }
21569
21570
21571 SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21572 PyObject *resultobj = 0;
21573 wxTreebook *arg1 = (wxTreebook *) 0 ;
21574 wxWindow *arg2 = (wxWindow *) 0 ;
21575 int arg3 ;
21576 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21577 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21578 wxSize const &arg5_defvalue = wxDefaultSize ;
21579 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21580 long arg6 = (long) wxBK_DEFAULT ;
21581 wxString const &arg7_defvalue = wxPyEmptyString ;
21582 wxString *arg7 = (wxString *) &arg7_defvalue ;
21583 bool result;
21584 void *argp1 = 0 ;
21585 int res1 = 0 ;
21586 void *argp2 = 0 ;
21587 int res2 = 0 ;
21588 int val3 ;
21589 int ecode3 = 0 ;
21590 wxPoint temp4 ;
21591 wxSize temp5 ;
21592 long val6 ;
21593 int ecode6 = 0 ;
21594 bool temp7 = false ;
21595 PyObject * obj0 = 0 ;
21596 PyObject * obj1 = 0 ;
21597 PyObject * obj2 = 0 ;
21598 PyObject * obj3 = 0 ;
21599 PyObject * obj4 = 0 ;
21600 PyObject * obj5 = 0 ;
21601 PyObject * obj6 = 0 ;
21602 char * kwnames[] = {
21603 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21604 };
21605
21606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21608 if (!SWIG_IsOK(res1)) {
21609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21610 }
21611 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21612 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21613 if (!SWIG_IsOK(res2)) {
21614 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21615 }
21616 arg2 = reinterpret_cast< wxWindow * >(argp2);
21617 ecode3 = SWIG_AsVal_int(obj2, &val3);
21618 if (!SWIG_IsOK(ecode3)) {
21619 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21620 }
21621 arg3 = static_cast< int >(val3);
21622 if (obj3) {
21623 {
21624 arg4 = &temp4;
21625 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21626 }
21627 }
21628 if (obj4) {
21629 {
21630 arg5 = &temp5;
21631 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21632 }
21633 }
21634 if (obj5) {
21635 ecode6 = SWIG_AsVal_long(obj5, &val6);
21636 if (!SWIG_IsOK(ecode6)) {
21637 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21638 }
21639 arg6 = static_cast< long >(val6);
21640 }
21641 if (obj6) {
21642 {
21643 arg7 = wxString_in_helper(obj6);
21644 if (arg7 == NULL) SWIG_fail;
21645 temp7 = true;
21646 }
21647 }
21648 {
21649 PyThreadState* __tstate = wxPyBeginAllowThreads();
21650 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21651 wxPyEndAllowThreads(__tstate);
21652 if (PyErr_Occurred()) SWIG_fail;
21653 }
21654 {
21655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21656 }
21657 {
21658 if (temp7)
21659 delete arg7;
21660 }
21661 return resultobj;
21662 fail:
21663 {
21664 if (temp7)
21665 delete arg7;
21666 }
21667 return NULL;
21668 }
21669
21670
21671 SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21672 PyObject *resultobj = 0;
21673 wxTreebook *arg1 = (wxTreebook *) 0 ;
21674 size_t arg2 ;
21675 wxWindow *arg3 = (wxWindow *) 0 ;
21676 wxString *arg4 = 0 ;
21677 bool arg5 = (bool) false ;
21678 int arg6 = (int) wxNOT_FOUND ;
21679 bool result;
21680 void *argp1 = 0 ;
21681 int res1 = 0 ;
21682 size_t val2 ;
21683 int ecode2 = 0 ;
21684 void *argp3 = 0 ;
21685 int res3 = 0 ;
21686 bool temp4 = false ;
21687 bool val5 ;
21688 int ecode5 = 0 ;
21689 int val6 ;
21690 int ecode6 = 0 ;
21691 PyObject * obj0 = 0 ;
21692 PyObject * obj1 = 0 ;
21693 PyObject * obj2 = 0 ;
21694 PyObject * obj3 = 0 ;
21695 PyObject * obj4 = 0 ;
21696 PyObject * obj5 = 0 ;
21697 char * kwnames[] = {
21698 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21699 };
21700
21701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21703 if (!SWIG_IsOK(res1)) {
21704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21705 }
21706 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21707 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21708 if (!SWIG_IsOK(ecode2)) {
21709 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
21710 }
21711 arg2 = static_cast< size_t >(val2);
21712 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
21713 if (!SWIG_IsOK(res3)) {
21714 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
21715 }
21716 arg3 = reinterpret_cast< wxWindow * >(argp3);
21717 {
21718 arg4 = wxString_in_helper(obj3);
21719 if (arg4 == NULL) SWIG_fail;
21720 temp4 = true;
21721 }
21722 if (obj4) {
21723 ecode5 = SWIG_AsVal_bool(obj4, &val5);
21724 if (!SWIG_IsOK(ecode5)) {
21725 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
21726 }
21727 arg5 = static_cast< bool >(val5);
21728 }
21729 if (obj5) {
21730 ecode6 = SWIG_AsVal_int(obj5, &val6);
21731 if (!SWIG_IsOK(ecode6)) {
21732 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
21733 }
21734 arg6 = static_cast< int >(val6);
21735 }
21736 {
21737 PyThreadState* __tstate = wxPyBeginAllowThreads();
21738 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
21739 wxPyEndAllowThreads(__tstate);
21740 if (PyErr_Occurred()) SWIG_fail;
21741 }
21742 {
21743 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21744 }
21745 {
21746 if (temp4)
21747 delete arg4;
21748 }
21749 return resultobj;
21750 fail:
21751 {
21752 if (temp4)
21753 delete arg4;
21754 }
21755 return NULL;
21756 }
21757
21758
21759 SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21760 PyObject *resultobj = 0;
21761 wxTreebook *arg1 = (wxTreebook *) 0 ;
21762 wxWindow *arg2 = (wxWindow *) 0 ;
21763 wxString *arg3 = 0 ;
21764 bool arg4 = (bool) false ;
21765 int arg5 = (int) wxNOT_FOUND ;
21766 bool result;
21767 void *argp1 = 0 ;
21768 int res1 = 0 ;
21769 void *argp2 = 0 ;
21770 int res2 = 0 ;
21771 bool temp3 = false ;
21772 bool val4 ;
21773 int ecode4 = 0 ;
21774 int val5 ;
21775 int ecode5 = 0 ;
21776 PyObject * obj0 = 0 ;
21777 PyObject * obj1 = 0 ;
21778 PyObject * obj2 = 0 ;
21779 PyObject * obj3 = 0 ;
21780 PyObject * obj4 = 0 ;
21781 char * kwnames[] = {
21782 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21783 };
21784
21785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21787 if (!SWIG_IsOK(res1)) {
21788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21789 }
21790 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21791 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21792 if (!SWIG_IsOK(res2)) {
21793 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
21794 }
21795 arg2 = reinterpret_cast< wxWindow * >(argp2);
21796 {
21797 arg3 = wxString_in_helper(obj2);
21798 if (arg3 == NULL) SWIG_fail;
21799 temp3 = true;
21800 }
21801 if (obj3) {
21802 ecode4 = SWIG_AsVal_bool(obj3, &val4);
21803 if (!SWIG_IsOK(ecode4)) {
21804 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
21805 }
21806 arg4 = static_cast< bool >(val4);
21807 }
21808 if (obj4) {
21809 ecode5 = SWIG_AsVal_int(obj4, &val5);
21810 if (!SWIG_IsOK(ecode5)) {
21811 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
21812 }
21813 arg5 = static_cast< int >(val5);
21814 }
21815 {
21816 PyThreadState* __tstate = wxPyBeginAllowThreads();
21817 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
21818 wxPyEndAllowThreads(__tstate);
21819 if (PyErr_Occurred()) SWIG_fail;
21820 }
21821 {
21822 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21823 }
21824 {
21825 if (temp3)
21826 delete arg3;
21827 }
21828 return resultobj;
21829 fail:
21830 {
21831 if (temp3)
21832 delete arg3;
21833 }
21834 return NULL;
21835 }
21836
21837
21838 SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21839 PyObject *resultobj = 0;
21840 wxTreebook *arg1 = (wxTreebook *) 0 ;
21841 size_t arg2 ;
21842 bool result;
21843 void *argp1 = 0 ;
21844 int res1 = 0 ;
21845 size_t val2 ;
21846 int ecode2 = 0 ;
21847 PyObject * obj0 = 0 ;
21848 PyObject * obj1 = 0 ;
21849 char * kwnames[] = {
21850 (char *) "self",(char *) "pos", NULL
21851 };
21852
21853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
21854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21855 if (!SWIG_IsOK(res1)) {
21856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21857 }
21858 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21859 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21860 if (!SWIG_IsOK(ecode2)) {
21861 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
21862 }
21863 arg2 = static_cast< size_t >(val2);
21864 {
21865 PyThreadState* __tstate = wxPyBeginAllowThreads();
21866 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
21867 wxPyEndAllowThreads(__tstate);
21868 if (PyErr_Occurred()) SWIG_fail;
21869 }
21870 {
21871 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21872 }
21873 return resultobj;
21874 fail:
21875 return NULL;
21876 }
21877
21878
21879 SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21880 PyObject *resultobj = 0;
21881 wxTreebook *arg1 = (wxTreebook *) 0 ;
21882 size_t arg2 ;
21883 bool arg3 = (bool) true ;
21884 bool result;
21885 void *argp1 = 0 ;
21886 int res1 = 0 ;
21887 size_t val2 ;
21888 int ecode2 = 0 ;
21889 bool val3 ;
21890 int ecode3 = 0 ;
21891 PyObject * obj0 = 0 ;
21892 PyObject * obj1 = 0 ;
21893 PyObject * obj2 = 0 ;
21894 char * kwnames[] = {
21895 (char *) "self",(char *) "pos",(char *) "expand", NULL
21896 };
21897
21898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21900 if (!SWIG_IsOK(res1)) {
21901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21902 }
21903 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21904 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21905 if (!SWIG_IsOK(ecode2)) {
21906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
21907 }
21908 arg2 = static_cast< size_t >(val2);
21909 if (obj2) {
21910 ecode3 = SWIG_AsVal_bool(obj2, &val3);
21911 if (!SWIG_IsOK(ecode3)) {
21912 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
21913 }
21914 arg3 = static_cast< bool >(val3);
21915 }
21916 {
21917 PyThreadState* __tstate = wxPyBeginAllowThreads();
21918 result = (bool)(arg1)->ExpandNode(arg2,arg3);
21919 wxPyEndAllowThreads(__tstate);
21920 if (PyErr_Occurred()) SWIG_fail;
21921 }
21922 {
21923 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21924 }
21925 return resultobj;
21926 fail:
21927 return NULL;
21928 }
21929
21930
21931 SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21932 PyObject *resultobj = 0;
21933 wxTreebook *arg1 = (wxTreebook *) 0 ;
21934 size_t arg2 ;
21935 bool result;
21936 void *argp1 = 0 ;
21937 int res1 = 0 ;
21938 size_t val2 ;
21939 int ecode2 = 0 ;
21940 PyObject * obj0 = 0 ;
21941 PyObject * obj1 = 0 ;
21942 char * kwnames[] = {
21943 (char *) "self",(char *) "pos", NULL
21944 };
21945
21946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
21947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21948 if (!SWIG_IsOK(res1)) {
21949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21950 }
21951 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21952 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21953 if (!SWIG_IsOK(ecode2)) {
21954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
21955 }
21956 arg2 = static_cast< size_t >(val2);
21957 {
21958 PyThreadState* __tstate = wxPyBeginAllowThreads();
21959 result = (bool)(arg1)->CollapseNode(arg2);
21960 wxPyEndAllowThreads(__tstate);
21961 if (PyErr_Occurred()) SWIG_fail;
21962 }
21963 {
21964 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21965 }
21966 return resultobj;
21967 fail:
21968 return NULL;
21969 }
21970
21971
21972 SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21973 PyObject *resultobj = 0;
21974 wxTreebook *arg1 = (wxTreebook *) 0 ;
21975 size_t arg2 ;
21976 int result;
21977 void *argp1 = 0 ;
21978 int res1 = 0 ;
21979 size_t val2 ;
21980 int ecode2 = 0 ;
21981 PyObject * obj0 = 0 ;
21982 PyObject * obj1 = 0 ;
21983 char * kwnames[] = {
21984 (char *) "self",(char *) "pos", NULL
21985 };
21986
21987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
21988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21989 if (!SWIG_IsOK(res1)) {
21990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21991 }
21992 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21993 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21994 if (!SWIG_IsOK(ecode2)) {
21995 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
21996 }
21997 arg2 = static_cast< size_t >(val2);
21998 {
21999 PyThreadState* __tstate = wxPyBeginAllowThreads();
22000 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22001 wxPyEndAllowThreads(__tstate);
22002 if (PyErr_Occurred()) SWIG_fail;
22003 }
22004 resultobj = SWIG_From_int(static_cast< int >(result));
22005 return resultobj;
22006 fail:
22007 return NULL;
22008 }
22009
22010
22011 SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22012 PyObject *resultobj = 0;
22013 wxTreebook *arg1 = (wxTreebook *) 0 ;
22014 wxTreeCtrl *result = 0 ;
22015 void *argp1 = 0 ;
22016 int res1 = 0 ;
22017 PyObject *swig_obj[1] ;
22018
22019 if (!args) SWIG_fail;
22020 swig_obj[0] = args;
22021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22022 if (!SWIG_IsOK(res1)) {
22023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22024 }
22025 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22026 {
22027 PyThreadState* __tstate = wxPyBeginAllowThreads();
22028 result = (wxTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
22029 wxPyEndAllowThreads(__tstate);
22030 if (PyErr_Occurred()) SWIG_fail;
22031 }
22032 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeCtrl, 0 | 0 );
22033 return resultobj;
22034 fail:
22035 return NULL;
22036 }
22037
22038
22039 SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22040 PyObject *obj;
22041 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22042 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22043 return SWIG_Py_Void();
22044 }
22045
22046 SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22047 return SWIG_Python_InitShadowInstance(args);
22048 }
22049
22050 SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22051 PyObject *resultobj = 0;
22052 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22053 int arg2 = (int) 0 ;
22054 int arg3 = (int) wxNOT_FOUND ;
22055 int arg4 = (int) wxNOT_FOUND ;
22056 wxTreebookEvent *result = 0 ;
22057 int val1 ;
22058 int ecode1 = 0 ;
22059 int val2 ;
22060 int ecode2 = 0 ;
22061 int val3 ;
22062 int ecode3 = 0 ;
22063 int val4 ;
22064 int ecode4 = 0 ;
22065 PyObject * obj0 = 0 ;
22066 PyObject * obj1 = 0 ;
22067 PyObject * obj2 = 0 ;
22068 PyObject * obj3 = 0 ;
22069 char * kwnames[] = {
22070 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22071 };
22072
22073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22074 if (obj0) {
22075 ecode1 = SWIG_AsVal_int(obj0, &val1);
22076 if (!SWIG_IsOK(ecode1)) {
22077 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22078 }
22079 arg1 = static_cast< wxEventType >(val1);
22080 }
22081 if (obj1) {
22082 ecode2 = SWIG_AsVal_int(obj1, &val2);
22083 if (!SWIG_IsOK(ecode2)) {
22084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22085 }
22086 arg2 = static_cast< int >(val2);
22087 }
22088 if (obj2) {
22089 ecode3 = SWIG_AsVal_int(obj2, &val3);
22090 if (!SWIG_IsOK(ecode3)) {
22091 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22092 }
22093 arg3 = static_cast< int >(val3);
22094 }
22095 if (obj3) {
22096 ecode4 = SWIG_AsVal_int(obj3, &val4);
22097 if (!SWIG_IsOK(ecode4)) {
22098 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22099 }
22100 arg4 = static_cast< int >(val4);
22101 }
22102 {
22103 PyThreadState* __tstate = wxPyBeginAllowThreads();
22104 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22105 wxPyEndAllowThreads(__tstate);
22106 if (PyErr_Occurred()) SWIG_fail;
22107 }
22108 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22109 return resultobj;
22110 fail:
22111 return NULL;
22112 }
22113
22114
22115 SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22116 PyObject *obj;
22117 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22118 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22119 return SWIG_Py_Void();
22120 }
22121
22122 SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22123 return SWIG_Python_InitShadowInstance(args);
22124 }
22125
22126 SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22127 PyObject *resultobj = 0;
22128 wxWindow *arg1 = (wxWindow *) 0 ;
22129 int arg2 ;
22130 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22131 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22132 wxSize const &arg4_defvalue = wxDefaultSize ;
22133 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22134 long arg5 = (long) wxBK_DEFAULT ;
22135 wxString const &arg6_defvalue = wxPyEmptyString ;
22136 wxString *arg6 = (wxString *) &arg6_defvalue ;
22137 wxToolbook *result = 0 ;
22138 void *argp1 = 0 ;
22139 int res1 = 0 ;
22140 int val2 ;
22141 int ecode2 = 0 ;
22142 wxPoint temp3 ;
22143 wxSize temp4 ;
22144 long val5 ;
22145 int ecode5 = 0 ;
22146 bool temp6 = false ;
22147 PyObject * obj0 = 0 ;
22148 PyObject * obj1 = 0 ;
22149 PyObject * obj2 = 0 ;
22150 PyObject * obj3 = 0 ;
22151 PyObject * obj4 = 0 ;
22152 PyObject * obj5 = 0 ;
22153 char * kwnames[] = {
22154 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22155 };
22156
22157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22159 if (!SWIG_IsOK(res1)) {
22160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22161 }
22162 arg1 = reinterpret_cast< wxWindow * >(argp1);
22163 ecode2 = SWIG_AsVal_int(obj1, &val2);
22164 if (!SWIG_IsOK(ecode2)) {
22165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22166 }
22167 arg2 = static_cast< int >(val2);
22168 if (obj2) {
22169 {
22170 arg3 = &temp3;
22171 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22172 }
22173 }
22174 if (obj3) {
22175 {
22176 arg4 = &temp4;
22177 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22178 }
22179 }
22180 if (obj4) {
22181 ecode5 = SWIG_AsVal_long(obj4, &val5);
22182 if (!SWIG_IsOK(ecode5)) {
22183 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22184 }
22185 arg5 = static_cast< long >(val5);
22186 }
22187 if (obj5) {
22188 {
22189 arg6 = wxString_in_helper(obj5);
22190 if (arg6 == NULL) SWIG_fail;
22191 temp6 = true;
22192 }
22193 }
22194 {
22195 PyThreadState* __tstate = wxPyBeginAllowThreads();
22196 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22197 wxPyEndAllowThreads(__tstate);
22198 if (PyErr_Occurred()) SWIG_fail;
22199 }
22200 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22201 {
22202 if (temp6)
22203 delete arg6;
22204 }
22205 return resultobj;
22206 fail:
22207 {
22208 if (temp6)
22209 delete arg6;
22210 }
22211 return NULL;
22212 }
22213
22214
22215 SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22216 PyObject *resultobj = 0;
22217 wxToolbook *result = 0 ;
22218
22219 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22220 {
22221 PyThreadState* __tstate = wxPyBeginAllowThreads();
22222 result = (wxToolbook *)new wxToolbook();
22223 wxPyEndAllowThreads(__tstate);
22224 if (PyErr_Occurred()) SWIG_fail;
22225 }
22226 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22227 return resultobj;
22228 fail:
22229 return NULL;
22230 }
22231
22232
22233 SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22234 PyObject *resultobj = 0;
22235 wxToolbook *arg1 = (wxToolbook *) 0 ;
22236 wxWindow *arg2 = (wxWindow *) 0 ;
22237 int arg3 ;
22238 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22239 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22240 wxSize const &arg5_defvalue = wxDefaultSize ;
22241 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22242 long arg6 = (long) 0 ;
22243 wxString const &arg7_defvalue = wxEmptyString ;
22244 wxString *arg7 = (wxString *) &arg7_defvalue ;
22245 bool result;
22246 void *argp1 = 0 ;
22247 int res1 = 0 ;
22248 void *argp2 = 0 ;
22249 int res2 = 0 ;
22250 int val3 ;
22251 int ecode3 = 0 ;
22252 wxPoint temp4 ;
22253 wxSize temp5 ;
22254 long val6 ;
22255 int ecode6 = 0 ;
22256 bool temp7 = false ;
22257 PyObject * obj0 = 0 ;
22258 PyObject * obj1 = 0 ;
22259 PyObject * obj2 = 0 ;
22260 PyObject * obj3 = 0 ;
22261 PyObject * obj4 = 0 ;
22262 PyObject * obj5 = 0 ;
22263 PyObject * obj6 = 0 ;
22264 char * kwnames[] = {
22265 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22266 };
22267
22268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22270 if (!SWIG_IsOK(res1)) {
22271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22272 }
22273 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22274 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22275 if (!SWIG_IsOK(res2)) {
22276 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22277 }
22278 arg2 = reinterpret_cast< wxWindow * >(argp2);
22279 ecode3 = SWIG_AsVal_int(obj2, &val3);
22280 if (!SWIG_IsOK(ecode3)) {
22281 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22282 }
22283 arg3 = static_cast< int >(val3);
22284 if (obj3) {
22285 {
22286 arg4 = &temp4;
22287 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22288 }
22289 }
22290 if (obj4) {
22291 {
22292 arg5 = &temp5;
22293 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22294 }
22295 }
22296 if (obj5) {
22297 ecode6 = SWIG_AsVal_long(obj5, &val6);
22298 if (!SWIG_IsOK(ecode6)) {
22299 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22300 }
22301 arg6 = static_cast< long >(val6);
22302 }
22303 if (obj6) {
22304 {
22305 arg7 = wxString_in_helper(obj6);
22306 if (arg7 == NULL) SWIG_fail;
22307 temp7 = true;
22308 }
22309 }
22310 {
22311 PyThreadState* __tstate = wxPyBeginAllowThreads();
22312 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22313 wxPyEndAllowThreads(__tstate);
22314 if (PyErr_Occurred()) SWIG_fail;
22315 }
22316 {
22317 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22318 }
22319 {
22320 if (temp7)
22321 delete arg7;
22322 }
22323 return resultobj;
22324 fail:
22325 {
22326 if (temp7)
22327 delete arg7;
22328 }
22329 return NULL;
22330 }
22331
22332
22333 SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22334 PyObject *resultobj = 0;
22335 wxToolbook *arg1 = (wxToolbook *) 0 ;
22336 wxToolBarBase *result = 0 ;
22337 void *argp1 = 0 ;
22338 int res1 = 0 ;
22339 PyObject *swig_obj[1] ;
22340
22341 if (!args) SWIG_fail;
22342 swig_obj[0] = args;
22343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22344 if (!SWIG_IsOK(res1)) {
22345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22346 }
22347 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22348 {
22349 PyThreadState* __tstate = wxPyBeginAllowThreads();
22350 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22351 wxPyEndAllowThreads(__tstate);
22352 if (PyErr_Occurred()) SWIG_fail;
22353 }
22354 {
22355 resultobj = wxPyMake_wxObject(result, (bool)0);
22356 }
22357 return resultobj;
22358 fail:
22359 return NULL;
22360 }
22361
22362
22363 SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22364 PyObject *resultobj = 0;
22365 wxToolbook *arg1 = (wxToolbook *) 0 ;
22366 void *argp1 = 0 ;
22367 int res1 = 0 ;
22368 PyObject *swig_obj[1] ;
22369
22370 if (!args) SWIG_fail;
22371 swig_obj[0] = args;
22372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22373 if (!SWIG_IsOK(res1)) {
22374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22375 }
22376 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22377 {
22378 PyThreadState* __tstate = wxPyBeginAllowThreads();
22379 (arg1)->Realize();
22380 wxPyEndAllowThreads(__tstate);
22381 if (PyErr_Occurred()) SWIG_fail;
22382 }
22383 resultobj = SWIG_Py_Void();
22384 return resultobj;
22385 fail:
22386 return NULL;
22387 }
22388
22389
22390 SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22391 PyObject *obj;
22392 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22393 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22394 return SWIG_Py_Void();
22395 }
22396
22397 SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22398 return SWIG_Python_InitShadowInstance(args);
22399 }
22400
22401 SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22402 PyObject *resultobj = 0;
22403 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22404 int arg2 = (int) 0 ;
22405 int arg3 = (int) wxNOT_FOUND ;
22406 int arg4 = (int) wxNOT_FOUND ;
22407 wxToolbookEvent *result = 0 ;
22408 int val1 ;
22409 int ecode1 = 0 ;
22410 int val2 ;
22411 int ecode2 = 0 ;
22412 int val3 ;
22413 int ecode3 = 0 ;
22414 int val4 ;
22415 int ecode4 = 0 ;
22416 PyObject * obj0 = 0 ;
22417 PyObject * obj1 = 0 ;
22418 PyObject * obj2 = 0 ;
22419 PyObject * obj3 = 0 ;
22420 char * kwnames[] = {
22421 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22422 };
22423
22424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22425 if (obj0) {
22426 ecode1 = SWIG_AsVal_int(obj0, &val1);
22427 if (!SWIG_IsOK(ecode1)) {
22428 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22429 }
22430 arg1 = static_cast< wxEventType >(val1);
22431 }
22432 if (obj1) {
22433 ecode2 = SWIG_AsVal_int(obj1, &val2);
22434 if (!SWIG_IsOK(ecode2)) {
22435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22436 }
22437 arg2 = static_cast< int >(val2);
22438 }
22439 if (obj2) {
22440 ecode3 = SWIG_AsVal_int(obj2, &val3);
22441 if (!SWIG_IsOK(ecode3)) {
22442 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22443 }
22444 arg3 = static_cast< int >(val3);
22445 }
22446 if (obj3) {
22447 ecode4 = SWIG_AsVal_int(obj3, &val4);
22448 if (!SWIG_IsOK(ecode4)) {
22449 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22450 }
22451 arg4 = static_cast< int >(val4);
22452 }
22453 {
22454 PyThreadState* __tstate = wxPyBeginAllowThreads();
22455 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22456 wxPyEndAllowThreads(__tstate);
22457 if (PyErr_Occurred()) SWIG_fail;
22458 }
22459 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22460 return resultobj;
22461 fail:
22462 return NULL;
22463 }
22464
22465
22466 SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22467 PyObject *obj;
22468 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22469 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22470 return SWIG_Py_Void();
22471 }
22472
22473 SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22474 return SWIG_Python_InitShadowInstance(args);
22475 }
22476
22477 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22478 PyObject *resultobj = 0;
22479 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22480 int result;
22481 void *argp1 = 0 ;
22482 int res1 = 0 ;
22483 PyObject *swig_obj[1] ;
22484
22485 if (!args) SWIG_fail;
22486 swig_obj[0] = args;
22487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22488 if (!SWIG_IsOK(res1)) {
22489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22490 }
22491 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22492 {
22493 PyThreadState* __tstate = wxPyBeginAllowThreads();
22494 result = (int)(arg1)->GetId();
22495 wxPyEndAllowThreads(__tstate);
22496 if (PyErr_Occurred()) SWIG_fail;
22497 }
22498 resultobj = SWIG_From_int(static_cast< int >(result));
22499 return resultobj;
22500 fail:
22501 return NULL;
22502 }
22503
22504
22505 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22506 PyObject *resultobj = 0;
22507 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22508 wxControl *result = 0 ;
22509 void *argp1 = 0 ;
22510 int res1 = 0 ;
22511 PyObject *swig_obj[1] ;
22512
22513 if (!args) SWIG_fail;
22514 swig_obj[0] = args;
22515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22516 if (!SWIG_IsOK(res1)) {
22517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22518 }
22519 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22520 {
22521 PyThreadState* __tstate = wxPyBeginAllowThreads();
22522 result = (wxControl *)(arg1)->GetControl();
22523 wxPyEndAllowThreads(__tstate);
22524 if (PyErr_Occurred()) SWIG_fail;
22525 }
22526 {
22527 resultobj = wxPyMake_wxObject(result, 0);
22528 }
22529 return resultobj;
22530 fail:
22531 return NULL;
22532 }
22533
22534
22535 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22536 PyObject *resultobj = 0;
22537 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22538 wxToolBarBase *result = 0 ;
22539 void *argp1 = 0 ;
22540 int res1 = 0 ;
22541 PyObject *swig_obj[1] ;
22542
22543 if (!args) SWIG_fail;
22544 swig_obj[0] = args;
22545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22546 if (!SWIG_IsOK(res1)) {
22547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22548 }
22549 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22550 {
22551 PyThreadState* __tstate = wxPyBeginAllowThreads();
22552 result = (wxToolBarBase *)(arg1)->GetToolBar();
22553 wxPyEndAllowThreads(__tstate);
22554 if (PyErr_Occurred()) SWIG_fail;
22555 }
22556 {
22557 resultobj = wxPyMake_wxObject(result, (bool)0);
22558 }
22559 return resultobj;
22560 fail:
22561 return NULL;
22562 }
22563
22564
22565 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22566 PyObject *resultobj = 0;
22567 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22568 int result;
22569 void *argp1 = 0 ;
22570 int res1 = 0 ;
22571 PyObject *swig_obj[1] ;
22572
22573 if (!args) SWIG_fail;
22574 swig_obj[0] = args;
22575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22576 if (!SWIG_IsOK(res1)) {
22577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22578 }
22579 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22580 {
22581 PyThreadState* __tstate = wxPyBeginAllowThreads();
22582 result = (int)(arg1)->IsButton();
22583 wxPyEndAllowThreads(__tstate);
22584 if (PyErr_Occurred()) SWIG_fail;
22585 }
22586 resultobj = SWIG_From_int(static_cast< int >(result));
22587 return resultobj;
22588 fail:
22589 return NULL;
22590 }
22591
22592
22593 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22594 PyObject *resultobj = 0;
22595 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22596 int result;
22597 void *argp1 = 0 ;
22598 int res1 = 0 ;
22599 PyObject *swig_obj[1] ;
22600
22601 if (!args) SWIG_fail;
22602 swig_obj[0] = args;
22603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22604 if (!SWIG_IsOK(res1)) {
22605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22606 }
22607 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22608 {
22609 PyThreadState* __tstate = wxPyBeginAllowThreads();
22610 result = (int)(arg1)->IsControl();
22611 wxPyEndAllowThreads(__tstate);
22612 if (PyErr_Occurred()) SWIG_fail;
22613 }
22614 resultobj = SWIG_From_int(static_cast< int >(result));
22615 return resultobj;
22616 fail:
22617 return NULL;
22618 }
22619
22620
22621 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22622 PyObject *resultobj = 0;
22623 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22624 int result;
22625 void *argp1 = 0 ;
22626 int res1 = 0 ;
22627 PyObject *swig_obj[1] ;
22628
22629 if (!args) SWIG_fail;
22630 swig_obj[0] = args;
22631 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22632 if (!SWIG_IsOK(res1)) {
22633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22634 }
22635 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22636 {
22637 PyThreadState* __tstate = wxPyBeginAllowThreads();
22638 result = (int)(arg1)->IsSeparator();
22639 wxPyEndAllowThreads(__tstate);
22640 if (PyErr_Occurred()) SWIG_fail;
22641 }
22642 resultobj = SWIG_From_int(static_cast< int >(result));
22643 return resultobj;
22644 fail:
22645 return NULL;
22646 }
22647
22648
22649 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22650 PyObject *resultobj = 0;
22651 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22652 int result;
22653 void *argp1 = 0 ;
22654 int res1 = 0 ;
22655 PyObject *swig_obj[1] ;
22656
22657 if (!args) SWIG_fail;
22658 swig_obj[0] = args;
22659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22660 if (!SWIG_IsOK(res1)) {
22661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22662 }
22663 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22664 {
22665 PyThreadState* __tstate = wxPyBeginAllowThreads();
22666 result = (int)(arg1)->GetStyle();
22667 wxPyEndAllowThreads(__tstate);
22668 if (PyErr_Occurred()) SWIG_fail;
22669 }
22670 resultobj = SWIG_From_int(static_cast< int >(result));
22671 return resultobj;
22672 fail:
22673 return NULL;
22674 }
22675
22676
22677 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22678 PyObject *resultobj = 0;
22679 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22680 wxItemKind result;
22681 void *argp1 = 0 ;
22682 int res1 = 0 ;
22683 PyObject *swig_obj[1] ;
22684
22685 if (!args) SWIG_fail;
22686 swig_obj[0] = args;
22687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22688 if (!SWIG_IsOK(res1)) {
22689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22690 }
22691 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22692 {
22693 PyThreadState* __tstate = wxPyBeginAllowThreads();
22694 result = (wxItemKind)(arg1)->GetKind();
22695 wxPyEndAllowThreads(__tstate);
22696 if (PyErr_Occurred()) SWIG_fail;
22697 }
22698 resultobj = SWIG_From_int(static_cast< int >(result));
22699 return resultobj;
22700 fail:
22701 return NULL;
22702 }
22703
22704
22705 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22706 PyObject *resultobj = 0;
22707 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22708 bool result;
22709 void *argp1 = 0 ;
22710 int res1 = 0 ;
22711 PyObject *swig_obj[1] ;
22712
22713 if (!args) SWIG_fail;
22714 swig_obj[0] = args;
22715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22716 if (!SWIG_IsOK(res1)) {
22717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22718 }
22719 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22720 {
22721 PyThreadState* __tstate = wxPyBeginAllowThreads();
22722 result = (bool)(arg1)->IsEnabled();
22723 wxPyEndAllowThreads(__tstate);
22724 if (PyErr_Occurred()) SWIG_fail;
22725 }
22726 {
22727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22728 }
22729 return resultobj;
22730 fail:
22731 return NULL;
22732 }
22733
22734
22735 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22736 PyObject *resultobj = 0;
22737 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22738 bool result;
22739 void *argp1 = 0 ;
22740 int res1 = 0 ;
22741 PyObject *swig_obj[1] ;
22742
22743 if (!args) SWIG_fail;
22744 swig_obj[0] = args;
22745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22746 if (!SWIG_IsOK(res1)) {
22747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22748 }
22749 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22750 {
22751 PyThreadState* __tstate = wxPyBeginAllowThreads();
22752 result = (bool)(arg1)->IsToggled();
22753 wxPyEndAllowThreads(__tstate);
22754 if (PyErr_Occurred()) SWIG_fail;
22755 }
22756 {
22757 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22758 }
22759 return resultobj;
22760 fail:
22761 return NULL;
22762 }
22763
22764
22765 SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22766 PyObject *resultobj = 0;
22767 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22768 bool result;
22769 void *argp1 = 0 ;
22770 int res1 = 0 ;
22771 PyObject *swig_obj[1] ;
22772
22773 if (!args) SWIG_fail;
22774 swig_obj[0] = args;
22775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22776 if (!SWIG_IsOK(res1)) {
22777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22778 }
22779 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22780 {
22781 PyThreadState* __tstate = wxPyBeginAllowThreads();
22782 result = (bool)(arg1)->CanBeToggled();
22783 wxPyEndAllowThreads(__tstate);
22784 if (PyErr_Occurred()) SWIG_fail;
22785 }
22786 {
22787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22788 }
22789 return resultobj;
22790 fail:
22791 return NULL;
22792 }
22793
22794
22795 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22796 PyObject *resultobj = 0;
22797 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22798 wxBitmap *result = 0 ;
22799 void *argp1 = 0 ;
22800 int res1 = 0 ;
22801 PyObject *swig_obj[1] ;
22802
22803 if (!args) SWIG_fail;
22804 swig_obj[0] = args;
22805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22806 if (!SWIG_IsOK(res1)) {
22807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22808 }
22809 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22810 {
22811 PyThreadState* __tstate = wxPyBeginAllowThreads();
22812 {
22813 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
22814 result = (wxBitmap *) &_result_ref;
22815 }
22816 wxPyEndAllowThreads(__tstate);
22817 if (PyErr_Occurred()) SWIG_fail;
22818 }
22819 {
22820 wxBitmap* resultptr = new wxBitmap(*result);
22821 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22822 }
22823 return resultobj;
22824 fail:
22825 return NULL;
22826 }
22827
22828
22829 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22830 PyObject *resultobj = 0;
22831 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22832 wxBitmap *result = 0 ;
22833 void *argp1 = 0 ;
22834 int res1 = 0 ;
22835 PyObject *swig_obj[1] ;
22836
22837 if (!args) SWIG_fail;
22838 swig_obj[0] = args;
22839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22840 if (!SWIG_IsOK(res1)) {
22841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22842 }
22843 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22844 {
22845 PyThreadState* __tstate = wxPyBeginAllowThreads();
22846 {
22847 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
22848 result = (wxBitmap *) &_result_ref;
22849 }
22850 wxPyEndAllowThreads(__tstate);
22851 if (PyErr_Occurred()) SWIG_fail;
22852 }
22853 {
22854 wxBitmap* resultptr = new wxBitmap(*result);
22855 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22856 }
22857 return resultobj;
22858 fail:
22859 return NULL;
22860 }
22861
22862
22863 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22864 PyObject *resultobj = 0;
22865 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22866 wxBitmap result;
22867 void *argp1 = 0 ;
22868 int res1 = 0 ;
22869 PyObject *swig_obj[1] ;
22870
22871 if (!args) SWIG_fail;
22872 swig_obj[0] = args;
22873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22874 if (!SWIG_IsOK(res1)) {
22875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22876 }
22877 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22878 {
22879 PyThreadState* __tstate = wxPyBeginAllowThreads();
22880 result = (arg1)->GetBitmap();
22881 wxPyEndAllowThreads(__tstate);
22882 if (PyErr_Occurred()) SWIG_fail;
22883 }
22884 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
22885 return resultobj;
22886 fail:
22887 return NULL;
22888 }
22889
22890
22891 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22892 PyObject *resultobj = 0;
22893 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22894 wxString result;
22895 void *argp1 = 0 ;
22896 int res1 = 0 ;
22897 PyObject *swig_obj[1] ;
22898
22899 if (!args) SWIG_fail;
22900 swig_obj[0] = args;
22901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22902 if (!SWIG_IsOK(res1)) {
22903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22904 }
22905 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22906 {
22907 PyThreadState* __tstate = wxPyBeginAllowThreads();
22908 result = (arg1)->GetLabel();
22909 wxPyEndAllowThreads(__tstate);
22910 if (PyErr_Occurred()) SWIG_fail;
22911 }
22912 {
22913 #if wxUSE_UNICODE
22914 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22915 #else
22916 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22917 #endif
22918 }
22919 return resultobj;
22920 fail:
22921 return NULL;
22922 }
22923
22924
22925 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22926 PyObject *resultobj = 0;
22927 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22928 wxString result;
22929 void *argp1 = 0 ;
22930 int res1 = 0 ;
22931 PyObject *swig_obj[1] ;
22932
22933 if (!args) SWIG_fail;
22934 swig_obj[0] = args;
22935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22936 if (!SWIG_IsOK(res1)) {
22937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22938 }
22939 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22940 {
22941 PyThreadState* __tstate = wxPyBeginAllowThreads();
22942 result = (arg1)->GetShortHelp();
22943 wxPyEndAllowThreads(__tstate);
22944 if (PyErr_Occurred()) SWIG_fail;
22945 }
22946 {
22947 #if wxUSE_UNICODE
22948 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22949 #else
22950 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22951 #endif
22952 }
22953 return resultobj;
22954 fail:
22955 return NULL;
22956 }
22957
22958
22959 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22960 PyObject *resultobj = 0;
22961 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22962 wxString result;
22963 void *argp1 = 0 ;
22964 int res1 = 0 ;
22965 PyObject *swig_obj[1] ;
22966
22967 if (!args) SWIG_fail;
22968 swig_obj[0] = args;
22969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22970 if (!SWIG_IsOK(res1)) {
22971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22972 }
22973 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22974 {
22975 PyThreadState* __tstate = wxPyBeginAllowThreads();
22976 result = (arg1)->GetLongHelp();
22977 wxPyEndAllowThreads(__tstate);
22978 if (PyErr_Occurred()) SWIG_fail;
22979 }
22980 {
22981 #if wxUSE_UNICODE
22982 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22983 #else
22984 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22985 #endif
22986 }
22987 return resultobj;
22988 fail:
22989 return NULL;
22990 }
22991
22992
22993 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22994 PyObject *resultobj = 0;
22995 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22996 bool arg2 ;
22997 bool result;
22998 void *argp1 = 0 ;
22999 int res1 = 0 ;
23000 bool val2 ;
23001 int ecode2 = 0 ;
23002 PyObject * obj0 = 0 ;
23003 PyObject * obj1 = 0 ;
23004 char * kwnames[] = {
23005 (char *) "self",(char *) "enable", NULL
23006 };
23007
23008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23010 if (!SWIG_IsOK(res1)) {
23011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23012 }
23013 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23014 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23015 if (!SWIG_IsOK(ecode2)) {
23016 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23017 }
23018 arg2 = static_cast< bool >(val2);
23019 {
23020 PyThreadState* __tstate = wxPyBeginAllowThreads();
23021 result = (bool)(arg1)->Enable(arg2);
23022 wxPyEndAllowThreads(__tstate);
23023 if (PyErr_Occurred()) SWIG_fail;
23024 }
23025 {
23026 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23027 }
23028 return resultobj;
23029 fail:
23030 return NULL;
23031 }
23032
23033
23034 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23035 PyObject *resultobj = 0;
23036 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23037 void *argp1 = 0 ;
23038 int res1 = 0 ;
23039 PyObject *swig_obj[1] ;
23040
23041 if (!args) SWIG_fail;
23042 swig_obj[0] = args;
23043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23044 if (!SWIG_IsOK(res1)) {
23045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23046 }
23047 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23048 {
23049 PyThreadState* __tstate = wxPyBeginAllowThreads();
23050 (arg1)->Toggle();
23051 wxPyEndAllowThreads(__tstate);
23052 if (PyErr_Occurred()) SWIG_fail;
23053 }
23054 resultobj = SWIG_Py_Void();
23055 return resultobj;
23056 fail:
23057 return NULL;
23058 }
23059
23060
23061 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23062 PyObject *resultobj = 0;
23063 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23064 bool arg2 ;
23065 bool result;
23066 void *argp1 = 0 ;
23067 int res1 = 0 ;
23068 bool val2 ;
23069 int ecode2 = 0 ;
23070 PyObject * obj0 = 0 ;
23071 PyObject * obj1 = 0 ;
23072 char * kwnames[] = {
23073 (char *) "self",(char *) "toggle", NULL
23074 };
23075
23076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23078 if (!SWIG_IsOK(res1)) {
23079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23080 }
23081 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23082 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23083 if (!SWIG_IsOK(ecode2)) {
23084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23085 }
23086 arg2 = static_cast< bool >(val2);
23087 {
23088 PyThreadState* __tstate = wxPyBeginAllowThreads();
23089 result = (bool)(arg1)->SetToggle(arg2);
23090 wxPyEndAllowThreads(__tstate);
23091 if (PyErr_Occurred()) SWIG_fail;
23092 }
23093 {
23094 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23095 }
23096 return resultobj;
23097 fail:
23098 return NULL;
23099 }
23100
23101
23102 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23103 PyObject *resultobj = 0;
23104 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23105 wxString *arg2 = 0 ;
23106 bool result;
23107 void *argp1 = 0 ;
23108 int res1 = 0 ;
23109 bool temp2 = false ;
23110 PyObject * obj0 = 0 ;
23111 PyObject * obj1 = 0 ;
23112 char * kwnames[] = {
23113 (char *) "self",(char *) "help", NULL
23114 };
23115
23116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23118 if (!SWIG_IsOK(res1)) {
23119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23120 }
23121 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23122 {
23123 arg2 = wxString_in_helper(obj1);
23124 if (arg2 == NULL) SWIG_fail;
23125 temp2 = true;
23126 }
23127 {
23128 PyThreadState* __tstate = wxPyBeginAllowThreads();
23129 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23130 wxPyEndAllowThreads(__tstate);
23131 if (PyErr_Occurred()) SWIG_fail;
23132 }
23133 {
23134 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23135 }
23136 {
23137 if (temp2)
23138 delete arg2;
23139 }
23140 return resultobj;
23141 fail:
23142 {
23143 if (temp2)
23144 delete arg2;
23145 }
23146 return NULL;
23147 }
23148
23149
23150 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23151 PyObject *resultobj = 0;
23152 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23153 wxString *arg2 = 0 ;
23154 bool result;
23155 void *argp1 = 0 ;
23156 int res1 = 0 ;
23157 bool temp2 = false ;
23158 PyObject * obj0 = 0 ;
23159 PyObject * obj1 = 0 ;
23160 char * kwnames[] = {
23161 (char *) "self",(char *) "help", NULL
23162 };
23163
23164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23166 if (!SWIG_IsOK(res1)) {
23167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23168 }
23169 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23170 {
23171 arg2 = wxString_in_helper(obj1);
23172 if (arg2 == NULL) SWIG_fail;
23173 temp2 = true;
23174 }
23175 {
23176 PyThreadState* __tstate = wxPyBeginAllowThreads();
23177 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23178 wxPyEndAllowThreads(__tstate);
23179 if (PyErr_Occurred()) SWIG_fail;
23180 }
23181 {
23182 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23183 }
23184 {
23185 if (temp2)
23186 delete arg2;
23187 }
23188 return resultobj;
23189 fail:
23190 {
23191 if (temp2)
23192 delete arg2;
23193 }
23194 return NULL;
23195 }
23196
23197
23198 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23199 PyObject *resultobj = 0;
23200 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23201 wxBitmap *arg2 = 0 ;
23202 void *argp1 = 0 ;
23203 int res1 = 0 ;
23204 void *argp2 = 0 ;
23205 int res2 = 0 ;
23206 PyObject * obj0 = 0 ;
23207 PyObject * obj1 = 0 ;
23208 char * kwnames[] = {
23209 (char *) "self",(char *) "bmp", NULL
23210 };
23211
23212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23214 if (!SWIG_IsOK(res1)) {
23215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23216 }
23217 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23218 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23219 if (!SWIG_IsOK(res2)) {
23220 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23221 }
23222 if (!argp2) {
23223 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23224 }
23225 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23226 {
23227 PyThreadState* __tstate = wxPyBeginAllowThreads();
23228 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23229 wxPyEndAllowThreads(__tstate);
23230 if (PyErr_Occurred()) SWIG_fail;
23231 }
23232 resultobj = SWIG_Py_Void();
23233 return resultobj;
23234 fail:
23235 return NULL;
23236 }
23237
23238
23239 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23240 PyObject *resultobj = 0;
23241 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23242 wxBitmap *arg2 = 0 ;
23243 void *argp1 = 0 ;
23244 int res1 = 0 ;
23245 void *argp2 = 0 ;
23246 int res2 = 0 ;
23247 PyObject * obj0 = 0 ;
23248 PyObject * obj1 = 0 ;
23249 char * kwnames[] = {
23250 (char *) "self",(char *) "bmp", NULL
23251 };
23252
23253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23255 if (!SWIG_IsOK(res1)) {
23256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23257 }
23258 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23259 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23260 if (!SWIG_IsOK(res2)) {
23261 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23262 }
23263 if (!argp2) {
23264 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23265 }
23266 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23267 {
23268 PyThreadState* __tstate = wxPyBeginAllowThreads();
23269 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23270 wxPyEndAllowThreads(__tstate);
23271 if (PyErr_Occurred()) SWIG_fail;
23272 }
23273 resultobj = SWIG_Py_Void();
23274 return resultobj;
23275 fail:
23276 return NULL;
23277 }
23278
23279
23280 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23281 PyObject *resultobj = 0;
23282 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23283 wxString *arg2 = 0 ;
23284 void *argp1 = 0 ;
23285 int res1 = 0 ;
23286 bool temp2 = false ;
23287 PyObject * obj0 = 0 ;
23288 PyObject * obj1 = 0 ;
23289 char * kwnames[] = {
23290 (char *) "self",(char *) "label", NULL
23291 };
23292
23293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23295 if (!SWIG_IsOK(res1)) {
23296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23297 }
23298 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23299 {
23300 arg2 = wxString_in_helper(obj1);
23301 if (arg2 == NULL) SWIG_fail;
23302 temp2 = true;
23303 }
23304 {
23305 PyThreadState* __tstate = wxPyBeginAllowThreads();
23306 (arg1)->SetLabel((wxString const &)*arg2);
23307 wxPyEndAllowThreads(__tstate);
23308 if (PyErr_Occurred()) SWIG_fail;
23309 }
23310 resultobj = SWIG_Py_Void();
23311 {
23312 if (temp2)
23313 delete arg2;
23314 }
23315 return resultobj;
23316 fail:
23317 {
23318 if (temp2)
23319 delete arg2;
23320 }
23321 return NULL;
23322 }
23323
23324
23325 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23326 PyObject *resultobj = 0;
23327 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23328 void *argp1 = 0 ;
23329 int res1 = 0 ;
23330 PyObject *swig_obj[1] ;
23331
23332 if (!args) SWIG_fail;
23333 swig_obj[0] = args;
23334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23335 if (!SWIG_IsOK(res1)) {
23336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23337 }
23338 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23339 {
23340 PyThreadState* __tstate = wxPyBeginAllowThreads();
23341 (arg1)->Detach();
23342 wxPyEndAllowThreads(__tstate);
23343 if (PyErr_Occurred()) SWIG_fail;
23344 }
23345 resultobj = SWIG_Py_Void();
23346 return resultobj;
23347 fail:
23348 return NULL;
23349 }
23350
23351
23352 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23353 PyObject *resultobj = 0;
23354 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23355 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23356 void *argp1 = 0 ;
23357 int res1 = 0 ;
23358 void *argp2 = 0 ;
23359 int res2 = 0 ;
23360 PyObject * obj0 = 0 ;
23361 PyObject * obj1 = 0 ;
23362 char * kwnames[] = {
23363 (char *) "self",(char *) "tbar", NULL
23364 };
23365
23366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23368 if (!SWIG_IsOK(res1)) {
23369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23370 }
23371 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23372 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23373 if (!SWIG_IsOK(res2)) {
23374 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23375 }
23376 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23377 {
23378 PyThreadState* __tstate = wxPyBeginAllowThreads();
23379 (arg1)->Attach(arg2);
23380 wxPyEndAllowThreads(__tstate);
23381 if (PyErr_Occurred()) SWIG_fail;
23382 }
23383 resultobj = SWIG_Py_Void();
23384 return resultobj;
23385 fail:
23386 return NULL;
23387 }
23388
23389
23390 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23391 PyObject *resultobj = 0;
23392 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23393 PyObject *result = 0 ;
23394 void *argp1 = 0 ;
23395 int res1 = 0 ;
23396 PyObject *swig_obj[1] ;
23397
23398 if (!args) SWIG_fail;
23399 swig_obj[0] = args;
23400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23401 if (!SWIG_IsOK(res1)) {
23402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23403 }
23404 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23405 {
23406 PyThreadState* __tstate = wxPyBeginAllowThreads();
23407 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23408 wxPyEndAllowThreads(__tstate);
23409 if (PyErr_Occurred()) SWIG_fail;
23410 }
23411 resultobj = result;
23412 return resultobj;
23413 fail:
23414 return NULL;
23415 }
23416
23417
23418 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23419 PyObject *resultobj = 0;
23420 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23421 PyObject *arg2 = (PyObject *) 0 ;
23422 void *argp1 = 0 ;
23423 int res1 = 0 ;
23424 PyObject * obj0 = 0 ;
23425 PyObject * obj1 = 0 ;
23426 char * kwnames[] = {
23427 (char *) "self",(char *) "clientData", NULL
23428 };
23429
23430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23432 if (!SWIG_IsOK(res1)) {
23433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23434 }
23435 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23436 arg2 = obj1;
23437 {
23438 PyThreadState* __tstate = wxPyBeginAllowThreads();
23439 wxToolBarToolBase_SetClientData(arg1,arg2);
23440 wxPyEndAllowThreads(__tstate);
23441 if (PyErr_Occurred()) SWIG_fail;
23442 }
23443 resultobj = SWIG_Py_Void();
23444 return resultobj;
23445 fail:
23446 return NULL;
23447 }
23448
23449
23450 SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23451 PyObject *obj;
23452 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23453 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23454 return SWIG_Py_Void();
23455 }
23456
23457 SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23458 PyObject *resultobj = 0;
23459 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23460 int arg2 ;
23461 wxString *arg3 = 0 ;
23462 wxBitmap *arg4 = 0 ;
23463 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23464 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23465 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23466 wxString const &arg7_defvalue = wxPyEmptyString ;
23467 wxString *arg7 = (wxString *) &arg7_defvalue ;
23468 wxString const &arg8_defvalue = wxPyEmptyString ;
23469 wxString *arg8 = (wxString *) &arg8_defvalue ;
23470 PyObject *arg9 = (PyObject *) NULL ;
23471 wxToolBarToolBase *result = 0 ;
23472 void *argp1 = 0 ;
23473 int res1 = 0 ;
23474 int val2 ;
23475 int ecode2 = 0 ;
23476 bool temp3 = false ;
23477 void *argp4 = 0 ;
23478 int res4 = 0 ;
23479 void *argp5 = 0 ;
23480 int res5 = 0 ;
23481 int val6 ;
23482 int ecode6 = 0 ;
23483 bool temp7 = false ;
23484 bool temp8 = false ;
23485 PyObject * obj0 = 0 ;
23486 PyObject * obj1 = 0 ;
23487 PyObject * obj2 = 0 ;
23488 PyObject * obj3 = 0 ;
23489 PyObject * obj4 = 0 ;
23490 PyObject * obj5 = 0 ;
23491 PyObject * obj6 = 0 ;
23492 PyObject * obj7 = 0 ;
23493 PyObject * obj8 = 0 ;
23494 char * kwnames[] = {
23495 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23496 };
23497
23498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23500 if (!SWIG_IsOK(res1)) {
23501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23502 }
23503 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23504 ecode2 = SWIG_AsVal_int(obj1, &val2);
23505 if (!SWIG_IsOK(ecode2)) {
23506 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23507 }
23508 arg2 = static_cast< int >(val2);
23509 {
23510 arg3 = wxString_in_helper(obj2);
23511 if (arg3 == NULL) SWIG_fail;
23512 temp3 = true;
23513 }
23514 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23515 if (!SWIG_IsOK(res4)) {
23516 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23517 }
23518 if (!argp4) {
23519 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23520 }
23521 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23522 if (obj4) {
23523 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23524 if (!SWIG_IsOK(res5)) {
23525 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23526 }
23527 if (!argp5) {
23528 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23529 }
23530 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23531 }
23532 if (obj5) {
23533 ecode6 = SWIG_AsVal_int(obj5, &val6);
23534 if (!SWIG_IsOK(ecode6)) {
23535 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23536 }
23537 arg6 = static_cast< wxItemKind >(val6);
23538 }
23539 if (obj6) {
23540 {
23541 arg7 = wxString_in_helper(obj6);
23542 if (arg7 == NULL) SWIG_fail;
23543 temp7 = true;
23544 }
23545 }
23546 if (obj7) {
23547 {
23548 arg8 = wxString_in_helper(obj7);
23549 if (arg8 == NULL) SWIG_fail;
23550 temp8 = true;
23551 }
23552 }
23553 if (obj8) {
23554 arg9 = obj8;
23555 }
23556 {
23557 PyThreadState* __tstate = wxPyBeginAllowThreads();
23558 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23559 wxPyEndAllowThreads(__tstate);
23560 if (PyErr_Occurred()) SWIG_fail;
23561 }
23562 {
23563 resultobj = wxPyMake_wxObject(result, (bool)0);
23564 }
23565 {
23566 if (temp3)
23567 delete arg3;
23568 }
23569 {
23570 if (temp7)
23571 delete arg7;
23572 }
23573 {
23574 if (temp8)
23575 delete arg8;
23576 }
23577 return resultobj;
23578 fail:
23579 {
23580 if (temp3)
23581 delete arg3;
23582 }
23583 {
23584 if (temp7)
23585 delete arg7;
23586 }
23587 {
23588 if (temp8)
23589 delete arg8;
23590 }
23591 return NULL;
23592 }
23593
23594
23595 SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23596 PyObject *resultobj = 0;
23597 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23598 size_t arg2 ;
23599 int arg3 ;
23600 wxString *arg4 = 0 ;
23601 wxBitmap *arg5 = 0 ;
23602 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23603 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23604 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23605 wxString const &arg8_defvalue = wxPyEmptyString ;
23606 wxString *arg8 = (wxString *) &arg8_defvalue ;
23607 wxString const &arg9_defvalue = wxPyEmptyString ;
23608 wxString *arg9 = (wxString *) &arg9_defvalue ;
23609 PyObject *arg10 = (PyObject *) NULL ;
23610 wxToolBarToolBase *result = 0 ;
23611 void *argp1 = 0 ;
23612 int res1 = 0 ;
23613 size_t val2 ;
23614 int ecode2 = 0 ;
23615 int val3 ;
23616 int ecode3 = 0 ;
23617 bool temp4 = false ;
23618 void *argp5 = 0 ;
23619 int res5 = 0 ;
23620 void *argp6 = 0 ;
23621 int res6 = 0 ;
23622 int val7 ;
23623 int ecode7 = 0 ;
23624 bool temp8 = false ;
23625 bool temp9 = false ;
23626 PyObject * obj0 = 0 ;
23627 PyObject * obj1 = 0 ;
23628 PyObject * obj2 = 0 ;
23629 PyObject * obj3 = 0 ;
23630 PyObject * obj4 = 0 ;
23631 PyObject * obj5 = 0 ;
23632 PyObject * obj6 = 0 ;
23633 PyObject * obj7 = 0 ;
23634 PyObject * obj8 = 0 ;
23635 PyObject * obj9 = 0 ;
23636 char * kwnames[] = {
23637 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23638 };
23639
23640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23642 if (!SWIG_IsOK(res1)) {
23643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23644 }
23645 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23646 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23647 if (!SWIG_IsOK(ecode2)) {
23648 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23649 }
23650 arg2 = static_cast< size_t >(val2);
23651 ecode3 = SWIG_AsVal_int(obj2, &val3);
23652 if (!SWIG_IsOK(ecode3)) {
23653 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23654 }
23655 arg3 = static_cast< int >(val3);
23656 {
23657 arg4 = wxString_in_helper(obj3);
23658 if (arg4 == NULL) SWIG_fail;
23659 temp4 = true;
23660 }
23661 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23662 if (!SWIG_IsOK(res5)) {
23663 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23664 }
23665 if (!argp5) {
23666 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23667 }
23668 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23669 if (obj5) {
23670 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23671 if (!SWIG_IsOK(res6)) {
23672 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23673 }
23674 if (!argp6) {
23675 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23676 }
23677 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23678 }
23679 if (obj6) {
23680 ecode7 = SWIG_AsVal_int(obj6, &val7);
23681 if (!SWIG_IsOK(ecode7)) {
23682 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23683 }
23684 arg7 = static_cast< wxItemKind >(val7);
23685 }
23686 if (obj7) {
23687 {
23688 arg8 = wxString_in_helper(obj7);
23689 if (arg8 == NULL) SWIG_fail;
23690 temp8 = true;
23691 }
23692 }
23693 if (obj8) {
23694 {
23695 arg9 = wxString_in_helper(obj8);
23696 if (arg9 == NULL) SWIG_fail;
23697 temp9 = true;
23698 }
23699 }
23700 if (obj9) {
23701 arg10 = obj9;
23702 }
23703 {
23704 PyThreadState* __tstate = wxPyBeginAllowThreads();
23705 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
23706 wxPyEndAllowThreads(__tstate);
23707 if (PyErr_Occurred()) SWIG_fail;
23708 }
23709 {
23710 resultobj = wxPyMake_wxObject(result, (bool)0);
23711 }
23712 {
23713 if (temp4)
23714 delete arg4;
23715 }
23716 {
23717 if (temp8)
23718 delete arg8;
23719 }
23720 {
23721 if (temp9)
23722 delete arg9;
23723 }
23724 return resultobj;
23725 fail:
23726 {
23727 if (temp4)
23728 delete arg4;
23729 }
23730 {
23731 if (temp8)
23732 delete arg8;
23733 }
23734 {
23735 if (temp9)
23736 delete arg9;
23737 }
23738 return NULL;
23739 }
23740
23741
23742 SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23743 PyObject *resultobj = 0;
23744 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23745 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
23746 wxToolBarToolBase *result = 0 ;
23747 void *argp1 = 0 ;
23748 int res1 = 0 ;
23749 void *argp2 = 0 ;
23750 int res2 = 0 ;
23751 PyObject * obj0 = 0 ;
23752 PyObject * obj1 = 0 ;
23753 char * kwnames[] = {
23754 (char *) "self",(char *) "tool", NULL
23755 };
23756
23757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",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_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23761 }
23762 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23763 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23764 if (!SWIG_IsOK(res2)) {
23765 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
23766 }
23767 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
23768 {
23769 PyThreadState* __tstate = wxPyBeginAllowThreads();
23770 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
23771 wxPyEndAllowThreads(__tstate);
23772 if (PyErr_Occurred()) SWIG_fail;
23773 }
23774 {
23775 resultobj = wxPyMake_wxObject(result, (bool)0);
23776 }
23777 return resultobj;
23778 fail:
23779 return NULL;
23780 }
23781
23782
23783 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23784 PyObject *resultobj = 0;
23785 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23786 size_t arg2 ;
23787 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
23788 wxToolBarToolBase *result = 0 ;
23789 void *argp1 = 0 ;
23790 int res1 = 0 ;
23791 size_t val2 ;
23792 int ecode2 = 0 ;
23793 void *argp3 = 0 ;
23794 int res3 = 0 ;
23795 PyObject * obj0 = 0 ;
23796 PyObject * obj1 = 0 ;
23797 PyObject * obj2 = 0 ;
23798 char * kwnames[] = {
23799 (char *) "self",(char *) "pos",(char *) "tool", NULL
23800 };
23801
23802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23804 if (!SWIG_IsOK(res1)) {
23805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23806 }
23807 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23808 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23809 if (!SWIG_IsOK(ecode2)) {
23810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
23811 }
23812 arg2 = static_cast< size_t >(val2);
23813 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23814 if (!SWIG_IsOK(res3)) {
23815 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
23816 }
23817 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
23818 {
23819 PyThreadState* __tstate = wxPyBeginAllowThreads();
23820 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
23821 wxPyEndAllowThreads(__tstate);
23822 if (PyErr_Occurred()) SWIG_fail;
23823 }
23824 {
23825 resultobj = wxPyMake_wxObject(result, (bool)0);
23826 }
23827 return resultobj;
23828 fail:
23829 return NULL;
23830 }
23831
23832
23833 SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23834 PyObject *resultobj = 0;
23835 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23836 wxControl *arg2 = (wxControl *) 0 ;
23837 wxToolBarToolBase *result = 0 ;
23838 void *argp1 = 0 ;
23839 int res1 = 0 ;
23840 void *argp2 = 0 ;
23841 int res2 = 0 ;
23842 PyObject * obj0 = 0 ;
23843 PyObject * obj1 = 0 ;
23844 char * kwnames[] = {
23845 (char *) "self",(char *) "control", NULL
23846 };
23847
23848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
23849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23850 if (!SWIG_IsOK(res1)) {
23851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23852 }
23853 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23854 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
23855 if (!SWIG_IsOK(res2)) {
23856 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
23857 }
23858 arg2 = reinterpret_cast< wxControl * >(argp2);
23859 {
23860 PyThreadState* __tstate = wxPyBeginAllowThreads();
23861 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
23862 wxPyEndAllowThreads(__tstate);
23863 if (PyErr_Occurred()) SWIG_fail;
23864 }
23865 {
23866 resultobj = wxPyMake_wxObject(result, (bool)0);
23867 }
23868 return resultobj;
23869 fail:
23870 return NULL;
23871 }
23872
23873
23874 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23875 PyObject *resultobj = 0;
23876 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23877 size_t arg2 ;
23878 wxControl *arg3 = (wxControl *) 0 ;
23879 wxToolBarToolBase *result = 0 ;
23880 void *argp1 = 0 ;
23881 int res1 = 0 ;
23882 size_t val2 ;
23883 int ecode2 = 0 ;
23884 void *argp3 = 0 ;
23885 int res3 = 0 ;
23886 PyObject * obj0 = 0 ;
23887 PyObject * obj1 = 0 ;
23888 PyObject * obj2 = 0 ;
23889 char * kwnames[] = {
23890 (char *) "self",(char *) "pos",(char *) "control", NULL
23891 };
23892
23893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23895 if (!SWIG_IsOK(res1)) {
23896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23897 }
23898 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23899 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23900 if (!SWIG_IsOK(ecode2)) {
23901 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
23902 }
23903 arg2 = static_cast< size_t >(val2);
23904 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
23905 if (!SWIG_IsOK(res3)) {
23906 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
23907 }
23908 arg3 = reinterpret_cast< wxControl * >(argp3);
23909 {
23910 PyThreadState* __tstate = wxPyBeginAllowThreads();
23911 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
23912 wxPyEndAllowThreads(__tstate);
23913 if (PyErr_Occurred()) SWIG_fail;
23914 }
23915 {
23916 resultobj = wxPyMake_wxObject(result, (bool)0);
23917 }
23918 return resultobj;
23919 fail:
23920 return NULL;
23921 }
23922
23923
23924 SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23925 PyObject *resultobj = 0;
23926 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23927 int arg2 ;
23928 wxControl *result = 0 ;
23929 void *argp1 = 0 ;
23930 int res1 = 0 ;
23931 int val2 ;
23932 int ecode2 = 0 ;
23933 PyObject * obj0 = 0 ;
23934 PyObject * obj1 = 0 ;
23935 char * kwnames[] = {
23936 (char *) "self",(char *) "id", NULL
23937 };
23938
23939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
23940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23941 if (!SWIG_IsOK(res1)) {
23942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23943 }
23944 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23945 ecode2 = SWIG_AsVal_int(obj1, &val2);
23946 if (!SWIG_IsOK(ecode2)) {
23947 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
23948 }
23949 arg2 = static_cast< int >(val2);
23950 {
23951 PyThreadState* __tstate = wxPyBeginAllowThreads();
23952 result = (wxControl *)(arg1)->FindControl(arg2);
23953 wxPyEndAllowThreads(__tstate);
23954 if (PyErr_Occurred()) SWIG_fail;
23955 }
23956 {
23957 resultobj = wxPyMake_wxObject(result, 0);
23958 }
23959 return resultobj;
23960 fail:
23961 return NULL;
23962 }
23963
23964
23965 SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23966 PyObject *resultobj = 0;
23967 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23968 wxToolBarToolBase *result = 0 ;
23969 void *argp1 = 0 ;
23970 int res1 = 0 ;
23971 PyObject *swig_obj[1] ;
23972
23973 if (!args) SWIG_fail;
23974 swig_obj[0] = args;
23975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23976 if (!SWIG_IsOK(res1)) {
23977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23978 }
23979 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23980 {
23981 PyThreadState* __tstate = wxPyBeginAllowThreads();
23982 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
23983 wxPyEndAllowThreads(__tstate);
23984 if (PyErr_Occurred()) SWIG_fail;
23985 }
23986 {
23987 resultobj = wxPyMake_wxObject(result, (bool)0);
23988 }
23989 return resultobj;
23990 fail:
23991 return NULL;
23992 }
23993
23994
23995 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23996 PyObject *resultobj = 0;
23997 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23998 size_t arg2 ;
23999 wxToolBarToolBase *result = 0 ;
24000 void *argp1 = 0 ;
24001 int res1 = 0 ;
24002 size_t val2 ;
24003 int ecode2 = 0 ;
24004 PyObject * obj0 = 0 ;
24005 PyObject * obj1 = 0 ;
24006 char * kwnames[] = {
24007 (char *) "self",(char *) "pos", NULL
24008 };
24009
24010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24012 if (!SWIG_IsOK(res1)) {
24013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24014 }
24015 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24016 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24017 if (!SWIG_IsOK(ecode2)) {
24018 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24019 }
24020 arg2 = static_cast< size_t >(val2);
24021 {
24022 PyThreadState* __tstate = wxPyBeginAllowThreads();
24023 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24024 wxPyEndAllowThreads(__tstate);
24025 if (PyErr_Occurred()) SWIG_fail;
24026 }
24027 {
24028 resultobj = wxPyMake_wxObject(result, (bool)0);
24029 }
24030 return resultobj;
24031 fail:
24032 return NULL;
24033 }
24034
24035
24036 SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24037 PyObject *resultobj = 0;
24038 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24039 int arg2 ;
24040 wxToolBarToolBase *result = 0 ;
24041 void *argp1 = 0 ;
24042 int res1 = 0 ;
24043 int val2 ;
24044 int ecode2 = 0 ;
24045 PyObject * obj0 = 0 ;
24046 PyObject * obj1 = 0 ;
24047 char * kwnames[] = {
24048 (char *) "self",(char *) "id", NULL
24049 };
24050
24051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24053 if (!SWIG_IsOK(res1)) {
24054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24055 }
24056 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24057 ecode2 = SWIG_AsVal_int(obj1, &val2);
24058 if (!SWIG_IsOK(ecode2)) {
24059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24060 }
24061 arg2 = static_cast< int >(val2);
24062 {
24063 PyThreadState* __tstate = wxPyBeginAllowThreads();
24064 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24065 wxPyEndAllowThreads(__tstate);
24066 if (PyErr_Occurred()) SWIG_fail;
24067 }
24068 {
24069 resultobj = wxPyMake_wxObject(result, (bool)0);
24070 }
24071 return resultobj;
24072 fail:
24073 return NULL;
24074 }
24075
24076
24077 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24078 PyObject *resultobj = 0;
24079 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24080 size_t arg2 ;
24081 bool result;
24082 void *argp1 = 0 ;
24083 int res1 = 0 ;
24084 size_t val2 ;
24085 int ecode2 = 0 ;
24086 PyObject * obj0 = 0 ;
24087 PyObject * obj1 = 0 ;
24088 char * kwnames[] = {
24089 (char *) "self",(char *) "pos", NULL
24090 };
24091
24092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24094 if (!SWIG_IsOK(res1)) {
24095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24096 }
24097 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24098 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24099 if (!SWIG_IsOK(ecode2)) {
24100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24101 }
24102 arg2 = static_cast< size_t >(val2);
24103 {
24104 PyThreadState* __tstate = wxPyBeginAllowThreads();
24105 result = (bool)(arg1)->DeleteToolByPos(arg2);
24106 wxPyEndAllowThreads(__tstate);
24107 if (PyErr_Occurred()) SWIG_fail;
24108 }
24109 {
24110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24111 }
24112 return resultobj;
24113 fail:
24114 return NULL;
24115 }
24116
24117
24118 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24119 PyObject *resultobj = 0;
24120 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24121 int arg2 ;
24122 bool result;
24123 void *argp1 = 0 ;
24124 int res1 = 0 ;
24125 int val2 ;
24126 int ecode2 = 0 ;
24127 PyObject * obj0 = 0 ;
24128 PyObject * obj1 = 0 ;
24129 char * kwnames[] = {
24130 (char *) "self",(char *) "id", NULL
24131 };
24132
24133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24135 if (!SWIG_IsOK(res1)) {
24136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24137 }
24138 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24139 ecode2 = SWIG_AsVal_int(obj1, &val2);
24140 if (!SWIG_IsOK(ecode2)) {
24141 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24142 }
24143 arg2 = static_cast< int >(val2);
24144 {
24145 PyThreadState* __tstate = wxPyBeginAllowThreads();
24146 result = (bool)(arg1)->DeleteTool(arg2);
24147 wxPyEndAllowThreads(__tstate);
24148 if (PyErr_Occurred()) SWIG_fail;
24149 }
24150 {
24151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24152 }
24153 return resultobj;
24154 fail:
24155 return NULL;
24156 }
24157
24158
24159 SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24160 PyObject *resultobj = 0;
24161 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24162 void *argp1 = 0 ;
24163 int res1 = 0 ;
24164 PyObject *swig_obj[1] ;
24165
24166 if (!args) SWIG_fail;
24167 swig_obj[0] = args;
24168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24169 if (!SWIG_IsOK(res1)) {
24170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24171 }
24172 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24173 {
24174 PyThreadState* __tstate = wxPyBeginAllowThreads();
24175 (arg1)->ClearTools();
24176 wxPyEndAllowThreads(__tstate);
24177 if (PyErr_Occurred()) SWIG_fail;
24178 }
24179 resultobj = SWIG_Py_Void();
24180 return resultobj;
24181 fail:
24182 return NULL;
24183 }
24184
24185
24186 SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24187 PyObject *resultobj = 0;
24188 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24189 bool result;
24190 void *argp1 = 0 ;
24191 int res1 = 0 ;
24192 PyObject *swig_obj[1] ;
24193
24194 if (!args) SWIG_fail;
24195 swig_obj[0] = args;
24196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24197 if (!SWIG_IsOK(res1)) {
24198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24199 }
24200 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24201 {
24202 PyThreadState* __tstate = wxPyBeginAllowThreads();
24203 result = (bool)(arg1)->Realize();
24204 wxPyEndAllowThreads(__tstate);
24205 if (PyErr_Occurred()) SWIG_fail;
24206 }
24207 {
24208 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24209 }
24210 return resultobj;
24211 fail:
24212 return NULL;
24213 }
24214
24215
24216 SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24217 PyObject *resultobj = 0;
24218 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24219 int arg2 ;
24220 bool arg3 ;
24221 void *argp1 = 0 ;
24222 int res1 = 0 ;
24223 int val2 ;
24224 int ecode2 = 0 ;
24225 bool val3 ;
24226 int ecode3 = 0 ;
24227 PyObject * obj0 = 0 ;
24228 PyObject * obj1 = 0 ;
24229 PyObject * obj2 = 0 ;
24230 char * kwnames[] = {
24231 (char *) "self",(char *) "id",(char *) "enable", NULL
24232 };
24233
24234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24236 if (!SWIG_IsOK(res1)) {
24237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24238 }
24239 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24240 ecode2 = SWIG_AsVal_int(obj1, &val2);
24241 if (!SWIG_IsOK(ecode2)) {
24242 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24243 }
24244 arg2 = static_cast< int >(val2);
24245 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24246 if (!SWIG_IsOK(ecode3)) {
24247 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24248 }
24249 arg3 = static_cast< bool >(val3);
24250 {
24251 PyThreadState* __tstate = wxPyBeginAllowThreads();
24252 (arg1)->EnableTool(arg2,arg3);
24253 wxPyEndAllowThreads(__tstate);
24254 if (PyErr_Occurred()) SWIG_fail;
24255 }
24256 resultobj = SWIG_Py_Void();
24257 return resultobj;
24258 fail:
24259 return NULL;
24260 }
24261
24262
24263 SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24264 PyObject *resultobj = 0;
24265 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24266 int arg2 ;
24267 bool arg3 ;
24268 void *argp1 = 0 ;
24269 int res1 = 0 ;
24270 int val2 ;
24271 int ecode2 = 0 ;
24272 bool val3 ;
24273 int ecode3 = 0 ;
24274 PyObject * obj0 = 0 ;
24275 PyObject * obj1 = 0 ;
24276 PyObject * obj2 = 0 ;
24277 char * kwnames[] = {
24278 (char *) "self",(char *) "id",(char *) "toggle", NULL
24279 };
24280
24281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24283 if (!SWIG_IsOK(res1)) {
24284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24285 }
24286 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24287 ecode2 = SWIG_AsVal_int(obj1, &val2);
24288 if (!SWIG_IsOK(ecode2)) {
24289 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24290 }
24291 arg2 = static_cast< int >(val2);
24292 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24293 if (!SWIG_IsOK(ecode3)) {
24294 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24295 }
24296 arg3 = static_cast< bool >(val3);
24297 {
24298 PyThreadState* __tstate = wxPyBeginAllowThreads();
24299 (arg1)->ToggleTool(arg2,arg3);
24300 wxPyEndAllowThreads(__tstate);
24301 if (PyErr_Occurred()) SWIG_fail;
24302 }
24303 resultobj = SWIG_Py_Void();
24304 return resultobj;
24305 fail:
24306 return NULL;
24307 }
24308
24309
24310 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24311 PyObject *resultobj = 0;
24312 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24313 int arg2 ;
24314 bool arg3 ;
24315 void *argp1 = 0 ;
24316 int res1 = 0 ;
24317 int val2 ;
24318 int ecode2 = 0 ;
24319 bool val3 ;
24320 int ecode3 = 0 ;
24321 PyObject * obj0 = 0 ;
24322 PyObject * obj1 = 0 ;
24323 PyObject * obj2 = 0 ;
24324 char * kwnames[] = {
24325 (char *) "self",(char *) "id",(char *) "toggle", NULL
24326 };
24327
24328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24330 if (!SWIG_IsOK(res1)) {
24331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24332 }
24333 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24334 ecode2 = SWIG_AsVal_int(obj1, &val2);
24335 if (!SWIG_IsOK(ecode2)) {
24336 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24337 }
24338 arg2 = static_cast< int >(val2);
24339 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24340 if (!SWIG_IsOK(ecode3)) {
24341 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24342 }
24343 arg3 = static_cast< bool >(val3);
24344 {
24345 PyThreadState* __tstate = wxPyBeginAllowThreads();
24346 (arg1)->SetToggle(arg2,arg3);
24347 wxPyEndAllowThreads(__tstate);
24348 if (PyErr_Occurred()) SWIG_fail;
24349 }
24350 resultobj = SWIG_Py_Void();
24351 return resultobj;
24352 fail:
24353 return NULL;
24354 }
24355
24356
24357 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24358 PyObject *resultobj = 0;
24359 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24360 int arg2 ;
24361 PyObject *result = 0 ;
24362 void *argp1 = 0 ;
24363 int res1 = 0 ;
24364 int val2 ;
24365 int ecode2 = 0 ;
24366 PyObject * obj0 = 0 ;
24367 PyObject * obj1 = 0 ;
24368 char * kwnames[] = {
24369 (char *) "self",(char *) "id", NULL
24370 };
24371
24372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24374 if (!SWIG_IsOK(res1)) {
24375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24376 }
24377 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24378 ecode2 = SWIG_AsVal_int(obj1, &val2);
24379 if (!SWIG_IsOK(ecode2)) {
24380 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24381 }
24382 arg2 = static_cast< int >(val2);
24383 {
24384 PyThreadState* __tstate = wxPyBeginAllowThreads();
24385 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24386 wxPyEndAllowThreads(__tstate);
24387 if (PyErr_Occurred()) SWIG_fail;
24388 }
24389 resultobj = result;
24390 return resultobj;
24391 fail:
24392 return NULL;
24393 }
24394
24395
24396 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24397 PyObject *resultobj = 0;
24398 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24399 int arg2 ;
24400 PyObject *arg3 = (PyObject *) 0 ;
24401 void *argp1 = 0 ;
24402 int res1 = 0 ;
24403 int val2 ;
24404 int ecode2 = 0 ;
24405 PyObject * obj0 = 0 ;
24406 PyObject * obj1 = 0 ;
24407 PyObject * obj2 = 0 ;
24408 char * kwnames[] = {
24409 (char *) "self",(char *) "id",(char *) "clientData", NULL
24410 };
24411
24412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24414 if (!SWIG_IsOK(res1)) {
24415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24416 }
24417 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24418 ecode2 = SWIG_AsVal_int(obj1, &val2);
24419 if (!SWIG_IsOK(ecode2)) {
24420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24421 }
24422 arg2 = static_cast< int >(val2);
24423 arg3 = obj2;
24424 {
24425 PyThreadState* __tstate = wxPyBeginAllowThreads();
24426 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24427 wxPyEndAllowThreads(__tstate);
24428 if (PyErr_Occurred()) SWIG_fail;
24429 }
24430 resultobj = SWIG_Py_Void();
24431 return resultobj;
24432 fail:
24433 return NULL;
24434 }
24435
24436
24437 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24438 PyObject *resultobj = 0;
24439 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24440 int arg2 ;
24441 int result;
24442 void *argp1 = 0 ;
24443 int res1 = 0 ;
24444 int val2 ;
24445 int ecode2 = 0 ;
24446 PyObject * obj0 = 0 ;
24447 PyObject * obj1 = 0 ;
24448 char * kwnames[] = {
24449 (char *) "self",(char *) "id", NULL
24450 };
24451
24452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24454 if (!SWIG_IsOK(res1)) {
24455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24456 }
24457 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24458 ecode2 = SWIG_AsVal_int(obj1, &val2);
24459 if (!SWIG_IsOK(ecode2)) {
24460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24461 }
24462 arg2 = static_cast< int >(val2);
24463 {
24464 PyThreadState* __tstate = wxPyBeginAllowThreads();
24465 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24466 wxPyEndAllowThreads(__tstate);
24467 if (PyErr_Occurred()) SWIG_fail;
24468 }
24469 resultobj = SWIG_From_int(static_cast< int >(result));
24470 return resultobj;
24471 fail:
24472 return NULL;
24473 }
24474
24475
24476 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24477 PyObject *resultobj = 0;
24478 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24479 int arg2 ;
24480 bool result;
24481 void *argp1 = 0 ;
24482 int res1 = 0 ;
24483 int val2 ;
24484 int ecode2 = 0 ;
24485 PyObject * obj0 = 0 ;
24486 PyObject * obj1 = 0 ;
24487 char * kwnames[] = {
24488 (char *) "self",(char *) "id", NULL
24489 };
24490
24491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24493 if (!SWIG_IsOK(res1)) {
24494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24495 }
24496 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24497 ecode2 = SWIG_AsVal_int(obj1, &val2);
24498 if (!SWIG_IsOK(ecode2)) {
24499 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24500 }
24501 arg2 = static_cast< int >(val2);
24502 {
24503 PyThreadState* __tstate = wxPyBeginAllowThreads();
24504 result = (bool)(arg1)->GetToolState(arg2);
24505 wxPyEndAllowThreads(__tstate);
24506 if (PyErr_Occurred()) SWIG_fail;
24507 }
24508 {
24509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24510 }
24511 return resultobj;
24512 fail:
24513 return NULL;
24514 }
24515
24516
24517 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24518 PyObject *resultobj = 0;
24519 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24520 int arg2 ;
24521 bool result;
24522 void *argp1 = 0 ;
24523 int res1 = 0 ;
24524 int val2 ;
24525 int ecode2 = 0 ;
24526 PyObject * obj0 = 0 ;
24527 PyObject * obj1 = 0 ;
24528 char * kwnames[] = {
24529 (char *) "self",(char *) "id", NULL
24530 };
24531
24532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24534 if (!SWIG_IsOK(res1)) {
24535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24536 }
24537 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24538 ecode2 = SWIG_AsVal_int(obj1, &val2);
24539 if (!SWIG_IsOK(ecode2)) {
24540 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24541 }
24542 arg2 = static_cast< int >(val2);
24543 {
24544 PyThreadState* __tstate = wxPyBeginAllowThreads();
24545 result = (bool)(arg1)->GetToolEnabled(arg2);
24546 wxPyEndAllowThreads(__tstate);
24547 if (PyErr_Occurred()) SWIG_fail;
24548 }
24549 {
24550 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24551 }
24552 return resultobj;
24553 fail:
24554 return NULL;
24555 }
24556
24557
24558 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24559 PyObject *resultobj = 0;
24560 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24561 int arg2 ;
24562 wxString *arg3 = 0 ;
24563 void *argp1 = 0 ;
24564 int res1 = 0 ;
24565 int val2 ;
24566 int ecode2 = 0 ;
24567 bool temp3 = false ;
24568 PyObject * obj0 = 0 ;
24569 PyObject * obj1 = 0 ;
24570 PyObject * obj2 = 0 ;
24571 char * kwnames[] = {
24572 (char *) "self",(char *) "id",(char *) "helpString", NULL
24573 };
24574
24575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24577 if (!SWIG_IsOK(res1)) {
24578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24579 }
24580 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24581 ecode2 = SWIG_AsVal_int(obj1, &val2);
24582 if (!SWIG_IsOK(ecode2)) {
24583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24584 }
24585 arg2 = static_cast< int >(val2);
24586 {
24587 arg3 = wxString_in_helper(obj2);
24588 if (arg3 == NULL) SWIG_fail;
24589 temp3 = true;
24590 }
24591 {
24592 PyThreadState* __tstate = wxPyBeginAllowThreads();
24593 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24594 wxPyEndAllowThreads(__tstate);
24595 if (PyErr_Occurred()) SWIG_fail;
24596 }
24597 resultobj = SWIG_Py_Void();
24598 {
24599 if (temp3)
24600 delete arg3;
24601 }
24602 return resultobj;
24603 fail:
24604 {
24605 if (temp3)
24606 delete arg3;
24607 }
24608 return NULL;
24609 }
24610
24611
24612 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24613 PyObject *resultobj = 0;
24614 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24615 int arg2 ;
24616 wxString result;
24617 void *argp1 = 0 ;
24618 int res1 = 0 ;
24619 int val2 ;
24620 int ecode2 = 0 ;
24621 PyObject * obj0 = 0 ;
24622 PyObject * obj1 = 0 ;
24623 char * kwnames[] = {
24624 (char *) "self",(char *) "id", NULL
24625 };
24626
24627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24629 if (!SWIG_IsOK(res1)) {
24630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24631 }
24632 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24633 ecode2 = SWIG_AsVal_int(obj1, &val2);
24634 if (!SWIG_IsOK(ecode2)) {
24635 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24636 }
24637 arg2 = static_cast< int >(val2);
24638 {
24639 PyThreadState* __tstate = wxPyBeginAllowThreads();
24640 result = (arg1)->GetToolShortHelp(arg2);
24641 wxPyEndAllowThreads(__tstate);
24642 if (PyErr_Occurred()) SWIG_fail;
24643 }
24644 {
24645 #if wxUSE_UNICODE
24646 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24647 #else
24648 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24649 #endif
24650 }
24651 return resultobj;
24652 fail:
24653 return NULL;
24654 }
24655
24656
24657 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24658 PyObject *resultobj = 0;
24659 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24660 int arg2 ;
24661 wxString *arg3 = 0 ;
24662 void *argp1 = 0 ;
24663 int res1 = 0 ;
24664 int val2 ;
24665 int ecode2 = 0 ;
24666 bool temp3 = false ;
24667 PyObject * obj0 = 0 ;
24668 PyObject * obj1 = 0 ;
24669 PyObject * obj2 = 0 ;
24670 char * kwnames[] = {
24671 (char *) "self",(char *) "id",(char *) "helpString", NULL
24672 };
24673
24674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24676 if (!SWIG_IsOK(res1)) {
24677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24678 }
24679 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24680 ecode2 = SWIG_AsVal_int(obj1, &val2);
24681 if (!SWIG_IsOK(ecode2)) {
24682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24683 }
24684 arg2 = static_cast< int >(val2);
24685 {
24686 arg3 = wxString_in_helper(obj2);
24687 if (arg3 == NULL) SWIG_fail;
24688 temp3 = true;
24689 }
24690 {
24691 PyThreadState* __tstate = wxPyBeginAllowThreads();
24692 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24693 wxPyEndAllowThreads(__tstate);
24694 if (PyErr_Occurred()) SWIG_fail;
24695 }
24696 resultobj = SWIG_Py_Void();
24697 {
24698 if (temp3)
24699 delete arg3;
24700 }
24701 return resultobj;
24702 fail:
24703 {
24704 if (temp3)
24705 delete arg3;
24706 }
24707 return NULL;
24708 }
24709
24710
24711 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24712 PyObject *resultobj = 0;
24713 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24714 int arg2 ;
24715 wxString result;
24716 void *argp1 = 0 ;
24717 int res1 = 0 ;
24718 int val2 ;
24719 int ecode2 = 0 ;
24720 PyObject * obj0 = 0 ;
24721 PyObject * obj1 = 0 ;
24722 char * kwnames[] = {
24723 (char *) "self",(char *) "id", NULL
24724 };
24725
24726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24728 if (!SWIG_IsOK(res1)) {
24729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24730 }
24731 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24732 ecode2 = SWIG_AsVal_int(obj1, &val2);
24733 if (!SWIG_IsOK(ecode2)) {
24734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24735 }
24736 arg2 = static_cast< int >(val2);
24737 {
24738 PyThreadState* __tstate = wxPyBeginAllowThreads();
24739 result = (arg1)->GetToolLongHelp(arg2);
24740 wxPyEndAllowThreads(__tstate);
24741 if (PyErr_Occurred()) SWIG_fail;
24742 }
24743 {
24744 #if wxUSE_UNICODE
24745 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24746 #else
24747 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24748 #endif
24749 }
24750 return resultobj;
24751 fail:
24752 return NULL;
24753 }
24754
24755
24756 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24757 PyObject *resultobj = 0;
24758 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24759 int arg2 ;
24760 int arg3 ;
24761 void *argp1 = 0 ;
24762 int res1 = 0 ;
24763 int val2 ;
24764 int ecode2 = 0 ;
24765 int val3 ;
24766 int ecode3 = 0 ;
24767 PyObject * obj0 = 0 ;
24768 PyObject * obj1 = 0 ;
24769 PyObject * obj2 = 0 ;
24770 char * kwnames[] = {
24771 (char *) "self",(char *) "x",(char *) "y", NULL
24772 };
24773
24774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24776 if (!SWIG_IsOK(res1)) {
24777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24778 }
24779 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24780 ecode2 = SWIG_AsVal_int(obj1, &val2);
24781 if (!SWIG_IsOK(ecode2)) {
24782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
24783 }
24784 arg2 = static_cast< int >(val2);
24785 ecode3 = SWIG_AsVal_int(obj2, &val3);
24786 if (!SWIG_IsOK(ecode3)) {
24787 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
24788 }
24789 arg3 = static_cast< int >(val3);
24790 {
24791 PyThreadState* __tstate = wxPyBeginAllowThreads();
24792 (arg1)->SetMargins(arg2,arg3);
24793 wxPyEndAllowThreads(__tstate);
24794 if (PyErr_Occurred()) SWIG_fail;
24795 }
24796 resultobj = SWIG_Py_Void();
24797 return resultobj;
24798 fail:
24799 return NULL;
24800 }
24801
24802
24803 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24804 PyObject *resultobj = 0;
24805 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24806 wxSize *arg2 = 0 ;
24807 void *argp1 = 0 ;
24808 int res1 = 0 ;
24809 wxSize temp2 ;
24810 PyObject * obj0 = 0 ;
24811 PyObject * obj1 = 0 ;
24812 char * kwnames[] = {
24813 (char *) "self",(char *) "size", NULL
24814 };
24815
24816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
24817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24818 if (!SWIG_IsOK(res1)) {
24819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24820 }
24821 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24822 {
24823 arg2 = &temp2;
24824 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24825 }
24826 {
24827 PyThreadState* __tstate = wxPyBeginAllowThreads();
24828 (arg1)->SetMargins((wxSize const &)*arg2);
24829 wxPyEndAllowThreads(__tstate);
24830 if (PyErr_Occurred()) SWIG_fail;
24831 }
24832 resultobj = SWIG_Py_Void();
24833 return resultobj;
24834 fail:
24835 return NULL;
24836 }
24837
24838
24839 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24840 PyObject *resultobj = 0;
24841 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24842 int arg2 ;
24843 void *argp1 = 0 ;
24844 int res1 = 0 ;
24845 int val2 ;
24846 int ecode2 = 0 ;
24847 PyObject * obj0 = 0 ;
24848 PyObject * obj1 = 0 ;
24849 char * kwnames[] = {
24850 (char *) "self",(char *) "packing", NULL
24851 };
24852
24853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
24854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24855 if (!SWIG_IsOK(res1)) {
24856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24857 }
24858 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24859 ecode2 = SWIG_AsVal_int(obj1, &val2);
24860 if (!SWIG_IsOK(ecode2)) {
24861 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
24862 }
24863 arg2 = static_cast< int >(val2);
24864 {
24865 PyThreadState* __tstate = wxPyBeginAllowThreads();
24866 (arg1)->SetToolPacking(arg2);
24867 wxPyEndAllowThreads(__tstate);
24868 if (PyErr_Occurred()) SWIG_fail;
24869 }
24870 resultobj = SWIG_Py_Void();
24871 return resultobj;
24872 fail:
24873 return NULL;
24874 }
24875
24876
24877 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24878 PyObject *resultobj = 0;
24879 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24880 int arg2 ;
24881 void *argp1 = 0 ;
24882 int res1 = 0 ;
24883 int val2 ;
24884 int ecode2 = 0 ;
24885 PyObject * obj0 = 0 ;
24886 PyObject * obj1 = 0 ;
24887 char * kwnames[] = {
24888 (char *) "self",(char *) "separation", NULL
24889 };
24890
24891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
24892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24893 if (!SWIG_IsOK(res1)) {
24894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24895 }
24896 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24897 ecode2 = SWIG_AsVal_int(obj1, &val2);
24898 if (!SWIG_IsOK(ecode2)) {
24899 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
24900 }
24901 arg2 = static_cast< int >(val2);
24902 {
24903 PyThreadState* __tstate = wxPyBeginAllowThreads();
24904 (arg1)->SetToolSeparation(arg2);
24905 wxPyEndAllowThreads(__tstate);
24906 if (PyErr_Occurred()) SWIG_fail;
24907 }
24908 resultobj = SWIG_Py_Void();
24909 return resultobj;
24910 fail:
24911 return NULL;
24912 }
24913
24914
24915 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24916 PyObject *resultobj = 0;
24917 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24918 wxSize result;
24919 void *argp1 = 0 ;
24920 int res1 = 0 ;
24921 PyObject *swig_obj[1] ;
24922
24923 if (!args) SWIG_fail;
24924 swig_obj[0] = args;
24925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24926 if (!SWIG_IsOK(res1)) {
24927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24928 }
24929 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24930 {
24931 PyThreadState* __tstate = wxPyBeginAllowThreads();
24932 result = (arg1)->GetToolMargins();
24933 wxPyEndAllowThreads(__tstate);
24934 if (PyErr_Occurred()) SWIG_fail;
24935 }
24936 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24937 return resultobj;
24938 fail:
24939 return NULL;
24940 }
24941
24942
24943 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24944 PyObject *resultobj = 0;
24945 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24946 wxSize result;
24947 void *argp1 = 0 ;
24948 int res1 = 0 ;
24949 PyObject *swig_obj[1] ;
24950
24951 if (!args) SWIG_fail;
24952 swig_obj[0] = args;
24953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24954 if (!SWIG_IsOK(res1)) {
24955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24956 }
24957 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24958 {
24959 PyThreadState* __tstate = wxPyBeginAllowThreads();
24960 result = (arg1)->GetMargins();
24961 wxPyEndAllowThreads(__tstate);
24962 if (PyErr_Occurred()) SWIG_fail;
24963 }
24964 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24965 return resultobj;
24966 fail:
24967 return NULL;
24968 }
24969
24970
24971 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24972 PyObject *resultobj = 0;
24973 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24974 int result;
24975 void *argp1 = 0 ;
24976 int res1 = 0 ;
24977 PyObject *swig_obj[1] ;
24978
24979 if (!args) SWIG_fail;
24980 swig_obj[0] = args;
24981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24982 if (!SWIG_IsOK(res1)) {
24983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24984 }
24985 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24986 {
24987 PyThreadState* __tstate = wxPyBeginAllowThreads();
24988 result = (int)(arg1)->GetToolPacking();
24989 wxPyEndAllowThreads(__tstate);
24990 if (PyErr_Occurred()) SWIG_fail;
24991 }
24992 resultobj = SWIG_From_int(static_cast< int >(result));
24993 return resultobj;
24994 fail:
24995 return NULL;
24996 }
24997
24998
24999 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25000 PyObject *resultobj = 0;
25001 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25002 int result;
25003 void *argp1 = 0 ;
25004 int res1 = 0 ;
25005 PyObject *swig_obj[1] ;
25006
25007 if (!args) SWIG_fail;
25008 swig_obj[0] = args;
25009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25010 if (!SWIG_IsOK(res1)) {
25011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25012 }
25013 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25014 {
25015 PyThreadState* __tstate = wxPyBeginAllowThreads();
25016 result = (int)(arg1)->GetToolSeparation();
25017 wxPyEndAllowThreads(__tstate);
25018 if (PyErr_Occurred()) SWIG_fail;
25019 }
25020 resultobj = SWIG_From_int(static_cast< int >(result));
25021 return resultobj;
25022 fail:
25023 return NULL;
25024 }
25025
25026
25027 SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25028 PyObject *resultobj = 0;
25029 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25030 int arg2 ;
25031 void *argp1 = 0 ;
25032 int res1 = 0 ;
25033 int val2 ;
25034 int ecode2 = 0 ;
25035 PyObject * obj0 = 0 ;
25036 PyObject * obj1 = 0 ;
25037 char * kwnames[] = {
25038 (char *) "self",(char *) "nRows", NULL
25039 };
25040
25041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25043 if (!SWIG_IsOK(res1)) {
25044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25045 }
25046 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25047 ecode2 = SWIG_AsVal_int(obj1, &val2);
25048 if (!SWIG_IsOK(ecode2)) {
25049 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25050 }
25051 arg2 = static_cast< int >(val2);
25052 {
25053 PyThreadState* __tstate = wxPyBeginAllowThreads();
25054 (arg1)->SetRows(arg2);
25055 wxPyEndAllowThreads(__tstate);
25056 if (PyErr_Occurred()) SWIG_fail;
25057 }
25058 resultobj = SWIG_Py_Void();
25059 return resultobj;
25060 fail:
25061 return NULL;
25062 }
25063
25064
25065 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25066 PyObject *resultobj = 0;
25067 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25068 int arg2 ;
25069 int arg3 ;
25070 void *argp1 = 0 ;
25071 int res1 = 0 ;
25072 int val2 ;
25073 int ecode2 = 0 ;
25074 int val3 ;
25075 int ecode3 = 0 ;
25076 PyObject * obj0 = 0 ;
25077 PyObject * obj1 = 0 ;
25078 PyObject * obj2 = 0 ;
25079 char * kwnames[] = {
25080 (char *) "self",(char *) "rows",(char *) "cols", NULL
25081 };
25082
25083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25085 if (!SWIG_IsOK(res1)) {
25086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25087 }
25088 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25089 ecode2 = SWIG_AsVal_int(obj1, &val2);
25090 if (!SWIG_IsOK(ecode2)) {
25091 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25092 }
25093 arg2 = static_cast< int >(val2);
25094 ecode3 = SWIG_AsVal_int(obj2, &val3);
25095 if (!SWIG_IsOK(ecode3)) {
25096 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25097 }
25098 arg3 = static_cast< int >(val3);
25099 {
25100 PyThreadState* __tstate = wxPyBeginAllowThreads();
25101 (arg1)->SetMaxRowsCols(arg2,arg3);
25102 wxPyEndAllowThreads(__tstate);
25103 if (PyErr_Occurred()) SWIG_fail;
25104 }
25105 resultobj = SWIG_Py_Void();
25106 return resultobj;
25107 fail:
25108 return NULL;
25109 }
25110
25111
25112 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25113 PyObject *resultobj = 0;
25114 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25115 int result;
25116 void *argp1 = 0 ;
25117 int res1 = 0 ;
25118 PyObject *swig_obj[1] ;
25119
25120 if (!args) SWIG_fail;
25121 swig_obj[0] = args;
25122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25123 if (!SWIG_IsOK(res1)) {
25124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25125 }
25126 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25127 {
25128 PyThreadState* __tstate = wxPyBeginAllowThreads();
25129 result = (int)(arg1)->GetMaxRows();
25130 wxPyEndAllowThreads(__tstate);
25131 if (PyErr_Occurred()) SWIG_fail;
25132 }
25133 resultobj = SWIG_From_int(static_cast< int >(result));
25134 return resultobj;
25135 fail:
25136 return NULL;
25137 }
25138
25139
25140 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25141 PyObject *resultobj = 0;
25142 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25143 int result;
25144 void *argp1 = 0 ;
25145 int res1 = 0 ;
25146 PyObject *swig_obj[1] ;
25147
25148 if (!args) SWIG_fail;
25149 swig_obj[0] = args;
25150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25151 if (!SWIG_IsOK(res1)) {
25152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25153 }
25154 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25155 {
25156 PyThreadState* __tstate = wxPyBeginAllowThreads();
25157 result = (int)(arg1)->GetMaxCols();
25158 wxPyEndAllowThreads(__tstate);
25159 if (PyErr_Occurred()) SWIG_fail;
25160 }
25161 resultobj = SWIG_From_int(static_cast< int >(result));
25162 return resultobj;
25163 fail:
25164 return NULL;
25165 }
25166
25167
25168 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25169 PyObject *resultobj = 0;
25170 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25171 wxSize *arg2 = 0 ;
25172 void *argp1 = 0 ;
25173 int res1 = 0 ;
25174 wxSize temp2 ;
25175 PyObject * obj0 = 0 ;
25176 PyObject * obj1 = 0 ;
25177 char * kwnames[] = {
25178 (char *) "self",(char *) "size", NULL
25179 };
25180
25181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25183 if (!SWIG_IsOK(res1)) {
25184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25185 }
25186 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25187 {
25188 arg2 = &temp2;
25189 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25190 }
25191 {
25192 PyThreadState* __tstate = wxPyBeginAllowThreads();
25193 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25194 wxPyEndAllowThreads(__tstate);
25195 if (PyErr_Occurred()) SWIG_fail;
25196 }
25197 resultobj = SWIG_Py_Void();
25198 return resultobj;
25199 fail:
25200 return NULL;
25201 }
25202
25203
25204 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25205 PyObject *resultobj = 0;
25206 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25207 wxSize result;
25208 void *argp1 = 0 ;
25209 int res1 = 0 ;
25210 PyObject *swig_obj[1] ;
25211
25212 if (!args) SWIG_fail;
25213 swig_obj[0] = args;
25214 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25215 if (!SWIG_IsOK(res1)) {
25216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25217 }
25218 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25219 {
25220 PyThreadState* __tstate = wxPyBeginAllowThreads();
25221 result = (arg1)->GetToolBitmapSize();
25222 wxPyEndAllowThreads(__tstate);
25223 if (PyErr_Occurred()) SWIG_fail;
25224 }
25225 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25226 return resultobj;
25227 fail:
25228 return NULL;
25229 }
25230
25231
25232 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25233 PyObject *resultobj = 0;
25234 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25235 wxSize result;
25236 void *argp1 = 0 ;
25237 int res1 = 0 ;
25238 PyObject *swig_obj[1] ;
25239
25240 if (!args) SWIG_fail;
25241 swig_obj[0] = args;
25242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25243 if (!SWIG_IsOK(res1)) {
25244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25245 }
25246 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25247 {
25248 PyThreadState* __tstate = wxPyBeginAllowThreads();
25249 result = (arg1)->GetToolSize();
25250 wxPyEndAllowThreads(__tstate);
25251 if (PyErr_Occurred()) SWIG_fail;
25252 }
25253 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25254 return resultobj;
25255 fail:
25256 return NULL;
25257 }
25258
25259
25260 SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25261 PyObject *resultobj = 0;
25262 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25263 int arg2 ;
25264 int arg3 ;
25265 wxToolBarToolBase *result = 0 ;
25266 void *argp1 = 0 ;
25267 int res1 = 0 ;
25268 int val2 ;
25269 int ecode2 = 0 ;
25270 int val3 ;
25271 int ecode3 = 0 ;
25272 PyObject * obj0 = 0 ;
25273 PyObject * obj1 = 0 ;
25274 PyObject * obj2 = 0 ;
25275 char * kwnames[] = {
25276 (char *) "self",(char *) "x",(char *) "y", NULL
25277 };
25278
25279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25281 if (!SWIG_IsOK(res1)) {
25282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25283 }
25284 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25285 ecode2 = SWIG_AsVal_int(obj1, &val2);
25286 if (!SWIG_IsOK(ecode2)) {
25287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25288 }
25289 arg2 = static_cast< int >(val2);
25290 ecode3 = SWIG_AsVal_int(obj2, &val3);
25291 if (!SWIG_IsOK(ecode3)) {
25292 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25293 }
25294 arg3 = static_cast< int >(val3);
25295 {
25296 PyThreadState* __tstate = wxPyBeginAllowThreads();
25297 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25298 wxPyEndAllowThreads(__tstate);
25299 if (PyErr_Occurred()) SWIG_fail;
25300 }
25301 {
25302 resultobj = wxPyMake_wxObject(result, (bool)0);
25303 }
25304 return resultobj;
25305 fail:
25306 return NULL;
25307 }
25308
25309
25310 SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25311 PyObject *resultobj = 0;
25312 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25313 int arg2 ;
25314 wxToolBarToolBase *result = 0 ;
25315 void *argp1 = 0 ;
25316 int res1 = 0 ;
25317 int val2 ;
25318 int ecode2 = 0 ;
25319 PyObject * obj0 = 0 ;
25320 PyObject * obj1 = 0 ;
25321 char * kwnames[] = {
25322 (char *) "self",(char *) "toolid", NULL
25323 };
25324
25325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25327 if (!SWIG_IsOK(res1)) {
25328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25329 }
25330 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25331 ecode2 = SWIG_AsVal_int(obj1, &val2);
25332 if (!SWIG_IsOK(ecode2)) {
25333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25334 }
25335 arg2 = static_cast< int >(val2);
25336 {
25337 PyThreadState* __tstate = wxPyBeginAllowThreads();
25338 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25339 wxPyEndAllowThreads(__tstate);
25340 if (PyErr_Occurred()) SWIG_fail;
25341 }
25342 {
25343 resultobj = wxPyMake_wxObject(result, (bool)0);
25344 }
25345 return resultobj;
25346 fail:
25347 return NULL;
25348 }
25349
25350
25351 SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25352 PyObject *resultobj = 0;
25353 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25354 bool result;
25355 void *argp1 = 0 ;
25356 int res1 = 0 ;
25357 PyObject *swig_obj[1] ;
25358
25359 if (!args) SWIG_fail;
25360 swig_obj[0] = args;
25361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25362 if (!SWIG_IsOK(res1)) {
25363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25364 }
25365 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25366 {
25367 PyThreadState* __tstate = wxPyBeginAllowThreads();
25368 result = (bool)(arg1)->IsVertical();
25369 wxPyEndAllowThreads(__tstate);
25370 if (PyErr_Occurred()) SWIG_fail;
25371 }
25372 {
25373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25374 }
25375 return resultobj;
25376 fail:
25377 return NULL;
25378 }
25379
25380
25381 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25382 PyObject *resultobj = 0;
25383 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25384 size_t result;
25385 void *argp1 = 0 ;
25386 int res1 = 0 ;
25387 PyObject *swig_obj[1] ;
25388
25389 if (!args) SWIG_fail;
25390 swig_obj[0] = args;
25391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25392 if (!SWIG_IsOK(res1)) {
25393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25394 }
25395 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25396 {
25397 PyThreadState* __tstate = wxPyBeginAllowThreads();
25398 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25399 wxPyEndAllowThreads(__tstate);
25400 if (PyErr_Occurred()) SWIG_fail;
25401 }
25402 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25403 return resultobj;
25404 fail:
25405 return NULL;
25406 }
25407
25408
25409 SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25410 PyObject *obj;
25411 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25412 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25413 return SWIG_Py_Void();
25414 }
25415
25416 SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25417 PyObject *resultobj = 0;
25418 wxWindow *arg1 = (wxWindow *) 0 ;
25419 int arg2 = (int) -1 ;
25420 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25421 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25422 wxSize const &arg4_defvalue = wxDefaultSize ;
25423 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25424 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25425 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25426 wxString *arg6 = (wxString *) &arg6_defvalue ;
25427 wxToolBar *result = 0 ;
25428 void *argp1 = 0 ;
25429 int res1 = 0 ;
25430 int val2 ;
25431 int ecode2 = 0 ;
25432 wxPoint temp3 ;
25433 wxSize temp4 ;
25434 long val5 ;
25435 int ecode5 = 0 ;
25436 bool temp6 = false ;
25437 PyObject * obj0 = 0 ;
25438 PyObject * obj1 = 0 ;
25439 PyObject * obj2 = 0 ;
25440 PyObject * obj3 = 0 ;
25441 PyObject * obj4 = 0 ;
25442 PyObject * obj5 = 0 ;
25443 char * kwnames[] = {
25444 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25445 };
25446
25447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25449 if (!SWIG_IsOK(res1)) {
25450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25451 }
25452 arg1 = reinterpret_cast< wxWindow * >(argp1);
25453 if (obj1) {
25454 ecode2 = SWIG_AsVal_int(obj1, &val2);
25455 if (!SWIG_IsOK(ecode2)) {
25456 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25457 }
25458 arg2 = static_cast< int >(val2);
25459 }
25460 if (obj2) {
25461 {
25462 arg3 = &temp3;
25463 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25464 }
25465 }
25466 if (obj3) {
25467 {
25468 arg4 = &temp4;
25469 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25470 }
25471 }
25472 if (obj4) {
25473 ecode5 = SWIG_AsVal_long(obj4, &val5);
25474 if (!SWIG_IsOK(ecode5)) {
25475 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25476 }
25477 arg5 = static_cast< long >(val5);
25478 }
25479 if (obj5) {
25480 {
25481 arg6 = wxString_in_helper(obj5);
25482 if (arg6 == NULL) SWIG_fail;
25483 temp6 = true;
25484 }
25485 }
25486 {
25487 if (!wxPyCheckForApp()) SWIG_fail;
25488 PyThreadState* __tstate = wxPyBeginAllowThreads();
25489 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25490 wxPyEndAllowThreads(__tstate);
25491 if (PyErr_Occurred()) SWIG_fail;
25492 }
25493 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25494 {
25495 if (temp6)
25496 delete arg6;
25497 }
25498 return resultobj;
25499 fail:
25500 {
25501 if (temp6)
25502 delete arg6;
25503 }
25504 return NULL;
25505 }
25506
25507
25508 SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25509 PyObject *resultobj = 0;
25510 wxToolBar *result = 0 ;
25511
25512 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25513 {
25514 if (!wxPyCheckForApp()) SWIG_fail;
25515 PyThreadState* __tstate = wxPyBeginAllowThreads();
25516 result = (wxToolBar *)new wxToolBar();
25517 wxPyEndAllowThreads(__tstate);
25518 if (PyErr_Occurred()) SWIG_fail;
25519 }
25520 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25521 return resultobj;
25522 fail:
25523 return NULL;
25524 }
25525
25526
25527 SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25528 PyObject *resultobj = 0;
25529 wxToolBar *arg1 = (wxToolBar *) 0 ;
25530 wxWindow *arg2 = (wxWindow *) 0 ;
25531 int arg3 = (int) -1 ;
25532 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25533 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25534 wxSize const &arg5_defvalue = wxDefaultSize ;
25535 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25536 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25537 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25538 wxString *arg7 = (wxString *) &arg7_defvalue ;
25539 bool result;
25540 void *argp1 = 0 ;
25541 int res1 = 0 ;
25542 void *argp2 = 0 ;
25543 int res2 = 0 ;
25544 int val3 ;
25545 int ecode3 = 0 ;
25546 wxPoint temp4 ;
25547 wxSize temp5 ;
25548 long val6 ;
25549 int ecode6 = 0 ;
25550 bool temp7 = false ;
25551 PyObject * obj0 = 0 ;
25552 PyObject * obj1 = 0 ;
25553 PyObject * obj2 = 0 ;
25554 PyObject * obj3 = 0 ;
25555 PyObject * obj4 = 0 ;
25556 PyObject * obj5 = 0 ;
25557 PyObject * obj6 = 0 ;
25558 char * kwnames[] = {
25559 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25560 };
25561
25562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25564 if (!SWIG_IsOK(res1)) {
25565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25566 }
25567 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25568 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25569 if (!SWIG_IsOK(res2)) {
25570 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25571 }
25572 arg2 = reinterpret_cast< wxWindow * >(argp2);
25573 if (obj2) {
25574 ecode3 = SWIG_AsVal_int(obj2, &val3);
25575 if (!SWIG_IsOK(ecode3)) {
25576 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25577 }
25578 arg3 = static_cast< int >(val3);
25579 }
25580 if (obj3) {
25581 {
25582 arg4 = &temp4;
25583 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25584 }
25585 }
25586 if (obj4) {
25587 {
25588 arg5 = &temp5;
25589 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25590 }
25591 }
25592 if (obj5) {
25593 ecode6 = SWIG_AsVal_long(obj5, &val6);
25594 if (!SWIG_IsOK(ecode6)) {
25595 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25596 }
25597 arg6 = static_cast< long >(val6);
25598 }
25599 if (obj6) {
25600 {
25601 arg7 = wxString_in_helper(obj6);
25602 if (arg7 == NULL) SWIG_fail;
25603 temp7 = true;
25604 }
25605 }
25606 {
25607 PyThreadState* __tstate = wxPyBeginAllowThreads();
25608 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25609 wxPyEndAllowThreads(__tstate);
25610 if (PyErr_Occurred()) SWIG_fail;
25611 }
25612 {
25613 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25614 }
25615 {
25616 if (temp7)
25617 delete arg7;
25618 }
25619 return resultobj;
25620 fail:
25621 {
25622 if (temp7)
25623 delete arg7;
25624 }
25625 return NULL;
25626 }
25627
25628
25629 SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25630 PyObject *resultobj = 0;
25631 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25632 SwigValueWrapper<wxVisualAttributes > result;
25633 int val1 ;
25634 int ecode1 = 0 ;
25635 PyObject * obj0 = 0 ;
25636 char * kwnames[] = {
25637 (char *) "variant", NULL
25638 };
25639
25640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25641 if (obj0) {
25642 ecode1 = SWIG_AsVal_int(obj0, &val1);
25643 if (!SWIG_IsOK(ecode1)) {
25644 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25645 }
25646 arg1 = static_cast< wxWindowVariant >(val1);
25647 }
25648 {
25649 if (!wxPyCheckForApp()) SWIG_fail;
25650 PyThreadState* __tstate = wxPyBeginAllowThreads();
25651 result = wxToolBar::GetClassDefaultAttributes(arg1);
25652 wxPyEndAllowThreads(__tstate);
25653 if (PyErr_Occurred()) SWIG_fail;
25654 }
25655 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25656 return resultobj;
25657 fail:
25658 return NULL;
25659 }
25660
25661
25662 SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25663 PyObject *obj;
25664 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25665 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25666 return SWIG_Py_Void();
25667 }
25668
25669 SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25670 return SWIG_Python_InitShadowInstance(args);
25671 }
25672
25673 SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25674 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25675 return 1;
25676 }
25677
25678
25679 SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25680 PyObject *pyobj = 0;
25681
25682 {
25683 #if wxUSE_UNICODE
25684 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25685 #else
25686 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25687 #endif
25688 }
25689 return pyobj;
25690 }
25691
25692
25693 SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25694 PyObject *resultobj = 0;
25695 wxColour const &arg1_defvalue = wxNullColour ;
25696 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25697 wxColour const &arg2_defvalue = wxNullColour ;
25698 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25699 wxFont const &arg3_defvalue = wxNullFont ;
25700 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25701 wxListItemAttr *result = 0 ;
25702 wxColour temp1 ;
25703 wxColour temp2 ;
25704 void *argp3 = 0 ;
25705 int res3 = 0 ;
25706 PyObject * obj0 = 0 ;
25707 PyObject * obj1 = 0 ;
25708 PyObject * obj2 = 0 ;
25709 char * kwnames[] = {
25710 (char *) "colText",(char *) "colBack",(char *) "font", NULL
25711 };
25712
25713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25714 if (obj0) {
25715 {
25716 arg1 = &temp1;
25717 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
25718 }
25719 }
25720 if (obj1) {
25721 {
25722 arg2 = &temp2;
25723 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25724 }
25725 }
25726 if (obj2) {
25727 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
25728 if (!SWIG_IsOK(res3)) {
25729 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25730 }
25731 if (!argp3) {
25732 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25733 }
25734 arg3 = reinterpret_cast< wxFont * >(argp3);
25735 }
25736 {
25737 PyThreadState* __tstate = wxPyBeginAllowThreads();
25738 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
25739 wxPyEndAllowThreads(__tstate);
25740 if (PyErr_Occurred()) SWIG_fail;
25741 }
25742 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
25743 return resultobj;
25744 fail:
25745 return NULL;
25746 }
25747
25748
25749 SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25750 PyObject *resultobj = 0;
25751 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25752 void *argp1 = 0 ;
25753 int res1 = 0 ;
25754 PyObject *swig_obj[1] ;
25755
25756 if (!args) SWIG_fail;
25757 swig_obj[0] = args;
25758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
25759 if (!SWIG_IsOK(res1)) {
25760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25761 }
25762 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25763 {
25764 PyThreadState* __tstate = wxPyBeginAllowThreads();
25765 delete arg1;
25766
25767 wxPyEndAllowThreads(__tstate);
25768 if (PyErr_Occurred()) SWIG_fail;
25769 }
25770 resultobj = SWIG_Py_Void();
25771 return resultobj;
25772 fail:
25773 return NULL;
25774 }
25775
25776
25777 SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25778 PyObject *resultobj = 0;
25779 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25780 wxColour *arg2 = 0 ;
25781 void *argp1 = 0 ;
25782 int res1 = 0 ;
25783 wxColour temp2 ;
25784 PyObject * obj0 = 0 ;
25785 PyObject * obj1 = 0 ;
25786 char * kwnames[] = {
25787 (char *) "self",(char *) "colText", NULL
25788 };
25789
25790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
25791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25792 if (!SWIG_IsOK(res1)) {
25793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25794 }
25795 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25796 {
25797 arg2 = &temp2;
25798 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25799 }
25800 {
25801 PyThreadState* __tstate = wxPyBeginAllowThreads();
25802 (arg1)->SetTextColour((wxColour const &)*arg2);
25803 wxPyEndAllowThreads(__tstate);
25804 if (PyErr_Occurred()) SWIG_fail;
25805 }
25806 resultobj = SWIG_Py_Void();
25807 return resultobj;
25808 fail:
25809 return NULL;
25810 }
25811
25812
25813 SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25814 PyObject *resultobj = 0;
25815 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25816 wxColour *arg2 = 0 ;
25817 void *argp1 = 0 ;
25818 int res1 = 0 ;
25819 wxColour temp2 ;
25820 PyObject * obj0 = 0 ;
25821 PyObject * obj1 = 0 ;
25822 char * kwnames[] = {
25823 (char *) "self",(char *) "colBack", NULL
25824 };
25825
25826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
25827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25828 if (!SWIG_IsOK(res1)) {
25829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25830 }
25831 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25832 {
25833 arg2 = &temp2;
25834 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25835 }
25836 {
25837 PyThreadState* __tstate = wxPyBeginAllowThreads();
25838 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
25839 wxPyEndAllowThreads(__tstate);
25840 if (PyErr_Occurred()) SWIG_fail;
25841 }
25842 resultobj = SWIG_Py_Void();
25843 return resultobj;
25844 fail:
25845 return NULL;
25846 }
25847
25848
25849 SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25850 PyObject *resultobj = 0;
25851 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25852 wxFont *arg2 = 0 ;
25853 void *argp1 = 0 ;
25854 int res1 = 0 ;
25855 void *argp2 = 0 ;
25856 int res2 = 0 ;
25857 PyObject * obj0 = 0 ;
25858 PyObject * obj1 = 0 ;
25859 char * kwnames[] = {
25860 (char *) "self",(char *) "font", NULL
25861 };
25862
25863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25865 if (!SWIG_IsOK(res1)) {
25866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25867 }
25868 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25869 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25870 if (!SWIG_IsOK(res2)) {
25871 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25872 }
25873 if (!argp2) {
25874 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25875 }
25876 arg2 = reinterpret_cast< wxFont * >(argp2);
25877 {
25878 PyThreadState* __tstate = wxPyBeginAllowThreads();
25879 (arg1)->SetFont((wxFont const &)*arg2);
25880 wxPyEndAllowThreads(__tstate);
25881 if (PyErr_Occurred()) SWIG_fail;
25882 }
25883 resultobj = SWIG_Py_Void();
25884 return resultobj;
25885 fail:
25886 return NULL;
25887 }
25888
25889
25890 SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25891 PyObject *resultobj = 0;
25892 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25893 bool result;
25894 void *argp1 = 0 ;
25895 int res1 = 0 ;
25896 PyObject *swig_obj[1] ;
25897
25898 if (!args) SWIG_fail;
25899 swig_obj[0] = args;
25900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25901 if (!SWIG_IsOK(res1)) {
25902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25903 }
25904 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25905 {
25906 PyThreadState* __tstate = wxPyBeginAllowThreads();
25907 result = (bool)(arg1)->HasTextColour();
25908 wxPyEndAllowThreads(__tstate);
25909 if (PyErr_Occurred()) SWIG_fail;
25910 }
25911 {
25912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25913 }
25914 return resultobj;
25915 fail:
25916 return NULL;
25917 }
25918
25919
25920 SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25921 PyObject *resultobj = 0;
25922 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25923 bool result;
25924 void *argp1 = 0 ;
25925 int res1 = 0 ;
25926 PyObject *swig_obj[1] ;
25927
25928 if (!args) SWIG_fail;
25929 swig_obj[0] = args;
25930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25931 if (!SWIG_IsOK(res1)) {
25932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25933 }
25934 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25935 {
25936 PyThreadState* __tstate = wxPyBeginAllowThreads();
25937 result = (bool)(arg1)->HasBackgroundColour();
25938 wxPyEndAllowThreads(__tstate);
25939 if (PyErr_Occurred()) SWIG_fail;
25940 }
25941 {
25942 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25943 }
25944 return resultobj;
25945 fail:
25946 return NULL;
25947 }
25948
25949
25950 SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25951 PyObject *resultobj = 0;
25952 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25953 bool result;
25954 void *argp1 = 0 ;
25955 int res1 = 0 ;
25956 PyObject *swig_obj[1] ;
25957
25958 if (!args) SWIG_fail;
25959 swig_obj[0] = args;
25960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25961 if (!SWIG_IsOK(res1)) {
25962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25963 }
25964 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25965 {
25966 PyThreadState* __tstate = wxPyBeginAllowThreads();
25967 result = (bool)(arg1)->HasFont();
25968 wxPyEndAllowThreads(__tstate);
25969 if (PyErr_Occurred()) SWIG_fail;
25970 }
25971 {
25972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25973 }
25974 return resultobj;
25975 fail:
25976 return NULL;
25977 }
25978
25979
25980 SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25981 PyObject *resultobj = 0;
25982 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25983 wxColour result;
25984 void *argp1 = 0 ;
25985 int res1 = 0 ;
25986 PyObject *swig_obj[1] ;
25987
25988 if (!args) SWIG_fail;
25989 swig_obj[0] = args;
25990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25991 if (!SWIG_IsOK(res1)) {
25992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25993 }
25994 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25995 {
25996 PyThreadState* __tstate = wxPyBeginAllowThreads();
25997 result = (arg1)->GetTextColour();
25998 wxPyEndAllowThreads(__tstate);
25999 if (PyErr_Occurred()) SWIG_fail;
26000 }
26001 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26002 return resultobj;
26003 fail:
26004 return NULL;
26005 }
26006
26007
26008 SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26009 PyObject *resultobj = 0;
26010 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26011 wxColour result;
26012 void *argp1 = 0 ;
26013 int res1 = 0 ;
26014 PyObject *swig_obj[1] ;
26015
26016 if (!args) SWIG_fail;
26017 swig_obj[0] = args;
26018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26019 if (!SWIG_IsOK(res1)) {
26020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26021 }
26022 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26023 {
26024 PyThreadState* __tstate = wxPyBeginAllowThreads();
26025 result = (arg1)->GetBackgroundColour();
26026 wxPyEndAllowThreads(__tstate);
26027 if (PyErr_Occurred()) SWIG_fail;
26028 }
26029 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26030 return resultobj;
26031 fail:
26032 return NULL;
26033 }
26034
26035
26036 SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26037 PyObject *resultobj = 0;
26038 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26039 wxFont result;
26040 void *argp1 = 0 ;
26041 int res1 = 0 ;
26042 PyObject *swig_obj[1] ;
26043
26044 if (!args) SWIG_fail;
26045 swig_obj[0] = args;
26046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26047 if (!SWIG_IsOK(res1)) {
26048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26049 }
26050 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26051 {
26052 PyThreadState* __tstate = wxPyBeginAllowThreads();
26053 result = (arg1)->GetFont();
26054 wxPyEndAllowThreads(__tstate);
26055 if (PyErr_Occurred()) SWIG_fail;
26056 }
26057 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26058 return resultobj;
26059 fail:
26060 return NULL;
26061 }
26062
26063
26064 SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26065 PyObject *resultobj = 0;
26066 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26067 wxListItemAttr *arg2 = 0 ;
26068 void *argp1 = 0 ;
26069 int res1 = 0 ;
26070 void *argp2 = 0 ;
26071 int res2 = 0 ;
26072 PyObject * obj0 = 0 ;
26073 PyObject * obj1 = 0 ;
26074 char * kwnames[] = {
26075 (char *) "self",(char *) "source", NULL
26076 };
26077
26078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26080 if (!SWIG_IsOK(res1)) {
26081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26082 }
26083 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26084 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26085 if (!SWIG_IsOK(res2)) {
26086 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26087 }
26088 if (!argp2) {
26089 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26090 }
26091 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26092 {
26093 PyThreadState* __tstate = wxPyBeginAllowThreads();
26094 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26095 wxPyEndAllowThreads(__tstate);
26096 if (PyErr_Occurred()) SWIG_fail;
26097 }
26098 resultobj = SWIG_Py_Void();
26099 return resultobj;
26100 fail:
26101 return NULL;
26102 }
26103
26104
26105 SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26106 PyObject *resultobj = 0;
26107 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26108 void *argp1 = 0 ;
26109 int res1 = 0 ;
26110 PyObject *swig_obj[1] ;
26111
26112 if (!args) SWIG_fail;
26113 swig_obj[0] = args;
26114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26115 if (!SWIG_IsOK(res1)) {
26116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26117 }
26118 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26119 {
26120 PyThreadState* __tstate = wxPyBeginAllowThreads();
26121 wxListItemAttr_Destroy(arg1);
26122 wxPyEndAllowThreads(__tstate);
26123 if (PyErr_Occurred()) SWIG_fail;
26124 }
26125 resultobj = SWIG_Py_Void();
26126 return resultobj;
26127 fail:
26128 return NULL;
26129 }
26130
26131
26132 SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26133 PyObject *obj;
26134 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26135 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26136 return SWIG_Py_Void();
26137 }
26138
26139 SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26140 return SWIG_Python_InitShadowInstance(args);
26141 }
26142
26143 SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26144 PyObject *resultobj = 0;
26145 wxListItem *result = 0 ;
26146
26147 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26148 {
26149 PyThreadState* __tstate = wxPyBeginAllowThreads();
26150 result = (wxListItem *)new wxListItem();
26151 wxPyEndAllowThreads(__tstate);
26152 if (PyErr_Occurred()) SWIG_fail;
26153 }
26154 {
26155 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
26156 }
26157 return resultobj;
26158 fail:
26159 return NULL;
26160 }
26161
26162
26163 SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26164 PyObject *resultobj = 0;
26165 wxListItem *arg1 = (wxListItem *) 0 ;
26166 void *argp1 = 0 ;
26167 int res1 = 0 ;
26168 PyObject *swig_obj[1] ;
26169
26170 if (!args) SWIG_fail;
26171 swig_obj[0] = args;
26172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26173 if (!SWIG_IsOK(res1)) {
26174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26175 }
26176 arg1 = reinterpret_cast< wxListItem * >(argp1);
26177 {
26178 PyThreadState* __tstate = wxPyBeginAllowThreads();
26179 delete arg1;
26180
26181 wxPyEndAllowThreads(__tstate);
26182 if (PyErr_Occurred()) SWIG_fail;
26183 }
26184 resultobj = SWIG_Py_Void();
26185 return resultobj;
26186 fail:
26187 return NULL;
26188 }
26189
26190
26191 SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26192 PyObject *resultobj = 0;
26193 wxListItem *arg1 = (wxListItem *) 0 ;
26194 void *argp1 = 0 ;
26195 int res1 = 0 ;
26196 PyObject *swig_obj[1] ;
26197
26198 if (!args) SWIG_fail;
26199 swig_obj[0] = args;
26200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26201 if (!SWIG_IsOK(res1)) {
26202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26203 }
26204 arg1 = reinterpret_cast< wxListItem * >(argp1);
26205 {
26206 PyThreadState* __tstate = wxPyBeginAllowThreads();
26207 (arg1)->Clear();
26208 wxPyEndAllowThreads(__tstate);
26209 if (PyErr_Occurred()) SWIG_fail;
26210 }
26211 resultobj = SWIG_Py_Void();
26212 return resultobj;
26213 fail:
26214 return NULL;
26215 }
26216
26217
26218 SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26219 PyObject *resultobj = 0;
26220 wxListItem *arg1 = (wxListItem *) 0 ;
26221 void *argp1 = 0 ;
26222 int res1 = 0 ;
26223 PyObject *swig_obj[1] ;
26224
26225 if (!args) SWIG_fail;
26226 swig_obj[0] = args;
26227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26228 if (!SWIG_IsOK(res1)) {
26229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26230 }
26231 arg1 = reinterpret_cast< wxListItem * >(argp1);
26232 {
26233 PyThreadState* __tstate = wxPyBeginAllowThreads();
26234 (arg1)->ClearAttributes();
26235 wxPyEndAllowThreads(__tstate);
26236 if (PyErr_Occurred()) SWIG_fail;
26237 }
26238 resultobj = SWIG_Py_Void();
26239 return resultobj;
26240 fail:
26241 return NULL;
26242 }
26243
26244
26245 SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26246 PyObject *resultobj = 0;
26247 wxListItem *arg1 = (wxListItem *) 0 ;
26248 long arg2 ;
26249 void *argp1 = 0 ;
26250 int res1 = 0 ;
26251 long val2 ;
26252 int ecode2 = 0 ;
26253 PyObject * obj0 = 0 ;
26254 PyObject * obj1 = 0 ;
26255 char * kwnames[] = {
26256 (char *) "self",(char *) "mask", NULL
26257 };
26258
26259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26261 if (!SWIG_IsOK(res1)) {
26262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26263 }
26264 arg1 = reinterpret_cast< wxListItem * >(argp1);
26265 ecode2 = SWIG_AsVal_long(obj1, &val2);
26266 if (!SWIG_IsOK(ecode2)) {
26267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26268 }
26269 arg2 = static_cast< long >(val2);
26270 {
26271 PyThreadState* __tstate = wxPyBeginAllowThreads();
26272 (arg1)->SetMask(arg2);
26273 wxPyEndAllowThreads(__tstate);
26274 if (PyErr_Occurred()) SWIG_fail;
26275 }
26276 resultobj = SWIG_Py_Void();
26277 return resultobj;
26278 fail:
26279 return NULL;
26280 }
26281
26282
26283 SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26284 PyObject *resultobj = 0;
26285 wxListItem *arg1 = (wxListItem *) 0 ;
26286 long arg2 ;
26287 void *argp1 = 0 ;
26288 int res1 = 0 ;
26289 long val2 ;
26290 int ecode2 = 0 ;
26291 PyObject * obj0 = 0 ;
26292 PyObject * obj1 = 0 ;
26293 char * kwnames[] = {
26294 (char *) "self",(char *) "id", NULL
26295 };
26296
26297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26299 if (!SWIG_IsOK(res1)) {
26300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26301 }
26302 arg1 = reinterpret_cast< wxListItem * >(argp1);
26303 ecode2 = SWIG_AsVal_long(obj1, &val2);
26304 if (!SWIG_IsOK(ecode2)) {
26305 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26306 }
26307 arg2 = static_cast< long >(val2);
26308 {
26309 PyThreadState* __tstate = wxPyBeginAllowThreads();
26310 (arg1)->SetId(arg2);
26311 wxPyEndAllowThreads(__tstate);
26312 if (PyErr_Occurred()) SWIG_fail;
26313 }
26314 resultobj = SWIG_Py_Void();
26315 return resultobj;
26316 fail:
26317 return NULL;
26318 }
26319
26320
26321 SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26322 PyObject *resultobj = 0;
26323 wxListItem *arg1 = (wxListItem *) 0 ;
26324 int arg2 ;
26325 void *argp1 = 0 ;
26326 int res1 = 0 ;
26327 int val2 ;
26328 int ecode2 = 0 ;
26329 PyObject * obj0 = 0 ;
26330 PyObject * obj1 = 0 ;
26331 char * kwnames[] = {
26332 (char *) "self",(char *) "col", NULL
26333 };
26334
26335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26337 if (!SWIG_IsOK(res1)) {
26338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26339 }
26340 arg1 = reinterpret_cast< wxListItem * >(argp1);
26341 ecode2 = SWIG_AsVal_int(obj1, &val2);
26342 if (!SWIG_IsOK(ecode2)) {
26343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26344 }
26345 arg2 = static_cast< int >(val2);
26346 {
26347 PyThreadState* __tstate = wxPyBeginAllowThreads();
26348 (arg1)->SetColumn(arg2);
26349 wxPyEndAllowThreads(__tstate);
26350 if (PyErr_Occurred()) SWIG_fail;
26351 }
26352 resultobj = SWIG_Py_Void();
26353 return resultobj;
26354 fail:
26355 return NULL;
26356 }
26357
26358
26359 SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26360 PyObject *resultobj = 0;
26361 wxListItem *arg1 = (wxListItem *) 0 ;
26362 long arg2 ;
26363 void *argp1 = 0 ;
26364 int res1 = 0 ;
26365 long val2 ;
26366 int ecode2 = 0 ;
26367 PyObject * obj0 = 0 ;
26368 PyObject * obj1 = 0 ;
26369 char * kwnames[] = {
26370 (char *) "self",(char *) "state", NULL
26371 };
26372
26373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26375 if (!SWIG_IsOK(res1)) {
26376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26377 }
26378 arg1 = reinterpret_cast< wxListItem * >(argp1);
26379 ecode2 = SWIG_AsVal_long(obj1, &val2);
26380 if (!SWIG_IsOK(ecode2)) {
26381 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26382 }
26383 arg2 = static_cast< long >(val2);
26384 {
26385 PyThreadState* __tstate = wxPyBeginAllowThreads();
26386 (arg1)->SetState(arg2);
26387 wxPyEndAllowThreads(__tstate);
26388 if (PyErr_Occurred()) SWIG_fail;
26389 }
26390 resultobj = SWIG_Py_Void();
26391 return resultobj;
26392 fail:
26393 return NULL;
26394 }
26395
26396
26397 SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26398 PyObject *resultobj = 0;
26399 wxListItem *arg1 = (wxListItem *) 0 ;
26400 long arg2 ;
26401 void *argp1 = 0 ;
26402 int res1 = 0 ;
26403 long val2 ;
26404 int ecode2 = 0 ;
26405 PyObject * obj0 = 0 ;
26406 PyObject * obj1 = 0 ;
26407 char * kwnames[] = {
26408 (char *) "self",(char *) "stateMask", NULL
26409 };
26410
26411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26413 if (!SWIG_IsOK(res1)) {
26414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26415 }
26416 arg1 = reinterpret_cast< wxListItem * >(argp1);
26417 ecode2 = SWIG_AsVal_long(obj1, &val2);
26418 if (!SWIG_IsOK(ecode2)) {
26419 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26420 }
26421 arg2 = static_cast< long >(val2);
26422 {
26423 PyThreadState* __tstate = wxPyBeginAllowThreads();
26424 (arg1)->SetStateMask(arg2);
26425 wxPyEndAllowThreads(__tstate);
26426 if (PyErr_Occurred()) SWIG_fail;
26427 }
26428 resultobj = SWIG_Py_Void();
26429 return resultobj;
26430 fail:
26431 return NULL;
26432 }
26433
26434
26435 SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26436 PyObject *resultobj = 0;
26437 wxListItem *arg1 = (wxListItem *) 0 ;
26438 wxString *arg2 = 0 ;
26439 void *argp1 = 0 ;
26440 int res1 = 0 ;
26441 bool temp2 = false ;
26442 PyObject * obj0 = 0 ;
26443 PyObject * obj1 = 0 ;
26444 char * kwnames[] = {
26445 (char *) "self",(char *) "text", NULL
26446 };
26447
26448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26450 if (!SWIG_IsOK(res1)) {
26451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26452 }
26453 arg1 = reinterpret_cast< wxListItem * >(argp1);
26454 {
26455 arg2 = wxString_in_helper(obj1);
26456 if (arg2 == NULL) SWIG_fail;
26457 temp2 = true;
26458 }
26459 {
26460 PyThreadState* __tstate = wxPyBeginAllowThreads();
26461 (arg1)->SetText((wxString const &)*arg2);
26462 wxPyEndAllowThreads(__tstate);
26463 if (PyErr_Occurred()) SWIG_fail;
26464 }
26465 resultobj = SWIG_Py_Void();
26466 {
26467 if (temp2)
26468 delete arg2;
26469 }
26470 return resultobj;
26471 fail:
26472 {
26473 if (temp2)
26474 delete arg2;
26475 }
26476 return NULL;
26477 }
26478
26479
26480 SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26481 PyObject *resultobj = 0;
26482 wxListItem *arg1 = (wxListItem *) 0 ;
26483 int arg2 ;
26484 void *argp1 = 0 ;
26485 int res1 = 0 ;
26486 int val2 ;
26487 int ecode2 = 0 ;
26488 PyObject * obj0 = 0 ;
26489 PyObject * obj1 = 0 ;
26490 char * kwnames[] = {
26491 (char *) "self",(char *) "image", NULL
26492 };
26493
26494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26496 if (!SWIG_IsOK(res1)) {
26497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26498 }
26499 arg1 = reinterpret_cast< wxListItem * >(argp1);
26500 ecode2 = SWIG_AsVal_int(obj1, &val2);
26501 if (!SWIG_IsOK(ecode2)) {
26502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26503 }
26504 arg2 = static_cast< int >(val2);
26505 {
26506 PyThreadState* __tstate = wxPyBeginAllowThreads();
26507 (arg1)->SetImage(arg2);
26508 wxPyEndAllowThreads(__tstate);
26509 if (PyErr_Occurred()) SWIG_fail;
26510 }
26511 resultobj = SWIG_Py_Void();
26512 return resultobj;
26513 fail:
26514 return NULL;
26515 }
26516
26517
26518 SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26519 PyObject *resultobj = 0;
26520 wxListItem *arg1 = (wxListItem *) 0 ;
26521 long arg2 ;
26522 void *argp1 = 0 ;
26523 int res1 = 0 ;
26524 long val2 ;
26525 int ecode2 = 0 ;
26526 PyObject * obj0 = 0 ;
26527 PyObject * obj1 = 0 ;
26528 char * kwnames[] = {
26529 (char *) "self",(char *) "data", NULL
26530 };
26531
26532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26534 if (!SWIG_IsOK(res1)) {
26535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26536 }
26537 arg1 = reinterpret_cast< wxListItem * >(argp1);
26538 ecode2 = SWIG_AsVal_long(obj1, &val2);
26539 if (!SWIG_IsOK(ecode2)) {
26540 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26541 }
26542 arg2 = static_cast< long >(val2);
26543 {
26544 PyThreadState* __tstate = wxPyBeginAllowThreads();
26545 (arg1)->SetData(arg2);
26546 wxPyEndAllowThreads(__tstate);
26547 if (PyErr_Occurred()) SWIG_fail;
26548 }
26549 resultobj = SWIG_Py_Void();
26550 return resultobj;
26551 fail:
26552 return NULL;
26553 }
26554
26555
26556 SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26557 PyObject *resultobj = 0;
26558 wxListItem *arg1 = (wxListItem *) 0 ;
26559 int arg2 ;
26560 void *argp1 = 0 ;
26561 int res1 = 0 ;
26562 int val2 ;
26563 int ecode2 = 0 ;
26564 PyObject * obj0 = 0 ;
26565 PyObject * obj1 = 0 ;
26566 char * kwnames[] = {
26567 (char *) "self",(char *) "width", NULL
26568 };
26569
26570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26572 if (!SWIG_IsOK(res1)) {
26573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26574 }
26575 arg1 = reinterpret_cast< wxListItem * >(argp1);
26576 ecode2 = SWIG_AsVal_int(obj1, &val2);
26577 if (!SWIG_IsOK(ecode2)) {
26578 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26579 }
26580 arg2 = static_cast< int >(val2);
26581 {
26582 PyThreadState* __tstate = wxPyBeginAllowThreads();
26583 (arg1)->SetWidth(arg2);
26584 wxPyEndAllowThreads(__tstate);
26585 if (PyErr_Occurred()) SWIG_fail;
26586 }
26587 resultobj = SWIG_Py_Void();
26588 return resultobj;
26589 fail:
26590 return NULL;
26591 }
26592
26593
26594 SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26595 PyObject *resultobj = 0;
26596 wxListItem *arg1 = (wxListItem *) 0 ;
26597 wxListColumnFormat arg2 ;
26598 void *argp1 = 0 ;
26599 int res1 = 0 ;
26600 int val2 ;
26601 int ecode2 = 0 ;
26602 PyObject * obj0 = 0 ;
26603 PyObject * obj1 = 0 ;
26604 char * kwnames[] = {
26605 (char *) "self",(char *) "align", NULL
26606 };
26607
26608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26610 if (!SWIG_IsOK(res1)) {
26611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26612 }
26613 arg1 = reinterpret_cast< wxListItem * >(argp1);
26614 ecode2 = SWIG_AsVal_int(obj1, &val2);
26615 if (!SWIG_IsOK(ecode2)) {
26616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26617 }
26618 arg2 = static_cast< wxListColumnFormat >(val2);
26619 {
26620 PyThreadState* __tstate = wxPyBeginAllowThreads();
26621 (arg1)->SetAlign(arg2);
26622 wxPyEndAllowThreads(__tstate);
26623 if (PyErr_Occurred()) SWIG_fail;
26624 }
26625 resultobj = SWIG_Py_Void();
26626 return resultobj;
26627 fail:
26628 return NULL;
26629 }
26630
26631
26632 SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26633 PyObject *resultobj = 0;
26634 wxListItem *arg1 = (wxListItem *) 0 ;
26635 wxColour *arg2 = 0 ;
26636 void *argp1 = 0 ;
26637 int res1 = 0 ;
26638 wxColour temp2 ;
26639 PyObject * obj0 = 0 ;
26640 PyObject * obj1 = 0 ;
26641 char * kwnames[] = {
26642 (char *) "self",(char *) "colText", NULL
26643 };
26644
26645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26647 if (!SWIG_IsOK(res1)) {
26648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26649 }
26650 arg1 = reinterpret_cast< wxListItem * >(argp1);
26651 {
26652 arg2 = &temp2;
26653 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26654 }
26655 {
26656 PyThreadState* __tstate = wxPyBeginAllowThreads();
26657 (arg1)->SetTextColour((wxColour const &)*arg2);
26658 wxPyEndAllowThreads(__tstate);
26659 if (PyErr_Occurred()) SWIG_fail;
26660 }
26661 resultobj = SWIG_Py_Void();
26662 return resultobj;
26663 fail:
26664 return NULL;
26665 }
26666
26667
26668 SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26669 PyObject *resultobj = 0;
26670 wxListItem *arg1 = (wxListItem *) 0 ;
26671 wxColour *arg2 = 0 ;
26672 void *argp1 = 0 ;
26673 int res1 = 0 ;
26674 wxColour temp2 ;
26675 PyObject * obj0 = 0 ;
26676 PyObject * obj1 = 0 ;
26677 char * kwnames[] = {
26678 (char *) "self",(char *) "colBack", NULL
26679 };
26680
26681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26683 if (!SWIG_IsOK(res1)) {
26684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26685 }
26686 arg1 = reinterpret_cast< wxListItem * >(argp1);
26687 {
26688 arg2 = &temp2;
26689 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26690 }
26691 {
26692 PyThreadState* __tstate = wxPyBeginAllowThreads();
26693 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26694 wxPyEndAllowThreads(__tstate);
26695 if (PyErr_Occurred()) SWIG_fail;
26696 }
26697 resultobj = SWIG_Py_Void();
26698 return resultobj;
26699 fail:
26700 return NULL;
26701 }
26702
26703
26704 SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26705 PyObject *resultobj = 0;
26706 wxListItem *arg1 = (wxListItem *) 0 ;
26707 wxFont *arg2 = 0 ;
26708 void *argp1 = 0 ;
26709 int res1 = 0 ;
26710 void *argp2 = 0 ;
26711 int res2 = 0 ;
26712 PyObject * obj0 = 0 ;
26713 PyObject * obj1 = 0 ;
26714 char * kwnames[] = {
26715 (char *) "self",(char *) "font", NULL
26716 };
26717
26718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26720 if (!SWIG_IsOK(res1)) {
26721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
26722 }
26723 arg1 = reinterpret_cast< wxListItem * >(argp1);
26724 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26725 if (!SWIG_IsOK(res2)) {
26726 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26727 }
26728 if (!argp2) {
26729 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26730 }
26731 arg2 = reinterpret_cast< wxFont * >(argp2);
26732 {
26733 PyThreadState* __tstate = wxPyBeginAllowThreads();
26734 (arg1)->SetFont((wxFont const &)*arg2);
26735 wxPyEndAllowThreads(__tstate);
26736 if (PyErr_Occurred()) SWIG_fail;
26737 }
26738 resultobj = SWIG_Py_Void();
26739 return resultobj;
26740 fail:
26741 return NULL;
26742 }
26743
26744
26745 SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26746 PyObject *resultobj = 0;
26747 wxListItem *arg1 = (wxListItem *) 0 ;
26748 long result;
26749 void *argp1 = 0 ;
26750 int res1 = 0 ;
26751 PyObject *swig_obj[1] ;
26752
26753 if (!args) SWIG_fail;
26754 swig_obj[0] = args;
26755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26756 if (!SWIG_IsOK(res1)) {
26757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26758 }
26759 arg1 = reinterpret_cast< wxListItem * >(argp1);
26760 {
26761 PyThreadState* __tstate = wxPyBeginAllowThreads();
26762 result = (long)(arg1)->GetMask();
26763 wxPyEndAllowThreads(__tstate);
26764 if (PyErr_Occurred()) SWIG_fail;
26765 }
26766 resultobj = SWIG_From_long(static_cast< long >(result));
26767 return resultobj;
26768 fail:
26769 return NULL;
26770 }
26771
26772
26773 SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26774 PyObject *resultobj = 0;
26775 wxListItem *arg1 = (wxListItem *) 0 ;
26776 long result;
26777 void *argp1 = 0 ;
26778 int res1 = 0 ;
26779 PyObject *swig_obj[1] ;
26780
26781 if (!args) SWIG_fail;
26782 swig_obj[0] = args;
26783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26784 if (!SWIG_IsOK(res1)) {
26785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26786 }
26787 arg1 = reinterpret_cast< wxListItem * >(argp1);
26788 {
26789 PyThreadState* __tstate = wxPyBeginAllowThreads();
26790 result = (long)(arg1)->GetId();
26791 wxPyEndAllowThreads(__tstate);
26792 if (PyErr_Occurred()) SWIG_fail;
26793 }
26794 resultobj = SWIG_From_long(static_cast< long >(result));
26795 return resultobj;
26796 fail:
26797 return NULL;
26798 }
26799
26800
26801 SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26802 PyObject *resultobj = 0;
26803 wxListItem *arg1 = (wxListItem *) 0 ;
26804 int result;
26805 void *argp1 = 0 ;
26806 int res1 = 0 ;
26807 PyObject *swig_obj[1] ;
26808
26809 if (!args) SWIG_fail;
26810 swig_obj[0] = args;
26811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26812 if (!SWIG_IsOK(res1)) {
26813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26814 }
26815 arg1 = reinterpret_cast< wxListItem * >(argp1);
26816 {
26817 PyThreadState* __tstate = wxPyBeginAllowThreads();
26818 result = (int)(arg1)->GetColumn();
26819 wxPyEndAllowThreads(__tstate);
26820 if (PyErr_Occurred()) SWIG_fail;
26821 }
26822 resultobj = SWIG_From_int(static_cast< int >(result));
26823 return resultobj;
26824 fail:
26825 return NULL;
26826 }
26827
26828
26829 SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26830 PyObject *resultobj = 0;
26831 wxListItem *arg1 = (wxListItem *) 0 ;
26832 long result;
26833 void *argp1 = 0 ;
26834 int res1 = 0 ;
26835 PyObject *swig_obj[1] ;
26836
26837 if (!args) SWIG_fail;
26838 swig_obj[0] = args;
26839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26840 if (!SWIG_IsOK(res1)) {
26841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26842 }
26843 arg1 = reinterpret_cast< wxListItem * >(argp1);
26844 {
26845 PyThreadState* __tstate = wxPyBeginAllowThreads();
26846 result = (long)(arg1)->GetState();
26847 wxPyEndAllowThreads(__tstate);
26848 if (PyErr_Occurred()) SWIG_fail;
26849 }
26850 resultobj = SWIG_From_long(static_cast< long >(result));
26851 return resultobj;
26852 fail:
26853 return NULL;
26854 }
26855
26856
26857 SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26858 PyObject *resultobj = 0;
26859 wxListItem *arg1 = (wxListItem *) 0 ;
26860 wxString *result = 0 ;
26861 void *argp1 = 0 ;
26862 int res1 = 0 ;
26863 PyObject *swig_obj[1] ;
26864
26865 if (!args) SWIG_fail;
26866 swig_obj[0] = args;
26867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26868 if (!SWIG_IsOK(res1)) {
26869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26870 }
26871 arg1 = reinterpret_cast< wxListItem * >(argp1);
26872 {
26873 PyThreadState* __tstate = wxPyBeginAllowThreads();
26874 {
26875 wxString const &_result_ref = (arg1)->GetText();
26876 result = (wxString *) &_result_ref;
26877 }
26878 wxPyEndAllowThreads(__tstate);
26879 if (PyErr_Occurred()) SWIG_fail;
26880 }
26881 {
26882 #if wxUSE_UNICODE
26883 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
26884 #else
26885 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
26886 #endif
26887 }
26888 return resultobj;
26889 fail:
26890 return NULL;
26891 }
26892
26893
26894 SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26895 PyObject *resultobj = 0;
26896 wxListItem *arg1 = (wxListItem *) 0 ;
26897 int result;
26898 void *argp1 = 0 ;
26899 int res1 = 0 ;
26900 PyObject *swig_obj[1] ;
26901
26902 if (!args) SWIG_fail;
26903 swig_obj[0] = args;
26904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26905 if (!SWIG_IsOK(res1)) {
26906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26907 }
26908 arg1 = reinterpret_cast< wxListItem * >(argp1);
26909 {
26910 PyThreadState* __tstate = wxPyBeginAllowThreads();
26911 result = (int)(arg1)->GetImage();
26912 wxPyEndAllowThreads(__tstate);
26913 if (PyErr_Occurred()) SWIG_fail;
26914 }
26915 resultobj = SWIG_From_int(static_cast< int >(result));
26916 return resultobj;
26917 fail:
26918 return NULL;
26919 }
26920
26921
26922 SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26923 PyObject *resultobj = 0;
26924 wxListItem *arg1 = (wxListItem *) 0 ;
26925 long result;
26926 void *argp1 = 0 ;
26927 int res1 = 0 ;
26928 PyObject *swig_obj[1] ;
26929
26930 if (!args) SWIG_fail;
26931 swig_obj[0] = args;
26932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26933 if (!SWIG_IsOK(res1)) {
26934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26935 }
26936 arg1 = reinterpret_cast< wxListItem * >(argp1);
26937 {
26938 PyThreadState* __tstate = wxPyBeginAllowThreads();
26939 result = (long)(arg1)->GetData();
26940 wxPyEndAllowThreads(__tstate);
26941 if (PyErr_Occurred()) SWIG_fail;
26942 }
26943 resultobj = SWIG_From_long(static_cast< long >(result));
26944 return resultobj;
26945 fail:
26946 return NULL;
26947 }
26948
26949
26950 SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26951 PyObject *resultobj = 0;
26952 wxListItem *arg1 = (wxListItem *) 0 ;
26953 int result;
26954 void *argp1 = 0 ;
26955 int res1 = 0 ;
26956 PyObject *swig_obj[1] ;
26957
26958 if (!args) SWIG_fail;
26959 swig_obj[0] = args;
26960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26961 if (!SWIG_IsOK(res1)) {
26962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26963 }
26964 arg1 = reinterpret_cast< wxListItem * >(argp1);
26965 {
26966 PyThreadState* __tstate = wxPyBeginAllowThreads();
26967 result = (int)(arg1)->GetWidth();
26968 wxPyEndAllowThreads(__tstate);
26969 if (PyErr_Occurred()) SWIG_fail;
26970 }
26971 resultobj = SWIG_From_int(static_cast< int >(result));
26972 return resultobj;
26973 fail:
26974 return NULL;
26975 }
26976
26977
26978 SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26979 PyObject *resultobj = 0;
26980 wxListItem *arg1 = (wxListItem *) 0 ;
26981 wxListColumnFormat result;
26982 void *argp1 = 0 ;
26983 int res1 = 0 ;
26984 PyObject *swig_obj[1] ;
26985
26986 if (!args) SWIG_fail;
26987 swig_obj[0] = args;
26988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26989 if (!SWIG_IsOK(res1)) {
26990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26991 }
26992 arg1 = reinterpret_cast< wxListItem * >(argp1);
26993 {
26994 PyThreadState* __tstate = wxPyBeginAllowThreads();
26995 result = (wxListColumnFormat)(arg1)->GetAlign();
26996 wxPyEndAllowThreads(__tstate);
26997 if (PyErr_Occurred()) SWIG_fail;
26998 }
26999 resultobj = SWIG_From_int(static_cast< int >(result));
27000 return resultobj;
27001 fail:
27002 return NULL;
27003 }
27004
27005
27006 SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27007 PyObject *resultobj = 0;
27008 wxListItem *arg1 = (wxListItem *) 0 ;
27009 wxListItemAttr *result = 0 ;
27010 void *argp1 = 0 ;
27011 int res1 = 0 ;
27012 PyObject *swig_obj[1] ;
27013
27014 if (!args) SWIG_fail;
27015 swig_obj[0] = args;
27016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27017 if (!SWIG_IsOK(res1)) {
27018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27019 }
27020 arg1 = reinterpret_cast< wxListItem * >(argp1);
27021 {
27022 PyThreadState* __tstate = wxPyBeginAllowThreads();
27023 result = (wxListItemAttr *)(arg1)->GetAttributes();
27024 wxPyEndAllowThreads(__tstate);
27025 if (PyErr_Occurred()) SWIG_fail;
27026 }
27027 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27028 return resultobj;
27029 fail:
27030 return NULL;
27031 }
27032
27033
27034 SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27035 PyObject *resultobj = 0;
27036 wxListItem *arg1 = (wxListItem *) 0 ;
27037 bool result;
27038 void *argp1 = 0 ;
27039 int res1 = 0 ;
27040 PyObject *swig_obj[1] ;
27041
27042 if (!args) SWIG_fail;
27043 swig_obj[0] = args;
27044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27045 if (!SWIG_IsOK(res1)) {
27046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27047 }
27048 arg1 = reinterpret_cast< wxListItem * >(argp1);
27049 {
27050 PyThreadState* __tstate = wxPyBeginAllowThreads();
27051 result = (bool)(arg1)->HasAttributes();
27052 wxPyEndAllowThreads(__tstate);
27053 if (PyErr_Occurred()) SWIG_fail;
27054 }
27055 {
27056 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27057 }
27058 return resultobj;
27059 fail:
27060 return NULL;
27061 }
27062
27063
27064 SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27065 PyObject *resultobj = 0;
27066 wxListItem *arg1 = (wxListItem *) 0 ;
27067 wxColour 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_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27077 }
27078 arg1 = reinterpret_cast< wxListItem * >(argp1);
27079 {
27080 PyThreadState* __tstate = wxPyBeginAllowThreads();
27081 result = ((wxListItem const *)arg1)->GetTextColour();
27082 wxPyEndAllowThreads(__tstate);
27083 if (PyErr_Occurred()) SWIG_fail;
27084 }
27085 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27086 return resultobj;
27087 fail:
27088 return NULL;
27089 }
27090
27091
27092 SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27093 PyObject *resultobj = 0;
27094 wxListItem *arg1 = (wxListItem *) 0 ;
27095 wxColour result;
27096 void *argp1 = 0 ;
27097 int res1 = 0 ;
27098 PyObject *swig_obj[1] ;
27099
27100 if (!args) SWIG_fail;
27101 swig_obj[0] = args;
27102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27103 if (!SWIG_IsOK(res1)) {
27104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27105 }
27106 arg1 = reinterpret_cast< wxListItem * >(argp1);
27107 {
27108 PyThreadState* __tstate = wxPyBeginAllowThreads();
27109 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27110 wxPyEndAllowThreads(__tstate);
27111 if (PyErr_Occurred()) SWIG_fail;
27112 }
27113 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27114 return resultobj;
27115 fail:
27116 return NULL;
27117 }
27118
27119
27120 SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27121 PyObject *resultobj = 0;
27122 wxListItem *arg1 = (wxListItem *) 0 ;
27123 wxFont result;
27124 void *argp1 = 0 ;
27125 int res1 = 0 ;
27126 PyObject *swig_obj[1] ;
27127
27128 if (!args) SWIG_fail;
27129 swig_obj[0] = args;
27130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27131 if (!SWIG_IsOK(res1)) {
27132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27133 }
27134 arg1 = reinterpret_cast< wxListItem * >(argp1);
27135 {
27136 PyThreadState* __tstate = wxPyBeginAllowThreads();
27137 result = ((wxListItem const *)arg1)->GetFont();
27138 wxPyEndAllowThreads(__tstate);
27139 if (PyErr_Occurred()) SWIG_fail;
27140 }
27141 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27142 return resultobj;
27143 fail:
27144 return NULL;
27145 }
27146
27147
27148 SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27149 PyObject *resultobj = 0;
27150 wxListItem *arg1 = (wxListItem *) 0 ;
27151 long arg2 ;
27152 void *argp1 = 0 ;
27153 int res1 = 0 ;
27154 long val2 ;
27155 int ecode2 = 0 ;
27156 PyObject *swig_obj[2] ;
27157
27158 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27160 if (!SWIG_IsOK(res1)) {
27161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27162 }
27163 arg1 = reinterpret_cast< wxListItem * >(argp1);
27164 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27165 if (!SWIG_IsOK(ecode2)) {
27166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27167 }
27168 arg2 = static_cast< long >(val2);
27169 if (arg1) (arg1)->m_mask = arg2;
27170
27171 resultobj = SWIG_Py_Void();
27172 return resultobj;
27173 fail:
27174 return NULL;
27175 }
27176
27177
27178 SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27179 PyObject *resultobj = 0;
27180 wxListItem *arg1 = (wxListItem *) 0 ;
27181 long result;
27182 void *argp1 = 0 ;
27183 int res1 = 0 ;
27184 PyObject *swig_obj[1] ;
27185
27186 if (!args) SWIG_fail;
27187 swig_obj[0] = args;
27188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27189 if (!SWIG_IsOK(res1)) {
27190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27191 }
27192 arg1 = reinterpret_cast< wxListItem * >(argp1);
27193 result = (long) ((arg1)->m_mask);
27194 resultobj = SWIG_From_long(static_cast< long >(result));
27195 return resultobj;
27196 fail:
27197 return NULL;
27198 }
27199
27200
27201 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27202 PyObject *resultobj = 0;
27203 wxListItem *arg1 = (wxListItem *) 0 ;
27204 long arg2 ;
27205 void *argp1 = 0 ;
27206 int res1 = 0 ;
27207 long val2 ;
27208 int ecode2 = 0 ;
27209 PyObject *swig_obj[2] ;
27210
27211 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27213 if (!SWIG_IsOK(res1)) {
27214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27215 }
27216 arg1 = reinterpret_cast< wxListItem * >(argp1);
27217 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27218 if (!SWIG_IsOK(ecode2)) {
27219 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27220 }
27221 arg2 = static_cast< long >(val2);
27222 if (arg1) (arg1)->m_itemId = arg2;
27223
27224 resultobj = SWIG_Py_Void();
27225 return resultobj;
27226 fail:
27227 return NULL;
27228 }
27229
27230
27231 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27232 PyObject *resultobj = 0;
27233 wxListItem *arg1 = (wxListItem *) 0 ;
27234 long result;
27235 void *argp1 = 0 ;
27236 int res1 = 0 ;
27237 PyObject *swig_obj[1] ;
27238
27239 if (!args) SWIG_fail;
27240 swig_obj[0] = args;
27241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27242 if (!SWIG_IsOK(res1)) {
27243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27244 }
27245 arg1 = reinterpret_cast< wxListItem * >(argp1);
27246 result = (long) ((arg1)->m_itemId);
27247 resultobj = SWIG_From_long(static_cast< long >(result));
27248 return resultobj;
27249 fail:
27250 return NULL;
27251 }
27252
27253
27254 SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27255 PyObject *resultobj = 0;
27256 wxListItem *arg1 = (wxListItem *) 0 ;
27257 int arg2 ;
27258 void *argp1 = 0 ;
27259 int res1 = 0 ;
27260 int val2 ;
27261 int ecode2 = 0 ;
27262 PyObject *swig_obj[2] ;
27263
27264 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27266 if (!SWIG_IsOK(res1)) {
27267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27268 }
27269 arg1 = reinterpret_cast< wxListItem * >(argp1);
27270 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27271 if (!SWIG_IsOK(ecode2)) {
27272 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27273 }
27274 arg2 = static_cast< int >(val2);
27275 if (arg1) (arg1)->m_col = arg2;
27276
27277 resultobj = SWIG_Py_Void();
27278 return resultobj;
27279 fail:
27280 return NULL;
27281 }
27282
27283
27284 SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27285 PyObject *resultobj = 0;
27286 wxListItem *arg1 = (wxListItem *) 0 ;
27287 int result;
27288 void *argp1 = 0 ;
27289 int res1 = 0 ;
27290 PyObject *swig_obj[1] ;
27291
27292 if (!args) SWIG_fail;
27293 swig_obj[0] = args;
27294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27295 if (!SWIG_IsOK(res1)) {
27296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27297 }
27298 arg1 = reinterpret_cast< wxListItem * >(argp1);
27299 result = (int) ((arg1)->m_col);
27300 resultobj = SWIG_From_int(static_cast< int >(result));
27301 return resultobj;
27302 fail:
27303 return NULL;
27304 }
27305
27306
27307 SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27308 PyObject *resultobj = 0;
27309 wxListItem *arg1 = (wxListItem *) 0 ;
27310 long arg2 ;
27311 void *argp1 = 0 ;
27312 int res1 = 0 ;
27313 long val2 ;
27314 int ecode2 = 0 ;
27315 PyObject *swig_obj[2] ;
27316
27317 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27319 if (!SWIG_IsOK(res1)) {
27320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27321 }
27322 arg1 = reinterpret_cast< wxListItem * >(argp1);
27323 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27324 if (!SWIG_IsOK(ecode2)) {
27325 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27326 }
27327 arg2 = static_cast< long >(val2);
27328 if (arg1) (arg1)->m_state = arg2;
27329
27330 resultobj = SWIG_Py_Void();
27331 return resultobj;
27332 fail:
27333 return NULL;
27334 }
27335
27336
27337 SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27338 PyObject *resultobj = 0;
27339 wxListItem *arg1 = (wxListItem *) 0 ;
27340 long result;
27341 void *argp1 = 0 ;
27342 int res1 = 0 ;
27343 PyObject *swig_obj[1] ;
27344
27345 if (!args) SWIG_fail;
27346 swig_obj[0] = args;
27347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27348 if (!SWIG_IsOK(res1)) {
27349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27350 }
27351 arg1 = reinterpret_cast< wxListItem * >(argp1);
27352 result = (long) ((arg1)->m_state);
27353 resultobj = SWIG_From_long(static_cast< long >(result));
27354 return resultobj;
27355 fail:
27356 return NULL;
27357 }
27358
27359
27360 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27361 PyObject *resultobj = 0;
27362 wxListItem *arg1 = (wxListItem *) 0 ;
27363 long arg2 ;
27364 void *argp1 = 0 ;
27365 int res1 = 0 ;
27366 long val2 ;
27367 int ecode2 = 0 ;
27368 PyObject *swig_obj[2] ;
27369
27370 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27372 if (!SWIG_IsOK(res1)) {
27373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27374 }
27375 arg1 = reinterpret_cast< wxListItem * >(argp1);
27376 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27377 if (!SWIG_IsOK(ecode2)) {
27378 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27379 }
27380 arg2 = static_cast< long >(val2);
27381 if (arg1) (arg1)->m_stateMask = arg2;
27382
27383 resultobj = SWIG_Py_Void();
27384 return resultobj;
27385 fail:
27386 return NULL;
27387 }
27388
27389
27390 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27391 PyObject *resultobj = 0;
27392 wxListItem *arg1 = (wxListItem *) 0 ;
27393 long result;
27394 void *argp1 = 0 ;
27395 int res1 = 0 ;
27396 PyObject *swig_obj[1] ;
27397
27398 if (!args) SWIG_fail;
27399 swig_obj[0] = args;
27400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27401 if (!SWIG_IsOK(res1)) {
27402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27403 }
27404 arg1 = reinterpret_cast< wxListItem * >(argp1);
27405 result = (long) ((arg1)->m_stateMask);
27406 resultobj = SWIG_From_long(static_cast< long >(result));
27407 return resultobj;
27408 fail:
27409 return NULL;
27410 }
27411
27412
27413 SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27414 PyObject *resultobj = 0;
27415 wxListItem *arg1 = (wxListItem *) 0 ;
27416 wxString *arg2 = (wxString *) 0 ;
27417 void *argp1 = 0 ;
27418 int res1 = 0 ;
27419 bool temp2 = false ;
27420 PyObject *swig_obj[2] ;
27421
27422 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27424 if (!SWIG_IsOK(res1)) {
27425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27426 }
27427 arg1 = reinterpret_cast< wxListItem * >(argp1);
27428 {
27429 arg2 = wxString_in_helper(swig_obj[1]);
27430 if (arg2 == NULL) SWIG_fail;
27431 temp2 = true;
27432 }
27433 if (arg1) (arg1)->m_text = *arg2;
27434
27435 resultobj = SWIG_Py_Void();
27436 {
27437 if (temp2)
27438 delete arg2;
27439 }
27440 return resultobj;
27441 fail:
27442 {
27443 if (temp2)
27444 delete arg2;
27445 }
27446 return NULL;
27447 }
27448
27449
27450 SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27451 PyObject *resultobj = 0;
27452 wxListItem *arg1 = (wxListItem *) 0 ;
27453 wxString *result = 0 ;
27454 void *argp1 = 0 ;
27455 int res1 = 0 ;
27456 PyObject *swig_obj[1] ;
27457
27458 if (!args) SWIG_fail;
27459 swig_obj[0] = args;
27460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27461 if (!SWIG_IsOK(res1)) {
27462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27463 }
27464 arg1 = reinterpret_cast< wxListItem * >(argp1);
27465 result = (wxString *)& ((arg1)->m_text);
27466 {
27467 #if wxUSE_UNICODE
27468 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27469 #else
27470 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27471 #endif
27472 }
27473 return resultobj;
27474 fail:
27475 return NULL;
27476 }
27477
27478
27479 SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27480 PyObject *resultobj = 0;
27481 wxListItem *arg1 = (wxListItem *) 0 ;
27482 int arg2 ;
27483 void *argp1 = 0 ;
27484 int res1 = 0 ;
27485 int val2 ;
27486 int ecode2 = 0 ;
27487 PyObject *swig_obj[2] ;
27488
27489 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27491 if (!SWIG_IsOK(res1)) {
27492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27493 }
27494 arg1 = reinterpret_cast< wxListItem * >(argp1);
27495 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27496 if (!SWIG_IsOK(ecode2)) {
27497 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27498 }
27499 arg2 = static_cast< int >(val2);
27500 if (arg1) (arg1)->m_image = arg2;
27501
27502 resultobj = SWIG_Py_Void();
27503 return resultobj;
27504 fail:
27505 return NULL;
27506 }
27507
27508
27509 SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27510 PyObject *resultobj = 0;
27511 wxListItem *arg1 = (wxListItem *) 0 ;
27512 int result;
27513 void *argp1 = 0 ;
27514 int res1 = 0 ;
27515 PyObject *swig_obj[1] ;
27516
27517 if (!args) SWIG_fail;
27518 swig_obj[0] = args;
27519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27520 if (!SWIG_IsOK(res1)) {
27521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27522 }
27523 arg1 = reinterpret_cast< wxListItem * >(argp1);
27524 result = (int) ((arg1)->m_image);
27525 resultobj = SWIG_From_int(static_cast< int >(result));
27526 return resultobj;
27527 fail:
27528 return NULL;
27529 }
27530
27531
27532 SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27533 PyObject *resultobj = 0;
27534 wxListItem *arg1 = (wxListItem *) 0 ;
27535 long arg2 ;
27536 void *argp1 = 0 ;
27537 int res1 = 0 ;
27538 long val2 ;
27539 int ecode2 = 0 ;
27540 PyObject *swig_obj[2] ;
27541
27542 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27544 if (!SWIG_IsOK(res1)) {
27545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27546 }
27547 arg1 = reinterpret_cast< wxListItem * >(argp1);
27548 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27549 if (!SWIG_IsOK(ecode2)) {
27550 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27551 }
27552 arg2 = static_cast< long >(val2);
27553 if (arg1) (arg1)->m_data = arg2;
27554
27555 resultobj = SWIG_Py_Void();
27556 return resultobj;
27557 fail:
27558 return NULL;
27559 }
27560
27561
27562 SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27563 PyObject *resultobj = 0;
27564 wxListItem *arg1 = (wxListItem *) 0 ;
27565 long result;
27566 void *argp1 = 0 ;
27567 int res1 = 0 ;
27568 PyObject *swig_obj[1] ;
27569
27570 if (!args) SWIG_fail;
27571 swig_obj[0] = args;
27572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27573 if (!SWIG_IsOK(res1)) {
27574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27575 }
27576 arg1 = reinterpret_cast< wxListItem * >(argp1);
27577 result = (long) ((arg1)->m_data);
27578 resultobj = SWIG_From_long(static_cast< long >(result));
27579 return resultobj;
27580 fail:
27581 return NULL;
27582 }
27583
27584
27585 SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27586 PyObject *resultobj = 0;
27587 wxListItem *arg1 = (wxListItem *) 0 ;
27588 int arg2 ;
27589 void *argp1 = 0 ;
27590 int res1 = 0 ;
27591 int val2 ;
27592 int ecode2 = 0 ;
27593 PyObject *swig_obj[2] ;
27594
27595 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27597 if (!SWIG_IsOK(res1)) {
27598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27599 }
27600 arg1 = reinterpret_cast< wxListItem * >(argp1);
27601 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27602 if (!SWIG_IsOK(ecode2)) {
27603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27604 }
27605 arg2 = static_cast< int >(val2);
27606 if (arg1) (arg1)->m_format = arg2;
27607
27608 resultobj = SWIG_Py_Void();
27609 return resultobj;
27610 fail:
27611 return NULL;
27612 }
27613
27614
27615 SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27616 PyObject *resultobj = 0;
27617 wxListItem *arg1 = (wxListItem *) 0 ;
27618 int result;
27619 void *argp1 = 0 ;
27620 int res1 = 0 ;
27621 PyObject *swig_obj[1] ;
27622
27623 if (!args) SWIG_fail;
27624 swig_obj[0] = args;
27625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27626 if (!SWIG_IsOK(res1)) {
27627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27628 }
27629 arg1 = reinterpret_cast< wxListItem * >(argp1);
27630 result = (int) ((arg1)->m_format);
27631 resultobj = SWIG_From_int(static_cast< int >(result));
27632 return resultobj;
27633 fail:
27634 return NULL;
27635 }
27636
27637
27638 SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27639 PyObject *resultobj = 0;
27640 wxListItem *arg1 = (wxListItem *) 0 ;
27641 int arg2 ;
27642 void *argp1 = 0 ;
27643 int res1 = 0 ;
27644 int val2 ;
27645 int ecode2 = 0 ;
27646 PyObject *swig_obj[2] ;
27647
27648 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27650 if (!SWIG_IsOK(res1)) {
27651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27652 }
27653 arg1 = reinterpret_cast< wxListItem * >(argp1);
27654 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27655 if (!SWIG_IsOK(ecode2)) {
27656 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27657 }
27658 arg2 = static_cast< int >(val2);
27659 if (arg1) (arg1)->m_width = arg2;
27660
27661 resultobj = SWIG_Py_Void();
27662 return resultobj;
27663 fail:
27664 return NULL;
27665 }
27666
27667
27668 SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27669 PyObject *resultobj = 0;
27670 wxListItem *arg1 = (wxListItem *) 0 ;
27671 int result;
27672 void *argp1 = 0 ;
27673 int res1 = 0 ;
27674 PyObject *swig_obj[1] ;
27675
27676 if (!args) SWIG_fail;
27677 swig_obj[0] = args;
27678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27679 if (!SWIG_IsOK(res1)) {
27680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27681 }
27682 arg1 = reinterpret_cast< wxListItem * >(argp1);
27683 result = (int) ((arg1)->m_width);
27684 resultobj = SWIG_From_int(static_cast< int >(result));
27685 return resultobj;
27686 fail:
27687 return NULL;
27688 }
27689
27690
27691 SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27692 PyObject *obj;
27693 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27694 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27695 return SWIG_Py_Void();
27696 }
27697
27698 SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27699 return SWIG_Python_InitShadowInstance(args);
27700 }
27701
27702 SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27703 PyObject *resultobj = 0;
27704 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27705 int arg2 = (int) 0 ;
27706 wxListEvent *result = 0 ;
27707 int val1 ;
27708 int ecode1 = 0 ;
27709 int val2 ;
27710 int ecode2 = 0 ;
27711 PyObject * obj0 = 0 ;
27712 PyObject * obj1 = 0 ;
27713 char * kwnames[] = {
27714 (char *) "commandType",(char *) "id", NULL
27715 };
27716
27717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27718 if (obj0) {
27719 ecode1 = SWIG_AsVal_int(obj0, &val1);
27720 if (!SWIG_IsOK(ecode1)) {
27721 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
27722 }
27723 arg1 = static_cast< wxEventType >(val1);
27724 }
27725 if (obj1) {
27726 ecode2 = SWIG_AsVal_int(obj1, &val2);
27727 if (!SWIG_IsOK(ecode2)) {
27728 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
27729 }
27730 arg2 = static_cast< int >(val2);
27731 }
27732 {
27733 PyThreadState* __tstate = wxPyBeginAllowThreads();
27734 result = (wxListEvent *)new wxListEvent(arg1,arg2);
27735 wxPyEndAllowThreads(__tstate);
27736 if (PyErr_Occurred()) SWIG_fail;
27737 }
27738 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
27739 return resultobj;
27740 fail:
27741 return NULL;
27742 }
27743
27744
27745 SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27746 PyObject *resultobj = 0;
27747 wxListEvent *arg1 = (wxListEvent *) 0 ;
27748 int arg2 ;
27749 void *argp1 = 0 ;
27750 int res1 = 0 ;
27751 int val2 ;
27752 int ecode2 = 0 ;
27753 PyObject *swig_obj[2] ;
27754
27755 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
27756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27757 if (!SWIG_IsOK(res1)) {
27758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27759 }
27760 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27761 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27762 if (!SWIG_IsOK(ecode2)) {
27763 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
27764 }
27765 arg2 = static_cast< int >(val2);
27766 if (arg1) (arg1)->m_code = arg2;
27767
27768 resultobj = SWIG_Py_Void();
27769 return resultobj;
27770 fail:
27771 return NULL;
27772 }
27773
27774
27775 SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27776 PyObject *resultobj = 0;
27777 wxListEvent *arg1 = (wxListEvent *) 0 ;
27778 int result;
27779 void *argp1 = 0 ;
27780 int res1 = 0 ;
27781 PyObject *swig_obj[1] ;
27782
27783 if (!args) SWIG_fail;
27784 swig_obj[0] = args;
27785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27786 if (!SWIG_IsOK(res1)) {
27787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27788 }
27789 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27790 result = (int) ((arg1)->m_code);
27791 resultobj = SWIG_From_int(static_cast< int >(result));
27792 return resultobj;
27793 fail:
27794 return NULL;
27795 }
27796
27797
27798 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27799 PyObject *resultobj = 0;
27800 wxListEvent *arg1 = (wxListEvent *) 0 ;
27801 long arg2 ;
27802 void *argp1 = 0 ;
27803 int res1 = 0 ;
27804 long val2 ;
27805 int ecode2 = 0 ;
27806 PyObject *swig_obj[2] ;
27807
27808 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
27809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27810 if (!SWIG_IsOK(res1)) {
27811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27812 }
27813 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27814 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27815 if (!SWIG_IsOK(ecode2)) {
27816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
27817 }
27818 arg2 = static_cast< long >(val2);
27819 if (arg1) (arg1)->m_oldItemIndex = arg2;
27820
27821 resultobj = SWIG_Py_Void();
27822 return resultobj;
27823 fail:
27824 return NULL;
27825 }
27826
27827
27828 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27829 PyObject *resultobj = 0;
27830 wxListEvent *arg1 = (wxListEvent *) 0 ;
27831 long result;
27832 void *argp1 = 0 ;
27833 int res1 = 0 ;
27834 PyObject *swig_obj[1] ;
27835
27836 if (!args) SWIG_fail;
27837 swig_obj[0] = args;
27838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27839 if (!SWIG_IsOK(res1)) {
27840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27841 }
27842 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27843 result = (long) ((arg1)->m_oldItemIndex);
27844 resultobj = SWIG_From_long(static_cast< long >(result));
27845 return resultobj;
27846 fail:
27847 return NULL;
27848 }
27849
27850
27851 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27852 PyObject *resultobj = 0;
27853 wxListEvent *arg1 = (wxListEvent *) 0 ;
27854 long arg2 ;
27855 void *argp1 = 0 ;
27856 int res1 = 0 ;
27857 long val2 ;
27858 int ecode2 = 0 ;
27859 PyObject *swig_obj[2] ;
27860
27861 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
27862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27863 if (!SWIG_IsOK(res1)) {
27864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27865 }
27866 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27867 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27868 if (!SWIG_IsOK(ecode2)) {
27869 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
27870 }
27871 arg2 = static_cast< long >(val2);
27872 if (arg1) (arg1)->m_itemIndex = arg2;
27873
27874 resultobj = SWIG_Py_Void();
27875 return resultobj;
27876 fail:
27877 return NULL;
27878 }
27879
27880
27881 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27882 PyObject *resultobj = 0;
27883 wxListEvent *arg1 = (wxListEvent *) 0 ;
27884 long result;
27885 void *argp1 = 0 ;
27886 int res1 = 0 ;
27887 PyObject *swig_obj[1] ;
27888
27889 if (!args) SWIG_fail;
27890 swig_obj[0] = args;
27891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27892 if (!SWIG_IsOK(res1)) {
27893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27894 }
27895 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27896 result = (long) ((arg1)->m_itemIndex);
27897 resultobj = SWIG_From_long(static_cast< long >(result));
27898 return resultobj;
27899 fail:
27900 return NULL;
27901 }
27902
27903
27904 SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27905 PyObject *resultobj = 0;
27906 wxListEvent *arg1 = (wxListEvent *) 0 ;
27907 int arg2 ;
27908 void *argp1 = 0 ;
27909 int res1 = 0 ;
27910 int val2 ;
27911 int ecode2 = 0 ;
27912 PyObject *swig_obj[2] ;
27913
27914 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
27915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27916 if (!SWIG_IsOK(res1)) {
27917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27918 }
27919 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27920 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27921 if (!SWIG_IsOK(ecode2)) {
27922 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
27923 }
27924 arg2 = static_cast< int >(val2);
27925 if (arg1) (arg1)->m_col = arg2;
27926
27927 resultobj = SWIG_Py_Void();
27928 return resultobj;
27929 fail:
27930 return NULL;
27931 }
27932
27933
27934 SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27935 PyObject *resultobj = 0;
27936 wxListEvent *arg1 = (wxListEvent *) 0 ;
27937 int result;
27938 void *argp1 = 0 ;
27939 int res1 = 0 ;
27940 PyObject *swig_obj[1] ;
27941
27942 if (!args) SWIG_fail;
27943 swig_obj[0] = args;
27944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27945 if (!SWIG_IsOK(res1)) {
27946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27947 }
27948 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27949 result = (int) ((arg1)->m_col);
27950 resultobj = SWIG_From_int(static_cast< int >(result));
27951 return resultobj;
27952 fail:
27953 return NULL;
27954 }
27955
27956
27957 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27958 PyObject *resultobj = 0;
27959 wxListEvent *arg1 = (wxListEvent *) 0 ;
27960 wxPoint *arg2 = (wxPoint *) 0 ;
27961 void *argp1 = 0 ;
27962 int res1 = 0 ;
27963 void *argp2 = 0 ;
27964 int res2 = 0 ;
27965 PyObject *swig_obj[2] ;
27966
27967 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
27968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27969 if (!SWIG_IsOK(res1)) {
27970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27971 }
27972 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27973 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
27974 if (!SWIG_IsOK(res2)) {
27975 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
27976 }
27977 arg2 = reinterpret_cast< wxPoint * >(argp2);
27978 if (arg1) (arg1)->m_pointDrag = *arg2;
27979
27980 resultobj = SWIG_Py_Void();
27981 return resultobj;
27982 fail:
27983 return NULL;
27984 }
27985
27986
27987 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27988 PyObject *resultobj = 0;
27989 wxListEvent *arg1 = (wxListEvent *) 0 ;
27990 wxPoint *result = 0 ;
27991 void *argp1 = 0 ;
27992 int res1 = 0 ;
27993 PyObject *swig_obj[1] ;
27994
27995 if (!args) SWIG_fail;
27996 swig_obj[0] = args;
27997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27998 if (!SWIG_IsOK(res1)) {
27999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28000 }
28001 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28002 result = (wxPoint *)& ((arg1)->m_pointDrag);
28003 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28004 return resultobj;
28005 fail:
28006 return NULL;
28007 }
28008
28009
28010 SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28011 PyObject *resultobj = 0;
28012 wxListEvent *arg1 = (wxListEvent *) 0 ;
28013 wxListItem *result = 0 ;
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_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28023 }
28024 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28025 result = (wxListItem *)& ((arg1)->m_item);
28026 {
28027 resultobj = wxPyMake_wxObject(result, (bool)0);
28028 }
28029 return resultobj;
28030 fail:
28031 return NULL;
28032 }
28033
28034
28035 SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28036 PyObject *resultobj = 0;
28037 wxListEvent *arg1 = (wxListEvent *) 0 ;
28038 int result;
28039 void *argp1 = 0 ;
28040 int res1 = 0 ;
28041 PyObject *swig_obj[1] ;
28042
28043 if (!args) SWIG_fail;
28044 swig_obj[0] = args;
28045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28046 if (!SWIG_IsOK(res1)) {
28047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28048 }
28049 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28050 {
28051 PyThreadState* __tstate = wxPyBeginAllowThreads();
28052 result = (int)(arg1)->GetKeyCode();
28053 wxPyEndAllowThreads(__tstate);
28054 if (PyErr_Occurred()) SWIG_fail;
28055 }
28056 resultobj = SWIG_From_int(static_cast< int >(result));
28057 return resultobj;
28058 fail:
28059 return NULL;
28060 }
28061
28062
28063 SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28064 PyObject *resultobj = 0;
28065 wxListEvent *arg1 = (wxListEvent *) 0 ;
28066 long result;
28067 void *argp1 = 0 ;
28068 int res1 = 0 ;
28069 PyObject *swig_obj[1] ;
28070
28071 if (!args) SWIG_fail;
28072 swig_obj[0] = args;
28073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28074 if (!SWIG_IsOK(res1)) {
28075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28076 }
28077 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28078 {
28079 PyThreadState* __tstate = wxPyBeginAllowThreads();
28080 result = (long)(arg1)->GetIndex();
28081 wxPyEndAllowThreads(__tstate);
28082 if (PyErr_Occurred()) SWIG_fail;
28083 }
28084 resultobj = SWIG_From_long(static_cast< long >(result));
28085 return resultobj;
28086 fail:
28087 return NULL;
28088 }
28089
28090
28091 SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28092 PyObject *resultobj = 0;
28093 wxListEvent *arg1 = (wxListEvent *) 0 ;
28094 int result;
28095 void *argp1 = 0 ;
28096 int res1 = 0 ;
28097 PyObject *swig_obj[1] ;
28098
28099 if (!args) SWIG_fail;
28100 swig_obj[0] = args;
28101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28102 if (!SWIG_IsOK(res1)) {
28103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28104 }
28105 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28106 {
28107 PyThreadState* __tstate = wxPyBeginAllowThreads();
28108 result = (int)(arg1)->GetColumn();
28109 wxPyEndAllowThreads(__tstate);
28110 if (PyErr_Occurred()) SWIG_fail;
28111 }
28112 resultobj = SWIG_From_int(static_cast< int >(result));
28113 return resultobj;
28114 fail:
28115 return NULL;
28116 }
28117
28118
28119 SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28120 PyObject *resultobj = 0;
28121 wxListEvent *arg1 = (wxListEvent *) 0 ;
28122 wxPoint result;
28123 void *argp1 = 0 ;
28124 int res1 = 0 ;
28125 PyObject *swig_obj[1] ;
28126
28127 if (!args) SWIG_fail;
28128 swig_obj[0] = args;
28129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28130 if (!SWIG_IsOK(res1)) {
28131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28132 }
28133 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28134 {
28135 PyThreadState* __tstate = wxPyBeginAllowThreads();
28136 result = (arg1)->GetPoint();
28137 wxPyEndAllowThreads(__tstate);
28138 if (PyErr_Occurred()) SWIG_fail;
28139 }
28140 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28141 return resultobj;
28142 fail:
28143 return NULL;
28144 }
28145
28146
28147 SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28148 PyObject *resultobj = 0;
28149 wxListEvent *arg1 = (wxListEvent *) 0 ;
28150 wxString *result = 0 ;
28151 void *argp1 = 0 ;
28152 int res1 = 0 ;
28153 PyObject *swig_obj[1] ;
28154
28155 if (!args) SWIG_fail;
28156 swig_obj[0] = args;
28157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28158 if (!SWIG_IsOK(res1)) {
28159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28160 }
28161 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28162 {
28163 PyThreadState* __tstate = wxPyBeginAllowThreads();
28164 {
28165 wxString const &_result_ref = (arg1)->GetLabel();
28166 result = (wxString *) &_result_ref;
28167 }
28168 wxPyEndAllowThreads(__tstate);
28169 if (PyErr_Occurred()) SWIG_fail;
28170 }
28171 {
28172 #if wxUSE_UNICODE
28173 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28174 #else
28175 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28176 #endif
28177 }
28178 return resultobj;
28179 fail:
28180 return NULL;
28181 }
28182
28183
28184 SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28185 PyObject *resultobj = 0;
28186 wxListEvent *arg1 = (wxListEvent *) 0 ;
28187 wxString *result = 0 ;
28188 void *argp1 = 0 ;
28189 int res1 = 0 ;
28190 PyObject *swig_obj[1] ;
28191
28192 if (!args) SWIG_fail;
28193 swig_obj[0] = args;
28194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28195 if (!SWIG_IsOK(res1)) {
28196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28197 }
28198 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28199 {
28200 PyThreadState* __tstate = wxPyBeginAllowThreads();
28201 {
28202 wxString const &_result_ref = (arg1)->GetText();
28203 result = (wxString *) &_result_ref;
28204 }
28205 wxPyEndAllowThreads(__tstate);
28206 if (PyErr_Occurred()) SWIG_fail;
28207 }
28208 {
28209 #if wxUSE_UNICODE
28210 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28211 #else
28212 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28213 #endif
28214 }
28215 return resultobj;
28216 fail:
28217 return NULL;
28218 }
28219
28220
28221 SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28222 PyObject *resultobj = 0;
28223 wxListEvent *arg1 = (wxListEvent *) 0 ;
28224 int result;
28225 void *argp1 = 0 ;
28226 int res1 = 0 ;
28227 PyObject *swig_obj[1] ;
28228
28229 if (!args) SWIG_fail;
28230 swig_obj[0] = args;
28231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28232 if (!SWIG_IsOK(res1)) {
28233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28234 }
28235 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28236 {
28237 PyThreadState* __tstate = wxPyBeginAllowThreads();
28238 result = (int)(arg1)->GetImage();
28239 wxPyEndAllowThreads(__tstate);
28240 if (PyErr_Occurred()) SWIG_fail;
28241 }
28242 resultobj = SWIG_From_int(static_cast< int >(result));
28243 return resultobj;
28244 fail:
28245 return NULL;
28246 }
28247
28248
28249 SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28250 PyObject *resultobj = 0;
28251 wxListEvent *arg1 = (wxListEvent *) 0 ;
28252 long result;
28253 void *argp1 = 0 ;
28254 int res1 = 0 ;
28255 PyObject *swig_obj[1] ;
28256
28257 if (!args) SWIG_fail;
28258 swig_obj[0] = args;
28259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28260 if (!SWIG_IsOK(res1)) {
28261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28262 }
28263 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28264 {
28265 PyThreadState* __tstate = wxPyBeginAllowThreads();
28266 result = (long)(arg1)->GetData();
28267 wxPyEndAllowThreads(__tstate);
28268 if (PyErr_Occurred()) SWIG_fail;
28269 }
28270 resultobj = SWIG_From_long(static_cast< long >(result));
28271 return resultobj;
28272 fail:
28273 return NULL;
28274 }
28275
28276
28277 SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28278 PyObject *resultobj = 0;
28279 wxListEvent *arg1 = (wxListEvent *) 0 ;
28280 long result;
28281 void *argp1 = 0 ;
28282 int res1 = 0 ;
28283 PyObject *swig_obj[1] ;
28284
28285 if (!args) SWIG_fail;
28286 swig_obj[0] = args;
28287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28288 if (!SWIG_IsOK(res1)) {
28289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28290 }
28291 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28292 {
28293 PyThreadState* __tstate = wxPyBeginAllowThreads();
28294 result = (long)(arg1)->GetMask();
28295 wxPyEndAllowThreads(__tstate);
28296 if (PyErr_Occurred()) SWIG_fail;
28297 }
28298 resultobj = SWIG_From_long(static_cast< long >(result));
28299 return resultobj;
28300 fail:
28301 return NULL;
28302 }
28303
28304
28305 SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28306 PyObject *resultobj = 0;
28307 wxListEvent *arg1 = (wxListEvent *) 0 ;
28308 wxListItem *result = 0 ;
28309 void *argp1 = 0 ;
28310 int res1 = 0 ;
28311 PyObject *swig_obj[1] ;
28312
28313 if (!args) SWIG_fail;
28314 swig_obj[0] = args;
28315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28316 if (!SWIG_IsOK(res1)) {
28317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28318 }
28319 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28320 {
28321 PyThreadState* __tstate = wxPyBeginAllowThreads();
28322 {
28323 wxListItem const &_result_ref = (arg1)->GetItem();
28324 result = (wxListItem *) &_result_ref;
28325 }
28326 wxPyEndAllowThreads(__tstate);
28327 if (PyErr_Occurred()) SWIG_fail;
28328 }
28329 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28330 return resultobj;
28331 fail:
28332 return NULL;
28333 }
28334
28335
28336 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28337 PyObject *resultobj = 0;
28338 wxListEvent *arg1 = (wxListEvent *) 0 ;
28339 long result;
28340 void *argp1 = 0 ;
28341 int res1 = 0 ;
28342 PyObject *swig_obj[1] ;
28343
28344 if (!args) SWIG_fail;
28345 swig_obj[0] = args;
28346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28347 if (!SWIG_IsOK(res1)) {
28348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28349 }
28350 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28351 {
28352 PyThreadState* __tstate = wxPyBeginAllowThreads();
28353 result = (long)(arg1)->GetCacheFrom();
28354 wxPyEndAllowThreads(__tstate);
28355 if (PyErr_Occurred()) SWIG_fail;
28356 }
28357 resultobj = SWIG_From_long(static_cast< long >(result));
28358 return resultobj;
28359 fail:
28360 return NULL;
28361 }
28362
28363
28364 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28365 PyObject *resultobj = 0;
28366 wxListEvent *arg1 = (wxListEvent *) 0 ;
28367 long result;
28368 void *argp1 = 0 ;
28369 int res1 = 0 ;
28370 PyObject *swig_obj[1] ;
28371
28372 if (!args) SWIG_fail;
28373 swig_obj[0] = args;
28374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28375 if (!SWIG_IsOK(res1)) {
28376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28377 }
28378 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28379 {
28380 PyThreadState* __tstate = wxPyBeginAllowThreads();
28381 result = (long)(arg1)->GetCacheTo();
28382 wxPyEndAllowThreads(__tstate);
28383 if (PyErr_Occurred()) SWIG_fail;
28384 }
28385 resultobj = SWIG_From_long(static_cast< long >(result));
28386 return resultobj;
28387 fail:
28388 return NULL;
28389 }
28390
28391
28392 SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28393 PyObject *resultobj = 0;
28394 wxListEvent *arg1 = (wxListEvent *) 0 ;
28395 bool result;
28396 void *argp1 = 0 ;
28397 int res1 = 0 ;
28398 PyObject *swig_obj[1] ;
28399
28400 if (!args) SWIG_fail;
28401 swig_obj[0] = args;
28402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28403 if (!SWIG_IsOK(res1)) {
28404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28405 }
28406 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28407 {
28408 PyThreadState* __tstate = wxPyBeginAllowThreads();
28409 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28410 wxPyEndAllowThreads(__tstate);
28411 if (PyErr_Occurred()) SWIG_fail;
28412 }
28413 {
28414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28415 }
28416 return resultobj;
28417 fail:
28418 return NULL;
28419 }
28420
28421
28422 SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28423 PyObject *resultobj = 0;
28424 wxListEvent *arg1 = (wxListEvent *) 0 ;
28425 bool arg2 ;
28426 void *argp1 = 0 ;
28427 int res1 = 0 ;
28428 bool val2 ;
28429 int ecode2 = 0 ;
28430 PyObject * obj0 = 0 ;
28431 PyObject * obj1 = 0 ;
28432 char * kwnames[] = {
28433 (char *) "self",(char *) "editCancelled", NULL
28434 };
28435
28436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28438 if (!SWIG_IsOK(res1)) {
28439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28440 }
28441 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28442 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28443 if (!SWIG_IsOK(ecode2)) {
28444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28445 }
28446 arg2 = static_cast< bool >(val2);
28447 {
28448 PyThreadState* __tstate = wxPyBeginAllowThreads();
28449 (arg1)->SetEditCanceled(arg2);
28450 wxPyEndAllowThreads(__tstate);
28451 if (PyErr_Occurred()) SWIG_fail;
28452 }
28453 resultobj = SWIG_Py_Void();
28454 return resultobj;
28455 fail:
28456 return NULL;
28457 }
28458
28459
28460 SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28461 PyObject *obj;
28462 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28463 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28464 return SWIG_Py_Void();
28465 }
28466
28467 SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28468 return SWIG_Python_InitShadowInstance(args);
28469 }
28470
28471 SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28472 PyObject *resultobj = 0;
28473 wxWindow *arg1 = (wxWindow *) 0 ;
28474 int arg2 = (int) -1 ;
28475 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28476 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28477 wxSize const &arg4_defvalue = wxDefaultSize ;
28478 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28479 long arg5 = (long) wxLC_ICON ;
28480 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28481 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28482 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28483 wxString *arg7 = (wxString *) &arg7_defvalue ;
28484 wxPyListCtrl *result = 0 ;
28485 void *argp1 = 0 ;
28486 int res1 = 0 ;
28487 int val2 ;
28488 int ecode2 = 0 ;
28489 wxPoint temp3 ;
28490 wxSize temp4 ;
28491 long val5 ;
28492 int ecode5 = 0 ;
28493 void *argp6 = 0 ;
28494 int res6 = 0 ;
28495 bool temp7 = false ;
28496 PyObject * obj0 = 0 ;
28497 PyObject * obj1 = 0 ;
28498 PyObject * obj2 = 0 ;
28499 PyObject * obj3 = 0 ;
28500 PyObject * obj4 = 0 ;
28501 PyObject * obj5 = 0 ;
28502 PyObject * obj6 = 0 ;
28503 char * kwnames[] = {
28504 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28505 };
28506
28507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28509 if (!SWIG_IsOK(res1)) {
28510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28511 }
28512 arg1 = reinterpret_cast< wxWindow * >(argp1);
28513 if (obj1) {
28514 ecode2 = SWIG_AsVal_int(obj1, &val2);
28515 if (!SWIG_IsOK(ecode2)) {
28516 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28517 }
28518 arg2 = static_cast< int >(val2);
28519 }
28520 if (obj2) {
28521 {
28522 arg3 = &temp3;
28523 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28524 }
28525 }
28526 if (obj3) {
28527 {
28528 arg4 = &temp4;
28529 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28530 }
28531 }
28532 if (obj4) {
28533 ecode5 = SWIG_AsVal_long(obj4, &val5);
28534 if (!SWIG_IsOK(ecode5)) {
28535 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28536 }
28537 arg5 = static_cast< long >(val5);
28538 }
28539 if (obj5) {
28540 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28541 if (!SWIG_IsOK(res6)) {
28542 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28543 }
28544 if (!argp6) {
28545 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28546 }
28547 arg6 = reinterpret_cast< wxValidator * >(argp6);
28548 }
28549 if (obj6) {
28550 {
28551 arg7 = wxString_in_helper(obj6);
28552 if (arg7 == NULL) SWIG_fail;
28553 temp7 = true;
28554 }
28555 }
28556 {
28557 if (!wxPyCheckForApp()) SWIG_fail;
28558 PyThreadState* __tstate = wxPyBeginAllowThreads();
28559 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28560 wxPyEndAllowThreads(__tstate);
28561 if (PyErr_Occurred()) SWIG_fail;
28562 }
28563 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28564 {
28565 if (temp7)
28566 delete arg7;
28567 }
28568 return resultobj;
28569 fail:
28570 {
28571 if (temp7)
28572 delete arg7;
28573 }
28574 return NULL;
28575 }
28576
28577
28578 SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28579 PyObject *resultobj = 0;
28580 wxPyListCtrl *result = 0 ;
28581
28582 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28583 {
28584 if (!wxPyCheckForApp()) SWIG_fail;
28585 PyThreadState* __tstate = wxPyBeginAllowThreads();
28586 result = (wxPyListCtrl *)new wxPyListCtrl();
28587 wxPyEndAllowThreads(__tstate);
28588 if (PyErr_Occurred()) SWIG_fail;
28589 }
28590 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28591 return resultobj;
28592 fail:
28593 return NULL;
28594 }
28595
28596
28597 SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28598 PyObject *resultobj = 0;
28599 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28600 wxWindow *arg2 = (wxWindow *) 0 ;
28601 int arg3 = (int) -1 ;
28602 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28603 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28604 wxSize const &arg5_defvalue = wxDefaultSize ;
28605 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28606 long arg6 = (long) wxLC_ICON ;
28607 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28608 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28609 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28610 wxString *arg8 = (wxString *) &arg8_defvalue ;
28611 bool result;
28612 void *argp1 = 0 ;
28613 int res1 = 0 ;
28614 void *argp2 = 0 ;
28615 int res2 = 0 ;
28616 int val3 ;
28617 int ecode3 = 0 ;
28618 wxPoint temp4 ;
28619 wxSize temp5 ;
28620 long val6 ;
28621 int ecode6 = 0 ;
28622 void *argp7 = 0 ;
28623 int res7 = 0 ;
28624 bool temp8 = false ;
28625 PyObject * obj0 = 0 ;
28626 PyObject * obj1 = 0 ;
28627 PyObject * obj2 = 0 ;
28628 PyObject * obj3 = 0 ;
28629 PyObject * obj4 = 0 ;
28630 PyObject * obj5 = 0 ;
28631 PyObject * obj6 = 0 ;
28632 PyObject * obj7 = 0 ;
28633 char * kwnames[] = {
28634 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28635 };
28636
28637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28639 if (!SWIG_IsOK(res1)) {
28640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28641 }
28642 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28643 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28644 if (!SWIG_IsOK(res2)) {
28645 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28646 }
28647 arg2 = reinterpret_cast< wxWindow * >(argp2);
28648 if (obj2) {
28649 ecode3 = SWIG_AsVal_int(obj2, &val3);
28650 if (!SWIG_IsOK(ecode3)) {
28651 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28652 }
28653 arg3 = static_cast< int >(val3);
28654 }
28655 if (obj3) {
28656 {
28657 arg4 = &temp4;
28658 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28659 }
28660 }
28661 if (obj4) {
28662 {
28663 arg5 = &temp5;
28664 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28665 }
28666 }
28667 if (obj5) {
28668 ecode6 = SWIG_AsVal_long(obj5, &val6);
28669 if (!SWIG_IsOK(ecode6)) {
28670 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28671 }
28672 arg6 = static_cast< long >(val6);
28673 }
28674 if (obj6) {
28675 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28676 if (!SWIG_IsOK(res7)) {
28677 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28678 }
28679 if (!argp7) {
28680 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28681 }
28682 arg7 = reinterpret_cast< wxValidator * >(argp7);
28683 }
28684 if (obj7) {
28685 {
28686 arg8 = wxString_in_helper(obj7);
28687 if (arg8 == NULL) SWIG_fail;
28688 temp8 = true;
28689 }
28690 }
28691 {
28692 PyThreadState* __tstate = wxPyBeginAllowThreads();
28693 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28694 wxPyEndAllowThreads(__tstate);
28695 if (PyErr_Occurred()) SWIG_fail;
28696 }
28697 {
28698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28699 }
28700 {
28701 if (temp8)
28702 delete arg8;
28703 }
28704 return resultobj;
28705 fail:
28706 {
28707 if (temp8)
28708 delete arg8;
28709 }
28710 return NULL;
28711 }
28712
28713
28714 SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28715 PyObject *resultobj = 0;
28716 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28717 PyObject *arg2 = (PyObject *) 0 ;
28718 PyObject *arg3 = (PyObject *) 0 ;
28719 void *argp1 = 0 ;
28720 int res1 = 0 ;
28721 PyObject * obj0 = 0 ;
28722 PyObject * obj1 = 0 ;
28723 PyObject * obj2 = 0 ;
28724 char * kwnames[] = {
28725 (char *) "self",(char *) "self",(char *) "_class", NULL
28726 };
28727
28728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28730 if (!SWIG_IsOK(res1)) {
28731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28732 }
28733 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28734 arg2 = obj1;
28735 arg3 = obj2;
28736 {
28737 PyThreadState* __tstate = wxPyBeginAllowThreads();
28738 (arg1)->_setCallbackInfo(arg2,arg3);
28739 wxPyEndAllowThreads(__tstate);
28740 if (PyErr_Occurred()) SWIG_fail;
28741 }
28742 resultobj = SWIG_Py_Void();
28743 return resultobj;
28744 fail:
28745 return NULL;
28746 }
28747
28748
28749 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28750 PyObject *resultobj = 0;
28751 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28752 int arg2 ;
28753 wxListItem *result = 0 ;
28754 void *argp1 = 0 ;
28755 int res1 = 0 ;
28756 int val2 ;
28757 int ecode2 = 0 ;
28758 PyObject * obj0 = 0 ;
28759 PyObject * obj1 = 0 ;
28760 char * kwnames[] = {
28761 (char *) "self",(char *) "col", NULL
28762 };
28763
28764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
28765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28766 if (!SWIG_IsOK(res1)) {
28767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28768 }
28769 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28770 ecode2 = SWIG_AsVal_int(obj1, &val2);
28771 if (!SWIG_IsOK(ecode2)) {
28772 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
28773 }
28774 arg2 = static_cast< int >(val2);
28775 {
28776 PyThreadState* __tstate = wxPyBeginAllowThreads();
28777 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
28778 wxPyEndAllowThreads(__tstate);
28779 if (PyErr_Occurred()) SWIG_fail;
28780 }
28781 {
28782 resultobj = wxPyMake_wxObject(result, (bool)0);
28783 }
28784 return resultobj;
28785 fail:
28786 return NULL;
28787 }
28788
28789
28790 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28791 PyObject *resultobj = 0;
28792 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28793 int arg2 ;
28794 wxListItem *arg3 = 0 ;
28795 bool result;
28796 void *argp1 = 0 ;
28797 int res1 = 0 ;
28798 int val2 ;
28799 int ecode2 = 0 ;
28800 void *argp3 = 0 ;
28801 int res3 = 0 ;
28802 PyObject * obj0 = 0 ;
28803 PyObject * obj1 = 0 ;
28804 PyObject * obj2 = 0 ;
28805 char * kwnames[] = {
28806 (char *) "self",(char *) "col",(char *) "item", NULL
28807 };
28808
28809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28811 if (!SWIG_IsOK(res1)) {
28812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28813 }
28814 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28815 ecode2 = SWIG_AsVal_int(obj1, &val2);
28816 if (!SWIG_IsOK(ecode2)) {
28817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
28818 }
28819 arg2 = static_cast< int >(val2);
28820 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
28821 if (!SWIG_IsOK(res3)) {
28822 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28823 }
28824 if (!argp3) {
28825 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28826 }
28827 arg3 = reinterpret_cast< wxListItem * >(argp3);
28828 {
28829 PyThreadState* __tstate = wxPyBeginAllowThreads();
28830 result = (bool)(arg1)->SetColumn(arg2,*arg3);
28831 wxPyEndAllowThreads(__tstate);
28832 if (PyErr_Occurred()) SWIG_fail;
28833 }
28834 {
28835 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28836 }
28837 return resultobj;
28838 fail:
28839 return NULL;
28840 }
28841
28842
28843 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28844 PyObject *resultobj = 0;
28845 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28846 int arg2 ;
28847 int result;
28848 void *argp1 = 0 ;
28849 int res1 = 0 ;
28850 int val2 ;
28851 int ecode2 = 0 ;
28852 PyObject * obj0 = 0 ;
28853 PyObject * obj1 = 0 ;
28854 char * kwnames[] = {
28855 (char *) "self",(char *) "col", NULL
28856 };
28857
28858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
28859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28860 if (!SWIG_IsOK(res1)) {
28861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28862 }
28863 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28864 ecode2 = SWIG_AsVal_int(obj1, &val2);
28865 if (!SWIG_IsOK(ecode2)) {
28866 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28867 }
28868 arg2 = static_cast< int >(val2);
28869 {
28870 PyThreadState* __tstate = wxPyBeginAllowThreads();
28871 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
28872 wxPyEndAllowThreads(__tstate);
28873 if (PyErr_Occurred()) SWIG_fail;
28874 }
28875 resultobj = SWIG_From_int(static_cast< int >(result));
28876 return resultobj;
28877 fail:
28878 return NULL;
28879 }
28880
28881
28882 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28883 PyObject *resultobj = 0;
28884 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28885 int arg2 ;
28886 int arg3 ;
28887 bool result;
28888 void *argp1 = 0 ;
28889 int res1 = 0 ;
28890 int val2 ;
28891 int ecode2 = 0 ;
28892 int val3 ;
28893 int ecode3 = 0 ;
28894 PyObject * obj0 = 0 ;
28895 PyObject * obj1 = 0 ;
28896 PyObject * obj2 = 0 ;
28897 char * kwnames[] = {
28898 (char *) "self",(char *) "col",(char *) "width", NULL
28899 };
28900
28901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28903 if (!SWIG_IsOK(res1)) {
28904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28905 }
28906 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28907 ecode2 = SWIG_AsVal_int(obj1, &val2);
28908 if (!SWIG_IsOK(ecode2)) {
28909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28910 }
28911 arg2 = static_cast< int >(val2);
28912 ecode3 = SWIG_AsVal_int(obj2, &val3);
28913 if (!SWIG_IsOK(ecode3)) {
28914 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
28915 }
28916 arg3 = static_cast< int >(val3);
28917 {
28918 PyThreadState* __tstate = wxPyBeginAllowThreads();
28919 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
28920 wxPyEndAllowThreads(__tstate);
28921 if (PyErr_Occurred()) SWIG_fail;
28922 }
28923 {
28924 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28925 }
28926 return resultobj;
28927 fail:
28928 return NULL;
28929 }
28930
28931
28932 SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28933 PyObject *resultobj = 0;
28934 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28935 int result;
28936 void *argp1 = 0 ;
28937 int res1 = 0 ;
28938 PyObject *swig_obj[1] ;
28939
28940 if (!args) SWIG_fail;
28941 swig_obj[0] = args;
28942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28943 if (!SWIG_IsOK(res1)) {
28944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28945 }
28946 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28947 {
28948 PyThreadState* __tstate = wxPyBeginAllowThreads();
28949 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
28950 wxPyEndAllowThreads(__tstate);
28951 if (PyErr_Occurred()) SWIG_fail;
28952 }
28953 resultobj = SWIG_From_int(static_cast< int >(result));
28954 return resultobj;
28955 fail:
28956 return NULL;
28957 }
28958
28959
28960 SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28961 PyObject *resultobj = 0;
28962 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28963 wxRect result;
28964 void *argp1 = 0 ;
28965 int res1 = 0 ;
28966 PyObject *swig_obj[1] ;
28967
28968 if (!args) SWIG_fail;
28969 swig_obj[0] = args;
28970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28971 if (!SWIG_IsOK(res1)) {
28972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28973 }
28974 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28975 {
28976 PyThreadState* __tstate = wxPyBeginAllowThreads();
28977 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
28978 wxPyEndAllowThreads(__tstate);
28979 if (PyErr_Occurred()) SWIG_fail;
28980 }
28981 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
28982 return resultobj;
28983 fail:
28984 return NULL;
28985 }
28986
28987
28988 SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28989 PyObject *resultobj = 0;
28990 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28991 wxTextCtrl *result = 0 ;
28992 void *argp1 = 0 ;
28993 int res1 = 0 ;
28994 PyObject *swig_obj[1] ;
28995
28996 if (!args) SWIG_fail;
28997 swig_obj[0] = args;
28998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28999 if (!SWIG_IsOK(res1)) {
29000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29001 }
29002 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29003 {
29004 PyThreadState* __tstate = wxPyBeginAllowThreads();
29005 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29006 wxPyEndAllowThreads(__tstate);
29007 if (PyErr_Occurred()) SWIG_fail;
29008 }
29009 {
29010 resultobj = wxPyMake_wxObject(result, 0);
29011 }
29012 return resultobj;
29013 fail:
29014 return NULL;
29015 }
29016
29017
29018 SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29019 PyObject *resultobj = 0;
29020 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29021 long arg2 ;
29022 int arg3 = (int) 0 ;
29023 wxListItem *result = 0 ;
29024 void *argp1 = 0 ;
29025 int res1 = 0 ;
29026 long val2 ;
29027 int ecode2 = 0 ;
29028 int val3 ;
29029 int ecode3 = 0 ;
29030 PyObject * obj0 = 0 ;
29031 PyObject * obj1 = 0 ;
29032 PyObject * obj2 = 0 ;
29033 char * kwnames[] = {
29034 (char *) "self",(char *) "itemId",(char *) "col", NULL
29035 };
29036
29037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29039 if (!SWIG_IsOK(res1)) {
29040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29041 }
29042 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29043 ecode2 = SWIG_AsVal_long(obj1, &val2);
29044 if (!SWIG_IsOK(ecode2)) {
29045 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29046 }
29047 arg2 = static_cast< long >(val2);
29048 if (obj2) {
29049 ecode3 = SWIG_AsVal_int(obj2, &val3);
29050 if (!SWIG_IsOK(ecode3)) {
29051 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29052 }
29053 arg3 = static_cast< int >(val3);
29054 }
29055 {
29056 PyThreadState* __tstate = wxPyBeginAllowThreads();
29057 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29058 wxPyEndAllowThreads(__tstate);
29059 if (PyErr_Occurred()) SWIG_fail;
29060 }
29061 {
29062 resultobj = wxPyMake_wxObject(result, (bool)0);
29063 }
29064 return resultobj;
29065 fail:
29066 return NULL;
29067 }
29068
29069
29070 SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29071 PyObject *resultobj = 0;
29072 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29073 wxListItem *arg2 = 0 ;
29074 bool result;
29075 void *argp1 = 0 ;
29076 int res1 = 0 ;
29077 void *argp2 = 0 ;
29078 int res2 = 0 ;
29079 PyObject * obj0 = 0 ;
29080 PyObject * obj1 = 0 ;
29081 char * kwnames[] = {
29082 (char *) "self",(char *) "info", NULL
29083 };
29084
29085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29087 if (!SWIG_IsOK(res1)) {
29088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29089 }
29090 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29091 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29092 if (!SWIG_IsOK(res2)) {
29093 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29094 }
29095 if (!argp2) {
29096 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29097 }
29098 arg2 = reinterpret_cast< wxListItem * >(argp2);
29099 {
29100 PyThreadState* __tstate = wxPyBeginAllowThreads();
29101 result = (bool)(arg1)->SetItem(*arg2);
29102 wxPyEndAllowThreads(__tstate);
29103 if (PyErr_Occurred()) SWIG_fail;
29104 }
29105 {
29106 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29107 }
29108 return resultobj;
29109 fail:
29110 return NULL;
29111 }
29112
29113
29114 SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29115 PyObject *resultobj = 0;
29116 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29117 long arg2 ;
29118 int arg3 ;
29119 wxString *arg4 = 0 ;
29120 int arg5 = (int) -1 ;
29121 long result;
29122 void *argp1 = 0 ;
29123 int res1 = 0 ;
29124 long val2 ;
29125 int ecode2 = 0 ;
29126 int val3 ;
29127 int ecode3 = 0 ;
29128 bool temp4 = false ;
29129 int val5 ;
29130 int ecode5 = 0 ;
29131 PyObject * obj0 = 0 ;
29132 PyObject * obj1 = 0 ;
29133 PyObject * obj2 = 0 ;
29134 PyObject * obj3 = 0 ;
29135 PyObject * obj4 = 0 ;
29136 char * kwnames[] = {
29137 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29138 };
29139
29140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29142 if (!SWIG_IsOK(res1)) {
29143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29144 }
29145 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29146 ecode2 = SWIG_AsVal_long(obj1, &val2);
29147 if (!SWIG_IsOK(ecode2)) {
29148 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29149 }
29150 arg2 = static_cast< long >(val2);
29151 ecode3 = SWIG_AsVal_int(obj2, &val3);
29152 if (!SWIG_IsOK(ecode3)) {
29153 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29154 }
29155 arg3 = static_cast< int >(val3);
29156 {
29157 arg4 = wxString_in_helper(obj3);
29158 if (arg4 == NULL) SWIG_fail;
29159 temp4 = true;
29160 }
29161 if (obj4) {
29162 ecode5 = SWIG_AsVal_int(obj4, &val5);
29163 if (!SWIG_IsOK(ecode5)) {
29164 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29165 }
29166 arg5 = static_cast< int >(val5);
29167 }
29168 {
29169 PyThreadState* __tstate = wxPyBeginAllowThreads();
29170 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29171 wxPyEndAllowThreads(__tstate);
29172 if (PyErr_Occurred()) SWIG_fail;
29173 }
29174 resultobj = SWIG_From_long(static_cast< long >(result));
29175 {
29176 if (temp4)
29177 delete arg4;
29178 }
29179 return resultobj;
29180 fail:
29181 {
29182 if (temp4)
29183 delete arg4;
29184 }
29185 return NULL;
29186 }
29187
29188
29189 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29190 PyObject *resultobj = 0;
29191 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29192 long arg2 ;
29193 long arg3 ;
29194 int result;
29195 void *argp1 = 0 ;
29196 int res1 = 0 ;
29197 long val2 ;
29198 int ecode2 = 0 ;
29199 long val3 ;
29200 int ecode3 = 0 ;
29201 PyObject * obj0 = 0 ;
29202 PyObject * obj1 = 0 ;
29203 PyObject * obj2 = 0 ;
29204 char * kwnames[] = {
29205 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29206 };
29207
29208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29210 if (!SWIG_IsOK(res1)) {
29211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29212 }
29213 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29214 ecode2 = SWIG_AsVal_long(obj1, &val2);
29215 if (!SWIG_IsOK(ecode2)) {
29216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29217 }
29218 arg2 = static_cast< long >(val2);
29219 ecode3 = SWIG_AsVal_long(obj2, &val3);
29220 if (!SWIG_IsOK(ecode3)) {
29221 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29222 }
29223 arg3 = static_cast< long >(val3);
29224 {
29225 PyThreadState* __tstate = wxPyBeginAllowThreads();
29226 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29227 wxPyEndAllowThreads(__tstate);
29228 if (PyErr_Occurred()) SWIG_fail;
29229 }
29230 resultobj = SWIG_From_int(static_cast< int >(result));
29231 return resultobj;
29232 fail:
29233 return NULL;
29234 }
29235
29236
29237 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29238 PyObject *resultobj = 0;
29239 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29240 long arg2 ;
29241 long arg3 ;
29242 long arg4 ;
29243 bool result;
29244 void *argp1 = 0 ;
29245 int res1 = 0 ;
29246 long val2 ;
29247 int ecode2 = 0 ;
29248 long val3 ;
29249 int ecode3 = 0 ;
29250 long val4 ;
29251 int ecode4 = 0 ;
29252 PyObject * obj0 = 0 ;
29253 PyObject * obj1 = 0 ;
29254 PyObject * obj2 = 0 ;
29255 PyObject * obj3 = 0 ;
29256 char * kwnames[] = {
29257 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29258 };
29259
29260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29262 if (!SWIG_IsOK(res1)) {
29263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29264 }
29265 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29266 ecode2 = SWIG_AsVal_long(obj1, &val2);
29267 if (!SWIG_IsOK(ecode2)) {
29268 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29269 }
29270 arg2 = static_cast< long >(val2);
29271 ecode3 = SWIG_AsVal_long(obj2, &val3);
29272 if (!SWIG_IsOK(ecode3)) {
29273 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29274 }
29275 arg3 = static_cast< long >(val3);
29276 ecode4 = SWIG_AsVal_long(obj3, &val4);
29277 if (!SWIG_IsOK(ecode4)) {
29278 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29279 }
29280 arg4 = static_cast< long >(val4);
29281 {
29282 PyThreadState* __tstate = wxPyBeginAllowThreads();
29283 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29284 wxPyEndAllowThreads(__tstate);
29285 if (PyErr_Occurred()) SWIG_fail;
29286 }
29287 {
29288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29289 }
29290 return resultobj;
29291 fail:
29292 return NULL;
29293 }
29294
29295
29296 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29297 PyObject *resultobj = 0;
29298 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29299 long arg2 ;
29300 int arg3 ;
29301 int arg4 = (int) -1 ;
29302 bool result;
29303 void *argp1 = 0 ;
29304 int res1 = 0 ;
29305 long val2 ;
29306 int ecode2 = 0 ;
29307 int val3 ;
29308 int ecode3 = 0 ;
29309 int val4 ;
29310 int ecode4 = 0 ;
29311 PyObject * obj0 = 0 ;
29312 PyObject * obj1 = 0 ;
29313 PyObject * obj2 = 0 ;
29314 PyObject * obj3 = 0 ;
29315 char * kwnames[] = {
29316 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29317 };
29318
29319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29321 if (!SWIG_IsOK(res1)) {
29322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29323 }
29324 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29325 ecode2 = SWIG_AsVal_long(obj1, &val2);
29326 if (!SWIG_IsOK(ecode2)) {
29327 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29328 }
29329 arg2 = static_cast< long >(val2);
29330 ecode3 = SWIG_AsVal_int(obj2, &val3);
29331 if (!SWIG_IsOK(ecode3)) {
29332 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29333 }
29334 arg3 = static_cast< int >(val3);
29335 if (obj3) {
29336 ecode4 = SWIG_AsVal_int(obj3, &val4);
29337 if (!SWIG_IsOK(ecode4)) {
29338 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29339 }
29340 arg4 = static_cast< int >(val4);
29341 }
29342 {
29343 PyThreadState* __tstate = wxPyBeginAllowThreads();
29344 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29345 wxPyEndAllowThreads(__tstate);
29346 if (PyErr_Occurred()) SWIG_fail;
29347 }
29348 {
29349 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29350 }
29351 return resultobj;
29352 fail:
29353 return NULL;
29354 }
29355
29356
29357 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29358 PyObject *resultobj = 0;
29359 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29360 long arg2 ;
29361 long arg3 ;
29362 int arg4 ;
29363 bool result;
29364 void *argp1 = 0 ;
29365 int res1 = 0 ;
29366 long val2 ;
29367 int ecode2 = 0 ;
29368 long val3 ;
29369 int ecode3 = 0 ;
29370 int val4 ;
29371 int ecode4 = 0 ;
29372 PyObject * obj0 = 0 ;
29373 PyObject * obj1 = 0 ;
29374 PyObject * obj2 = 0 ;
29375 PyObject * obj3 = 0 ;
29376 char * kwnames[] = {
29377 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29378 };
29379
29380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29382 if (!SWIG_IsOK(res1)) {
29383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29384 }
29385 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29386 ecode2 = SWIG_AsVal_long(obj1, &val2);
29387 if (!SWIG_IsOK(ecode2)) {
29388 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29389 }
29390 arg2 = static_cast< long >(val2);
29391 ecode3 = SWIG_AsVal_long(obj2, &val3);
29392 if (!SWIG_IsOK(ecode3)) {
29393 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29394 }
29395 arg3 = static_cast< long >(val3);
29396 ecode4 = SWIG_AsVal_int(obj3, &val4);
29397 if (!SWIG_IsOK(ecode4)) {
29398 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29399 }
29400 arg4 = static_cast< int >(val4);
29401 {
29402 PyThreadState* __tstate = wxPyBeginAllowThreads();
29403 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29404 wxPyEndAllowThreads(__tstate);
29405 if (PyErr_Occurred()) SWIG_fail;
29406 }
29407 {
29408 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29409 }
29410 return resultobj;
29411 fail:
29412 return NULL;
29413 }
29414
29415
29416 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29417 PyObject *resultobj = 0;
29418 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29419 long arg2 ;
29420 wxString result;
29421 void *argp1 = 0 ;
29422 int res1 = 0 ;
29423 long val2 ;
29424 int ecode2 = 0 ;
29425 PyObject * obj0 = 0 ;
29426 PyObject * obj1 = 0 ;
29427 char * kwnames[] = {
29428 (char *) "self",(char *) "item", NULL
29429 };
29430
29431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29433 if (!SWIG_IsOK(res1)) {
29434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29435 }
29436 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29437 ecode2 = SWIG_AsVal_long(obj1, &val2);
29438 if (!SWIG_IsOK(ecode2)) {
29439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29440 }
29441 arg2 = static_cast< long >(val2);
29442 {
29443 PyThreadState* __tstate = wxPyBeginAllowThreads();
29444 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29445 wxPyEndAllowThreads(__tstate);
29446 if (PyErr_Occurred()) SWIG_fail;
29447 }
29448 {
29449 #if wxUSE_UNICODE
29450 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29451 #else
29452 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29453 #endif
29454 }
29455 return resultobj;
29456 fail:
29457 return NULL;
29458 }
29459
29460
29461 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29462 PyObject *resultobj = 0;
29463 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29464 long arg2 ;
29465 wxString *arg3 = 0 ;
29466 void *argp1 = 0 ;
29467 int res1 = 0 ;
29468 long val2 ;
29469 int ecode2 = 0 ;
29470 bool temp3 = false ;
29471 PyObject * obj0 = 0 ;
29472 PyObject * obj1 = 0 ;
29473 PyObject * obj2 = 0 ;
29474 char * kwnames[] = {
29475 (char *) "self",(char *) "item",(char *) "str", NULL
29476 };
29477
29478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29480 if (!SWIG_IsOK(res1)) {
29481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29482 }
29483 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29484 ecode2 = SWIG_AsVal_long(obj1, &val2);
29485 if (!SWIG_IsOK(ecode2)) {
29486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29487 }
29488 arg2 = static_cast< long >(val2);
29489 {
29490 arg3 = wxString_in_helper(obj2);
29491 if (arg3 == NULL) SWIG_fail;
29492 temp3 = true;
29493 }
29494 {
29495 PyThreadState* __tstate = wxPyBeginAllowThreads();
29496 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29497 wxPyEndAllowThreads(__tstate);
29498 if (PyErr_Occurred()) SWIG_fail;
29499 }
29500 resultobj = SWIG_Py_Void();
29501 {
29502 if (temp3)
29503 delete arg3;
29504 }
29505 return resultobj;
29506 fail:
29507 {
29508 if (temp3)
29509 delete arg3;
29510 }
29511 return NULL;
29512 }
29513
29514
29515 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29516 PyObject *resultobj = 0;
29517 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29518 long arg2 ;
29519 long result;
29520 void *argp1 = 0 ;
29521 int res1 = 0 ;
29522 long val2 ;
29523 int ecode2 = 0 ;
29524 PyObject * obj0 = 0 ;
29525 PyObject * obj1 = 0 ;
29526 char * kwnames[] = {
29527 (char *) "self",(char *) "item", NULL
29528 };
29529
29530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29532 if (!SWIG_IsOK(res1)) {
29533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29534 }
29535 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29536 ecode2 = SWIG_AsVal_long(obj1, &val2);
29537 if (!SWIG_IsOK(ecode2)) {
29538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29539 }
29540 arg2 = static_cast< long >(val2);
29541 {
29542 PyThreadState* __tstate = wxPyBeginAllowThreads();
29543 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29544 wxPyEndAllowThreads(__tstate);
29545 if (PyErr_Occurred()) SWIG_fail;
29546 }
29547 resultobj = SWIG_From_long(static_cast< long >(result));
29548 return resultobj;
29549 fail:
29550 return NULL;
29551 }
29552
29553
29554 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29555 PyObject *resultobj = 0;
29556 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29557 long arg2 ;
29558 long arg3 ;
29559 bool result;
29560 void *argp1 = 0 ;
29561 int res1 = 0 ;
29562 long val2 ;
29563 int ecode2 = 0 ;
29564 long val3 ;
29565 int ecode3 = 0 ;
29566 PyObject * obj0 = 0 ;
29567 PyObject * obj1 = 0 ;
29568 PyObject * obj2 = 0 ;
29569 char * kwnames[] = {
29570 (char *) "self",(char *) "item",(char *) "data", NULL
29571 };
29572
29573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29575 if (!SWIG_IsOK(res1)) {
29576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29577 }
29578 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29579 ecode2 = SWIG_AsVal_long(obj1, &val2);
29580 if (!SWIG_IsOK(ecode2)) {
29581 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29582 }
29583 arg2 = static_cast< long >(val2);
29584 ecode3 = SWIG_AsVal_long(obj2, &val3);
29585 if (!SWIG_IsOK(ecode3)) {
29586 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29587 }
29588 arg3 = static_cast< long >(val3);
29589 {
29590 PyThreadState* __tstate = wxPyBeginAllowThreads();
29591 result = (bool)(arg1)->SetItemData(arg2,arg3);
29592 wxPyEndAllowThreads(__tstate);
29593 if (PyErr_Occurred()) SWIG_fail;
29594 }
29595 {
29596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29597 }
29598 return resultobj;
29599 fail:
29600 return NULL;
29601 }
29602
29603
29604 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29605 PyObject *resultobj = 0;
29606 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29607 long arg2 ;
29608 wxPoint result;
29609 void *argp1 = 0 ;
29610 int res1 = 0 ;
29611 long val2 ;
29612 int ecode2 = 0 ;
29613 PyObject * obj0 = 0 ;
29614 PyObject * obj1 = 0 ;
29615 char * kwnames[] = {
29616 (char *) "self",(char *) "item", NULL
29617 };
29618
29619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29621 if (!SWIG_IsOK(res1)) {
29622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29623 }
29624 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29625 ecode2 = SWIG_AsVal_long(obj1, &val2);
29626 if (!SWIG_IsOK(ecode2)) {
29627 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29628 }
29629 arg2 = static_cast< long >(val2);
29630 {
29631 PyThreadState* __tstate = wxPyBeginAllowThreads();
29632 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29633 wxPyEndAllowThreads(__tstate);
29634 if (PyErr_Occurred()) SWIG_fail;
29635 }
29636 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29637 return resultobj;
29638 fail:
29639 return NULL;
29640 }
29641
29642
29643 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29644 PyObject *resultobj = 0;
29645 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29646 long arg2 ;
29647 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29648 wxRect result;
29649 void *argp1 = 0 ;
29650 int res1 = 0 ;
29651 long val2 ;
29652 int ecode2 = 0 ;
29653 int val3 ;
29654 int ecode3 = 0 ;
29655 PyObject * obj0 = 0 ;
29656 PyObject * obj1 = 0 ;
29657 PyObject * obj2 = 0 ;
29658 char * kwnames[] = {
29659 (char *) "self",(char *) "item",(char *) "code", NULL
29660 };
29661
29662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29664 if (!SWIG_IsOK(res1)) {
29665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29666 }
29667 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29668 ecode2 = SWIG_AsVal_long(obj1, &val2);
29669 if (!SWIG_IsOK(ecode2)) {
29670 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29671 }
29672 arg2 = static_cast< long >(val2);
29673 if (obj2) {
29674 ecode3 = SWIG_AsVal_int(obj2, &val3);
29675 if (!SWIG_IsOK(ecode3)) {
29676 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29677 }
29678 arg3 = static_cast< int >(val3);
29679 }
29680 {
29681 PyThreadState* __tstate = wxPyBeginAllowThreads();
29682 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29683 wxPyEndAllowThreads(__tstate);
29684 if (PyErr_Occurred()) SWIG_fail;
29685 }
29686 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29687 return resultobj;
29688 fail:
29689 return NULL;
29690 }
29691
29692
29693 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29694 PyObject *resultobj = 0;
29695 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29696 long arg2 ;
29697 wxPoint *arg3 = 0 ;
29698 bool result;
29699 void *argp1 = 0 ;
29700 int res1 = 0 ;
29701 long val2 ;
29702 int ecode2 = 0 ;
29703 wxPoint temp3 ;
29704 PyObject * obj0 = 0 ;
29705 PyObject * obj1 = 0 ;
29706 PyObject * obj2 = 0 ;
29707 char * kwnames[] = {
29708 (char *) "self",(char *) "item",(char *) "pos", NULL
29709 };
29710
29711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29713 if (!SWIG_IsOK(res1)) {
29714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29715 }
29716 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29717 ecode2 = SWIG_AsVal_long(obj1, &val2);
29718 if (!SWIG_IsOK(ecode2)) {
29719 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
29720 }
29721 arg2 = static_cast< long >(val2);
29722 {
29723 arg3 = &temp3;
29724 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29725 }
29726 {
29727 PyThreadState* __tstate = wxPyBeginAllowThreads();
29728 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
29729 wxPyEndAllowThreads(__tstate);
29730 if (PyErr_Occurred()) SWIG_fail;
29731 }
29732 {
29733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29734 }
29735 return resultobj;
29736 fail:
29737 return NULL;
29738 }
29739
29740
29741 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29742 PyObject *resultobj = 0;
29743 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29744 int result;
29745 void *argp1 = 0 ;
29746 int res1 = 0 ;
29747 PyObject *swig_obj[1] ;
29748
29749 if (!args) SWIG_fail;
29750 swig_obj[0] = args;
29751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29752 if (!SWIG_IsOK(res1)) {
29753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29754 }
29755 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29756 {
29757 PyThreadState* __tstate = wxPyBeginAllowThreads();
29758 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
29759 wxPyEndAllowThreads(__tstate);
29760 if (PyErr_Occurred()) SWIG_fail;
29761 }
29762 resultobj = SWIG_From_int(static_cast< int >(result));
29763 return resultobj;
29764 fail:
29765 return NULL;
29766 }
29767
29768
29769 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29770 PyObject *resultobj = 0;
29771 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29772 int result;
29773 void *argp1 = 0 ;
29774 int res1 = 0 ;
29775 PyObject *swig_obj[1] ;
29776
29777 if (!args) SWIG_fail;
29778 swig_obj[0] = args;
29779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29780 if (!SWIG_IsOK(res1)) {
29781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29782 }
29783 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29784 {
29785 PyThreadState* __tstate = wxPyBeginAllowThreads();
29786 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
29787 wxPyEndAllowThreads(__tstate);
29788 if (PyErr_Occurred()) SWIG_fail;
29789 }
29790 resultobj = SWIG_From_int(static_cast< int >(result));
29791 return resultobj;
29792 fail:
29793 return NULL;
29794 }
29795
29796
29797 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29798 PyObject *resultobj = 0;
29799 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29800 wxSize result;
29801 void *argp1 = 0 ;
29802 int res1 = 0 ;
29803 PyObject *swig_obj[1] ;
29804
29805 if (!args) SWIG_fail;
29806 swig_obj[0] = args;
29807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29808 if (!SWIG_IsOK(res1)) {
29809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29810 }
29811 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29812 {
29813 PyThreadState* __tstate = wxPyBeginAllowThreads();
29814 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
29815 wxPyEndAllowThreads(__tstate);
29816 if (PyErr_Occurred()) SWIG_fail;
29817 }
29818 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
29819 return resultobj;
29820 fail:
29821 return NULL;
29822 }
29823
29824
29825 SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29826 PyObject *resultobj = 0;
29827 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29828 int result;
29829 void *argp1 = 0 ;
29830 int res1 = 0 ;
29831 PyObject *swig_obj[1] ;
29832
29833 if (!args) SWIG_fail;
29834 swig_obj[0] = args;
29835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29836 if (!SWIG_IsOK(res1)) {
29837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29838 }
29839 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29840 {
29841 PyThreadState* __tstate = wxPyBeginAllowThreads();
29842 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
29843 wxPyEndAllowThreads(__tstate);
29844 if (PyErr_Occurred()) SWIG_fail;
29845 }
29846 resultobj = SWIG_From_int(static_cast< int >(result));
29847 return resultobj;
29848 fail:
29849 return NULL;
29850 }
29851
29852
29853 SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29854 PyObject *resultobj = 0;
29855 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29856 wxColour result;
29857 void *argp1 = 0 ;
29858 int res1 = 0 ;
29859 PyObject *swig_obj[1] ;
29860
29861 if (!args) SWIG_fail;
29862 swig_obj[0] = args;
29863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29864 if (!SWIG_IsOK(res1)) {
29865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29866 }
29867 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29868 {
29869 PyThreadState* __tstate = wxPyBeginAllowThreads();
29870 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
29871 wxPyEndAllowThreads(__tstate);
29872 if (PyErr_Occurred()) SWIG_fail;
29873 }
29874 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29875 return resultobj;
29876 fail:
29877 return NULL;
29878 }
29879
29880
29881 SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29882 PyObject *resultobj = 0;
29883 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29884 wxColour *arg2 = 0 ;
29885 void *argp1 = 0 ;
29886 int res1 = 0 ;
29887 wxColour temp2 ;
29888 PyObject * obj0 = 0 ;
29889 PyObject * obj1 = 0 ;
29890 char * kwnames[] = {
29891 (char *) "self",(char *) "col", NULL
29892 };
29893
29894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
29895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29896 if (!SWIG_IsOK(res1)) {
29897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29898 }
29899 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29900 {
29901 arg2 = &temp2;
29902 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29903 }
29904 {
29905 PyThreadState* __tstate = wxPyBeginAllowThreads();
29906 (arg1)->SetTextColour((wxColour const &)*arg2);
29907 wxPyEndAllowThreads(__tstate);
29908 if (PyErr_Occurred()) SWIG_fail;
29909 }
29910 resultobj = SWIG_Py_Void();
29911 return resultobj;
29912 fail:
29913 return NULL;
29914 }
29915
29916
29917 SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29918 PyObject *resultobj = 0;
29919 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29920 long result;
29921 void *argp1 = 0 ;
29922 int res1 = 0 ;
29923 PyObject *swig_obj[1] ;
29924
29925 if (!args) SWIG_fail;
29926 swig_obj[0] = args;
29927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29928 if (!SWIG_IsOK(res1)) {
29929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29930 }
29931 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29932 {
29933 PyThreadState* __tstate = wxPyBeginAllowThreads();
29934 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
29935 wxPyEndAllowThreads(__tstate);
29936 if (PyErr_Occurred()) SWIG_fail;
29937 }
29938 resultobj = SWIG_From_long(static_cast< long >(result));
29939 return resultobj;
29940 fail:
29941 return NULL;
29942 }
29943
29944
29945 SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29946 PyObject *resultobj = 0;
29947 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29948 long arg2 ;
29949 bool arg3 = (bool) true ;
29950 void *argp1 = 0 ;
29951 int res1 = 0 ;
29952 long val2 ;
29953 int ecode2 = 0 ;
29954 bool val3 ;
29955 int ecode3 = 0 ;
29956 PyObject * obj0 = 0 ;
29957 PyObject * obj1 = 0 ;
29958 PyObject * obj2 = 0 ;
29959 char * kwnames[] = {
29960 (char *) "self",(char *) "style",(char *) "add", NULL
29961 };
29962
29963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29965 if (!SWIG_IsOK(res1)) {
29966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29967 }
29968 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29969 ecode2 = SWIG_AsVal_long(obj1, &val2);
29970 if (!SWIG_IsOK(ecode2)) {
29971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
29972 }
29973 arg2 = static_cast< long >(val2);
29974 if (obj2) {
29975 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29976 if (!SWIG_IsOK(ecode3)) {
29977 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
29978 }
29979 arg3 = static_cast< bool >(val3);
29980 }
29981 {
29982 PyThreadState* __tstate = wxPyBeginAllowThreads();
29983 (arg1)->SetSingleStyle(arg2,arg3);
29984 wxPyEndAllowThreads(__tstate);
29985 if (PyErr_Occurred()) SWIG_fail;
29986 }
29987 resultobj = SWIG_Py_Void();
29988 return resultobj;
29989 fail:
29990 return NULL;
29991 }
29992
29993
29994 SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29995 PyObject *resultobj = 0;
29996 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29997 long arg2 ;
29998 int arg3 = (int) wxLIST_NEXT_ALL ;
29999 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30000 long result;
30001 void *argp1 = 0 ;
30002 int res1 = 0 ;
30003 long val2 ;
30004 int ecode2 = 0 ;
30005 int val3 ;
30006 int ecode3 = 0 ;
30007 int val4 ;
30008 int ecode4 = 0 ;
30009 PyObject * obj0 = 0 ;
30010 PyObject * obj1 = 0 ;
30011 PyObject * obj2 = 0 ;
30012 PyObject * obj3 = 0 ;
30013 char * kwnames[] = {
30014 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30015 };
30016
30017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30019 if (!SWIG_IsOK(res1)) {
30020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30021 }
30022 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30023 ecode2 = SWIG_AsVal_long(obj1, &val2);
30024 if (!SWIG_IsOK(ecode2)) {
30025 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30026 }
30027 arg2 = static_cast< long >(val2);
30028 if (obj2) {
30029 ecode3 = SWIG_AsVal_int(obj2, &val3);
30030 if (!SWIG_IsOK(ecode3)) {
30031 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30032 }
30033 arg3 = static_cast< int >(val3);
30034 }
30035 if (obj3) {
30036 ecode4 = SWIG_AsVal_int(obj3, &val4);
30037 if (!SWIG_IsOK(ecode4)) {
30038 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30039 }
30040 arg4 = static_cast< int >(val4);
30041 }
30042 {
30043 PyThreadState* __tstate = wxPyBeginAllowThreads();
30044 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30045 wxPyEndAllowThreads(__tstate);
30046 if (PyErr_Occurred()) SWIG_fail;
30047 }
30048 resultobj = SWIG_From_long(static_cast< long >(result));
30049 return resultobj;
30050 fail:
30051 return NULL;
30052 }
30053
30054
30055 SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30056 PyObject *resultobj = 0;
30057 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30058 int arg2 ;
30059 wxImageList *result = 0 ;
30060 void *argp1 = 0 ;
30061 int res1 = 0 ;
30062 int val2 ;
30063 int ecode2 = 0 ;
30064 PyObject * obj0 = 0 ;
30065 PyObject * obj1 = 0 ;
30066 char * kwnames[] = {
30067 (char *) "self",(char *) "which", NULL
30068 };
30069
30070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30072 if (!SWIG_IsOK(res1)) {
30073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30074 }
30075 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30076 ecode2 = SWIG_AsVal_int(obj1, &val2);
30077 if (!SWIG_IsOK(ecode2)) {
30078 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30079 }
30080 arg2 = static_cast< int >(val2);
30081 {
30082 PyThreadState* __tstate = wxPyBeginAllowThreads();
30083 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30084 wxPyEndAllowThreads(__tstate);
30085 if (PyErr_Occurred()) SWIG_fail;
30086 }
30087 {
30088 resultobj = wxPyMake_wxObject(result, (bool)0);
30089 }
30090 return resultobj;
30091 fail:
30092 return NULL;
30093 }
30094
30095
30096 SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30097 PyObject *resultobj = 0;
30098 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30099 wxImageList *arg2 = (wxImageList *) 0 ;
30100 int arg3 ;
30101 void *argp1 = 0 ;
30102 int res1 = 0 ;
30103 void *argp2 = 0 ;
30104 int res2 = 0 ;
30105 int val3 ;
30106 int ecode3 = 0 ;
30107 PyObject * obj0 = 0 ;
30108 PyObject * obj1 = 0 ;
30109 PyObject * obj2 = 0 ;
30110 char * kwnames[] = {
30111 (char *) "self",(char *) "imageList",(char *) "which", NULL
30112 };
30113
30114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30116 if (!SWIG_IsOK(res1)) {
30117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30118 }
30119 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30120 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30121 if (!SWIG_IsOK(res2)) {
30122 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30123 }
30124 arg2 = reinterpret_cast< wxImageList * >(argp2);
30125 ecode3 = SWIG_AsVal_int(obj2, &val3);
30126 if (!SWIG_IsOK(ecode3)) {
30127 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30128 }
30129 arg3 = static_cast< int >(val3);
30130 {
30131 PyThreadState* __tstate = wxPyBeginAllowThreads();
30132 (arg1)->SetImageList(arg2,arg3);
30133 wxPyEndAllowThreads(__tstate);
30134 if (PyErr_Occurred()) SWIG_fail;
30135 }
30136 resultobj = SWIG_Py_Void();
30137 return resultobj;
30138 fail:
30139 return NULL;
30140 }
30141
30142
30143 SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30144 PyObject *resultobj = 0;
30145 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30146 wxImageList *arg2 = (wxImageList *) 0 ;
30147 int arg3 ;
30148 void *argp1 = 0 ;
30149 int res1 = 0 ;
30150 int res2 = 0 ;
30151 int val3 ;
30152 int ecode3 = 0 ;
30153 PyObject * obj0 = 0 ;
30154 PyObject * obj1 = 0 ;
30155 PyObject * obj2 = 0 ;
30156 char * kwnames[] = {
30157 (char *) "self",(char *) "imageList",(char *) "which", NULL
30158 };
30159
30160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30162 if (!SWIG_IsOK(res1)) {
30163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30164 }
30165 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30166 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30167 if (!SWIG_IsOK(res2)) {
30168 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30169 }
30170 ecode3 = SWIG_AsVal_int(obj2, &val3);
30171 if (!SWIG_IsOK(ecode3)) {
30172 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30173 }
30174 arg3 = static_cast< int >(val3);
30175 {
30176 PyThreadState* __tstate = wxPyBeginAllowThreads();
30177 (arg1)->AssignImageList(arg2,arg3);
30178 wxPyEndAllowThreads(__tstate);
30179 if (PyErr_Occurred()) SWIG_fail;
30180 }
30181 resultobj = SWIG_Py_Void();
30182 return resultobj;
30183 fail:
30184 return NULL;
30185 }
30186
30187
30188 SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30189 PyObject *resultobj = 0;
30190 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30191 bool result;
30192 void *argp1 = 0 ;
30193 int res1 = 0 ;
30194 PyObject *swig_obj[1] ;
30195
30196 if (!args) SWIG_fail;
30197 swig_obj[0] = args;
30198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30199 if (!SWIG_IsOK(res1)) {
30200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30201 }
30202 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30203 {
30204 PyThreadState* __tstate = wxPyBeginAllowThreads();
30205 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30206 wxPyEndAllowThreads(__tstate);
30207 if (PyErr_Occurred()) SWIG_fail;
30208 }
30209 {
30210 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30211 }
30212 return resultobj;
30213 fail:
30214 return NULL;
30215 }
30216
30217
30218 SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30219 PyObject *resultobj = 0;
30220 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30221 bool result;
30222 void *argp1 = 0 ;
30223 int res1 = 0 ;
30224 PyObject *swig_obj[1] ;
30225
30226 if (!args) SWIG_fail;
30227 swig_obj[0] = args;
30228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30229 if (!SWIG_IsOK(res1)) {
30230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30231 }
30232 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30233 {
30234 PyThreadState* __tstate = wxPyBeginAllowThreads();
30235 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30236 wxPyEndAllowThreads(__tstate);
30237 if (PyErr_Occurred()) SWIG_fail;
30238 }
30239 {
30240 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30241 }
30242 return resultobj;
30243 fail:
30244 return NULL;
30245 }
30246
30247
30248 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30249 PyObject *resultobj = 0;
30250 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30251 long arg2 ;
30252 void *argp1 = 0 ;
30253 int res1 = 0 ;
30254 long val2 ;
30255 int ecode2 = 0 ;
30256 PyObject * obj0 = 0 ;
30257 PyObject * obj1 = 0 ;
30258 char * kwnames[] = {
30259 (char *) "self",(char *) "item", NULL
30260 };
30261
30262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30264 if (!SWIG_IsOK(res1)) {
30265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30266 }
30267 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30268 ecode2 = SWIG_AsVal_long(obj1, &val2);
30269 if (!SWIG_IsOK(ecode2)) {
30270 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30271 }
30272 arg2 = static_cast< long >(val2);
30273 {
30274 PyThreadState* __tstate = wxPyBeginAllowThreads();
30275 (arg1)->RefreshItem(arg2);
30276 wxPyEndAllowThreads(__tstate);
30277 if (PyErr_Occurred()) SWIG_fail;
30278 }
30279 resultobj = SWIG_Py_Void();
30280 return resultobj;
30281 fail:
30282 return NULL;
30283 }
30284
30285
30286 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30287 PyObject *resultobj = 0;
30288 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30289 long arg2 ;
30290 long arg3 ;
30291 void *argp1 = 0 ;
30292 int res1 = 0 ;
30293 long val2 ;
30294 int ecode2 = 0 ;
30295 long val3 ;
30296 int ecode3 = 0 ;
30297 PyObject * obj0 = 0 ;
30298 PyObject * obj1 = 0 ;
30299 PyObject * obj2 = 0 ;
30300 char * kwnames[] = {
30301 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30302 };
30303
30304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30306 if (!SWIG_IsOK(res1)) {
30307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30308 }
30309 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30310 ecode2 = SWIG_AsVal_long(obj1, &val2);
30311 if (!SWIG_IsOK(ecode2)) {
30312 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30313 }
30314 arg2 = static_cast< long >(val2);
30315 ecode3 = SWIG_AsVal_long(obj2, &val3);
30316 if (!SWIG_IsOK(ecode3)) {
30317 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30318 }
30319 arg3 = static_cast< long >(val3);
30320 {
30321 PyThreadState* __tstate = wxPyBeginAllowThreads();
30322 (arg1)->RefreshItems(arg2,arg3);
30323 wxPyEndAllowThreads(__tstate);
30324 if (PyErr_Occurred()) SWIG_fail;
30325 }
30326 resultobj = SWIG_Py_Void();
30327 return resultobj;
30328 fail:
30329 return NULL;
30330 }
30331
30332
30333 SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30334 PyObject *resultobj = 0;
30335 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30336 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30337 bool result;
30338 void *argp1 = 0 ;
30339 int res1 = 0 ;
30340 int val2 ;
30341 int ecode2 = 0 ;
30342 PyObject * obj0 = 0 ;
30343 PyObject * obj1 = 0 ;
30344 char * kwnames[] = {
30345 (char *) "self",(char *) "flag", NULL
30346 };
30347
30348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30350 if (!SWIG_IsOK(res1)) {
30351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30352 }
30353 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30354 if (obj1) {
30355 ecode2 = SWIG_AsVal_int(obj1, &val2);
30356 if (!SWIG_IsOK(ecode2)) {
30357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30358 }
30359 arg2 = static_cast< int >(val2);
30360 }
30361 {
30362 PyThreadState* __tstate = wxPyBeginAllowThreads();
30363 result = (bool)(arg1)->Arrange(arg2);
30364 wxPyEndAllowThreads(__tstate);
30365 if (PyErr_Occurred()) SWIG_fail;
30366 }
30367 {
30368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30369 }
30370 return resultobj;
30371 fail:
30372 return NULL;
30373 }
30374
30375
30376 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30377 PyObject *resultobj = 0;
30378 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30379 long arg2 ;
30380 bool result;
30381 void *argp1 = 0 ;
30382 int res1 = 0 ;
30383 long val2 ;
30384 int ecode2 = 0 ;
30385 PyObject * obj0 = 0 ;
30386 PyObject * obj1 = 0 ;
30387 char * kwnames[] = {
30388 (char *) "self",(char *) "item", NULL
30389 };
30390
30391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30393 if (!SWIG_IsOK(res1)) {
30394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30395 }
30396 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30397 ecode2 = SWIG_AsVal_long(obj1, &val2);
30398 if (!SWIG_IsOK(ecode2)) {
30399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30400 }
30401 arg2 = static_cast< long >(val2);
30402 {
30403 PyThreadState* __tstate = wxPyBeginAllowThreads();
30404 result = (bool)(arg1)->DeleteItem(arg2);
30405 wxPyEndAllowThreads(__tstate);
30406 if (PyErr_Occurred()) SWIG_fail;
30407 }
30408 {
30409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30410 }
30411 return resultobj;
30412 fail:
30413 return NULL;
30414 }
30415
30416
30417 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30418 PyObject *resultobj = 0;
30419 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30420 bool result;
30421 void *argp1 = 0 ;
30422 int res1 = 0 ;
30423 PyObject *swig_obj[1] ;
30424
30425 if (!args) SWIG_fail;
30426 swig_obj[0] = args;
30427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30428 if (!SWIG_IsOK(res1)) {
30429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30430 }
30431 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30432 {
30433 PyThreadState* __tstate = wxPyBeginAllowThreads();
30434 result = (bool)(arg1)->DeleteAllItems();
30435 wxPyEndAllowThreads(__tstate);
30436 if (PyErr_Occurred()) SWIG_fail;
30437 }
30438 {
30439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30440 }
30441 return resultobj;
30442 fail:
30443 return NULL;
30444 }
30445
30446
30447 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30448 PyObject *resultobj = 0;
30449 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30450 int arg2 ;
30451 bool result;
30452 void *argp1 = 0 ;
30453 int res1 = 0 ;
30454 int val2 ;
30455 int ecode2 = 0 ;
30456 PyObject * obj0 = 0 ;
30457 PyObject * obj1 = 0 ;
30458 char * kwnames[] = {
30459 (char *) "self",(char *) "col", NULL
30460 };
30461
30462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30464 if (!SWIG_IsOK(res1)) {
30465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30466 }
30467 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30468 ecode2 = SWIG_AsVal_int(obj1, &val2);
30469 if (!SWIG_IsOK(ecode2)) {
30470 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30471 }
30472 arg2 = static_cast< int >(val2);
30473 {
30474 PyThreadState* __tstate = wxPyBeginAllowThreads();
30475 result = (bool)(arg1)->DeleteColumn(arg2);
30476 wxPyEndAllowThreads(__tstate);
30477 if (PyErr_Occurred()) SWIG_fail;
30478 }
30479 {
30480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30481 }
30482 return resultobj;
30483 fail:
30484 return NULL;
30485 }
30486
30487
30488 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30489 PyObject *resultobj = 0;
30490 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30491 bool result;
30492 void *argp1 = 0 ;
30493 int res1 = 0 ;
30494 PyObject *swig_obj[1] ;
30495
30496 if (!args) SWIG_fail;
30497 swig_obj[0] = args;
30498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30499 if (!SWIG_IsOK(res1)) {
30500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30501 }
30502 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30503 {
30504 PyThreadState* __tstate = wxPyBeginAllowThreads();
30505 result = (bool)(arg1)->DeleteAllColumns();
30506 wxPyEndAllowThreads(__tstate);
30507 if (PyErr_Occurred()) SWIG_fail;
30508 }
30509 {
30510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30511 }
30512 return resultobj;
30513 fail:
30514 return NULL;
30515 }
30516
30517
30518 SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30519 PyObject *resultobj = 0;
30520 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30521 void *argp1 = 0 ;
30522 int res1 = 0 ;
30523 PyObject *swig_obj[1] ;
30524
30525 if (!args) SWIG_fail;
30526 swig_obj[0] = args;
30527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30528 if (!SWIG_IsOK(res1)) {
30529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30530 }
30531 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30532 {
30533 PyThreadState* __tstate = wxPyBeginAllowThreads();
30534 (arg1)->ClearAll();
30535 wxPyEndAllowThreads(__tstate);
30536 if (PyErr_Occurred()) SWIG_fail;
30537 }
30538 resultobj = SWIG_Py_Void();
30539 return resultobj;
30540 fail:
30541 return NULL;
30542 }
30543
30544
30545 SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30546 PyObject *resultobj = 0;
30547 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30548 long arg2 ;
30549 wxTextCtrl *result = 0 ;
30550 void *argp1 = 0 ;
30551 int res1 = 0 ;
30552 long val2 ;
30553 int ecode2 = 0 ;
30554 PyObject * obj0 = 0 ;
30555 PyObject * obj1 = 0 ;
30556 char * kwnames[] = {
30557 (char *) "self",(char *) "item", NULL
30558 };
30559
30560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30562 if (!SWIG_IsOK(res1)) {
30563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30564 }
30565 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30566 ecode2 = SWIG_AsVal_long(obj1, &val2);
30567 if (!SWIG_IsOK(ecode2)) {
30568 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30569 }
30570 arg2 = static_cast< long >(val2);
30571 {
30572 PyThreadState* __tstate = wxPyBeginAllowThreads();
30573 result = (wxTextCtrl *)(arg1)->EditLabel(arg2);
30574 wxPyEndAllowThreads(__tstate);
30575 if (PyErr_Occurred()) SWIG_fail;
30576 }
30577 {
30578 resultobj = wxPyMake_wxObject(result, 0);
30579 }
30580 return resultobj;
30581 fail:
30582 return NULL;
30583 }
30584
30585
30586 SWIGINTERN PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30587 PyObject *resultobj = 0;
30588 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30589 bool arg2 ;
30590 bool result;
30591 void *argp1 = 0 ;
30592 int res1 = 0 ;
30593 bool val2 ;
30594 int ecode2 = 0 ;
30595 PyObject * obj0 = 0 ;
30596 PyObject * obj1 = 0 ;
30597 char * kwnames[] = {
30598 (char *) "self",(char *) "cancel", NULL
30599 };
30600
30601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30603 if (!SWIG_IsOK(res1)) {
30604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30605 }
30606 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30607 ecode2 = SWIG_AsVal_bool(obj1, &val2);
30608 if (!SWIG_IsOK(ecode2)) {
30609 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "2"" of type '" "bool""'");
30610 }
30611 arg2 = static_cast< bool >(val2);
30612 {
30613 PyThreadState* __tstate = wxPyBeginAllowThreads();
30614 result = (bool)(arg1)->EndEditLabel(arg2);
30615 wxPyEndAllowThreads(__tstate);
30616 if (PyErr_Occurred()) SWIG_fail;
30617 }
30618 {
30619 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30620 }
30621 return resultobj;
30622 fail:
30623 return NULL;
30624 }
30625
30626
30627 SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30628 PyObject *resultobj = 0;
30629 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30630 long arg2 ;
30631 bool result;
30632 void *argp1 = 0 ;
30633 int res1 = 0 ;
30634 long val2 ;
30635 int ecode2 = 0 ;
30636 PyObject * obj0 = 0 ;
30637 PyObject * obj1 = 0 ;
30638 char * kwnames[] = {
30639 (char *) "self",(char *) "item", NULL
30640 };
30641
30642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30644 if (!SWIG_IsOK(res1)) {
30645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30646 }
30647 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30648 ecode2 = SWIG_AsVal_long(obj1, &val2);
30649 if (!SWIG_IsOK(ecode2)) {
30650 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30651 }
30652 arg2 = static_cast< long >(val2);
30653 {
30654 PyThreadState* __tstate = wxPyBeginAllowThreads();
30655 result = (bool)(arg1)->EnsureVisible(arg2);
30656 wxPyEndAllowThreads(__tstate);
30657 if (PyErr_Occurred()) SWIG_fail;
30658 }
30659 {
30660 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30661 }
30662 return resultobj;
30663 fail:
30664 return NULL;
30665 }
30666
30667
30668 SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30669 PyObject *resultobj = 0;
30670 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30671 long arg2 ;
30672 wxString *arg3 = 0 ;
30673 bool arg4 = (bool) false ;
30674 long result;
30675 void *argp1 = 0 ;
30676 int res1 = 0 ;
30677 long val2 ;
30678 int ecode2 = 0 ;
30679 bool temp3 = false ;
30680 bool val4 ;
30681 int ecode4 = 0 ;
30682 PyObject * obj0 = 0 ;
30683 PyObject * obj1 = 0 ;
30684 PyObject * obj2 = 0 ;
30685 PyObject * obj3 = 0 ;
30686 char * kwnames[] = {
30687 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30688 };
30689
30690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30692 if (!SWIG_IsOK(res1)) {
30693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30694 }
30695 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30696 ecode2 = SWIG_AsVal_long(obj1, &val2);
30697 if (!SWIG_IsOK(ecode2)) {
30698 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30699 }
30700 arg2 = static_cast< long >(val2);
30701 {
30702 arg3 = wxString_in_helper(obj2);
30703 if (arg3 == NULL) SWIG_fail;
30704 temp3 = true;
30705 }
30706 if (obj3) {
30707 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30708 if (!SWIG_IsOK(ecode4)) {
30709 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
30710 }
30711 arg4 = static_cast< bool >(val4);
30712 }
30713 {
30714 PyThreadState* __tstate = wxPyBeginAllowThreads();
30715 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
30716 wxPyEndAllowThreads(__tstate);
30717 if (PyErr_Occurred()) SWIG_fail;
30718 }
30719 resultobj = SWIG_From_long(static_cast< long >(result));
30720 {
30721 if (temp3)
30722 delete arg3;
30723 }
30724 return resultobj;
30725 fail:
30726 {
30727 if (temp3)
30728 delete arg3;
30729 }
30730 return NULL;
30731 }
30732
30733
30734 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30735 PyObject *resultobj = 0;
30736 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30737 long arg2 ;
30738 long arg3 ;
30739 long result;
30740 void *argp1 = 0 ;
30741 int res1 = 0 ;
30742 long val2 ;
30743 int ecode2 = 0 ;
30744 long val3 ;
30745 int ecode3 = 0 ;
30746 PyObject * obj0 = 0 ;
30747 PyObject * obj1 = 0 ;
30748 PyObject * obj2 = 0 ;
30749 char * kwnames[] = {
30750 (char *) "self",(char *) "start",(char *) "data", NULL
30751 };
30752
30753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30755 if (!SWIG_IsOK(res1)) {
30756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30757 }
30758 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30759 ecode2 = SWIG_AsVal_long(obj1, &val2);
30760 if (!SWIG_IsOK(ecode2)) {
30761 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
30762 }
30763 arg2 = static_cast< long >(val2);
30764 ecode3 = SWIG_AsVal_long(obj2, &val3);
30765 if (!SWIG_IsOK(ecode3)) {
30766 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
30767 }
30768 arg3 = static_cast< long >(val3);
30769 {
30770 PyThreadState* __tstate = wxPyBeginAllowThreads();
30771 result = (long)(arg1)->FindItem(arg2,arg3);
30772 wxPyEndAllowThreads(__tstate);
30773 if (PyErr_Occurred()) SWIG_fail;
30774 }
30775 resultobj = SWIG_From_long(static_cast< long >(result));
30776 return resultobj;
30777 fail:
30778 return NULL;
30779 }
30780
30781
30782 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30783 PyObject *resultobj = 0;
30784 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30785 long arg2 ;
30786 wxPoint *arg3 = 0 ;
30787 int arg4 ;
30788 long result;
30789 void *argp1 = 0 ;
30790 int res1 = 0 ;
30791 long val2 ;
30792 int ecode2 = 0 ;
30793 wxPoint temp3 ;
30794 int val4 ;
30795 int ecode4 = 0 ;
30796 PyObject * obj0 = 0 ;
30797 PyObject * obj1 = 0 ;
30798 PyObject * obj2 = 0 ;
30799 PyObject * obj3 = 0 ;
30800 char * kwnames[] = {
30801 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
30802 };
30803
30804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30806 if (!SWIG_IsOK(res1)) {
30807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30808 }
30809 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30810 ecode2 = SWIG_AsVal_long(obj1, &val2);
30811 if (!SWIG_IsOK(ecode2)) {
30812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
30813 }
30814 arg2 = static_cast< long >(val2);
30815 {
30816 arg3 = &temp3;
30817 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30818 }
30819 ecode4 = SWIG_AsVal_int(obj3, &val4);
30820 if (!SWIG_IsOK(ecode4)) {
30821 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
30822 }
30823 arg4 = static_cast< int >(val4);
30824 {
30825 PyThreadState* __tstate = wxPyBeginAllowThreads();
30826 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
30827 wxPyEndAllowThreads(__tstate);
30828 if (PyErr_Occurred()) SWIG_fail;
30829 }
30830 resultobj = SWIG_From_long(static_cast< long >(result));
30831 return resultobj;
30832 fail:
30833 return NULL;
30834 }
30835
30836
30837 SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30838 PyObject *resultobj = 0;
30839 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30840 wxPoint *arg2 = 0 ;
30841 int *arg3 = 0 ;
30842 long result;
30843 void *argp1 = 0 ;
30844 int res1 = 0 ;
30845 wxPoint temp2 ;
30846 int temp3 ;
30847 int res3 = SWIG_TMPOBJ ;
30848 PyObject * obj0 = 0 ;
30849 PyObject * obj1 = 0 ;
30850 char * kwnames[] = {
30851 (char *) "self",(char *) "point", NULL
30852 };
30853
30854 arg3 = &temp3;
30855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
30856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30857 if (!SWIG_IsOK(res1)) {
30858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30859 }
30860 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30861 {
30862 arg2 = &temp2;
30863 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30864 }
30865 {
30866 PyThreadState* __tstate = wxPyBeginAllowThreads();
30867 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
30868 wxPyEndAllowThreads(__tstate);
30869 if (PyErr_Occurred()) SWIG_fail;
30870 }
30871 resultobj = SWIG_From_long(static_cast< long >(result));
30872 if (SWIG_IsTmpObj(res3)) {
30873 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30874 } else {
30875 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30876 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30877 }
30878 return resultobj;
30879 fail:
30880 return NULL;
30881 }
30882
30883
30884 SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30885 PyObject *resultobj = 0;
30886 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30887 wxListItem *arg2 = 0 ;
30888 long result;
30889 void *argp1 = 0 ;
30890 int res1 = 0 ;
30891 void *argp2 = 0 ;
30892 int res2 = 0 ;
30893 PyObject * obj0 = 0 ;
30894 PyObject * obj1 = 0 ;
30895 char * kwnames[] = {
30896 (char *) "self",(char *) "info", NULL
30897 };
30898
30899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
30900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30901 if (!SWIG_IsOK(res1)) {
30902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30903 }
30904 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30905 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
30906 if (!SWIG_IsOK(res2)) {
30907 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30908 }
30909 if (!argp2) {
30910 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30911 }
30912 arg2 = reinterpret_cast< wxListItem * >(argp2);
30913 {
30914 PyThreadState* __tstate = wxPyBeginAllowThreads();
30915 result = (long)(arg1)->InsertItem(*arg2);
30916 wxPyEndAllowThreads(__tstate);
30917 if (PyErr_Occurred()) SWIG_fail;
30918 }
30919 resultobj = SWIG_From_long(static_cast< long >(result));
30920 return resultobj;
30921 fail:
30922 return NULL;
30923 }
30924
30925
30926 SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30927 PyObject *resultobj = 0;
30928 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30929 long arg2 ;
30930 wxString *arg3 = 0 ;
30931 int arg4 = (int) -1 ;
30932 long result;
30933 void *argp1 = 0 ;
30934 int res1 = 0 ;
30935 long val2 ;
30936 int ecode2 = 0 ;
30937 bool temp3 = false ;
30938 int val4 ;
30939 int ecode4 = 0 ;
30940 PyObject * obj0 = 0 ;
30941 PyObject * obj1 = 0 ;
30942 PyObject * obj2 = 0 ;
30943 PyObject * obj3 = 0 ;
30944 char * kwnames[] = {
30945 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
30946 };
30947
30948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30950 if (!SWIG_IsOK(res1)) {
30951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30952 }
30953 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30954 ecode2 = SWIG_AsVal_long(obj1, &val2);
30955 if (!SWIG_IsOK(ecode2)) {
30956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
30957 }
30958 arg2 = static_cast< long >(val2);
30959 {
30960 arg3 = wxString_in_helper(obj2);
30961 if (arg3 == NULL) SWIG_fail;
30962 temp3 = true;
30963 }
30964 if (obj3) {
30965 ecode4 = SWIG_AsVal_int(obj3, &val4);
30966 if (!SWIG_IsOK(ecode4)) {
30967 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
30968 }
30969 arg4 = static_cast< int >(val4);
30970 }
30971 {
30972 PyThreadState* __tstate = wxPyBeginAllowThreads();
30973 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
30974 wxPyEndAllowThreads(__tstate);
30975 if (PyErr_Occurred()) SWIG_fail;
30976 }
30977 resultobj = SWIG_From_long(static_cast< long >(result));
30978 {
30979 if (temp3)
30980 delete arg3;
30981 }
30982 return resultobj;
30983 fail:
30984 {
30985 if (temp3)
30986 delete arg3;
30987 }
30988 return NULL;
30989 }
30990
30991
30992 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30993 PyObject *resultobj = 0;
30994 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30995 long arg2 ;
30996 int arg3 ;
30997 long result;
30998 void *argp1 = 0 ;
30999 int res1 = 0 ;
31000 long val2 ;
31001 int ecode2 = 0 ;
31002 int val3 ;
31003 int ecode3 = 0 ;
31004 PyObject * obj0 = 0 ;
31005 PyObject * obj1 = 0 ;
31006 PyObject * obj2 = 0 ;
31007 char * kwnames[] = {
31008 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31009 };
31010
31011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",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_InsertImageItem" "', 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_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31020 }
31021 arg2 = static_cast< long >(val2);
31022 ecode3 = SWIG_AsVal_int(obj2, &val3);
31023 if (!SWIG_IsOK(ecode3)) {
31024 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31025 }
31026 arg3 = static_cast< int >(val3);
31027 {
31028 PyThreadState* __tstate = wxPyBeginAllowThreads();
31029 result = (long)(arg1)->InsertItem(arg2,arg3);
31030 wxPyEndAllowThreads(__tstate);
31031 if (PyErr_Occurred()) SWIG_fail;
31032 }
31033 resultobj = SWIG_From_long(static_cast< long >(result));
31034 return resultobj;
31035 fail:
31036 return NULL;
31037 }
31038
31039
31040 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31041 PyObject *resultobj = 0;
31042 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31043 long arg2 ;
31044 wxString *arg3 = 0 ;
31045 int arg4 ;
31046 long result;
31047 void *argp1 = 0 ;
31048 int res1 = 0 ;
31049 long val2 ;
31050 int ecode2 = 0 ;
31051 bool temp3 = false ;
31052 int val4 ;
31053 int ecode4 = 0 ;
31054 PyObject * obj0 = 0 ;
31055 PyObject * obj1 = 0 ;
31056 PyObject * obj2 = 0 ;
31057 PyObject * obj3 = 0 ;
31058 char * kwnames[] = {
31059 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31060 };
31061
31062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31064 if (!SWIG_IsOK(res1)) {
31065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31066 }
31067 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31068 ecode2 = SWIG_AsVal_long(obj1, &val2);
31069 if (!SWIG_IsOK(ecode2)) {
31070 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31071 }
31072 arg2 = static_cast< long >(val2);
31073 {
31074 arg3 = wxString_in_helper(obj2);
31075 if (arg3 == NULL) SWIG_fail;
31076 temp3 = true;
31077 }
31078 ecode4 = SWIG_AsVal_int(obj3, &val4);
31079 if (!SWIG_IsOK(ecode4)) {
31080 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31081 }
31082 arg4 = static_cast< int >(val4);
31083 {
31084 PyThreadState* __tstate = wxPyBeginAllowThreads();
31085 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31086 wxPyEndAllowThreads(__tstate);
31087 if (PyErr_Occurred()) SWIG_fail;
31088 }
31089 resultobj = SWIG_From_long(static_cast< long >(result));
31090 {
31091 if (temp3)
31092 delete arg3;
31093 }
31094 return resultobj;
31095 fail:
31096 {
31097 if (temp3)
31098 delete arg3;
31099 }
31100 return NULL;
31101 }
31102
31103
31104 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31105 PyObject *resultobj = 0;
31106 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31107 long arg2 ;
31108 wxListItem *arg3 = 0 ;
31109 long result;
31110 void *argp1 = 0 ;
31111 int res1 = 0 ;
31112 long val2 ;
31113 int ecode2 = 0 ;
31114 void *argp3 = 0 ;
31115 int res3 = 0 ;
31116 PyObject * obj0 = 0 ;
31117 PyObject * obj1 = 0 ;
31118 PyObject * obj2 = 0 ;
31119 char * kwnames[] = {
31120 (char *) "self",(char *) "col",(char *) "info", NULL
31121 };
31122
31123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31125 if (!SWIG_IsOK(res1)) {
31126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31127 }
31128 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31129 ecode2 = SWIG_AsVal_long(obj1, &val2);
31130 if (!SWIG_IsOK(ecode2)) {
31131 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31132 }
31133 arg2 = static_cast< long >(val2);
31134 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31135 if (!SWIG_IsOK(res3)) {
31136 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31137 }
31138 if (!argp3) {
31139 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31140 }
31141 arg3 = reinterpret_cast< wxListItem * >(argp3);
31142 {
31143 PyThreadState* __tstate = wxPyBeginAllowThreads();
31144 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31145 wxPyEndAllowThreads(__tstate);
31146 if (PyErr_Occurred()) SWIG_fail;
31147 }
31148 resultobj = SWIG_From_long(static_cast< long >(result));
31149 return resultobj;
31150 fail:
31151 return NULL;
31152 }
31153
31154
31155 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31156 PyObject *resultobj = 0;
31157 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31158 long arg2 ;
31159 wxString *arg3 = 0 ;
31160 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31161 int arg5 = (int) -1 ;
31162 long result;
31163 void *argp1 = 0 ;
31164 int res1 = 0 ;
31165 long val2 ;
31166 int ecode2 = 0 ;
31167 bool temp3 = false ;
31168 int val4 ;
31169 int ecode4 = 0 ;
31170 int val5 ;
31171 int ecode5 = 0 ;
31172 PyObject * obj0 = 0 ;
31173 PyObject * obj1 = 0 ;
31174 PyObject * obj2 = 0 ;
31175 PyObject * obj3 = 0 ;
31176 PyObject * obj4 = 0 ;
31177 char * kwnames[] = {
31178 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31179 };
31180
31181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31183 if (!SWIG_IsOK(res1)) {
31184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31185 }
31186 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31187 ecode2 = SWIG_AsVal_long(obj1, &val2);
31188 if (!SWIG_IsOK(ecode2)) {
31189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31190 }
31191 arg2 = static_cast< long >(val2);
31192 {
31193 arg3 = wxString_in_helper(obj2);
31194 if (arg3 == NULL) SWIG_fail;
31195 temp3 = true;
31196 }
31197 if (obj3) {
31198 ecode4 = SWIG_AsVal_int(obj3, &val4);
31199 if (!SWIG_IsOK(ecode4)) {
31200 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31201 }
31202 arg4 = static_cast< int >(val4);
31203 }
31204 if (obj4) {
31205 ecode5 = SWIG_AsVal_int(obj4, &val5);
31206 if (!SWIG_IsOK(ecode5)) {
31207 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31208 }
31209 arg5 = static_cast< int >(val5);
31210 }
31211 {
31212 PyThreadState* __tstate = wxPyBeginAllowThreads();
31213 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31214 wxPyEndAllowThreads(__tstate);
31215 if (PyErr_Occurred()) SWIG_fail;
31216 }
31217 resultobj = SWIG_From_long(static_cast< long >(result));
31218 {
31219 if (temp3)
31220 delete arg3;
31221 }
31222 return resultobj;
31223 fail:
31224 {
31225 if (temp3)
31226 delete arg3;
31227 }
31228 return NULL;
31229 }
31230
31231
31232 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31233 PyObject *resultobj = 0;
31234 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31235 long arg2 ;
31236 void *argp1 = 0 ;
31237 int res1 = 0 ;
31238 long val2 ;
31239 int ecode2 = 0 ;
31240 PyObject * obj0 = 0 ;
31241 PyObject * obj1 = 0 ;
31242 char * kwnames[] = {
31243 (char *) "self",(char *) "count", NULL
31244 };
31245
31246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31248 if (!SWIG_IsOK(res1)) {
31249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31250 }
31251 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31252 ecode2 = SWIG_AsVal_long(obj1, &val2);
31253 if (!SWIG_IsOK(ecode2)) {
31254 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31255 }
31256 arg2 = static_cast< long >(val2);
31257 {
31258 PyThreadState* __tstate = wxPyBeginAllowThreads();
31259 (arg1)->SetItemCount(arg2);
31260 wxPyEndAllowThreads(__tstate);
31261 if (PyErr_Occurred()) SWIG_fail;
31262 }
31263 resultobj = SWIG_Py_Void();
31264 return resultobj;
31265 fail:
31266 return NULL;
31267 }
31268
31269
31270 SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31271 PyObject *resultobj = 0;
31272 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31273 int arg2 ;
31274 int arg3 ;
31275 bool result;
31276 void *argp1 = 0 ;
31277 int res1 = 0 ;
31278 int val2 ;
31279 int ecode2 = 0 ;
31280 int val3 ;
31281 int ecode3 = 0 ;
31282 PyObject * obj0 = 0 ;
31283 PyObject * obj1 = 0 ;
31284 PyObject * obj2 = 0 ;
31285 char * kwnames[] = {
31286 (char *) "self",(char *) "dx",(char *) "dy", NULL
31287 };
31288
31289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31291 if (!SWIG_IsOK(res1)) {
31292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31293 }
31294 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31295 ecode2 = SWIG_AsVal_int(obj1, &val2);
31296 if (!SWIG_IsOK(ecode2)) {
31297 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31298 }
31299 arg2 = static_cast< int >(val2);
31300 ecode3 = SWIG_AsVal_int(obj2, &val3);
31301 if (!SWIG_IsOK(ecode3)) {
31302 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31303 }
31304 arg3 = static_cast< int >(val3);
31305 {
31306 PyThreadState* __tstate = wxPyBeginAllowThreads();
31307 result = (bool)(arg1)->ScrollList(arg2,arg3);
31308 wxPyEndAllowThreads(__tstate);
31309 if (PyErr_Occurred()) SWIG_fail;
31310 }
31311 {
31312 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31313 }
31314 return resultobj;
31315 fail:
31316 return NULL;
31317 }
31318
31319
31320 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31321 PyObject *resultobj = 0;
31322 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31323 long arg2 ;
31324 wxColour *arg3 = 0 ;
31325 void *argp1 = 0 ;
31326 int res1 = 0 ;
31327 long val2 ;
31328 int ecode2 = 0 ;
31329 wxColour temp3 ;
31330 PyObject * obj0 = 0 ;
31331 PyObject * obj1 = 0 ;
31332 PyObject * obj2 = 0 ;
31333 char * kwnames[] = {
31334 (char *) "self",(char *) "item",(char *) "col", NULL
31335 };
31336
31337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31339 if (!SWIG_IsOK(res1)) {
31340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31341 }
31342 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31343 ecode2 = SWIG_AsVal_long(obj1, &val2);
31344 if (!SWIG_IsOK(ecode2)) {
31345 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31346 }
31347 arg2 = static_cast< long >(val2);
31348 {
31349 arg3 = &temp3;
31350 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31351 }
31352 {
31353 PyThreadState* __tstate = wxPyBeginAllowThreads();
31354 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31355 wxPyEndAllowThreads(__tstate);
31356 if (PyErr_Occurred()) SWIG_fail;
31357 }
31358 resultobj = SWIG_Py_Void();
31359 return resultobj;
31360 fail:
31361 return NULL;
31362 }
31363
31364
31365 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31366 PyObject *resultobj = 0;
31367 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31368 long arg2 ;
31369 wxColour result;
31370 void *argp1 = 0 ;
31371 int res1 = 0 ;
31372 long val2 ;
31373 int ecode2 = 0 ;
31374 PyObject * obj0 = 0 ;
31375 PyObject * obj1 = 0 ;
31376 char * kwnames[] = {
31377 (char *) "self",(char *) "item", NULL
31378 };
31379
31380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31382 if (!SWIG_IsOK(res1)) {
31383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31384 }
31385 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31386 ecode2 = SWIG_AsVal_long(obj1, &val2);
31387 if (!SWIG_IsOK(ecode2)) {
31388 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31389 }
31390 arg2 = static_cast< long >(val2);
31391 {
31392 PyThreadState* __tstate = wxPyBeginAllowThreads();
31393 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31394 wxPyEndAllowThreads(__tstate);
31395 if (PyErr_Occurred()) SWIG_fail;
31396 }
31397 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31398 return resultobj;
31399 fail:
31400 return NULL;
31401 }
31402
31403
31404 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31405 PyObject *resultobj = 0;
31406 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31407 long arg2 ;
31408 wxColour *arg3 = 0 ;
31409 void *argp1 = 0 ;
31410 int res1 = 0 ;
31411 long val2 ;
31412 int ecode2 = 0 ;
31413 wxColour temp3 ;
31414 PyObject * obj0 = 0 ;
31415 PyObject * obj1 = 0 ;
31416 PyObject * obj2 = 0 ;
31417 char * kwnames[] = {
31418 (char *) "self",(char *) "item",(char *) "col", NULL
31419 };
31420
31421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31423 if (!SWIG_IsOK(res1)) {
31424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31425 }
31426 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31427 ecode2 = SWIG_AsVal_long(obj1, &val2);
31428 if (!SWIG_IsOK(ecode2)) {
31429 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31430 }
31431 arg2 = static_cast< long >(val2);
31432 {
31433 arg3 = &temp3;
31434 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31435 }
31436 {
31437 PyThreadState* __tstate = wxPyBeginAllowThreads();
31438 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31439 wxPyEndAllowThreads(__tstate);
31440 if (PyErr_Occurred()) SWIG_fail;
31441 }
31442 resultobj = SWIG_Py_Void();
31443 return resultobj;
31444 fail:
31445 return NULL;
31446 }
31447
31448
31449 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31450 PyObject *resultobj = 0;
31451 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31452 long arg2 ;
31453 wxColour result;
31454 void *argp1 = 0 ;
31455 int res1 = 0 ;
31456 long val2 ;
31457 int ecode2 = 0 ;
31458 PyObject * obj0 = 0 ;
31459 PyObject * obj1 = 0 ;
31460 char * kwnames[] = {
31461 (char *) "self",(char *) "item", NULL
31462 };
31463
31464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31466 if (!SWIG_IsOK(res1)) {
31467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31468 }
31469 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31470 ecode2 = SWIG_AsVal_long(obj1, &val2);
31471 if (!SWIG_IsOK(ecode2)) {
31472 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31473 }
31474 arg2 = static_cast< long >(val2);
31475 {
31476 PyThreadState* __tstate = wxPyBeginAllowThreads();
31477 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31478 wxPyEndAllowThreads(__tstate);
31479 if (PyErr_Occurred()) SWIG_fail;
31480 }
31481 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31482 return resultobj;
31483 fail:
31484 return NULL;
31485 }
31486
31487
31488 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31489 PyObject *resultobj = 0;
31490 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31491 long arg2 ;
31492 wxFont *arg3 = 0 ;
31493 void *argp1 = 0 ;
31494 int res1 = 0 ;
31495 long val2 ;
31496 int ecode2 = 0 ;
31497 void *argp3 = 0 ;
31498 int res3 = 0 ;
31499 PyObject * obj0 = 0 ;
31500 PyObject * obj1 = 0 ;
31501 PyObject * obj2 = 0 ;
31502 char * kwnames[] = {
31503 (char *) "self",(char *) "item",(char *) "f", NULL
31504 };
31505
31506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31508 if (!SWIG_IsOK(res1)) {
31509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31510 }
31511 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31512 ecode2 = SWIG_AsVal_long(obj1, &val2);
31513 if (!SWIG_IsOK(ecode2)) {
31514 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31515 }
31516 arg2 = static_cast< long >(val2);
31517 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31518 if (!SWIG_IsOK(res3)) {
31519 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31520 }
31521 if (!argp3) {
31522 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31523 }
31524 arg3 = reinterpret_cast< wxFont * >(argp3);
31525 {
31526 PyThreadState* __tstate = wxPyBeginAllowThreads();
31527 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31528 wxPyEndAllowThreads(__tstate);
31529 if (PyErr_Occurred()) SWIG_fail;
31530 }
31531 resultobj = SWIG_Py_Void();
31532 return resultobj;
31533 fail:
31534 return NULL;
31535 }
31536
31537
31538 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31539 PyObject *resultobj = 0;
31540 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31541 long arg2 ;
31542 wxFont result;
31543 void *argp1 = 0 ;
31544 int res1 = 0 ;
31545 long val2 ;
31546 int ecode2 = 0 ;
31547 PyObject * obj0 = 0 ;
31548 PyObject * obj1 = 0 ;
31549 char * kwnames[] = {
31550 (char *) "self",(char *) "item", NULL
31551 };
31552
31553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31555 if (!SWIG_IsOK(res1)) {
31556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31557 }
31558 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31559 ecode2 = SWIG_AsVal_long(obj1, &val2);
31560 if (!SWIG_IsOK(ecode2)) {
31561 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31562 }
31563 arg2 = static_cast< long >(val2);
31564 {
31565 PyThreadState* __tstate = wxPyBeginAllowThreads();
31566 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31567 wxPyEndAllowThreads(__tstate);
31568 if (PyErr_Occurred()) SWIG_fail;
31569 }
31570 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31571 return resultobj;
31572 fail:
31573 return NULL;
31574 }
31575
31576
31577 SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31578 PyObject *resultobj = 0;
31579 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31580 PyObject *arg2 = (PyObject *) 0 ;
31581 bool result;
31582 void *argp1 = 0 ;
31583 int res1 = 0 ;
31584 PyObject * obj0 = 0 ;
31585 PyObject * obj1 = 0 ;
31586 char * kwnames[] = {
31587 (char *) "self",(char *) "func", NULL
31588 };
31589
31590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31592 if (!SWIG_IsOK(res1)) {
31593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31594 }
31595 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31596 arg2 = obj1;
31597 {
31598 PyThreadState* __tstate = wxPyBeginAllowThreads();
31599 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31600 wxPyEndAllowThreads(__tstate);
31601 if (PyErr_Occurred()) SWIG_fail;
31602 }
31603 {
31604 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31605 }
31606 return resultobj;
31607 fail:
31608 return NULL;
31609 }
31610
31611
31612 SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31613 PyObject *resultobj = 0;
31614 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31615 wxWindow *result = 0 ;
31616 void *argp1 = 0 ;
31617 int res1 = 0 ;
31618 PyObject *swig_obj[1] ;
31619
31620 if (!args) SWIG_fail;
31621 swig_obj[0] = args;
31622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31623 if (!SWIG_IsOK(res1)) {
31624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31625 }
31626 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31627 {
31628 PyThreadState* __tstate = wxPyBeginAllowThreads();
31629 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31630 wxPyEndAllowThreads(__tstate);
31631 if (PyErr_Occurred()) SWIG_fail;
31632 }
31633 {
31634 resultobj = wxPyMake_wxObject(result, 0);
31635 }
31636 return resultobj;
31637 fail:
31638 return NULL;
31639 }
31640
31641
31642 SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31643 PyObject *resultobj = 0;
31644 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
31645 SwigValueWrapper<wxVisualAttributes > result;
31646 int val1 ;
31647 int ecode1 = 0 ;
31648 PyObject * obj0 = 0 ;
31649 char * kwnames[] = {
31650 (char *) "variant", NULL
31651 };
31652
31653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
31654 if (obj0) {
31655 ecode1 = SWIG_AsVal_int(obj0, &val1);
31656 if (!SWIG_IsOK(ecode1)) {
31657 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
31658 }
31659 arg1 = static_cast< wxWindowVariant >(val1);
31660 }
31661 {
31662 if (!wxPyCheckForApp()) SWIG_fail;
31663 PyThreadState* __tstate = wxPyBeginAllowThreads();
31664 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
31665 wxPyEndAllowThreads(__tstate);
31666 if (PyErr_Occurred()) SWIG_fail;
31667 }
31668 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
31669 return resultobj;
31670 fail:
31671 return NULL;
31672 }
31673
31674
31675 SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31676 PyObject *obj;
31677 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31678 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
31679 return SWIG_Py_Void();
31680 }
31681
31682 SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31683 return SWIG_Python_InitShadowInstance(args);
31684 }
31685
31686 SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31687 PyObject *resultobj = 0;
31688 wxWindow *arg1 = (wxWindow *) 0 ;
31689 int arg2 = (int) -1 ;
31690 wxPoint const &arg3_defvalue = wxDefaultPosition ;
31691 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
31692 wxSize const &arg4_defvalue = wxDefaultSize ;
31693 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
31694 long arg5 = (long) wxLC_REPORT ;
31695 wxValidator const &arg6_defvalue = wxDefaultValidator ;
31696 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
31697 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
31698 wxString *arg7 = (wxString *) &arg7_defvalue ;
31699 wxListView *result = 0 ;
31700 void *argp1 = 0 ;
31701 int res1 = 0 ;
31702 int val2 ;
31703 int ecode2 = 0 ;
31704 wxPoint temp3 ;
31705 wxSize temp4 ;
31706 long val5 ;
31707 int ecode5 = 0 ;
31708 void *argp6 = 0 ;
31709 int res6 = 0 ;
31710 bool temp7 = false ;
31711 PyObject * obj0 = 0 ;
31712 PyObject * obj1 = 0 ;
31713 PyObject * obj2 = 0 ;
31714 PyObject * obj3 = 0 ;
31715 PyObject * obj4 = 0 ;
31716 PyObject * obj5 = 0 ;
31717 PyObject * obj6 = 0 ;
31718 char * kwnames[] = {
31719 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31720 };
31721
31722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31724 if (!SWIG_IsOK(res1)) {
31725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
31726 }
31727 arg1 = reinterpret_cast< wxWindow * >(argp1);
31728 if (obj1) {
31729 ecode2 = SWIG_AsVal_int(obj1, &val2);
31730 if (!SWIG_IsOK(ecode2)) {
31731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
31732 }
31733 arg2 = static_cast< int >(val2);
31734 }
31735 if (obj2) {
31736 {
31737 arg3 = &temp3;
31738 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31739 }
31740 }
31741 if (obj3) {
31742 {
31743 arg4 = &temp4;
31744 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
31745 }
31746 }
31747 if (obj4) {
31748 ecode5 = SWIG_AsVal_long(obj4, &val5);
31749 if (!SWIG_IsOK(ecode5)) {
31750 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
31751 }
31752 arg5 = static_cast< long >(val5);
31753 }
31754 if (obj5) {
31755 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
31756 if (!SWIG_IsOK(res6)) {
31757 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31758 }
31759 if (!argp6) {
31760 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31761 }
31762 arg6 = reinterpret_cast< wxValidator * >(argp6);
31763 }
31764 if (obj6) {
31765 {
31766 arg7 = wxString_in_helper(obj6);
31767 if (arg7 == NULL) SWIG_fail;
31768 temp7 = true;
31769 }
31770 }
31771 {
31772 if (!wxPyCheckForApp()) SWIG_fail;
31773 PyThreadState* __tstate = wxPyBeginAllowThreads();
31774 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
31775 wxPyEndAllowThreads(__tstate);
31776 if (PyErr_Occurred()) SWIG_fail;
31777 }
31778 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
31779 {
31780 if (temp7)
31781 delete arg7;
31782 }
31783 return resultobj;
31784 fail:
31785 {
31786 if (temp7)
31787 delete arg7;
31788 }
31789 return NULL;
31790 }
31791
31792
31793 SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31794 PyObject *resultobj = 0;
31795 wxListView *result = 0 ;
31796
31797 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
31798 {
31799 if (!wxPyCheckForApp()) SWIG_fail;
31800 PyThreadState* __tstate = wxPyBeginAllowThreads();
31801 result = (wxListView *)new wxListView();
31802 wxPyEndAllowThreads(__tstate);
31803 if (PyErr_Occurred()) SWIG_fail;
31804 }
31805 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
31806 return resultobj;
31807 fail:
31808 return NULL;
31809 }
31810
31811
31812 SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31813 PyObject *resultobj = 0;
31814 wxListView *arg1 = (wxListView *) 0 ;
31815 wxWindow *arg2 = (wxWindow *) 0 ;
31816 int arg3 = (int) -1 ;
31817 wxPoint const &arg4_defvalue = wxDefaultPosition ;
31818 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
31819 wxSize const &arg5_defvalue = wxDefaultSize ;
31820 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
31821 long arg6 = (long) wxLC_REPORT ;
31822 wxValidator const &arg7_defvalue = wxDefaultValidator ;
31823 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
31824 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
31825 wxString *arg8 = (wxString *) &arg8_defvalue ;
31826 bool result;
31827 void *argp1 = 0 ;
31828 int res1 = 0 ;
31829 void *argp2 = 0 ;
31830 int res2 = 0 ;
31831 int val3 ;
31832 int ecode3 = 0 ;
31833 wxPoint temp4 ;
31834 wxSize temp5 ;
31835 long val6 ;
31836 int ecode6 = 0 ;
31837 void *argp7 = 0 ;
31838 int res7 = 0 ;
31839 bool temp8 = false ;
31840 PyObject * obj0 = 0 ;
31841 PyObject * obj1 = 0 ;
31842 PyObject * obj2 = 0 ;
31843 PyObject * obj3 = 0 ;
31844 PyObject * obj4 = 0 ;
31845 PyObject * obj5 = 0 ;
31846 PyObject * obj6 = 0 ;
31847 PyObject * obj7 = 0 ;
31848 char * kwnames[] = {
31849 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31850 };
31851
31852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31854 if (!SWIG_IsOK(res1)) {
31855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
31856 }
31857 arg1 = reinterpret_cast< wxListView * >(argp1);
31858 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31859 if (!SWIG_IsOK(res2)) {
31860 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
31861 }
31862 arg2 = reinterpret_cast< wxWindow * >(argp2);
31863 if (obj2) {
31864 ecode3 = SWIG_AsVal_int(obj2, &val3);
31865 if (!SWIG_IsOK(ecode3)) {
31866 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
31867 }
31868 arg3 = static_cast< int >(val3);
31869 }
31870 if (obj3) {
31871 {
31872 arg4 = &temp4;
31873 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
31874 }
31875 }
31876 if (obj4) {
31877 {
31878 arg5 = &temp5;
31879 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
31880 }
31881 }
31882 if (obj5) {
31883 ecode6 = SWIG_AsVal_long(obj5, &val6);
31884 if (!SWIG_IsOK(ecode6)) {
31885 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
31886 }
31887 arg6 = static_cast< long >(val6);
31888 }
31889 if (obj6) {
31890 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
31891 if (!SWIG_IsOK(res7)) {
31892 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
31893 }
31894 if (!argp7) {
31895 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
31896 }
31897 arg7 = reinterpret_cast< wxValidator * >(argp7);
31898 }
31899 if (obj7) {
31900 {
31901 arg8 = wxString_in_helper(obj7);
31902 if (arg8 == NULL) SWIG_fail;
31903 temp8 = true;
31904 }
31905 }
31906 {
31907 PyThreadState* __tstate = wxPyBeginAllowThreads();
31908 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
31909 wxPyEndAllowThreads(__tstate);
31910 if (PyErr_Occurred()) SWIG_fail;
31911 }
31912 {
31913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31914 }
31915 {
31916 if (temp8)
31917 delete arg8;
31918 }
31919 return resultobj;
31920 fail:
31921 {
31922 if (temp8)
31923 delete arg8;
31924 }
31925 return NULL;
31926 }
31927
31928
31929 SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31930 PyObject *resultobj = 0;
31931 wxListView *arg1 = (wxListView *) 0 ;
31932 long arg2 ;
31933 bool arg3 = (bool) true ;
31934 void *argp1 = 0 ;
31935 int res1 = 0 ;
31936 long val2 ;
31937 int ecode2 = 0 ;
31938 bool val3 ;
31939 int ecode3 = 0 ;
31940 PyObject * obj0 = 0 ;
31941 PyObject * obj1 = 0 ;
31942 PyObject * obj2 = 0 ;
31943 char * kwnames[] = {
31944 (char *) "self",(char *) "n",(char *) "on", NULL
31945 };
31946
31947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31949 if (!SWIG_IsOK(res1)) {
31950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
31951 }
31952 arg1 = reinterpret_cast< wxListView * >(argp1);
31953 ecode2 = SWIG_AsVal_long(obj1, &val2);
31954 if (!SWIG_IsOK(ecode2)) {
31955 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
31956 }
31957 arg2 = static_cast< long >(val2);
31958 if (obj2) {
31959 ecode3 = SWIG_AsVal_bool(obj2, &val3);
31960 if (!SWIG_IsOK(ecode3)) {
31961 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
31962 }
31963 arg3 = static_cast< bool >(val3);
31964 }
31965 {
31966 PyThreadState* __tstate = wxPyBeginAllowThreads();
31967 (arg1)->Select(arg2,arg3);
31968 wxPyEndAllowThreads(__tstate);
31969 if (PyErr_Occurred()) SWIG_fail;
31970 }
31971 resultobj = SWIG_Py_Void();
31972 return resultobj;
31973 fail:
31974 return NULL;
31975 }
31976
31977
31978 SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31979 PyObject *resultobj = 0;
31980 wxListView *arg1 = (wxListView *) 0 ;
31981 long arg2 ;
31982 void *argp1 = 0 ;
31983 int res1 = 0 ;
31984 long val2 ;
31985 int ecode2 = 0 ;
31986 PyObject * obj0 = 0 ;
31987 PyObject * obj1 = 0 ;
31988 char * kwnames[] = {
31989 (char *) "self",(char *) "index", NULL
31990 };
31991
31992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
31993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31994 if (!SWIG_IsOK(res1)) {
31995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
31996 }
31997 arg1 = reinterpret_cast< wxListView * >(argp1);
31998 ecode2 = SWIG_AsVal_long(obj1, &val2);
31999 if (!SWIG_IsOK(ecode2)) {
32000 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32001 }
32002 arg2 = static_cast< long >(val2);
32003 {
32004 PyThreadState* __tstate = wxPyBeginAllowThreads();
32005 (arg1)->Focus(arg2);
32006 wxPyEndAllowThreads(__tstate);
32007 if (PyErr_Occurred()) SWIG_fail;
32008 }
32009 resultobj = SWIG_Py_Void();
32010 return resultobj;
32011 fail:
32012 return NULL;
32013 }
32014
32015
32016 SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32017 PyObject *resultobj = 0;
32018 wxListView *arg1 = (wxListView *) 0 ;
32019 long result;
32020 void *argp1 = 0 ;
32021 int res1 = 0 ;
32022 PyObject *swig_obj[1] ;
32023
32024 if (!args) SWIG_fail;
32025 swig_obj[0] = args;
32026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32027 if (!SWIG_IsOK(res1)) {
32028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32029 }
32030 arg1 = reinterpret_cast< wxListView * >(argp1);
32031 {
32032 PyThreadState* __tstate = wxPyBeginAllowThreads();
32033 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32034 wxPyEndAllowThreads(__tstate);
32035 if (PyErr_Occurred()) SWIG_fail;
32036 }
32037 resultobj = SWIG_From_long(static_cast< long >(result));
32038 return resultobj;
32039 fail:
32040 return NULL;
32041 }
32042
32043
32044 SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32045 PyObject *resultobj = 0;
32046 wxListView *arg1 = (wxListView *) 0 ;
32047 long arg2 ;
32048 long result;
32049 void *argp1 = 0 ;
32050 int res1 = 0 ;
32051 long val2 ;
32052 int ecode2 = 0 ;
32053 PyObject * obj0 = 0 ;
32054 PyObject * obj1 = 0 ;
32055 char * kwnames[] = {
32056 (char *) "self",(char *) "item", NULL
32057 };
32058
32059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32061 if (!SWIG_IsOK(res1)) {
32062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32063 }
32064 arg1 = reinterpret_cast< wxListView * >(argp1);
32065 ecode2 = SWIG_AsVal_long(obj1, &val2);
32066 if (!SWIG_IsOK(ecode2)) {
32067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32068 }
32069 arg2 = static_cast< long >(val2);
32070 {
32071 PyThreadState* __tstate = wxPyBeginAllowThreads();
32072 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32073 wxPyEndAllowThreads(__tstate);
32074 if (PyErr_Occurred()) SWIG_fail;
32075 }
32076 resultobj = SWIG_From_long(static_cast< long >(result));
32077 return resultobj;
32078 fail:
32079 return NULL;
32080 }
32081
32082
32083 SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32084 PyObject *resultobj = 0;
32085 wxListView *arg1 = (wxListView *) 0 ;
32086 long result;
32087 void *argp1 = 0 ;
32088 int res1 = 0 ;
32089 PyObject *swig_obj[1] ;
32090
32091 if (!args) SWIG_fail;
32092 swig_obj[0] = args;
32093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32094 if (!SWIG_IsOK(res1)) {
32095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32096 }
32097 arg1 = reinterpret_cast< wxListView * >(argp1);
32098 {
32099 PyThreadState* __tstate = wxPyBeginAllowThreads();
32100 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32101 wxPyEndAllowThreads(__tstate);
32102 if (PyErr_Occurred()) SWIG_fail;
32103 }
32104 resultobj = SWIG_From_long(static_cast< long >(result));
32105 return resultobj;
32106 fail:
32107 return NULL;
32108 }
32109
32110
32111 SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32112 PyObject *resultobj = 0;
32113 wxListView *arg1 = (wxListView *) 0 ;
32114 long arg2 ;
32115 bool result;
32116 void *argp1 = 0 ;
32117 int res1 = 0 ;
32118 long val2 ;
32119 int ecode2 = 0 ;
32120 PyObject * obj0 = 0 ;
32121 PyObject * obj1 = 0 ;
32122 char * kwnames[] = {
32123 (char *) "self",(char *) "index", NULL
32124 };
32125
32126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32128 if (!SWIG_IsOK(res1)) {
32129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32130 }
32131 arg1 = reinterpret_cast< wxListView * >(argp1);
32132 ecode2 = SWIG_AsVal_long(obj1, &val2);
32133 if (!SWIG_IsOK(ecode2)) {
32134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32135 }
32136 arg2 = static_cast< long >(val2);
32137 {
32138 PyThreadState* __tstate = wxPyBeginAllowThreads();
32139 result = (bool)(arg1)->IsSelected(arg2);
32140 wxPyEndAllowThreads(__tstate);
32141 if (PyErr_Occurred()) SWIG_fail;
32142 }
32143 {
32144 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32145 }
32146 return resultobj;
32147 fail:
32148 return NULL;
32149 }
32150
32151
32152 SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32153 PyObject *resultobj = 0;
32154 wxListView *arg1 = (wxListView *) 0 ;
32155 int arg2 ;
32156 int arg3 ;
32157 void *argp1 = 0 ;
32158 int res1 = 0 ;
32159 int val2 ;
32160 int ecode2 = 0 ;
32161 int val3 ;
32162 int ecode3 = 0 ;
32163 PyObject * obj0 = 0 ;
32164 PyObject * obj1 = 0 ;
32165 PyObject * obj2 = 0 ;
32166 char * kwnames[] = {
32167 (char *) "self",(char *) "col",(char *) "image", NULL
32168 };
32169
32170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32172 if (!SWIG_IsOK(res1)) {
32173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32174 }
32175 arg1 = reinterpret_cast< wxListView * >(argp1);
32176 ecode2 = SWIG_AsVal_int(obj1, &val2);
32177 if (!SWIG_IsOK(ecode2)) {
32178 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32179 }
32180 arg2 = static_cast< int >(val2);
32181 ecode3 = SWIG_AsVal_int(obj2, &val3);
32182 if (!SWIG_IsOK(ecode3)) {
32183 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32184 }
32185 arg3 = static_cast< int >(val3);
32186 {
32187 PyThreadState* __tstate = wxPyBeginAllowThreads();
32188 (arg1)->SetColumnImage(arg2,arg3);
32189 wxPyEndAllowThreads(__tstate);
32190 if (PyErr_Occurred()) SWIG_fail;
32191 }
32192 resultobj = SWIG_Py_Void();
32193 return resultobj;
32194 fail:
32195 return NULL;
32196 }
32197
32198
32199 SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32200 PyObject *resultobj = 0;
32201 wxListView *arg1 = (wxListView *) 0 ;
32202 int arg2 ;
32203 void *argp1 = 0 ;
32204 int res1 = 0 ;
32205 int val2 ;
32206 int ecode2 = 0 ;
32207 PyObject * obj0 = 0 ;
32208 PyObject * obj1 = 0 ;
32209 char * kwnames[] = {
32210 (char *) "self",(char *) "col", NULL
32211 };
32212
32213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32215 if (!SWIG_IsOK(res1)) {
32216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32217 }
32218 arg1 = reinterpret_cast< wxListView * >(argp1);
32219 ecode2 = SWIG_AsVal_int(obj1, &val2);
32220 if (!SWIG_IsOK(ecode2)) {
32221 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32222 }
32223 arg2 = static_cast< int >(val2);
32224 {
32225 PyThreadState* __tstate = wxPyBeginAllowThreads();
32226 (arg1)->ClearColumnImage(arg2);
32227 wxPyEndAllowThreads(__tstate);
32228 if (PyErr_Occurred()) SWIG_fail;
32229 }
32230 resultobj = SWIG_Py_Void();
32231 return resultobj;
32232 fail:
32233 return NULL;
32234 }
32235
32236
32237 SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32238 PyObject *obj;
32239 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32240 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32241 return SWIG_Py_Void();
32242 }
32243
32244 SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32245 return SWIG_Python_InitShadowInstance(args);
32246 }
32247
32248 SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32249 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32250 return 1;
32251 }
32252
32253
32254 SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32255 PyObject *pyobj = 0;
32256
32257 {
32258 #if wxUSE_UNICODE
32259 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32260 #else
32261 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32262 #endif
32263 }
32264 return pyobj;
32265 }
32266
32267
32268 SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32269 PyObject *resultobj = 0;
32270 wxTreeItemId *result = 0 ;
32271
32272 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32273 {
32274 PyThreadState* __tstate = wxPyBeginAllowThreads();
32275 result = (wxTreeItemId *)new wxTreeItemId();
32276 wxPyEndAllowThreads(__tstate);
32277 if (PyErr_Occurred()) SWIG_fail;
32278 }
32279 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32280 return resultobj;
32281 fail:
32282 return NULL;
32283 }
32284
32285
32286 SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32287 PyObject *resultobj = 0;
32288 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32289 void *argp1 = 0 ;
32290 int res1 = 0 ;
32291 PyObject *swig_obj[1] ;
32292
32293 if (!args) SWIG_fail;
32294 swig_obj[0] = args;
32295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32296 if (!SWIG_IsOK(res1)) {
32297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32298 }
32299 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32300 {
32301 PyThreadState* __tstate = wxPyBeginAllowThreads();
32302 delete arg1;
32303
32304 wxPyEndAllowThreads(__tstate);
32305 if (PyErr_Occurred()) SWIG_fail;
32306 }
32307 resultobj = SWIG_Py_Void();
32308 return resultobj;
32309 fail:
32310 return NULL;
32311 }
32312
32313
32314 SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32315 PyObject *resultobj = 0;
32316 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32317 bool result;
32318 void *argp1 = 0 ;
32319 int res1 = 0 ;
32320 PyObject *swig_obj[1] ;
32321
32322 if (!args) SWIG_fail;
32323 swig_obj[0] = args;
32324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32325 if (!SWIG_IsOK(res1)) {
32326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32327 }
32328 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32329 {
32330 PyThreadState* __tstate = wxPyBeginAllowThreads();
32331 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32332 wxPyEndAllowThreads(__tstate);
32333 if (PyErr_Occurred()) SWIG_fail;
32334 }
32335 {
32336 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32337 }
32338 return resultobj;
32339 fail:
32340 return NULL;
32341 }
32342
32343
32344 SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32345 PyObject *resultobj = 0;
32346 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32347 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32348 bool result;
32349 void *argp1 = 0 ;
32350 int res1 = 0 ;
32351 void *argp2 = 0 ;
32352 int res2 = 0 ;
32353 PyObject * obj0 = 0 ;
32354 PyObject * obj1 = 0 ;
32355 char * kwnames[] = {
32356 (char *) "self",(char *) "other", NULL
32357 };
32358
32359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32361 if (!SWIG_IsOK(res1)) {
32362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32363 }
32364 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32365 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32366 if (!SWIG_IsOK(res2)) {
32367 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32368 }
32369 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32370 {
32371 PyThreadState* __tstate = wxPyBeginAllowThreads();
32372 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32373 wxPyEndAllowThreads(__tstate);
32374 if (PyErr_Occurred()) SWIG_fail;
32375 }
32376 {
32377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32378 }
32379 return resultobj;
32380 fail:
32381 return NULL;
32382 }
32383
32384
32385 SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32386 PyObject *resultobj = 0;
32387 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32388 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32389 bool result;
32390 void *argp1 = 0 ;
32391 int res1 = 0 ;
32392 void *argp2 = 0 ;
32393 int res2 = 0 ;
32394 PyObject * obj0 = 0 ;
32395 PyObject * obj1 = 0 ;
32396 char * kwnames[] = {
32397 (char *) "self",(char *) "other", NULL
32398 };
32399
32400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32402 if (!SWIG_IsOK(res1)) {
32403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32404 }
32405 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32406 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32407 if (!SWIG_IsOK(res2)) {
32408 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32409 }
32410 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32411 {
32412 PyThreadState* __tstate = wxPyBeginAllowThreads();
32413 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32414 wxPyEndAllowThreads(__tstate);
32415 if (PyErr_Occurred()) SWIG_fail;
32416 }
32417 {
32418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32419 }
32420 return resultobj;
32421 fail:
32422 return NULL;
32423 }
32424
32425
32426 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32427 PyObject *resultobj = 0;
32428 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32429 void *arg2 = (void *) 0 ;
32430 void *argp1 = 0 ;
32431 int res1 = 0 ;
32432 int res2 ;
32433 PyObject *swig_obj[2] ;
32434
32435 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32437 if (!SWIG_IsOK(res1)) {
32438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32439 }
32440 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32441 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32442 if (!SWIG_IsOK(res2)) {
32443 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32444 }
32445 if (arg1) (arg1)->m_pItem = arg2;
32446
32447 resultobj = SWIG_Py_Void();
32448 return resultobj;
32449 fail:
32450 return NULL;
32451 }
32452
32453
32454 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32455 PyObject *resultobj = 0;
32456 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32457 void *result = 0 ;
32458 void *argp1 = 0 ;
32459 int res1 = 0 ;
32460 PyObject *swig_obj[1] ;
32461
32462 if (!args) SWIG_fail;
32463 swig_obj[0] = args;
32464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32465 if (!SWIG_IsOK(res1)) {
32466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32467 }
32468 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32469 result = (void *) ((arg1)->m_pItem);
32470 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32471 return resultobj;
32472 fail:
32473 return NULL;
32474 }
32475
32476
32477 SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32478 PyObject *obj;
32479 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32480 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32481 return SWIG_Py_Void();
32482 }
32483
32484 SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32485 return SWIG_Python_InitShadowInstance(args);
32486 }
32487
32488 SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32489 PyObject *resultobj = 0;
32490 PyObject *arg1 = (PyObject *) NULL ;
32491 wxPyTreeItemData *result = 0 ;
32492 PyObject * obj0 = 0 ;
32493 char * kwnames[] = {
32494 (char *) "obj", NULL
32495 };
32496
32497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32498 if (obj0) {
32499 arg1 = obj0;
32500 }
32501 {
32502 PyThreadState* __tstate = wxPyBeginAllowThreads();
32503 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32504 wxPyEndAllowThreads(__tstate);
32505 if (PyErr_Occurred()) SWIG_fail;
32506 }
32507 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32508 return resultobj;
32509 fail:
32510 return NULL;
32511 }
32512
32513
32514 SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32515 PyObject *resultobj = 0;
32516 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32517 void *argp1 = 0 ;
32518 int res1 = 0 ;
32519 PyObject *swig_obj[1] ;
32520
32521 if (!args) SWIG_fail;
32522 swig_obj[0] = args;
32523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32524 if (!SWIG_IsOK(res1)) {
32525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32526 }
32527 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32528 {
32529 PyThreadState* __tstate = wxPyBeginAllowThreads();
32530 delete arg1;
32531
32532 wxPyEndAllowThreads(__tstate);
32533 if (PyErr_Occurred()) SWIG_fail;
32534 }
32535 resultobj = SWIG_Py_Void();
32536 return resultobj;
32537 fail:
32538 return NULL;
32539 }
32540
32541
32542 SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32543 PyObject *resultobj = 0;
32544 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32545 PyObject *result = 0 ;
32546 void *argp1 = 0 ;
32547 int res1 = 0 ;
32548 PyObject *swig_obj[1] ;
32549
32550 if (!args) SWIG_fail;
32551 swig_obj[0] = args;
32552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32553 if (!SWIG_IsOK(res1)) {
32554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32555 }
32556 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32557 {
32558 PyThreadState* __tstate = wxPyBeginAllowThreads();
32559 result = (PyObject *)(arg1)->GetData();
32560 wxPyEndAllowThreads(__tstate);
32561 if (PyErr_Occurred()) SWIG_fail;
32562 }
32563 resultobj = result;
32564 return resultobj;
32565 fail:
32566 return NULL;
32567 }
32568
32569
32570 SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32571 PyObject *resultobj = 0;
32572 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32573 PyObject *arg2 = (PyObject *) 0 ;
32574 void *argp1 = 0 ;
32575 int res1 = 0 ;
32576 PyObject * obj0 = 0 ;
32577 PyObject * obj1 = 0 ;
32578 char * kwnames[] = {
32579 (char *) "self",(char *) "obj", NULL
32580 };
32581
32582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32584 if (!SWIG_IsOK(res1)) {
32585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32586 }
32587 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32588 arg2 = obj1;
32589 {
32590 PyThreadState* __tstate = wxPyBeginAllowThreads();
32591 (arg1)->SetData(arg2);
32592 wxPyEndAllowThreads(__tstate);
32593 if (PyErr_Occurred()) SWIG_fail;
32594 }
32595 resultobj = SWIG_Py_Void();
32596 return resultobj;
32597 fail:
32598 return NULL;
32599 }
32600
32601
32602 SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32603 PyObject *resultobj = 0;
32604 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32605 wxTreeItemId *result = 0 ;
32606 void *argp1 = 0 ;
32607 int res1 = 0 ;
32608 PyObject *swig_obj[1] ;
32609
32610 if (!args) SWIG_fail;
32611 swig_obj[0] = args;
32612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32613 if (!SWIG_IsOK(res1)) {
32614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32615 }
32616 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32617 {
32618 PyThreadState* __tstate = wxPyBeginAllowThreads();
32619 {
32620 wxTreeItemId const &_result_ref = (arg1)->GetId();
32621 result = (wxTreeItemId *) &_result_ref;
32622 }
32623 wxPyEndAllowThreads(__tstate);
32624 if (PyErr_Occurred()) SWIG_fail;
32625 }
32626 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32627 return resultobj;
32628 fail:
32629 return NULL;
32630 }
32631
32632
32633 SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32634 PyObject *resultobj = 0;
32635 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32636 wxTreeItemId *arg2 = 0 ;
32637 void *argp1 = 0 ;
32638 int res1 = 0 ;
32639 void *argp2 = 0 ;
32640 int res2 = 0 ;
32641 PyObject * obj0 = 0 ;
32642 PyObject * obj1 = 0 ;
32643 char * kwnames[] = {
32644 (char *) "self",(char *) "id", NULL
32645 };
32646
32647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32649 if (!SWIG_IsOK(res1)) {
32650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32651 }
32652 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32653 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32654 if (!SWIG_IsOK(res2)) {
32655 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32656 }
32657 if (!argp2) {
32658 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32659 }
32660 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32661 {
32662 PyThreadState* __tstate = wxPyBeginAllowThreads();
32663 (arg1)->SetId((wxTreeItemId const &)*arg2);
32664 wxPyEndAllowThreads(__tstate);
32665 if (PyErr_Occurred()) SWIG_fail;
32666 }
32667 resultobj = SWIG_Py_Void();
32668 return resultobj;
32669 fail:
32670 return NULL;
32671 }
32672
32673
32674 SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32675 PyObject *resultobj = 0;
32676 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32677 void *argp1 = 0 ;
32678 int res1 = 0 ;
32679 PyObject *swig_obj[1] ;
32680
32681 if (!args) SWIG_fail;
32682 swig_obj[0] = args;
32683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32684 if (!SWIG_IsOK(res1)) {
32685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32686 }
32687 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32688 {
32689 PyThreadState* __tstate = wxPyBeginAllowThreads();
32690 wxPyTreeItemData_Destroy(arg1);
32691 wxPyEndAllowThreads(__tstate);
32692 if (PyErr_Occurred()) SWIG_fail;
32693 }
32694 resultobj = SWIG_Py_Void();
32695 return resultobj;
32696 fail:
32697 return NULL;
32698 }
32699
32700
32701 SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32702 PyObject *obj;
32703 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32704 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
32705 return SWIG_Py_Void();
32706 }
32707
32708 SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32709 return SWIG_Python_InitShadowInstance(args);
32710 }
32711
32712 SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32713 PyObject *resultobj = 0;
32714 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
32715 int arg2 = (int) 0 ;
32716 wxTreeEvent *result = 0 ;
32717 int val1 ;
32718 int ecode1 = 0 ;
32719 int val2 ;
32720 int ecode2 = 0 ;
32721 PyObject * obj0 = 0 ;
32722 PyObject * obj1 = 0 ;
32723 char * kwnames[] = {
32724 (char *) "commandType",(char *) "id", NULL
32725 };
32726
32727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) SWIG_fail;
32728 if (obj0) {
32729 ecode1 = SWIG_AsVal_int(obj0, &val1);
32730 if (!SWIG_IsOK(ecode1)) {
32731 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32732 }
32733 arg1 = static_cast< wxEventType >(val1);
32734 }
32735 if (obj1) {
32736 ecode2 = SWIG_AsVal_int(obj1, &val2);
32737 if (!SWIG_IsOK(ecode2)) {
32738 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
32739 }
32740 arg2 = static_cast< int >(val2);
32741 }
32742 {
32743 PyThreadState* __tstate = wxPyBeginAllowThreads();
32744 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
32745 wxPyEndAllowThreads(__tstate);
32746 if (PyErr_Occurred()) SWIG_fail;
32747 }
32748 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32749 return resultobj;
32750 fail:
32751 return NULL;
32752 }
32753
32754
32755 SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32756 PyObject *resultobj = 0;
32757 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32758 wxTreeItemId result;
32759 void *argp1 = 0 ;
32760 int res1 = 0 ;
32761 PyObject *swig_obj[1] ;
32762
32763 if (!args) SWIG_fail;
32764 swig_obj[0] = args;
32765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32766 if (!SWIG_IsOK(res1)) {
32767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32768 }
32769 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32770 {
32771 PyThreadState* __tstate = wxPyBeginAllowThreads();
32772 result = ((wxTreeEvent const *)arg1)->GetItem();
32773 wxPyEndAllowThreads(__tstate);
32774 if (PyErr_Occurred()) SWIG_fail;
32775 }
32776 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32777 return resultobj;
32778 fail:
32779 return NULL;
32780 }
32781
32782
32783 SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32784 PyObject *resultobj = 0;
32785 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32786 wxTreeItemId *arg2 = 0 ;
32787 void *argp1 = 0 ;
32788 int res1 = 0 ;
32789 void *argp2 = 0 ;
32790 int res2 = 0 ;
32791 PyObject * obj0 = 0 ;
32792 PyObject * obj1 = 0 ;
32793 char * kwnames[] = {
32794 (char *) "self",(char *) "item", NULL
32795 };
32796
32797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
32798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32799 if (!SWIG_IsOK(res1)) {
32800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32801 }
32802 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32803 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32804 if (!SWIG_IsOK(res2)) {
32805 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32806 }
32807 if (!argp2) {
32808 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32809 }
32810 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32811 {
32812 PyThreadState* __tstate = wxPyBeginAllowThreads();
32813 (arg1)->SetItem((wxTreeItemId const &)*arg2);
32814 wxPyEndAllowThreads(__tstate);
32815 if (PyErr_Occurred()) SWIG_fail;
32816 }
32817 resultobj = SWIG_Py_Void();
32818 return resultobj;
32819 fail:
32820 return NULL;
32821 }
32822
32823
32824 SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32825 PyObject *resultobj = 0;
32826 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32827 wxTreeItemId result;
32828 void *argp1 = 0 ;
32829 int res1 = 0 ;
32830 PyObject *swig_obj[1] ;
32831
32832 if (!args) SWIG_fail;
32833 swig_obj[0] = args;
32834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32835 if (!SWIG_IsOK(res1)) {
32836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32837 }
32838 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32839 {
32840 PyThreadState* __tstate = wxPyBeginAllowThreads();
32841 result = ((wxTreeEvent const *)arg1)->GetOldItem();
32842 wxPyEndAllowThreads(__tstate);
32843 if (PyErr_Occurred()) SWIG_fail;
32844 }
32845 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32846 return resultobj;
32847 fail:
32848 return NULL;
32849 }
32850
32851
32852 SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32853 PyObject *resultobj = 0;
32854 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32855 wxTreeItemId *arg2 = 0 ;
32856 void *argp1 = 0 ;
32857 int res1 = 0 ;
32858 void *argp2 = 0 ;
32859 int res2 = 0 ;
32860 PyObject * obj0 = 0 ;
32861 PyObject * obj1 = 0 ;
32862 char * kwnames[] = {
32863 (char *) "self",(char *) "item", NULL
32864 };
32865
32866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
32867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32868 if (!SWIG_IsOK(res1)) {
32869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32870 }
32871 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32872 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32873 if (!SWIG_IsOK(res2)) {
32874 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32875 }
32876 if (!argp2) {
32877 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32878 }
32879 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32880 {
32881 PyThreadState* __tstate = wxPyBeginAllowThreads();
32882 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
32883 wxPyEndAllowThreads(__tstate);
32884 if (PyErr_Occurred()) SWIG_fail;
32885 }
32886 resultobj = SWIG_Py_Void();
32887 return resultobj;
32888 fail:
32889 return NULL;
32890 }
32891
32892
32893 SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32894 PyObject *resultobj = 0;
32895 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32896 wxPoint result;
32897 void *argp1 = 0 ;
32898 int res1 = 0 ;
32899 PyObject *swig_obj[1] ;
32900
32901 if (!args) SWIG_fail;
32902 swig_obj[0] = args;
32903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32904 if (!SWIG_IsOK(res1)) {
32905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32906 }
32907 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32908 {
32909 PyThreadState* __tstate = wxPyBeginAllowThreads();
32910 result = ((wxTreeEvent const *)arg1)->GetPoint();
32911 wxPyEndAllowThreads(__tstate);
32912 if (PyErr_Occurred()) SWIG_fail;
32913 }
32914 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
32915 return resultobj;
32916 fail:
32917 return NULL;
32918 }
32919
32920
32921 SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32922 PyObject *resultobj = 0;
32923 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32924 wxPoint *arg2 = 0 ;
32925 void *argp1 = 0 ;
32926 int res1 = 0 ;
32927 wxPoint temp2 ;
32928 PyObject * obj0 = 0 ;
32929 PyObject * obj1 = 0 ;
32930 char * kwnames[] = {
32931 (char *) "self",(char *) "pt", NULL
32932 };
32933
32934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32936 if (!SWIG_IsOK(res1)) {
32937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32938 }
32939 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32940 {
32941 arg2 = &temp2;
32942 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32943 }
32944 {
32945 PyThreadState* __tstate = wxPyBeginAllowThreads();
32946 (arg1)->SetPoint((wxPoint const &)*arg2);
32947 wxPyEndAllowThreads(__tstate);
32948 if (PyErr_Occurred()) SWIG_fail;
32949 }
32950 resultobj = SWIG_Py_Void();
32951 return resultobj;
32952 fail:
32953 return NULL;
32954 }
32955
32956
32957 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32958 PyObject *resultobj = 0;
32959 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32960 wxKeyEvent *result = 0 ;
32961 void *argp1 = 0 ;
32962 int res1 = 0 ;
32963 PyObject *swig_obj[1] ;
32964
32965 if (!args) SWIG_fail;
32966 swig_obj[0] = args;
32967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32968 if (!SWIG_IsOK(res1)) {
32969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32970 }
32971 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32972 {
32973 PyThreadState* __tstate = wxPyBeginAllowThreads();
32974 {
32975 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
32976 result = (wxKeyEvent *) &_result_ref;
32977 }
32978 wxPyEndAllowThreads(__tstate);
32979 if (PyErr_Occurred()) SWIG_fail;
32980 }
32981 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
32982 return resultobj;
32983 fail:
32984 return NULL;
32985 }
32986
32987
32988 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32989 PyObject *resultobj = 0;
32990 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32991 int result;
32992 void *argp1 = 0 ;
32993 int res1 = 0 ;
32994 PyObject *swig_obj[1] ;
32995
32996 if (!args) SWIG_fail;
32997 swig_obj[0] = args;
32998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32999 if (!SWIG_IsOK(res1)) {
33000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33001 }
33002 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33003 {
33004 PyThreadState* __tstate = wxPyBeginAllowThreads();
33005 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33006 wxPyEndAllowThreads(__tstate);
33007 if (PyErr_Occurred()) SWIG_fail;
33008 }
33009 resultobj = SWIG_From_int(static_cast< int >(result));
33010 return resultobj;
33011 fail:
33012 return NULL;
33013 }
33014
33015
33016 SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33017 PyObject *resultobj = 0;
33018 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33019 wxKeyEvent *arg2 = 0 ;
33020 void *argp1 = 0 ;
33021 int res1 = 0 ;
33022 void *argp2 = 0 ;
33023 int res2 = 0 ;
33024 PyObject * obj0 = 0 ;
33025 PyObject * obj1 = 0 ;
33026 char * kwnames[] = {
33027 (char *) "self",(char *) "evt", NULL
33028 };
33029
33030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33032 if (!SWIG_IsOK(res1)) {
33033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33034 }
33035 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33036 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33037 if (!SWIG_IsOK(res2)) {
33038 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33039 }
33040 if (!argp2) {
33041 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33042 }
33043 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33044 {
33045 PyThreadState* __tstate = wxPyBeginAllowThreads();
33046 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33047 wxPyEndAllowThreads(__tstate);
33048 if (PyErr_Occurred()) SWIG_fail;
33049 }
33050 resultobj = SWIG_Py_Void();
33051 return resultobj;
33052 fail:
33053 return NULL;
33054 }
33055
33056
33057 SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33058 PyObject *resultobj = 0;
33059 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33060 wxString *result = 0 ;
33061 void *argp1 = 0 ;
33062 int res1 = 0 ;
33063 PyObject *swig_obj[1] ;
33064
33065 if (!args) SWIG_fail;
33066 swig_obj[0] = args;
33067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33068 if (!SWIG_IsOK(res1)) {
33069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33070 }
33071 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33072 {
33073 PyThreadState* __tstate = wxPyBeginAllowThreads();
33074 {
33075 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33076 result = (wxString *) &_result_ref;
33077 }
33078 wxPyEndAllowThreads(__tstate);
33079 if (PyErr_Occurred()) SWIG_fail;
33080 }
33081 {
33082 #if wxUSE_UNICODE
33083 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33084 #else
33085 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33086 #endif
33087 }
33088 return resultobj;
33089 fail:
33090 return NULL;
33091 }
33092
33093
33094 SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33095 PyObject *resultobj = 0;
33096 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33097 wxString *arg2 = 0 ;
33098 void *argp1 = 0 ;
33099 int res1 = 0 ;
33100 bool temp2 = false ;
33101 PyObject * obj0 = 0 ;
33102 PyObject * obj1 = 0 ;
33103 char * kwnames[] = {
33104 (char *) "self",(char *) "label", NULL
33105 };
33106
33107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33109 if (!SWIG_IsOK(res1)) {
33110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33111 }
33112 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33113 {
33114 arg2 = wxString_in_helper(obj1);
33115 if (arg2 == NULL) SWIG_fail;
33116 temp2 = true;
33117 }
33118 {
33119 PyThreadState* __tstate = wxPyBeginAllowThreads();
33120 (arg1)->SetLabel((wxString const &)*arg2);
33121 wxPyEndAllowThreads(__tstate);
33122 if (PyErr_Occurred()) SWIG_fail;
33123 }
33124 resultobj = SWIG_Py_Void();
33125 {
33126 if (temp2)
33127 delete arg2;
33128 }
33129 return resultobj;
33130 fail:
33131 {
33132 if (temp2)
33133 delete arg2;
33134 }
33135 return NULL;
33136 }
33137
33138
33139 SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33140 PyObject *resultobj = 0;
33141 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33142 bool result;
33143 void *argp1 = 0 ;
33144 int res1 = 0 ;
33145 PyObject *swig_obj[1] ;
33146
33147 if (!args) SWIG_fail;
33148 swig_obj[0] = args;
33149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33150 if (!SWIG_IsOK(res1)) {
33151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33152 }
33153 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33154 {
33155 PyThreadState* __tstate = wxPyBeginAllowThreads();
33156 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33157 wxPyEndAllowThreads(__tstate);
33158 if (PyErr_Occurred()) SWIG_fail;
33159 }
33160 {
33161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33162 }
33163 return resultobj;
33164 fail:
33165 return NULL;
33166 }
33167
33168
33169 SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33170 PyObject *resultobj = 0;
33171 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33172 bool arg2 ;
33173 void *argp1 = 0 ;
33174 int res1 = 0 ;
33175 bool val2 ;
33176 int ecode2 = 0 ;
33177 PyObject * obj0 = 0 ;
33178 PyObject * obj1 = 0 ;
33179 char * kwnames[] = {
33180 (char *) "self",(char *) "editCancelled", NULL
33181 };
33182
33183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33185 if (!SWIG_IsOK(res1)) {
33186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33187 }
33188 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33189 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33190 if (!SWIG_IsOK(ecode2)) {
33191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33192 }
33193 arg2 = static_cast< bool >(val2);
33194 {
33195 PyThreadState* __tstate = wxPyBeginAllowThreads();
33196 (arg1)->SetEditCanceled(arg2);
33197 wxPyEndAllowThreads(__tstate);
33198 if (PyErr_Occurred()) SWIG_fail;
33199 }
33200 resultobj = SWIG_Py_Void();
33201 return resultobj;
33202 fail:
33203 return NULL;
33204 }
33205
33206
33207 SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33208 PyObject *resultobj = 0;
33209 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33210 wxString *arg2 = 0 ;
33211 void *argp1 = 0 ;
33212 int res1 = 0 ;
33213 bool temp2 = false ;
33214 PyObject * obj0 = 0 ;
33215 PyObject * obj1 = 0 ;
33216 char * kwnames[] = {
33217 (char *) "self",(char *) "toolTip", NULL
33218 };
33219
33220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33222 if (!SWIG_IsOK(res1)) {
33223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33224 }
33225 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33226 {
33227 arg2 = wxString_in_helper(obj1);
33228 if (arg2 == NULL) SWIG_fail;
33229 temp2 = true;
33230 }
33231 {
33232 PyThreadState* __tstate = wxPyBeginAllowThreads();
33233 (arg1)->SetToolTip((wxString const &)*arg2);
33234 wxPyEndAllowThreads(__tstate);
33235 if (PyErr_Occurred()) SWIG_fail;
33236 }
33237 resultobj = SWIG_Py_Void();
33238 {
33239 if (temp2)
33240 delete arg2;
33241 }
33242 return resultobj;
33243 fail:
33244 {
33245 if (temp2)
33246 delete arg2;
33247 }
33248 return NULL;
33249 }
33250
33251
33252 SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33253 PyObject *resultobj = 0;
33254 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33255 wxString result;
33256 void *argp1 = 0 ;
33257 int res1 = 0 ;
33258 PyObject *swig_obj[1] ;
33259
33260 if (!args) SWIG_fail;
33261 swig_obj[0] = args;
33262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33263 if (!SWIG_IsOK(res1)) {
33264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33265 }
33266 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33267 {
33268 PyThreadState* __tstate = wxPyBeginAllowThreads();
33269 result = (arg1)->GetToolTip();
33270 wxPyEndAllowThreads(__tstate);
33271 if (PyErr_Occurred()) SWIG_fail;
33272 }
33273 {
33274 #if wxUSE_UNICODE
33275 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33276 #else
33277 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33278 #endif
33279 }
33280 return resultobj;
33281 fail:
33282 return NULL;
33283 }
33284
33285
33286 SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33287 PyObject *obj;
33288 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33289 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33290 return SWIG_Py_Void();
33291 }
33292
33293 SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33294 return SWIG_Python_InitShadowInstance(args);
33295 }
33296
33297 SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33298 PyObject *resultobj = 0;
33299 wxWindow *arg1 = (wxWindow *) 0 ;
33300 int arg2 = (int) -1 ;
33301 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33302 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33303 wxSize const &arg4_defvalue = wxDefaultSize ;
33304 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33305 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33306 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33307 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33308 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33309 wxString *arg7 = (wxString *) &arg7_defvalue ;
33310 wxPyTreeCtrl *result = 0 ;
33311 void *argp1 = 0 ;
33312 int res1 = 0 ;
33313 int val2 ;
33314 int ecode2 = 0 ;
33315 wxPoint temp3 ;
33316 wxSize temp4 ;
33317 long val5 ;
33318 int ecode5 = 0 ;
33319 void *argp6 = 0 ;
33320 int res6 = 0 ;
33321 bool temp7 = false ;
33322 PyObject * obj0 = 0 ;
33323 PyObject * obj1 = 0 ;
33324 PyObject * obj2 = 0 ;
33325 PyObject * obj3 = 0 ;
33326 PyObject * obj4 = 0 ;
33327 PyObject * obj5 = 0 ;
33328 PyObject * obj6 = 0 ;
33329 char * kwnames[] = {
33330 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33331 };
33332
33333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33335 if (!SWIG_IsOK(res1)) {
33336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33337 }
33338 arg1 = reinterpret_cast< wxWindow * >(argp1);
33339 if (obj1) {
33340 ecode2 = SWIG_AsVal_int(obj1, &val2);
33341 if (!SWIG_IsOK(ecode2)) {
33342 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33343 }
33344 arg2 = static_cast< int >(val2);
33345 }
33346 if (obj2) {
33347 {
33348 arg3 = &temp3;
33349 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33350 }
33351 }
33352 if (obj3) {
33353 {
33354 arg4 = &temp4;
33355 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
33356 }
33357 }
33358 if (obj4) {
33359 ecode5 = SWIG_AsVal_long(obj4, &val5);
33360 if (!SWIG_IsOK(ecode5)) {
33361 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33362 }
33363 arg5 = static_cast< long >(val5);
33364 }
33365 if (obj5) {
33366 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33367 if (!SWIG_IsOK(res6)) {
33368 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33369 }
33370 if (!argp6) {
33371 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33372 }
33373 arg6 = reinterpret_cast< wxValidator * >(argp6);
33374 }
33375 if (obj6) {
33376 {
33377 arg7 = wxString_in_helper(obj6);
33378 if (arg7 == NULL) SWIG_fail;
33379 temp7 = true;
33380 }
33381 }
33382 {
33383 if (!wxPyCheckForApp()) SWIG_fail;
33384 PyThreadState* __tstate = wxPyBeginAllowThreads();
33385 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33386 wxPyEndAllowThreads(__tstate);
33387 if (PyErr_Occurred()) SWIG_fail;
33388 }
33389 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33390 {
33391 if (temp7)
33392 delete arg7;
33393 }
33394 return resultobj;
33395 fail:
33396 {
33397 if (temp7)
33398 delete arg7;
33399 }
33400 return NULL;
33401 }
33402
33403
33404 SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33405 PyObject *resultobj = 0;
33406 wxPyTreeCtrl *result = 0 ;
33407
33408 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33409 {
33410 if (!wxPyCheckForApp()) SWIG_fail;
33411 PyThreadState* __tstate = wxPyBeginAllowThreads();
33412 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33413 wxPyEndAllowThreads(__tstate);
33414 if (PyErr_Occurred()) SWIG_fail;
33415 }
33416 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33417 return resultobj;
33418 fail:
33419 return NULL;
33420 }
33421
33422
33423 SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33424 PyObject *resultobj = 0;
33425 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33426 wxWindow *arg2 = (wxWindow *) 0 ;
33427 int arg3 = (int) -1 ;
33428 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33429 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33430 wxSize const &arg5_defvalue = wxDefaultSize ;
33431 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33432 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33433 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33434 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33435 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33436 wxString *arg8 = (wxString *) &arg8_defvalue ;
33437 bool result;
33438 void *argp1 = 0 ;
33439 int res1 = 0 ;
33440 void *argp2 = 0 ;
33441 int res2 = 0 ;
33442 int val3 ;
33443 int ecode3 = 0 ;
33444 wxPoint temp4 ;
33445 wxSize temp5 ;
33446 long val6 ;
33447 int ecode6 = 0 ;
33448 void *argp7 = 0 ;
33449 int res7 = 0 ;
33450 bool temp8 = false ;
33451 PyObject * obj0 = 0 ;
33452 PyObject * obj1 = 0 ;
33453 PyObject * obj2 = 0 ;
33454 PyObject * obj3 = 0 ;
33455 PyObject * obj4 = 0 ;
33456 PyObject * obj5 = 0 ;
33457 PyObject * obj6 = 0 ;
33458 PyObject * obj7 = 0 ;
33459 char * kwnames[] = {
33460 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33461 };
33462
33463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33465 if (!SWIG_IsOK(res1)) {
33466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33467 }
33468 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33469 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33470 if (!SWIG_IsOK(res2)) {
33471 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33472 }
33473 arg2 = reinterpret_cast< wxWindow * >(argp2);
33474 if (obj2) {
33475 ecode3 = SWIG_AsVal_int(obj2, &val3);
33476 if (!SWIG_IsOK(ecode3)) {
33477 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33478 }
33479 arg3 = static_cast< int >(val3);
33480 }
33481 if (obj3) {
33482 {
33483 arg4 = &temp4;
33484 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
33485 }
33486 }
33487 if (obj4) {
33488 {
33489 arg5 = &temp5;
33490 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
33491 }
33492 }
33493 if (obj5) {
33494 ecode6 = SWIG_AsVal_long(obj5, &val6);
33495 if (!SWIG_IsOK(ecode6)) {
33496 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33497 }
33498 arg6 = static_cast< long >(val6);
33499 }
33500 if (obj6) {
33501 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33502 if (!SWIG_IsOK(res7)) {
33503 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33504 }
33505 if (!argp7) {
33506 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33507 }
33508 arg7 = reinterpret_cast< wxValidator * >(argp7);
33509 }
33510 if (obj7) {
33511 {
33512 arg8 = wxString_in_helper(obj7);
33513 if (arg8 == NULL) SWIG_fail;
33514 temp8 = true;
33515 }
33516 }
33517 {
33518 PyThreadState* __tstate = wxPyBeginAllowThreads();
33519 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33520 wxPyEndAllowThreads(__tstate);
33521 if (PyErr_Occurred()) SWIG_fail;
33522 }
33523 {
33524 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33525 }
33526 {
33527 if (temp8)
33528 delete arg8;
33529 }
33530 return resultobj;
33531 fail:
33532 {
33533 if (temp8)
33534 delete arg8;
33535 }
33536 return NULL;
33537 }
33538
33539
33540 SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33541 PyObject *resultobj = 0;
33542 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33543 PyObject *arg2 = (PyObject *) 0 ;
33544 PyObject *arg3 = (PyObject *) 0 ;
33545 void *argp1 = 0 ;
33546 int res1 = 0 ;
33547 PyObject * obj0 = 0 ;
33548 PyObject * obj1 = 0 ;
33549 PyObject * obj2 = 0 ;
33550 char * kwnames[] = {
33551 (char *) "self",(char *) "self",(char *) "_class", NULL
33552 };
33553
33554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33556 if (!SWIG_IsOK(res1)) {
33557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33558 }
33559 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33560 arg2 = obj1;
33561 arg3 = obj2;
33562 {
33563 PyThreadState* __tstate = wxPyBeginAllowThreads();
33564 (arg1)->_setCallbackInfo(arg2,arg3);
33565 wxPyEndAllowThreads(__tstate);
33566 if (PyErr_Occurred()) SWIG_fail;
33567 }
33568 resultobj = SWIG_Py_Void();
33569 return resultobj;
33570 fail:
33571 return NULL;
33572 }
33573
33574
33575 SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33576 PyObject *resultobj = 0;
33577 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33578 unsigned int result;
33579 void *argp1 = 0 ;
33580 int res1 = 0 ;
33581 PyObject *swig_obj[1] ;
33582
33583 if (!args) SWIG_fail;
33584 swig_obj[0] = args;
33585 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33586 if (!SWIG_IsOK(res1)) {
33587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33588 }
33589 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33590 {
33591 PyThreadState* __tstate = wxPyBeginAllowThreads();
33592 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
33593 wxPyEndAllowThreads(__tstate);
33594 if (PyErr_Occurred()) SWIG_fail;
33595 }
33596 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33597 return resultobj;
33598 fail:
33599 return NULL;
33600 }
33601
33602
33603 SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33604 PyObject *resultobj = 0;
33605 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33606 unsigned int result;
33607 void *argp1 = 0 ;
33608 int res1 = 0 ;
33609 PyObject *swig_obj[1] ;
33610
33611 if (!args) SWIG_fail;
33612 swig_obj[0] = args;
33613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33614 if (!SWIG_IsOK(res1)) {
33615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33616 }
33617 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33618 {
33619 PyThreadState* __tstate = wxPyBeginAllowThreads();
33620 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
33621 wxPyEndAllowThreads(__tstate);
33622 if (PyErr_Occurred()) SWIG_fail;
33623 }
33624 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33625 return resultobj;
33626 fail:
33627 return NULL;
33628 }
33629
33630
33631 SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33632 PyObject *resultobj = 0;
33633 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33634 unsigned int arg2 ;
33635 void *argp1 = 0 ;
33636 int res1 = 0 ;
33637 unsigned int val2 ;
33638 int ecode2 = 0 ;
33639 PyObject * obj0 = 0 ;
33640 PyObject * obj1 = 0 ;
33641 char * kwnames[] = {
33642 (char *) "self",(char *) "indent", NULL
33643 };
33644
33645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
33646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33647 if (!SWIG_IsOK(res1)) {
33648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33649 }
33650 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33651 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33652 if (!SWIG_IsOK(ecode2)) {
33653 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
33654 }
33655 arg2 = static_cast< unsigned int >(val2);
33656 {
33657 PyThreadState* __tstate = wxPyBeginAllowThreads();
33658 (arg1)->SetIndent(arg2);
33659 wxPyEndAllowThreads(__tstate);
33660 if (PyErr_Occurred()) SWIG_fail;
33661 }
33662 resultobj = SWIG_Py_Void();
33663 return resultobj;
33664 fail:
33665 return NULL;
33666 }
33667
33668
33669 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33670 PyObject *resultobj = 0;
33671 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33672 unsigned int result;
33673 void *argp1 = 0 ;
33674 int res1 = 0 ;
33675 PyObject *swig_obj[1] ;
33676
33677 if (!args) SWIG_fail;
33678 swig_obj[0] = args;
33679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33680 if (!SWIG_IsOK(res1)) {
33681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33682 }
33683 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33684 {
33685 PyThreadState* __tstate = wxPyBeginAllowThreads();
33686 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
33687 wxPyEndAllowThreads(__tstate);
33688 if (PyErr_Occurred()) SWIG_fail;
33689 }
33690 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33691 return resultobj;
33692 fail:
33693 return NULL;
33694 }
33695
33696
33697 SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33698 PyObject *resultobj = 0;
33699 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33700 unsigned int arg2 ;
33701 void *argp1 = 0 ;
33702 int res1 = 0 ;
33703 unsigned int val2 ;
33704 int ecode2 = 0 ;
33705 PyObject * obj0 = 0 ;
33706 PyObject * obj1 = 0 ;
33707 char * kwnames[] = {
33708 (char *) "self",(char *) "spacing", NULL
33709 };
33710
33711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
33712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33713 if (!SWIG_IsOK(res1)) {
33714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33715 }
33716 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33717 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33718 if (!SWIG_IsOK(ecode2)) {
33719 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
33720 }
33721 arg2 = static_cast< unsigned int >(val2);
33722 {
33723 PyThreadState* __tstate = wxPyBeginAllowThreads();
33724 (arg1)->SetSpacing(arg2);
33725 wxPyEndAllowThreads(__tstate);
33726 if (PyErr_Occurred()) SWIG_fail;
33727 }
33728 resultobj = SWIG_Py_Void();
33729 return resultobj;
33730 fail:
33731 return NULL;
33732 }
33733
33734
33735 SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33736 PyObject *resultobj = 0;
33737 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33738 wxImageList *result = 0 ;
33739 void *argp1 = 0 ;
33740 int res1 = 0 ;
33741 PyObject *swig_obj[1] ;
33742
33743 if (!args) SWIG_fail;
33744 swig_obj[0] = args;
33745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33746 if (!SWIG_IsOK(res1)) {
33747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33748 }
33749 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33750 {
33751 PyThreadState* __tstate = wxPyBeginAllowThreads();
33752 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
33753 wxPyEndAllowThreads(__tstate);
33754 if (PyErr_Occurred()) SWIG_fail;
33755 }
33756 {
33757 resultobj = wxPyMake_wxObject(result, (bool)0);
33758 }
33759 return resultobj;
33760 fail:
33761 return NULL;
33762 }
33763
33764
33765 SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33766 PyObject *resultobj = 0;
33767 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33768 wxImageList *result = 0 ;
33769 void *argp1 = 0 ;
33770 int res1 = 0 ;
33771 PyObject *swig_obj[1] ;
33772
33773 if (!args) SWIG_fail;
33774 swig_obj[0] = args;
33775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33776 if (!SWIG_IsOK(res1)) {
33777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33778 }
33779 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33780 {
33781 PyThreadState* __tstate = wxPyBeginAllowThreads();
33782 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
33783 wxPyEndAllowThreads(__tstate);
33784 if (PyErr_Occurred()) SWIG_fail;
33785 }
33786 {
33787 resultobj = wxPyMake_wxObject(result, (bool)0);
33788 }
33789 return resultobj;
33790 fail:
33791 return NULL;
33792 }
33793
33794
33795 SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33796 PyObject *resultobj = 0;
33797 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33798 wxImageList *arg2 = (wxImageList *) 0 ;
33799 void *argp1 = 0 ;
33800 int res1 = 0 ;
33801 void *argp2 = 0 ;
33802 int res2 = 0 ;
33803 PyObject * obj0 = 0 ;
33804 PyObject * obj1 = 0 ;
33805 char * kwnames[] = {
33806 (char *) "self",(char *) "imageList", NULL
33807 };
33808
33809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33811 if (!SWIG_IsOK(res1)) {
33812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33813 }
33814 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33815 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33816 if (!SWIG_IsOK(res2)) {
33817 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33818 }
33819 arg2 = reinterpret_cast< wxImageList * >(argp2);
33820 {
33821 PyThreadState* __tstate = wxPyBeginAllowThreads();
33822 (arg1)->SetImageList(arg2);
33823 wxPyEndAllowThreads(__tstate);
33824 if (PyErr_Occurred()) SWIG_fail;
33825 }
33826 resultobj = SWIG_Py_Void();
33827 return resultobj;
33828 fail:
33829 return NULL;
33830 }
33831
33832
33833 SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33834 PyObject *resultobj = 0;
33835 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33836 wxImageList *arg2 = (wxImageList *) 0 ;
33837 void *argp1 = 0 ;
33838 int res1 = 0 ;
33839 void *argp2 = 0 ;
33840 int res2 = 0 ;
33841 PyObject * obj0 = 0 ;
33842 PyObject * obj1 = 0 ;
33843 char * kwnames[] = {
33844 (char *) "self",(char *) "imageList", NULL
33845 };
33846
33847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33849 if (!SWIG_IsOK(res1)) {
33850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33851 }
33852 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33853 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33854 if (!SWIG_IsOK(res2)) {
33855 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33856 }
33857 arg2 = reinterpret_cast< wxImageList * >(argp2);
33858 {
33859 PyThreadState* __tstate = wxPyBeginAllowThreads();
33860 (arg1)->SetStateImageList(arg2);
33861 wxPyEndAllowThreads(__tstate);
33862 if (PyErr_Occurred()) SWIG_fail;
33863 }
33864 resultobj = SWIG_Py_Void();
33865 return resultobj;
33866 fail:
33867 return NULL;
33868 }
33869
33870
33871 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33872 PyObject *resultobj = 0;
33873 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33874 wxImageList *arg2 = (wxImageList *) 0 ;
33875 void *argp1 = 0 ;
33876 int res1 = 0 ;
33877 int res2 = 0 ;
33878 PyObject * obj0 = 0 ;
33879 PyObject * obj1 = 0 ;
33880 char * kwnames[] = {
33881 (char *) "self",(char *) "imageList", NULL
33882 };
33883
33884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33886 if (!SWIG_IsOK(res1)) {
33887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33888 }
33889 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33890 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
33891 if (!SWIG_IsOK(res2)) {
33892 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33893 }
33894 {
33895 PyThreadState* __tstate = wxPyBeginAllowThreads();
33896 (arg1)->AssignImageList(arg2);
33897 wxPyEndAllowThreads(__tstate);
33898 if (PyErr_Occurred()) SWIG_fail;
33899 }
33900 resultobj = SWIG_Py_Void();
33901 return resultobj;
33902 fail:
33903 return NULL;
33904 }
33905
33906
33907 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33908 PyObject *resultobj = 0;
33909 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33910 wxImageList *arg2 = (wxImageList *) 0 ;
33911 void *argp1 = 0 ;
33912 int res1 = 0 ;
33913 int res2 = 0 ;
33914 PyObject * obj0 = 0 ;
33915 PyObject * obj1 = 0 ;
33916 char * kwnames[] = {
33917 (char *) "self",(char *) "imageList", NULL
33918 };
33919
33920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33922 if (!SWIG_IsOK(res1)) {
33923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33924 }
33925 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33926 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
33927 if (!SWIG_IsOK(res2)) {
33928 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33929 }
33930 {
33931 PyThreadState* __tstate = wxPyBeginAllowThreads();
33932 (arg1)->AssignStateImageList(arg2);
33933 wxPyEndAllowThreads(__tstate);
33934 if (PyErr_Occurred()) SWIG_fail;
33935 }
33936 resultobj = SWIG_Py_Void();
33937 return resultobj;
33938 fail:
33939 return NULL;
33940 }
33941
33942
33943 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33944 PyObject *resultobj = 0;
33945 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33946 wxTreeItemId *arg2 = 0 ;
33947 wxString result;
33948 void *argp1 = 0 ;
33949 int res1 = 0 ;
33950 void *argp2 = 0 ;
33951 int res2 = 0 ;
33952 PyObject * obj0 = 0 ;
33953 PyObject * obj1 = 0 ;
33954 char * kwnames[] = {
33955 (char *) "self",(char *) "item", NULL
33956 };
33957
33958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
33959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33960 if (!SWIG_IsOK(res1)) {
33961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33962 }
33963 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33964 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33965 if (!SWIG_IsOK(res2)) {
33966 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33967 }
33968 if (!argp2) {
33969 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33970 }
33971 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33972 {
33973 PyThreadState* __tstate = wxPyBeginAllowThreads();
33974 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
33975 wxPyEndAllowThreads(__tstate);
33976 if (PyErr_Occurred()) SWIG_fail;
33977 }
33978 {
33979 #if wxUSE_UNICODE
33980 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33981 #else
33982 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33983 #endif
33984 }
33985 return resultobj;
33986 fail:
33987 return NULL;
33988 }
33989
33990
33991 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33992 PyObject *resultobj = 0;
33993 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33994 wxTreeItemId *arg2 = 0 ;
33995 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
33996 int result;
33997 void *argp1 = 0 ;
33998 int res1 = 0 ;
33999 void *argp2 = 0 ;
34000 int res2 = 0 ;
34001 int val3 ;
34002 int ecode3 = 0 ;
34003 PyObject * obj0 = 0 ;
34004 PyObject * obj1 = 0 ;
34005 PyObject * obj2 = 0 ;
34006 char * kwnames[] = {
34007 (char *) "self",(char *) "item",(char *) "which", NULL
34008 };
34009
34010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34012 if (!SWIG_IsOK(res1)) {
34013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34014 }
34015 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34016 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34017 if (!SWIG_IsOK(res2)) {
34018 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34019 }
34020 if (!argp2) {
34021 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34022 }
34023 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34024 if (obj2) {
34025 ecode3 = SWIG_AsVal_int(obj2, &val3);
34026 if (!SWIG_IsOK(ecode3)) {
34027 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34028 }
34029 arg3 = static_cast< wxTreeItemIcon >(val3);
34030 }
34031 {
34032 PyThreadState* __tstate = wxPyBeginAllowThreads();
34033 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34034 wxPyEndAllowThreads(__tstate);
34035 if (PyErr_Occurred()) SWIG_fail;
34036 }
34037 resultobj = SWIG_From_int(static_cast< int >(result));
34038 return resultobj;
34039 fail:
34040 return NULL;
34041 }
34042
34043
34044 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34045 PyObject *resultobj = 0;
34046 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34047 wxTreeItemId *arg2 = 0 ;
34048 wxPyTreeItemData *result = 0 ;
34049 void *argp1 = 0 ;
34050 int res1 = 0 ;
34051 void *argp2 = 0 ;
34052 int res2 = 0 ;
34053 PyObject * obj0 = 0 ;
34054 PyObject * obj1 = 0 ;
34055 char * kwnames[] = {
34056 (char *) "self",(char *) "item", NULL
34057 };
34058
34059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34061 if (!SWIG_IsOK(res1)) {
34062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34063 }
34064 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34065 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34066 if (!SWIG_IsOK(res2)) {
34067 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34068 }
34069 if (!argp2) {
34070 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34071 }
34072 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34073 {
34074 PyThreadState* __tstate = wxPyBeginAllowThreads();
34075 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34076 wxPyEndAllowThreads(__tstate);
34077 if (PyErr_Occurred()) SWIG_fail;
34078 }
34079 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34080 return resultobj;
34081 fail:
34082 return NULL;
34083 }
34084
34085
34086 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34087 PyObject *resultobj = 0;
34088 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34089 wxTreeItemId *arg2 = 0 ;
34090 PyObject *result = 0 ;
34091 void *argp1 = 0 ;
34092 int res1 = 0 ;
34093 void *argp2 = 0 ;
34094 int res2 = 0 ;
34095 PyObject * obj0 = 0 ;
34096 PyObject * obj1 = 0 ;
34097 char * kwnames[] = {
34098 (char *) "self",(char *) "item", NULL
34099 };
34100
34101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34103 if (!SWIG_IsOK(res1)) {
34104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34105 }
34106 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34107 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34108 if (!SWIG_IsOK(res2)) {
34109 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34110 }
34111 if (!argp2) {
34112 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34113 }
34114 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34115 {
34116 PyThreadState* __tstate = wxPyBeginAllowThreads();
34117 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34118 wxPyEndAllowThreads(__tstate);
34119 if (PyErr_Occurred()) SWIG_fail;
34120 }
34121 resultobj = result;
34122 return resultobj;
34123 fail:
34124 return NULL;
34125 }
34126
34127
34128 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34129 PyObject *resultobj = 0;
34130 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34131 wxTreeItemId *arg2 = 0 ;
34132 wxColour result;
34133 void *argp1 = 0 ;
34134 int res1 = 0 ;
34135 void *argp2 = 0 ;
34136 int res2 = 0 ;
34137 PyObject * obj0 = 0 ;
34138 PyObject * obj1 = 0 ;
34139 char * kwnames[] = {
34140 (char *) "self",(char *) "item", NULL
34141 };
34142
34143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34145 if (!SWIG_IsOK(res1)) {
34146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34147 }
34148 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34149 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34150 if (!SWIG_IsOK(res2)) {
34151 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34152 }
34153 if (!argp2) {
34154 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34155 }
34156 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34157 {
34158 PyThreadState* __tstate = wxPyBeginAllowThreads();
34159 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34160 wxPyEndAllowThreads(__tstate);
34161 if (PyErr_Occurred()) SWIG_fail;
34162 }
34163 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34164 return resultobj;
34165 fail:
34166 return NULL;
34167 }
34168
34169
34170 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34171 PyObject *resultobj = 0;
34172 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34173 wxTreeItemId *arg2 = 0 ;
34174 wxColour result;
34175 void *argp1 = 0 ;
34176 int res1 = 0 ;
34177 void *argp2 = 0 ;
34178 int res2 = 0 ;
34179 PyObject * obj0 = 0 ;
34180 PyObject * obj1 = 0 ;
34181 char * kwnames[] = {
34182 (char *) "self",(char *) "item", NULL
34183 };
34184
34185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34187 if (!SWIG_IsOK(res1)) {
34188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34189 }
34190 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34191 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34192 if (!SWIG_IsOK(res2)) {
34193 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34194 }
34195 if (!argp2) {
34196 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34197 }
34198 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34199 {
34200 PyThreadState* __tstate = wxPyBeginAllowThreads();
34201 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34202 wxPyEndAllowThreads(__tstate);
34203 if (PyErr_Occurred()) SWIG_fail;
34204 }
34205 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34206 return resultobj;
34207 fail:
34208 return NULL;
34209 }
34210
34211
34212 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34213 PyObject *resultobj = 0;
34214 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34215 wxTreeItemId *arg2 = 0 ;
34216 wxFont result;
34217 void *argp1 = 0 ;
34218 int res1 = 0 ;
34219 void *argp2 = 0 ;
34220 int res2 = 0 ;
34221 PyObject * obj0 = 0 ;
34222 PyObject * obj1 = 0 ;
34223 char * kwnames[] = {
34224 (char *) "self",(char *) "item", NULL
34225 };
34226
34227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34229 if (!SWIG_IsOK(res1)) {
34230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34231 }
34232 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34233 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34234 if (!SWIG_IsOK(res2)) {
34235 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34236 }
34237 if (!argp2) {
34238 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34239 }
34240 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34241 {
34242 PyThreadState* __tstate = wxPyBeginAllowThreads();
34243 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34244 wxPyEndAllowThreads(__tstate);
34245 if (PyErr_Occurred()) SWIG_fail;
34246 }
34247 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34248 return resultobj;
34249 fail:
34250 return NULL;
34251 }
34252
34253
34254 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34255 PyObject *resultobj = 0;
34256 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34257 wxTreeItemId *arg2 = 0 ;
34258 wxString *arg3 = 0 ;
34259 void *argp1 = 0 ;
34260 int res1 = 0 ;
34261 void *argp2 = 0 ;
34262 int res2 = 0 ;
34263 bool temp3 = false ;
34264 PyObject * obj0 = 0 ;
34265 PyObject * obj1 = 0 ;
34266 PyObject * obj2 = 0 ;
34267 char * kwnames[] = {
34268 (char *) "self",(char *) "item",(char *) "text", NULL
34269 };
34270
34271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34273 if (!SWIG_IsOK(res1)) {
34274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34275 }
34276 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34277 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34278 if (!SWIG_IsOK(res2)) {
34279 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34280 }
34281 if (!argp2) {
34282 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34283 }
34284 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34285 {
34286 arg3 = wxString_in_helper(obj2);
34287 if (arg3 == NULL) SWIG_fail;
34288 temp3 = true;
34289 }
34290 {
34291 PyThreadState* __tstate = wxPyBeginAllowThreads();
34292 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34293 wxPyEndAllowThreads(__tstate);
34294 if (PyErr_Occurred()) SWIG_fail;
34295 }
34296 resultobj = SWIG_Py_Void();
34297 {
34298 if (temp3)
34299 delete arg3;
34300 }
34301 return resultobj;
34302 fail:
34303 {
34304 if (temp3)
34305 delete arg3;
34306 }
34307 return NULL;
34308 }
34309
34310
34311 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34312 PyObject *resultobj = 0;
34313 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34314 wxTreeItemId *arg2 = 0 ;
34315 int arg3 ;
34316 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34317 void *argp1 = 0 ;
34318 int res1 = 0 ;
34319 void *argp2 = 0 ;
34320 int res2 = 0 ;
34321 int val3 ;
34322 int ecode3 = 0 ;
34323 int val4 ;
34324 int ecode4 = 0 ;
34325 PyObject * obj0 = 0 ;
34326 PyObject * obj1 = 0 ;
34327 PyObject * obj2 = 0 ;
34328 PyObject * obj3 = 0 ;
34329 char * kwnames[] = {
34330 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34331 };
34332
34333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34335 if (!SWIG_IsOK(res1)) {
34336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34337 }
34338 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34339 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34340 if (!SWIG_IsOK(res2)) {
34341 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34342 }
34343 if (!argp2) {
34344 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34345 }
34346 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34347 ecode3 = SWIG_AsVal_int(obj2, &val3);
34348 if (!SWIG_IsOK(ecode3)) {
34349 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34350 }
34351 arg3 = static_cast< int >(val3);
34352 if (obj3) {
34353 ecode4 = SWIG_AsVal_int(obj3, &val4);
34354 if (!SWIG_IsOK(ecode4)) {
34355 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34356 }
34357 arg4 = static_cast< wxTreeItemIcon >(val4);
34358 }
34359 {
34360 PyThreadState* __tstate = wxPyBeginAllowThreads();
34361 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34362 wxPyEndAllowThreads(__tstate);
34363 if (PyErr_Occurred()) SWIG_fail;
34364 }
34365 resultobj = SWIG_Py_Void();
34366 return resultobj;
34367 fail:
34368 return NULL;
34369 }
34370
34371
34372 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34373 PyObject *resultobj = 0;
34374 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34375 wxTreeItemId *arg2 = 0 ;
34376 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34377 void *argp1 = 0 ;
34378 int res1 = 0 ;
34379 void *argp2 = 0 ;
34380 int res2 = 0 ;
34381 int res3 = 0 ;
34382 PyObject * obj0 = 0 ;
34383 PyObject * obj1 = 0 ;
34384 PyObject * obj2 = 0 ;
34385 char * kwnames[] = {
34386 (char *) "self",(char *) "item",(char *) "data", NULL
34387 };
34388
34389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34391 if (!SWIG_IsOK(res1)) {
34392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34393 }
34394 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34395 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34396 if (!SWIG_IsOK(res2)) {
34397 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34398 }
34399 if (!argp2) {
34400 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34401 }
34402 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34403 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34404 if (!SWIG_IsOK(res3)) {
34405 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34406 }
34407 {
34408 PyThreadState* __tstate = wxPyBeginAllowThreads();
34409 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34410 wxPyEndAllowThreads(__tstate);
34411 if (PyErr_Occurred()) SWIG_fail;
34412 }
34413 resultobj = SWIG_Py_Void();
34414 return resultobj;
34415 fail:
34416 return NULL;
34417 }
34418
34419
34420 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34421 PyObject *resultobj = 0;
34422 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34423 wxTreeItemId *arg2 = 0 ;
34424 PyObject *arg3 = (PyObject *) 0 ;
34425 void *argp1 = 0 ;
34426 int res1 = 0 ;
34427 void *argp2 = 0 ;
34428 int res2 = 0 ;
34429 PyObject * obj0 = 0 ;
34430 PyObject * obj1 = 0 ;
34431 PyObject * obj2 = 0 ;
34432 char * kwnames[] = {
34433 (char *) "self",(char *) "item",(char *) "obj", NULL
34434 };
34435
34436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34438 if (!SWIG_IsOK(res1)) {
34439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34440 }
34441 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34442 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34443 if (!SWIG_IsOK(res2)) {
34444 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34445 }
34446 if (!argp2) {
34447 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34448 }
34449 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34450 arg3 = obj2;
34451 {
34452 PyThreadState* __tstate = wxPyBeginAllowThreads();
34453 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34454 wxPyEndAllowThreads(__tstate);
34455 if (PyErr_Occurred()) SWIG_fail;
34456 }
34457 resultobj = SWIG_Py_Void();
34458 return resultobj;
34459 fail:
34460 return NULL;
34461 }
34462
34463
34464 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34465 PyObject *resultobj = 0;
34466 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34467 wxTreeItemId *arg2 = 0 ;
34468 bool arg3 = (bool) true ;
34469 void *argp1 = 0 ;
34470 int res1 = 0 ;
34471 void *argp2 = 0 ;
34472 int res2 = 0 ;
34473 bool val3 ;
34474 int ecode3 = 0 ;
34475 PyObject * obj0 = 0 ;
34476 PyObject * obj1 = 0 ;
34477 PyObject * obj2 = 0 ;
34478 char * kwnames[] = {
34479 (char *) "self",(char *) "item",(char *) "has", NULL
34480 };
34481
34482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34484 if (!SWIG_IsOK(res1)) {
34485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34486 }
34487 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34488 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34489 if (!SWIG_IsOK(res2)) {
34490 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34491 }
34492 if (!argp2) {
34493 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34494 }
34495 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34496 if (obj2) {
34497 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34498 if (!SWIG_IsOK(ecode3)) {
34499 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34500 }
34501 arg3 = static_cast< bool >(val3);
34502 }
34503 {
34504 PyThreadState* __tstate = wxPyBeginAllowThreads();
34505 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34506 wxPyEndAllowThreads(__tstate);
34507 if (PyErr_Occurred()) SWIG_fail;
34508 }
34509 resultobj = SWIG_Py_Void();
34510 return resultobj;
34511 fail:
34512 return NULL;
34513 }
34514
34515
34516 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34517 PyObject *resultobj = 0;
34518 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34519 wxTreeItemId *arg2 = 0 ;
34520 bool arg3 = (bool) true ;
34521 void *argp1 = 0 ;
34522 int res1 = 0 ;
34523 void *argp2 = 0 ;
34524 int res2 = 0 ;
34525 bool val3 ;
34526 int ecode3 = 0 ;
34527 PyObject * obj0 = 0 ;
34528 PyObject * obj1 = 0 ;
34529 PyObject * obj2 = 0 ;
34530 char * kwnames[] = {
34531 (char *) "self",(char *) "item",(char *) "bold", NULL
34532 };
34533
34534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34536 if (!SWIG_IsOK(res1)) {
34537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34538 }
34539 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34540 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34541 if (!SWIG_IsOK(res2)) {
34542 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34543 }
34544 if (!argp2) {
34545 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34546 }
34547 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34548 if (obj2) {
34549 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34550 if (!SWIG_IsOK(ecode3)) {
34551 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
34552 }
34553 arg3 = static_cast< bool >(val3);
34554 }
34555 {
34556 PyThreadState* __tstate = wxPyBeginAllowThreads();
34557 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
34558 wxPyEndAllowThreads(__tstate);
34559 if (PyErr_Occurred()) SWIG_fail;
34560 }
34561 resultobj = SWIG_Py_Void();
34562 return resultobj;
34563 fail:
34564 return NULL;
34565 }
34566
34567
34568 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34569 PyObject *resultobj = 0;
34570 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34571 wxTreeItemId *arg2 = 0 ;
34572 bool arg3 = (bool) true ;
34573 void *argp1 = 0 ;
34574 int res1 = 0 ;
34575 void *argp2 = 0 ;
34576 int res2 = 0 ;
34577 bool val3 ;
34578 int ecode3 = 0 ;
34579 PyObject * obj0 = 0 ;
34580 PyObject * obj1 = 0 ;
34581 PyObject * obj2 = 0 ;
34582 char * kwnames[] = {
34583 (char *) "self",(char *) "item",(char *) "highlight", NULL
34584 };
34585
34586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34588 if (!SWIG_IsOK(res1)) {
34589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34590 }
34591 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34592 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34593 if (!SWIG_IsOK(res2)) {
34594 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34595 }
34596 if (!argp2) {
34597 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34598 }
34599 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34600 if (obj2) {
34601 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34602 if (!SWIG_IsOK(ecode3)) {
34603 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
34604 }
34605 arg3 = static_cast< bool >(val3);
34606 }
34607 {
34608 PyThreadState* __tstate = wxPyBeginAllowThreads();
34609 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
34610 wxPyEndAllowThreads(__tstate);
34611 if (PyErr_Occurred()) SWIG_fail;
34612 }
34613 resultobj = SWIG_Py_Void();
34614 return resultobj;
34615 fail:
34616 return NULL;
34617 }
34618
34619
34620 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34621 PyObject *resultobj = 0;
34622 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34623 wxTreeItemId *arg2 = 0 ;
34624 wxColour *arg3 = 0 ;
34625 void *argp1 = 0 ;
34626 int res1 = 0 ;
34627 void *argp2 = 0 ;
34628 int res2 = 0 ;
34629 wxColour temp3 ;
34630 PyObject * obj0 = 0 ;
34631 PyObject * obj1 = 0 ;
34632 PyObject * obj2 = 0 ;
34633 char * kwnames[] = {
34634 (char *) "self",(char *) "item",(char *) "col", NULL
34635 };
34636
34637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34639 if (!SWIG_IsOK(res1)) {
34640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34641 }
34642 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34643 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34644 if (!SWIG_IsOK(res2)) {
34645 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34646 }
34647 if (!argp2) {
34648 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34649 }
34650 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34651 {
34652 arg3 = &temp3;
34653 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34654 }
34655 {
34656 PyThreadState* __tstate = wxPyBeginAllowThreads();
34657 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34658 wxPyEndAllowThreads(__tstate);
34659 if (PyErr_Occurred()) SWIG_fail;
34660 }
34661 resultobj = SWIG_Py_Void();
34662 return resultobj;
34663 fail:
34664 return NULL;
34665 }
34666
34667
34668 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34669 PyObject *resultobj = 0;
34670 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34671 wxTreeItemId *arg2 = 0 ;
34672 wxColour *arg3 = 0 ;
34673 void *argp1 = 0 ;
34674 int res1 = 0 ;
34675 void *argp2 = 0 ;
34676 int res2 = 0 ;
34677 wxColour temp3 ;
34678 PyObject * obj0 = 0 ;
34679 PyObject * obj1 = 0 ;
34680 PyObject * obj2 = 0 ;
34681 char * kwnames[] = {
34682 (char *) "self",(char *) "item",(char *) "col", NULL
34683 };
34684
34685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34687 if (!SWIG_IsOK(res1)) {
34688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34689 }
34690 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34691 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34692 if (!SWIG_IsOK(res2)) {
34693 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34694 }
34695 if (!argp2) {
34696 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34697 }
34698 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34699 {
34700 arg3 = &temp3;
34701 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34702 }
34703 {
34704 PyThreadState* __tstate = wxPyBeginAllowThreads();
34705 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34706 wxPyEndAllowThreads(__tstate);
34707 if (PyErr_Occurred()) SWIG_fail;
34708 }
34709 resultobj = SWIG_Py_Void();
34710 return resultobj;
34711 fail:
34712 return NULL;
34713 }
34714
34715
34716 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34717 PyObject *resultobj = 0;
34718 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34719 wxTreeItemId *arg2 = 0 ;
34720 wxFont *arg3 = 0 ;
34721 void *argp1 = 0 ;
34722 int res1 = 0 ;
34723 void *argp2 = 0 ;
34724 int res2 = 0 ;
34725 void *argp3 = 0 ;
34726 int res3 = 0 ;
34727 PyObject * obj0 = 0 ;
34728 PyObject * obj1 = 0 ;
34729 PyObject * obj2 = 0 ;
34730 char * kwnames[] = {
34731 (char *) "self",(char *) "item",(char *) "font", NULL
34732 };
34733
34734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34736 if (!SWIG_IsOK(res1)) {
34737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34738 }
34739 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34740 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34741 if (!SWIG_IsOK(res2)) {
34742 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34743 }
34744 if (!argp2) {
34745 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34746 }
34747 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34748 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
34749 if (!SWIG_IsOK(res3)) {
34750 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34751 }
34752 if (!argp3) {
34753 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34754 }
34755 arg3 = reinterpret_cast< wxFont * >(argp3);
34756 {
34757 PyThreadState* __tstate = wxPyBeginAllowThreads();
34758 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
34759 wxPyEndAllowThreads(__tstate);
34760 if (PyErr_Occurred()) SWIG_fail;
34761 }
34762 resultobj = SWIG_Py_Void();
34763 return resultobj;
34764 fail:
34765 return NULL;
34766 }
34767
34768
34769 SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34770 PyObject *resultobj = 0;
34771 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34772 wxTreeItemId *arg2 = 0 ;
34773 bool result;
34774 void *argp1 = 0 ;
34775 int res1 = 0 ;
34776 void *argp2 = 0 ;
34777 int res2 = 0 ;
34778 PyObject * obj0 = 0 ;
34779 PyObject * obj1 = 0 ;
34780 char * kwnames[] = {
34781 (char *) "self",(char *) "item", NULL
34782 };
34783
34784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
34785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34786 if (!SWIG_IsOK(res1)) {
34787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34788 }
34789 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34790 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34791 if (!SWIG_IsOK(res2)) {
34792 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34793 }
34794 if (!argp2) {
34795 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34796 }
34797 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34798 {
34799 PyThreadState* __tstate = wxPyBeginAllowThreads();
34800 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
34801 wxPyEndAllowThreads(__tstate);
34802 if (PyErr_Occurred()) SWIG_fail;
34803 }
34804 {
34805 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34806 }
34807 return resultobj;
34808 fail:
34809 return NULL;
34810 }
34811
34812
34813 SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34814 PyObject *resultobj = 0;
34815 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34816 wxTreeItemId *arg2 = 0 ;
34817 bool result;
34818 void *argp1 = 0 ;
34819 int res1 = 0 ;
34820 void *argp2 = 0 ;
34821 int res2 = 0 ;
34822 PyObject * obj0 = 0 ;
34823 PyObject * obj1 = 0 ;
34824 char * kwnames[] = {
34825 (char *) "self",(char *) "item", NULL
34826 };
34827
34828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
34829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34830 if (!SWIG_IsOK(res1)) {
34831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34832 }
34833 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34834 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34835 if (!SWIG_IsOK(res2)) {
34836 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34837 }
34838 if (!argp2) {
34839 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34840 }
34841 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34842 {
34843 PyThreadState* __tstate = wxPyBeginAllowThreads();
34844 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
34845 wxPyEndAllowThreads(__tstate);
34846 if (PyErr_Occurred()) SWIG_fail;
34847 }
34848 {
34849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34850 }
34851 return resultobj;
34852 fail:
34853 return NULL;
34854 }
34855
34856
34857 SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34858 PyObject *resultobj = 0;
34859 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34860 wxTreeItemId *arg2 = 0 ;
34861 bool result;
34862 void *argp1 = 0 ;
34863 int res1 = 0 ;
34864 void *argp2 = 0 ;
34865 int res2 = 0 ;
34866 PyObject * obj0 = 0 ;
34867 PyObject * obj1 = 0 ;
34868 char * kwnames[] = {
34869 (char *) "self",(char *) "item", NULL
34870 };
34871
34872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
34873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34874 if (!SWIG_IsOK(res1)) {
34875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34876 }
34877 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34878 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34879 if (!SWIG_IsOK(res2)) {
34880 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34881 }
34882 if (!argp2) {
34883 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34884 }
34885 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34886 {
34887 PyThreadState* __tstate = wxPyBeginAllowThreads();
34888 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
34889 wxPyEndAllowThreads(__tstate);
34890 if (PyErr_Occurred()) SWIG_fail;
34891 }
34892 {
34893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34894 }
34895 return resultobj;
34896 fail:
34897 return NULL;
34898 }
34899
34900
34901 SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34902 PyObject *resultobj = 0;
34903 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34904 wxTreeItemId *arg2 = 0 ;
34905 bool result;
34906 void *argp1 = 0 ;
34907 int res1 = 0 ;
34908 void *argp2 = 0 ;
34909 int res2 = 0 ;
34910 PyObject * obj0 = 0 ;
34911 PyObject * obj1 = 0 ;
34912 char * kwnames[] = {
34913 (char *) "self",(char *) "item", NULL
34914 };
34915
34916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
34917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34918 if (!SWIG_IsOK(res1)) {
34919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34920 }
34921 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34922 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34923 if (!SWIG_IsOK(res2)) {
34924 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34925 }
34926 if (!argp2) {
34927 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34928 }
34929 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34930 {
34931 PyThreadState* __tstate = wxPyBeginAllowThreads();
34932 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
34933 wxPyEndAllowThreads(__tstate);
34934 if (PyErr_Occurred()) SWIG_fail;
34935 }
34936 {
34937 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34938 }
34939 return resultobj;
34940 fail:
34941 return NULL;
34942 }
34943
34944
34945 SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34946 PyObject *resultobj = 0;
34947 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34948 wxTreeItemId *arg2 = 0 ;
34949 bool result;
34950 void *argp1 = 0 ;
34951 int res1 = 0 ;
34952 void *argp2 = 0 ;
34953 int res2 = 0 ;
34954 PyObject * obj0 = 0 ;
34955 PyObject * obj1 = 0 ;
34956 char * kwnames[] = {
34957 (char *) "self",(char *) "item", NULL
34958 };
34959
34960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
34961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34962 if (!SWIG_IsOK(res1)) {
34963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34964 }
34965 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34966 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34967 if (!SWIG_IsOK(res2)) {
34968 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34969 }
34970 if (!argp2) {
34971 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34972 }
34973 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34974 {
34975 PyThreadState* __tstate = wxPyBeginAllowThreads();
34976 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
34977 wxPyEndAllowThreads(__tstate);
34978 if (PyErr_Occurred()) SWIG_fail;
34979 }
34980 {
34981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34982 }
34983 return resultobj;
34984 fail:
34985 return NULL;
34986 }
34987
34988
34989 SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34990 PyObject *resultobj = 0;
34991 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34992 wxTreeItemId *arg2 = 0 ;
34993 bool arg3 = (bool) true ;
34994 size_t result;
34995 void *argp1 = 0 ;
34996 int res1 = 0 ;
34997 void *argp2 = 0 ;
34998 int res2 = 0 ;
34999 bool val3 ;
35000 int ecode3 = 0 ;
35001 PyObject * obj0 = 0 ;
35002 PyObject * obj1 = 0 ;
35003 PyObject * obj2 = 0 ;
35004 char * kwnames[] = {
35005 (char *) "self",(char *) "item",(char *) "recursively", NULL
35006 };
35007
35008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35010 if (!SWIG_IsOK(res1)) {
35011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35012 }
35013 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35014 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35015 if (!SWIG_IsOK(res2)) {
35016 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35017 }
35018 if (!argp2) {
35019 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35020 }
35021 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35022 if (obj2) {
35023 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35024 if (!SWIG_IsOK(ecode3)) {
35025 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35026 }
35027 arg3 = static_cast< bool >(val3);
35028 }
35029 {
35030 PyThreadState* __tstate = wxPyBeginAllowThreads();
35031 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35032 wxPyEndAllowThreads(__tstate);
35033 if (PyErr_Occurred()) SWIG_fail;
35034 }
35035 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35036 return resultobj;
35037 fail:
35038 return NULL;
35039 }
35040
35041
35042 SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35043 PyObject *resultobj = 0;
35044 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35045 wxTreeItemId result;
35046 void *argp1 = 0 ;
35047 int res1 = 0 ;
35048 PyObject *swig_obj[1] ;
35049
35050 if (!args) SWIG_fail;
35051 swig_obj[0] = args;
35052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35053 if (!SWIG_IsOK(res1)) {
35054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35055 }
35056 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35057 {
35058 PyThreadState* __tstate = wxPyBeginAllowThreads();
35059 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35060 wxPyEndAllowThreads(__tstate);
35061 if (PyErr_Occurred()) SWIG_fail;
35062 }
35063 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35064 return resultobj;
35065 fail:
35066 return NULL;
35067 }
35068
35069
35070 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35071 PyObject *resultobj = 0;
35072 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35073 wxTreeItemId result;
35074 void *argp1 = 0 ;
35075 int res1 = 0 ;
35076 PyObject *swig_obj[1] ;
35077
35078 if (!args) SWIG_fail;
35079 swig_obj[0] = args;
35080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35081 if (!SWIG_IsOK(res1)) {
35082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35083 }
35084 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35085 {
35086 PyThreadState* __tstate = wxPyBeginAllowThreads();
35087 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35088 wxPyEndAllowThreads(__tstate);
35089 if (PyErr_Occurred()) SWIG_fail;
35090 }
35091 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35092 return resultobj;
35093 fail:
35094 return NULL;
35095 }
35096
35097
35098 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35099 PyObject *resultobj = 0;
35100 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35101 PyObject *result = 0 ;
35102 void *argp1 = 0 ;
35103 int res1 = 0 ;
35104 PyObject *swig_obj[1] ;
35105
35106 if (!args) SWIG_fail;
35107 swig_obj[0] = args;
35108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35109 if (!SWIG_IsOK(res1)) {
35110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35111 }
35112 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35113 {
35114 PyThreadState* __tstate = wxPyBeginAllowThreads();
35115 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35116 wxPyEndAllowThreads(__tstate);
35117 if (PyErr_Occurred()) SWIG_fail;
35118 }
35119 resultobj = result;
35120 return resultobj;
35121 fail:
35122 return NULL;
35123 }
35124
35125
35126 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35127 PyObject *resultobj = 0;
35128 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35129 wxTreeItemId *arg2 = 0 ;
35130 wxTreeItemId result;
35131 void *argp1 = 0 ;
35132 int res1 = 0 ;
35133 void *argp2 = 0 ;
35134 int res2 = 0 ;
35135 PyObject * obj0 = 0 ;
35136 PyObject * obj1 = 0 ;
35137 char * kwnames[] = {
35138 (char *) "self",(char *) "item", NULL
35139 };
35140
35141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35143 if (!SWIG_IsOK(res1)) {
35144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35145 }
35146 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35147 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35148 if (!SWIG_IsOK(res2)) {
35149 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35150 }
35151 if (!argp2) {
35152 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35153 }
35154 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35155 {
35156 PyThreadState* __tstate = wxPyBeginAllowThreads();
35157 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35158 wxPyEndAllowThreads(__tstate);
35159 if (PyErr_Occurred()) SWIG_fail;
35160 }
35161 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35162 return resultobj;
35163 fail:
35164 return NULL;
35165 }
35166
35167
35168 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35169 PyObject *resultobj = 0;
35170 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35171 wxTreeItemId *arg2 = 0 ;
35172 PyObject *result = 0 ;
35173 void *argp1 = 0 ;
35174 int res1 = 0 ;
35175 void *argp2 = 0 ;
35176 int res2 = 0 ;
35177 PyObject * obj0 = 0 ;
35178 PyObject * obj1 = 0 ;
35179 char * kwnames[] = {
35180 (char *) "self",(char *) "item", NULL
35181 };
35182
35183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35185 if (!SWIG_IsOK(res1)) {
35186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35187 }
35188 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35189 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35190 if (!SWIG_IsOK(res2)) {
35191 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35192 }
35193 if (!argp2) {
35194 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35195 }
35196 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35197 {
35198 PyThreadState* __tstate = wxPyBeginAllowThreads();
35199 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35200 wxPyEndAllowThreads(__tstate);
35201 if (PyErr_Occurred()) SWIG_fail;
35202 }
35203 resultobj = result;
35204 return resultobj;
35205 fail:
35206 return NULL;
35207 }
35208
35209
35210 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35211 PyObject *resultobj = 0;
35212 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35213 wxTreeItemId *arg2 = 0 ;
35214 void *arg3 = (void *) 0 ;
35215 PyObject *result = 0 ;
35216 void *argp1 = 0 ;
35217 int res1 = 0 ;
35218 void *argp2 = 0 ;
35219 int res2 = 0 ;
35220 int res3 ;
35221 PyObject * obj0 = 0 ;
35222 PyObject * obj1 = 0 ;
35223 PyObject * obj2 = 0 ;
35224 char * kwnames[] = {
35225 (char *) "self",(char *) "item",(char *) "cookie", NULL
35226 };
35227
35228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35230 if (!SWIG_IsOK(res1)) {
35231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35232 }
35233 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35234 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35235 if (!SWIG_IsOK(res2)) {
35236 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35237 }
35238 if (!argp2) {
35239 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35240 }
35241 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35242 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35243 if (!SWIG_IsOK(res3)) {
35244 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35245 }
35246 {
35247 PyThreadState* __tstate = wxPyBeginAllowThreads();
35248 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35249 wxPyEndAllowThreads(__tstate);
35250 if (PyErr_Occurred()) SWIG_fail;
35251 }
35252 resultobj = result;
35253 return resultobj;
35254 fail:
35255 return NULL;
35256 }
35257
35258
35259 SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35260 PyObject *resultobj = 0;
35261 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35262 wxTreeItemId *arg2 = 0 ;
35263 wxTreeItemId result;
35264 void *argp1 = 0 ;
35265 int res1 = 0 ;
35266 void *argp2 = 0 ;
35267 int res2 = 0 ;
35268 PyObject * obj0 = 0 ;
35269 PyObject * obj1 = 0 ;
35270 char * kwnames[] = {
35271 (char *) "self",(char *) "item", NULL
35272 };
35273
35274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35276 if (!SWIG_IsOK(res1)) {
35277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35278 }
35279 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35280 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35281 if (!SWIG_IsOK(res2)) {
35282 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35283 }
35284 if (!argp2) {
35285 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35286 }
35287 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35288 {
35289 PyThreadState* __tstate = wxPyBeginAllowThreads();
35290 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35291 wxPyEndAllowThreads(__tstate);
35292 if (PyErr_Occurred()) SWIG_fail;
35293 }
35294 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35295 return resultobj;
35296 fail:
35297 return NULL;
35298 }
35299
35300
35301 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35302 PyObject *resultobj = 0;
35303 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35304 wxTreeItemId *arg2 = 0 ;
35305 wxTreeItemId result;
35306 void *argp1 = 0 ;
35307 int res1 = 0 ;
35308 void *argp2 = 0 ;
35309 int res2 = 0 ;
35310 PyObject * obj0 = 0 ;
35311 PyObject * obj1 = 0 ;
35312 char * kwnames[] = {
35313 (char *) "self",(char *) "item", NULL
35314 };
35315
35316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35318 if (!SWIG_IsOK(res1)) {
35319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35320 }
35321 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35322 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35323 if (!SWIG_IsOK(res2)) {
35324 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35325 }
35326 if (!argp2) {
35327 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35328 }
35329 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35330 {
35331 PyThreadState* __tstate = wxPyBeginAllowThreads();
35332 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35333 wxPyEndAllowThreads(__tstate);
35334 if (PyErr_Occurred()) SWIG_fail;
35335 }
35336 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35337 return resultobj;
35338 fail:
35339 return NULL;
35340 }
35341
35342
35343 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35344 PyObject *resultobj = 0;
35345 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35346 wxTreeItemId *arg2 = 0 ;
35347 wxTreeItemId result;
35348 void *argp1 = 0 ;
35349 int res1 = 0 ;
35350 void *argp2 = 0 ;
35351 int res2 = 0 ;
35352 PyObject * obj0 = 0 ;
35353 PyObject * obj1 = 0 ;
35354 char * kwnames[] = {
35355 (char *) "self",(char *) "item", NULL
35356 };
35357
35358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35360 if (!SWIG_IsOK(res1)) {
35361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35362 }
35363 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35364 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35365 if (!SWIG_IsOK(res2)) {
35366 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35367 }
35368 if (!argp2) {
35369 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35370 }
35371 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35372 {
35373 PyThreadState* __tstate = wxPyBeginAllowThreads();
35374 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35375 wxPyEndAllowThreads(__tstate);
35376 if (PyErr_Occurred()) SWIG_fail;
35377 }
35378 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35379 return resultobj;
35380 fail:
35381 return NULL;
35382 }
35383
35384
35385 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35386 PyObject *resultobj = 0;
35387 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35388 wxTreeItemId result;
35389 void *argp1 = 0 ;
35390 int res1 = 0 ;
35391 PyObject *swig_obj[1] ;
35392
35393 if (!args) SWIG_fail;
35394 swig_obj[0] = args;
35395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35396 if (!SWIG_IsOK(res1)) {
35397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35398 }
35399 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35400 {
35401 PyThreadState* __tstate = wxPyBeginAllowThreads();
35402 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35403 wxPyEndAllowThreads(__tstate);
35404 if (PyErr_Occurred()) SWIG_fail;
35405 }
35406 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35407 return resultobj;
35408 fail:
35409 return NULL;
35410 }
35411
35412
35413 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35414 PyObject *resultobj = 0;
35415 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35416 wxTreeItemId *arg2 = 0 ;
35417 wxTreeItemId result;
35418 void *argp1 = 0 ;
35419 int res1 = 0 ;
35420 void *argp2 = 0 ;
35421 int res2 = 0 ;
35422 PyObject * obj0 = 0 ;
35423 PyObject * obj1 = 0 ;
35424 char * kwnames[] = {
35425 (char *) "self",(char *) "item", NULL
35426 };
35427
35428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35430 if (!SWIG_IsOK(res1)) {
35431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35432 }
35433 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35434 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35435 if (!SWIG_IsOK(res2)) {
35436 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35437 }
35438 if (!argp2) {
35439 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35440 }
35441 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35442 {
35443 PyThreadState* __tstate = wxPyBeginAllowThreads();
35444 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35445 wxPyEndAllowThreads(__tstate);
35446 if (PyErr_Occurred()) SWIG_fail;
35447 }
35448 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35449 return resultobj;
35450 fail:
35451 return NULL;
35452 }
35453
35454
35455 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35456 PyObject *resultobj = 0;
35457 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35458 wxTreeItemId *arg2 = 0 ;
35459 wxTreeItemId result;
35460 void *argp1 = 0 ;
35461 int res1 = 0 ;
35462 void *argp2 = 0 ;
35463 int res2 = 0 ;
35464 PyObject * obj0 = 0 ;
35465 PyObject * obj1 = 0 ;
35466 char * kwnames[] = {
35467 (char *) "self",(char *) "item", NULL
35468 };
35469
35470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35472 if (!SWIG_IsOK(res1)) {
35473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35474 }
35475 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35476 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35477 if (!SWIG_IsOK(res2)) {
35478 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35479 }
35480 if (!argp2) {
35481 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35482 }
35483 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35484 {
35485 PyThreadState* __tstate = wxPyBeginAllowThreads();
35486 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35487 wxPyEndAllowThreads(__tstate);
35488 if (PyErr_Occurred()) SWIG_fail;
35489 }
35490 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35491 return resultobj;
35492 fail:
35493 return NULL;
35494 }
35495
35496
35497 SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35498 PyObject *resultobj = 0;
35499 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35500 wxString *arg2 = 0 ;
35501 int arg3 = (int) -1 ;
35502 int arg4 = (int) -1 ;
35503 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35504 wxTreeItemId result;
35505 void *argp1 = 0 ;
35506 int res1 = 0 ;
35507 bool temp2 = false ;
35508 int val3 ;
35509 int ecode3 = 0 ;
35510 int val4 ;
35511 int ecode4 = 0 ;
35512 int res5 = 0 ;
35513 PyObject * obj0 = 0 ;
35514 PyObject * obj1 = 0 ;
35515 PyObject * obj2 = 0 ;
35516 PyObject * obj3 = 0 ;
35517 PyObject * obj4 = 0 ;
35518 char * kwnames[] = {
35519 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35520 };
35521
35522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35524 if (!SWIG_IsOK(res1)) {
35525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35526 }
35527 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35528 {
35529 arg2 = wxString_in_helper(obj1);
35530 if (arg2 == NULL) SWIG_fail;
35531 temp2 = true;
35532 }
35533 if (obj2) {
35534 ecode3 = SWIG_AsVal_int(obj2, &val3);
35535 if (!SWIG_IsOK(ecode3)) {
35536 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35537 }
35538 arg3 = static_cast< int >(val3);
35539 }
35540 if (obj3) {
35541 ecode4 = SWIG_AsVal_int(obj3, &val4);
35542 if (!SWIG_IsOK(ecode4)) {
35543 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
35544 }
35545 arg4 = static_cast< int >(val4);
35546 }
35547 if (obj4) {
35548 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35549 if (!SWIG_IsOK(res5)) {
35550 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
35551 }
35552 }
35553 {
35554 PyThreadState* __tstate = wxPyBeginAllowThreads();
35555 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
35556 wxPyEndAllowThreads(__tstate);
35557 if (PyErr_Occurred()) SWIG_fail;
35558 }
35559 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35560 {
35561 if (temp2)
35562 delete arg2;
35563 }
35564 return resultobj;
35565 fail:
35566 {
35567 if (temp2)
35568 delete arg2;
35569 }
35570 return NULL;
35571 }
35572
35573
35574 SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35575 PyObject *resultobj = 0;
35576 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35577 wxTreeItemId *arg2 = 0 ;
35578 wxString *arg3 = 0 ;
35579 int arg4 = (int) -1 ;
35580 int arg5 = (int) -1 ;
35581 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35582 wxTreeItemId result;
35583 void *argp1 = 0 ;
35584 int res1 = 0 ;
35585 void *argp2 = 0 ;
35586 int res2 = 0 ;
35587 bool temp3 = false ;
35588 int val4 ;
35589 int ecode4 = 0 ;
35590 int val5 ;
35591 int ecode5 = 0 ;
35592 int res6 = 0 ;
35593 PyObject * obj0 = 0 ;
35594 PyObject * obj1 = 0 ;
35595 PyObject * obj2 = 0 ;
35596 PyObject * obj3 = 0 ;
35597 PyObject * obj4 = 0 ;
35598 PyObject * obj5 = 0 ;
35599 char * kwnames[] = {
35600 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35601 };
35602
35603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35605 if (!SWIG_IsOK(res1)) {
35606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35607 }
35608 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35609 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35610 if (!SWIG_IsOK(res2)) {
35611 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35612 }
35613 if (!argp2) {
35614 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35615 }
35616 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35617 {
35618 arg3 = wxString_in_helper(obj2);
35619 if (arg3 == NULL) SWIG_fail;
35620 temp3 = true;
35621 }
35622 if (obj3) {
35623 ecode4 = SWIG_AsVal_int(obj3, &val4);
35624 if (!SWIG_IsOK(ecode4)) {
35625 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
35626 }
35627 arg4 = static_cast< int >(val4);
35628 }
35629 if (obj4) {
35630 ecode5 = SWIG_AsVal_int(obj4, &val5);
35631 if (!SWIG_IsOK(ecode5)) {
35632 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
35633 }
35634 arg5 = static_cast< int >(val5);
35635 }
35636 if (obj5) {
35637 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35638 if (!SWIG_IsOK(res6)) {
35639 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
35640 }
35641 }
35642 {
35643 PyThreadState* __tstate = wxPyBeginAllowThreads();
35644 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35645 wxPyEndAllowThreads(__tstate);
35646 if (PyErr_Occurred()) SWIG_fail;
35647 }
35648 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35649 {
35650 if (temp3)
35651 delete arg3;
35652 }
35653 return resultobj;
35654 fail:
35655 {
35656 if (temp3)
35657 delete arg3;
35658 }
35659 return NULL;
35660 }
35661
35662
35663 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35664 PyObject *resultobj = 0;
35665 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35666 wxTreeItemId *arg2 = 0 ;
35667 wxTreeItemId *arg3 = 0 ;
35668 wxString *arg4 = 0 ;
35669 int arg5 = (int) -1 ;
35670 int arg6 = (int) -1 ;
35671 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35672 wxTreeItemId result;
35673 void *argp1 = 0 ;
35674 int res1 = 0 ;
35675 void *argp2 = 0 ;
35676 int res2 = 0 ;
35677 void *argp3 = 0 ;
35678 int res3 = 0 ;
35679 bool temp4 = false ;
35680 int val5 ;
35681 int ecode5 = 0 ;
35682 int val6 ;
35683 int ecode6 = 0 ;
35684 int res7 = 0 ;
35685 PyObject * obj0 = 0 ;
35686 PyObject * obj1 = 0 ;
35687 PyObject * obj2 = 0 ;
35688 PyObject * obj3 = 0 ;
35689 PyObject * obj4 = 0 ;
35690 PyObject * obj5 = 0 ;
35691 PyObject * obj6 = 0 ;
35692 char * kwnames[] = {
35693 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35694 };
35695
35696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35698 if (!SWIG_IsOK(res1)) {
35699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35700 }
35701 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35702 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35703 if (!SWIG_IsOK(res2)) {
35704 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35705 }
35706 if (!argp2) {
35707 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35708 }
35709 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35710 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35711 if (!SWIG_IsOK(res3)) {
35712 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35713 }
35714 if (!argp3) {
35715 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35716 }
35717 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
35718 {
35719 arg4 = wxString_in_helper(obj3);
35720 if (arg4 == NULL) SWIG_fail;
35721 temp4 = true;
35722 }
35723 if (obj4) {
35724 ecode5 = SWIG_AsVal_int(obj4, &val5);
35725 if (!SWIG_IsOK(ecode5)) {
35726 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
35727 }
35728 arg5 = static_cast< int >(val5);
35729 }
35730 if (obj5) {
35731 ecode6 = SWIG_AsVal_int(obj5, &val6);
35732 if (!SWIG_IsOK(ecode6)) {
35733 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
35734 }
35735 arg6 = static_cast< int >(val6);
35736 }
35737 if (obj6) {
35738 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35739 if (!SWIG_IsOK(res7)) {
35740 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
35741 }
35742 }
35743 {
35744 PyThreadState* __tstate = wxPyBeginAllowThreads();
35745 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35746 wxPyEndAllowThreads(__tstate);
35747 if (PyErr_Occurred()) SWIG_fail;
35748 }
35749 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35750 {
35751 if (temp4)
35752 delete arg4;
35753 }
35754 return resultobj;
35755 fail:
35756 {
35757 if (temp4)
35758 delete arg4;
35759 }
35760 return NULL;
35761 }
35762
35763
35764 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35765 PyObject *resultobj = 0;
35766 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35767 wxTreeItemId *arg2 = 0 ;
35768 size_t arg3 ;
35769 wxString *arg4 = 0 ;
35770 int arg5 = (int) -1 ;
35771 int arg6 = (int) -1 ;
35772 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35773 wxTreeItemId result;
35774 void *argp1 = 0 ;
35775 int res1 = 0 ;
35776 void *argp2 = 0 ;
35777 int res2 = 0 ;
35778 size_t val3 ;
35779 int ecode3 = 0 ;
35780 bool temp4 = false ;
35781 int val5 ;
35782 int ecode5 = 0 ;
35783 int val6 ;
35784 int ecode6 = 0 ;
35785 int res7 = 0 ;
35786 PyObject * obj0 = 0 ;
35787 PyObject * obj1 = 0 ;
35788 PyObject * obj2 = 0 ;
35789 PyObject * obj3 = 0 ;
35790 PyObject * obj4 = 0 ;
35791 PyObject * obj5 = 0 ;
35792 PyObject * obj6 = 0 ;
35793 char * kwnames[] = {
35794 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35795 };
35796
35797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35799 if (!SWIG_IsOK(res1)) {
35800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35801 }
35802 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35803 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35804 if (!SWIG_IsOK(res2)) {
35805 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35806 }
35807 if (!argp2) {
35808 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35809 }
35810 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35811 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
35812 if (!SWIG_IsOK(ecode3)) {
35813 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
35814 }
35815 arg3 = static_cast< size_t >(val3);
35816 {
35817 arg4 = wxString_in_helper(obj3);
35818 if (arg4 == NULL) SWIG_fail;
35819 temp4 = true;
35820 }
35821 if (obj4) {
35822 ecode5 = SWIG_AsVal_int(obj4, &val5);
35823 if (!SWIG_IsOK(ecode5)) {
35824 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
35825 }
35826 arg5 = static_cast< int >(val5);
35827 }
35828 if (obj5) {
35829 ecode6 = SWIG_AsVal_int(obj5, &val6);
35830 if (!SWIG_IsOK(ecode6)) {
35831 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
35832 }
35833 arg6 = static_cast< int >(val6);
35834 }
35835 if (obj6) {
35836 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35837 if (!SWIG_IsOK(res7)) {
35838 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
35839 }
35840 }
35841 {
35842 PyThreadState* __tstate = wxPyBeginAllowThreads();
35843 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35844 wxPyEndAllowThreads(__tstate);
35845 if (PyErr_Occurred()) SWIG_fail;
35846 }
35847 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35848 {
35849 if (temp4)
35850 delete arg4;
35851 }
35852 return resultobj;
35853 fail:
35854 {
35855 if (temp4)
35856 delete arg4;
35857 }
35858 return NULL;
35859 }
35860
35861
35862 SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35863 PyObject *resultobj = 0;
35864 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35865 wxTreeItemId *arg2 = 0 ;
35866 wxString *arg3 = 0 ;
35867 int arg4 = (int) -1 ;
35868 int arg5 = (int) -1 ;
35869 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35870 wxTreeItemId result;
35871 void *argp1 = 0 ;
35872 int res1 = 0 ;
35873 void *argp2 = 0 ;
35874 int res2 = 0 ;
35875 bool temp3 = false ;
35876 int val4 ;
35877 int ecode4 = 0 ;
35878 int val5 ;
35879 int ecode5 = 0 ;
35880 int res6 = 0 ;
35881 PyObject * obj0 = 0 ;
35882 PyObject * obj1 = 0 ;
35883 PyObject * obj2 = 0 ;
35884 PyObject * obj3 = 0 ;
35885 PyObject * obj4 = 0 ;
35886 PyObject * obj5 = 0 ;
35887 char * kwnames[] = {
35888 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35889 };
35890
35891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35893 if (!SWIG_IsOK(res1)) {
35894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35895 }
35896 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35897 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35898 if (!SWIG_IsOK(res2)) {
35899 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35900 }
35901 if (!argp2) {
35902 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35903 }
35904 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35905 {
35906 arg3 = wxString_in_helper(obj2);
35907 if (arg3 == NULL) SWIG_fail;
35908 temp3 = true;
35909 }
35910 if (obj3) {
35911 ecode4 = SWIG_AsVal_int(obj3, &val4);
35912 if (!SWIG_IsOK(ecode4)) {
35913 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
35914 }
35915 arg4 = static_cast< int >(val4);
35916 }
35917 if (obj4) {
35918 ecode5 = SWIG_AsVal_int(obj4, &val5);
35919 if (!SWIG_IsOK(ecode5)) {
35920 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
35921 }
35922 arg5 = static_cast< int >(val5);
35923 }
35924 if (obj5) {
35925 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35926 if (!SWIG_IsOK(res6)) {
35927 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
35928 }
35929 }
35930 {
35931 PyThreadState* __tstate = wxPyBeginAllowThreads();
35932 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35933 wxPyEndAllowThreads(__tstate);
35934 if (PyErr_Occurred()) SWIG_fail;
35935 }
35936 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35937 {
35938 if (temp3)
35939 delete arg3;
35940 }
35941 return resultobj;
35942 fail:
35943 {
35944 if (temp3)
35945 delete arg3;
35946 }
35947 return NULL;
35948 }
35949
35950
35951 SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35952 PyObject *resultobj = 0;
35953 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35954 wxTreeItemId *arg2 = 0 ;
35955 void *argp1 = 0 ;
35956 int res1 = 0 ;
35957 void *argp2 = 0 ;
35958 int res2 = 0 ;
35959 PyObject * obj0 = 0 ;
35960 PyObject * obj1 = 0 ;
35961 char * kwnames[] = {
35962 (char *) "self",(char *) "item", NULL
35963 };
35964
35965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
35966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35967 if (!SWIG_IsOK(res1)) {
35968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35969 }
35970 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35971 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35972 if (!SWIG_IsOK(res2)) {
35973 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35974 }
35975 if (!argp2) {
35976 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35977 }
35978 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35979 {
35980 PyThreadState* __tstate = wxPyBeginAllowThreads();
35981 (arg1)->Delete((wxTreeItemId const &)*arg2);
35982 wxPyEndAllowThreads(__tstate);
35983 if (PyErr_Occurred()) SWIG_fail;
35984 }
35985 resultobj = SWIG_Py_Void();
35986 return resultobj;
35987 fail:
35988 return NULL;
35989 }
35990
35991
35992 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35993 PyObject *resultobj = 0;
35994 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35995 wxTreeItemId *arg2 = 0 ;
35996 void *argp1 = 0 ;
35997 int res1 = 0 ;
35998 void *argp2 = 0 ;
35999 int res2 = 0 ;
36000 PyObject * obj0 = 0 ;
36001 PyObject * obj1 = 0 ;
36002 char * kwnames[] = {
36003 (char *) "self",(char *) "item", NULL
36004 };
36005
36006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36008 if (!SWIG_IsOK(res1)) {
36009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36010 }
36011 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36012 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36013 if (!SWIG_IsOK(res2)) {
36014 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36015 }
36016 if (!argp2) {
36017 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36018 }
36019 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36020 {
36021 PyThreadState* __tstate = wxPyBeginAllowThreads();
36022 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36023 wxPyEndAllowThreads(__tstate);
36024 if (PyErr_Occurred()) SWIG_fail;
36025 }
36026 resultobj = SWIG_Py_Void();
36027 return resultobj;
36028 fail:
36029 return NULL;
36030 }
36031
36032
36033 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36034 PyObject *resultobj = 0;
36035 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36036 void *argp1 = 0 ;
36037 int res1 = 0 ;
36038 PyObject *swig_obj[1] ;
36039
36040 if (!args) SWIG_fail;
36041 swig_obj[0] = args;
36042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36043 if (!SWIG_IsOK(res1)) {
36044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36045 }
36046 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36047 {
36048 PyThreadState* __tstate = wxPyBeginAllowThreads();
36049 (arg1)->DeleteAllItems();
36050 wxPyEndAllowThreads(__tstate);
36051 if (PyErr_Occurred()) SWIG_fail;
36052 }
36053 resultobj = SWIG_Py_Void();
36054 return resultobj;
36055 fail:
36056 return NULL;
36057 }
36058
36059
36060 SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36061 PyObject *resultobj = 0;
36062 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36063 wxTreeItemId *arg2 = 0 ;
36064 void *argp1 = 0 ;
36065 int res1 = 0 ;
36066 void *argp2 = 0 ;
36067 int res2 = 0 ;
36068 PyObject * obj0 = 0 ;
36069 PyObject * obj1 = 0 ;
36070 char * kwnames[] = {
36071 (char *) "self",(char *) "item", NULL
36072 };
36073
36074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36076 if (!SWIG_IsOK(res1)) {
36077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36078 }
36079 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36080 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36081 if (!SWIG_IsOK(res2)) {
36082 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36083 }
36084 if (!argp2) {
36085 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36086 }
36087 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36088 {
36089 PyThreadState* __tstate = wxPyBeginAllowThreads();
36090 (arg1)->Expand((wxTreeItemId const &)*arg2);
36091 wxPyEndAllowThreads(__tstate);
36092 if (PyErr_Occurred()) SWIG_fail;
36093 }
36094 resultobj = SWIG_Py_Void();
36095 return resultobj;
36096 fail:
36097 return NULL;
36098 }
36099
36100
36101 SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36102 PyObject *resultobj = 0;
36103 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36104 wxTreeItemId *arg2 = 0 ;
36105 void *argp1 = 0 ;
36106 int res1 = 0 ;
36107 void *argp2 = 0 ;
36108 int res2 = 0 ;
36109 PyObject * obj0 = 0 ;
36110 PyObject * obj1 = 0 ;
36111 char * kwnames[] = {
36112 (char *) "self",(char *) "item", NULL
36113 };
36114
36115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36117 if (!SWIG_IsOK(res1)) {
36118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36119 }
36120 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36121 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36122 if (!SWIG_IsOK(res2)) {
36123 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36124 }
36125 if (!argp2) {
36126 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36127 }
36128 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36129 {
36130 PyThreadState* __tstate = wxPyBeginAllowThreads();
36131 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36132 wxPyEndAllowThreads(__tstate);
36133 if (PyErr_Occurred()) SWIG_fail;
36134 }
36135 resultobj = SWIG_Py_Void();
36136 return resultobj;
36137 fail:
36138 return NULL;
36139 }
36140
36141
36142 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36143 PyObject *resultobj = 0;
36144 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36145 wxTreeItemId *arg2 = 0 ;
36146 void *argp1 = 0 ;
36147 int res1 = 0 ;
36148 void *argp2 = 0 ;
36149 int res2 = 0 ;
36150 PyObject * obj0 = 0 ;
36151 PyObject * obj1 = 0 ;
36152 char * kwnames[] = {
36153 (char *) "self",(char *) "item", NULL
36154 };
36155
36156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36158 if (!SWIG_IsOK(res1)) {
36159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36160 }
36161 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36162 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36163 if (!SWIG_IsOK(res2)) {
36164 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36165 }
36166 if (!argp2) {
36167 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36168 }
36169 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36170 {
36171 PyThreadState* __tstate = wxPyBeginAllowThreads();
36172 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36173 wxPyEndAllowThreads(__tstate);
36174 if (PyErr_Occurred()) SWIG_fail;
36175 }
36176 resultobj = SWIG_Py_Void();
36177 return resultobj;
36178 fail:
36179 return NULL;
36180 }
36181
36182
36183 SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36184 PyObject *resultobj = 0;
36185 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36186 wxTreeItemId *arg2 = 0 ;
36187 void *argp1 = 0 ;
36188 int res1 = 0 ;
36189 void *argp2 = 0 ;
36190 int res2 = 0 ;
36191 PyObject * obj0 = 0 ;
36192 PyObject * obj1 = 0 ;
36193 char * kwnames[] = {
36194 (char *) "self",(char *) "item", NULL
36195 };
36196
36197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36199 if (!SWIG_IsOK(res1)) {
36200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36201 }
36202 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36203 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36204 if (!SWIG_IsOK(res2)) {
36205 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36206 }
36207 if (!argp2) {
36208 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36209 }
36210 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36211 {
36212 PyThreadState* __tstate = wxPyBeginAllowThreads();
36213 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36214 wxPyEndAllowThreads(__tstate);
36215 if (PyErr_Occurred()) SWIG_fail;
36216 }
36217 resultobj = SWIG_Py_Void();
36218 return resultobj;
36219 fail:
36220 return NULL;
36221 }
36222
36223
36224 SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36225 PyObject *resultobj = 0;
36226 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36227 void *argp1 = 0 ;
36228 int res1 = 0 ;
36229 PyObject *swig_obj[1] ;
36230
36231 if (!args) SWIG_fail;
36232 swig_obj[0] = args;
36233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36234 if (!SWIG_IsOK(res1)) {
36235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36236 }
36237 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36238 {
36239 PyThreadState* __tstate = wxPyBeginAllowThreads();
36240 (arg1)->Unselect();
36241 wxPyEndAllowThreads(__tstate);
36242 if (PyErr_Occurred()) SWIG_fail;
36243 }
36244 resultobj = SWIG_Py_Void();
36245 return resultobj;
36246 fail:
36247 return NULL;
36248 }
36249
36250
36251 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36252 PyObject *resultobj = 0;
36253 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36254 wxTreeItemId *arg2 = 0 ;
36255 void *argp1 = 0 ;
36256 int res1 = 0 ;
36257 void *argp2 = 0 ;
36258 int res2 = 0 ;
36259 PyObject * obj0 = 0 ;
36260 PyObject * obj1 = 0 ;
36261 char * kwnames[] = {
36262 (char *) "self",(char *) "item", NULL
36263 };
36264
36265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36267 if (!SWIG_IsOK(res1)) {
36268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36269 }
36270 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36271 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36272 if (!SWIG_IsOK(res2)) {
36273 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36274 }
36275 if (!argp2) {
36276 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36277 }
36278 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36279 {
36280 PyThreadState* __tstate = wxPyBeginAllowThreads();
36281 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36282 wxPyEndAllowThreads(__tstate);
36283 if (PyErr_Occurred()) SWIG_fail;
36284 }
36285 resultobj = SWIG_Py_Void();
36286 return resultobj;
36287 fail:
36288 return NULL;
36289 }
36290
36291
36292 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36293 PyObject *resultobj = 0;
36294 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36295 void *argp1 = 0 ;
36296 int res1 = 0 ;
36297 PyObject *swig_obj[1] ;
36298
36299 if (!args) SWIG_fail;
36300 swig_obj[0] = args;
36301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36302 if (!SWIG_IsOK(res1)) {
36303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36304 }
36305 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36306 {
36307 PyThreadState* __tstate = wxPyBeginAllowThreads();
36308 (arg1)->UnselectAll();
36309 wxPyEndAllowThreads(__tstate);
36310 if (PyErr_Occurred()) SWIG_fail;
36311 }
36312 resultobj = SWIG_Py_Void();
36313 return resultobj;
36314 fail:
36315 return NULL;
36316 }
36317
36318
36319 SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36320 PyObject *resultobj = 0;
36321 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36322 wxTreeItemId *arg2 = 0 ;
36323 bool arg3 = (bool) true ;
36324 void *argp1 = 0 ;
36325 int res1 = 0 ;
36326 void *argp2 = 0 ;
36327 int res2 = 0 ;
36328 bool val3 ;
36329 int ecode3 = 0 ;
36330 PyObject * obj0 = 0 ;
36331 PyObject * obj1 = 0 ;
36332 PyObject * obj2 = 0 ;
36333 char * kwnames[] = {
36334 (char *) "self",(char *) "item",(char *) "select", NULL
36335 };
36336
36337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36339 if (!SWIG_IsOK(res1)) {
36340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36341 }
36342 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36343 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36344 if (!SWIG_IsOK(res2)) {
36345 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36346 }
36347 if (!argp2) {
36348 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36349 }
36350 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36351 if (obj2) {
36352 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36353 if (!SWIG_IsOK(ecode3)) {
36354 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36355 }
36356 arg3 = static_cast< bool >(val3);
36357 }
36358 {
36359 PyThreadState* __tstate = wxPyBeginAllowThreads();
36360 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36361 wxPyEndAllowThreads(__tstate);
36362 if (PyErr_Occurred()) SWIG_fail;
36363 }
36364 resultobj = SWIG_Py_Void();
36365 return resultobj;
36366 fail:
36367 return NULL;
36368 }
36369
36370
36371 SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36372 PyObject *resultobj = 0;
36373 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36374 wxTreeItemId *arg2 = 0 ;
36375 void *argp1 = 0 ;
36376 int res1 = 0 ;
36377 void *argp2 = 0 ;
36378 int res2 = 0 ;
36379 PyObject * obj0 = 0 ;
36380 PyObject * obj1 = 0 ;
36381 char * kwnames[] = {
36382 (char *) "self",(char *) "item", NULL
36383 };
36384
36385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36387 if (!SWIG_IsOK(res1)) {
36388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36389 }
36390 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36391 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36392 if (!SWIG_IsOK(res2)) {
36393 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36394 }
36395 if (!argp2) {
36396 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36397 }
36398 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36399 {
36400 PyThreadState* __tstate = wxPyBeginAllowThreads();
36401 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36402 wxPyEndAllowThreads(__tstate);
36403 if (PyErr_Occurred()) SWIG_fail;
36404 }
36405 resultobj = SWIG_Py_Void();
36406 return resultobj;
36407 fail:
36408 return NULL;
36409 }
36410
36411
36412 SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36413 PyObject *resultobj = 0;
36414 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36415 wxTreeItemId *arg2 = 0 ;
36416 void *argp1 = 0 ;
36417 int res1 = 0 ;
36418 void *argp2 = 0 ;
36419 int res2 = 0 ;
36420 PyObject * obj0 = 0 ;
36421 PyObject * obj1 = 0 ;
36422 char * kwnames[] = {
36423 (char *) "self",(char *) "item", NULL
36424 };
36425
36426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36428 if (!SWIG_IsOK(res1)) {
36429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36430 }
36431 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36432 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36433 if (!SWIG_IsOK(res2)) {
36434 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36435 }
36436 if (!argp2) {
36437 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36438 }
36439 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36440 {
36441 PyThreadState* __tstate = wxPyBeginAllowThreads();
36442 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36443 wxPyEndAllowThreads(__tstate);
36444 if (PyErr_Occurred()) SWIG_fail;
36445 }
36446 resultobj = SWIG_Py_Void();
36447 return resultobj;
36448 fail:
36449 return NULL;
36450 }
36451
36452
36453 SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36454 PyObject *resultobj = 0;
36455 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36456 wxTreeItemId *arg2 = 0 ;
36457 void *argp1 = 0 ;
36458 int res1 = 0 ;
36459 void *argp2 = 0 ;
36460 int res2 = 0 ;
36461 PyObject * obj0 = 0 ;
36462 PyObject * obj1 = 0 ;
36463 char * kwnames[] = {
36464 (char *) "self",(char *) "item", NULL
36465 };
36466
36467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
36468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36469 if (!SWIG_IsOK(res1)) {
36470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36471 }
36472 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36473 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36474 if (!SWIG_IsOK(res2)) {
36475 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36476 }
36477 if (!argp2) {
36478 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36479 }
36480 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36481 {
36482 PyThreadState* __tstate = wxPyBeginAllowThreads();
36483 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
36484 wxPyEndAllowThreads(__tstate);
36485 if (PyErr_Occurred()) SWIG_fail;
36486 }
36487 resultobj = SWIG_Py_Void();
36488 return resultobj;
36489 fail:
36490 return NULL;
36491 }
36492
36493
36494 SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36495 PyObject *resultobj = 0;
36496 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36497 wxTreeItemId *arg2 = 0 ;
36498 void *argp1 = 0 ;
36499 int res1 = 0 ;
36500 void *argp2 = 0 ;
36501 int res2 = 0 ;
36502 PyObject * obj0 = 0 ;
36503 PyObject * obj1 = 0 ;
36504 char * kwnames[] = {
36505 (char *) "self",(char *) "item", NULL
36506 };
36507
36508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
36509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36510 if (!SWIG_IsOK(res1)) {
36511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36512 }
36513 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36514 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36515 if (!SWIG_IsOK(res2)) {
36516 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36517 }
36518 if (!argp2) {
36519 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36520 }
36521 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36522 {
36523 PyThreadState* __tstate = wxPyBeginAllowThreads();
36524 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
36525 wxPyEndAllowThreads(__tstate);
36526 if (PyErr_Occurred()) SWIG_fail;
36527 }
36528 resultobj = SWIG_Py_Void();
36529 return resultobj;
36530 fail:
36531 return NULL;
36532 }
36533
36534
36535 SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36536 PyObject *resultobj = 0;
36537 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36538 wxTextCtrl *result = 0 ;
36539 void *argp1 = 0 ;
36540 int res1 = 0 ;
36541 PyObject *swig_obj[1] ;
36542
36543 if (!args) SWIG_fail;
36544 swig_obj[0] = args;
36545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36546 if (!SWIG_IsOK(res1)) {
36547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36548 }
36549 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36550 {
36551 PyThreadState* __tstate = wxPyBeginAllowThreads();
36552 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
36553 wxPyEndAllowThreads(__tstate);
36554 if (PyErr_Occurred()) SWIG_fail;
36555 }
36556 {
36557 resultobj = wxPyMake_wxObject(result, 0);
36558 }
36559 return resultobj;
36560 fail:
36561 return NULL;
36562 }
36563
36564
36565 SWIGINTERN PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36566 PyObject *resultobj = 0;
36567 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36568 wxTreeItemId *arg2 = 0 ;
36569 bool arg3 = (bool) false ;
36570 void *argp1 = 0 ;
36571 int res1 = 0 ;
36572 void *argp2 = 0 ;
36573 int res2 = 0 ;
36574 bool val3 ;
36575 int ecode3 = 0 ;
36576 PyObject * obj0 = 0 ;
36577 PyObject * obj1 = 0 ;
36578 PyObject * obj2 = 0 ;
36579 char * kwnames[] = {
36580 (char *) "self",(char *) "item",(char *) "discardChanges", NULL
36581 };
36582
36583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36585 if (!SWIG_IsOK(res1)) {
36586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36587 }
36588 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36589 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36590 if (!SWIG_IsOK(res2)) {
36591 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36592 }
36593 if (!argp2) {
36594 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36595 }
36596 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36597 if (obj2) {
36598 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36599 if (!SWIG_IsOK(ecode3)) {
36600 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "3"" of type '" "bool""'");
36601 }
36602 arg3 = static_cast< bool >(val3);
36603 }
36604 {
36605 PyThreadState* __tstate = wxPyBeginAllowThreads();
36606 (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3);
36607 wxPyEndAllowThreads(__tstate);
36608 if (PyErr_Occurred()) SWIG_fail;
36609 }
36610 resultobj = SWIG_Py_Void();
36611 return resultobj;
36612 fail:
36613 return NULL;
36614 }
36615
36616
36617 SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36618 PyObject *resultobj = 0;
36619 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36620 wxTreeItemId *arg2 = 0 ;
36621 void *argp1 = 0 ;
36622 int res1 = 0 ;
36623 void *argp2 = 0 ;
36624 int res2 = 0 ;
36625 PyObject * obj0 = 0 ;
36626 PyObject * obj1 = 0 ;
36627 char * kwnames[] = {
36628 (char *) "self",(char *) "item", NULL
36629 };
36630
36631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36633 if (!SWIG_IsOK(res1)) {
36634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36635 }
36636 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36637 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36638 if (!SWIG_IsOK(res2)) {
36639 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36640 }
36641 if (!argp2) {
36642 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36643 }
36644 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36645 {
36646 PyThreadState* __tstate = wxPyBeginAllowThreads();
36647 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
36648 wxPyEndAllowThreads(__tstate);
36649 if (PyErr_Occurred()) SWIG_fail;
36650 }
36651 resultobj = SWIG_Py_Void();
36652 return resultobj;
36653 fail:
36654 return NULL;
36655 }
36656
36657
36658 SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36659 PyObject *resultobj = 0;
36660 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36661 wxPoint *arg2 = 0 ;
36662 int *arg3 = 0 ;
36663 wxTreeItemId result;
36664 void *argp1 = 0 ;
36665 int res1 = 0 ;
36666 wxPoint temp2 ;
36667 int temp3 ;
36668 int res3 = SWIG_TMPOBJ ;
36669 PyObject * obj0 = 0 ;
36670 PyObject * obj1 = 0 ;
36671 char * kwnames[] = {
36672 (char *) "self",(char *) "point", NULL
36673 };
36674
36675 arg3 = &temp3;
36676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
36677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36678 if (!SWIG_IsOK(res1)) {
36679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36680 }
36681 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36682 {
36683 arg2 = &temp2;
36684 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36685 }
36686 {
36687 PyThreadState* __tstate = wxPyBeginAllowThreads();
36688 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
36689 wxPyEndAllowThreads(__tstate);
36690 if (PyErr_Occurred()) SWIG_fail;
36691 }
36692 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36693 if (SWIG_IsTmpObj(res3)) {
36694 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
36695 } else {
36696 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
36697 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
36698 }
36699 return resultobj;
36700 fail:
36701 return NULL;
36702 }
36703
36704
36705 SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36706 PyObject *resultobj = 0;
36707 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36708 wxTreeItemId *arg2 = 0 ;
36709 bool arg3 = (bool) false ;
36710 PyObject *result = 0 ;
36711 void *argp1 = 0 ;
36712 int res1 = 0 ;
36713 void *argp2 = 0 ;
36714 int res2 = 0 ;
36715 bool val3 ;
36716 int ecode3 = 0 ;
36717 PyObject * obj0 = 0 ;
36718 PyObject * obj1 = 0 ;
36719 PyObject * obj2 = 0 ;
36720 char * kwnames[] = {
36721 (char *) "self",(char *) "item",(char *) "textOnly", NULL
36722 };
36723
36724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36726 if (!SWIG_IsOK(res1)) {
36727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36728 }
36729 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36730 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36731 if (!SWIG_IsOK(res2)) {
36732 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36733 }
36734 if (!argp2) {
36735 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36736 }
36737 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36738 if (obj2) {
36739 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36740 if (!SWIG_IsOK(ecode3)) {
36741 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
36742 }
36743 arg3 = static_cast< bool >(val3);
36744 }
36745 {
36746 PyThreadState* __tstate = wxPyBeginAllowThreads();
36747 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
36748 wxPyEndAllowThreads(__tstate);
36749 if (PyErr_Occurred()) SWIG_fail;
36750 }
36751 resultobj = result;
36752 return resultobj;
36753 fail:
36754 return NULL;
36755 }
36756
36757
36758 SWIGINTERN PyObject *_wrap_TreeCtrl_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36759 PyObject *resultobj = 0;
36760 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36761 wxTreeItemId *arg2 = 0 ;
36762 int arg3 ;
36763 void *argp1 = 0 ;
36764 int res1 = 0 ;
36765 void *argp2 = 0 ;
36766 int res2 = 0 ;
36767 int val3 ;
36768 int ecode3 = 0 ;
36769 PyObject * obj0 = 0 ;
36770 PyObject * obj1 = 0 ;
36771 PyObject * obj2 = 0 ;
36772 char * kwnames[] = {
36773 (char *) "self",(char *) "node",(char *) "state", NULL
36774 };
36775
36776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36778 if (!SWIG_IsOK(res1)) {
36779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36780 }
36781 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36782 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36783 if (!SWIG_IsOK(res2)) {
36784 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36785 }
36786 if (!argp2) {
36787 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36788 }
36789 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36790 ecode3 = SWIG_AsVal_int(obj2, &val3);
36791 if (!SWIG_IsOK(ecode3)) {
36792 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetState" "', expected argument " "3"" of type '" "int""'");
36793 }
36794 arg3 = static_cast< int >(val3);
36795 {
36796 PyThreadState* __tstate = wxPyBeginAllowThreads();
36797 (arg1)->SetState((wxTreeItemId const &)*arg2,arg3);
36798 wxPyEndAllowThreads(__tstate);
36799 if (PyErr_Occurred()) SWIG_fail;
36800 }
36801 resultobj = SWIG_Py_Void();
36802 return resultobj;
36803 fail:
36804 return NULL;
36805 }
36806
36807
36808 SWIGINTERN PyObject *_wrap_TreeCtrl_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36809 PyObject *resultobj = 0;
36810 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36811 wxTreeItemId *arg2 = 0 ;
36812 int result;
36813 void *argp1 = 0 ;
36814 int res1 = 0 ;
36815 void *argp2 = 0 ;
36816 int res2 = 0 ;
36817 PyObject * obj0 = 0 ;
36818 PyObject * obj1 = 0 ;
36819 char * kwnames[] = {
36820 (char *) "self",(char *) "node", NULL
36821 };
36822
36823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetState",kwnames,&obj0,&obj1)) SWIG_fail;
36824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36825 if (!SWIG_IsOK(res1)) {
36826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36827 }
36828 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36829 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36830 if (!SWIG_IsOK(res2)) {
36831 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36832 }
36833 if (!argp2) {
36834 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36835 }
36836 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36837 {
36838 PyThreadState* __tstate = wxPyBeginAllowThreads();
36839 result = (int)(arg1)->GetState((wxTreeItemId const &)*arg2);
36840 wxPyEndAllowThreads(__tstate);
36841 if (PyErr_Occurred()) SWIG_fail;
36842 }
36843 resultobj = SWIG_From_int(static_cast< int >(result));
36844 return resultobj;
36845 fail:
36846 return NULL;
36847 }
36848
36849
36850 SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36851 PyObject *resultobj = 0;
36852 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
36853 SwigValueWrapper<wxVisualAttributes > result;
36854 int val1 ;
36855 int ecode1 = 0 ;
36856 PyObject * obj0 = 0 ;
36857 char * kwnames[] = {
36858 (char *) "variant", NULL
36859 };
36860
36861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
36862 if (obj0) {
36863 ecode1 = SWIG_AsVal_int(obj0, &val1);
36864 if (!SWIG_IsOK(ecode1)) {
36865 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
36866 }
36867 arg1 = static_cast< wxWindowVariant >(val1);
36868 }
36869 {
36870 if (!wxPyCheckForApp()) SWIG_fail;
36871 PyThreadState* __tstate = wxPyBeginAllowThreads();
36872 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
36873 wxPyEndAllowThreads(__tstate);
36874 if (PyErr_Occurred()) SWIG_fail;
36875 }
36876 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
36877 return resultobj;
36878 fail:
36879 return NULL;
36880 }
36881
36882
36883 SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36884 PyObject *obj;
36885 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
36886 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
36887 return SWIG_Py_Void();
36888 }
36889
36890 SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36891 return SWIG_Python_InitShadowInstance(args);
36892 }
36893
36894 SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
36895 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
36896 return 1;
36897 }
36898
36899
36900 SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
36901 PyObject *pyobj = 0;
36902
36903 {
36904 #if wxUSE_UNICODE
36905 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
36906 #else
36907 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
36908 #endif
36909 }
36910 return pyobj;
36911 }
36912
36913
36914 SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36915 PyObject *resultobj = 0;
36916 wxWindow *arg1 = (wxWindow *) 0 ;
36917 int arg2 = (int) (int)-1 ;
36918 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
36919 wxString *arg3 = (wxString *) &arg3_defvalue ;
36920 wxPoint const &arg4_defvalue = wxDefaultPosition ;
36921 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
36922 wxSize const &arg5_defvalue = wxDefaultSize ;
36923 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
36924 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
36925 wxString const &arg7_defvalue = wxPyEmptyString ;
36926 wxString *arg7 = (wxString *) &arg7_defvalue ;
36927 int arg8 = (int) 0 ;
36928 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
36929 wxString *arg9 = (wxString *) &arg9_defvalue ;
36930 wxGenericDirCtrl *result = 0 ;
36931 void *argp1 = 0 ;
36932 int res1 = 0 ;
36933 int val2 ;
36934 int ecode2 = 0 ;
36935 bool temp3 = false ;
36936 wxPoint temp4 ;
36937 wxSize temp5 ;
36938 long val6 ;
36939 int ecode6 = 0 ;
36940 bool temp7 = false ;
36941 int val8 ;
36942 int ecode8 = 0 ;
36943 bool temp9 = false ;
36944 PyObject * obj0 = 0 ;
36945 PyObject * obj1 = 0 ;
36946 PyObject * obj2 = 0 ;
36947 PyObject * obj3 = 0 ;
36948 PyObject * obj4 = 0 ;
36949 PyObject * obj5 = 0 ;
36950 PyObject * obj6 = 0 ;
36951 PyObject * obj7 = 0 ;
36952 PyObject * obj8 = 0 ;
36953 char * kwnames[] = {
36954 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
36955 };
36956
36957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
36958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36959 if (!SWIG_IsOK(res1)) {
36960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
36961 }
36962 arg1 = reinterpret_cast< wxWindow * >(argp1);
36963 if (obj1) {
36964 ecode2 = SWIG_AsVal_int(obj1, &val2);
36965 if (!SWIG_IsOK(ecode2)) {
36966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
36967 }
36968 arg2 = static_cast< int >(val2);
36969 }
36970 if (obj2) {
36971 {
36972 arg3 = wxString_in_helper(obj2);
36973 if (arg3 == NULL) SWIG_fail;
36974 temp3 = true;
36975 }
36976 }
36977 if (obj3) {
36978 {
36979 arg4 = &temp4;
36980 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36981 }
36982 }
36983 if (obj4) {
36984 {
36985 arg5 = &temp5;
36986 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36987 }
36988 }
36989 if (obj5) {
36990 ecode6 = SWIG_AsVal_long(obj5, &val6);
36991 if (!SWIG_IsOK(ecode6)) {
36992 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
36993 }
36994 arg6 = static_cast< long >(val6);
36995 }
36996 if (obj6) {
36997 {
36998 arg7 = wxString_in_helper(obj6);
36999 if (arg7 == NULL) SWIG_fail;
37000 temp7 = true;
37001 }
37002 }
37003 if (obj7) {
37004 ecode8 = SWIG_AsVal_int(obj7, &val8);
37005 if (!SWIG_IsOK(ecode8)) {
37006 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37007 }
37008 arg8 = static_cast< int >(val8);
37009 }
37010 if (obj8) {
37011 {
37012 arg9 = wxString_in_helper(obj8);
37013 if (arg9 == NULL) SWIG_fail;
37014 temp9 = true;
37015 }
37016 }
37017 {
37018 if (!wxPyCheckForApp()) SWIG_fail;
37019 PyThreadState* __tstate = wxPyBeginAllowThreads();
37020 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37021 wxPyEndAllowThreads(__tstate);
37022 if (PyErr_Occurred()) SWIG_fail;
37023 }
37024 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37025 {
37026 if (temp3)
37027 delete arg3;
37028 }
37029 {
37030 if (temp7)
37031 delete arg7;
37032 }
37033 {
37034 if (temp9)
37035 delete arg9;
37036 }
37037 return resultobj;
37038 fail:
37039 {
37040 if (temp3)
37041 delete arg3;
37042 }
37043 {
37044 if (temp7)
37045 delete arg7;
37046 }
37047 {
37048 if (temp9)
37049 delete arg9;
37050 }
37051 return NULL;
37052 }
37053
37054
37055 SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37056 PyObject *resultobj = 0;
37057 wxGenericDirCtrl *result = 0 ;
37058
37059 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37060 {
37061 if (!wxPyCheckForApp()) SWIG_fail;
37062 PyThreadState* __tstate = wxPyBeginAllowThreads();
37063 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37064 wxPyEndAllowThreads(__tstate);
37065 if (PyErr_Occurred()) SWIG_fail;
37066 }
37067 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37068 return resultobj;
37069 fail:
37070 return NULL;
37071 }
37072
37073
37074 SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37075 PyObject *resultobj = 0;
37076 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37077 wxWindow *arg2 = (wxWindow *) 0 ;
37078 int arg3 = (int) (int)-1 ;
37079 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37080 wxString *arg4 = (wxString *) &arg4_defvalue ;
37081 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37082 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37083 wxSize const &arg6_defvalue = wxDefaultSize ;
37084 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37085 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37086 wxString const &arg8_defvalue = wxPyEmptyString ;
37087 wxString *arg8 = (wxString *) &arg8_defvalue ;
37088 int arg9 = (int) 0 ;
37089 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37090 wxString *arg10 = (wxString *) &arg10_defvalue ;
37091 bool result;
37092 void *argp1 = 0 ;
37093 int res1 = 0 ;
37094 void *argp2 = 0 ;
37095 int res2 = 0 ;
37096 int val3 ;
37097 int ecode3 = 0 ;
37098 bool temp4 = false ;
37099 wxPoint temp5 ;
37100 wxSize temp6 ;
37101 long val7 ;
37102 int ecode7 = 0 ;
37103 bool temp8 = false ;
37104 int val9 ;
37105 int ecode9 = 0 ;
37106 bool temp10 = false ;
37107 PyObject * obj0 = 0 ;
37108 PyObject * obj1 = 0 ;
37109 PyObject * obj2 = 0 ;
37110 PyObject * obj3 = 0 ;
37111 PyObject * obj4 = 0 ;
37112 PyObject * obj5 = 0 ;
37113 PyObject * obj6 = 0 ;
37114 PyObject * obj7 = 0 ;
37115 PyObject * obj8 = 0 ;
37116 PyObject * obj9 = 0 ;
37117 char * kwnames[] = {
37118 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37119 };
37120
37121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37123 if (!SWIG_IsOK(res1)) {
37124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37125 }
37126 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37127 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37128 if (!SWIG_IsOK(res2)) {
37129 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37130 }
37131 arg2 = reinterpret_cast< wxWindow * >(argp2);
37132 if (obj2) {
37133 ecode3 = SWIG_AsVal_int(obj2, &val3);
37134 if (!SWIG_IsOK(ecode3)) {
37135 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37136 }
37137 arg3 = static_cast< int >(val3);
37138 }
37139 if (obj3) {
37140 {
37141 arg4 = wxString_in_helper(obj3);
37142 if (arg4 == NULL) SWIG_fail;
37143 temp4 = true;
37144 }
37145 }
37146 if (obj4) {
37147 {
37148 arg5 = &temp5;
37149 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
37150 }
37151 }
37152 if (obj5) {
37153 {
37154 arg6 = &temp6;
37155 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
37156 }
37157 }
37158 if (obj6) {
37159 ecode7 = SWIG_AsVal_long(obj6, &val7);
37160 if (!SWIG_IsOK(ecode7)) {
37161 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37162 }
37163 arg7 = static_cast< long >(val7);
37164 }
37165 if (obj7) {
37166 {
37167 arg8 = wxString_in_helper(obj7);
37168 if (arg8 == NULL) SWIG_fail;
37169 temp8 = true;
37170 }
37171 }
37172 if (obj8) {
37173 ecode9 = SWIG_AsVal_int(obj8, &val9);
37174 if (!SWIG_IsOK(ecode9)) {
37175 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37176 }
37177 arg9 = static_cast< int >(val9);
37178 }
37179 if (obj9) {
37180 {
37181 arg10 = wxString_in_helper(obj9);
37182 if (arg10 == NULL) SWIG_fail;
37183 temp10 = true;
37184 }
37185 }
37186 {
37187 PyThreadState* __tstate = wxPyBeginAllowThreads();
37188 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37189 wxPyEndAllowThreads(__tstate);
37190 if (PyErr_Occurred()) SWIG_fail;
37191 }
37192 {
37193 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37194 }
37195 {
37196 if (temp4)
37197 delete arg4;
37198 }
37199 {
37200 if (temp8)
37201 delete arg8;
37202 }
37203 {
37204 if (temp10)
37205 delete arg10;
37206 }
37207 return resultobj;
37208 fail:
37209 {
37210 if (temp4)
37211 delete arg4;
37212 }
37213 {
37214 if (temp8)
37215 delete arg8;
37216 }
37217 {
37218 if (temp10)
37219 delete arg10;
37220 }
37221 return NULL;
37222 }
37223
37224
37225 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37226 PyObject *resultobj = 0;
37227 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37228 wxString *arg2 = 0 ;
37229 bool result;
37230 void *argp1 = 0 ;
37231 int res1 = 0 ;
37232 bool temp2 = false ;
37233 PyObject * obj0 = 0 ;
37234 PyObject * obj1 = 0 ;
37235 char * kwnames[] = {
37236 (char *) "self",(char *) "path", NULL
37237 };
37238
37239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37241 if (!SWIG_IsOK(res1)) {
37242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37243 }
37244 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37245 {
37246 arg2 = wxString_in_helper(obj1);
37247 if (arg2 == NULL) SWIG_fail;
37248 temp2 = true;
37249 }
37250 {
37251 PyThreadState* __tstate = wxPyBeginAllowThreads();
37252 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37253 wxPyEndAllowThreads(__tstate);
37254 if (PyErr_Occurred()) SWIG_fail;
37255 }
37256 {
37257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37258 }
37259 {
37260 if (temp2)
37261 delete arg2;
37262 }
37263 return resultobj;
37264 fail:
37265 {
37266 if (temp2)
37267 delete arg2;
37268 }
37269 return NULL;
37270 }
37271
37272
37273 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37274 PyObject *resultobj = 0;
37275 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37276 wxString result;
37277 void *argp1 = 0 ;
37278 int res1 = 0 ;
37279 PyObject *swig_obj[1] ;
37280
37281 if (!args) SWIG_fail;
37282 swig_obj[0] = args;
37283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37284 if (!SWIG_IsOK(res1)) {
37285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37286 }
37287 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37288 {
37289 PyThreadState* __tstate = wxPyBeginAllowThreads();
37290 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37291 wxPyEndAllowThreads(__tstate);
37292 if (PyErr_Occurred()) SWIG_fail;
37293 }
37294 {
37295 #if wxUSE_UNICODE
37296 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37297 #else
37298 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37299 #endif
37300 }
37301 return resultobj;
37302 fail:
37303 return NULL;
37304 }
37305
37306
37307 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37308 PyObject *resultobj = 0;
37309 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37310 wxString *arg2 = 0 ;
37311 void *argp1 = 0 ;
37312 int res1 = 0 ;
37313 bool temp2 = false ;
37314 PyObject * obj0 = 0 ;
37315 PyObject * obj1 = 0 ;
37316 char * kwnames[] = {
37317 (char *) "self",(char *) "path", NULL
37318 };
37319
37320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37322 if (!SWIG_IsOK(res1)) {
37323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37324 }
37325 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37326 {
37327 arg2 = wxString_in_helper(obj1);
37328 if (arg2 == NULL) SWIG_fail;
37329 temp2 = true;
37330 }
37331 {
37332 PyThreadState* __tstate = wxPyBeginAllowThreads();
37333 (arg1)->SetDefaultPath((wxString const &)*arg2);
37334 wxPyEndAllowThreads(__tstate);
37335 if (PyErr_Occurred()) SWIG_fail;
37336 }
37337 resultobj = SWIG_Py_Void();
37338 {
37339 if (temp2)
37340 delete arg2;
37341 }
37342 return resultobj;
37343 fail:
37344 {
37345 if (temp2)
37346 delete arg2;
37347 }
37348 return NULL;
37349 }
37350
37351
37352 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37353 PyObject *resultobj = 0;
37354 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37355 wxString 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_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37365 }
37366 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37367 {
37368 PyThreadState* __tstate = wxPyBeginAllowThreads();
37369 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37370 wxPyEndAllowThreads(__tstate);
37371 if (PyErr_Occurred()) SWIG_fail;
37372 }
37373 {
37374 #if wxUSE_UNICODE
37375 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37376 #else
37377 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37378 #endif
37379 }
37380 return resultobj;
37381 fail:
37382 return NULL;
37383 }
37384
37385
37386 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37387 PyObject *resultobj = 0;
37388 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37389 wxString result;
37390 void *argp1 = 0 ;
37391 int res1 = 0 ;
37392 PyObject *swig_obj[1] ;
37393
37394 if (!args) SWIG_fail;
37395 swig_obj[0] = args;
37396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37397 if (!SWIG_IsOK(res1)) {
37398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37399 }
37400 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37401 {
37402 PyThreadState* __tstate = wxPyBeginAllowThreads();
37403 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37404 wxPyEndAllowThreads(__tstate);
37405 if (PyErr_Occurred()) SWIG_fail;
37406 }
37407 {
37408 #if wxUSE_UNICODE
37409 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37410 #else
37411 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37412 #endif
37413 }
37414 return resultobj;
37415 fail:
37416 return NULL;
37417 }
37418
37419
37420 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37421 PyObject *resultobj = 0;
37422 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37423 wxString *arg2 = 0 ;
37424 void *argp1 = 0 ;
37425 int res1 = 0 ;
37426 bool temp2 = false ;
37427 PyObject * obj0 = 0 ;
37428 PyObject * obj1 = 0 ;
37429 char * kwnames[] = {
37430 (char *) "self",(char *) "path", NULL
37431 };
37432
37433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37435 if (!SWIG_IsOK(res1)) {
37436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37437 }
37438 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37439 {
37440 arg2 = wxString_in_helper(obj1);
37441 if (arg2 == NULL) SWIG_fail;
37442 temp2 = true;
37443 }
37444 {
37445 PyThreadState* __tstate = wxPyBeginAllowThreads();
37446 (arg1)->SetPath((wxString const &)*arg2);
37447 wxPyEndAllowThreads(__tstate);
37448 if (PyErr_Occurred()) SWIG_fail;
37449 }
37450 resultobj = SWIG_Py_Void();
37451 {
37452 if (temp2)
37453 delete arg2;
37454 }
37455 return resultobj;
37456 fail:
37457 {
37458 if (temp2)
37459 delete arg2;
37460 }
37461 return NULL;
37462 }
37463
37464
37465 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37466 PyObject *resultobj = 0;
37467 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37468 bool arg2 ;
37469 void *argp1 = 0 ;
37470 int res1 = 0 ;
37471 bool val2 ;
37472 int ecode2 = 0 ;
37473 PyObject * obj0 = 0 ;
37474 PyObject * obj1 = 0 ;
37475 char * kwnames[] = {
37476 (char *) "self",(char *) "show", NULL
37477 };
37478
37479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37481 if (!SWIG_IsOK(res1)) {
37482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37483 }
37484 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37485 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37486 if (!SWIG_IsOK(ecode2)) {
37487 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
37488 }
37489 arg2 = static_cast< bool >(val2);
37490 {
37491 PyThreadState* __tstate = wxPyBeginAllowThreads();
37492 (arg1)->ShowHidden(arg2);
37493 wxPyEndAllowThreads(__tstate);
37494 if (PyErr_Occurred()) SWIG_fail;
37495 }
37496 resultobj = SWIG_Py_Void();
37497 return resultobj;
37498 fail:
37499 return NULL;
37500 }
37501
37502
37503 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37504 PyObject *resultobj = 0;
37505 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37506 bool result;
37507 void *argp1 = 0 ;
37508 int res1 = 0 ;
37509 PyObject *swig_obj[1] ;
37510
37511 if (!args) SWIG_fail;
37512 swig_obj[0] = args;
37513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37514 if (!SWIG_IsOK(res1)) {
37515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37516 }
37517 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37518 {
37519 PyThreadState* __tstate = wxPyBeginAllowThreads();
37520 result = (bool)(arg1)->GetShowHidden();
37521 wxPyEndAllowThreads(__tstate);
37522 if (PyErr_Occurred()) SWIG_fail;
37523 }
37524 {
37525 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37526 }
37527 return resultobj;
37528 fail:
37529 return NULL;
37530 }
37531
37532
37533 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37534 PyObject *resultobj = 0;
37535 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37536 wxString result;
37537 void *argp1 = 0 ;
37538 int res1 = 0 ;
37539 PyObject *swig_obj[1] ;
37540
37541 if (!args) SWIG_fail;
37542 swig_obj[0] = args;
37543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37544 if (!SWIG_IsOK(res1)) {
37545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37546 }
37547 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37548 {
37549 PyThreadState* __tstate = wxPyBeginAllowThreads();
37550 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
37551 wxPyEndAllowThreads(__tstate);
37552 if (PyErr_Occurred()) SWIG_fail;
37553 }
37554 {
37555 #if wxUSE_UNICODE
37556 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37557 #else
37558 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37559 #endif
37560 }
37561 return resultobj;
37562 fail:
37563 return NULL;
37564 }
37565
37566
37567 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37568 PyObject *resultobj = 0;
37569 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37570 wxString *arg2 = 0 ;
37571 void *argp1 = 0 ;
37572 int res1 = 0 ;
37573 bool temp2 = false ;
37574 PyObject * obj0 = 0 ;
37575 PyObject * obj1 = 0 ;
37576 char * kwnames[] = {
37577 (char *) "self",(char *) "filter", NULL
37578 };
37579
37580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
37581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37582 if (!SWIG_IsOK(res1)) {
37583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37584 }
37585 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37586 {
37587 arg2 = wxString_in_helper(obj1);
37588 if (arg2 == NULL) SWIG_fail;
37589 temp2 = true;
37590 }
37591 {
37592 PyThreadState* __tstate = wxPyBeginAllowThreads();
37593 (arg1)->SetFilter((wxString const &)*arg2);
37594 wxPyEndAllowThreads(__tstate);
37595 if (PyErr_Occurred()) SWIG_fail;
37596 }
37597 resultobj = SWIG_Py_Void();
37598 {
37599 if (temp2)
37600 delete arg2;
37601 }
37602 return resultobj;
37603 fail:
37604 {
37605 if (temp2)
37606 delete arg2;
37607 }
37608 return NULL;
37609 }
37610
37611
37612 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37613 PyObject *resultobj = 0;
37614 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37615 int result;
37616 void *argp1 = 0 ;
37617 int res1 = 0 ;
37618 PyObject *swig_obj[1] ;
37619
37620 if (!args) SWIG_fail;
37621 swig_obj[0] = args;
37622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37623 if (!SWIG_IsOK(res1)) {
37624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37625 }
37626 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37627 {
37628 PyThreadState* __tstate = wxPyBeginAllowThreads();
37629 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
37630 wxPyEndAllowThreads(__tstate);
37631 if (PyErr_Occurred()) SWIG_fail;
37632 }
37633 resultobj = SWIG_From_int(static_cast< int >(result));
37634 return resultobj;
37635 fail:
37636 return NULL;
37637 }
37638
37639
37640 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37641 PyObject *resultobj = 0;
37642 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37643 int arg2 ;
37644 void *argp1 = 0 ;
37645 int res1 = 0 ;
37646 int val2 ;
37647 int ecode2 = 0 ;
37648 PyObject * obj0 = 0 ;
37649 PyObject * obj1 = 0 ;
37650 char * kwnames[] = {
37651 (char *) "self",(char *) "n", NULL
37652 };
37653
37654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
37655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37656 if (!SWIG_IsOK(res1)) {
37657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37658 }
37659 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37660 ecode2 = SWIG_AsVal_int(obj1, &val2);
37661 if (!SWIG_IsOK(ecode2)) {
37662 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
37663 }
37664 arg2 = static_cast< int >(val2);
37665 {
37666 PyThreadState* __tstate = wxPyBeginAllowThreads();
37667 (arg1)->SetFilterIndex(arg2);
37668 wxPyEndAllowThreads(__tstate);
37669 if (PyErr_Occurred()) SWIG_fail;
37670 }
37671 resultobj = SWIG_Py_Void();
37672 return resultobj;
37673 fail:
37674 return NULL;
37675 }
37676
37677
37678 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37679 PyObject *resultobj = 0;
37680 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37681 wxTreeItemId result;
37682 void *argp1 = 0 ;
37683 int res1 = 0 ;
37684 PyObject *swig_obj[1] ;
37685
37686 if (!args) SWIG_fail;
37687 swig_obj[0] = args;
37688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37689 if (!SWIG_IsOK(res1)) {
37690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37691 }
37692 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37693 {
37694 PyThreadState* __tstate = wxPyBeginAllowThreads();
37695 result = (arg1)->GetRootId();
37696 wxPyEndAllowThreads(__tstate);
37697 if (PyErr_Occurred()) SWIG_fail;
37698 }
37699 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37700 return resultobj;
37701 fail:
37702 return NULL;
37703 }
37704
37705
37706 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37707 PyObject *resultobj = 0;
37708 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37709 wxPyTreeCtrl *result = 0 ;
37710 void *argp1 = 0 ;
37711 int res1 = 0 ;
37712 PyObject *swig_obj[1] ;
37713
37714 if (!args) SWIG_fail;
37715 swig_obj[0] = args;
37716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37717 if (!SWIG_IsOK(res1)) {
37718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37719 }
37720 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37721 {
37722 PyThreadState* __tstate = wxPyBeginAllowThreads();
37723 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
37724 wxPyEndAllowThreads(__tstate);
37725 if (PyErr_Occurred()) SWIG_fail;
37726 }
37727 {
37728 resultobj = wxPyMake_wxObject(result, 0);
37729 }
37730 return resultobj;
37731 fail:
37732 return NULL;
37733 }
37734
37735
37736 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37737 PyObject *resultobj = 0;
37738 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37739 wxDirFilterListCtrl *result = 0 ;
37740 void *argp1 = 0 ;
37741 int res1 = 0 ;
37742 PyObject *swig_obj[1] ;
37743
37744 if (!args) SWIG_fail;
37745 swig_obj[0] = args;
37746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37747 if (!SWIG_IsOK(res1)) {
37748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37749 }
37750 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37751 {
37752 PyThreadState* __tstate = wxPyBeginAllowThreads();
37753 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
37754 wxPyEndAllowThreads(__tstate);
37755 if (PyErr_Occurred()) SWIG_fail;
37756 }
37757 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37758 return resultobj;
37759 fail:
37760 return NULL;
37761 }
37762
37763
37764 SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37765 PyObject *resultobj = 0;
37766 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37767 wxTreeItemId arg2 ;
37768 wxString *arg3 = 0 ;
37769 bool *arg4 = 0 ;
37770 wxTreeItemId result;
37771 void *argp1 = 0 ;
37772 int res1 = 0 ;
37773 void *argp2 ;
37774 int res2 = 0 ;
37775 bool temp3 = false ;
37776 bool temp4 ;
37777 int res4 = SWIG_TMPOBJ ;
37778 PyObject * obj0 = 0 ;
37779 PyObject * obj1 = 0 ;
37780 PyObject * obj2 = 0 ;
37781 char * kwnames[] = {
37782 (char *) "self",(char *) "parentId",(char *) "path", NULL
37783 };
37784
37785 arg4 = &temp4;
37786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37788 if (!SWIG_IsOK(res1)) {
37789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37790 }
37791 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37792 {
37793 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37794 if (!SWIG_IsOK(res2)) {
37795 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
37796 }
37797 if (!argp2) {
37798 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
37799 } else {
37800 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
37801 arg2 = *temp;
37802 if (SWIG_IsNewObj(res2)) delete temp;
37803 }
37804 }
37805 {
37806 arg3 = wxString_in_helper(obj2);
37807 if (arg3 == NULL) SWIG_fail;
37808 temp3 = true;
37809 }
37810 {
37811 PyThreadState* __tstate = wxPyBeginAllowThreads();
37812 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
37813 wxPyEndAllowThreads(__tstate);
37814 if (PyErr_Occurred()) SWIG_fail;
37815 }
37816 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37817 if (SWIG_IsTmpObj(res4)) {
37818 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
37819 } else {
37820 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37821 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
37822 }
37823 {
37824 if (temp3)
37825 delete arg3;
37826 }
37827 return resultobj;
37828 fail:
37829 {
37830 if (temp3)
37831 delete arg3;
37832 }
37833 return NULL;
37834 }
37835
37836
37837 SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37838 PyObject *resultobj = 0;
37839 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37840 void *argp1 = 0 ;
37841 int res1 = 0 ;
37842 PyObject *swig_obj[1] ;
37843
37844 if (!args) SWIG_fail;
37845 swig_obj[0] = args;
37846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37847 if (!SWIG_IsOK(res1)) {
37848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37849 }
37850 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37851 {
37852 PyThreadState* __tstate = wxPyBeginAllowThreads();
37853 (arg1)->DoResize();
37854 wxPyEndAllowThreads(__tstate);
37855 if (PyErr_Occurred()) SWIG_fail;
37856 }
37857 resultobj = SWIG_Py_Void();
37858 return resultobj;
37859 fail:
37860 return NULL;
37861 }
37862
37863
37864 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37865 PyObject *resultobj = 0;
37866 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37867 void *argp1 = 0 ;
37868 int res1 = 0 ;
37869 PyObject *swig_obj[1] ;
37870
37871 if (!args) SWIG_fail;
37872 swig_obj[0] = args;
37873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37874 if (!SWIG_IsOK(res1)) {
37875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37876 }
37877 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37878 {
37879 PyThreadState* __tstate = wxPyBeginAllowThreads();
37880 (arg1)->ReCreateTree();
37881 wxPyEndAllowThreads(__tstate);
37882 if (PyErr_Occurred()) SWIG_fail;
37883 }
37884 resultobj = SWIG_Py_Void();
37885 return resultobj;
37886 fail:
37887 return NULL;
37888 }
37889
37890
37891 SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37892 PyObject *obj;
37893 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37894 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
37895 return SWIG_Py_Void();
37896 }
37897
37898 SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37899 return SWIG_Python_InitShadowInstance(args);
37900 }
37901
37902 SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37903 PyObject *resultobj = 0;
37904 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37905 int arg2 = (int) (int)-1 ;
37906 wxPoint const &arg3_defvalue = wxDefaultPosition ;
37907 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
37908 wxSize const &arg4_defvalue = wxDefaultSize ;
37909 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
37910 long arg5 = (long) 0 ;
37911 wxDirFilterListCtrl *result = 0 ;
37912 void *argp1 = 0 ;
37913 int res1 = 0 ;
37914 int val2 ;
37915 int ecode2 = 0 ;
37916 wxPoint temp3 ;
37917 wxSize temp4 ;
37918 long val5 ;
37919 int ecode5 = 0 ;
37920 PyObject * obj0 = 0 ;
37921 PyObject * obj1 = 0 ;
37922 PyObject * obj2 = 0 ;
37923 PyObject * obj3 = 0 ;
37924 PyObject * obj4 = 0 ;
37925 char * kwnames[] = {
37926 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
37927 };
37928
37929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37931 if (!SWIG_IsOK(res1)) {
37932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37933 }
37934 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37935 if (obj1) {
37936 ecode2 = SWIG_AsVal_int(obj1, &val2);
37937 if (!SWIG_IsOK(ecode2)) {
37938 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
37939 }
37940 arg2 = static_cast< int >(val2);
37941 }
37942 if (obj2) {
37943 {
37944 arg3 = &temp3;
37945 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37946 }
37947 }
37948 if (obj3) {
37949 {
37950 arg4 = &temp4;
37951 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
37952 }
37953 }
37954 if (obj4) {
37955 ecode5 = SWIG_AsVal_long(obj4, &val5);
37956 if (!SWIG_IsOK(ecode5)) {
37957 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
37958 }
37959 arg5 = static_cast< long >(val5);
37960 }
37961 {
37962 if (!wxPyCheckForApp()) SWIG_fail;
37963 PyThreadState* __tstate = wxPyBeginAllowThreads();
37964 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
37965 wxPyEndAllowThreads(__tstate);
37966 if (PyErr_Occurred()) SWIG_fail;
37967 }
37968 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
37969 return resultobj;
37970 fail:
37971 return NULL;
37972 }
37973
37974
37975 SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37976 PyObject *resultobj = 0;
37977 wxDirFilterListCtrl *result = 0 ;
37978
37979 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
37980 {
37981 if (!wxPyCheckForApp()) SWIG_fail;
37982 PyThreadState* __tstate = wxPyBeginAllowThreads();
37983 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
37984 wxPyEndAllowThreads(__tstate);
37985 if (PyErr_Occurred()) SWIG_fail;
37986 }
37987 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
37988 return resultobj;
37989 fail:
37990 return NULL;
37991 }
37992
37993
37994 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37995 PyObject *resultobj = 0;
37996 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
37997 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
37998 int arg3 = (int) (int)-1 ;
37999 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38000 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38001 wxSize const &arg5_defvalue = wxDefaultSize ;
38002 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38003 long arg6 = (long) 0 ;
38004 bool result;
38005 void *argp1 = 0 ;
38006 int res1 = 0 ;
38007 void *argp2 = 0 ;
38008 int res2 = 0 ;
38009 int val3 ;
38010 int ecode3 = 0 ;
38011 wxPoint temp4 ;
38012 wxSize temp5 ;
38013 long val6 ;
38014 int ecode6 = 0 ;
38015 PyObject * obj0 = 0 ;
38016 PyObject * obj1 = 0 ;
38017 PyObject * obj2 = 0 ;
38018 PyObject * obj3 = 0 ;
38019 PyObject * obj4 = 0 ;
38020 PyObject * obj5 = 0 ;
38021 char * kwnames[] = {
38022 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38023 };
38024
38025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38027 if (!SWIG_IsOK(res1)) {
38028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38029 }
38030 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38031 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38032 if (!SWIG_IsOK(res2)) {
38033 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38034 }
38035 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38036 if (obj2) {
38037 ecode3 = SWIG_AsVal_int(obj2, &val3);
38038 if (!SWIG_IsOK(ecode3)) {
38039 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38040 }
38041 arg3 = static_cast< int >(val3);
38042 }
38043 if (obj3) {
38044 {
38045 arg4 = &temp4;
38046 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
38047 }
38048 }
38049 if (obj4) {
38050 {
38051 arg5 = &temp5;
38052 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
38053 }
38054 }
38055 if (obj5) {
38056 ecode6 = SWIG_AsVal_long(obj5, &val6);
38057 if (!SWIG_IsOK(ecode6)) {
38058 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38059 }
38060 arg6 = static_cast< long >(val6);
38061 }
38062 {
38063 PyThreadState* __tstate = wxPyBeginAllowThreads();
38064 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38065 wxPyEndAllowThreads(__tstate);
38066 if (PyErr_Occurred()) SWIG_fail;
38067 }
38068 {
38069 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38070 }
38071 return resultobj;
38072 fail:
38073 return NULL;
38074 }
38075
38076
38077 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38078 PyObject *resultobj = 0;
38079 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38080 wxString *arg2 = 0 ;
38081 int arg3 ;
38082 void *argp1 = 0 ;
38083 int res1 = 0 ;
38084 bool temp2 = false ;
38085 int val3 ;
38086 int ecode3 = 0 ;
38087 PyObject * obj0 = 0 ;
38088 PyObject * obj1 = 0 ;
38089 PyObject * obj2 = 0 ;
38090 char * kwnames[] = {
38091 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38092 };
38093
38094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38096 if (!SWIG_IsOK(res1)) {
38097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38098 }
38099 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38100 {
38101 arg2 = wxString_in_helper(obj1);
38102 if (arg2 == NULL) SWIG_fail;
38103 temp2 = true;
38104 }
38105 ecode3 = SWIG_AsVal_int(obj2, &val3);
38106 if (!SWIG_IsOK(ecode3)) {
38107 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38108 }
38109 arg3 = static_cast< int >(val3);
38110 {
38111 PyThreadState* __tstate = wxPyBeginAllowThreads();
38112 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38113 wxPyEndAllowThreads(__tstate);
38114 if (PyErr_Occurred()) SWIG_fail;
38115 }
38116 resultobj = SWIG_Py_Void();
38117 {
38118 if (temp2)
38119 delete arg2;
38120 }
38121 return resultobj;
38122 fail:
38123 {
38124 if (temp2)
38125 delete arg2;
38126 }
38127 return NULL;
38128 }
38129
38130
38131 SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38132 PyObject *obj;
38133 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38134 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38135 return SWIG_Py_Void();
38136 }
38137
38138 SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38139 return SWIG_Python_InitShadowInstance(args);
38140 }
38141
38142 SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38143 PyObject *resultobj = 0;
38144 wxWindow *arg1 = (wxWindow *) 0 ;
38145 int arg2 = (int) (int)-1 ;
38146 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38147 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38148 wxSize const &arg4_defvalue = wxDefaultSize ;
38149 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38150 long arg5 = (long) 0 ;
38151 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38152 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38153 wxString const &arg7_defvalue = wxPyControlNameStr ;
38154 wxString *arg7 = (wxString *) &arg7_defvalue ;
38155 wxPyControl *result = 0 ;
38156 void *argp1 = 0 ;
38157 int res1 = 0 ;
38158 int val2 ;
38159 int ecode2 = 0 ;
38160 wxPoint temp3 ;
38161 wxSize temp4 ;
38162 long val5 ;
38163 int ecode5 = 0 ;
38164 void *argp6 = 0 ;
38165 int res6 = 0 ;
38166 bool temp7 = false ;
38167 PyObject * obj0 = 0 ;
38168 PyObject * obj1 = 0 ;
38169 PyObject * obj2 = 0 ;
38170 PyObject * obj3 = 0 ;
38171 PyObject * obj4 = 0 ;
38172 PyObject * obj5 = 0 ;
38173 PyObject * obj6 = 0 ;
38174 char * kwnames[] = {
38175 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38176 };
38177
38178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38180 if (!SWIG_IsOK(res1)) {
38181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38182 }
38183 arg1 = reinterpret_cast< wxWindow * >(argp1);
38184 if (obj1) {
38185 ecode2 = SWIG_AsVal_int(obj1, &val2);
38186 if (!SWIG_IsOK(ecode2)) {
38187 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38188 }
38189 arg2 = static_cast< int >(val2);
38190 }
38191 if (obj2) {
38192 {
38193 arg3 = &temp3;
38194 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38195 }
38196 }
38197 if (obj3) {
38198 {
38199 arg4 = &temp4;
38200 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38201 }
38202 }
38203 if (obj4) {
38204 ecode5 = SWIG_AsVal_long(obj4, &val5);
38205 if (!SWIG_IsOK(ecode5)) {
38206 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38207 }
38208 arg5 = static_cast< long >(val5);
38209 }
38210 if (obj5) {
38211 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38212 if (!SWIG_IsOK(res6)) {
38213 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38214 }
38215 if (!argp6) {
38216 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38217 }
38218 arg6 = reinterpret_cast< wxValidator * >(argp6);
38219 }
38220 if (obj6) {
38221 {
38222 arg7 = wxString_in_helper(obj6);
38223 if (arg7 == NULL) SWIG_fail;
38224 temp7 = true;
38225 }
38226 }
38227 {
38228 if (!wxPyCheckForApp()) SWIG_fail;
38229 PyThreadState* __tstate = wxPyBeginAllowThreads();
38230 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38231 wxPyEndAllowThreads(__tstate);
38232 if (PyErr_Occurred()) SWIG_fail;
38233 }
38234 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38235 {
38236 if (temp7)
38237 delete arg7;
38238 }
38239 return resultobj;
38240 fail:
38241 {
38242 if (temp7)
38243 delete arg7;
38244 }
38245 return NULL;
38246 }
38247
38248
38249 SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38250 PyObject *resultobj = 0;
38251 wxPyControl *result = 0 ;
38252
38253 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38254 {
38255 if (!wxPyCheckForApp()) SWIG_fail;
38256 PyThreadState* __tstate = wxPyBeginAllowThreads();
38257 result = (wxPyControl *)new wxPyControl();
38258 wxPyEndAllowThreads(__tstate);
38259 if (PyErr_Occurred()) SWIG_fail;
38260 }
38261 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38262 return resultobj;
38263 fail:
38264 return NULL;
38265 }
38266
38267
38268 SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38269 PyObject *resultobj = 0;
38270 wxPyControl *arg1 = (wxPyControl *) 0 ;
38271 PyObject *arg2 = (PyObject *) 0 ;
38272 PyObject *arg3 = (PyObject *) 0 ;
38273 void *argp1 = 0 ;
38274 int res1 = 0 ;
38275 PyObject * obj0 = 0 ;
38276 PyObject * obj1 = 0 ;
38277 PyObject * obj2 = 0 ;
38278 char * kwnames[] = {
38279 (char *) "self",(char *) "self",(char *) "_class", NULL
38280 };
38281
38282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38284 if (!SWIG_IsOK(res1)) {
38285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38286 }
38287 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38288 arg2 = obj1;
38289 arg3 = obj2;
38290 {
38291 PyThreadState* __tstate = wxPyBeginAllowThreads();
38292 (arg1)->_setCallbackInfo(arg2,arg3);
38293 wxPyEndAllowThreads(__tstate);
38294 if (PyErr_Occurred()) SWIG_fail;
38295 }
38296 resultobj = SWIG_Py_Void();
38297 return resultobj;
38298 fail:
38299 return NULL;
38300 }
38301
38302
38303 SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38304 PyObject *resultobj = 0;
38305 wxPyControl *arg1 = (wxPyControl *) 0 ;
38306 wxSize *arg2 = 0 ;
38307 void *argp1 = 0 ;
38308 int res1 = 0 ;
38309 wxSize temp2 ;
38310 PyObject * obj0 = 0 ;
38311 PyObject * obj1 = 0 ;
38312 char * kwnames[] = {
38313 (char *) "self",(char *) "size", NULL
38314 };
38315
38316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
38317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38318 if (!SWIG_IsOK(res1)) {
38319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38320 }
38321 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38322 {
38323 arg2 = &temp2;
38324 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
38325 }
38326 {
38327 PyThreadState* __tstate = wxPyBeginAllowThreads();
38328 (arg1)->SetBestSize((wxSize const &)*arg2);
38329 wxPyEndAllowThreads(__tstate);
38330 if (PyErr_Occurred()) SWIG_fail;
38331 }
38332 resultobj = SWIG_Py_Void();
38333 return resultobj;
38334 fail:
38335 return NULL;
38336 }
38337
38338
38339 SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38340 PyObject *resultobj = 0;
38341 wxPyControl *arg1 = (wxPyControl *) 0 ;
38342 wxDC *arg2 = (wxDC *) 0 ;
38343 bool result;
38344 void *argp1 = 0 ;
38345 int res1 = 0 ;
38346 void *argp2 = 0 ;
38347 int res2 = 0 ;
38348 PyObject * obj0 = 0 ;
38349 PyObject * obj1 = 0 ;
38350 char * kwnames[] = {
38351 (char *) "self",(char *) "dc", NULL
38352 };
38353
38354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38356 if (!SWIG_IsOK(res1)) {
38357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38358 }
38359 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38360 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38361 if (!SWIG_IsOK(res2)) {
38362 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38363 }
38364 arg2 = reinterpret_cast< wxDC * >(argp2);
38365 {
38366 PyThreadState* __tstate = wxPyBeginAllowThreads();
38367 result = (bool)(arg1)->DoEraseBackground(arg2);
38368 wxPyEndAllowThreads(__tstate);
38369 if (PyErr_Occurred()) SWIG_fail;
38370 }
38371 {
38372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38373 }
38374 return resultobj;
38375 fail:
38376 return NULL;
38377 }
38378
38379
38380 SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38381 PyObject *resultobj = 0;
38382 wxPyControl *arg1 = (wxPyControl *) 0 ;
38383 int arg2 ;
38384 int arg3 ;
38385 int arg4 ;
38386 int arg5 ;
38387 void *argp1 = 0 ;
38388 int res1 = 0 ;
38389 int val2 ;
38390 int ecode2 = 0 ;
38391 int val3 ;
38392 int ecode3 = 0 ;
38393 int val4 ;
38394 int ecode4 = 0 ;
38395 int val5 ;
38396 int ecode5 = 0 ;
38397 PyObject * obj0 = 0 ;
38398 PyObject * obj1 = 0 ;
38399 PyObject * obj2 = 0 ;
38400 PyObject * obj3 = 0 ;
38401 PyObject * obj4 = 0 ;
38402 char * kwnames[] = {
38403 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38404 };
38405
38406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38408 if (!SWIG_IsOK(res1)) {
38409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38410 }
38411 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38412 ecode2 = SWIG_AsVal_int(obj1, &val2);
38413 if (!SWIG_IsOK(ecode2)) {
38414 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38415 }
38416 arg2 = static_cast< int >(val2);
38417 ecode3 = SWIG_AsVal_int(obj2, &val3);
38418 if (!SWIG_IsOK(ecode3)) {
38419 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38420 }
38421 arg3 = static_cast< int >(val3);
38422 ecode4 = SWIG_AsVal_int(obj3, &val4);
38423 if (!SWIG_IsOK(ecode4)) {
38424 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38425 }
38426 arg4 = static_cast< int >(val4);
38427 ecode5 = SWIG_AsVal_int(obj4, &val5);
38428 if (!SWIG_IsOK(ecode5)) {
38429 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38430 }
38431 arg5 = static_cast< int >(val5);
38432 {
38433 PyThreadState* __tstate = wxPyBeginAllowThreads();
38434 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38435 wxPyEndAllowThreads(__tstate);
38436 if (PyErr_Occurred()) SWIG_fail;
38437 }
38438 resultobj = SWIG_Py_Void();
38439 return resultobj;
38440 fail:
38441 return NULL;
38442 }
38443
38444
38445 SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38446 PyObject *resultobj = 0;
38447 wxPyControl *arg1 = (wxPyControl *) 0 ;
38448 int arg2 ;
38449 int arg3 ;
38450 int arg4 ;
38451 int arg5 ;
38452 int arg6 = (int) wxSIZE_AUTO ;
38453 void *argp1 = 0 ;
38454 int res1 = 0 ;
38455 int val2 ;
38456 int ecode2 = 0 ;
38457 int val3 ;
38458 int ecode3 = 0 ;
38459 int val4 ;
38460 int ecode4 = 0 ;
38461 int val5 ;
38462 int ecode5 = 0 ;
38463 int val6 ;
38464 int ecode6 = 0 ;
38465 PyObject * obj0 = 0 ;
38466 PyObject * obj1 = 0 ;
38467 PyObject * obj2 = 0 ;
38468 PyObject * obj3 = 0 ;
38469 PyObject * obj4 = 0 ;
38470 PyObject * obj5 = 0 ;
38471 char * kwnames[] = {
38472 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38473 };
38474
38475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38477 if (!SWIG_IsOK(res1)) {
38478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38479 }
38480 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38481 ecode2 = SWIG_AsVal_int(obj1, &val2);
38482 if (!SWIG_IsOK(ecode2)) {
38483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38484 }
38485 arg2 = static_cast< int >(val2);
38486 ecode3 = SWIG_AsVal_int(obj2, &val3);
38487 if (!SWIG_IsOK(ecode3)) {
38488 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38489 }
38490 arg3 = static_cast< int >(val3);
38491 ecode4 = SWIG_AsVal_int(obj3, &val4);
38492 if (!SWIG_IsOK(ecode4)) {
38493 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
38494 }
38495 arg4 = static_cast< int >(val4);
38496 ecode5 = SWIG_AsVal_int(obj4, &val5);
38497 if (!SWIG_IsOK(ecode5)) {
38498 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
38499 }
38500 arg5 = static_cast< int >(val5);
38501 if (obj5) {
38502 ecode6 = SWIG_AsVal_int(obj5, &val6);
38503 if (!SWIG_IsOK(ecode6)) {
38504 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
38505 }
38506 arg6 = static_cast< int >(val6);
38507 }
38508 {
38509 PyThreadState* __tstate = wxPyBeginAllowThreads();
38510 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
38511 wxPyEndAllowThreads(__tstate);
38512 if (PyErr_Occurred()) SWIG_fail;
38513 }
38514 resultobj = SWIG_Py_Void();
38515 return resultobj;
38516 fail:
38517 return NULL;
38518 }
38519
38520
38521 SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38522 PyObject *resultobj = 0;
38523 wxPyControl *arg1 = (wxPyControl *) 0 ;
38524 int arg2 ;
38525 int arg3 ;
38526 void *argp1 = 0 ;
38527 int res1 = 0 ;
38528 int val2 ;
38529 int ecode2 = 0 ;
38530 int val3 ;
38531 int ecode3 = 0 ;
38532 PyObject * obj0 = 0 ;
38533 PyObject * obj1 = 0 ;
38534 PyObject * obj2 = 0 ;
38535 char * kwnames[] = {
38536 (char *) "self",(char *) "width",(char *) "height", NULL
38537 };
38538
38539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38541 if (!SWIG_IsOK(res1)) {
38542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38543 }
38544 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38545 ecode2 = SWIG_AsVal_int(obj1, &val2);
38546 if (!SWIG_IsOK(ecode2)) {
38547 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
38548 }
38549 arg2 = static_cast< int >(val2);
38550 ecode3 = SWIG_AsVal_int(obj2, &val3);
38551 if (!SWIG_IsOK(ecode3)) {
38552 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
38553 }
38554 arg3 = static_cast< int >(val3);
38555 {
38556 PyThreadState* __tstate = wxPyBeginAllowThreads();
38557 (arg1)->DoSetClientSize(arg2,arg3);
38558 wxPyEndAllowThreads(__tstate);
38559 if (PyErr_Occurred()) SWIG_fail;
38560 }
38561 resultobj = SWIG_Py_Void();
38562 return resultobj;
38563 fail:
38564 return NULL;
38565 }
38566
38567
38568 SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38569 PyObject *resultobj = 0;
38570 wxPyControl *arg1 = (wxPyControl *) 0 ;
38571 int arg2 ;
38572 int arg3 ;
38573 void *argp1 = 0 ;
38574 int res1 = 0 ;
38575 int val2 ;
38576 int ecode2 = 0 ;
38577 int val3 ;
38578 int ecode3 = 0 ;
38579 PyObject * obj0 = 0 ;
38580 PyObject * obj1 = 0 ;
38581 PyObject * obj2 = 0 ;
38582 char * kwnames[] = {
38583 (char *) "self",(char *) "x",(char *) "y", NULL
38584 };
38585
38586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38588 if (!SWIG_IsOK(res1)) {
38589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38590 }
38591 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38592 ecode2 = SWIG_AsVal_int(obj1, &val2);
38593 if (!SWIG_IsOK(ecode2)) {
38594 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
38595 }
38596 arg2 = static_cast< int >(val2);
38597 ecode3 = SWIG_AsVal_int(obj2, &val3);
38598 if (!SWIG_IsOK(ecode3)) {
38599 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
38600 }
38601 arg3 = static_cast< int >(val3);
38602 {
38603 PyThreadState* __tstate = wxPyBeginAllowThreads();
38604 (arg1)->DoSetVirtualSize(arg2,arg3);
38605 wxPyEndAllowThreads(__tstate);
38606 if (PyErr_Occurred()) SWIG_fail;
38607 }
38608 resultobj = SWIG_Py_Void();
38609 return resultobj;
38610 fail:
38611 return NULL;
38612 }
38613
38614
38615 SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38616 PyObject *resultobj = 0;
38617 wxPyControl *arg1 = (wxPyControl *) 0 ;
38618 int *arg2 = (int *) 0 ;
38619 int *arg3 = (int *) 0 ;
38620 void *argp1 = 0 ;
38621 int res1 = 0 ;
38622 int temp2 ;
38623 int res2 = SWIG_TMPOBJ ;
38624 int temp3 ;
38625 int res3 = SWIG_TMPOBJ ;
38626 PyObject *swig_obj[1] ;
38627
38628 arg2 = &temp2;
38629 arg3 = &temp3;
38630 if (!args) SWIG_fail;
38631 swig_obj[0] = args;
38632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38633 if (!SWIG_IsOK(res1)) {
38634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38635 }
38636 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38637 {
38638 PyThreadState* __tstate = wxPyBeginAllowThreads();
38639 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
38640 wxPyEndAllowThreads(__tstate);
38641 if (PyErr_Occurred()) SWIG_fail;
38642 }
38643 resultobj = SWIG_Py_Void();
38644 if (SWIG_IsTmpObj(res2)) {
38645 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38646 } else {
38647 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38648 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38649 }
38650 if (SWIG_IsTmpObj(res3)) {
38651 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38652 } else {
38653 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38654 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38655 }
38656 return resultobj;
38657 fail:
38658 return NULL;
38659 }
38660
38661
38662 SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38663 PyObject *resultobj = 0;
38664 wxPyControl *arg1 = (wxPyControl *) 0 ;
38665 int *arg2 = (int *) 0 ;
38666 int *arg3 = (int *) 0 ;
38667 void *argp1 = 0 ;
38668 int res1 = 0 ;
38669 int temp2 ;
38670 int res2 = SWIG_TMPOBJ ;
38671 int temp3 ;
38672 int res3 = SWIG_TMPOBJ ;
38673 PyObject *swig_obj[1] ;
38674
38675 arg2 = &temp2;
38676 arg3 = &temp3;
38677 if (!args) SWIG_fail;
38678 swig_obj[0] = args;
38679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38680 if (!SWIG_IsOK(res1)) {
38681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38682 }
38683 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38684 {
38685 PyThreadState* __tstate = wxPyBeginAllowThreads();
38686 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
38687 wxPyEndAllowThreads(__tstate);
38688 if (PyErr_Occurred()) SWIG_fail;
38689 }
38690 resultobj = SWIG_Py_Void();
38691 if (SWIG_IsTmpObj(res2)) {
38692 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38693 } else {
38694 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38695 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38696 }
38697 if (SWIG_IsTmpObj(res3)) {
38698 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38699 } else {
38700 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38701 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38702 }
38703 return resultobj;
38704 fail:
38705 return NULL;
38706 }
38707
38708
38709 SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38710 PyObject *resultobj = 0;
38711 wxPyControl *arg1 = (wxPyControl *) 0 ;
38712 int *arg2 = (int *) 0 ;
38713 int *arg3 = (int *) 0 ;
38714 void *argp1 = 0 ;
38715 int res1 = 0 ;
38716 int temp2 ;
38717 int res2 = SWIG_TMPOBJ ;
38718 int temp3 ;
38719 int res3 = SWIG_TMPOBJ ;
38720 PyObject *swig_obj[1] ;
38721
38722 arg2 = &temp2;
38723 arg3 = &temp3;
38724 if (!args) SWIG_fail;
38725 swig_obj[0] = args;
38726 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38727 if (!SWIG_IsOK(res1)) {
38728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38729 }
38730 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38731 {
38732 PyThreadState* __tstate = wxPyBeginAllowThreads();
38733 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
38734 wxPyEndAllowThreads(__tstate);
38735 if (PyErr_Occurred()) SWIG_fail;
38736 }
38737 resultobj = SWIG_Py_Void();
38738 if (SWIG_IsTmpObj(res2)) {
38739 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38740 } else {
38741 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38742 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38743 }
38744 if (SWIG_IsTmpObj(res3)) {
38745 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38746 } else {
38747 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38748 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38749 }
38750 return resultobj;
38751 fail:
38752 return NULL;
38753 }
38754
38755
38756 SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38757 PyObject *resultobj = 0;
38758 wxPyControl *arg1 = (wxPyControl *) 0 ;
38759 wxSize result;
38760 void *argp1 = 0 ;
38761 int res1 = 0 ;
38762 PyObject *swig_obj[1] ;
38763
38764 if (!args) SWIG_fail;
38765 swig_obj[0] = args;
38766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38767 if (!SWIG_IsOK(res1)) {
38768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38769 }
38770 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38771 {
38772 PyThreadState* __tstate = wxPyBeginAllowThreads();
38773 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
38774 wxPyEndAllowThreads(__tstate);
38775 if (PyErr_Occurred()) SWIG_fail;
38776 }
38777 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
38778 return resultobj;
38779 fail:
38780 return NULL;
38781 }
38782
38783
38784 SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38785 PyObject *resultobj = 0;
38786 wxPyControl *arg1 = (wxPyControl *) 0 ;
38787 wxSize result;
38788 void *argp1 = 0 ;
38789 int res1 = 0 ;
38790 PyObject *swig_obj[1] ;
38791
38792 if (!args) SWIG_fail;
38793 swig_obj[0] = args;
38794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38795 if (!SWIG_IsOK(res1)) {
38796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38797 }
38798 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38799 {
38800 PyThreadState* __tstate = wxPyBeginAllowThreads();
38801 result = ((wxPyControl const *)arg1)->DoGetBestSize();
38802 wxPyEndAllowThreads(__tstate);
38803 if (PyErr_Occurred()) SWIG_fail;
38804 }
38805 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
38806 return resultobj;
38807 fail:
38808 return NULL;
38809 }
38810
38811
38812 SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38813 PyObject *resultobj = 0;
38814 wxPyControl *arg1 = (wxPyControl *) 0 ;
38815 SwigValueWrapper<wxVisualAttributes > result;
38816 void *argp1 = 0 ;
38817 int res1 = 0 ;
38818 PyObject *swig_obj[1] ;
38819
38820 if (!args) SWIG_fail;
38821 swig_obj[0] = args;
38822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38823 if (!SWIG_IsOK(res1)) {
38824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
38825 }
38826 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38827 {
38828 PyThreadState* __tstate = wxPyBeginAllowThreads();
38829 result = (arg1)->GetDefaultAttributes();
38830 wxPyEndAllowThreads(__tstate);
38831 if (PyErr_Occurred()) SWIG_fail;
38832 }
38833 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
38834 return resultobj;
38835 fail:
38836 return NULL;
38837 }
38838
38839
38840 SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38841 PyObject *resultobj = 0;
38842 wxPyControl *arg1 = (wxPyControl *) 0 ;
38843 void *argp1 = 0 ;
38844 int res1 = 0 ;
38845 PyObject *swig_obj[1] ;
38846
38847 if (!args) SWIG_fail;
38848 swig_obj[0] = args;
38849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38850 if (!SWIG_IsOK(res1)) {
38851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
38852 }
38853 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38854 {
38855 PyThreadState* __tstate = wxPyBeginAllowThreads();
38856 (arg1)->OnInternalIdle();
38857 wxPyEndAllowThreads(__tstate);
38858 if (PyErr_Occurred()) SWIG_fail;
38859 }
38860 resultobj = SWIG_Py_Void();
38861 return resultobj;
38862 fail:
38863 return NULL;
38864 }
38865
38866
38867 SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38868 PyObject *obj;
38869 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38870 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
38871 return SWIG_Py_Void();
38872 }
38873
38874 SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38875 return SWIG_Python_InitShadowInstance(args);
38876 }
38877
38878 SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38879 PyObject *resultobj = 0;
38880 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
38881 int arg2 = (int) 0 ;
38882 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38883 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38884 wxHelpEvent *result = 0 ;
38885 int val1 ;
38886 int ecode1 = 0 ;
38887 int val2 ;
38888 int ecode2 = 0 ;
38889 wxPoint temp3 ;
38890 PyObject * obj0 = 0 ;
38891 PyObject * obj1 = 0 ;
38892 PyObject * obj2 = 0 ;
38893 char * kwnames[] = {
38894 (char *) "type",(char *) "winid",(char *) "pt", NULL
38895 };
38896
38897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38898 if (obj0) {
38899 ecode1 = SWIG_AsVal_int(obj0, &val1);
38900 if (!SWIG_IsOK(ecode1)) {
38901 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
38902 }
38903 arg1 = static_cast< wxEventType >(val1);
38904 }
38905 if (obj1) {
38906 ecode2 = SWIG_AsVal_int(obj1, &val2);
38907 if (!SWIG_IsOK(ecode2)) {
38908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
38909 }
38910 arg2 = static_cast< int >(val2);
38911 }
38912 if (obj2) {
38913 {
38914 arg3 = &temp3;
38915 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38916 }
38917 }
38918 {
38919 PyThreadState* __tstate = wxPyBeginAllowThreads();
38920 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3);
38921 wxPyEndAllowThreads(__tstate);
38922 if (PyErr_Occurred()) SWIG_fail;
38923 }
38924 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
38925 return resultobj;
38926 fail:
38927 return NULL;
38928 }
38929
38930
38931 SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38932 PyObject *resultobj = 0;
38933 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38934 wxPoint result;
38935 void *argp1 = 0 ;
38936 int res1 = 0 ;
38937 PyObject *swig_obj[1] ;
38938
38939 if (!args) SWIG_fail;
38940 swig_obj[0] = args;
38941 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38942 if (!SWIG_IsOK(res1)) {
38943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38944 }
38945 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38946 {
38947 PyThreadState* __tstate = wxPyBeginAllowThreads();
38948 result = ((wxHelpEvent const *)arg1)->GetPosition();
38949 wxPyEndAllowThreads(__tstate);
38950 if (PyErr_Occurred()) SWIG_fail;
38951 }
38952 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
38953 return resultobj;
38954 fail:
38955 return NULL;
38956 }
38957
38958
38959 SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38960 PyObject *resultobj = 0;
38961 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38962 wxPoint *arg2 = 0 ;
38963 void *argp1 = 0 ;
38964 int res1 = 0 ;
38965 wxPoint temp2 ;
38966 PyObject * obj0 = 0 ;
38967 PyObject * obj1 = 0 ;
38968 char * kwnames[] = {
38969 (char *) "self",(char *) "pos", NULL
38970 };
38971
38972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
38973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38974 if (!SWIG_IsOK(res1)) {
38975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
38976 }
38977 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38978 {
38979 arg2 = &temp2;
38980 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
38981 }
38982 {
38983 PyThreadState* __tstate = wxPyBeginAllowThreads();
38984 (arg1)->SetPosition((wxPoint const &)*arg2);
38985 wxPyEndAllowThreads(__tstate);
38986 if (PyErr_Occurred()) SWIG_fail;
38987 }
38988 resultobj = SWIG_Py_Void();
38989 return resultobj;
38990 fail:
38991 return NULL;
38992 }
38993
38994
38995 SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38996 PyObject *resultobj = 0;
38997 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38998 wxString *result = 0 ;
38999 void *argp1 = 0 ;
39000 int res1 = 0 ;
39001 PyObject *swig_obj[1] ;
39002
39003 if (!args) SWIG_fail;
39004 swig_obj[0] = args;
39005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39006 if (!SWIG_IsOK(res1)) {
39007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39008 }
39009 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39010 {
39011 PyThreadState* __tstate = wxPyBeginAllowThreads();
39012 {
39013 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39014 result = (wxString *) &_result_ref;
39015 }
39016 wxPyEndAllowThreads(__tstate);
39017 if (PyErr_Occurred()) SWIG_fail;
39018 }
39019 {
39020 #if wxUSE_UNICODE
39021 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39022 #else
39023 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39024 #endif
39025 }
39026 return resultobj;
39027 fail:
39028 return NULL;
39029 }
39030
39031
39032 SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39033 PyObject *resultobj = 0;
39034 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39035 wxString *arg2 = 0 ;
39036 void *argp1 = 0 ;
39037 int res1 = 0 ;
39038 bool temp2 = false ;
39039 PyObject * obj0 = 0 ;
39040 PyObject * obj1 = 0 ;
39041 char * kwnames[] = {
39042 (char *) "self",(char *) "link", NULL
39043 };
39044
39045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39047 if (!SWIG_IsOK(res1)) {
39048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39049 }
39050 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39051 {
39052 arg2 = wxString_in_helper(obj1);
39053 if (arg2 == NULL) SWIG_fail;
39054 temp2 = true;
39055 }
39056 {
39057 PyThreadState* __tstate = wxPyBeginAllowThreads();
39058 (arg1)->SetLink((wxString const &)*arg2);
39059 wxPyEndAllowThreads(__tstate);
39060 if (PyErr_Occurred()) SWIG_fail;
39061 }
39062 resultobj = SWIG_Py_Void();
39063 {
39064 if (temp2)
39065 delete arg2;
39066 }
39067 return resultobj;
39068 fail:
39069 {
39070 if (temp2)
39071 delete arg2;
39072 }
39073 return NULL;
39074 }
39075
39076
39077 SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39078 PyObject *resultobj = 0;
39079 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39080 wxString *result = 0 ;
39081 void *argp1 = 0 ;
39082 int res1 = 0 ;
39083 PyObject *swig_obj[1] ;
39084
39085 if (!args) SWIG_fail;
39086 swig_obj[0] = args;
39087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39088 if (!SWIG_IsOK(res1)) {
39089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39090 }
39091 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39092 {
39093 PyThreadState* __tstate = wxPyBeginAllowThreads();
39094 {
39095 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39096 result = (wxString *) &_result_ref;
39097 }
39098 wxPyEndAllowThreads(__tstate);
39099 if (PyErr_Occurred()) SWIG_fail;
39100 }
39101 {
39102 #if wxUSE_UNICODE
39103 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39104 #else
39105 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39106 #endif
39107 }
39108 return resultobj;
39109 fail:
39110 return NULL;
39111 }
39112
39113
39114 SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39115 PyObject *resultobj = 0;
39116 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39117 wxString *arg2 = 0 ;
39118 void *argp1 = 0 ;
39119 int res1 = 0 ;
39120 bool temp2 = false ;
39121 PyObject * obj0 = 0 ;
39122 PyObject * obj1 = 0 ;
39123 char * kwnames[] = {
39124 (char *) "self",(char *) "target", NULL
39125 };
39126
39127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39129 if (!SWIG_IsOK(res1)) {
39130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39131 }
39132 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39133 {
39134 arg2 = wxString_in_helper(obj1);
39135 if (arg2 == NULL) SWIG_fail;
39136 temp2 = true;
39137 }
39138 {
39139 PyThreadState* __tstate = wxPyBeginAllowThreads();
39140 (arg1)->SetTarget((wxString const &)*arg2);
39141 wxPyEndAllowThreads(__tstate);
39142 if (PyErr_Occurred()) SWIG_fail;
39143 }
39144 resultobj = SWIG_Py_Void();
39145 {
39146 if (temp2)
39147 delete arg2;
39148 }
39149 return resultobj;
39150 fail:
39151 {
39152 if (temp2)
39153 delete arg2;
39154 }
39155 return NULL;
39156 }
39157
39158
39159 SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39160 PyObject *obj;
39161 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39162 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39163 return SWIG_Py_Void();
39164 }
39165
39166 SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39167 return SWIG_Python_InitShadowInstance(args);
39168 }
39169
39170 SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39171 PyObject *resultobj = 0;
39172 wxWindow *arg1 = (wxWindow *) NULL ;
39173 bool arg2 = (bool) true ;
39174 wxContextHelp *result = 0 ;
39175 void *argp1 = 0 ;
39176 int res1 = 0 ;
39177 bool val2 ;
39178 int ecode2 = 0 ;
39179 PyObject * obj0 = 0 ;
39180 PyObject * obj1 = 0 ;
39181 char * kwnames[] = {
39182 (char *) "window",(char *) "doNow", NULL
39183 };
39184
39185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39186 if (obj0) {
39187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39188 if (!SWIG_IsOK(res1)) {
39189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
39190 }
39191 arg1 = reinterpret_cast< wxWindow * >(argp1);
39192 }
39193 if (obj1) {
39194 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39195 if (!SWIG_IsOK(ecode2)) {
39196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39197 }
39198 arg2 = static_cast< bool >(val2);
39199 }
39200 {
39201 if (!wxPyCheckForApp()) SWIG_fail;
39202 PyThreadState* __tstate = wxPyBeginAllowThreads();
39203 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39204 wxPyEndAllowThreads(__tstate);
39205 if (PyErr_Occurred()) SWIG_fail;
39206 }
39207 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39208 return resultobj;
39209 fail:
39210 return NULL;
39211 }
39212
39213
39214 SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39215 PyObject *resultobj = 0;
39216 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39217 void *argp1 = 0 ;
39218 int res1 = 0 ;
39219 PyObject *swig_obj[1] ;
39220
39221 if (!args) SWIG_fail;
39222 swig_obj[0] = args;
39223 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39224 if (!SWIG_IsOK(res1)) {
39225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39226 }
39227 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39228 {
39229 PyThreadState* __tstate = wxPyBeginAllowThreads();
39230 delete arg1;
39231
39232 wxPyEndAllowThreads(__tstate);
39233 if (PyErr_Occurred()) SWIG_fail;
39234 }
39235 resultobj = SWIG_Py_Void();
39236 return resultobj;
39237 fail:
39238 return NULL;
39239 }
39240
39241
39242 SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39243 PyObject *resultobj = 0;
39244 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39245 wxWindow *arg2 = (wxWindow *) NULL ;
39246 bool result;
39247 void *argp1 = 0 ;
39248 int res1 = 0 ;
39249 void *argp2 = 0 ;
39250 int res2 = 0 ;
39251 PyObject * obj0 = 0 ;
39252 PyObject * obj1 = 0 ;
39253 char * kwnames[] = {
39254 (char *) "self",(char *) "window", NULL
39255 };
39256
39257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39259 if (!SWIG_IsOK(res1)) {
39260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39261 }
39262 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39263 if (obj1) {
39264 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39265 if (!SWIG_IsOK(res2)) {
39266 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39267 }
39268 arg2 = reinterpret_cast< wxWindow * >(argp2);
39269 }
39270 {
39271 PyThreadState* __tstate = wxPyBeginAllowThreads();
39272 result = (bool)(arg1)->BeginContextHelp(arg2);
39273 wxPyEndAllowThreads(__tstate);
39274 if (PyErr_Occurred()) SWIG_fail;
39275 }
39276 {
39277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39278 }
39279 return resultobj;
39280 fail:
39281 return NULL;
39282 }
39283
39284
39285 SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39286 PyObject *resultobj = 0;
39287 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39288 bool result;
39289 void *argp1 = 0 ;
39290 int res1 = 0 ;
39291 PyObject *swig_obj[1] ;
39292
39293 if (!args) SWIG_fail;
39294 swig_obj[0] = args;
39295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39296 if (!SWIG_IsOK(res1)) {
39297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39298 }
39299 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39300 {
39301 PyThreadState* __tstate = wxPyBeginAllowThreads();
39302 result = (bool)(arg1)->EndContextHelp();
39303 wxPyEndAllowThreads(__tstate);
39304 if (PyErr_Occurred()) SWIG_fail;
39305 }
39306 {
39307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39308 }
39309 return resultobj;
39310 fail:
39311 return NULL;
39312 }
39313
39314
39315 SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39316 PyObject *obj;
39317 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39318 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39319 return SWIG_Py_Void();
39320 }
39321
39322 SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39323 return SWIG_Python_InitShadowInstance(args);
39324 }
39325
39326 SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39327 PyObject *resultobj = 0;
39328 wxWindow *arg1 = (wxWindow *) 0 ;
39329 int arg2 = (int) wxID_CONTEXT_HELP ;
39330 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39331 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39332 wxSize const &arg4_defvalue = wxDefaultSize ;
39333 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39334 long arg5 = (long) wxBU_AUTODRAW ;
39335 wxContextHelpButton *result = 0 ;
39336 void *argp1 = 0 ;
39337 int res1 = 0 ;
39338 int val2 ;
39339 int ecode2 = 0 ;
39340 wxPoint temp3 ;
39341 wxSize temp4 ;
39342 long val5 ;
39343 int ecode5 = 0 ;
39344 PyObject * obj0 = 0 ;
39345 PyObject * obj1 = 0 ;
39346 PyObject * obj2 = 0 ;
39347 PyObject * obj3 = 0 ;
39348 PyObject * obj4 = 0 ;
39349 char * kwnames[] = {
39350 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39351 };
39352
39353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39355 if (!SWIG_IsOK(res1)) {
39356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39357 }
39358 arg1 = reinterpret_cast< wxWindow * >(argp1);
39359 if (obj1) {
39360 ecode2 = SWIG_AsVal_int(obj1, &val2);
39361 if (!SWIG_IsOK(ecode2)) {
39362 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39363 }
39364 arg2 = static_cast< int >(val2);
39365 }
39366 if (obj2) {
39367 {
39368 arg3 = &temp3;
39369 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39370 }
39371 }
39372 if (obj3) {
39373 {
39374 arg4 = &temp4;
39375 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
39376 }
39377 }
39378 if (obj4) {
39379 ecode5 = SWIG_AsVal_long(obj4, &val5);
39380 if (!SWIG_IsOK(ecode5)) {
39381 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39382 }
39383 arg5 = static_cast< long >(val5);
39384 }
39385 {
39386 if (!wxPyCheckForApp()) SWIG_fail;
39387 PyThreadState* __tstate = wxPyBeginAllowThreads();
39388 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39389 wxPyEndAllowThreads(__tstate);
39390 if (PyErr_Occurred()) SWIG_fail;
39391 }
39392 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39393 return resultobj;
39394 fail:
39395 return NULL;
39396 }
39397
39398
39399 SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39400 PyObject *obj;
39401 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39402 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39403 return SWIG_Py_Void();
39404 }
39405
39406 SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39407 return SWIG_Python_InitShadowInstance(args);
39408 }
39409
39410 SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39411 PyObject *resultobj = 0;
39412 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39413 void *argp1 = 0 ;
39414 int res1 = 0 ;
39415 PyObject *swig_obj[1] ;
39416
39417 if (!args) SWIG_fail;
39418 swig_obj[0] = args;
39419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39420 if (!SWIG_IsOK(res1)) {
39421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39422 }
39423 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39424 {
39425 PyThreadState* __tstate = wxPyBeginAllowThreads();
39426 delete arg1;
39427
39428 wxPyEndAllowThreads(__tstate);
39429 if (PyErr_Occurred()) SWIG_fail;
39430 }
39431 resultobj = SWIG_Py_Void();
39432 return resultobj;
39433 fail:
39434 return NULL;
39435 }
39436
39437
39438 SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39439 PyObject *resultobj = 0;
39440 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39441 wxHelpProvider *result = 0 ;
39442 int res1 = 0 ;
39443 PyObject * obj0 = 0 ;
39444 char * kwnames[] = {
39445 (char *) "helpProvider", NULL
39446 };
39447
39448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
39449 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39450 if (!SWIG_IsOK(res1)) {
39451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39452 }
39453 {
39454 PyThreadState* __tstate = wxPyBeginAllowThreads();
39455 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
39456 wxPyEndAllowThreads(__tstate);
39457 if (PyErr_Occurred()) SWIG_fail;
39458 }
39459 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
39460 return resultobj;
39461 fail:
39462 return NULL;
39463 }
39464
39465
39466 SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39467 PyObject *resultobj = 0;
39468 wxHelpProvider *result = 0 ;
39469
39470 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
39471 {
39472 PyThreadState* __tstate = wxPyBeginAllowThreads();
39473 result = (wxHelpProvider *)wxHelpProvider::Get();
39474 wxPyEndAllowThreads(__tstate);
39475 if (PyErr_Occurred()) SWIG_fail;
39476 }
39477 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39478 return resultobj;
39479 fail:
39480 return NULL;
39481 }
39482
39483
39484 SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39485 PyObject *resultobj = 0;
39486 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39487 wxWindow *arg2 = (wxWindow *) 0 ;
39488 wxString result;
39489 void *argp1 = 0 ;
39490 int res1 = 0 ;
39491 void *argp2 = 0 ;
39492 int res2 = 0 ;
39493 PyObject * obj0 = 0 ;
39494 PyObject * obj1 = 0 ;
39495 char * kwnames[] = {
39496 (char *) "self",(char *) "window", NULL
39497 };
39498
39499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39501 if (!SWIG_IsOK(res1)) {
39502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39503 }
39504 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39505 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39506 if (!SWIG_IsOK(res2)) {
39507 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
39508 }
39509 arg2 = reinterpret_cast< wxWindow * >(argp2);
39510 {
39511 PyThreadState* __tstate = wxPyBeginAllowThreads();
39512 result = (arg1)->GetHelp((wxWindow const *)arg2);
39513 wxPyEndAllowThreads(__tstate);
39514 if (PyErr_Occurred()) SWIG_fail;
39515 }
39516 {
39517 #if wxUSE_UNICODE
39518 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
39519 #else
39520 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
39521 #endif
39522 }
39523 return resultobj;
39524 fail:
39525 return NULL;
39526 }
39527
39528
39529 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39530 PyObject *resultobj = 0;
39531 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39532 wxWindow *arg2 = (wxWindow *) 0 ;
39533 bool result;
39534 void *argp1 = 0 ;
39535 int res1 = 0 ;
39536 void *argp2 = 0 ;
39537 int res2 = 0 ;
39538 PyObject * obj0 = 0 ;
39539 PyObject * obj1 = 0 ;
39540 char * kwnames[] = {
39541 (char *) "self",(char *) "window", NULL
39542 };
39543
39544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39546 if (!SWIG_IsOK(res1)) {
39547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39548 }
39549 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39550 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39551 if (!SWIG_IsOK(res2)) {
39552 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39553 }
39554 arg2 = reinterpret_cast< wxWindow * >(argp2);
39555 {
39556 PyThreadState* __tstate = wxPyBeginAllowThreads();
39557 result = (bool)(arg1)->ShowHelp(arg2);
39558 wxPyEndAllowThreads(__tstate);
39559 if (PyErr_Occurred()) SWIG_fail;
39560 }
39561 {
39562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39563 }
39564 return resultobj;
39565 fail:
39566 return NULL;
39567 }
39568
39569
39570 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39571 PyObject *resultobj = 0;
39572 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39573 wxWindow *arg2 = (wxWindow *) 0 ;
39574 wxString *arg3 = 0 ;
39575 void *argp1 = 0 ;
39576 int res1 = 0 ;
39577 void *argp2 = 0 ;
39578 int res2 = 0 ;
39579 bool temp3 = false ;
39580 PyObject * obj0 = 0 ;
39581 PyObject * obj1 = 0 ;
39582 PyObject * obj2 = 0 ;
39583 char * kwnames[] = {
39584 (char *) "self",(char *) "window",(char *) "text", NULL
39585 };
39586
39587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39589 if (!SWIG_IsOK(res1)) {
39590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39591 }
39592 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39593 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39594 if (!SWIG_IsOK(res2)) {
39595 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39596 }
39597 arg2 = reinterpret_cast< wxWindow * >(argp2);
39598 {
39599 arg3 = wxString_in_helper(obj2);
39600 if (arg3 == NULL) SWIG_fail;
39601 temp3 = true;
39602 }
39603 {
39604 PyThreadState* __tstate = wxPyBeginAllowThreads();
39605 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39606 wxPyEndAllowThreads(__tstate);
39607 if (PyErr_Occurred()) SWIG_fail;
39608 }
39609 resultobj = SWIG_Py_Void();
39610 {
39611 if (temp3)
39612 delete arg3;
39613 }
39614 return resultobj;
39615 fail:
39616 {
39617 if (temp3)
39618 delete arg3;
39619 }
39620 return NULL;
39621 }
39622
39623
39624 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39625 PyObject *resultobj = 0;
39626 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39627 int arg2 ;
39628 wxString *arg3 = 0 ;
39629 void *argp1 = 0 ;
39630 int res1 = 0 ;
39631 int val2 ;
39632 int ecode2 = 0 ;
39633 bool temp3 = false ;
39634 PyObject * obj0 = 0 ;
39635 PyObject * obj1 = 0 ;
39636 PyObject * obj2 = 0 ;
39637 char * kwnames[] = {
39638 (char *) "self",(char *) "id",(char *) "text", NULL
39639 };
39640
39641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39643 if (!SWIG_IsOK(res1)) {
39644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39645 }
39646 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39647 ecode2 = SWIG_AsVal_int(obj1, &val2);
39648 if (!SWIG_IsOK(ecode2)) {
39649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
39650 }
39651 arg2 = static_cast< int >(val2);
39652 {
39653 arg3 = wxString_in_helper(obj2);
39654 if (arg3 == NULL) SWIG_fail;
39655 temp3 = true;
39656 }
39657 {
39658 PyThreadState* __tstate = wxPyBeginAllowThreads();
39659 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39660 wxPyEndAllowThreads(__tstate);
39661 if (PyErr_Occurred()) SWIG_fail;
39662 }
39663 resultobj = SWIG_Py_Void();
39664 {
39665 if (temp3)
39666 delete arg3;
39667 }
39668 return resultobj;
39669 fail:
39670 {
39671 if (temp3)
39672 delete arg3;
39673 }
39674 return NULL;
39675 }
39676
39677
39678 SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39679 PyObject *resultobj = 0;
39680 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39681 wxWindow *arg2 = (wxWindow *) 0 ;
39682 void *argp1 = 0 ;
39683 int res1 = 0 ;
39684 void *argp2 = 0 ;
39685 int res2 = 0 ;
39686 PyObject * obj0 = 0 ;
39687 PyObject * obj1 = 0 ;
39688 char * kwnames[] = {
39689 (char *) "self",(char *) "window", NULL
39690 };
39691
39692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39694 if (!SWIG_IsOK(res1)) {
39695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39696 }
39697 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39698 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39699 if (!SWIG_IsOK(res2)) {
39700 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39701 }
39702 arg2 = reinterpret_cast< wxWindow * >(argp2);
39703 {
39704 PyThreadState* __tstate = wxPyBeginAllowThreads();
39705 (arg1)->RemoveHelp(arg2);
39706 wxPyEndAllowThreads(__tstate);
39707 if (PyErr_Occurred()) SWIG_fail;
39708 }
39709 resultobj = SWIG_Py_Void();
39710 return resultobj;
39711 fail:
39712 return NULL;
39713 }
39714
39715
39716 SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39717 PyObject *resultobj = 0;
39718 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39719 void *argp1 = 0 ;
39720 int res1 = 0 ;
39721 PyObject *swig_obj[1] ;
39722
39723 if (!args) SWIG_fail;
39724 swig_obj[0] = args;
39725 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39726 if (!SWIG_IsOK(res1)) {
39727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39728 }
39729 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39730 {
39731 PyThreadState* __tstate = wxPyBeginAllowThreads();
39732 wxHelpProvider_Destroy(arg1);
39733 wxPyEndAllowThreads(__tstate);
39734 if (PyErr_Occurred()) SWIG_fail;
39735 }
39736 resultobj = SWIG_Py_Void();
39737 return resultobj;
39738 fail:
39739 return NULL;
39740 }
39741
39742
39743 SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39744 PyObject *obj;
39745 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39746 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
39747 return SWIG_Py_Void();
39748 }
39749
39750 SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39751 PyObject *resultobj = 0;
39752 wxSimpleHelpProvider *result = 0 ;
39753
39754 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
39755 {
39756 PyThreadState* __tstate = wxPyBeginAllowThreads();
39757 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
39758 wxPyEndAllowThreads(__tstate);
39759 if (PyErr_Occurred()) SWIG_fail;
39760 }
39761 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
39762 return resultobj;
39763 fail:
39764 return NULL;
39765 }
39766
39767
39768 SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39769 PyObject *obj;
39770 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39771 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
39772 return SWIG_Py_Void();
39773 }
39774
39775 SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39776 return SWIG_Python_InitShadowInstance(args);
39777 }
39778
39779 SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39780 PyObject *resultobj = 0;
39781 wxBitmap *arg1 = 0 ;
39782 wxCursor const &arg2_defvalue = wxNullCursor ;
39783 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39784 wxGenericDragImage *result = 0 ;
39785 void *argp1 = 0 ;
39786 int res1 = 0 ;
39787 void *argp2 = 0 ;
39788 int res2 = 0 ;
39789 PyObject * obj0 = 0 ;
39790 PyObject * obj1 = 0 ;
39791 char * kwnames[] = {
39792 (char *) "image",(char *) "cursor", NULL
39793 };
39794
39795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
39796 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
39797 if (!SWIG_IsOK(res1)) {
39798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
39799 }
39800 if (!argp1) {
39801 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
39802 }
39803 arg1 = reinterpret_cast< wxBitmap * >(argp1);
39804 if (obj1) {
39805 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39806 if (!SWIG_IsOK(res2)) {
39807 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
39808 }
39809 if (!argp2) {
39810 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
39811 }
39812 arg2 = reinterpret_cast< wxCursor * >(argp2);
39813 }
39814 {
39815 if (!wxPyCheckForApp()) SWIG_fail;
39816 PyThreadState* __tstate = wxPyBeginAllowThreads();
39817 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
39818 wxPyEndAllowThreads(__tstate);
39819 if (PyErr_Occurred()) SWIG_fail;
39820 }
39821 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
39822 return resultobj;
39823 fail:
39824 return NULL;
39825 }
39826
39827
39828 SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39829 PyObject *resultobj = 0;
39830 wxIcon *arg1 = 0 ;
39831 wxCursor const &arg2_defvalue = wxNullCursor ;
39832 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39833 wxGenericDragImage *result = 0 ;
39834 void *argp1 = 0 ;
39835 int res1 = 0 ;
39836 void *argp2 = 0 ;
39837 int res2 = 0 ;
39838 PyObject * obj0 = 0 ;
39839 PyObject * obj1 = 0 ;
39840 char * kwnames[] = {
39841 (char *) "image",(char *) "cursor", NULL
39842 };
39843
39844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
39845 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
39846 if (!SWIG_IsOK(res1)) {
39847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
39848 }
39849 if (!argp1) {
39850 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
39851 }
39852 arg1 = reinterpret_cast< wxIcon * >(argp1);
39853 if (obj1) {
39854 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39855 if (!SWIG_IsOK(res2)) {
39856 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
39857 }
39858 if (!argp2) {
39859 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
39860 }
39861 arg2 = reinterpret_cast< wxCursor * >(argp2);
39862 }
39863 {
39864 if (!wxPyCheckForApp()) SWIG_fail;
39865 PyThreadState* __tstate = wxPyBeginAllowThreads();
39866 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
39867 wxPyEndAllowThreads(__tstate);
39868 if (PyErr_Occurred()) SWIG_fail;
39869 }
39870 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39871 return resultobj;
39872 fail:
39873 return NULL;
39874 }
39875
39876
39877 SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39878 PyObject *resultobj = 0;
39879 wxString *arg1 = 0 ;
39880 wxCursor const &arg2_defvalue = wxNullCursor ;
39881 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39882 wxGenericDragImage *result = 0 ;
39883 bool temp1 = false ;
39884 void *argp2 = 0 ;
39885 int res2 = 0 ;
39886 PyObject * obj0 = 0 ;
39887 PyObject * obj1 = 0 ;
39888 char * kwnames[] = {
39889 (char *) "str",(char *) "cursor", NULL
39890 };
39891
39892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
39893 {
39894 arg1 = wxString_in_helper(obj0);
39895 if (arg1 == NULL) SWIG_fail;
39896 temp1 = true;
39897 }
39898 if (obj1) {
39899 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39900 if (!SWIG_IsOK(res2)) {
39901 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
39902 }
39903 if (!argp2) {
39904 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
39905 }
39906 arg2 = reinterpret_cast< wxCursor * >(argp2);
39907 }
39908 {
39909 if (!wxPyCheckForApp()) SWIG_fail;
39910 PyThreadState* __tstate = wxPyBeginAllowThreads();
39911 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
39912 wxPyEndAllowThreads(__tstate);
39913 if (PyErr_Occurred()) SWIG_fail;
39914 }
39915 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39916 {
39917 if (temp1)
39918 delete arg1;
39919 }
39920 return resultobj;
39921 fail:
39922 {
39923 if (temp1)
39924 delete arg1;
39925 }
39926 return NULL;
39927 }
39928
39929
39930 SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39931 PyObject *resultobj = 0;
39932 wxPyTreeCtrl *arg1 = 0 ;
39933 wxTreeItemId *arg2 = 0 ;
39934 wxGenericDragImage *result = 0 ;
39935 void *argp1 = 0 ;
39936 int res1 = 0 ;
39937 void *argp2 = 0 ;
39938 int res2 = 0 ;
39939 PyObject * obj0 = 0 ;
39940 PyObject * obj1 = 0 ;
39941 char * kwnames[] = {
39942 (char *) "treeCtrl",(char *) "id", NULL
39943 };
39944
39945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
39946 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
39947 if (!SWIG_IsOK(res1)) {
39948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
39949 }
39950 if (!argp1) {
39951 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
39952 }
39953 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
39954 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
39955 if (!SWIG_IsOK(res2)) {
39956 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
39957 }
39958 if (!argp2) {
39959 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
39960 }
39961 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
39962 {
39963 if (!wxPyCheckForApp()) SWIG_fail;
39964 PyThreadState* __tstate = wxPyBeginAllowThreads();
39965 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
39966 wxPyEndAllowThreads(__tstate);
39967 if (PyErr_Occurred()) SWIG_fail;
39968 }
39969 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39970 return resultobj;
39971 fail:
39972 return NULL;
39973 }
39974
39975
39976 SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39977 PyObject *resultobj = 0;
39978 wxPyListCtrl *arg1 = 0 ;
39979 long arg2 ;
39980 wxGenericDragImage *result = 0 ;
39981 void *argp1 = 0 ;
39982 int res1 = 0 ;
39983 long val2 ;
39984 int ecode2 = 0 ;
39985 PyObject * obj0 = 0 ;
39986 PyObject * obj1 = 0 ;
39987 char * kwnames[] = {
39988 (char *) "listCtrl",(char *) "id", NULL
39989 };
39990
39991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
39992 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
39993 if (!SWIG_IsOK(res1)) {
39994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
39995 }
39996 if (!argp1) {
39997 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
39998 }
39999 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40000 ecode2 = SWIG_AsVal_long(obj1, &val2);
40001 if (!SWIG_IsOK(ecode2)) {
40002 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40003 }
40004 arg2 = static_cast< long >(val2);
40005 {
40006 if (!wxPyCheckForApp()) SWIG_fail;
40007 PyThreadState* __tstate = wxPyBeginAllowThreads();
40008 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40009 wxPyEndAllowThreads(__tstate);
40010 if (PyErr_Occurred()) SWIG_fail;
40011 }
40012 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40013 return resultobj;
40014 fail:
40015 return NULL;
40016 }
40017
40018
40019 SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40020 PyObject *resultobj = 0;
40021 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40022 void *argp1 = 0 ;
40023 int res1 = 0 ;
40024 PyObject *swig_obj[1] ;
40025
40026 if (!args) SWIG_fail;
40027 swig_obj[0] = args;
40028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40029 if (!SWIG_IsOK(res1)) {
40030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40031 }
40032 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40033 {
40034 PyThreadState* __tstate = wxPyBeginAllowThreads();
40035 delete arg1;
40036
40037 wxPyEndAllowThreads(__tstate);
40038 if (PyErr_Occurred()) SWIG_fail;
40039 }
40040 resultobj = SWIG_Py_Void();
40041 return resultobj;
40042 fail:
40043 return NULL;
40044 }
40045
40046
40047 SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40048 PyObject *resultobj = 0;
40049 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40050 wxBitmap *arg2 = (wxBitmap *) 0 ;
40051 void *argp1 = 0 ;
40052 int res1 = 0 ;
40053 void *argp2 = 0 ;
40054 int res2 = 0 ;
40055 PyObject * obj0 = 0 ;
40056 PyObject * obj1 = 0 ;
40057 char * kwnames[] = {
40058 (char *) "self",(char *) "bitmap", NULL
40059 };
40060
40061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40063 if (!SWIG_IsOK(res1)) {
40064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40065 }
40066 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40067 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40068 if (!SWIG_IsOK(res2)) {
40069 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40070 }
40071 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40072 {
40073 PyThreadState* __tstate = wxPyBeginAllowThreads();
40074 (arg1)->SetBackingBitmap(arg2);
40075 wxPyEndAllowThreads(__tstate);
40076 if (PyErr_Occurred()) SWIG_fail;
40077 }
40078 resultobj = SWIG_Py_Void();
40079 return resultobj;
40080 fail:
40081 return NULL;
40082 }
40083
40084
40085 SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40086 PyObject *resultobj = 0;
40087 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40088 wxPoint *arg2 = 0 ;
40089 wxWindow *arg3 = (wxWindow *) 0 ;
40090 bool arg4 = (bool) false ;
40091 wxRect *arg5 = (wxRect *) NULL ;
40092 bool result;
40093 void *argp1 = 0 ;
40094 int res1 = 0 ;
40095 wxPoint temp2 ;
40096 void *argp3 = 0 ;
40097 int res3 = 0 ;
40098 bool val4 ;
40099 int ecode4 = 0 ;
40100 void *argp5 = 0 ;
40101 int res5 = 0 ;
40102 PyObject * obj0 = 0 ;
40103 PyObject * obj1 = 0 ;
40104 PyObject * obj2 = 0 ;
40105 PyObject * obj3 = 0 ;
40106 PyObject * obj4 = 0 ;
40107 char * kwnames[] = {
40108 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40109 };
40110
40111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40113 if (!SWIG_IsOK(res1)) {
40114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40115 }
40116 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40117 {
40118 arg2 = &temp2;
40119 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40120 }
40121 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40122 if (!SWIG_IsOK(res3)) {
40123 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40124 }
40125 arg3 = reinterpret_cast< wxWindow * >(argp3);
40126 if (obj3) {
40127 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40128 if (!SWIG_IsOK(ecode4)) {
40129 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40130 }
40131 arg4 = static_cast< bool >(val4);
40132 }
40133 if (obj4) {
40134 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40135 if (!SWIG_IsOK(res5)) {
40136 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
40137 }
40138 arg5 = reinterpret_cast< wxRect * >(argp5);
40139 }
40140 {
40141 PyThreadState* __tstate = wxPyBeginAllowThreads();
40142 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40143 wxPyEndAllowThreads(__tstate);
40144 if (PyErr_Occurred()) SWIG_fail;
40145 }
40146 {
40147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40148 }
40149 return resultobj;
40150 fail:
40151 return NULL;
40152 }
40153
40154
40155 SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40156 PyObject *resultobj = 0;
40157 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40158 wxPoint *arg2 = 0 ;
40159 wxWindow *arg3 = (wxWindow *) 0 ;
40160 wxWindow *arg4 = (wxWindow *) 0 ;
40161 bool result;
40162 void *argp1 = 0 ;
40163 int res1 = 0 ;
40164 wxPoint temp2 ;
40165 void *argp3 = 0 ;
40166 int res3 = 0 ;
40167 void *argp4 = 0 ;
40168 int res4 = 0 ;
40169 PyObject * obj0 = 0 ;
40170 PyObject * obj1 = 0 ;
40171 PyObject * obj2 = 0 ;
40172 PyObject * obj3 = 0 ;
40173 char * kwnames[] = {
40174 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40175 };
40176
40177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40179 if (!SWIG_IsOK(res1)) {
40180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40181 }
40182 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40183 {
40184 arg2 = &temp2;
40185 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40186 }
40187 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40188 if (!SWIG_IsOK(res3)) {
40189 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40190 }
40191 arg3 = reinterpret_cast< wxWindow * >(argp3);
40192 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40193 if (!SWIG_IsOK(res4)) {
40194 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40195 }
40196 arg4 = reinterpret_cast< wxWindow * >(argp4);
40197 {
40198 PyThreadState* __tstate = wxPyBeginAllowThreads();
40199 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40200 wxPyEndAllowThreads(__tstate);
40201 if (PyErr_Occurred()) SWIG_fail;
40202 }
40203 {
40204 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40205 }
40206 return resultobj;
40207 fail:
40208 return NULL;
40209 }
40210
40211
40212 SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40213 PyObject *resultobj = 0;
40214 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40215 bool result;
40216 void *argp1 = 0 ;
40217 int res1 = 0 ;
40218 PyObject *swig_obj[1] ;
40219
40220 if (!args) SWIG_fail;
40221 swig_obj[0] = args;
40222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40223 if (!SWIG_IsOK(res1)) {
40224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40225 }
40226 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40227 {
40228 PyThreadState* __tstate = wxPyBeginAllowThreads();
40229 result = (bool)(arg1)->EndDrag();
40230 wxPyEndAllowThreads(__tstate);
40231 if (PyErr_Occurred()) SWIG_fail;
40232 }
40233 {
40234 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40235 }
40236 return resultobj;
40237 fail:
40238 return NULL;
40239 }
40240
40241
40242 SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40243 PyObject *resultobj = 0;
40244 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40245 wxPoint *arg2 = 0 ;
40246 bool result;
40247 void *argp1 = 0 ;
40248 int res1 = 0 ;
40249 wxPoint temp2 ;
40250 PyObject * obj0 = 0 ;
40251 PyObject * obj1 = 0 ;
40252 char * kwnames[] = {
40253 (char *) "self",(char *) "pt", NULL
40254 };
40255
40256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40258 if (!SWIG_IsOK(res1)) {
40259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40260 }
40261 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40262 {
40263 arg2 = &temp2;
40264 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40265 }
40266 {
40267 PyThreadState* __tstate = wxPyBeginAllowThreads();
40268 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40269 wxPyEndAllowThreads(__tstate);
40270 if (PyErr_Occurred()) SWIG_fail;
40271 }
40272 {
40273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40274 }
40275 return resultobj;
40276 fail:
40277 return NULL;
40278 }
40279
40280
40281 SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40282 PyObject *resultobj = 0;
40283 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40284 bool result;
40285 void *argp1 = 0 ;
40286 int res1 = 0 ;
40287 PyObject *swig_obj[1] ;
40288
40289 if (!args) SWIG_fail;
40290 swig_obj[0] = args;
40291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40292 if (!SWIG_IsOK(res1)) {
40293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40294 }
40295 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40296 {
40297 PyThreadState* __tstate = wxPyBeginAllowThreads();
40298 result = (bool)(arg1)->Show();
40299 wxPyEndAllowThreads(__tstate);
40300 if (PyErr_Occurred()) SWIG_fail;
40301 }
40302 {
40303 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40304 }
40305 return resultobj;
40306 fail:
40307 return NULL;
40308 }
40309
40310
40311 SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40312 PyObject *resultobj = 0;
40313 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40314 bool result;
40315 void *argp1 = 0 ;
40316 int res1 = 0 ;
40317 PyObject *swig_obj[1] ;
40318
40319 if (!args) SWIG_fail;
40320 swig_obj[0] = args;
40321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40322 if (!SWIG_IsOK(res1)) {
40323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40324 }
40325 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40326 {
40327 PyThreadState* __tstate = wxPyBeginAllowThreads();
40328 result = (bool)(arg1)->Hide();
40329 wxPyEndAllowThreads(__tstate);
40330 if (PyErr_Occurred()) SWIG_fail;
40331 }
40332 {
40333 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40334 }
40335 return resultobj;
40336 fail:
40337 return NULL;
40338 }
40339
40340
40341 SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40342 PyObject *resultobj = 0;
40343 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40344 wxPoint *arg2 = 0 ;
40345 wxRect result;
40346 void *argp1 = 0 ;
40347 int res1 = 0 ;
40348 wxPoint temp2 ;
40349 PyObject * obj0 = 0 ;
40350 PyObject * obj1 = 0 ;
40351 char * kwnames[] = {
40352 (char *) "self",(char *) "pos", NULL
40353 };
40354
40355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
40356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40357 if (!SWIG_IsOK(res1)) {
40358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40359 }
40360 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40361 {
40362 arg2 = &temp2;
40363 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40364 }
40365 {
40366 PyThreadState* __tstate = wxPyBeginAllowThreads();
40367 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
40368 wxPyEndAllowThreads(__tstate);
40369 if (PyErr_Occurred()) SWIG_fail;
40370 }
40371 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
40372 return resultobj;
40373 fail:
40374 return NULL;
40375 }
40376
40377
40378 SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40379 PyObject *resultobj = 0;
40380 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40381 wxDC *arg2 = 0 ;
40382 wxPoint *arg3 = 0 ;
40383 bool result;
40384 void *argp1 = 0 ;
40385 int res1 = 0 ;
40386 void *argp2 = 0 ;
40387 int res2 = 0 ;
40388 wxPoint temp3 ;
40389 PyObject * obj0 = 0 ;
40390 PyObject * obj1 = 0 ;
40391 PyObject * obj2 = 0 ;
40392 char * kwnames[] = {
40393 (char *) "self",(char *) "dc",(char *) "pos", NULL
40394 };
40395
40396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40398 if (!SWIG_IsOK(res1)) {
40399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40400 }
40401 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40402 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40403 if (!SWIG_IsOK(res2)) {
40404 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40405 }
40406 if (!argp2) {
40407 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40408 }
40409 arg2 = reinterpret_cast< wxDC * >(argp2);
40410 {
40411 arg3 = &temp3;
40412 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40413 }
40414 {
40415 PyThreadState* __tstate = wxPyBeginAllowThreads();
40416 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
40417 wxPyEndAllowThreads(__tstate);
40418 if (PyErr_Occurred()) SWIG_fail;
40419 }
40420 {
40421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40422 }
40423 return resultobj;
40424 fail:
40425 return NULL;
40426 }
40427
40428
40429 SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40430 PyObject *resultobj = 0;
40431 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40432 wxDC *arg2 = 0 ;
40433 wxMemoryDC *arg3 = 0 ;
40434 wxRect *arg4 = 0 ;
40435 wxRect *arg5 = 0 ;
40436 bool result;
40437 void *argp1 = 0 ;
40438 int res1 = 0 ;
40439 void *argp2 = 0 ;
40440 int res2 = 0 ;
40441 void *argp3 = 0 ;
40442 int res3 = 0 ;
40443 wxRect temp4 ;
40444 wxRect temp5 ;
40445 PyObject * obj0 = 0 ;
40446 PyObject * obj1 = 0 ;
40447 PyObject * obj2 = 0 ;
40448 PyObject * obj3 = 0 ;
40449 PyObject * obj4 = 0 ;
40450 char * kwnames[] = {
40451 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
40452 };
40453
40454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40456 if (!SWIG_IsOK(res1)) {
40457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40458 }
40459 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40460 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40461 if (!SWIG_IsOK(res2)) {
40462 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40463 }
40464 if (!argp2) {
40465 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40466 }
40467 arg2 = reinterpret_cast< wxDC * >(argp2);
40468 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
40469 if (!SWIG_IsOK(res3)) {
40470 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40471 }
40472 if (!argp3) {
40473 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40474 }
40475 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
40476 {
40477 arg4 = &temp4;
40478 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
40479 }
40480 {
40481 arg5 = &temp5;
40482 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
40483 }
40484 {
40485 PyThreadState* __tstate = wxPyBeginAllowThreads();
40486 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
40487 wxPyEndAllowThreads(__tstate);
40488 if (PyErr_Occurred()) SWIG_fail;
40489 }
40490 {
40491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40492 }
40493 return resultobj;
40494 fail:
40495 return NULL;
40496 }
40497
40498
40499 SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40500 PyObject *resultobj = 0;
40501 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40502 wxPoint *arg2 = 0 ;
40503 wxPoint *arg3 = 0 ;
40504 bool arg4 ;
40505 bool arg5 ;
40506 bool result;
40507 void *argp1 = 0 ;
40508 int res1 = 0 ;
40509 wxPoint temp2 ;
40510 wxPoint temp3 ;
40511 bool val4 ;
40512 int ecode4 = 0 ;
40513 bool val5 ;
40514 int ecode5 = 0 ;
40515 PyObject * obj0 = 0 ;
40516 PyObject * obj1 = 0 ;
40517 PyObject * obj2 = 0 ;
40518 PyObject * obj3 = 0 ;
40519 PyObject * obj4 = 0 ;
40520 char * kwnames[] = {
40521 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
40522 };
40523
40524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40526 if (!SWIG_IsOK(res1)) {
40527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40528 }
40529 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40530 {
40531 arg2 = &temp2;
40532 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40533 }
40534 {
40535 arg3 = &temp3;
40536 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40537 }
40538 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40539 if (!SWIG_IsOK(ecode4)) {
40540 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
40541 }
40542 arg4 = static_cast< bool >(val4);
40543 ecode5 = SWIG_AsVal_bool(obj4, &val5);
40544 if (!SWIG_IsOK(ecode5)) {
40545 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
40546 }
40547 arg5 = static_cast< bool >(val5);
40548 {
40549 PyThreadState* __tstate = wxPyBeginAllowThreads();
40550 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
40551 wxPyEndAllowThreads(__tstate);
40552 if (PyErr_Occurred()) SWIG_fail;
40553 }
40554 {
40555 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40556 }
40557 return resultobj;
40558 fail:
40559 return NULL;
40560 }
40561
40562
40563 SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40564 PyObject *obj;
40565 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40566 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
40567 return SWIG_Py_Void();
40568 }
40569
40570 SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40571 return SWIG_Python_InitShadowInstance(args);
40572 }
40573
40574 SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
40575 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
40576 return 1;
40577 }
40578
40579
40580 SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
40581 PyObject *pyobj = 0;
40582
40583 {
40584 #if wxUSE_UNICODE
40585 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40586 #else
40587 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40588 #endif
40589 }
40590 return pyobj;
40591 }
40592
40593
40594 SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40595 PyObject *resultobj = 0;
40596 wxWindow *arg1 = (wxWindow *) 0 ;
40597 int arg2 = (int) -1 ;
40598 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
40599 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
40600 wxPoint const &arg4_defvalue = wxDefaultPosition ;
40601 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
40602 wxSize const &arg5_defvalue = wxDefaultSize ;
40603 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
40604 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40605 wxValidator const &arg7_defvalue = wxDefaultValidator ;
40606 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
40607 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
40608 wxString *arg8 = (wxString *) &arg8_defvalue ;
40609 wxDatePickerCtrl *result = 0 ;
40610 void *argp1 = 0 ;
40611 int res1 = 0 ;
40612 int val2 ;
40613 int ecode2 = 0 ;
40614 void *argp3 = 0 ;
40615 int res3 = 0 ;
40616 wxPoint temp4 ;
40617 wxSize temp5 ;
40618 long val6 ;
40619 int ecode6 = 0 ;
40620 void *argp7 = 0 ;
40621 int res7 = 0 ;
40622 bool temp8 = false ;
40623 PyObject * obj0 = 0 ;
40624 PyObject * obj1 = 0 ;
40625 PyObject * obj2 = 0 ;
40626 PyObject * obj3 = 0 ;
40627 PyObject * obj4 = 0 ;
40628 PyObject * obj5 = 0 ;
40629 PyObject * obj6 = 0 ;
40630 PyObject * obj7 = 0 ;
40631 char * kwnames[] = {
40632 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40633 };
40634
40635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
40636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40637 if (!SWIG_IsOK(res1)) {
40638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
40639 }
40640 arg1 = reinterpret_cast< wxWindow * >(argp1);
40641 if (obj1) {
40642 ecode2 = SWIG_AsVal_int(obj1, &val2);
40643 if (!SWIG_IsOK(ecode2)) {
40644 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
40645 }
40646 arg2 = static_cast< int >(val2);
40647 }
40648 if (obj2) {
40649 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
40650 if (!SWIG_IsOK(res3)) {
40651 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40652 }
40653 if (!argp3) {
40654 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40655 }
40656 arg3 = reinterpret_cast< wxDateTime * >(argp3);
40657 }
40658 if (obj3) {
40659 {
40660 arg4 = &temp4;
40661 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
40662 }
40663 }
40664 if (obj4) {
40665 {
40666 arg5 = &temp5;
40667 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
40668 }
40669 }
40670 if (obj5) {
40671 ecode6 = SWIG_AsVal_long(obj5, &val6);
40672 if (!SWIG_IsOK(ecode6)) {
40673 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
40674 }
40675 arg6 = static_cast< long >(val6);
40676 }
40677 if (obj6) {
40678 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
40679 if (!SWIG_IsOK(res7)) {
40680 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
40681 }
40682 if (!argp7) {
40683 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
40684 }
40685 arg7 = reinterpret_cast< wxValidator * >(argp7);
40686 }
40687 if (obj7) {
40688 {
40689 arg8 = wxString_in_helper(obj7);
40690 if (arg8 == NULL) SWIG_fail;
40691 temp8 = true;
40692 }
40693 }
40694 {
40695 if (!wxPyCheckForApp()) SWIG_fail;
40696 PyThreadState* __tstate = wxPyBeginAllowThreads();
40697 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
40698 wxPyEndAllowThreads(__tstate);
40699 if (PyErr_Occurred()) SWIG_fail;
40700 }
40701 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
40702 {
40703 if (temp8)
40704 delete arg8;
40705 }
40706 return resultobj;
40707 fail:
40708 {
40709 if (temp8)
40710 delete arg8;
40711 }
40712 return NULL;
40713 }
40714
40715
40716 SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40717 PyObject *resultobj = 0;
40718 wxDatePickerCtrl *result = 0 ;
40719
40720 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
40721 {
40722 if (!wxPyCheckForApp()) SWIG_fail;
40723 PyThreadState* __tstate = wxPyBeginAllowThreads();
40724 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
40725 wxPyEndAllowThreads(__tstate);
40726 if (PyErr_Occurred()) SWIG_fail;
40727 }
40728 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
40729 return resultobj;
40730 fail:
40731 return NULL;
40732 }
40733
40734
40735 SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40736 PyObject *resultobj = 0;
40737 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40738 wxWindow *arg2 = (wxWindow *) 0 ;
40739 int arg3 = (int) -1 ;
40740 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
40741 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
40742 wxPoint const &arg5_defvalue = wxDefaultPosition ;
40743 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
40744 wxSize const &arg6_defvalue = wxDefaultSize ;
40745 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
40746 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40747 wxValidator const &arg8_defvalue = wxDefaultValidator ;
40748 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
40749 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
40750 wxString *arg9 = (wxString *) &arg9_defvalue ;
40751 bool result;
40752 void *argp1 = 0 ;
40753 int res1 = 0 ;
40754 void *argp2 = 0 ;
40755 int res2 = 0 ;
40756 int val3 ;
40757 int ecode3 = 0 ;
40758 void *argp4 = 0 ;
40759 int res4 = 0 ;
40760 wxPoint temp5 ;
40761 wxSize temp6 ;
40762 long val7 ;
40763 int ecode7 = 0 ;
40764 void *argp8 = 0 ;
40765 int res8 = 0 ;
40766 bool temp9 = false ;
40767 PyObject * obj0 = 0 ;
40768 PyObject * obj1 = 0 ;
40769 PyObject * obj2 = 0 ;
40770 PyObject * obj3 = 0 ;
40771 PyObject * obj4 = 0 ;
40772 PyObject * obj5 = 0 ;
40773 PyObject * obj6 = 0 ;
40774 PyObject * obj7 = 0 ;
40775 PyObject * obj8 = 0 ;
40776 char * kwnames[] = {
40777 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40778 };
40779
40780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
40781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40782 if (!SWIG_IsOK(res1)) {
40783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40784 }
40785 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40786 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40787 if (!SWIG_IsOK(res2)) {
40788 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
40789 }
40790 arg2 = reinterpret_cast< wxWindow * >(argp2);
40791 if (obj2) {
40792 ecode3 = SWIG_AsVal_int(obj2, &val3);
40793 if (!SWIG_IsOK(ecode3)) {
40794 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
40795 }
40796 arg3 = static_cast< int >(val3);
40797 }
40798 if (obj3) {
40799 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
40800 if (!SWIG_IsOK(res4)) {
40801 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
40802 }
40803 if (!argp4) {
40804 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
40805 }
40806 arg4 = reinterpret_cast< wxDateTime * >(argp4);
40807 }
40808 if (obj4) {
40809 {
40810 arg5 = &temp5;
40811 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
40812 }
40813 }
40814 if (obj5) {
40815 {
40816 arg6 = &temp6;
40817 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
40818 }
40819 }
40820 if (obj6) {
40821 ecode7 = SWIG_AsVal_long(obj6, &val7);
40822 if (!SWIG_IsOK(ecode7)) {
40823 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
40824 }
40825 arg7 = static_cast< long >(val7);
40826 }
40827 if (obj7) {
40828 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
40829 if (!SWIG_IsOK(res8)) {
40830 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
40831 }
40832 if (!argp8) {
40833 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
40834 }
40835 arg8 = reinterpret_cast< wxValidator * >(argp8);
40836 }
40837 if (obj8) {
40838 {
40839 arg9 = wxString_in_helper(obj8);
40840 if (arg9 == NULL) SWIG_fail;
40841 temp9 = true;
40842 }
40843 }
40844 {
40845 PyThreadState* __tstate = wxPyBeginAllowThreads();
40846 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
40847 wxPyEndAllowThreads(__tstate);
40848 if (PyErr_Occurred()) SWIG_fail;
40849 }
40850 {
40851 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40852 }
40853 {
40854 if (temp9)
40855 delete arg9;
40856 }
40857 return resultobj;
40858 fail:
40859 {
40860 if (temp9)
40861 delete arg9;
40862 }
40863 return NULL;
40864 }
40865
40866
40867 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40868 PyObject *resultobj = 0;
40869 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40870 wxDateTime *arg2 = 0 ;
40871 void *argp1 = 0 ;
40872 int res1 = 0 ;
40873 void *argp2 = 0 ;
40874 int res2 = 0 ;
40875 PyObject * obj0 = 0 ;
40876 PyObject * obj1 = 0 ;
40877 char * kwnames[] = {
40878 (char *) "self",(char *) "dt", NULL
40879 };
40880
40881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
40882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40883 if (!SWIG_IsOK(res1)) {
40884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40885 }
40886 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40887 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
40888 if (!SWIG_IsOK(res2)) {
40889 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40890 }
40891 if (!argp2) {
40892 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40893 }
40894 arg2 = reinterpret_cast< wxDateTime * >(argp2);
40895 {
40896 PyThreadState* __tstate = wxPyBeginAllowThreads();
40897 (arg1)->SetValue((wxDateTime const &)*arg2);
40898 wxPyEndAllowThreads(__tstate);
40899 if (PyErr_Occurred()) SWIG_fail;
40900 }
40901 resultobj = SWIG_Py_Void();
40902 return resultobj;
40903 fail:
40904 return NULL;
40905 }
40906
40907
40908 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40909 PyObject *resultobj = 0;
40910 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40911 wxDateTime result;
40912 void *argp1 = 0 ;
40913 int res1 = 0 ;
40914 PyObject *swig_obj[1] ;
40915
40916 if (!args) SWIG_fail;
40917 swig_obj[0] = args;
40918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40919 if (!SWIG_IsOK(res1)) {
40920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
40921 }
40922 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40923 {
40924 PyThreadState* __tstate = wxPyBeginAllowThreads();
40925 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
40926 wxPyEndAllowThreads(__tstate);
40927 if (PyErr_Occurred()) SWIG_fail;
40928 }
40929 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40930 return resultobj;
40931 fail:
40932 return NULL;
40933 }
40934
40935
40936 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40937 PyObject *resultobj = 0;
40938 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40939 wxDateTime *arg2 = 0 ;
40940 wxDateTime *arg3 = 0 ;
40941 void *argp1 = 0 ;
40942 int res1 = 0 ;
40943 void *argp2 = 0 ;
40944 int res2 = 0 ;
40945 void *argp3 = 0 ;
40946 int res3 = 0 ;
40947 PyObject * obj0 = 0 ;
40948 PyObject * obj1 = 0 ;
40949 PyObject * obj2 = 0 ;
40950 char * kwnames[] = {
40951 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
40952 };
40953
40954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40956 if (!SWIG_IsOK(res1)) {
40957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40958 }
40959 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40960 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
40961 if (!SWIG_IsOK(res2)) {
40962 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40963 }
40964 if (!argp2) {
40965 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40966 }
40967 arg2 = reinterpret_cast< wxDateTime * >(argp2);
40968 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
40969 if (!SWIG_IsOK(res3)) {
40970 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40971 }
40972 if (!argp3) {
40973 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40974 }
40975 arg3 = reinterpret_cast< wxDateTime * >(argp3);
40976 {
40977 PyThreadState* __tstate = wxPyBeginAllowThreads();
40978 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
40979 wxPyEndAllowThreads(__tstate);
40980 if (PyErr_Occurred()) SWIG_fail;
40981 }
40982 resultobj = SWIG_Py_Void();
40983 return resultobj;
40984 fail:
40985 return NULL;
40986 }
40987
40988
40989 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40990 PyObject *resultobj = 0;
40991 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40992 wxDateTime result;
40993 void *argp1 = 0 ;
40994 int res1 = 0 ;
40995 PyObject *swig_obj[1] ;
40996
40997 if (!args) SWIG_fail;
40998 swig_obj[0] = args;
40999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41000 if (!SWIG_IsOK(res1)) {
41001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41002 }
41003 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41004 {
41005 PyThreadState* __tstate = wxPyBeginAllowThreads();
41006 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41007 wxPyEndAllowThreads(__tstate);
41008 if (PyErr_Occurred()) SWIG_fail;
41009 }
41010 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41011 return resultobj;
41012 fail:
41013 return NULL;
41014 }
41015
41016
41017 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41018 PyObject *resultobj = 0;
41019 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41020 wxDateTime result;
41021 void *argp1 = 0 ;
41022 int res1 = 0 ;
41023 PyObject *swig_obj[1] ;
41024
41025 if (!args) SWIG_fail;
41026 swig_obj[0] = args;
41027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41028 if (!SWIG_IsOK(res1)) {
41029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41030 }
41031 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41032 {
41033 PyThreadState* __tstate = wxPyBeginAllowThreads();
41034 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41035 wxPyEndAllowThreads(__tstate);
41036 if (PyErr_Occurred()) SWIG_fail;
41037 }
41038 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41039 return resultobj;
41040 fail:
41041 return NULL;
41042 }
41043
41044
41045 SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41046 PyObject *obj;
41047 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41048 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41049 return SWIG_Py_Void();
41050 }
41051
41052 SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41053 return SWIG_Python_InitShadowInstance(args);
41054 }
41055
41056 static PyMethodDef SwigMethods[] = {
41057 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
41058 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
41059 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41060 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
41061 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
41062 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41063 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
41064 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
41065 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
41066 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
41067 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41068 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
41069 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
41070 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
41071 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
41072 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
41073 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
41074 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
41075 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41076 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41077 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
41078 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
41079 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
41080 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
41081 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
41082 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
41083 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
41084 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
41085 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41086 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
41087 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
41088 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41089 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
41090 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
41091 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
41092 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
41093 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41094 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
41095 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
41096 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
41097 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
41098 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41099 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
41100 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41101 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
41102 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
41103 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
41104 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
41105 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41106 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
41107 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41108 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
41109 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
41110 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
41111 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
41112 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
41113 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
41114 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
41115 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
41116 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
41117 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
41118 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41119 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
41120 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
41121 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
41122 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
41123 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
41124 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
41125 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
41126 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
41127 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
41128 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
41129 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
41130 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
41131 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
41132 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41133 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
41134 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
41135 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
41136 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
41137 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41138 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41139 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
41140 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41141 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
41142 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
41143 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41144 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
41145 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
41146 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
41147 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41148 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
41149 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
41150 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
41151 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
41152 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41153 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41154 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
41155 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
41156 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
41157 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
41158 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41159 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
41160 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
41161 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41162 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
41163 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
41164 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
41165 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
41166 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41167 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
41168 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41169 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
41170 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
41171 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41172 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
41173 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41174 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
41175 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41176 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
41177 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41178 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
41179 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
41180 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
41181 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
41182 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41183 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
41184 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
41185 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
41186 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41187 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41188 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
41189 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
41190 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
41191 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41192 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
41193 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
41194 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
41195 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41196 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41197 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
41198 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41199 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41200 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41201 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41202 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41203 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
41204 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
41205 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
41206 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
41207 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41208 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
41209 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
41210 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
41211 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
41212 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
41213 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
41214 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
41215 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
41216 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
41217 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41218 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41219 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
41220 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
41221 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
41222 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
41223 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
41224 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
41225 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
41226 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
41227 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
41228 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
41229 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
41230 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
41231 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
41232 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
41233 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
41234 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
41235 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
41236 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
41237 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
41238 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
41239 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
41240 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
41241 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
41242 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
41243 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
41244 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
41245 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
41246 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41247 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
41248 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41249 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
41250 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41251 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41252 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
41253 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
41254 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
41255 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
41256 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
41257 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
41258 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
41259 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
41260 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
41261 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
41262 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
41263 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
41264 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
41265 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
41266 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
41267 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
41268 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
41269 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
41270 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
41271 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
41272 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
41273 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
41274 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
41275 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
41276 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41277 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
41278 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41279 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41280 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
41281 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
41282 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
41283 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
41284 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
41285 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
41286 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
41287 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
41288 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
41289 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
41290 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
41291 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
41292 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
41293 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
41294 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
41295 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41296 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
41297 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
41298 { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS, NULL},
41299 { (char *)"TextCtrl_HideNativeCaret", (PyCFunction)_wrap_TextCtrl_HideNativeCaret, METH_O, NULL},
41300 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
41301 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
41302 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41303 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
41304 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
41305 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41306 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
41307 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
41308 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
41309 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
41310 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
41311 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
41312 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
41313 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41314 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
41315 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
41316 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
41317 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
41318 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
41319 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41320 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41321 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
41322 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
41323 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
41324 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
41325 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41326 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
41327 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
41328 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
41329 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41330 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
41331 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
41332 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41333 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
41334 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41335 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
41336 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
41337 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41338 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
41339 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41340 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
41341 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41342 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
41343 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41344 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
41345 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
41346 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41347 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41348 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
41349 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
41350 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41351 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
41352 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41353 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
41354 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
41355 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
41356 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
41357 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41358 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41359 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
41360 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
41361 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41362 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
41363 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
41364 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
41365 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
41366 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
41367 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
41368 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
41369 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
41370 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
41371 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
41372 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
41373 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
41374 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
41375 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41376 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
41377 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
41378 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
41379 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
41380 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41381 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
41382 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41383 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41384 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
41385 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
41386 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
41387 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
41388 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41389 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
41390 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41391 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41392 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
41393 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
41394 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
41395 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
41396 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
41397 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
41398 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
41399 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
41400 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
41401 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
41402 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
41403 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
41404 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
41405 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
41406 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
41407 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
41408 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
41409 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41410 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41411 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
41412 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
41413 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
41414 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
41415 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41416 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41417 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
41418 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41419 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
41420 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
41421 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
41422 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
41423 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
41424 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
41425 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
41426 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
41427 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41428 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41429 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
41430 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
41431 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
41432 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
41433 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
41434 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
41435 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
41436 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
41437 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
41438 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
41439 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
41440 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
41441 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
41442 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
41443 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
41444 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
41445 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
41446 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
41447 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41448 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41449 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41450 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
41451 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41452 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
41453 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41454 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
41455 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41456 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
41457 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
41458 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
41459 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
41460 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41461 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
41462 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
41463 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
41464 { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41465 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
41466 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41467 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
41468 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
41469 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41470 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
41471 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
41472 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
41473 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
41474 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41475 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
41476 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
41477 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
41478 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41479 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
41480 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
41481 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
41482 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
41483 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41484 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
41485 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
41486 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
41487 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41488 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
41489 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
41490 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
41491 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
41492 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41493 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
41494 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
41495 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
41496 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
41497 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
41498 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
41499 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
41500 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
41501 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
41502 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41503 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
41504 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
41505 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
41506 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
41507 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41508 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
41509 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
41510 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
41511 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
41512 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41513 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
41514 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
41515 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
41516 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
41517 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
41518 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
41519 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
41520 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
41521 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
41522 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
41523 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
41524 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
41525 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
41526 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
41527 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
41528 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
41529 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
41530 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
41531 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
41532 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
41533 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
41534 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
41535 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41536 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41537 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41538 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41539 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41540 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
41541 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
41542 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
41543 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
41544 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
41545 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
41546 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
41547 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
41548 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
41549 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
41550 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
41551 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
41552 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
41553 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
41554 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
41555 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
41556 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
41557 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
41558 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
41559 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
41560 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
41561 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
41562 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
41563 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
41564 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
41565 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
41566 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
41567 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41568 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41569 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41570 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41571 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
41572 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
41573 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
41574 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
41575 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
41576 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
41577 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
41578 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
41579 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
41580 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
41581 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
41582 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
41583 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
41584 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
41585 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
41586 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41587 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
41588 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
41589 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
41590 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
41591 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
41592 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
41593 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41594 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41595 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
41596 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
41597 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
41598 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
41599 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41600 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41601 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
41602 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
41603 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
41604 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
41605 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
41606 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
41607 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
41608 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
41609 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
41610 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
41611 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
41612 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
41613 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
41614 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
41615 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
41616 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
41617 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
41618 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41619 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
41620 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
41621 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
41622 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
41623 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
41624 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41625 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
41626 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41627 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41628 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
41629 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
41630 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
41631 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
41632 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
41633 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
41634 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
41635 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
41636 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
41637 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
41638 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
41639 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
41640 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
41641 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
41642 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
41643 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
41644 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
41645 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
41646 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
41647 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
41648 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
41649 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
41650 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
41651 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
41652 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
41653 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
41654 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
41655 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
41656 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
41657 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
41658 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
41659 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
41660 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
41661 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
41662 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
41663 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
41664 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
41665 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41666 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
41667 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
41668 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
41669 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
41670 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
41671 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
41672 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
41673 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
41674 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
41675 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
41676 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
41677 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
41678 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
41679 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
41680 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
41681 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
41682 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
41683 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
41684 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
41685 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
41686 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
41687 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
41688 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
41689 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
41690 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
41691 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
41692 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
41693 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41694 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
41695 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41696 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
41697 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41698 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41699 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41700 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41701 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
41702 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
41703 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
41704 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
41705 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
41706 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
41707 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
41708 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
41709 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
41710 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
41711 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41712 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41713 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41714 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41715 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41716 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
41717 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41718 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
41719 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
41720 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
41721 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
41722 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
41723 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41724 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
41725 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
41726 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
41727 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41728 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41729 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41730 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
41731 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
41732 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
41733 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
41734 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
41735 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
41736 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
41737 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41738 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
41739 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
41740 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41741 { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41742 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41743 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
41744 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41745 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
41746 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41747 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
41748 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
41749 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
41750 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
41751 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
41752 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
41753 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
41754 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
41755 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41756 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41757 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41758 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41759 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41760 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41761 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
41762 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
41763 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41764 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
41765 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
41766 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
41767 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
41768 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41769 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
41770 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
41771 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
41772 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41773 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
41774 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41775 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
41776 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
41777 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
41778 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
41779 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
41780 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
41781 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
41782 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
41783 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
41784 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
41785 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
41786 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
41787 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
41788 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41789 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
41790 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
41791 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
41792 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
41793 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
41794 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
41795 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
41796 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
41797 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41798 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
41799 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
41800 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
41801 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
41802 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
41803 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
41804 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
41805 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
41806 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41807 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
41808 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41809 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
41810 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
41811 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
41812 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
41813 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
41814 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
41815 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41816 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
41817 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41818 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
41819 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
41820 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
41821 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
41822 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
41823 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
41824 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
41825 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
41826 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41827 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41828 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41829 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
41830 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41831 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
41832 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41833 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
41834 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41835 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41836 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41837 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
41838 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
41839 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
41840 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
41841 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41842 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
41843 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
41844 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41845 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41846 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41847 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41848 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41849 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
41850 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41851 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
41852 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
41853 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
41854 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
41855 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
41856 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
41857 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
41858 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
41859 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
41860 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
41861 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
41862 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
41863 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41864 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41865 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
41866 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
41867 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
41868 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
41869 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
41870 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
41871 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41872 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
41873 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
41874 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
41875 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
41876 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
41877 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
41878 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
41879 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
41880 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
41881 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41882 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41883 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
41884 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41885 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
41886 { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41887 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
41888 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41889 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
41890 { (char *)"TreeCtrl_SetState", (PyCFunction) _wrap_TreeCtrl_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
41891 { (char *)"TreeCtrl_GetState", (PyCFunction) _wrap_TreeCtrl_GetState, METH_VARARGS | METH_KEYWORDS, NULL},
41892 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41893 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
41894 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
41895 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41896 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
41897 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41898 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
41899 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
41900 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
41901 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
41902 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
41903 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
41904 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
41905 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
41906 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
41907 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
41908 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
41909 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
41910 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
41911 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
41912 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
41913 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
41914 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
41915 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
41916 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
41917 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
41918 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41919 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
41920 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41921 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
41922 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
41923 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
41924 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
41925 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
41926 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
41927 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
41928 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
41929 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
41930 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
41931 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
41932 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
41933 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
41934 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
41935 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
41936 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
41937 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
41938 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
41939 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
41940 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
41941 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
41942 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
41943 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
41944 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
41945 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
41946 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
41947 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
41948 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
41949 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
41950 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
41951 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41952 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
41953 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41954 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
41955 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
41956 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
41957 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
41958 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
41959 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
41960 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
41961 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
41962 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
41963 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41964 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41965 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41966 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
41967 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
41968 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
41969 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
41970 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
41971 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
41972 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
41973 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
41974 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
41975 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
41976 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
41977 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
41978 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
41979 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41980 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
41981 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
41982 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
41983 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
41984 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
41985 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
41986 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
41987 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
41988 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
41989 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
41990 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
41991 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
41992 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
41993 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
41994 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41995 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41996 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
41997 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41998 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
41999 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
42000 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
42001 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
42002 { NULL, NULL, 0, NULL }
42003 };
42004
42005
42006 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
42007
42008 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
42009 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
42010 }
42011 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
42012 return (void *)((wxEvent *) ((wxMenuEvent *) x));
42013 }
42014 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
42015 return (void *)((wxEvent *) ((wxCloseEvent *) x));
42016 }
42017 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
42018 return (void *)((wxEvent *) ((wxMouseEvent *) x));
42019 }
42020 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
42021 return (void *)((wxEvent *) ((wxEraseEvent *) x));
42022 }
42023 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
42024 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
42025 }
42026 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
42027 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
42028 }
42029 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
42030 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
42031 }
42032 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
42033 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
42034 }
42035 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
42036 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
42037 }
42038 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
42039 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
42040 }
42041 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
42042 return (void *)((wxEvent *) ((wxPyEvent *) x));
42043 }
42044 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
42045 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
42046 }
42047 static void *_p_wxListEventTo_p_wxEvent(void *x) {
42048 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
42049 }
42050 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
42051 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42052 }
42053 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
42054 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42055 }
42056 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
42057 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42058 }
42059 static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
42060 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42061 }
42062 static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
42063 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42064 }
42065 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
42066 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
42067 }
42068 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
42069 return (void *)((wxEvent *) ((wxIdleEvent *) x));
42070 }
42071 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
42072 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
42073 }
42074 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
42075 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
42076 }
42077 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
42078 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
42079 }
42080 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
42081 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
42082 }
42083 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
42084 return (void *)((wxEvent *) ((wxActivateEvent *) x));
42085 }
42086 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
42087 return (void *)((wxEvent *) ((wxSizeEvent *) x));
42088 }
42089 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
42090 return (void *)((wxEvent *) ((wxMoveEvent *) x));
42091 }
42092 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
42093 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
42094 }
42095 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
42096 return (void *)((wxEvent *) ((wxPaintEvent *) x));
42097 }
42098 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
42099 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
42100 }
42101 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
42102 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
42103 }
42104 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
42105 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
42106 }
42107 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
42108 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
42109 }
42110 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
42111 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
42112 }
42113 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
42114 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
42115 }
42116 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
42117 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
42118 }
42119 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
42120 return (void *)((wxEvent *) ((wxFocusEvent *) x));
42121 }
42122 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
42123 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
42124 }
42125 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
42126 return (void *)((wxEvent *) ((wxShowEvent *) x));
42127 }
42128 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
42129 return (void *)((wxEvent *) ((wxCommandEvent *) x));
42130 }
42131 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
42132 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
42133 }
42134 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
42135 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42136 }
42137 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
42138 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
42139 }
42140 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
42141 return (void *)((wxEvent *) ((wxKeyEvent *) x));
42142 }
42143 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
42144 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
42145 }
42146 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
42147 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
42148 }
42149 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
42150 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
42151 }
42152 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
42153 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42154 }
42155 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
42156 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
42157 }
42158 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
42159 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
42160 }
42161 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
42162 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
42163 }
42164 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
42165 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42166 }
42167 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
42168 return (void *)((wxPyListCtrl *) ((wxListView *) x));
42169 }
42170 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
42171 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
42172 }
42173 static void *_p_wxToolBarTo_p_wxControl(void *x) {
42174 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
42175 }
42176 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
42177 return (void *)((wxControl *) ((wxToggleButton *) x));
42178 }
42179 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
42180 return (void *)((wxControl *) ((wxRadioButton *) x));
42181 }
42182 static void *_p_wxToolbookTo_p_wxControl(void *x) {
42183 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
42184 }
42185 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
42186 return (void *)((wxControl *) ((wxToolBarBase *) x));
42187 }
42188 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
42189 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42190 }
42191 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
42192 return (void *)((wxControl *) ((wxPyListCtrl *) x));
42193 }
42194 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
42195 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
42196 }
42197 static void *_p_wxPyControlTo_p_wxControl(void *x) {
42198 return (void *)((wxControl *) ((wxPyControl *) x));
42199 }
42200 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
42201 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
42202 }
42203 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
42204 return (void *)((wxControl *) ((wxScrollBar *) x));
42205 }
42206 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
42207 return (void *)((wxControl *) ((wxControlWithItems *) x));
42208 }
42209 static void *_p_wxGaugeTo_p_wxControl(void *x) {
42210 return (void *)((wxControl *) ((wxGauge *) x));
42211 }
42212 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
42213 return (void *)((wxControl *) ((wxStaticLine *) x));
42214 }
42215 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
42216 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
42217 }
42218 static void *_p_wxListbookTo_p_wxControl(void *x) {
42219 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
42220 }
42221 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
42222 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
42223 }
42224 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
42225 return (void *)((wxControl *) ((wxCheckBox *) x));
42226 }
42227 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
42228 return (void *)((wxControl *) ((wxRadioBox *) x));
42229 }
42230 static void *_p_wxChoiceTo_p_wxControl(void *x) {
42231 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
42232 }
42233 static void *_p_wxListBoxTo_p_wxControl(void *x) {
42234 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
42235 }
42236 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
42237 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42238 }
42239 static void *_p_wxListViewTo_p_wxControl(void *x) {
42240 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
42241 }
42242 static void *_p_wxNotebookTo_p_wxControl(void *x) {
42243 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
42244 }
42245 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
42246 return (void *)((wxControl *) ((wxStaticBitmap *) x));
42247 }
42248 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
42249 return (void *)((wxControl *) ((wxSpinCtrl *) x));
42250 }
42251 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
42252 return (void *)((wxControl *) ((wxStaticText *) x));
42253 }
42254 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
42255 return (void *)((wxControl *) ((wxStaticBox *) x));
42256 }
42257 static void *_p_wxSliderTo_p_wxControl(void *x) {
42258 return (void *)((wxControl *) ((wxSlider *) x));
42259 }
42260 static void *_p_wxTreebookTo_p_wxControl(void *x) {
42261 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
42262 }
42263 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
42264 return (void *)((wxControl *) ((wxSpinButton *) x));
42265 }
42266 static void *_p_wxButtonTo_p_wxControl(void *x) {
42267 return (void *)((wxControl *) ((wxButton *) x));
42268 }
42269 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
42270 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
42271 }
42272 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
42273 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42274 }
42275 static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
42276 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
42277 }
42278 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
42279 return (void *)((wxControl *) ((wxTextCtrl *) x));
42280 }
42281 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
42282 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
42283 }
42284 static void *_p_wxComboBoxTo_p_wxChoice(void *x) {
42285 return (void *)((wxChoice *) ((wxComboBox *) x));
42286 }
42287 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
42288 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
42289 }
42290 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
42291 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
42292 }
42293 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
42294 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
42295 }
42296 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
42297 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
42298 }
42299 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
42300 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
42301 }
42302 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
42303 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42304 }
42305 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
42306 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42307 }
42308 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
42309 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42310 }
42311 static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
42312 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42313 }
42314 static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
42315 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42316 }
42317 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
42318 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
42319 }
42320 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
42321 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
42322 }
42323 static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
42324 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
42325 }
42326 static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
42327 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
42328 }
42329 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
42330 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
42331 }
42332 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
42333 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
42334 }
42335 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
42336 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
42337 }
42338 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
42339 return (void *)((wxEvtHandler *) ((wxValidator *) x));
42340 }
42341 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
42342 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
42343 }
42344 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
42345 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
42346 }
42347 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
42348 return (void *)((wxEvtHandler *) ((wxMenu *) x));
42349 }
42350 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
42351 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
42352 }
42353 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
42354 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
42355 }
42356 static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
42357 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
42358 }
42359 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
42360 return (void *)((wxEvtHandler *) ((wxWindow *) x));
42361 }
42362 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
42363 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
42364 }
42365 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
42366 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
42367 }
42368 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
42369 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
42370 }
42371 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
42372 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
42373 }
42374 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
42375 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42376 }
42377 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
42378 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
42379 }
42380 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
42381 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
42382 }
42383 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
42384 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
42385 }
42386 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
42387 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
42388 }
42389 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
42390 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
42391 }
42392 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
42393 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
42394 }
42395 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
42396 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
42397 }
42398 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
42399 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
42400 }
42401 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
42402 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
42403 }
42404 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
42405 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
42406 }
42407 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
42408 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
42409 }
42410 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
42411 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
42412 }
42413 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
42414 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42415 }
42416 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
42417 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
42418 }
42419 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
42420 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
42421 }
42422 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
42423 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
42424 }
42425 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
42426 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
42427 }
42428 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
42429 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
42430 }
42431 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
42432 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
42433 }
42434 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
42435 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
42436 }
42437 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
42438 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
42439 }
42440 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
42441 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
42442 }
42443 static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
42444 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
42445 }
42446 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
42447 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
42448 }
42449 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
42450 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
42451 }
42452 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
42453 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
42454 }
42455 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
42456 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42457 }
42458 static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
42459 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
42460 }
42461 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
42462 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
42463 }
42464 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
42465 return (void *)((wxListBox *) ((wxCheckListBox *) x));
42466 }
42467 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
42468 return (void *)((wxButton *) ((wxBitmapButton *) x));
42469 }
42470 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
42471 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
42472 }
42473 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
42474 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
42475 }
42476 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
42477 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
42478 }
42479 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
42480 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
42481 }
42482 static void *_p_wxToolbookTo_p_wxObject(void *x) {
42483 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
42484 }
42485 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
42486 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
42487 }
42488 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
42489 return (void *)((wxObject *) ((wxSizerItem *) x));
42490 }
42491 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
42492 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
42493 }
42494 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
42495 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
42496 }
42497 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
42498 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
42499 }
42500 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
42501 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
42502 }
42503 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
42504 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
42505 }
42506 static void *_p_wxSizerTo_p_wxObject(void *x) {
42507 return (void *)((wxObject *) ((wxSizer *) x));
42508 }
42509 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
42510 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
42511 }
42512 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
42513 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
42514 }
42515 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
42516 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
42517 }
42518 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
42519 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
42520 }
42521 static void *_p_wxEventTo_p_wxObject(void *x) {
42522 return (void *)((wxObject *) ((wxEvent *) x));
42523 }
42524 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
42525 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
42526 }
42527 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
42528 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
42529 }
42530 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
42531 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
42532 }
42533 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
42534 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
42535 }
42536 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
42537 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
42538 }
42539 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
42540 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42541 }
42542 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
42543 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
42544 }
42545 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
42546 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
42547 }
42548 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
42549 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
42550 }
42551 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
42552 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
42553 }
42554 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
42555 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
42556 }
42557 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
42558 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
42559 }
42560 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
42561 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
42562 }
42563 static void *_p_wxControlTo_p_wxObject(void *x) {
42564 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
42565 }
42566 static void *_p_wxPyControlTo_p_wxObject(void *x) {
42567 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
42568 }
42569 static void *_p_wxGaugeTo_p_wxObject(void *x) {
42570 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
42571 }
42572 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
42573 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
42574 }
42575 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
42576 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
42577 }
42578 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
42579 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
42580 }
42581 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
42582 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
42583 }
42584 static void *_p_wxChoiceTo_p_wxObject(void *x) {
42585 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
42586 }
42587 static void *_p_wxFSFileTo_p_wxObject(void *x) {
42588 return (void *)((wxObject *) ((wxFSFile *) x));
42589 }
42590 static void *_p_wxPySizerTo_p_wxObject(void *x) {
42591 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
42592 }
42593 static void *_p_wxTreebookTo_p_wxObject(void *x) {
42594 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
42595 }
42596 static void *_p_wxListViewTo_p_wxObject(void *x) {
42597 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
42598 }
42599 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
42600 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
42601 }
42602 static void *_p_wxNotebookTo_p_wxObject(void *x) {
42603 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
42604 }
42605 static void *_p_wxPyEventTo_p_wxObject(void *x) {
42606 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
42607 }
42608 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
42609 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
42610 }
42611 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
42612 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
42613 }
42614 static void *_p_wxListbookTo_p_wxObject(void *x) {
42615 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
42616 }
42617 static void *_p_wxShowEventTo_p_wxObject(void *x) {
42618 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
42619 }
42620 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
42621 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
42622 }
42623 static void *_p_wxSliderTo_p_wxObject(void *x) {
42624 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
42625 }
42626 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
42627 return (void *)((wxObject *) ((wxMenuItem *) x));
42628 }
42629 static void *_p_wxDateEventTo_p_wxObject(void *x) {
42630 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
42631 }
42632 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
42633 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
42634 }
42635 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
42636 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
42637 }
42638 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
42639 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
42640 }
42641 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
42642 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
42643 }
42644 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
42645 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
42646 }
42647 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
42648 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
42649 }
42650 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
42651 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
42652 }
42653 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
42654 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
42655 }
42656 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
42657 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
42658 }
42659 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
42660 return (void *)((wxObject *) ((wxContextHelp *) x));
42661 }
42662 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
42663 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
42664 }
42665 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
42666 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
42667 }
42668 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
42669 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
42670 }
42671 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
42672 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
42673 }
42674 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
42675 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
42676 }
42677 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
42678 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
42679 }
42680 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
42681 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
42682 }
42683 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
42684 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
42685 }
42686 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
42687 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
42688 }
42689 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
42690 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
42691 }
42692 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
42693 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
42694 }
42695 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
42696 return (void *)((wxObject *) ((wxImageHandler *) x));
42697 }
42698 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
42699 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
42700 }
42701 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
42702 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
42703 }
42704 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
42705 return (void *)((wxObject *) ((wxEvtHandler *) x));
42706 }
42707 static void *_p_wxListEventTo_p_wxObject(void *x) {
42708 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
42709 }
42710 static void *_p_wxListBoxTo_p_wxObject(void *x) {
42711 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
42712 }
42713 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
42714 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42715 }
42716 static void *_p_wxButtonTo_p_wxObject(void *x) {
42717 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
42718 }
42719 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
42720 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
42721 }
42722 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
42723 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
42724 }
42725 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
42726 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42727 }
42728 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
42729 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
42730 }
42731 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
42732 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
42733 }
42734 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
42735 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
42736 }
42737 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
42738 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
42739 }
42740 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
42741 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
42742 }
42743 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
42744 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
42745 }
42746 static void *_p_wxListItemTo_p_wxObject(void *x) {
42747 return (void *)((wxObject *) ((wxListItem *) x));
42748 }
42749 static void *_p_wxImageTo_p_wxObject(void *x) {
42750 return (void *)((wxObject *) ((wxImage *) x));
42751 }
42752 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
42753 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
42754 }
42755 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
42756 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
42757 }
42758 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
42759 return (void *)((wxObject *) ((wxGenericDragImage *) x));
42760 }
42761 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
42762 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
42763 }
42764 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
42765 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42766 }
42767 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
42768 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42769 }
42770 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
42771 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42772 }
42773 static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
42774 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42775 }
42776 static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
42777 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42778 }
42779 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
42780 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42781 }
42782 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
42783 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
42784 }
42785 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
42786 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
42787 }
42788 static void *_p_wxWindowTo_p_wxObject(void *x) {
42789 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
42790 }
42791 static void *_p_wxMenuTo_p_wxObject(void *x) {
42792 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
42793 }
42794 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
42795 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
42796 }
42797 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
42798 return (void *)((wxObject *) ((wxFileSystem *) x));
42799 }
42800 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
42801 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
42802 }
42803 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
42804 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
42805 }
42806 static void *_p_wxPyAppTo_p_wxObject(void *x) {
42807 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
42808 }
42809 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
42810 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
42811 }
42812 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
42813 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
42814 }
42815 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
42816 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
42817 }
42818 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
42819 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
42820 }
42821 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
42822 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
42823 }
42824 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
42825 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
42826 }
42827 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
42828 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
42829 }
42830 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
42831 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
42832 }
42833 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
42834 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
42835 }
42836 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
42837 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
42838 }
42839 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
42840 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
42841 }
42842 static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
42843 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
42844 }
42845 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
42846 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
42847 }
42848 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
42849 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
42850 }
42851 static void *_p_wxToolBarTo_p_wxObject(void *x) {
42852 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
42853 }
42854 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
42855 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
42856 }
42857 static void *_p_wxValidatorTo_p_wxObject(void *x) {
42858 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
42859 }
42860 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
42861 return (void *)((wxWindow *) ((wxMenuBar *) x));
42862 }
42863 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
42864 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
42865 }
42866 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
42867 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
42868 }
42869 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
42870 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
42871 }
42872 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
42873 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
42874 }
42875 static void *_p_wxToolbookTo_p_wxWindow(void *x) {
42876 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
42877 }
42878 static void *_p_wxControlTo_p_wxWindow(void *x) {
42879 return (void *)((wxWindow *) ((wxControl *) x));
42880 }
42881 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
42882 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
42883 }
42884 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
42885 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
42886 }
42887 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
42888 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
42889 }
42890 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
42891 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42892 }
42893 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
42894 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
42895 }
42896 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
42897 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
42898 }
42899 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
42900 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
42901 }
42902 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
42903 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
42904 }
42905 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
42906 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
42907 }
42908 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
42909 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
42910 }
42911 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
42912 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
42913 }
42914 static void *_p_wxListbookTo_p_wxWindow(void *x) {
42915 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
42916 }
42917 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
42918 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
42919 }
42920 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
42921 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
42922 }
42923 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
42924 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
42925 }
42926 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
42927 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42928 }
42929 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
42930 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
42931 }
42932 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
42933 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
42934 }
42935 static void *_p_wxListViewTo_p_wxWindow(void *x) {
42936 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
42937 }
42938 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
42939 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
42940 }
42941 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
42942 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
42943 }
42944 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
42945 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
42946 }
42947 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
42948 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
42949 }
42950 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
42951 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
42952 }
42953 static void *_p_wxSliderTo_p_wxWindow(void *x) {
42954 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
42955 }
42956 static void *_p_wxTreebookTo_p_wxWindow(void *x) {
42957 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
42958 }
42959 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
42960 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
42961 }
42962 static void *_p_wxButtonTo_p_wxWindow(void *x) {
42963 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
42964 }
42965 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
42966 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
42967 }
42968 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
42969 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
42970 }
42971 static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
42972 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
42973 }
42974 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
42975 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
42976 }
42977 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42978 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42979 }
42980 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42981 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42982 }
42983 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42984 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42985 }
42986 static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42987 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42988 }
42989 static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
42990 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42991 }
42992 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
42993 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42994 }
42995 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
42996 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
42997 }
42998 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
42999 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
43000 }
43001 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
43002 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
43003 }
43004 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
43005 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
43006 }
43007 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
43008 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
43009 }
43010 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
43011 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
43012 }
43013 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
43014 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
43015 }
43016 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
43017 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
43018 }
43019 static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
43020 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
43021 }
43022 static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
43023 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
43024 }
43025 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
43026 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
43027 }
43028 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
43029 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
43030 }
43031 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
43032 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
43033 }
43034 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
43035 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
43036 }
43037 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
43038 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
43039 }
43040 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
43041 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
43042 }
43043 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
43044 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
43045 }
43046 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
43047 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
43048 }
43049 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
43050 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
43051 }
43052 static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) {
43053 return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x));
43054 }
43055 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
43056 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
43057 }
43058 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
43059 return (void *)((wxControlWithItems *) ((wxChoice *) x));
43060 }
43061 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
43062 return (void *)((wxControlWithItems *) ((wxListBox *) x));
43063 }
43064 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
43065 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
43066 }
43067 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
43068 return (void *)((wxValidator *) ((wxPyValidator *) x));
43069 }
43070 static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
43071 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
43072 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};
43073 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
43074 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
43075 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
43076 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
43077 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
43078 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
43079 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
43080 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
43081 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
43082 static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
43083 static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
43084 static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
43085 static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
43086 static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
43087 static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
43088 static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
43089 static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
43090 static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
43091 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
43092 static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
43093 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
43094 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
43095 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
43096 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
43097 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
43098 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
43099 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
43100 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
43101 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
43102 static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
43103 static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
43104 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
43105 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
43106 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
43107 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
43108 static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
43109 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
43110 static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
43111 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
43112 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
43113 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
43114 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
43115 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
43116 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
43117 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
43118 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
43119 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
43120 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
43121 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
43122 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
43123 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
43124 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
43125 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
43126 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
43127 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
43128 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
43129 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
43130 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
43131 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
43132 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
43133 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
43134 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
43135 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
43136 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
43137 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
43138 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
43139 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
43140 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
43141 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
43142 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
43143 static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
43144 static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
43145 static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
43146 static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
43147 static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
43148 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
43149 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
43150 static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
43151 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
43152 static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
43153 static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
43154 static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
43155 static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
43156 static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
43157 static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
43158 static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
43159 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
43160 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
43161 static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
43162 static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
43163 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
43164 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
43165 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
43166 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
43167 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
43168 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
43169 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
43170 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
43171 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
43172 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
43173 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
43174 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
43175 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
43176 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
43177 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
43178 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
43179 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
43180 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
43181 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
43182 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
43183 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
43184 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
43185 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
43186 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
43187 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
43188 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
43189 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
43190 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
43191 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
43192 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
43193 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
43194 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
43195 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
43196 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
43197 static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
43198 static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
43199 static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
43200 static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
43201 static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
43202 static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
43203 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
43204 static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
43205 static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
43206 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
43207 static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
43208 static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
43209 static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
43210 static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
43211 static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
43212 static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
43213 static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
43214 static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
43215 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
43216 static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
43217 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
43218 static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
43219 static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
43220 static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
43221 static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
43222 static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
43223 static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
43224 static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
43225 static swig_type_info _swigt__p_wxTreeCtrl = {"_p_wxTreeCtrl", "wxTreeCtrl *", 0, 0, (void*)0, 0};
43226 static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
43227 static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
43228 static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
43229 static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
43230 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
43231 static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
43232 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
43233
43234 static swig_type_info *swig_type_initial[] = {
43235 &_swigt__p_bool,
43236 &_swigt__p_char,
43237 &_swigt__p_form_ops_t,
43238 &_swigt__p_int,
43239 &_swigt__p_long,
43240 &_swigt__p_unsigned_char,
43241 &_swigt__p_unsigned_int,
43242 &_swigt__p_unsigned_long,
43243 &_swigt__p_void,
43244 &_swigt__p_wxANIHandler,
43245 &_swigt__p_wxAcceleratorTable,
43246 &_swigt__p_wxActivateEvent,
43247 &_swigt__p_wxArrayInt,
43248 &_swigt__p_wxArrayString,
43249 &_swigt__p_wxBMPHandler,
43250 &_swigt__p_wxBitmap,
43251 &_swigt__p_wxBitmapButton,
43252 &_swigt__p_wxBookCtrlBase,
43253 &_swigt__p_wxBookCtrlBaseEvent,
43254 &_swigt__p_wxBoxSizer,
43255 &_swigt__p_wxButton,
43256 &_swigt__p_wxCURHandler,
43257 &_swigt__p_wxCheckBox,
43258 &_swigt__p_wxCheckListBox,
43259 &_swigt__p_wxChildFocusEvent,
43260 &_swigt__p_wxChoice,
43261 &_swigt__p_wxChoicebook,
43262 &_swigt__p_wxChoicebookEvent,
43263 &_swigt__p_wxCloseEvent,
43264 &_swigt__p_wxColour,
43265 &_swigt__p_wxComboBox,
43266 &_swigt__p_wxCommandEvent,
43267 &_swigt__p_wxContextHelp,
43268 &_swigt__p_wxContextHelpButton,
43269 &_swigt__p_wxContextMenuEvent,
43270 &_swigt__p_wxControl,
43271 &_swigt__p_wxControlWithItems,
43272 &_swigt__p_wxCursor,
43273 &_swigt__p_wxDC,
43274 &_swigt__p_wxDateEvent,
43275 &_swigt__p_wxDatePickerCtrl,
43276 &_swigt__p_wxDateTime,
43277 &_swigt__p_wxDirFilterListCtrl,
43278 &_swigt__p_wxDisplayChangedEvent,
43279 &_swigt__p_wxDropFilesEvent,
43280 &_swigt__p_wxDuplexMode,
43281 &_swigt__p_wxEraseEvent,
43282 &_swigt__p_wxEvent,
43283 &_swigt__p_wxEvtHandler,
43284 &_swigt__p_wxFSFile,
43285 &_swigt__p_wxFileSystem,
43286 &_swigt__p_wxFlexGridSizer,
43287 &_swigt__p_wxFocusEvent,
43288 &_swigt__p_wxFont,
43289 &_swigt__p_wxGBSizerItem,
43290 &_swigt__p_wxGIFHandler,
43291 &_swigt__p_wxGauge,
43292 &_swigt__p_wxGenericDirCtrl,
43293 &_swigt__p_wxGenericDragImage,
43294 &_swigt__p_wxGridBagSizer,
43295 &_swigt__p_wxGridSizer,
43296 &_swigt__p_wxHelpEvent,
43297 &_swigt__p_wxHelpProvider,
43298 &_swigt__p_wxICOHandler,
43299 &_swigt__p_wxIcon,
43300 &_swigt__p_wxIconizeEvent,
43301 &_swigt__p_wxIdleEvent,
43302 &_swigt__p_wxImage,
43303 &_swigt__p_wxImageHandler,
43304 &_swigt__p_wxImageList,
43305 &_swigt__p_wxIndividualLayoutConstraint,
43306 &_swigt__p_wxInitDialogEvent,
43307 &_swigt__p_wxItemContainer,
43308 &_swigt__p_wxJPEGHandler,
43309 &_swigt__p_wxKeyEvent,
43310 &_swigt__p_wxLayoutConstraints,
43311 &_swigt__p_wxListBox,
43312 &_swigt__p_wxListEvent,
43313 &_swigt__p_wxListItem,
43314 &_swigt__p_wxListItemAttr,
43315 &_swigt__p_wxListView,
43316 &_swigt__p_wxListbook,
43317 &_swigt__p_wxListbookEvent,
43318 &_swigt__p_wxMaximizeEvent,
43319 &_swigt__p_wxMemoryDC,
43320 &_swigt__p_wxMenu,
43321 &_swigt__p_wxMenuBar,
43322 &_swigt__p_wxMenuEvent,
43323 &_swigt__p_wxMenuItem,
43324 &_swigt__p_wxMouseCaptureChangedEvent,
43325 &_swigt__p_wxMouseEvent,
43326 &_swigt__p_wxMoveEvent,
43327 &_swigt__p_wxNavigationKeyEvent,
43328 &_swigt__p_wxNcPaintEvent,
43329 &_swigt__p_wxNotebook,
43330 &_swigt__p_wxNotebookEvent,
43331 &_swigt__p_wxNotifyEvent,
43332 &_swigt__p_wxObject,
43333 &_swigt__p_wxPCXHandler,
43334 &_swigt__p_wxPNGHandler,
43335 &_swigt__p_wxPNMHandler,
43336 &_swigt__p_wxPaintEvent,
43337 &_swigt__p_wxPaletteChangedEvent,
43338 &_swigt__p_wxPaperSize,
43339 &_swigt__p_wxPoint,
43340 &_swigt__p_wxPyApp,
43341 &_swigt__p_wxPyCommandEvent,
43342 &_swigt__p_wxPyControl,
43343 &_swigt__p_wxPyEvent,
43344 &_swigt__p_wxPyImageHandler,
43345 &_swigt__p_wxPyListCtrl,
43346 &_swigt__p_wxPySizer,
43347 &_swigt__p_wxPyTreeCtrl,
43348 &_swigt__p_wxPyTreeItemData,
43349 &_swigt__p_wxPyValidator,
43350 &_swigt__p_wxQueryNewPaletteEvent,
43351 &_swigt__p_wxRadioBox,
43352 &_swigt__p_wxRadioButton,
43353 &_swigt__p_wxRect,
43354 &_swigt__p_wxScrollBar,
43355 &_swigt__p_wxScrollEvent,
43356 &_swigt__p_wxScrollWinEvent,
43357 &_swigt__p_wxSetCursorEvent,
43358 &_swigt__p_wxShowEvent,
43359 &_swigt__p_wxSimpleHelpProvider,
43360 &_swigt__p_wxSize,
43361 &_swigt__p_wxSizeEvent,
43362 &_swigt__p_wxSizer,
43363 &_swigt__p_wxSizerItem,
43364 &_swigt__p_wxSlider,
43365 &_swigt__p_wxSpinButton,
43366 &_swigt__p_wxSpinCtrl,
43367 &_swigt__p_wxSpinEvent,
43368 &_swigt__p_wxStaticBitmap,
43369 &_swigt__p_wxStaticBox,
43370 &_swigt__p_wxStaticBoxSizer,
43371 &_swigt__p_wxStaticLine,
43372 &_swigt__p_wxStaticText,
43373 &_swigt__p_wxStdDialogButtonSizer,
43374 &_swigt__p_wxString,
43375 &_swigt__p_wxSysColourChangedEvent,
43376 &_swigt__p_wxTIFFHandler,
43377 &_swigt__p_wxTextAttr,
43378 &_swigt__p_wxTextCtrl,
43379 &_swigt__p_wxTextUrlEvent,
43380 &_swigt__p_wxToggleButton,
43381 &_swigt__p_wxToolBar,
43382 &_swigt__p_wxToolBarBase,
43383 &_swigt__p_wxToolBarToolBase,
43384 &_swigt__p_wxToolbook,
43385 &_swigt__p_wxToolbookEvent,
43386 &_swigt__p_wxTreeCtrl,
43387 &_swigt__p_wxTreeEvent,
43388 &_swigt__p_wxTreeItemId,
43389 &_swigt__p_wxTreebook,
43390 &_swigt__p_wxTreebookEvent,
43391 &_swigt__p_wxUpdateUIEvent,
43392 &_swigt__p_wxValidator,
43393 &_swigt__p_wxVisualAttributes,
43394 &_swigt__p_wxWindow,
43395 &_swigt__p_wxWindowCreateEvent,
43396 &_swigt__p_wxWindowDestroyEvent,
43397 &_swigt__p_wxXPMHandler,
43398 };
43399
43400 static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
43401 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
43402 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
43403 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
43404 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
43405 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
43406 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
43407 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
43408 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
43409 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
43410 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
43411 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
43412 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}};
43413 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}};
43414 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}};
43415 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}};
43416 static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
43417 static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
43418 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}};
43419 static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
43420 static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
43421 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
43422 static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
43423 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
43424 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
43425 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
43426 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
43427 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
43428 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
43429 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
43430 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
43431 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}};
43432 static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
43433 static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
43434 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}};
43435 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}};
43436 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
43437 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
43438 static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
43439 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
43440 static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
43441 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
43442 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
43443 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
43444 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
43445 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
43446 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
43447 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
43448 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
43449 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
43450 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
43451 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
43452 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
43453 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
43454 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
43455 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
43456 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
43457 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43458 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43459 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43460 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
43461 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
43462 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
43463 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
43464 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
43465 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
43466 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}};
43467 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
43468 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
43469 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
43470 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
43471 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}};
43472 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
43473 static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
43474 static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
43475 static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
43476 static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
43477 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}};
43478 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
43479 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
43480 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}};
43481 static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
43482 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}};
43483 static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
43484 static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
43485 static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
43486 static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
43487 static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
43488 static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
43489 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
43490 static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
43491 static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
43492 static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
43493 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}};
43494 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
43495 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
43496 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
43497 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
43498 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
43499 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
43500 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
43501 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
43502 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
43503 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
43504 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
43505 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
43506 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
43507 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
43508 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
43509 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
43510 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
43511 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
43512 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
43513 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
43514 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
43515 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
43516 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
43517 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
43518 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
43519 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
43520 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
43521 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
43522 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
43523 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
43524 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}};
43525 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
43526 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
43527 static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
43528 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}};
43529 static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
43530 static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
43531 static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
43532 static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
43533 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
43534 static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
43535 static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
43536 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
43537 static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
43538 static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
43539 static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
43540 static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
43541 static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
43542 static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
43543 static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
43544 static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
43545 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
43546 static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
43547 static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
43548 static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
43549 static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
43550 static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
43551 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}};
43552 static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
43553 static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
43554 static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
43555 static swig_cast_info _swigc__p_wxTreeCtrl[] = { {&_swigt__p_wxTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
43556 static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
43557 static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
43558 static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
43559 static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
43560 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}};
43561 static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
43562 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}};
43563
43564 static swig_cast_info *swig_cast_initial[] = {
43565 _swigc__p_bool,
43566 _swigc__p_char,
43567 _swigc__p_form_ops_t,
43568 _swigc__p_int,
43569 _swigc__p_long,
43570 _swigc__p_unsigned_char,
43571 _swigc__p_unsigned_int,
43572 _swigc__p_unsigned_long,
43573 _swigc__p_void,
43574 _swigc__p_wxANIHandler,
43575 _swigc__p_wxAcceleratorTable,
43576 _swigc__p_wxActivateEvent,
43577 _swigc__p_wxArrayInt,
43578 _swigc__p_wxArrayString,
43579 _swigc__p_wxBMPHandler,
43580 _swigc__p_wxBitmap,
43581 _swigc__p_wxBitmapButton,
43582 _swigc__p_wxBookCtrlBase,
43583 _swigc__p_wxBookCtrlBaseEvent,
43584 _swigc__p_wxBoxSizer,
43585 _swigc__p_wxButton,
43586 _swigc__p_wxCURHandler,
43587 _swigc__p_wxCheckBox,
43588 _swigc__p_wxCheckListBox,
43589 _swigc__p_wxChildFocusEvent,
43590 _swigc__p_wxChoice,
43591 _swigc__p_wxChoicebook,
43592 _swigc__p_wxChoicebookEvent,
43593 _swigc__p_wxCloseEvent,
43594 _swigc__p_wxColour,
43595 _swigc__p_wxComboBox,
43596 _swigc__p_wxCommandEvent,
43597 _swigc__p_wxContextHelp,
43598 _swigc__p_wxContextHelpButton,
43599 _swigc__p_wxContextMenuEvent,
43600 _swigc__p_wxControl,
43601 _swigc__p_wxControlWithItems,
43602 _swigc__p_wxCursor,
43603 _swigc__p_wxDC,
43604 _swigc__p_wxDateEvent,
43605 _swigc__p_wxDatePickerCtrl,
43606 _swigc__p_wxDateTime,
43607 _swigc__p_wxDirFilterListCtrl,
43608 _swigc__p_wxDisplayChangedEvent,
43609 _swigc__p_wxDropFilesEvent,
43610 _swigc__p_wxDuplexMode,
43611 _swigc__p_wxEraseEvent,
43612 _swigc__p_wxEvent,
43613 _swigc__p_wxEvtHandler,
43614 _swigc__p_wxFSFile,
43615 _swigc__p_wxFileSystem,
43616 _swigc__p_wxFlexGridSizer,
43617 _swigc__p_wxFocusEvent,
43618 _swigc__p_wxFont,
43619 _swigc__p_wxGBSizerItem,
43620 _swigc__p_wxGIFHandler,
43621 _swigc__p_wxGauge,
43622 _swigc__p_wxGenericDirCtrl,
43623 _swigc__p_wxGenericDragImage,
43624 _swigc__p_wxGridBagSizer,
43625 _swigc__p_wxGridSizer,
43626 _swigc__p_wxHelpEvent,
43627 _swigc__p_wxHelpProvider,
43628 _swigc__p_wxICOHandler,
43629 _swigc__p_wxIcon,
43630 _swigc__p_wxIconizeEvent,
43631 _swigc__p_wxIdleEvent,
43632 _swigc__p_wxImage,
43633 _swigc__p_wxImageHandler,
43634 _swigc__p_wxImageList,
43635 _swigc__p_wxIndividualLayoutConstraint,
43636 _swigc__p_wxInitDialogEvent,
43637 _swigc__p_wxItemContainer,
43638 _swigc__p_wxJPEGHandler,
43639 _swigc__p_wxKeyEvent,
43640 _swigc__p_wxLayoutConstraints,
43641 _swigc__p_wxListBox,
43642 _swigc__p_wxListEvent,
43643 _swigc__p_wxListItem,
43644 _swigc__p_wxListItemAttr,
43645 _swigc__p_wxListView,
43646 _swigc__p_wxListbook,
43647 _swigc__p_wxListbookEvent,
43648 _swigc__p_wxMaximizeEvent,
43649 _swigc__p_wxMemoryDC,
43650 _swigc__p_wxMenu,
43651 _swigc__p_wxMenuBar,
43652 _swigc__p_wxMenuEvent,
43653 _swigc__p_wxMenuItem,
43654 _swigc__p_wxMouseCaptureChangedEvent,
43655 _swigc__p_wxMouseEvent,
43656 _swigc__p_wxMoveEvent,
43657 _swigc__p_wxNavigationKeyEvent,
43658 _swigc__p_wxNcPaintEvent,
43659 _swigc__p_wxNotebook,
43660 _swigc__p_wxNotebookEvent,
43661 _swigc__p_wxNotifyEvent,
43662 _swigc__p_wxObject,
43663 _swigc__p_wxPCXHandler,
43664 _swigc__p_wxPNGHandler,
43665 _swigc__p_wxPNMHandler,
43666 _swigc__p_wxPaintEvent,
43667 _swigc__p_wxPaletteChangedEvent,
43668 _swigc__p_wxPaperSize,
43669 _swigc__p_wxPoint,
43670 _swigc__p_wxPyApp,
43671 _swigc__p_wxPyCommandEvent,
43672 _swigc__p_wxPyControl,
43673 _swigc__p_wxPyEvent,
43674 _swigc__p_wxPyImageHandler,
43675 _swigc__p_wxPyListCtrl,
43676 _swigc__p_wxPySizer,
43677 _swigc__p_wxPyTreeCtrl,
43678 _swigc__p_wxPyTreeItemData,
43679 _swigc__p_wxPyValidator,
43680 _swigc__p_wxQueryNewPaletteEvent,
43681 _swigc__p_wxRadioBox,
43682 _swigc__p_wxRadioButton,
43683 _swigc__p_wxRect,
43684 _swigc__p_wxScrollBar,
43685 _swigc__p_wxScrollEvent,
43686 _swigc__p_wxScrollWinEvent,
43687 _swigc__p_wxSetCursorEvent,
43688 _swigc__p_wxShowEvent,
43689 _swigc__p_wxSimpleHelpProvider,
43690 _swigc__p_wxSize,
43691 _swigc__p_wxSizeEvent,
43692 _swigc__p_wxSizer,
43693 _swigc__p_wxSizerItem,
43694 _swigc__p_wxSlider,
43695 _swigc__p_wxSpinButton,
43696 _swigc__p_wxSpinCtrl,
43697 _swigc__p_wxSpinEvent,
43698 _swigc__p_wxStaticBitmap,
43699 _swigc__p_wxStaticBox,
43700 _swigc__p_wxStaticBoxSizer,
43701 _swigc__p_wxStaticLine,
43702 _swigc__p_wxStaticText,
43703 _swigc__p_wxStdDialogButtonSizer,
43704 _swigc__p_wxString,
43705 _swigc__p_wxSysColourChangedEvent,
43706 _swigc__p_wxTIFFHandler,
43707 _swigc__p_wxTextAttr,
43708 _swigc__p_wxTextCtrl,
43709 _swigc__p_wxTextUrlEvent,
43710 _swigc__p_wxToggleButton,
43711 _swigc__p_wxToolBar,
43712 _swigc__p_wxToolBarBase,
43713 _swigc__p_wxToolBarToolBase,
43714 _swigc__p_wxToolbook,
43715 _swigc__p_wxToolbookEvent,
43716 _swigc__p_wxTreeCtrl,
43717 _swigc__p_wxTreeEvent,
43718 _swigc__p_wxTreeItemId,
43719 _swigc__p_wxTreebook,
43720 _swigc__p_wxTreebookEvent,
43721 _swigc__p_wxUpdateUIEvent,
43722 _swigc__p_wxValidator,
43723 _swigc__p_wxVisualAttributes,
43724 _swigc__p_wxWindow,
43725 _swigc__p_wxWindowCreateEvent,
43726 _swigc__p_wxWindowDestroyEvent,
43727 _swigc__p_wxXPMHandler,
43728 };
43729
43730
43731 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
43732
43733 static swig_const_info swig_const_table[] = {
43734 {0, 0, 0, 0.0, 0, 0}};
43735
43736 #ifdef __cplusplus
43737 }
43738 #endif
43739 /* -----------------------------------------------------------------------------
43740 * Type initialization:
43741 * This problem is tough by the requirement that no dynamic
43742 * memory is used. Also, since swig_type_info structures store pointers to
43743 * swig_cast_info structures and swig_cast_info structures store pointers back
43744 * to swig_type_info structures, we need some lookup code at initialization.
43745 * The idea is that swig generates all the structures that are needed.
43746 * The runtime then collects these partially filled structures.
43747 * The SWIG_InitializeModule function takes these initial arrays out of
43748 * swig_module, and does all the lookup, filling in the swig_module.types
43749 * array with the correct data and linking the correct swig_cast_info
43750 * structures together.
43751 *
43752 * The generated swig_type_info structures are assigned staticly to an initial
43753 * array. We just loop though that array, and handle each type individually.
43754 * First we lookup if this type has been already loaded, and if so, use the
43755 * loaded structure instead of the generated one. Then we have to fill in the
43756 * cast linked list. The cast data is initially stored in something like a
43757 * two-dimensional array. Each row corresponds to a type (there are the same
43758 * number of rows as there are in the swig_type_initial array). Each entry in
43759 * a column is one of the swig_cast_info structures for that type.
43760 * The cast_initial array is actually an array of arrays, because each row has
43761 * a variable number of columns. So to actually build the cast linked list,
43762 * we find the array of casts associated with the type, and loop through it
43763 * adding the casts to the list. The one last trick we need to do is making
43764 * sure the type pointer in the swig_cast_info struct is correct.
43765 *
43766 * First off, we lookup the cast->type name to see if it is already loaded.
43767 * There are three cases to handle:
43768 * 1) If the cast->type has already been loaded AND the type we are adding
43769 * casting info to has not been loaded (it is in this module), THEN we
43770 * replace the cast->type pointer with the type pointer that has already
43771 * been loaded.
43772 * 2) If BOTH types (the one we are adding casting info to, and the
43773 * cast->type) are loaded, THEN the cast info has already been loaded by
43774 * the previous module so we just ignore it.
43775 * 3) Finally, if cast->type has not already been loaded, then we add that
43776 * swig_cast_info to the linked list (because the cast->type) pointer will
43777 * be correct.
43778 * ----------------------------------------------------------------------------- */
43779
43780 #ifdef __cplusplus
43781 extern "C" {
43782 #if 0
43783 } /* c-mode */
43784 #endif
43785 #endif
43786
43787 #if 0
43788 #define SWIGRUNTIME_DEBUG
43789 #endif
43790
43791 SWIGRUNTIME void
43792 SWIG_InitializeModule(void *clientdata) {
43793 size_t i;
43794 swig_module_info *module_head;
43795 static int init_run = 0;
43796
43797 clientdata = clientdata;
43798
43799 if (init_run) return;
43800 init_run = 1;
43801
43802 /* Initialize the swig_module */
43803 swig_module.type_initial = swig_type_initial;
43804 swig_module.cast_initial = swig_cast_initial;
43805
43806 /* Try and load any already created modules */
43807 module_head = SWIG_GetModule(clientdata);
43808 if (module_head) {
43809 swig_module.next = module_head->next;
43810 module_head->next = &swig_module;
43811 } else {
43812 /* This is the first module loaded */
43813 swig_module.next = &swig_module;
43814 SWIG_SetModule(clientdata, &swig_module);
43815 }
43816
43817 /* Now work on filling in swig_module.types */
43818 #ifdef SWIGRUNTIME_DEBUG
43819 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
43820 #endif
43821 for (i = 0; i < swig_module.size; ++i) {
43822 swig_type_info *type = 0;
43823 swig_type_info *ret;
43824 swig_cast_info *cast;
43825
43826 #ifdef SWIGRUNTIME_DEBUG
43827 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
43828 #endif
43829
43830 /* if there is another module already loaded */
43831 if (swig_module.next != &swig_module) {
43832 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
43833 }
43834 if (type) {
43835 /* Overwrite clientdata field */
43836 #ifdef SWIGRUNTIME_DEBUG
43837 printf("SWIG_InitializeModule: found type %s\n", type->name);
43838 #endif
43839 if (swig_module.type_initial[i]->clientdata) {
43840 type->clientdata = swig_module.type_initial[i]->clientdata;
43841 #ifdef SWIGRUNTIME_DEBUG
43842 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
43843 #endif
43844 }
43845 } else {
43846 type = swig_module.type_initial[i];
43847 }
43848
43849 /* Insert casting types */
43850 cast = swig_module.cast_initial[i];
43851 while (cast->type) {
43852 /* Don't need to add information already in the list */
43853 ret = 0;
43854 #ifdef SWIGRUNTIME_DEBUG
43855 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
43856 #endif
43857 if (swig_module.next != &swig_module) {
43858 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
43859 #ifdef SWIGRUNTIME_DEBUG
43860 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
43861 #endif
43862 }
43863 if (ret) {
43864 if (type == swig_module.type_initial[i]) {
43865 #ifdef SWIGRUNTIME_DEBUG
43866 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
43867 #endif
43868 cast->type = ret;
43869 ret = 0;
43870 } else {
43871 /* Check for casting already in the list */
43872 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
43873 #ifdef SWIGRUNTIME_DEBUG
43874 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
43875 #endif
43876 if (!ocast) ret = 0;
43877 }
43878 }
43879
43880 if (!ret) {
43881 #ifdef SWIGRUNTIME_DEBUG
43882 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
43883 #endif
43884 if (type->cast) {
43885 type->cast->prev = cast;
43886 cast->next = type->cast;
43887 }
43888 type->cast = cast;
43889 }
43890 cast++;
43891 }
43892 /* Set entry in modules->types array equal to the type */
43893 swig_module.types[i] = type;
43894 }
43895 swig_module.types[i] = 0;
43896
43897 #ifdef SWIGRUNTIME_DEBUG
43898 printf("**** SWIG_InitializeModule: Cast List ******\n");
43899 for (i = 0; i < swig_module.size; ++i) {
43900 int j = 0;
43901 swig_cast_info *cast = swig_module.cast_initial[i];
43902 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
43903 while (cast->type) {
43904 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
43905 cast++;
43906 ++j;
43907 }
43908 printf("---- Total casts: %d\n",j);
43909 }
43910 printf("**** SWIG_InitializeModule: Cast List ******\n");
43911 #endif
43912 }
43913
43914 /* This function will propagate the clientdata field of type to
43915 * any new swig_type_info structures that have been added into the list
43916 * of equivalent types. It is like calling
43917 * SWIG_TypeClientData(type, clientdata) a second time.
43918 */
43919 SWIGRUNTIME void
43920 SWIG_PropagateClientData(void) {
43921 size_t i;
43922 swig_cast_info *equiv;
43923 static int init_run = 0;
43924
43925 if (init_run) return;
43926 init_run = 1;
43927
43928 for (i = 0; i < swig_module.size; i++) {
43929 if (swig_module.types[i]->clientdata) {
43930 equiv = swig_module.types[i]->cast;
43931 while (equiv) {
43932 if (!equiv->converter) {
43933 if (equiv->type && !equiv->type->clientdata)
43934 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
43935 }
43936 equiv = equiv->next;
43937 }
43938 }
43939 }
43940 }
43941
43942 #ifdef __cplusplus
43943 #if 0
43944 {
43945 /* c-mode */
43946 #endif
43947 }
43948 #endif
43949
43950
43951
43952 #ifdef __cplusplus
43953 extern "C" {
43954 #endif
43955
43956 /* Python-specific SWIG API */
43957 #define SWIG_newvarlink() SWIG_Python_newvarlink()
43958 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
43959 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
43960
43961 /* -----------------------------------------------------------------------------
43962 * global variable support code.
43963 * ----------------------------------------------------------------------------- */
43964
43965 typedef struct swig_globalvar {
43966 char *name; /* Name of global variable */
43967 PyObject *(*get_attr)(void); /* Return the current value */
43968 int (*set_attr)(PyObject *); /* Set the value */
43969 struct swig_globalvar *next;
43970 } swig_globalvar;
43971
43972 typedef struct swig_varlinkobject {
43973 PyObject_HEAD
43974 swig_globalvar *vars;
43975 } swig_varlinkobject;
43976
43977 SWIGINTERN PyObject *
43978 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
43979 return PyString_FromString("<Swig global variables>");
43980 }
43981
43982 SWIGINTERN PyObject *
43983 swig_varlink_str(swig_varlinkobject *v) {
43984 PyObject *str = PyString_FromString("(");
43985 swig_globalvar *var;
43986 for (var = v->vars; var; var=var->next) {
43987 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
43988 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
43989 }
43990 PyString_ConcatAndDel(&str,PyString_FromString(")"));
43991 return str;
43992 }
43993
43994 SWIGINTERN int
43995 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
43996 PyObject *str = swig_varlink_str(v);
43997 fprintf(fp,"Swig global variables ");
43998 fprintf(fp,"%s\n", PyString_AsString(str));
43999 Py_DECREF(str);
44000 return 0;
44001 }
44002
44003 SWIGINTERN void
44004 swig_varlink_dealloc(swig_varlinkobject *v) {
44005 swig_globalvar *var = v->vars;
44006 while (var) {
44007 swig_globalvar *n = var->next;
44008 free(var->name);
44009 free(var);
44010 var = n;
44011 }
44012 }
44013
44014 SWIGINTERN PyObject *
44015 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
44016 PyObject *res = NULL;
44017 swig_globalvar *var = v->vars;
44018 while (var) {
44019 if (strcmp(var->name,n) == 0) {
44020 res = (*var->get_attr)();
44021 break;
44022 }
44023 var = var->next;
44024 }
44025 if (res == NULL && !PyErr_Occurred()) {
44026 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
44027 }
44028 return res;
44029 }
44030
44031 SWIGINTERN int
44032 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
44033 int res = 1;
44034 swig_globalvar *var = v->vars;
44035 while (var) {
44036 if (strcmp(var->name,n) == 0) {
44037 res = (*var->set_attr)(p);
44038 break;
44039 }
44040 var = var->next;
44041 }
44042 if (res == 1 && !PyErr_Occurred()) {
44043 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
44044 }
44045 return res;
44046 }
44047
44048 SWIGINTERN PyTypeObject*
44049 swig_varlink_type(void) {
44050 static char varlink__doc__[] = "Swig var link object";
44051 static PyTypeObject varlink_type;
44052 static int type_init = 0;
44053 if (!type_init) {
44054 const PyTypeObject tmp
44055 = {
44056 PyObject_HEAD_INIT(NULL)
44057 0, /* Number of items in variable part (ob_size) */
44058 (char *)"swigvarlink", /* Type name (tp_name) */
44059 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
44060 0, /* Itemsize (tp_itemsize) */
44061 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
44062 (printfunc) swig_varlink_print, /* Print (tp_print) */
44063 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
44064 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
44065 0, /* tp_compare */
44066 (reprfunc) swig_varlink_repr, /* tp_repr */
44067 0, /* tp_as_number */
44068 0, /* tp_as_sequence */
44069 0, /* tp_as_mapping */
44070 0, /* tp_hash */
44071 0, /* tp_call */
44072 (reprfunc)swig_varlink_str, /* tp_str */
44073 0, /* tp_getattro */
44074 0, /* tp_setattro */
44075 0, /* tp_as_buffer */
44076 0, /* tp_flags */
44077 varlink__doc__, /* tp_doc */
44078 0, /* tp_traverse */
44079 0, /* tp_clear */
44080 0, /* tp_richcompare */
44081 0, /* tp_weaklistoffset */
44082 #if PY_VERSION_HEX >= 0x02020000
44083 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
44084 #endif
44085 #if PY_VERSION_HEX >= 0x02030000
44086 0, /* tp_del */
44087 #endif
44088 #ifdef COUNT_ALLOCS
44089 0,0,0,0 /* tp_alloc -> tp_next */
44090 #endif
44091 };
44092 varlink_type = tmp;
44093 varlink_type.ob_type = &PyType_Type;
44094 type_init = 1;
44095 }
44096 return &varlink_type;
44097 }
44098
44099 /* Create a variable linking object for use later */
44100 SWIGINTERN PyObject *
44101 SWIG_Python_newvarlink(void) {
44102 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
44103 if (result) {
44104 result->vars = 0;
44105 }
44106 return ((PyObject*) result);
44107 }
44108
44109 SWIGINTERN void
44110 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
44111 swig_varlinkobject *v = (swig_varlinkobject *) p;
44112 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
44113 if (gv) {
44114 size_t size = strlen(name)+1;
44115 gv->name = (char *)malloc(size);
44116 if (gv->name) {
44117 strncpy(gv->name,name,size);
44118 gv->get_attr = get_attr;
44119 gv->set_attr = set_attr;
44120 gv->next = v->vars;
44121 }
44122 }
44123 v->vars = gv;
44124 }
44125
44126 SWIGINTERN PyObject *
44127 SWIG_globals() {
44128 static PyObject *_SWIG_globals = 0;
44129 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
44130 return _SWIG_globals;
44131 }
44132
44133 /* -----------------------------------------------------------------------------
44134 * constants/methods manipulation
44135 * ----------------------------------------------------------------------------- */
44136
44137 /* Install Constants */
44138 SWIGINTERN void
44139 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
44140 PyObject *obj = 0;
44141 size_t i;
44142 for (i = 0; constants[i].type; ++i) {
44143 switch(constants[i].type) {
44144 case SWIG_PY_POINTER:
44145 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
44146 break;
44147 case SWIG_PY_BINARY:
44148 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
44149 break;
44150 default:
44151 obj = 0;
44152 break;
44153 }
44154 if (obj) {
44155 PyDict_SetItemString(d, constants[i].name, obj);
44156 Py_DECREF(obj);
44157 }
44158 }
44159 }
44160
44161 /* -----------------------------------------------------------------------------*/
44162 /* Fix SwigMethods to carry the callback ptrs when needed */
44163 /* -----------------------------------------------------------------------------*/
44164
44165 SWIGINTERN void
44166 SWIG_Python_FixMethods(PyMethodDef *methods,
44167 swig_const_info *const_table,
44168 swig_type_info **types,
44169 swig_type_info **types_initial) {
44170 size_t i;
44171 for (i = 0; methods[i].ml_name; ++i) {
44172 char *c = methods[i].ml_doc;
44173 if (c && (c = strstr(c, "swig_ptr: "))) {
44174 int j;
44175 swig_const_info *ci = 0;
44176 char *name = c + 10;
44177 for (j = 0; const_table[j].type; ++j) {
44178 if (strncmp(const_table[j].name, name,
44179 strlen(const_table[j].name)) == 0) {
44180 ci = &(const_table[j]);
44181 break;
44182 }
44183 }
44184 if (ci) {
44185 size_t shift = (ci->ptype) - types;
44186 swig_type_info *ty = types_initial[shift];
44187 size_t ldoc = (c - methods[i].ml_doc);
44188 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
44189 char *ndoc = (char*)malloc(ldoc + lptr + 10);
44190 if (ndoc) {
44191 char *buff = ndoc;
44192 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
44193 if (ptr) {
44194 strncpy(buff, methods[i].ml_doc, ldoc);
44195 buff += ldoc;
44196 strncpy(buff, "swig_ptr: ", 10);
44197 buff += 10;
44198 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
44199 methods[i].ml_doc = ndoc;
44200 }
44201 }
44202 }
44203 }
44204 }
44205 }
44206
44207 #ifdef __cplusplus
44208 }
44209 #endif
44210
44211 /* -----------------------------------------------------------------------------*
44212 * Partial Init method
44213 * -----------------------------------------------------------------------------*/
44214
44215 #ifdef __cplusplus
44216 extern "C"
44217 #endif
44218 SWIGEXPORT void SWIG_init(void) {
44219 PyObject *m, *d;
44220
44221 /* Fix SwigMethods to carry the callback ptrs when needed */
44222 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
44223
44224 m = Py_InitModule((char *) SWIG_name, SwigMethods);
44225 d = PyModule_GetDict(m);
44226
44227 SWIG_InitializeModule(0);
44228 SWIG_InstallConstants(d,swig_const_table);
44229
44230
44231 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
44232 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
44233 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
44234 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
44235 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
44236 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
44237 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
44238 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
44239 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
44240 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
44241 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
44242 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
44243 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
44244 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
44245 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
44246 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
44247 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
44248 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
44249 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
44250 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
44251 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
44252 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
44253 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
44254 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
44255 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
44256 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
44257 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
44258 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
44259 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
44260 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
44261 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
44262 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
44263 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
44264 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
44265 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
44266 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
44267 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
44268 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
44269 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
44270 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
44271 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
44272 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
44273 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
44274 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
44275 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
44276 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
44277 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
44278 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
44279 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
44280 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
44281 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
44282 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
44283 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
44284 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
44285 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
44286 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
44287 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
44288 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
44289 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
44290 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
44291 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
44292 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
44293 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
44294 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
44295 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
44296 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
44297 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
44298 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
44299 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
44300 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
44301 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
44302 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
44303 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
44304 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
44305 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
44306 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
44307 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
44308 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
44309 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
44310 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
44311 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
44312 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
44313 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
44314 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
44315 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
44316 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
44317 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
44318 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
44319 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
44320 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
44321 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
44322 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
44323 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
44324 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
44325 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
44326 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
44327 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
44328 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
44329 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
44330 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
44331 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
44332 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
44333 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
44334 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
44335 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
44336 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
44337 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
44338 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
44339 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
44340 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
44341 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
44342 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
44343 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
44344 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
44345 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
44346 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
44347 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
44348 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
44349 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
44350 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
44351 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
44352 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
44353 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
44354 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
44355 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
44356 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
44357 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
44358 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
44359 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
44360 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
44361 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
44362 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
44363 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
44364 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
44365 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
44366 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
44367 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
44368 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
44369 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
44370 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
44371 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
44372 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
44373 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
44374 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
44375 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
44376 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
44377 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
44378 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
44379 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
44380 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
44381 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
44382 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
44383 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
44384 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
44385 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
44386 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
44387 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
44388 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
44389 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
44390 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
44391 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
44392 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
44393 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
44394 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
44395 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
44396 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
44397 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
44398 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
44399 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
44400 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
44401 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
44402 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
44403 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
44404 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
44405 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
44406 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
44407 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
44408 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
44409 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
44410 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
44411 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
44412 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
44413 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
44414 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
44415 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
44416 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
44417 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
44418 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
44419 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
44420 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
44421 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
44422 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
44423 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
44424 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
44425 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
44426 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
44427 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
44428 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
44429 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
44430 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
44431 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
44432 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
44433 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
44434 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
44435 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
44436 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
44437 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
44438 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
44439 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
44440 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
44441 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
44442 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
44443 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
44444 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
44445 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
44446 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
44447 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
44448 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
44449 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
44450 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
44451 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
44452 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
44453 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
44454 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
44455 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
44456 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
44457 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
44458 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
44459 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
44460 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
44461 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
44462 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
44463 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
44464 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
44465 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
44466 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
44467 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
44468 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
44469 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
44470 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
44471 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
44472 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
44473 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
44474 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
44475 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
44476 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
44477 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
44478
44479 // Map renamed classes back to their common name for OOR
44480 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
44481
44482 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
44483 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
44484 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
44485 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
44486 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
44487 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
44488 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
44489 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
44490 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
44491 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
44492 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
44493 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
44494 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
44495 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
44496 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
44497 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
44498 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
44499 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
44500 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
44501 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
44502 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
44503 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
44504 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
44505 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
44506 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
44507 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
44508 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
44509 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
44510 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
44511 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
44512 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
44513 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
44514 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
44515 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
44516 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
44517 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
44518 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
44519 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
44520 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
44521 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
44522 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
44523 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
44524 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
44525 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
44526 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
44527 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
44528 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
44529 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
44530 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
44531 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
44532 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
44533 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
44534 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
44535 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
44536 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
44537
44538 // Map renamed classes back to their common name for OOR
44539 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
44540 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
44541
44542 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
44543 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
44544 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
44545 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
44546 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
44547 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
44548 SWIG_Python_SetConstant(d, "FRAME_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxFRAME_EX_CONTEXTHELP)));
44549 SWIG_Python_SetConstant(d, "DIALOG_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxDIALOG_EX_CONTEXTHELP)));
44550 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
44551 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
44552
44553 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
44554
44555 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
44556 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
44557 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
44558 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
44559 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
44560 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
44561 }
44562