]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_controls_wrap.cpp
Add support for generating classes for menus
[wxWidgets.git] / wxPython / src / mac / _controls_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 /* for raw pointers */
989 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
990 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
991 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
992 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
993 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
994 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
995 #define swig_owntype int
996
997 /* for raw packed data */
998 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
999 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1000
1001 /* for class or struct pointers */
1002 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1003 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1004
1005 /* for C or C++ function pointers */
1006 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1007 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1008
1009 /* for C++ member pointers, ie, member methods */
1010 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1011 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1012
1013
1014 /* Runtime API */
1015
1016 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1017 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1018 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1019
1020 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1021 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1022 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1023 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1024 #define SWIG_fail goto fail
1025
1026
1027 /* Runtime API implementation */
1028
1029 /* Error manipulation */
1030
1031 SWIGINTERN void
1032 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1033 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1034 PyErr_SetObject(errtype, obj);
1035 Py_DECREF(obj);
1036 SWIG_PYTHON_THREAD_END_BLOCK;
1037 }
1038
1039 SWIGINTERN void
1040 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1041 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1042 PyErr_SetString(errtype, (char *) msg);
1043 SWIG_PYTHON_THREAD_END_BLOCK;
1044 }
1045
1046 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1047
1048 /* Set a constant value */
1049
1050 SWIGINTERN void
1051 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1052 PyDict_SetItemString(d, (char*) name, obj);
1053 Py_DECREF(obj);
1054 }
1055
1056 /* Append a value to the result obj */
1057
1058 SWIGINTERN PyObject*
1059 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1060 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1061 if (!result) {
1062 result = obj;
1063 } else if (result == Py_None) {
1064 Py_DECREF(result);
1065 result = obj;
1066 } else {
1067 if (!PyList_Check(result)) {
1068 PyObject *o2 = result;
1069 result = PyList_New(1);
1070 PyList_SetItem(result, 0, o2);
1071 }
1072 PyList_Append(result,obj);
1073 Py_DECREF(obj);
1074 }
1075 return result;
1076 #else
1077 PyObject* o2;
1078 PyObject* o3;
1079 if (!result) {
1080 result = obj;
1081 } else if (result == Py_None) {
1082 Py_DECREF(result);
1083 result = obj;
1084 } else {
1085 if (!PyTuple_Check(result)) {
1086 o2 = result;
1087 result = PyTuple_New(1);
1088 PyTuple_SET_ITEM(result, 0, o2);
1089 }
1090 o3 = PyTuple_New(1);
1091 PyTuple_SET_ITEM(o3, 0, obj);
1092 o2 = result;
1093 result = PySequence_Concat(o2, o3);
1094 Py_DECREF(o2);
1095 Py_DECREF(o3);
1096 }
1097 return result;
1098 #endif
1099 }
1100
1101 /* Unpack the argument tuple */
1102
1103 SWIGINTERN int
1104 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1105 {
1106 if (!args) {
1107 if (!min && !max) {
1108 return 1;
1109 } else {
1110 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1111 name, (min == max ? "" : "at least "), min);
1112 return 0;
1113 }
1114 }
1115 if (!PyTuple_Check(args)) {
1116 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1117 return 0;
1118 } else {
1119 register int l = PyTuple_GET_SIZE(args);
1120 if (l < min) {
1121 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1122 name, (min == max ? "" : "at least "), min, l);
1123 return 0;
1124 } else if (l > max) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at most "), max, l);
1127 return 0;
1128 } else {
1129 register int i;
1130 for (i = 0; i < l; ++i) {
1131 objs[i] = PyTuple_GET_ITEM(args, i);
1132 }
1133 for (; l < max; ++l) {
1134 objs[l] = 0;
1135 }
1136 return i + 1;
1137 }
1138 }
1139 }
1140
1141 /* A functor is a function object with one single object argument */
1142 #if PY_VERSION_HEX >= 0x02020000
1143 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1144 #else
1145 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1146 #endif
1147
1148 /*
1149 Helper for static pointer initialization for both C and C++ code, for example
1150 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1151 */
1152 #ifdef __cplusplus
1153 #define SWIG_STATIC_POINTER(var) var
1154 #else
1155 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1156 #endif
1157
1158 /* -----------------------------------------------------------------------------
1159 * Pointer declarations
1160 * ----------------------------------------------------------------------------- */
1161
1162 /* Flags for new pointer objects */
1163 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1164 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1165
1166 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1167
1168 #ifdef __cplusplus
1169 extern "C" {
1170 #if 0
1171 } /* cc-mode */
1172 #endif
1173 #endif
1174
1175 /* How to access Py_None */
1176 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1177 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1178 # ifndef SWIG_PYTHON_BUILD_NONE
1179 # define SWIG_PYTHON_BUILD_NONE
1180 # endif
1181 # endif
1182 #endif
1183
1184 #ifdef SWIG_PYTHON_BUILD_NONE
1185 # ifdef Py_None
1186 # undef Py_None
1187 # define Py_None SWIG_Py_None()
1188 # endif
1189 SWIGRUNTIMEINLINE PyObject *
1190 _SWIG_Py_None(void)
1191 {
1192 PyObject *none = Py_BuildValue("");
1193 Py_DECREF(none);
1194 return none;
1195 }
1196 SWIGRUNTIME PyObject *
1197 SWIG_Py_None(void)
1198 {
1199 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1200 return none;
1201 }
1202 #endif
1203
1204 /* The python void return value */
1205
1206 SWIGRUNTIMEINLINE PyObject *
1207 SWIG_Py_Void(void)
1208 {
1209 PyObject *none = Py_None;
1210 Py_INCREF(none);
1211 return none;
1212 }
1213
1214 /* PySwigClientData */
1215
1216 typedef struct {
1217 PyObject *klass;
1218 PyObject *newraw;
1219 PyObject *newargs;
1220 PyObject *destroy;
1221 int delargs;
1222 int implicitconv;
1223 } PySwigClientData;
1224
1225 SWIGRUNTIMEINLINE int
1226 SWIG_Python_CheckImplicit(swig_type_info *ty)
1227 {
1228 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1229 return data ? data->implicitconv : 0;
1230 }
1231
1232 SWIGRUNTIMEINLINE PyObject *
1233 SWIG_Python_ExceptionType(swig_type_info *desc) {
1234 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1235 PyObject *klass = data ? data->klass : 0;
1236 return (klass ? klass : PyExc_RuntimeError);
1237 }
1238
1239
1240 SWIGRUNTIME PySwigClientData *
1241 PySwigClientData_New(PyObject* obj)
1242 {
1243 if (!obj) {
1244 return 0;
1245 } else {
1246 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1247 /* the klass element */
1248 data->klass = obj;
1249 Py_INCREF(data->klass);
1250 /* the newraw method and newargs arguments used to create a new raw instance */
1251 if (PyClass_Check(obj)) {
1252 data->newraw = 0;
1253 data->newargs = obj;
1254 Py_INCREF(obj);
1255 } else {
1256 #if (PY_VERSION_HEX < 0x02020000)
1257 data->newraw = 0;
1258 #else
1259 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1260 #endif
1261 if (data->newraw) {
1262 Py_INCREF(data->newraw);
1263 data->newargs = PyTuple_New(1);
1264 PyTuple_SetItem(data->newargs, 0, obj);
1265 } else {
1266 data->newargs = obj;
1267 }
1268 Py_INCREF(data->newargs);
1269 }
1270 /* the destroy method, aka as the C++ delete method */
1271 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1272 if (PyErr_Occurred()) {
1273 PyErr_Clear();
1274 data->destroy = 0;
1275 }
1276 if (data->destroy) {
1277 int flags;
1278 Py_INCREF(data->destroy);
1279 flags = PyCFunction_GET_FLAGS(data->destroy);
1280 #ifdef METH_O
1281 data->delargs = !(flags & (METH_O));
1282 #else
1283 data->delargs = 0;
1284 #endif
1285 } else {
1286 data->delargs = 0;
1287 }
1288 data->implicitconv = 0;
1289 return data;
1290 }
1291 }
1292
1293 SWIGRUNTIME void
1294 PySwigClientData_Del(PySwigClientData* data)
1295 {
1296 Py_XDECREF(data->newraw);
1297 Py_XDECREF(data->newargs);
1298 Py_XDECREF(data->destroy);
1299 }
1300
1301 /* =============== PySwigObject =====================*/
1302
1303 typedef struct {
1304 PyObject_HEAD
1305 void *ptr;
1306 swig_type_info *ty;
1307 int own;
1308 PyObject *next;
1309 } PySwigObject;
1310
1311 SWIGRUNTIME PyObject *
1312 PySwigObject_long(PySwigObject *v)
1313 {
1314 return PyLong_FromVoidPtr(v->ptr);
1315 }
1316
1317 SWIGRUNTIME PyObject *
1318 PySwigObject_format(const char* fmt, PySwigObject *v)
1319 {
1320 PyObject *res = NULL;
1321 PyObject *args = PyTuple_New(1);
1322 if (args) {
1323 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1324 PyObject *ofmt = PyString_FromString(fmt);
1325 if (ofmt) {
1326 res = PyString_Format(ofmt,args);
1327 Py_DECREF(ofmt);
1328 }
1329 Py_DECREF(args);
1330 }
1331 }
1332 return res;
1333 }
1334
1335 SWIGRUNTIME PyObject *
1336 PySwigObject_oct(PySwigObject *v)
1337 {
1338 return PySwigObject_format("%o",v);
1339 }
1340
1341 SWIGRUNTIME PyObject *
1342 PySwigObject_hex(PySwigObject *v)
1343 {
1344 return PySwigObject_format("%x",v);
1345 }
1346
1347 SWIGRUNTIME PyObject *
1348 #ifdef METH_NOARGS
1349 PySwigObject_repr(PySwigObject *v)
1350 #else
1351 PySwigObject_repr(PySwigObject *v, PyObject *args)
1352 #endif
1353 {
1354 const char *name = SWIG_TypePrettyName(v->ty);
1355 PyObject *hex = PySwigObject_hex(v);
1356 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1357 Py_DECREF(hex);
1358 if (v->next) {
1359 #ifdef METH_NOARGS
1360 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1361 #else
1362 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1363 #endif
1364 PyString_ConcatAndDel(&repr,nrep);
1365 }
1366 return repr;
1367 }
1368
1369 SWIGRUNTIME int
1370 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1371 {
1372 #ifdef METH_NOARGS
1373 PyObject *repr = PySwigObject_repr(v);
1374 #else
1375 PyObject *repr = PySwigObject_repr(v, NULL);
1376 #endif
1377 if (repr) {
1378 fputs(PyString_AsString(repr), fp);
1379 Py_DECREF(repr);
1380 return 0;
1381 } else {
1382 return 1;
1383 }
1384 }
1385
1386 SWIGRUNTIME PyObject *
1387 PySwigObject_str(PySwigObject *v)
1388 {
1389 char result[SWIG_BUFFER_SIZE];
1390 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1391 PyString_FromString(result) : 0;
1392 }
1393
1394 SWIGRUNTIME int
1395 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1396 {
1397 void *i = v->ptr;
1398 void *j = w->ptr;
1399 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1400 }
1401
1402 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1403
1404 SWIGRUNTIME PyTypeObject*
1405 PySwigObject_type(void) {
1406 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1407 return type;
1408 }
1409
1410 SWIGRUNTIMEINLINE int
1411 PySwigObject_Check(PyObject *op) {
1412 return ((op)->ob_type == PySwigObject_type())
1413 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1414 }
1415
1416 SWIGRUNTIME PyObject *
1417 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1418
1419 SWIGRUNTIME void
1420 PySwigObject_dealloc(PyObject *v)
1421 {
1422 PySwigObject *sobj = (PySwigObject *) v;
1423 PyObject *next = sobj->next;
1424 if (sobj->own) {
1425 swig_type_info *ty = sobj->ty;
1426 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1427 PyObject *destroy = data ? data->destroy : 0;
1428 if (destroy) {
1429 /* destroy is always a VARARGS method */
1430 PyObject *res;
1431 if (data->delargs) {
1432 /* we need to create a temporal object to carry the destroy operation */
1433 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1434 res = SWIG_Python_CallFunctor(destroy, tmp);
1435 Py_DECREF(tmp);
1436 } else {
1437 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1438 PyObject *mself = PyCFunction_GET_SELF(destroy);
1439 res = ((*meth)(mself, v));
1440 }
1441 Py_XDECREF(res);
1442 } else {
1443 const char *name = SWIG_TypePrettyName(ty);
1444 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1445 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1446 #endif
1447 }
1448 }
1449 Py_XDECREF(next);
1450 PyObject_DEL(v);
1451 }
1452
1453 SWIGRUNTIME PyObject*
1454 PySwigObject_append(PyObject* v, PyObject* next)
1455 {
1456 PySwigObject *sobj = (PySwigObject *) v;
1457 #ifndef METH_O
1458 PyObject *tmp = 0;
1459 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1460 next = tmp;
1461 #endif
1462 if (!PySwigObject_Check(next)) {
1463 return NULL;
1464 }
1465 sobj->next = next;
1466 Py_INCREF(next);
1467 return SWIG_Py_Void();
1468 }
1469
1470 SWIGRUNTIME PyObject*
1471 #ifdef METH_NOARGS
1472 PySwigObject_next(PyObject* v)
1473 #else
1474 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1475 #endif
1476 {
1477 PySwigObject *sobj = (PySwigObject *) v;
1478 if (sobj->next) {
1479 Py_INCREF(sobj->next);
1480 return sobj->next;
1481 } else {
1482 return SWIG_Py_Void();
1483 }
1484 }
1485
1486 SWIGINTERN PyObject*
1487 #ifdef METH_NOARGS
1488 PySwigObject_disown(PyObject *v)
1489 #else
1490 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1491 #endif
1492 {
1493 PySwigObject *sobj = (PySwigObject *)v;
1494 sobj->own = 0;
1495 return SWIG_Py_Void();
1496 }
1497
1498 SWIGINTERN PyObject*
1499 #ifdef METH_NOARGS
1500 PySwigObject_acquire(PyObject *v)
1501 #else
1502 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1503 #endif
1504 {
1505 PySwigObject *sobj = (PySwigObject *)v;
1506 sobj->own = SWIG_POINTER_OWN;
1507 return SWIG_Py_Void();
1508 }
1509
1510 SWIGINTERN PyObject*
1511 PySwigObject_own(PyObject *v, PyObject *args)
1512 {
1513 PyObject *val = 0;
1514 #if (PY_VERSION_HEX < 0x02020000)
1515 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1516 #else
1517 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1518 #endif
1519 {
1520 return NULL;
1521 }
1522 else
1523 {
1524 PySwigObject *sobj = (PySwigObject *)v;
1525 PyObject *obj = PyBool_FromLong(sobj->own);
1526 if (val) {
1527 #ifdef METH_NOARGS
1528 if (PyObject_IsTrue(val)) {
1529 PySwigObject_acquire(v);
1530 } else {
1531 PySwigObject_disown(v);
1532 }
1533 #else
1534 if (PyObject_IsTrue(val)) {
1535 PySwigObject_acquire(v,args);
1536 } else {
1537 PySwigObject_disown(v,args);
1538 }
1539 #endif
1540 }
1541 return obj;
1542 }
1543 }
1544
1545 #ifdef METH_O
1546 static PyMethodDef
1547 swigobject_methods[] = {
1548 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1549 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1550 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1551 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1552 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1553 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1554 {0, 0, 0, 0}
1555 };
1556 #else
1557 static PyMethodDef
1558 swigobject_methods[] = {
1559 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1560 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1561 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1562 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1563 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1564 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1565 {0, 0, 0, 0}
1566 };
1567 #endif
1568
1569 #if PY_VERSION_HEX < 0x02020000
1570 SWIGINTERN PyObject *
1571 PySwigObject_getattr(PySwigObject *sobj,char *name)
1572 {
1573 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1574 }
1575 #endif
1576
1577 SWIGRUNTIME PyTypeObject*
1578 _PySwigObject_type(void) {
1579 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1580
1581 static PyNumberMethods PySwigObject_as_number = {
1582 (binaryfunc)0, /*nb_add*/
1583 (binaryfunc)0, /*nb_subtract*/
1584 (binaryfunc)0, /*nb_multiply*/
1585 (binaryfunc)0, /*nb_divide*/
1586 (binaryfunc)0, /*nb_remainder*/
1587 (binaryfunc)0, /*nb_divmod*/
1588 (ternaryfunc)0,/*nb_power*/
1589 (unaryfunc)0, /*nb_negative*/
1590 (unaryfunc)0, /*nb_positive*/
1591 (unaryfunc)0, /*nb_absolute*/
1592 (inquiry)0, /*nb_nonzero*/
1593 0, /*nb_invert*/
1594 0, /*nb_lshift*/
1595 0, /*nb_rshift*/
1596 0, /*nb_and*/
1597 0, /*nb_xor*/
1598 0, /*nb_or*/
1599 (coercion)0, /*nb_coerce*/
1600 (unaryfunc)PySwigObject_long, /*nb_int*/
1601 (unaryfunc)PySwigObject_long, /*nb_long*/
1602 (unaryfunc)0, /*nb_float*/
1603 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1604 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1605 #if PY_VERSION_HEX >= 0x02020000
1606 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1607 #elif PY_VERSION_HEX >= 0x02000000
1608 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1609 #endif
1610 };
1611
1612 static PyTypeObject pyswigobject_type;
1613 static int type_init = 0;
1614 if (!type_init) {
1615 const PyTypeObject tmp
1616 = {
1617 PyObject_HEAD_INIT(NULL)
1618 0, /* ob_size */
1619 (char *)"PySwigObject", /* tp_name */
1620 sizeof(PySwigObject), /* tp_basicsize */
1621 0, /* tp_itemsize */
1622 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1623 (printfunc)PySwigObject_print, /* tp_print */
1624 #if PY_VERSION_HEX < 0x02020000
1625 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1626 #else
1627 (getattrfunc)0, /* tp_getattr */
1628 #endif
1629 (setattrfunc)0, /* tp_setattr */
1630 (cmpfunc)PySwigObject_compare, /* tp_compare */
1631 (reprfunc)PySwigObject_repr, /* tp_repr */
1632 &PySwigObject_as_number, /* tp_as_number */
1633 0, /* tp_as_sequence */
1634 0, /* tp_as_mapping */
1635 (hashfunc)0, /* tp_hash */
1636 (ternaryfunc)0, /* tp_call */
1637 (reprfunc)PySwigObject_str, /* tp_str */
1638 PyObject_GenericGetAttr, /* tp_getattro */
1639 0, /* tp_setattro */
1640 0, /* tp_as_buffer */
1641 Py_TPFLAGS_DEFAULT, /* tp_flags */
1642 swigobject_doc, /* tp_doc */
1643 0, /* tp_traverse */
1644 0, /* tp_clear */
1645 0, /* tp_richcompare */
1646 0, /* tp_weaklistoffset */
1647 #if PY_VERSION_HEX >= 0x02020000
1648 0, /* tp_iter */
1649 0, /* tp_iternext */
1650 swigobject_methods, /* tp_methods */
1651 0, /* tp_members */
1652 0, /* tp_getset */
1653 0, /* tp_base */
1654 0, /* tp_dict */
1655 0, /* tp_descr_get */
1656 0, /* tp_descr_set */
1657 0, /* tp_dictoffset */
1658 0, /* tp_init */
1659 0, /* tp_alloc */
1660 0, /* tp_new */
1661 0, /* tp_free */
1662 0, /* tp_is_gc */
1663 0, /* tp_bases */
1664 0, /* tp_mro */
1665 0, /* tp_cache */
1666 0, /* tp_subclasses */
1667 0, /* tp_weaklist */
1668 #endif
1669 #if PY_VERSION_HEX >= 0x02030000
1670 0, /* tp_del */
1671 #endif
1672 #ifdef COUNT_ALLOCS
1673 0,0,0,0 /* tp_alloc -> tp_next */
1674 #endif
1675 };
1676 pyswigobject_type = tmp;
1677 pyswigobject_type.ob_type = &PyType_Type;
1678 type_init = 1;
1679 }
1680 return &pyswigobject_type;
1681 }
1682
1683 SWIGRUNTIME PyObject *
1684 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1685 {
1686 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1687 if (sobj) {
1688 sobj->ptr = ptr;
1689 sobj->ty = ty;
1690 sobj->own = own;
1691 sobj->next = 0;
1692 }
1693 return (PyObject *)sobj;
1694 }
1695
1696 /* -----------------------------------------------------------------------------
1697 * Implements a simple Swig Packed type, and use it instead of string
1698 * ----------------------------------------------------------------------------- */
1699
1700 typedef struct {
1701 PyObject_HEAD
1702 void *pack;
1703 swig_type_info *ty;
1704 size_t size;
1705 } PySwigPacked;
1706
1707 SWIGRUNTIME int
1708 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1709 {
1710 char result[SWIG_BUFFER_SIZE];
1711 fputs("<Swig Packed ", fp);
1712 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1713 fputs("at ", fp);
1714 fputs(result, fp);
1715 }
1716 fputs(v->ty->name,fp);
1717 fputs(">", fp);
1718 return 0;
1719 }
1720
1721 SWIGRUNTIME PyObject *
1722 PySwigPacked_repr(PySwigPacked *v)
1723 {
1724 char result[SWIG_BUFFER_SIZE];
1725 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1726 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1727 } else {
1728 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1729 }
1730 }
1731
1732 SWIGRUNTIME PyObject *
1733 PySwigPacked_str(PySwigPacked *v)
1734 {
1735 char result[SWIG_BUFFER_SIZE];
1736 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1737 return PyString_FromFormat("%s%s", result, v->ty->name);
1738 } else {
1739 return PyString_FromString(v->ty->name);
1740 }
1741 }
1742
1743 SWIGRUNTIME int
1744 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1745 {
1746 size_t i = v->size;
1747 size_t j = w->size;
1748 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1749 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1750 }
1751
1752 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1753
1754 SWIGRUNTIME PyTypeObject*
1755 PySwigPacked_type(void) {
1756 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1757 return type;
1758 }
1759
1760 SWIGRUNTIMEINLINE int
1761 PySwigPacked_Check(PyObject *op) {
1762 return ((op)->ob_type == _PySwigPacked_type())
1763 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1764 }
1765
1766 SWIGRUNTIME void
1767 PySwigPacked_dealloc(PyObject *v)
1768 {
1769 if (PySwigPacked_Check(v)) {
1770 PySwigPacked *sobj = (PySwigPacked *) v;
1771 free(sobj->pack);
1772 }
1773 PyObject_DEL(v);
1774 }
1775
1776 SWIGRUNTIME PyTypeObject*
1777 _PySwigPacked_type(void) {
1778 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1779 static PyTypeObject pyswigpacked_type;
1780 static int type_init = 0;
1781 if (!type_init) {
1782 const PyTypeObject tmp
1783 = {
1784 PyObject_HEAD_INIT(NULL)
1785 0, /* ob_size */
1786 (char *)"PySwigPacked", /* tp_name */
1787 sizeof(PySwigPacked), /* tp_basicsize */
1788 0, /* tp_itemsize */
1789 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1790 (printfunc)PySwigPacked_print, /* tp_print */
1791 (getattrfunc)0, /* tp_getattr */
1792 (setattrfunc)0, /* tp_setattr */
1793 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1794 (reprfunc)PySwigPacked_repr, /* tp_repr */
1795 0, /* tp_as_number */
1796 0, /* tp_as_sequence */
1797 0, /* tp_as_mapping */
1798 (hashfunc)0, /* tp_hash */
1799 (ternaryfunc)0, /* tp_call */
1800 (reprfunc)PySwigPacked_str, /* tp_str */
1801 PyObject_GenericGetAttr, /* tp_getattro */
1802 0, /* tp_setattro */
1803 0, /* tp_as_buffer */
1804 Py_TPFLAGS_DEFAULT, /* tp_flags */
1805 swigpacked_doc, /* tp_doc */
1806 0, /* tp_traverse */
1807 0, /* tp_clear */
1808 0, /* tp_richcompare */
1809 0, /* tp_weaklistoffset */
1810 #if PY_VERSION_HEX >= 0x02020000
1811 0, /* tp_iter */
1812 0, /* tp_iternext */
1813 0, /* tp_methods */
1814 0, /* tp_members */
1815 0, /* tp_getset */
1816 0, /* tp_base */
1817 0, /* tp_dict */
1818 0, /* tp_descr_get */
1819 0, /* tp_descr_set */
1820 0, /* tp_dictoffset */
1821 0, /* tp_init */
1822 0, /* tp_alloc */
1823 0, /* tp_new */
1824 0, /* tp_free */
1825 0, /* tp_is_gc */
1826 0, /* tp_bases */
1827 0, /* tp_mro */
1828 0, /* tp_cache */
1829 0, /* tp_subclasses */
1830 0, /* tp_weaklist */
1831 #endif
1832 #if PY_VERSION_HEX >= 0x02030000
1833 0, /* tp_del */
1834 #endif
1835 #ifdef COUNT_ALLOCS
1836 0,0,0,0 /* tp_alloc -> tp_next */
1837 #endif
1838 };
1839 pyswigpacked_type = tmp;
1840 pyswigpacked_type.ob_type = &PyType_Type;
1841 type_init = 1;
1842 }
1843 return &pyswigpacked_type;
1844 }
1845
1846 SWIGRUNTIME PyObject *
1847 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1848 {
1849 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1850 if (sobj) {
1851 void *pack = malloc(size);
1852 if (pack) {
1853 memcpy(pack, ptr, size);
1854 sobj->pack = pack;
1855 sobj->ty = ty;
1856 sobj->size = size;
1857 } else {
1858 PyObject_DEL((PyObject *) sobj);
1859 sobj = 0;
1860 }
1861 }
1862 return (PyObject *) sobj;
1863 }
1864
1865 SWIGRUNTIME swig_type_info *
1866 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1867 {
1868 if (PySwigPacked_Check(obj)) {
1869 PySwigPacked *sobj = (PySwigPacked *)obj;
1870 if (sobj->size != size) return 0;
1871 memcpy(ptr, sobj->pack, size);
1872 return sobj->ty;
1873 } else {
1874 return 0;
1875 }
1876 }
1877
1878 /* -----------------------------------------------------------------------------
1879 * pointers/data manipulation
1880 * ----------------------------------------------------------------------------- */
1881
1882 SWIGRUNTIMEINLINE PyObject *
1883 _SWIG_This(void)
1884 {
1885 return PyString_FromString("this");
1886 }
1887
1888 SWIGRUNTIME PyObject *
1889 SWIG_This(void)
1890 {
1891 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1892 return swig_this;
1893 }
1894
1895 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1896
1897 SWIGRUNTIME PySwigObject *
1898 SWIG_Python_GetSwigThis(PyObject *pyobj)
1899 {
1900 if (PySwigObject_Check(pyobj)) {
1901 return (PySwigObject *) pyobj;
1902 } else {
1903 PyObject *obj = 0;
1904 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1905 if (PyInstance_Check(pyobj)) {
1906 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1907 } else {
1908 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1909 if (dictptr != NULL) {
1910 PyObject *dict = *dictptr;
1911 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1912 } else {
1913 #ifdef PyWeakref_CheckProxy
1914 if (PyWeakref_CheckProxy(pyobj)) {
1915 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1916 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1917 }
1918 #endif
1919 obj = PyObject_GetAttr(pyobj,SWIG_This());
1920 if (obj) {
1921 Py_DECREF(obj);
1922 } else {
1923 if (PyErr_Occurred()) PyErr_Clear();
1924 return 0;
1925 }
1926 }
1927 }
1928 #else
1929 obj = PyObject_GetAttr(pyobj,SWIG_This());
1930 if (obj) {
1931 Py_DECREF(obj);
1932 } else {
1933 if (PyErr_Occurred()) PyErr_Clear();
1934 return 0;
1935 }
1936 #endif
1937 if (obj && !PySwigObject_Check(obj)) {
1938 /* a PyObject is called 'this', try to get the 'real this'
1939 PySwigObject from it */
1940 return SWIG_Python_GetSwigThis(obj);
1941 }
1942 return (PySwigObject *)obj;
1943 }
1944 }
1945
1946 /* Acquire a pointer value */
1947
1948 SWIGRUNTIME int
1949 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1950 if (own) {
1951 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1952 if (sobj) {
1953 int oldown = sobj->own;
1954 sobj->own = own;
1955 return oldown;
1956 }
1957 }
1958 return 0;
1959 }
1960
1961 /* Convert a pointer value */
1962
1963 SWIGRUNTIME int
1964 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1965 if (!obj) return SWIG_ERROR;
1966 if (obj == Py_None) {
1967 if (ptr) *ptr = 0;
1968 return SWIG_OK;
1969 } else {
1970 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1971 while (sobj) {
1972 void *vptr = sobj->ptr;
1973 if (ty) {
1974 swig_type_info *to = sobj->ty;
1975 if (to == ty) {
1976 /* no type cast needed */
1977 if (ptr) *ptr = vptr;
1978 break;
1979 } else {
1980 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1981 if (!tc) {
1982 sobj = (PySwigObject *)sobj->next;
1983 } else {
1984 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1985 break;
1986 }
1987 }
1988 } else {
1989 if (ptr) *ptr = vptr;
1990 break;
1991 }
1992 }
1993 if (sobj) {
1994 if (own) *own = sobj->own;
1995 if (flags & SWIG_POINTER_DISOWN) {
1996 sobj->own = 0;
1997 }
1998 return SWIG_OK;
1999 } else {
2000 int res = SWIG_ERROR;
2001 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2002 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2003 if (data && !data->implicitconv) {
2004 PyObject *klass = data->klass;
2005 if (klass) {
2006 PyObject *impconv;
2007 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2008 impconv = SWIG_Python_CallFunctor(klass, obj);
2009 data->implicitconv = 0;
2010 if (PyErr_Occurred()) {
2011 PyErr_Clear();
2012 impconv = 0;
2013 }
2014 if (impconv) {
2015 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2016 if (iobj) {
2017 void *vptr;
2018 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2019 if (SWIG_IsOK(res)) {
2020 if (ptr) {
2021 *ptr = vptr;
2022 /* transfer the ownership to 'ptr' */
2023 iobj->own = 0;
2024 res = SWIG_AddCast(res);
2025 res = SWIG_AddNewMask(res);
2026 } else {
2027 res = SWIG_AddCast(res);
2028 }
2029 }
2030 }
2031 Py_DECREF(impconv);
2032 }
2033 }
2034 }
2035 }
2036 return res;
2037 }
2038 }
2039 }
2040
2041 /* Convert a function ptr value */
2042
2043 SWIGRUNTIME int
2044 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2045 if (!PyCFunction_Check(obj)) {
2046 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2047 } else {
2048 void *vptr = 0;
2049
2050 /* here we get the method pointer for callbacks */
2051 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2052 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2053 if (desc) {
2054 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2055 if (!desc) return SWIG_ERROR;
2056 }
2057 if (ty) {
2058 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2059 if (!tc) return SWIG_ERROR;
2060 *ptr = SWIG_TypeCast(tc,vptr);
2061 } else {
2062 *ptr = vptr;
2063 }
2064 return SWIG_OK;
2065 }
2066 }
2067
2068 /* Convert a packed value value */
2069
2070 SWIGRUNTIME int
2071 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2072 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2073 if (!to) return SWIG_ERROR;
2074 if (ty) {
2075 if (to != ty) {
2076 /* check type cast? */
2077 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2078 if (!tc) return SWIG_ERROR;
2079 }
2080 }
2081 return SWIG_OK;
2082 }
2083
2084 /* -----------------------------------------------------------------------------
2085 * Create a new pointer object
2086 * ----------------------------------------------------------------------------- */
2087
2088 /*
2089 Create a new instance object, whitout calling __init__, and set the
2090 'this' attribute.
2091 */
2092
2093 SWIGRUNTIME PyObject*
2094 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2095 {
2096 #if (PY_VERSION_HEX >= 0x02020000)
2097 PyObject *inst = 0;
2098 PyObject *newraw = data->newraw;
2099 if (newraw) {
2100 inst = PyObject_Call(newraw, data->newargs, NULL);
2101 if (inst) {
2102 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2103 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2104 if (dictptr != NULL) {
2105 PyObject *dict = *dictptr;
2106 if (dict == NULL) {
2107 dict = PyDict_New();
2108 *dictptr = dict;
2109 PyDict_SetItem(dict, SWIG_This(), swig_this);
2110 }
2111 }
2112 #else
2113 PyObject *key = SWIG_This();
2114 PyObject_SetAttr(inst, key, swig_this);
2115 #endif
2116 }
2117 } else {
2118 PyObject *dict = PyDict_New();
2119 PyDict_SetItem(dict, SWIG_This(), swig_this);
2120 inst = PyInstance_NewRaw(data->newargs, dict);
2121 Py_DECREF(dict);
2122 }
2123 return inst;
2124 #else
2125 #if (PY_VERSION_HEX >= 0x02010000)
2126 PyObject *inst;
2127 PyObject *dict = PyDict_New();
2128 PyDict_SetItem(dict, SWIG_This(), swig_this);
2129 inst = PyInstance_NewRaw(data->newargs, dict);
2130 Py_DECREF(dict);
2131 return (PyObject *) inst;
2132 #else
2133 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2134 if (inst == NULL) {
2135 return NULL;
2136 }
2137 inst->in_class = (PyClassObject *)data->newargs;
2138 Py_INCREF(inst->in_class);
2139 inst->in_dict = PyDict_New();
2140 if (inst->in_dict == NULL) {
2141 Py_DECREF(inst);
2142 return NULL;
2143 }
2144 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2145 inst->in_weakreflist = NULL;
2146 #endif
2147 #ifdef Py_TPFLAGS_GC
2148 PyObject_GC_Init(inst);
2149 #endif
2150 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2151 return (PyObject *) inst;
2152 #endif
2153 #endif
2154 }
2155
2156 SWIGRUNTIME void
2157 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2158 {
2159 PyObject *dict;
2160 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2161 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2162 if (dictptr != NULL) {
2163 dict = *dictptr;
2164 if (dict == NULL) {
2165 dict = PyDict_New();
2166 *dictptr = dict;
2167 }
2168 PyDict_SetItem(dict, SWIG_This(), swig_this);
2169 return;
2170 }
2171 #endif
2172 dict = PyObject_GetAttrString(inst, "__dict__");
2173 PyDict_SetItem(dict, SWIG_This(), swig_this);
2174 Py_DECREF(dict);
2175 }
2176
2177
2178 SWIGINTERN PyObject *
2179 SWIG_Python_InitShadowInstance(PyObject *args) {
2180 PyObject *obj[2];
2181 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2182 return NULL;
2183 } else {
2184 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2185 if (sthis) {
2186 PySwigObject_append((PyObject*) sthis, obj[1]);
2187 } else {
2188 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2189 }
2190 return SWIG_Py_Void();
2191 }
2192 }
2193
2194 /* Create a new pointer object */
2195
2196 SWIGRUNTIME PyObject *
2197 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2198 if (!ptr) {
2199 return SWIG_Py_Void();
2200 } else {
2201 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2202 PyObject *robj = PySwigObject_New(ptr, type, own);
2203 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2204 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2205 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2206 if (inst) {
2207 Py_DECREF(robj);
2208 robj = inst;
2209 }
2210 }
2211 return robj;
2212 }
2213 }
2214
2215 /* Create a new packed object */
2216
2217 SWIGRUNTIMEINLINE PyObject *
2218 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2219 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2220 }
2221
2222 /* -----------------------------------------------------------------------------*
2223 * Get type list
2224 * -----------------------------------------------------------------------------*/
2225
2226 #ifdef SWIG_LINK_RUNTIME
2227 void *SWIG_ReturnGlobalTypeList(void *);
2228 #endif
2229
2230 SWIGRUNTIME swig_module_info *
2231 SWIG_Python_GetModule(void) {
2232 static void *type_pointer = (void *)0;
2233 /* first check if module already created */
2234 if (!type_pointer) {
2235 #ifdef SWIG_LINK_RUNTIME
2236 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2237 #else
2238 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2239 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2240 if (PyErr_Occurred()) {
2241 PyErr_Clear();
2242 type_pointer = (void *)0;
2243 }
2244 #endif
2245 }
2246 return (swig_module_info *) type_pointer;
2247 }
2248
2249 #if PY_MAJOR_VERSION < 2
2250 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2251 is copied out of Python/modsupport.c in python version 2.3.4 */
2252 SWIGINTERN int
2253 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2254 {
2255 PyObject *dict;
2256 if (!PyModule_Check(m)) {
2257 PyErr_SetString(PyExc_TypeError,
2258 "PyModule_AddObject() needs module as first arg");
2259 return SWIG_ERROR;
2260 }
2261 if (!o) {
2262 PyErr_SetString(PyExc_TypeError,
2263 "PyModule_AddObject() needs non-NULL value");
2264 return SWIG_ERROR;
2265 }
2266
2267 dict = PyModule_GetDict(m);
2268 if (dict == NULL) {
2269 /* Internal error -- modules must have a dict! */
2270 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2271 PyModule_GetName(m));
2272 return SWIG_ERROR;
2273 }
2274 if (PyDict_SetItemString(dict, name, o))
2275 return SWIG_ERROR;
2276 Py_DECREF(o);
2277 return SWIG_OK;
2278 }
2279 #endif
2280
2281 SWIGRUNTIME void
2282 SWIG_Python_DestroyModule(void *vptr)
2283 {
2284 swig_module_info *swig_module = (swig_module_info *) vptr;
2285 swig_type_info **types = swig_module->types;
2286 size_t i;
2287 for (i =0; i < swig_module->size; ++i) {
2288 swig_type_info *ty = types[i];
2289 if (ty->owndata) {
2290 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2291 if (data) PySwigClientData_Del(data);
2292 }
2293 }
2294 Py_DECREF(SWIG_This());
2295 }
2296
2297 SWIGRUNTIME void
2298 SWIG_Python_SetModule(swig_module_info *swig_module) {
2299 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2300
2301 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2302 swig_empty_runtime_method_table);
2303 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2304 if (pointer && module) {
2305 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2306 } else {
2307 Py_XDECREF(pointer);
2308 }
2309 }
2310
2311 /* The python cached type query */
2312 SWIGRUNTIME PyObject *
2313 SWIG_Python_TypeCache() {
2314 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2315 return cache;
2316 }
2317
2318 SWIGRUNTIME swig_type_info *
2319 SWIG_Python_TypeQuery(const char *type)
2320 {
2321 PyObject *cache = SWIG_Python_TypeCache();
2322 PyObject *key = PyString_FromString(type);
2323 PyObject *obj = PyDict_GetItem(cache, key);
2324 swig_type_info *descriptor;
2325 if (obj) {
2326 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2327 } else {
2328 swig_module_info *swig_module = SWIG_Python_GetModule();
2329 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2330 if (descriptor) {
2331 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2332 PyDict_SetItem(cache, key, obj);
2333 Py_DECREF(obj);
2334 }
2335 }
2336 Py_DECREF(key);
2337 return descriptor;
2338 }
2339
2340 /*
2341 For backward compatibility only
2342 */
2343 #define SWIG_POINTER_EXCEPTION 0
2344 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2345 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2346
2347 SWIGRUNTIME int
2348 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2349 {
2350 if (PyErr_Occurred()) {
2351 PyObject *type = 0;
2352 PyObject *value = 0;
2353 PyObject *traceback = 0;
2354 PyErr_Fetch(&type, &value, &traceback);
2355 if (value) {
2356 PyObject *old_str = PyObject_Str(value);
2357 Py_XINCREF(type);
2358 PyErr_Clear();
2359 if (infront) {
2360 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2361 } else {
2362 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2363 }
2364 Py_DECREF(old_str);
2365 }
2366 return 1;
2367 } else {
2368 return 0;
2369 }
2370 }
2371
2372 SWIGRUNTIME int
2373 SWIG_Python_ArgFail(int argnum)
2374 {
2375 if (PyErr_Occurred()) {
2376 /* add information about failing argument */
2377 char mesg[256];
2378 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2379 return SWIG_Python_AddErrMesg(mesg, 1);
2380 } else {
2381 return 0;
2382 }
2383 }
2384
2385 SWIGRUNTIMEINLINE const char *
2386 PySwigObject_GetDesc(PyObject *self)
2387 {
2388 PySwigObject *v = (PySwigObject *)self;
2389 swig_type_info *ty = v ? v->ty : 0;
2390 return ty ? ty->str : (char*)"";
2391 }
2392
2393 SWIGRUNTIME void
2394 SWIG_Python_TypeError(const char *type, PyObject *obj)
2395 {
2396 if (type) {
2397 #if defined(SWIG_COBJECT_TYPES)
2398 if (obj && PySwigObject_Check(obj)) {
2399 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2400 if (otype) {
2401 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2402 type, otype);
2403 return;
2404 }
2405 } else
2406 #endif
2407 {
2408 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2409 if (otype) {
2410 PyObject *str = PyObject_Str(obj);
2411 const char *cstr = str ? PyString_AsString(str) : 0;
2412 if (cstr) {
2413 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2414 type, otype, cstr);
2415 } else {
2416 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2417 type, otype);
2418 }
2419 Py_XDECREF(str);
2420 return;
2421 }
2422 }
2423 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2424 } else {
2425 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2426 }
2427 }
2428
2429
2430 /* Convert a pointer value, signal an exception on a type mismatch */
2431 SWIGRUNTIME void *
2432 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2433 void *result;
2434 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2435 PyErr_Clear();
2436 if (flags & SWIG_POINTER_EXCEPTION) {
2437 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2438 SWIG_Python_ArgFail(argnum);
2439 }
2440 }
2441 return result;
2442 }
2443
2444
2445 #ifdef __cplusplus
2446 #if 0
2447 { /* cc-mode */
2448 #endif
2449 }
2450 #endif
2451
2452
2453
2454 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2455
2456 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2457
2458
2459
2460 /* -------- TYPES TABLE (BEGIN) -------- */
2461
2462 #define SWIGTYPE_p_bool swig_types[0]
2463 #define SWIGTYPE_p_char swig_types[1]
2464 #define SWIGTYPE_p_form_ops_t swig_types[2]
2465 #define SWIGTYPE_p_int swig_types[3]
2466 #define SWIGTYPE_p_long swig_types[4]
2467 #define SWIGTYPE_p_unsigned_char swig_types[5]
2468 #define SWIGTYPE_p_unsigned_int swig_types[6]
2469 #define SWIGTYPE_p_unsigned_long swig_types[7]
2470 #define SWIGTYPE_p_void swig_types[8]
2471 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2472 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2473 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2474 #define SWIGTYPE_p_wxArrayInt swig_types[12]
2475 #define SWIGTYPE_p_wxArrayString swig_types[13]
2476 #define SWIGTYPE_p_wxBMPHandler swig_types[14]
2477 #define SWIGTYPE_p_wxBitmap swig_types[15]
2478 #define SWIGTYPE_p_wxBitmapButton swig_types[16]
2479 #define SWIGTYPE_p_wxBookCtrlBase swig_types[17]
2480 #define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18]
2481 #define SWIGTYPE_p_wxBoxSizer swig_types[19]
2482 #define SWIGTYPE_p_wxButton swig_types[20]
2483 #define SWIGTYPE_p_wxCURHandler swig_types[21]
2484 #define SWIGTYPE_p_wxCheckBox swig_types[22]
2485 #define SWIGTYPE_p_wxCheckListBox swig_types[23]
2486 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2487 #define SWIGTYPE_p_wxChoice swig_types[25]
2488 #define SWIGTYPE_p_wxChoicebook swig_types[26]
2489 #define SWIGTYPE_p_wxChoicebookEvent swig_types[27]
2490 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[28]
2491 #define SWIGTYPE_p_wxCloseEvent swig_types[29]
2492 #define SWIGTYPE_p_wxColour swig_types[30]
2493 #define SWIGTYPE_p_wxComboBox swig_types[31]
2494 #define SWIGTYPE_p_wxCommandEvent swig_types[32]
2495 #define SWIGTYPE_p_wxContextHelp swig_types[33]
2496 #define SWIGTYPE_p_wxContextHelpButton swig_types[34]
2497 #define SWIGTYPE_p_wxContextMenuEvent swig_types[35]
2498 #define SWIGTYPE_p_wxControl swig_types[36]
2499 #define SWIGTYPE_p_wxControlWithItems swig_types[37]
2500 #define SWIGTYPE_p_wxCursor swig_types[38]
2501 #define SWIGTYPE_p_wxDC swig_types[39]
2502 #define SWIGTYPE_p_wxDateEvent swig_types[40]
2503 #define SWIGTYPE_p_wxDatePickerCtrl swig_types[41]
2504 #define SWIGTYPE_p_wxDateTime swig_types[42]
2505 #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[43]
2506 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44]
2507 #define SWIGTYPE_p_wxDropFilesEvent swig_types[45]
2508 #define SWIGTYPE_p_wxDuplexMode swig_types[46]
2509 #define SWIGTYPE_p_wxEraseEvent swig_types[47]
2510 #define SWIGTYPE_p_wxEvent swig_types[48]
2511 #define SWIGTYPE_p_wxEvtHandler swig_types[49]
2512 #define SWIGTYPE_p_wxFSFile swig_types[50]
2513 #define SWIGTYPE_p_wxFileSystem swig_types[51]
2514 #define SWIGTYPE_p_wxFlexGridSizer swig_types[52]
2515 #define SWIGTYPE_p_wxFocusEvent swig_types[53]
2516 #define SWIGTYPE_p_wxFont swig_types[54]
2517 #define SWIGTYPE_p_wxGBSizerItem swig_types[55]
2518 #define SWIGTYPE_p_wxGIFHandler swig_types[56]
2519 #define SWIGTYPE_p_wxGauge swig_types[57]
2520 #define SWIGTYPE_p_wxGenericDirCtrl swig_types[58]
2521 #define SWIGTYPE_p_wxGenericDragImage swig_types[59]
2522 #define SWIGTYPE_p_wxGridBagSizer swig_types[60]
2523 #define SWIGTYPE_p_wxGridSizer swig_types[61]
2524 #define SWIGTYPE_p_wxHelpEvent swig_types[62]
2525 #define SWIGTYPE_p_wxHelpProvider swig_types[63]
2526 #define SWIGTYPE_p_wxHyperlinkCtrl swig_types[64]
2527 #define SWIGTYPE_p_wxHyperlinkEvent swig_types[65]
2528 #define SWIGTYPE_p_wxICOHandler swig_types[66]
2529 #define SWIGTYPE_p_wxIcon swig_types[67]
2530 #define SWIGTYPE_p_wxIconizeEvent swig_types[68]
2531 #define SWIGTYPE_p_wxIdleEvent swig_types[69]
2532 #define SWIGTYPE_p_wxImage swig_types[70]
2533 #define SWIGTYPE_p_wxImageHandler swig_types[71]
2534 #define SWIGTYPE_p_wxImageList swig_types[72]
2535 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[73]
2536 #define SWIGTYPE_p_wxInitDialogEvent swig_types[74]
2537 #define SWIGTYPE_p_wxItemContainer swig_types[75]
2538 #define SWIGTYPE_p_wxJPEGHandler swig_types[76]
2539 #define SWIGTYPE_p_wxKeyEvent swig_types[77]
2540 #define SWIGTYPE_p_wxLayoutConstraints swig_types[78]
2541 #define SWIGTYPE_p_wxListBox swig_types[79]
2542 #define SWIGTYPE_p_wxListEvent swig_types[80]
2543 #define SWIGTYPE_p_wxListItem swig_types[81]
2544 #define SWIGTYPE_p_wxListItemAttr swig_types[82]
2545 #define SWIGTYPE_p_wxListView swig_types[83]
2546 #define SWIGTYPE_p_wxListbook swig_types[84]
2547 #define SWIGTYPE_p_wxListbookEvent swig_types[85]
2548 #define SWIGTYPE_p_wxMaximizeEvent swig_types[86]
2549 #define SWIGTYPE_p_wxMemoryDC swig_types[87]
2550 #define SWIGTYPE_p_wxMenu swig_types[88]
2551 #define SWIGTYPE_p_wxMenuBar swig_types[89]
2552 #define SWIGTYPE_p_wxMenuEvent swig_types[90]
2553 #define SWIGTYPE_p_wxMenuItem swig_types[91]
2554 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[92]
2555 #define SWIGTYPE_p_wxMouseEvent swig_types[93]
2556 #define SWIGTYPE_p_wxMoveEvent swig_types[94]
2557 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[95]
2558 #define SWIGTYPE_p_wxNcPaintEvent swig_types[96]
2559 #define SWIGTYPE_p_wxNotebook swig_types[97]
2560 #define SWIGTYPE_p_wxNotebookEvent swig_types[98]
2561 #define SWIGTYPE_p_wxNotifyEvent swig_types[99]
2562 #define SWIGTYPE_p_wxObject swig_types[100]
2563 #define SWIGTYPE_p_wxPCXHandler swig_types[101]
2564 #define SWIGTYPE_p_wxPNGHandler swig_types[102]
2565 #define SWIGTYPE_p_wxPNMHandler swig_types[103]
2566 #define SWIGTYPE_p_wxPaintEvent swig_types[104]
2567 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[105]
2568 #define SWIGTYPE_p_wxPaperSize swig_types[106]
2569 #define SWIGTYPE_p_wxPoint swig_types[107]
2570 #define SWIGTYPE_p_wxPyApp swig_types[108]
2571 #define SWIGTYPE_p_wxPyCommandEvent swig_types[109]
2572 #define SWIGTYPE_p_wxPyControl swig_types[110]
2573 #define SWIGTYPE_p_wxPyEvent swig_types[111]
2574 #define SWIGTYPE_p_wxPyImageHandler swig_types[112]
2575 #define SWIGTYPE_p_wxPyListCtrl swig_types[113]
2576 #define SWIGTYPE_p_wxPySizer swig_types[114]
2577 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[115]
2578 #define SWIGTYPE_p_wxPyTreeItemData swig_types[116]
2579 #define SWIGTYPE_p_wxPyValidator swig_types[117]
2580 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[118]
2581 #define SWIGTYPE_p_wxRadioBox swig_types[119]
2582 #define SWIGTYPE_p_wxRadioButton swig_types[120]
2583 #define SWIGTYPE_p_wxRect swig_types[121]
2584 #define SWIGTYPE_p_wxScrollBar swig_types[122]
2585 #define SWIGTYPE_p_wxScrollEvent swig_types[123]
2586 #define SWIGTYPE_p_wxScrollWinEvent swig_types[124]
2587 #define SWIGTYPE_p_wxSetCursorEvent swig_types[125]
2588 #define SWIGTYPE_p_wxShowEvent swig_types[126]
2589 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[127]
2590 #define SWIGTYPE_p_wxSize swig_types[128]
2591 #define SWIGTYPE_p_wxSizeEvent swig_types[129]
2592 #define SWIGTYPE_p_wxSizer swig_types[130]
2593 #define SWIGTYPE_p_wxSizerItem swig_types[131]
2594 #define SWIGTYPE_p_wxSlider swig_types[132]
2595 #define SWIGTYPE_p_wxSpinButton swig_types[133]
2596 #define SWIGTYPE_p_wxSpinCtrl swig_types[134]
2597 #define SWIGTYPE_p_wxSpinEvent swig_types[135]
2598 #define SWIGTYPE_p_wxStaticBitmap swig_types[136]
2599 #define SWIGTYPE_p_wxStaticBox swig_types[137]
2600 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[138]
2601 #define SWIGTYPE_p_wxStaticLine swig_types[139]
2602 #define SWIGTYPE_p_wxStaticText swig_types[140]
2603 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[141]
2604 #define SWIGTYPE_p_wxString swig_types[142]
2605 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[143]
2606 #define SWIGTYPE_p_wxTIFFHandler swig_types[144]
2607 #define SWIGTYPE_p_wxTextAttr swig_types[145]
2608 #define SWIGTYPE_p_wxTextCtrl swig_types[146]
2609 #define SWIGTYPE_p_wxTextUrlEvent swig_types[147]
2610 #define SWIGTYPE_p_wxToggleButton swig_types[148]
2611 #define SWIGTYPE_p_wxToolBar swig_types[149]
2612 #define SWIGTYPE_p_wxToolBarBase swig_types[150]
2613 #define SWIGTYPE_p_wxToolBarToolBase swig_types[151]
2614 #define SWIGTYPE_p_wxToolbook swig_types[152]
2615 #define SWIGTYPE_p_wxToolbookEvent swig_types[153]
2616 #define SWIGTYPE_p_wxTreeCtrl swig_types[154]
2617 #define SWIGTYPE_p_wxTreeEvent swig_types[155]
2618 #define SWIGTYPE_p_wxTreeItemId swig_types[156]
2619 #define SWIGTYPE_p_wxTreebook swig_types[157]
2620 #define SWIGTYPE_p_wxTreebookEvent swig_types[158]
2621 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[159]
2622 #define SWIGTYPE_p_wxValidator swig_types[160]
2623 #define SWIGTYPE_p_wxVisualAttributes swig_types[161]
2624 #define SWIGTYPE_p_wxWindow swig_types[162]
2625 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[163]
2626 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[164]
2627 #define SWIGTYPE_p_wxXPMHandler swig_types[165]
2628 static swig_type_info *swig_types[167];
2629 static swig_module_info swig_module = {swig_types, 166, 0, 0, 0, 0};
2630 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2631 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2632
2633 /* -------- TYPES TABLE (END) -------- */
2634
2635 #if (PY_VERSION_HEX <= 0x02000000)
2636 # if !defined(SWIG_PYTHON_CLASSIC)
2637 # error "This python version requires to use swig with the '-classic' option"
2638 # endif
2639 #endif
2640 #if (PY_VERSION_HEX <= 0x02020000)
2641 # error "This python version requires to use swig with the '-nomodern' option"
2642 #endif
2643 #if (PY_VERSION_HEX <= 0x02020000)
2644 # error "This python version requires to use swig with the '-nomodernargs' option"
2645 #endif
2646 #ifndef METH_O
2647 # error "This python version requires to use swig with the '-nofastunpack' option"
2648 #endif
2649
2650 /*-----------------------------------------------
2651 @(target):= _controls_.so
2652 ------------------------------------------------*/
2653 #define SWIG_init init_controls_
2654
2655 #define SWIG_name "_controls_"
2656
2657 #define SWIGVERSION 0x010329
2658
2659
2660 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2661 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2662
2663
2664 #include <stdexcept>
2665
2666
2667 namespace swig {
2668 class PyObject_ptr {
2669 protected:
2670 PyObject *_obj;
2671
2672 public:
2673 PyObject_ptr() :_obj(0)
2674 {
2675 }
2676
2677 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2678 {
2679 Py_XINCREF(_obj);
2680 }
2681
2682 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2683 {
2684 if (initial_ref) Py_XINCREF(_obj);
2685 }
2686
2687 PyObject_ptr & operator=(const PyObject_ptr& item)
2688 {
2689 Py_XINCREF(item._obj);
2690 Py_XDECREF(_obj);
2691 _obj = item._obj;
2692 return *this;
2693 }
2694
2695 ~PyObject_ptr()
2696 {
2697 Py_XDECREF(_obj);
2698 }
2699
2700 operator PyObject *() const
2701 {
2702 return _obj;
2703 }
2704
2705 PyObject *operator->() const
2706 {
2707 return _obj;
2708 }
2709 };
2710 }
2711
2712
2713 namespace swig {
2714 struct PyObject_var : PyObject_ptr {
2715 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2716
2717 PyObject_var & operator = (PyObject* obj)
2718 {
2719 Py_XDECREF(_obj);
2720 _obj = obj;
2721 return *this;
2722 }
2723 };
2724 }
2725
2726
2727 #include "wx/wxPython/wxPython.h"
2728 #include "wx/wxPython/pyclasses.h"
2729
2730 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2731 static const wxString wxPyEmptyString(wxEmptyString);
2732 static const wxString wxPyControlNameStr(wxControlNameStr);
2733
2734 const wxArrayString wxPyEmptyStringArray;
2735
2736 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2737
2738 #define SWIG_From_long PyInt_FromLong
2739
2740
2741 SWIGINTERNINLINE PyObject *
2742 SWIG_From_int (int value)
2743 {
2744 return SWIG_From_long (value);
2745 }
2746
2747
2748 #include <limits.h>
2749 #ifndef LLONG_MIN
2750 # define LLONG_MIN LONG_LONG_MIN
2751 #endif
2752 #ifndef LLONG_MAX
2753 # define LLONG_MAX LONG_LONG_MAX
2754 #endif
2755 #ifndef ULLONG_MAX
2756 # define ULLONG_MAX ULONG_LONG_MAX
2757 #endif
2758
2759
2760 SWIGINTERN int
2761 SWIG_AsVal_long (PyObject* obj, long* val)
2762 {
2763 if (PyNumber_Check(obj)) {
2764 if (val) *val = PyInt_AsLong(obj);
2765 return SWIG_OK;
2766 }
2767 return SWIG_TypeError;
2768 }
2769
2770
2771 SWIGINTERN int
2772 SWIG_AsVal_int (PyObject * obj, int *val)
2773 {
2774 long v;
2775 int res = SWIG_AsVal_long (obj, &v);
2776 if (SWIG_IsOK(res)) {
2777 if ((v < INT_MIN || v > INT_MAX)) {
2778 return SWIG_OverflowError;
2779 } else {
2780 if (val) *val = static_cast< int >(v);
2781 }
2782 }
2783 return res;
2784 }
2785
2786 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
2787
2788 SWIGINTERN int
2789 SWIG_AsVal_bool (PyObject *obj, bool *val)
2790 {
2791 if (obj == Py_True) {
2792 if (val) *val = true;
2793 return SWIG_OK;
2794 } else if (obj == Py_False) {
2795 if (val) *val = false;
2796 return SWIG_OK;
2797 } else {
2798 long v = 0;
2799 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2800 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2801 return res;
2802 }
2803 }
2804
2805 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2806 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2807 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2808 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2809 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2810 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2811
2812 #include <wx/checklst.h>
2813
2814 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
2815 SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
2816 if (clientData)
2817 {
2818 wxPyClientData* data = new wxPyClientData(clientData);
2819 self->Insert(item, pos, data);
2820 }
2821 else
2822 self->Insert(item, pos);
2823 }
2824
2825 SWIGINTERN int
2826 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2827 {
2828 long v = 0;
2829 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2830 return SWIG_TypeError;
2831 }
2832 else if (val)
2833 *val = (unsigned long)v;
2834 return SWIG_OK;
2835 }
2836
2837
2838 SWIGINTERN int
2839 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2840 {
2841 unsigned long v;
2842 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2843 if (SWIG_IsOK(res)) {
2844 if ((v > UINT_MAX)) {
2845 return SWIG_OverflowError;
2846 } else {
2847 if (val) *val = static_cast< unsigned int >(v);
2848 }
2849 }
2850 return res;
2851 }
2852
2853 SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
2854 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2855 wxArrayInt lst;
2856 self->GetSelections(lst);
2857 PyObject *tup = PyTuple_New(lst.GetCount());
2858 for (size_t i=0; i<lst.GetCount(); i++)
2859 {
2860 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2861 }
2862 wxPyEndBlockThreads(blocked);
2863 return tup;
2864 }
2865 SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
2866 #ifdef __WXMSW__
2867 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2868 self->GetItem(item)->SetTextColour(c);
2869 #endif
2870 }
2871 SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
2872 #ifdef __WXMSW__
2873 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2874 self->GetItem(item)->SetBackgroundColour(c);
2875 #endif
2876 }
2877 SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
2878 #ifdef __WXMSW__
2879 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2880 self->GetItem(item)->SetFont(f);
2881 #endif
2882 }
2883 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
2884 SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
2885 self->AppendText(text);
2886 }
2887 SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
2888 return self->GetValue().Mid(from, to - from);
2889 }
2890 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2891 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2892 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2893 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2894 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2895
2896 SWIGINTERNINLINE PyObject*
2897 SWIG_From_unsigned_SS_long (unsigned long value)
2898 {
2899 return (value > LONG_MAX) ?
2900 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2901 }
2902
2903
2904 SWIGINTERNINLINE PyObject *
2905 SWIG_From_size_t (size_t value)
2906 {
2907 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2908 }
2909
2910
2911 SWIGINTERNINLINE PyObject *
2912 SWIG_From_unsigned_SS_int (unsigned int value)
2913 {
2914 return SWIG_From_unsigned_SS_long (value);
2915 }
2916
2917
2918 #include <wx/slider.h>
2919
2920
2921 static const wxString wxPySliderNameStr(wxSliderNameStr);
2922 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2923
2924 #if !wxUSE_TOGGLEBTN
2925 // implement dummy items for platforms that don't have this class
2926
2927 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2928
2929 class wxToggleButton : public wxControl
2930 {
2931 public:
2932 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2933 const wxPoint&, const wxSize&, long,
2934 const wxValidator&, const wxString&)
2935 { wxPyRaiseNotImplemented(); }
2936
2937 wxToggleButton()
2938 { wxPyRaiseNotImplemented(); }
2939 };
2940 #endif
2941
2942 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
2943
2944 SWIGINTERNINLINE int
2945 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
2946 {
2947 unsigned long v;
2948 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2949 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2950 return res;
2951 }
2952
2953 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
2954 SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
2955 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2956 if (udata) {
2957 Py_INCREF(udata->m_obj);
2958 return udata->m_obj;
2959 } else {
2960 Py_INCREF(Py_None);
2961 return Py_None;
2962 }
2963 }
2964 SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
2965 self->SetClientData(new wxPyUserData(clientData));
2966 }
2967 SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
2968 wxPyUserData* udata = NULL;
2969 if (clientData && clientData != Py_None)
2970 udata = new wxPyUserData(clientData);
2971 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2972 shortHelp, longHelp, udata);
2973 }
2974 SWIGINTERN wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){
2975 wxPyUserData* udata = NULL;
2976 if (clientData && clientData != Py_None)
2977 udata = new wxPyUserData(clientData);
2978 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2979 shortHelp, longHelp, udata);
2980 }
2981 SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
2982 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2983 if (udata) {
2984 Py_INCREF(udata->m_obj);
2985 return udata->m_obj;
2986 } else {
2987 Py_INCREF(Py_None);
2988 return Py_None;
2989 }
2990 }
2991 SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
2992 self->SetToolClientData(id, new wxPyUserData(clientData));
2993 }
2994
2995 #include <wx/listctrl.h>
2996
2997 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
2998 SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
2999 // Python aware sorting function for wxPyListCtrl
3000 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3001 int retval = 0;
3002 PyObject* func = (PyObject*)funcPtr;
3003 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3004
3005 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3006 PyObject* result = PyEval_CallObject(func, args);
3007 Py_DECREF(args);
3008 if (result) {
3009 retval = PyInt_AsLong(result);
3010 Py_DECREF(result);
3011 }
3012
3013 wxPyEndBlockThreads(blocked);
3014 return retval;
3015 }
3016
3017 // C++ Version of a Python aware class
3018 class wxPyListCtrl : public wxListCtrl {
3019 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
3020 public:
3021 wxPyListCtrl() : wxListCtrl() {}
3022 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3023 const wxPoint& pos,
3024 const wxSize& size,
3025 long style,
3026 const wxValidator& validator,
3027 const wxString& name) :
3028 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3029
3030 bool Create(wxWindow* parent, wxWindowID id,
3031 const wxPoint& pos,
3032 const wxSize& size,
3033 long style,
3034 const wxValidator& validator,
3035 const wxString& name) {
3036 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3037 }
3038
3039 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
3040 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3041
3042 // use the virtual version to avoid a confusing assert in the base class
3043 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
3044 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
3045
3046 PYPRIVATE;
3047 };
3048
3049 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3050
3051 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
3052 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
3053 IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
3054 IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3055
3056
3057 SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
3058 wxListItem item;
3059 item.SetMask( wxLIST_MASK_STATE |
3060 wxLIST_MASK_TEXT |
3061 wxLIST_MASK_IMAGE |
3062 wxLIST_MASK_DATA |
3063 wxLIST_SET_ITEM |
3064 wxLIST_MASK_WIDTH |
3065 wxLIST_MASK_FORMAT
3066 );
3067 if (self->GetColumn(col, item))
3068 return new wxListItem(item);
3069 else
3070 return NULL;
3071 }
3072 SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
3073 wxListItem* info = new wxListItem;
3074 info->m_itemId = itemId;
3075 info->m_col = col;
3076 info->m_mask = 0xFFFF;
3077 self->GetItem(*info);
3078 return info;
3079 }
3080 SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
3081 wxPoint pos;
3082 self->GetItemPosition(item, pos);
3083 return pos;
3084 }
3085 SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
3086 wxRect rect;
3087 self->GetItemRect(item, rect, code);
3088 return rect;
3089 }
3090 SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
3091 if (!PyCallable_Check(func))
3092 return false;
3093 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3094 }
3095 SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
3096
3097
3098
3099 return (wxWindow*)self->m_mainWin;
3100
3101 }
3102
3103 #include <wx/treectrl.h>
3104 #include "wx/wxPython/pytree.h"
3105
3106 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
3107 SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3108 SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3109 SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
3110 // C++ version of Python aware wxTreeCtrl
3111 class wxPyTreeCtrl : public wxTreeCtrl {
3112 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
3113 public:
3114 wxPyTreeCtrl() : wxTreeCtrl() {}
3115 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3116 const wxPoint& pos,
3117 const wxSize& size,
3118 long style,
3119 const wxValidator& validator,
3120 const wxString& name) :
3121 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3122
3123 bool Create(wxWindow *parent, wxWindowID id,
3124 const wxPoint& pos,
3125 const wxSize& size,
3126 long style,
3127 const wxValidator& validator,
3128 const wxString& name) {
3129 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3130 }
3131
3132
3133 int OnCompareItems(const wxTreeItemId& item1,
3134 const wxTreeItemId& item2) {
3135 int rval = 0;
3136 bool found;
3137 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3138 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
3139 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3140 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
3141 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3142 Py_DECREF(o1);
3143 Py_DECREF(o2);
3144 }
3145 wxPyEndBlockThreads(blocked);
3146 if (! found)
3147 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3148 return rval;
3149 }
3150 PYPRIVATE;
3151 };
3152
3153 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3154
3155
3156 SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3157 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3158 if (data == NULL) {
3159 data = new wxPyTreeItemData();
3160 data->SetId(item); // set the id
3161 self->SetItemData(item, data);
3162 }
3163 return data;
3164 }
3165 SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3166 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3167 if (data == NULL) {
3168 data = new wxPyTreeItemData();
3169 data->SetId(item); // set the id
3170 self->SetItemData(item, data);
3171 }
3172 return data->GetData();
3173 }
3174 SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
3175 data->SetId(item); // set the id
3176 self->SetItemData(item, data);
3177 }
3178 SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
3179 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3180 if (data == NULL) {
3181 data = new wxPyTreeItemData(obj);
3182 data->SetId(item); // set the id
3183 self->SetItemData(item, data);
3184 } else
3185 data->SetData(obj);
3186 }
3187 SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
3188 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3189 PyObject* rval = PyList_New(0);
3190 wxArrayTreeItemIds array;
3191 size_t num, x;
3192 num = self->GetSelections(array);
3193 for (x=0; x < num; x++) {
3194 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
3195 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
3196 PyList_Append(rval, item);
3197 Py_DECREF(item);
3198 }
3199 wxPyEndBlockThreads(blocked);
3200 return rval;
3201 }
3202 SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
3203 void* cookie = 0;
3204 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
3205 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3206 PyObject* tup = PyTuple_New(2);
3207 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3208 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3209 wxPyEndBlockThreads(blocked);
3210 return tup;
3211 }
3212 SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
3213 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
3214 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3215 PyObject* tup = PyTuple_New(2);
3216 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3217 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3218 wxPyEndBlockThreads(blocked);
3219 return tup;
3220 }
3221 SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
3222 wxRect rect;
3223 if (self->GetBoundingRect(item, rect, textOnly)) {
3224 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3225 wxRect* r = new wxRect(rect);
3226 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
3227 wxPyEndBlockThreads(blocked);
3228 return val;
3229 }
3230 else
3231 RETURN_NONE();
3232 }
3233 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
3234
3235 SWIGINTERNINLINE PyObject*
3236 SWIG_From_bool (bool value)
3237 {
3238 return PyBool_FromLong(value ? 1 : 0);
3239 }
3240
3241 // C++ version of Python aware wxControl
3242 class wxPyControl : public wxControl
3243 {
3244 DECLARE_DYNAMIC_CLASS(wxPyControl)
3245 public:
3246 wxPyControl() : wxControl() {}
3247 wxPyControl(wxWindow* parent, const wxWindowID id,
3248 const wxPoint& pos = wxDefaultPosition,
3249 const wxSize& size = wxDefaultSize,
3250 long style = 0,
3251 const wxValidator& validator=wxDefaultValidator,
3252 const wxString& name = wxPyControlNameStr)
3253 : wxControl(parent, id, pos, size, style, validator, name) {}
3254
3255 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
3256
3257 bool DoEraseBackground(wxDC* dc) {
3258 #ifdef __WXMSW__
3259 return wxWindow::DoEraseBackground(dc->GetHDC());
3260 #else
3261 dc->SetBackground(wxBrush(GetBackgroundColour()));
3262 dc->Clear();
3263 return true;
3264 #endif
3265 }
3266
3267 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3268 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3269 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3270 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3271
3272 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3273 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3274 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3275
3276 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3277 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3278
3279 DEC_PYCALLBACK__(InitDialog);
3280 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3281 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3282 DEC_PYCALLBACK_BOOL_(Validate);
3283
3284 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3285 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3286 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3287
3288 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3289 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3290
3291 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
3292 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
3293
3294 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3295
3296 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3297
3298 PYPRIVATE;
3299 };
3300
3301 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3302
3303 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3304 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3305 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3306 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3307
3308 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3309 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3310 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3311
3312 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3313 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3314
3315 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3316 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3317 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3318 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3319
3320 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3321 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3322 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3323
3324 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3325 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3326
3327 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
3328 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
3329
3330 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
3331
3332 IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3333
3334
3335
3336 SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
3337
3338 #include <wx/generic/dragimgg.h>
3339
3340 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
3341 SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
3342 wxDateTime rv;
3343 self->GetRange(&rv, NULL);
3344 return rv;
3345 }
3346 SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
3347 wxDateTime rv;
3348 self->GetRange(NULL, &rv);
3349 return rv;
3350 }
3351 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
3352 #ifdef __cplusplus
3353 extern "C" {
3354 #endif
3355 SWIGINTERN int ButtonNameStr_set(PyObject *) {
3356 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3357 return 1;
3358 }
3359
3360
3361 SWIGINTERN PyObject *ButtonNameStr_get(void) {
3362 PyObject *pyobj = 0;
3363
3364 {
3365 #if wxUSE_UNICODE
3366 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3367 #else
3368 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3369 #endif
3370 }
3371 return pyobj;
3372 }
3373
3374
3375 SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3376 PyObject *resultobj = 0;
3377 wxWindow *arg1 = (wxWindow *) 0 ;
3378 int arg2 = (int) -1 ;
3379 wxString const &arg3_defvalue = wxPyEmptyString ;
3380 wxString *arg3 = (wxString *) &arg3_defvalue ;
3381 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3382 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3383 wxSize const &arg5_defvalue = wxDefaultSize ;
3384 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3385 long arg6 = (long) 0 ;
3386 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3387 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3388 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3389 wxString *arg8 = (wxString *) &arg8_defvalue ;
3390 wxButton *result = 0 ;
3391 void *argp1 = 0 ;
3392 int res1 = 0 ;
3393 int val2 ;
3394 int ecode2 = 0 ;
3395 bool temp3 = false ;
3396 wxPoint temp4 ;
3397 wxSize temp5 ;
3398 long val6 ;
3399 int ecode6 = 0 ;
3400 void *argp7 = 0 ;
3401 int res7 = 0 ;
3402 bool temp8 = false ;
3403 PyObject * obj0 = 0 ;
3404 PyObject * obj1 = 0 ;
3405 PyObject * obj2 = 0 ;
3406 PyObject * obj3 = 0 ;
3407 PyObject * obj4 = 0 ;
3408 PyObject * obj5 = 0 ;
3409 PyObject * obj6 = 0 ;
3410 PyObject * obj7 = 0 ;
3411 char * kwnames[] = {
3412 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3413 };
3414
3415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3417 if (!SWIG_IsOK(res1)) {
3418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3419 }
3420 arg1 = reinterpret_cast< wxWindow * >(argp1);
3421 if (obj1) {
3422 ecode2 = SWIG_AsVal_int(obj1, &val2);
3423 if (!SWIG_IsOK(ecode2)) {
3424 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3425 }
3426 arg2 = static_cast< int >(val2);
3427 }
3428 if (obj2) {
3429 {
3430 arg3 = wxString_in_helper(obj2);
3431 if (arg3 == NULL) SWIG_fail;
3432 temp3 = true;
3433 }
3434 }
3435 if (obj3) {
3436 {
3437 arg4 = &temp4;
3438 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3439 }
3440 }
3441 if (obj4) {
3442 {
3443 arg5 = &temp5;
3444 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3445 }
3446 }
3447 if (obj5) {
3448 ecode6 = SWIG_AsVal_long(obj5, &val6);
3449 if (!SWIG_IsOK(ecode6)) {
3450 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3451 }
3452 arg6 = static_cast< long >(val6);
3453 }
3454 if (obj6) {
3455 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3456 if (!SWIG_IsOK(res7)) {
3457 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3458 }
3459 if (!argp7) {
3460 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3461 }
3462 arg7 = reinterpret_cast< wxValidator * >(argp7);
3463 }
3464 if (obj7) {
3465 {
3466 arg8 = wxString_in_helper(obj7);
3467 if (arg8 == NULL) SWIG_fail;
3468 temp8 = true;
3469 }
3470 }
3471 {
3472 if (!wxPyCheckForApp()) SWIG_fail;
3473 PyThreadState* __tstate = wxPyBeginAllowThreads();
3474 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3475 wxPyEndAllowThreads(__tstate);
3476 if (PyErr_Occurred()) SWIG_fail;
3477 }
3478 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3479 {
3480 if (temp3)
3481 delete arg3;
3482 }
3483 {
3484 if (temp8)
3485 delete arg8;
3486 }
3487 return resultobj;
3488 fail:
3489 {
3490 if (temp3)
3491 delete arg3;
3492 }
3493 {
3494 if (temp8)
3495 delete arg8;
3496 }
3497 return NULL;
3498 }
3499
3500
3501 SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3502 PyObject *resultobj = 0;
3503 wxButton *result = 0 ;
3504
3505 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3506 {
3507 if (!wxPyCheckForApp()) SWIG_fail;
3508 PyThreadState* __tstate = wxPyBeginAllowThreads();
3509 result = (wxButton *)new wxButton();
3510 wxPyEndAllowThreads(__tstate);
3511 if (PyErr_Occurred()) SWIG_fail;
3512 }
3513 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3514 return resultobj;
3515 fail:
3516 return NULL;
3517 }
3518
3519
3520 SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3521 PyObject *resultobj = 0;
3522 wxButton *arg1 = (wxButton *) 0 ;
3523 wxWindow *arg2 = (wxWindow *) 0 ;
3524 int arg3 = (int) -1 ;
3525 wxString const &arg4_defvalue = wxPyEmptyString ;
3526 wxString *arg4 = (wxString *) &arg4_defvalue ;
3527 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3528 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3529 wxSize const &arg6_defvalue = wxDefaultSize ;
3530 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3531 long arg7 = (long) 0 ;
3532 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3533 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3534 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3535 wxString *arg9 = (wxString *) &arg9_defvalue ;
3536 bool result;
3537 void *argp1 = 0 ;
3538 int res1 = 0 ;
3539 void *argp2 = 0 ;
3540 int res2 = 0 ;
3541 int val3 ;
3542 int ecode3 = 0 ;
3543 bool temp4 = false ;
3544 wxPoint temp5 ;
3545 wxSize temp6 ;
3546 long val7 ;
3547 int ecode7 = 0 ;
3548 void *argp8 = 0 ;
3549 int res8 = 0 ;
3550 bool temp9 = false ;
3551 PyObject * obj0 = 0 ;
3552 PyObject * obj1 = 0 ;
3553 PyObject * obj2 = 0 ;
3554 PyObject * obj3 = 0 ;
3555 PyObject * obj4 = 0 ;
3556 PyObject * obj5 = 0 ;
3557 PyObject * obj6 = 0 ;
3558 PyObject * obj7 = 0 ;
3559 PyObject * obj8 = 0 ;
3560 char * kwnames[] = {
3561 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3562 };
3563
3564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3566 if (!SWIG_IsOK(res1)) {
3567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3568 }
3569 arg1 = reinterpret_cast< wxButton * >(argp1);
3570 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3571 if (!SWIG_IsOK(res2)) {
3572 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3573 }
3574 arg2 = reinterpret_cast< wxWindow * >(argp2);
3575 if (obj2) {
3576 ecode3 = SWIG_AsVal_int(obj2, &val3);
3577 if (!SWIG_IsOK(ecode3)) {
3578 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3579 }
3580 arg3 = static_cast< int >(val3);
3581 }
3582 if (obj3) {
3583 {
3584 arg4 = wxString_in_helper(obj3);
3585 if (arg4 == NULL) SWIG_fail;
3586 temp4 = true;
3587 }
3588 }
3589 if (obj4) {
3590 {
3591 arg5 = &temp5;
3592 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3593 }
3594 }
3595 if (obj5) {
3596 {
3597 arg6 = &temp6;
3598 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3599 }
3600 }
3601 if (obj6) {
3602 ecode7 = SWIG_AsVal_long(obj6, &val7);
3603 if (!SWIG_IsOK(ecode7)) {
3604 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3605 }
3606 arg7 = static_cast< long >(val7);
3607 }
3608 if (obj7) {
3609 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3610 if (!SWIG_IsOK(res8)) {
3611 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3612 }
3613 if (!argp8) {
3614 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3615 }
3616 arg8 = reinterpret_cast< wxValidator * >(argp8);
3617 }
3618 if (obj8) {
3619 {
3620 arg9 = wxString_in_helper(obj8);
3621 if (arg9 == NULL) SWIG_fail;
3622 temp9 = true;
3623 }
3624 }
3625 {
3626 PyThreadState* __tstate = wxPyBeginAllowThreads();
3627 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3628 wxPyEndAllowThreads(__tstate);
3629 if (PyErr_Occurred()) SWIG_fail;
3630 }
3631 {
3632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3633 }
3634 {
3635 if (temp4)
3636 delete arg4;
3637 }
3638 {
3639 if (temp9)
3640 delete arg9;
3641 }
3642 return resultobj;
3643 fail:
3644 {
3645 if (temp4)
3646 delete arg4;
3647 }
3648 {
3649 if (temp9)
3650 delete arg9;
3651 }
3652 return NULL;
3653 }
3654
3655
3656 SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3657 PyObject *resultobj = 0;
3658 wxButton *arg1 = (wxButton *) 0 ;
3659 void *argp1 = 0 ;
3660 int res1 = 0 ;
3661 PyObject *swig_obj[1] ;
3662
3663 if (!args) SWIG_fail;
3664 swig_obj[0] = args;
3665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3666 if (!SWIG_IsOK(res1)) {
3667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3668 }
3669 arg1 = reinterpret_cast< wxButton * >(argp1);
3670 {
3671 PyThreadState* __tstate = wxPyBeginAllowThreads();
3672 (arg1)->SetDefault();
3673 wxPyEndAllowThreads(__tstate);
3674 if (PyErr_Occurred()) SWIG_fail;
3675 }
3676 resultobj = SWIG_Py_Void();
3677 return resultobj;
3678 fail:
3679 return NULL;
3680 }
3681
3682
3683 SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3684 PyObject *resultobj = 0;
3685 wxSize result;
3686
3687 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3688 {
3689 PyThreadState* __tstate = wxPyBeginAllowThreads();
3690 result = wxButton::GetDefaultSize();
3691 wxPyEndAllowThreads(__tstate);
3692 if (PyErr_Occurred()) SWIG_fail;
3693 }
3694 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3695 return resultobj;
3696 fail:
3697 return NULL;
3698 }
3699
3700
3701 SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3702 PyObject *resultobj = 0;
3703 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3704 SwigValueWrapper<wxVisualAttributes > result;
3705 int val1 ;
3706 int ecode1 = 0 ;
3707 PyObject * obj0 = 0 ;
3708 char * kwnames[] = {
3709 (char *) "variant", NULL
3710 };
3711
3712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3713 if (obj0) {
3714 ecode1 = SWIG_AsVal_int(obj0, &val1);
3715 if (!SWIG_IsOK(ecode1)) {
3716 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3717 }
3718 arg1 = static_cast< wxWindowVariant >(val1);
3719 }
3720 {
3721 if (!wxPyCheckForApp()) SWIG_fail;
3722 PyThreadState* __tstate = wxPyBeginAllowThreads();
3723 result = wxButton::GetClassDefaultAttributes(arg1);
3724 wxPyEndAllowThreads(__tstate);
3725 if (PyErr_Occurred()) SWIG_fail;
3726 }
3727 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3728 return resultobj;
3729 fail:
3730 return NULL;
3731 }
3732
3733
3734 SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3735 PyObject *obj;
3736 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3737 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3738 return SWIG_Py_Void();
3739 }
3740
3741 SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3742 return SWIG_Python_InitShadowInstance(args);
3743 }
3744
3745 SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3746 PyObject *resultobj = 0;
3747 wxWindow *arg1 = (wxWindow *) 0 ;
3748 int arg2 = (int) -1 ;
3749 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3750 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3751 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3752 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3753 wxSize const &arg5_defvalue = wxDefaultSize ;
3754 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3755 long arg6 = (long) wxBU_AUTODRAW ;
3756 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3757 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3758 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3759 wxString *arg8 = (wxString *) &arg8_defvalue ;
3760 wxBitmapButton *result = 0 ;
3761 void *argp1 = 0 ;
3762 int res1 = 0 ;
3763 int val2 ;
3764 int ecode2 = 0 ;
3765 void *argp3 = 0 ;
3766 int res3 = 0 ;
3767 wxPoint temp4 ;
3768 wxSize temp5 ;
3769 long val6 ;
3770 int ecode6 = 0 ;
3771 void *argp7 = 0 ;
3772 int res7 = 0 ;
3773 bool temp8 = false ;
3774 PyObject * obj0 = 0 ;
3775 PyObject * obj1 = 0 ;
3776 PyObject * obj2 = 0 ;
3777 PyObject * obj3 = 0 ;
3778 PyObject * obj4 = 0 ;
3779 PyObject * obj5 = 0 ;
3780 PyObject * obj6 = 0 ;
3781 PyObject * obj7 = 0 ;
3782 char * kwnames[] = {
3783 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3784 };
3785
3786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3788 if (!SWIG_IsOK(res1)) {
3789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3790 }
3791 arg1 = reinterpret_cast< wxWindow * >(argp1);
3792 if (obj1) {
3793 ecode2 = SWIG_AsVal_int(obj1, &val2);
3794 if (!SWIG_IsOK(ecode2)) {
3795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3796 }
3797 arg2 = static_cast< int >(val2);
3798 }
3799 if (obj2) {
3800 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3801 if (!SWIG_IsOK(res3)) {
3802 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3803 }
3804 if (!argp3) {
3805 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3806 }
3807 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3808 }
3809 if (obj3) {
3810 {
3811 arg4 = &temp4;
3812 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3813 }
3814 }
3815 if (obj4) {
3816 {
3817 arg5 = &temp5;
3818 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3819 }
3820 }
3821 if (obj5) {
3822 ecode6 = SWIG_AsVal_long(obj5, &val6);
3823 if (!SWIG_IsOK(ecode6)) {
3824 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3825 }
3826 arg6 = static_cast< long >(val6);
3827 }
3828 if (obj6) {
3829 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3830 if (!SWIG_IsOK(res7)) {
3831 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3832 }
3833 if (!argp7) {
3834 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3835 }
3836 arg7 = reinterpret_cast< wxValidator * >(argp7);
3837 }
3838 if (obj7) {
3839 {
3840 arg8 = wxString_in_helper(obj7);
3841 if (arg8 == NULL) SWIG_fail;
3842 temp8 = true;
3843 }
3844 }
3845 {
3846 if (!wxPyCheckForApp()) SWIG_fail;
3847 PyThreadState* __tstate = wxPyBeginAllowThreads();
3848 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3849 wxPyEndAllowThreads(__tstate);
3850 if (PyErr_Occurred()) SWIG_fail;
3851 }
3852 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3853 {
3854 if (temp8)
3855 delete arg8;
3856 }
3857 return resultobj;
3858 fail:
3859 {
3860 if (temp8)
3861 delete arg8;
3862 }
3863 return NULL;
3864 }
3865
3866
3867 SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3868 PyObject *resultobj = 0;
3869 wxBitmapButton *result = 0 ;
3870
3871 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3872 {
3873 if (!wxPyCheckForApp()) SWIG_fail;
3874 PyThreadState* __tstate = wxPyBeginAllowThreads();
3875 result = (wxBitmapButton *)new wxBitmapButton();
3876 wxPyEndAllowThreads(__tstate);
3877 if (PyErr_Occurred()) SWIG_fail;
3878 }
3879 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3880 return resultobj;
3881 fail:
3882 return NULL;
3883 }
3884
3885
3886 SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3887 PyObject *resultobj = 0;
3888 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3889 wxWindow *arg2 = (wxWindow *) 0 ;
3890 int arg3 = (int) -1 ;
3891 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3892 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3893 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3894 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3895 wxSize const &arg6_defvalue = wxDefaultSize ;
3896 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3897 long arg7 = (long) wxBU_AUTODRAW ;
3898 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3899 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3900 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3901 wxString *arg9 = (wxString *) &arg9_defvalue ;
3902 bool result;
3903 void *argp1 = 0 ;
3904 int res1 = 0 ;
3905 void *argp2 = 0 ;
3906 int res2 = 0 ;
3907 int val3 ;
3908 int ecode3 = 0 ;
3909 void *argp4 = 0 ;
3910 int res4 = 0 ;
3911 wxPoint temp5 ;
3912 wxSize temp6 ;
3913 long val7 ;
3914 int ecode7 = 0 ;
3915 void *argp8 = 0 ;
3916 int res8 = 0 ;
3917 bool temp9 = false ;
3918 PyObject * obj0 = 0 ;
3919 PyObject * obj1 = 0 ;
3920 PyObject * obj2 = 0 ;
3921 PyObject * obj3 = 0 ;
3922 PyObject * obj4 = 0 ;
3923 PyObject * obj5 = 0 ;
3924 PyObject * obj6 = 0 ;
3925 PyObject * obj7 = 0 ;
3926 PyObject * obj8 = 0 ;
3927 char * kwnames[] = {
3928 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3929 };
3930
3931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3933 if (!SWIG_IsOK(res1)) {
3934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3935 }
3936 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3937 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3938 if (!SWIG_IsOK(res2)) {
3939 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3940 }
3941 arg2 = reinterpret_cast< wxWindow * >(argp2);
3942 if (obj2) {
3943 ecode3 = SWIG_AsVal_int(obj2, &val3);
3944 if (!SWIG_IsOK(ecode3)) {
3945 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3946 }
3947 arg3 = static_cast< int >(val3);
3948 }
3949 if (obj3) {
3950 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3951 if (!SWIG_IsOK(res4)) {
3952 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3953 }
3954 if (!argp4) {
3955 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3956 }
3957 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3958 }
3959 if (obj4) {
3960 {
3961 arg5 = &temp5;
3962 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3963 }
3964 }
3965 if (obj5) {
3966 {
3967 arg6 = &temp6;
3968 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3969 }
3970 }
3971 if (obj6) {
3972 ecode7 = SWIG_AsVal_long(obj6, &val7);
3973 if (!SWIG_IsOK(ecode7)) {
3974 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
3975 }
3976 arg7 = static_cast< long >(val7);
3977 }
3978 if (obj7) {
3979 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3980 if (!SWIG_IsOK(res8)) {
3981 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3982 }
3983 if (!argp8) {
3984 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3985 }
3986 arg8 = reinterpret_cast< wxValidator * >(argp8);
3987 }
3988 if (obj8) {
3989 {
3990 arg9 = wxString_in_helper(obj8);
3991 if (arg9 == NULL) SWIG_fail;
3992 temp9 = true;
3993 }
3994 }
3995 {
3996 PyThreadState* __tstate = wxPyBeginAllowThreads();
3997 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3998 wxPyEndAllowThreads(__tstate);
3999 if (PyErr_Occurred()) SWIG_fail;
4000 }
4001 {
4002 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4003 }
4004 {
4005 if (temp9)
4006 delete arg9;
4007 }
4008 return resultobj;
4009 fail:
4010 {
4011 if (temp9)
4012 delete arg9;
4013 }
4014 return NULL;
4015 }
4016
4017
4018 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4019 PyObject *resultobj = 0;
4020 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4021 wxBitmap result;
4022 void *argp1 = 0 ;
4023 int res1 = 0 ;
4024 PyObject *swig_obj[1] ;
4025
4026 if (!args) SWIG_fail;
4027 swig_obj[0] = args;
4028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4029 if (!SWIG_IsOK(res1)) {
4030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4031 }
4032 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4033 {
4034 PyThreadState* __tstate = wxPyBeginAllowThreads();
4035 result = (arg1)->GetBitmapLabel();
4036 wxPyEndAllowThreads(__tstate);
4037 if (PyErr_Occurred()) SWIG_fail;
4038 }
4039 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4040 return resultobj;
4041 fail:
4042 return NULL;
4043 }
4044
4045
4046 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4047 PyObject *resultobj = 0;
4048 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4049 wxBitmap result;
4050 void *argp1 = 0 ;
4051 int res1 = 0 ;
4052 PyObject *swig_obj[1] ;
4053
4054 if (!args) SWIG_fail;
4055 swig_obj[0] = args;
4056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4057 if (!SWIG_IsOK(res1)) {
4058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4059 }
4060 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4061 {
4062 PyThreadState* __tstate = wxPyBeginAllowThreads();
4063 result = (arg1)->GetBitmapDisabled();
4064 wxPyEndAllowThreads(__tstate);
4065 if (PyErr_Occurred()) SWIG_fail;
4066 }
4067 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4068 return resultobj;
4069 fail:
4070 return NULL;
4071 }
4072
4073
4074 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4075 PyObject *resultobj = 0;
4076 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4077 wxBitmap result;
4078 void *argp1 = 0 ;
4079 int res1 = 0 ;
4080 PyObject *swig_obj[1] ;
4081
4082 if (!args) SWIG_fail;
4083 swig_obj[0] = args;
4084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4085 if (!SWIG_IsOK(res1)) {
4086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4087 }
4088 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4089 {
4090 PyThreadState* __tstate = wxPyBeginAllowThreads();
4091 result = (arg1)->GetBitmapFocus();
4092 wxPyEndAllowThreads(__tstate);
4093 if (PyErr_Occurred()) SWIG_fail;
4094 }
4095 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4096 return resultobj;
4097 fail:
4098 return NULL;
4099 }
4100
4101
4102 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4103 PyObject *resultobj = 0;
4104 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4105 wxBitmap result;
4106 void *argp1 = 0 ;
4107 int res1 = 0 ;
4108 PyObject *swig_obj[1] ;
4109
4110 if (!args) SWIG_fail;
4111 swig_obj[0] = args;
4112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4113 if (!SWIG_IsOK(res1)) {
4114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4115 }
4116 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4117 {
4118 PyThreadState* __tstate = wxPyBeginAllowThreads();
4119 result = (arg1)->GetBitmapSelected();
4120 wxPyEndAllowThreads(__tstate);
4121 if (PyErr_Occurred()) SWIG_fail;
4122 }
4123 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4124 return resultobj;
4125 fail:
4126 return NULL;
4127 }
4128
4129
4130 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4131 PyObject *resultobj = 0;
4132 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4133 wxBitmap result;
4134 void *argp1 = 0 ;
4135 int res1 = 0 ;
4136 PyObject *swig_obj[1] ;
4137
4138 if (!args) SWIG_fail;
4139 swig_obj[0] = args;
4140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4141 if (!SWIG_IsOK(res1)) {
4142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4143 }
4144 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4145 {
4146 PyThreadState* __tstate = wxPyBeginAllowThreads();
4147 result = (arg1)->GetBitmapHover();
4148 wxPyEndAllowThreads(__tstate);
4149 if (PyErr_Occurred()) SWIG_fail;
4150 }
4151 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4152 return resultobj;
4153 fail:
4154 return NULL;
4155 }
4156
4157
4158 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4159 PyObject *resultobj = 0;
4160 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4161 wxBitmap *arg2 = 0 ;
4162 void *argp1 = 0 ;
4163 int res1 = 0 ;
4164 void *argp2 = 0 ;
4165 int res2 = 0 ;
4166 PyObject * obj0 = 0 ;
4167 PyObject * obj1 = 0 ;
4168 char * kwnames[] = {
4169 (char *) "self",(char *) "bitmap", NULL
4170 };
4171
4172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4174 if (!SWIG_IsOK(res1)) {
4175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4176 }
4177 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4178 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4179 if (!SWIG_IsOK(res2)) {
4180 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4181 }
4182 if (!argp2) {
4183 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4184 }
4185 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4186 {
4187 PyThreadState* __tstate = wxPyBeginAllowThreads();
4188 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4189 wxPyEndAllowThreads(__tstate);
4190 if (PyErr_Occurred()) SWIG_fail;
4191 }
4192 resultobj = SWIG_Py_Void();
4193 return resultobj;
4194 fail:
4195 return NULL;
4196 }
4197
4198
4199 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4200 PyObject *resultobj = 0;
4201 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4202 wxBitmap *arg2 = 0 ;
4203 void *argp1 = 0 ;
4204 int res1 = 0 ;
4205 void *argp2 = 0 ;
4206 int res2 = 0 ;
4207 PyObject * obj0 = 0 ;
4208 PyObject * obj1 = 0 ;
4209 char * kwnames[] = {
4210 (char *) "self",(char *) "bitmap", NULL
4211 };
4212
4213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4215 if (!SWIG_IsOK(res1)) {
4216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4217 }
4218 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4219 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4220 if (!SWIG_IsOK(res2)) {
4221 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4222 }
4223 if (!argp2) {
4224 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4225 }
4226 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4227 {
4228 PyThreadState* __tstate = wxPyBeginAllowThreads();
4229 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4230 wxPyEndAllowThreads(__tstate);
4231 if (PyErr_Occurred()) SWIG_fail;
4232 }
4233 resultobj = SWIG_Py_Void();
4234 return resultobj;
4235 fail:
4236 return NULL;
4237 }
4238
4239
4240 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4241 PyObject *resultobj = 0;
4242 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4243 wxBitmap *arg2 = 0 ;
4244 void *argp1 = 0 ;
4245 int res1 = 0 ;
4246 void *argp2 = 0 ;
4247 int res2 = 0 ;
4248 PyObject * obj0 = 0 ;
4249 PyObject * obj1 = 0 ;
4250 char * kwnames[] = {
4251 (char *) "self",(char *) "bitmap", NULL
4252 };
4253
4254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4256 if (!SWIG_IsOK(res1)) {
4257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4258 }
4259 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4260 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4261 if (!SWIG_IsOK(res2)) {
4262 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4263 }
4264 if (!argp2) {
4265 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4266 }
4267 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4268 {
4269 PyThreadState* __tstate = wxPyBeginAllowThreads();
4270 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4271 wxPyEndAllowThreads(__tstate);
4272 if (PyErr_Occurred()) SWIG_fail;
4273 }
4274 resultobj = SWIG_Py_Void();
4275 return resultobj;
4276 fail:
4277 return NULL;
4278 }
4279
4280
4281 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4282 PyObject *resultobj = 0;
4283 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4284 wxBitmap *arg2 = 0 ;
4285 void *argp1 = 0 ;
4286 int res1 = 0 ;
4287 void *argp2 = 0 ;
4288 int res2 = 0 ;
4289 PyObject * obj0 = 0 ;
4290 PyObject * obj1 = 0 ;
4291 char * kwnames[] = {
4292 (char *) "self",(char *) "bitmap", NULL
4293 };
4294
4295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4297 if (!SWIG_IsOK(res1)) {
4298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4299 }
4300 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4301 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4302 if (!SWIG_IsOK(res2)) {
4303 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4304 }
4305 if (!argp2) {
4306 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4307 }
4308 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4309 {
4310 PyThreadState* __tstate = wxPyBeginAllowThreads();
4311 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4312 wxPyEndAllowThreads(__tstate);
4313 if (PyErr_Occurred()) SWIG_fail;
4314 }
4315 resultobj = SWIG_Py_Void();
4316 return resultobj;
4317 fail:
4318 return NULL;
4319 }
4320
4321
4322 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4323 PyObject *resultobj = 0;
4324 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4325 wxBitmap *arg2 = 0 ;
4326 void *argp1 = 0 ;
4327 int res1 = 0 ;
4328 void *argp2 = 0 ;
4329 int res2 = 0 ;
4330 PyObject * obj0 = 0 ;
4331 PyObject * obj1 = 0 ;
4332 char * kwnames[] = {
4333 (char *) "self",(char *) "hover", NULL
4334 };
4335
4336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4338 if (!SWIG_IsOK(res1)) {
4339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4340 }
4341 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4342 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4343 if (!SWIG_IsOK(res2)) {
4344 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4345 }
4346 if (!argp2) {
4347 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4348 }
4349 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4350 {
4351 PyThreadState* __tstate = wxPyBeginAllowThreads();
4352 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4353 wxPyEndAllowThreads(__tstate);
4354 if (PyErr_Occurred()) SWIG_fail;
4355 }
4356 resultobj = SWIG_Py_Void();
4357 return resultobj;
4358 fail:
4359 return NULL;
4360 }
4361
4362
4363 SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4364 PyObject *resultobj = 0;
4365 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4366 int arg2 ;
4367 int arg3 ;
4368 void *argp1 = 0 ;
4369 int res1 = 0 ;
4370 int val2 ;
4371 int ecode2 = 0 ;
4372 int val3 ;
4373 int ecode3 = 0 ;
4374 PyObject * obj0 = 0 ;
4375 PyObject * obj1 = 0 ;
4376 PyObject * obj2 = 0 ;
4377 char * kwnames[] = {
4378 (char *) "self",(char *) "x",(char *) "y", NULL
4379 };
4380
4381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4383 if (!SWIG_IsOK(res1)) {
4384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4385 }
4386 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4387 ecode2 = SWIG_AsVal_int(obj1, &val2);
4388 if (!SWIG_IsOK(ecode2)) {
4389 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4390 }
4391 arg2 = static_cast< int >(val2);
4392 ecode3 = SWIG_AsVal_int(obj2, &val3);
4393 if (!SWIG_IsOK(ecode3)) {
4394 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4395 }
4396 arg3 = static_cast< int >(val3);
4397 {
4398 PyThreadState* __tstate = wxPyBeginAllowThreads();
4399 (arg1)->SetMargins(arg2,arg3);
4400 wxPyEndAllowThreads(__tstate);
4401 if (PyErr_Occurred()) SWIG_fail;
4402 }
4403 resultobj = SWIG_Py_Void();
4404 return resultobj;
4405 fail:
4406 return NULL;
4407 }
4408
4409
4410 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4411 PyObject *resultobj = 0;
4412 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4413 int result;
4414 void *argp1 = 0 ;
4415 int res1 = 0 ;
4416 PyObject *swig_obj[1] ;
4417
4418 if (!args) SWIG_fail;
4419 swig_obj[0] = args;
4420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4421 if (!SWIG_IsOK(res1)) {
4422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4423 }
4424 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4425 {
4426 PyThreadState* __tstate = wxPyBeginAllowThreads();
4427 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4428 wxPyEndAllowThreads(__tstate);
4429 if (PyErr_Occurred()) SWIG_fail;
4430 }
4431 resultobj = SWIG_From_int(static_cast< int >(result));
4432 return resultobj;
4433 fail:
4434 return NULL;
4435 }
4436
4437
4438 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4439 PyObject *resultobj = 0;
4440 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4441 int result;
4442 void *argp1 = 0 ;
4443 int res1 = 0 ;
4444 PyObject *swig_obj[1] ;
4445
4446 if (!args) SWIG_fail;
4447 swig_obj[0] = args;
4448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4449 if (!SWIG_IsOK(res1)) {
4450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4451 }
4452 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4453 {
4454 PyThreadState* __tstate = wxPyBeginAllowThreads();
4455 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4456 wxPyEndAllowThreads(__tstate);
4457 if (PyErr_Occurred()) SWIG_fail;
4458 }
4459 resultobj = SWIG_From_int(static_cast< int >(result));
4460 return resultobj;
4461 fail:
4462 return NULL;
4463 }
4464
4465
4466 SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4467 PyObject *obj;
4468 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4469 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4470 return SWIG_Py_Void();
4471 }
4472
4473 SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4474 return SWIG_Python_InitShadowInstance(args);
4475 }
4476
4477 SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4478 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4479 return 1;
4480 }
4481
4482
4483 SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4484 PyObject *pyobj = 0;
4485
4486 {
4487 #if wxUSE_UNICODE
4488 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4489 #else
4490 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4491 #endif
4492 }
4493 return pyobj;
4494 }
4495
4496
4497 SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4498 PyObject *resultobj = 0;
4499 wxWindow *arg1 = (wxWindow *) 0 ;
4500 int arg2 = (int) -1 ;
4501 wxString const &arg3_defvalue = wxPyEmptyString ;
4502 wxString *arg3 = (wxString *) &arg3_defvalue ;
4503 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4504 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4505 wxSize const &arg5_defvalue = wxDefaultSize ;
4506 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4507 long arg6 = (long) 0 ;
4508 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4509 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4510 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4511 wxString *arg8 = (wxString *) &arg8_defvalue ;
4512 wxCheckBox *result = 0 ;
4513 void *argp1 = 0 ;
4514 int res1 = 0 ;
4515 int val2 ;
4516 int ecode2 = 0 ;
4517 bool temp3 = false ;
4518 wxPoint temp4 ;
4519 wxSize temp5 ;
4520 long val6 ;
4521 int ecode6 = 0 ;
4522 void *argp7 = 0 ;
4523 int res7 = 0 ;
4524 bool temp8 = false ;
4525 PyObject * obj0 = 0 ;
4526 PyObject * obj1 = 0 ;
4527 PyObject * obj2 = 0 ;
4528 PyObject * obj3 = 0 ;
4529 PyObject * obj4 = 0 ;
4530 PyObject * obj5 = 0 ;
4531 PyObject * obj6 = 0 ;
4532 PyObject * obj7 = 0 ;
4533 char * kwnames[] = {
4534 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4535 };
4536
4537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4539 if (!SWIG_IsOK(res1)) {
4540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4541 }
4542 arg1 = reinterpret_cast< wxWindow * >(argp1);
4543 if (obj1) {
4544 ecode2 = SWIG_AsVal_int(obj1, &val2);
4545 if (!SWIG_IsOK(ecode2)) {
4546 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4547 }
4548 arg2 = static_cast< int >(val2);
4549 }
4550 if (obj2) {
4551 {
4552 arg3 = wxString_in_helper(obj2);
4553 if (arg3 == NULL) SWIG_fail;
4554 temp3 = true;
4555 }
4556 }
4557 if (obj3) {
4558 {
4559 arg4 = &temp4;
4560 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4561 }
4562 }
4563 if (obj4) {
4564 {
4565 arg5 = &temp5;
4566 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4567 }
4568 }
4569 if (obj5) {
4570 ecode6 = SWIG_AsVal_long(obj5, &val6);
4571 if (!SWIG_IsOK(ecode6)) {
4572 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4573 }
4574 arg6 = static_cast< long >(val6);
4575 }
4576 if (obj6) {
4577 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4578 if (!SWIG_IsOK(res7)) {
4579 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4580 }
4581 if (!argp7) {
4582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4583 }
4584 arg7 = reinterpret_cast< wxValidator * >(argp7);
4585 }
4586 if (obj7) {
4587 {
4588 arg8 = wxString_in_helper(obj7);
4589 if (arg8 == NULL) SWIG_fail;
4590 temp8 = true;
4591 }
4592 }
4593 {
4594 if (!wxPyCheckForApp()) SWIG_fail;
4595 PyThreadState* __tstate = wxPyBeginAllowThreads();
4596 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4597 wxPyEndAllowThreads(__tstate);
4598 if (PyErr_Occurred()) SWIG_fail;
4599 }
4600 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4601 {
4602 if (temp3)
4603 delete arg3;
4604 }
4605 {
4606 if (temp8)
4607 delete arg8;
4608 }
4609 return resultobj;
4610 fail:
4611 {
4612 if (temp3)
4613 delete arg3;
4614 }
4615 {
4616 if (temp8)
4617 delete arg8;
4618 }
4619 return NULL;
4620 }
4621
4622
4623 SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4624 PyObject *resultobj = 0;
4625 wxCheckBox *result = 0 ;
4626
4627 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4628 {
4629 if (!wxPyCheckForApp()) SWIG_fail;
4630 PyThreadState* __tstate = wxPyBeginAllowThreads();
4631 result = (wxCheckBox *)new wxCheckBox();
4632 wxPyEndAllowThreads(__tstate);
4633 if (PyErr_Occurred()) SWIG_fail;
4634 }
4635 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4636 return resultobj;
4637 fail:
4638 return NULL;
4639 }
4640
4641
4642 SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4643 PyObject *resultobj = 0;
4644 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4645 wxWindow *arg2 = (wxWindow *) 0 ;
4646 int arg3 = (int) -1 ;
4647 wxString const &arg4_defvalue = wxPyEmptyString ;
4648 wxString *arg4 = (wxString *) &arg4_defvalue ;
4649 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4650 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4651 wxSize const &arg6_defvalue = wxDefaultSize ;
4652 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4653 long arg7 = (long) 0 ;
4654 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4655 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4656 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4657 wxString *arg9 = (wxString *) &arg9_defvalue ;
4658 bool result;
4659 void *argp1 = 0 ;
4660 int res1 = 0 ;
4661 void *argp2 = 0 ;
4662 int res2 = 0 ;
4663 int val3 ;
4664 int ecode3 = 0 ;
4665 bool temp4 = false ;
4666 wxPoint temp5 ;
4667 wxSize temp6 ;
4668 long val7 ;
4669 int ecode7 = 0 ;
4670 void *argp8 = 0 ;
4671 int res8 = 0 ;
4672 bool temp9 = false ;
4673 PyObject * obj0 = 0 ;
4674 PyObject * obj1 = 0 ;
4675 PyObject * obj2 = 0 ;
4676 PyObject * obj3 = 0 ;
4677 PyObject * obj4 = 0 ;
4678 PyObject * obj5 = 0 ;
4679 PyObject * obj6 = 0 ;
4680 PyObject * obj7 = 0 ;
4681 PyObject * obj8 = 0 ;
4682 char * kwnames[] = {
4683 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4684 };
4685
4686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4688 if (!SWIG_IsOK(res1)) {
4689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4690 }
4691 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4692 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4693 if (!SWIG_IsOK(res2)) {
4694 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4695 }
4696 arg2 = reinterpret_cast< wxWindow * >(argp2);
4697 if (obj2) {
4698 ecode3 = SWIG_AsVal_int(obj2, &val3);
4699 if (!SWIG_IsOK(ecode3)) {
4700 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4701 }
4702 arg3 = static_cast< int >(val3);
4703 }
4704 if (obj3) {
4705 {
4706 arg4 = wxString_in_helper(obj3);
4707 if (arg4 == NULL) SWIG_fail;
4708 temp4 = true;
4709 }
4710 }
4711 if (obj4) {
4712 {
4713 arg5 = &temp5;
4714 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4715 }
4716 }
4717 if (obj5) {
4718 {
4719 arg6 = &temp6;
4720 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4721 }
4722 }
4723 if (obj6) {
4724 ecode7 = SWIG_AsVal_long(obj6, &val7);
4725 if (!SWIG_IsOK(ecode7)) {
4726 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4727 }
4728 arg7 = static_cast< long >(val7);
4729 }
4730 if (obj7) {
4731 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4732 if (!SWIG_IsOK(res8)) {
4733 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4734 }
4735 if (!argp8) {
4736 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4737 }
4738 arg8 = reinterpret_cast< wxValidator * >(argp8);
4739 }
4740 if (obj8) {
4741 {
4742 arg9 = wxString_in_helper(obj8);
4743 if (arg9 == NULL) SWIG_fail;
4744 temp9 = true;
4745 }
4746 }
4747 {
4748 PyThreadState* __tstate = wxPyBeginAllowThreads();
4749 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4750 wxPyEndAllowThreads(__tstate);
4751 if (PyErr_Occurred()) SWIG_fail;
4752 }
4753 {
4754 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4755 }
4756 {
4757 if (temp4)
4758 delete arg4;
4759 }
4760 {
4761 if (temp9)
4762 delete arg9;
4763 }
4764 return resultobj;
4765 fail:
4766 {
4767 if (temp4)
4768 delete arg4;
4769 }
4770 {
4771 if (temp9)
4772 delete arg9;
4773 }
4774 return NULL;
4775 }
4776
4777
4778 SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4779 PyObject *resultobj = 0;
4780 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4781 bool result;
4782 void *argp1 = 0 ;
4783 int res1 = 0 ;
4784 PyObject *swig_obj[1] ;
4785
4786 if (!args) SWIG_fail;
4787 swig_obj[0] = args;
4788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4789 if (!SWIG_IsOK(res1)) {
4790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4791 }
4792 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4793 {
4794 PyThreadState* __tstate = wxPyBeginAllowThreads();
4795 result = (bool)(arg1)->GetValue();
4796 wxPyEndAllowThreads(__tstate);
4797 if (PyErr_Occurred()) SWIG_fail;
4798 }
4799 {
4800 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4801 }
4802 return resultobj;
4803 fail:
4804 return NULL;
4805 }
4806
4807
4808 SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4809 PyObject *resultobj = 0;
4810 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4811 bool result;
4812 void *argp1 = 0 ;
4813 int res1 = 0 ;
4814 PyObject *swig_obj[1] ;
4815
4816 if (!args) SWIG_fail;
4817 swig_obj[0] = args;
4818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4819 if (!SWIG_IsOK(res1)) {
4820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4821 }
4822 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4823 {
4824 PyThreadState* __tstate = wxPyBeginAllowThreads();
4825 result = (bool)(arg1)->IsChecked();
4826 wxPyEndAllowThreads(__tstate);
4827 if (PyErr_Occurred()) SWIG_fail;
4828 }
4829 {
4830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4831 }
4832 return resultobj;
4833 fail:
4834 return NULL;
4835 }
4836
4837
4838 SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4839 PyObject *resultobj = 0;
4840 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4841 bool arg2 ;
4842 void *argp1 = 0 ;
4843 int res1 = 0 ;
4844 bool val2 ;
4845 int ecode2 = 0 ;
4846 PyObject * obj0 = 0 ;
4847 PyObject * obj1 = 0 ;
4848 char * kwnames[] = {
4849 (char *) "self",(char *) "state", NULL
4850 };
4851
4852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4854 if (!SWIG_IsOK(res1)) {
4855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4856 }
4857 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4858 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4859 if (!SWIG_IsOK(ecode2)) {
4860 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4861 }
4862 arg2 = static_cast< bool >(val2);
4863 {
4864 PyThreadState* __tstate = wxPyBeginAllowThreads();
4865 (arg1)->SetValue(arg2);
4866 wxPyEndAllowThreads(__tstate);
4867 if (PyErr_Occurred()) SWIG_fail;
4868 }
4869 resultobj = SWIG_Py_Void();
4870 return resultobj;
4871 fail:
4872 return NULL;
4873 }
4874
4875
4876 SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4877 PyObject *resultobj = 0;
4878 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4879 wxCheckBoxState result;
4880 void *argp1 = 0 ;
4881 int res1 = 0 ;
4882 PyObject *swig_obj[1] ;
4883
4884 if (!args) SWIG_fail;
4885 swig_obj[0] = args;
4886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4887 if (!SWIG_IsOK(res1)) {
4888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4889 }
4890 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4891 {
4892 PyThreadState* __tstate = wxPyBeginAllowThreads();
4893 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4894 wxPyEndAllowThreads(__tstate);
4895 if (PyErr_Occurred()) SWIG_fail;
4896 }
4897 resultobj = SWIG_From_int(static_cast< int >(result));
4898 return resultobj;
4899 fail:
4900 return NULL;
4901 }
4902
4903
4904 SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4905 PyObject *resultobj = 0;
4906 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4907 wxCheckBoxState arg2 ;
4908 void *argp1 = 0 ;
4909 int res1 = 0 ;
4910 int val2 ;
4911 int ecode2 = 0 ;
4912 PyObject * obj0 = 0 ;
4913 PyObject * obj1 = 0 ;
4914 char * kwnames[] = {
4915 (char *) "self",(char *) "state", NULL
4916 };
4917
4918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4920 if (!SWIG_IsOK(res1)) {
4921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4922 }
4923 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4924 ecode2 = SWIG_AsVal_int(obj1, &val2);
4925 if (!SWIG_IsOK(ecode2)) {
4926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4927 }
4928 arg2 = static_cast< wxCheckBoxState >(val2);
4929 {
4930 PyThreadState* __tstate = wxPyBeginAllowThreads();
4931 (arg1)->Set3StateValue(arg2);
4932 wxPyEndAllowThreads(__tstate);
4933 if (PyErr_Occurred()) SWIG_fail;
4934 }
4935 resultobj = SWIG_Py_Void();
4936 return resultobj;
4937 fail:
4938 return NULL;
4939 }
4940
4941
4942 SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4943 PyObject *resultobj = 0;
4944 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4945 bool result;
4946 void *argp1 = 0 ;
4947 int res1 = 0 ;
4948 PyObject *swig_obj[1] ;
4949
4950 if (!args) SWIG_fail;
4951 swig_obj[0] = args;
4952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4953 if (!SWIG_IsOK(res1)) {
4954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4955 }
4956 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4957 {
4958 PyThreadState* __tstate = wxPyBeginAllowThreads();
4959 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4960 wxPyEndAllowThreads(__tstate);
4961 if (PyErr_Occurred()) SWIG_fail;
4962 }
4963 {
4964 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4965 }
4966 return resultobj;
4967 fail:
4968 return NULL;
4969 }
4970
4971
4972 SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4973 PyObject *resultobj = 0;
4974 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4975 bool result;
4976 void *argp1 = 0 ;
4977 int res1 = 0 ;
4978 PyObject *swig_obj[1] ;
4979
4980 if (!args) SWIG_fail;
4981 swig_obj[0] = args;
4982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4983 if (!SWIG_IsOK(res1)) {
4984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4985 }
4986 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4987 {
4988 PyThreadState* __tstate = wxPyBeginAllowThreads();
4989 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
4990 wxPyEndAllowThreads(__tstate);
4991 if (PyErr_Occurred()) SWIG_fail;
4992 }
4993 {
4994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4995 }
4996 return resultobj;
4997 fail:
4998 return NULL;
4999 }
5000
5001
5002 SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5003 PyObject *resultobj = 0;
5004 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5005 SwigValueWrapper<wxVisualAttributes > result;
5006 int val1 ;
5007 int ecode1 = 0 ;
5008 PyObject * obj0 = 0 ;
5009 char * kwnames[] = {
5010 (char *) "variant", NULL
5011 };
5012
5013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5014 if (obj0) {
5015 ecode1 = SWIG_AsVal_int(obj0, &val1);
5016 if (!SWIG_IsOK(ecode1)) {
5017 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5018 }
5019 arg1 = static_cast< wxWindowVariant >(val1);
5020 }
5021 {
5022 if (!wxPyCheckForApp()) SWIG_fail;
5023 PyThreadState* __tstate = wxPyBeginAllowThreads();
5024 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5025 wxPyEndAllowThreads(__tstate);
5026 if (PyErr_Occurred()) SWIG_fail;
5027 }
5028 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5029 return resultobj;
5030 fail:
5031 return NULL;
5032 }
5033
5034
5035 SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5036 PyObject *obj;
5037 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5038 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5039 return SWIG_Py_Void();
5040 }
5041
5042 SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5043 return SWIG_Python_InitShadowInstance(args);
5044 }
5045
5046 SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5047 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5048 return 1;
5049 }
5050
5051
5052 SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5053 PyObject *pyobj = 0;
5054
5055 {
5056 #if wxUSE_UNICODE
5057 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5058 #else
5059 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5060 #endif
5061 }
5062 return pyobj;
5063 }
5064
5065
5066 SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5067 PyObject *resultobj = 0;
5068 wxWindow *arg1 = (wxWindow *) 0 ;
5069 int arg2 = (int) -1 ;
5070 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5071 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5072 wxSize const &arg4_defvalue = wxDefaultSize ;
5073 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5074 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5075 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5076 long arg6 = (long) 0 ;
5077 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5078 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5079 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5080 wxString *arg8 = (wxString *) &arg8_defvalue ;
5081 wxChoice *result = 0 ;
5082 void *argp1 = 0 ;
5083 int res1 = 0 ;
5084 int val2 ;
5085 int ecode2 = 0 ;
5086 wxPoint temp3 ;
5087 wxSize temp4 ;
5088 bool temp5 = false ;
5089 long val6 ;
5090 int ecode6 = 0 ;
5091 void *argp7 = 0 ;
5092 int res7 = 0 ;
5093 bool temp8 = false ;
5094 PyObject * obj0 = 0 ;
5095 PyObject * obj1 = 0 ;
5096 PyObject * obj2 = 0 ;
5097 PyObject * obj3 = 0 ;
5098 PyObject * obj4 = 0 ;
5099 PyObject * obj5 = 0 ;
5100 PyObject * obj6 = 0 ;
5101 PyObject * obj7 = 0 ;
5102 char * kwnames[] = {
5103 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5104 };
5105
5106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5108 if (!SWIG_IsOK(res1)) {
5109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5110 }
5111 arg1 = reinterpret_cast< wxWindow * >(argp1);
5112 if (obj1) {
5113 ecode2 = SWIG_AsVal_int(obj1, &val2);
5114 if (!SWIG_IsOK(ecode2)) {
5115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5116 }
5117 arg2 = static_cast< int >(val2);
5118 }
5119 if (obj2) {
5120 {
5121 arg3 = &temp3;
5122 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5123 }
5124 }
5125 if (obj3) {
5126 {
5127 arg4 = &temp4;
5128 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5129 }
5130 }
5131 if (obj4) {
5132 {
5133 if (! PySequence_Check(obj4)) {
5134 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5135 SWIG_fail;
5136 }
5137 arg5 = new wxArrayString;
5138 temp5 = true;
5139 int i, len=PySequence_Length(obj4);
5140 for (i=0; i<len; i++) {
5141 PyObject* item = PySequence_GetItem(obj4, i);
5142 wxString* s = wxString_in_helper(item);
5143 if (PyErr_Occurred()) SWIG_fail;
5144 arg5->Add(*s);
5145 delete s;
5146 Py_DECREF(item);
5147 }
5148 }
5149 }
5150 if (obj5) {
5151 ecode6 = SWIG_AsVal_long(obj5, &val6);
5152 if (!SWIG_IsOK(ecode6)) {
5153 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5154 }
5155 arg6 = static_cast< long >(val6);
5156 }
5157 if (obj6) {
5158 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5159 if (!SWIG_IsOK(res7)) {
5160 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5161 }
5162 if (!argp7) {
5163 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5164 }
5165 arg7 = reinterpret_cast< wxValidator * >(argp7);
5166 }
5167 if (obj7) {
5168 {
5169 arg8 = wxString_in_helper(obj7);
5170 if (arg8 == NULL) SWIG_fail;
5171 temp8 = true;
5172 }
5173 }
5174 {
5175 if (!wxPyCheckForApp()) SWIG_fail;
5176 PyThreadState* __tstate = wxPyBeginAllowThreads();
5177 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5178 wxPyEndAllowThreads(__tstate);
5179 if (PyErr_Occurred()) SWIG_fail;
5180 }
5181 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5182 {
5183 if (temp5) delete arg5;
5184 }
5185 {
5186 if (temp8)
5187 delete arg8;
5188 }
5189 return resultobj;
5190 fail:
5191 {
5192 if (temp5) delete arg5;
5193 }
5194 {
5195 if (temp8)
5196 delete arg8;
5197 }
5198 return NULL;
5199 }
5200
5201
5202 SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5203 PyObject *resultobj = 0;
5204 wxChoice *result = 0 ;
5205
5206 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5207 {
5208 if (!wxPyCheckForApp()) SWIG_fail;
5209 PyThreadState* __tstate = wxPyBeginAllowThreads();
5210 result = (wxChoice *)new wxChoice();
5211 wxPyEndAllowThreads(__tstate);
5212 if (PyErr_Occurred()) SWIG_fail;
5213 }
5214 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5215 return resultobj;
5216 fail:
5217 return NULL;
5218 }
5219
5220
5221 SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5222 PyObject *resultobj = 0;
5223 wxChoice *arg1 = (wxChoice *) 0 ;
5224 wxWindow *arg2 = (wxWindow *) 0 ;
5225 int arg3 = (int) -1 ;
5226 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5227 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5228 wxSize const &arg5_defvalue = wxDefaultSize ;
5229 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5230 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5231 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5232 long arg7 = (long) 0 ;
5233 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5234 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5235 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5236 wxString *arg9 = (wxString *) &arg9_defvalue ;
5237 bool result;
5238 void *argp1 = 0 ;
5239 int res1 = 0 ;
5240 void *argp2 = 0 ;
5241 int res2 = 0 ;
5242 int val3 ;
5243 int ecode3 = 0 ;
5244 wxPoint temp4 ;
5245 wxSize temp5 ;
5246 bool temp6 = false ;
5247 long val7 ;
5248 int ecode7 = 0 ;
5249 void *argp8 = 0 ;
5250 int res8 = 0 ;
5251 bool temp9 = false ;
5252 PyObject * obj0 = 0 ;
5253 PyObject * obj1 = 0 ;
5254 PyObject * obj2 = 0 ;
5255 PyObject * obj3 = 0 ;
5256 PyObject * obj4 = 0 ;
5257 PyObject * obj5 = 0 ;
5258 PyObject * obj6 = 0 ;
5259 PyObject * obj7 = 0 ;
5260 PyObject * obj8 = 0 ;
5261 char * kwnames[] = {
5262 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5263 };
5264
5265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5267 if (!SWIG_IsOK(res1)) {
5268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5269 }
5270 arg1 = reinterpret_cast< wxChoice * >(argp1);
5271 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5272 if (!SWIG_IsOK(res2)) {
5273 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5274 }
5275 arg2 = reinterpret_cast< wxWindow * >(argp2);
5276 if (obj2) {
5277 ecode3 = SWIG_AsVal_int(obj2, &val3);
5278 if (!SWIG_IsOK(ecode3)) {
5279 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5280 }
5281 arg3 = static_cast< int >(val3);
5282 }
5283 if (obj3) {
5284 {
5285 arg4 = &temp4;
5286 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5287 }
5288 }
5289 if (obj4) {
5290 {
5291 arg5 = &temp5;
5292 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5293 }
5294 }
5295 if (obj5) {
5296 {
5297 if (! PySequence_Check(obj5)) {
5298 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5299 SWIG_fail;
5300 }
5301 arg6 = new wxArrayString;
5302 temp6 = true;
5303 int i, len=PySequence_Length(obj5);
5304 for (i=0; i<len; i++) {
5305 PyObject* item = PySequence_GetItem(obj5, i);
5306 wxString* s = wxString_in_helper(item);
5307 if (PyErr_Occurred()) SWIG_fail;
5308 arg6->Add(*s);
5309 delete s;
5310 Py_DECREF(item);
5311 }
5312 }
5313 }
5314 if (obj6) {
5315 ecode7 = SWIG_AsVal_long(obj6, &val7);
5316 if (!SWIG_IsOK(ecode7)) {
5317 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5318 }
5319 arg7 = static_cast< long >(val7);
5320 }
5321 if (obj7) {
5322 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5323 if (!SWIG_IsOK(res8)) {
5324 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5325 }
5326 if (!argp8) {
5327 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5328 }
5329 arg8 = reinterpret_cast< wxValidator * >(argp8);
5330 }
5331 if (obj8) {
5332 {
5333 arg9 = wxString_in_helper(obj8);
5334 if (arg9 == NULL) SWIG_fail;
5335 temp9 = true;
5336 }
5337 }
5338 {
5339 PyThreadState* __tstate = wxPyBeginAllowThreads();
5340 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5341 wxPyEndAllowThreads(__tstate);
5342 if (PyErr_Occurred()) SWIG_fail;
5343 }
5344 {
5345 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5346 }
5347 {
5348 if (temp6) delete arg6;
5349 }
5350 {
5351 if (temp9)
5352 delete arg9;
5353 }
5354 return resultobj;
5355 fail:
5356 {
5357 if (temp6) delete arg6;
5358 }
5359 {
5360 if (temp9)
5361 delete arg9;
5362 }
5363 return NULL;
5364 }
5365
5366
5367 SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5368 PyObject *resultobj = 0;
5369 wxChoice *arg1 = (wxChoice *) 0 ;
5370 int result;
5371 void *argp1 = 0 ;
5372 int res1 = 0 ;
5373 PyObject *swig_obj[1] ;
5374
5375 if (!args) SWIG_fail;
5376 swig_obj[0] = args;
5377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5378 if (!SWIG_IsOK(res1)) {
5379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5380 }
5381 arg1 = reinterpret_cast< wxChoice * >(argp1);
5382 {
5383 PyThreadState* __tstate = wxPyBeginAllowThreads();
5384 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5385 wxPyEndAllowThreads(__tstate);
5386 if (PyErr_Occurred()) SWIG_fail;
5387 }
5388 resultobj = SWIG_From_int(static_cast< int >(result));
5389 return resultobj;
5390 fail:
5391 return NULL;
5392 }
5393
5394
5395 SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5396 PyObject *resultobj = 0;
5397 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5398 SwigValueWrapper<wxVisualAttributes > result;
5399 int val1 ;
5400 int ecode1 = 0 ;
5401 PyObject * obj0 = 0 ;
5402 char * kwnames[] = {
5403 (char *) "variant", NULL
5404 };
5405
5406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5407 if (obj0) {
5408 ecode1 = SWIG_AsVal_int(obj0, &val1);
5409 if (!SWIG_IsOK(ecode1)) {
5410 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5411 }
5412 arg1 = static_cast< wxWindowVariant >(val1);
5413 }
5414 {
5415 if (!wxPyCheckForApp()) SWIG_fail;
5416 PyThreadState* __tstate = wxPyBeginAllowThreads();
5417 result = wxChoice::GetClassDefaultAttributes(arg1);
5418 wxPyEndAllowThreads(__tstate);
5419 if (PyErr_Occurred()) SWIG_fail;
5420 }
5421 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5422 return resultobj;
5423 fail:
5424 return NULL;
5425 }
5426
5427
5428 SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5429 PyObject *obj;
5430 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5431 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5432 return SWIG_Py_Void();
5433 }
5434
5435 SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5436 return SWIG_Python_InitShadowInstance(args);
5437 }
5438
5439 SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5440 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5441 return 1;
5442 }
5443
5444
5445 SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5446 PyObject *pyobj = 0;
5447
5448 {
5449 #if wxUSE_UNICODE
5450 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5451 #else
5452 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5453 #endif
5454 }
5455 return pyobj;
5456 }
5457
5458
5459 SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5460 PyObject *resultobj = 0;
5461 wxWindow *arg1 = (wxWindow *) 0 ;
5462 int arg2 = (int) -1 ;
5463 wxString const &arg3_defvalue = wxPyEmptyString ;
5464 wxString *arg3 = (wxString *) &arg3_defvalue ;
5465 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5466 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5467 wxSize const &arg5_defvalue = wxDefaultSize ;
5468 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5469 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5470 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5471 long arg7 = (long) 0 ;
5472 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5473 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5474 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5475 wxString *arg9 = (wxString *) &arg9_defvalue ;
5476 wxComboBox *result = 0 ;
5477 void *argp1 = 0 ;
5478 int res1 = 0 ;
5479 int val2 ;
5480 int ecode2 = 0 ;
5481 bool temp3 = false ;
5482 wxPoint temp4 ;
5483 wxSize temp5 ;
5484 bool temp6 = false ;
5485 long val7 ;
5486 int ecode7 = 0 ;
5487 void *argp8 = 0 ;
5488 int res8 = 0 ;
5489 bool temp9 = false ;
5490 PyObject * obj0 = 0 ;
5491 PyObject * obj1 = 0 ;
5492 PyObject * obj2 = 0 ;
5493 PyObject * obj3 = 0 ;
5494 PyObject * obj4 = 0 ;
5495 PyObject * obj5 = 0 ;
5496 PyObject * obj6 = 0 ;
5497 PyObject * obj7 = 0 ;
5498 PyObject * obj8 = 0 ;
5499 char * kwnames[] = {
5500 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5501 };
5502
5503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5505 if (!SWIG_IsOK(res1)) {
5506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5507 }
5508 arg1 = reinterpret_cast< wxWindow * >(argp1);
5509 if (obj1) {
5510 ecode2 = SWIG_AsVal_int(obj1, &val2);
5511 if (!SWIG_IsOK(ecode2)) {
5512 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5513 }
5514 arg2 = static_cast< int >(val2);
5515 }
5516 if (obj2) {
5517 {
5518 arg3 = wxString_in_helper(obj2);
5519 if (arg3 == NULL) SWIG_fail;
5520 temp3 = true;
5521 }
5522 }
5523 if (obj3) {
5524 {
5525 arg4 = &temp4;
5526 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5527 }
5528 }
5529 if (obj4) {
5530 {
5531 arg5 = &temp5;
5532 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5533 }
5534 }
5535 if (obj5) {
5536 {
5537 if (! PySequence_Check(obj5)) {
5538 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5539 SWIG_fail;
5540 }
5541 arg6 = new wxArrayString;
5542 temp6 = true;
5543 int i, len=PySequence_Length(obj5);
5544 for (i=0; i<len; i++) {
5545 PyObject* item = PySequence_GetItem(obj5, i);
5546 wxString* s = wxString_in_helper(item);
5547 if (PyErr_Occurred()) SWIG_fail;
5548 arg6->Add(*s);
5549 delete s;
5550 Py_DECREF(item);
5551 }
5552 }
5553 }
5554 if (obj6) {
5555 ecode7 = SWIG_AsVal_long(obj6, &val7);
5556 if (!SWIG_IsOK(ecode7)) {
5557 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5558 }
5559 arg7 = static_cast< long >(val7);
5560 }
5561 if (obj7) {
5562 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5563 if (!SWIG_IsOK(res8)) {
5564 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5565 }
5566 if (!argp8) {
5567 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5568 }
5569 arg8 = reinterpret_cast< wxValidator * >(argp8);
5570 }
5571 if (obj8) {
5572 {
5573 arg9 = wxString_in_helper(obj8);
5574 if (arg9 == NULL) SWIG_fail;
5575 temp9 = true;
5576 }
5577 }
5578 {
5579 if (!wxPyCheckForApp()) SWIG_fail;
5580 PyThreadState* __tstate = wxPyBeginAllowThreads();
5581 result = (wxComboBox *)new wxComboBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5582 wxPyEndAllowThreads(__tstate);
5583 if (PyErr_Occurred()) SWIG_fail;
5584 }
5585 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5586 {
5587 if (temp3)
5588 delete arg3;
5589 }
5590 {
5591 if (temp6) delete arg6;
5592 }
5593 {
5594 if (temp9)
5595 delete arg9;
5596 }
5597 return resultobj;
5598 fail:
5599 {
5600 if (temp3)
5601 delete arg3;
5602 }
5603 {
5604 if (temp6) delete arg6;
5605 }
5606 {
5607 if (temp9)
5608 delete arg9;
5609 }
5610 return NULL;
5611 }
5612
5613
5614 SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5615 PyObject *resultobj = 0;
5616 wxComboBox *result = 0 ;
5617
5618 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5619 {
5620 if (!wxPyCheckForApp()) SWIG_fail;
5621 PyThreadState* __tstate = wxPyBeginAllowThreads();
5622 result = (wxComboBox *)new wxComboBox();
5623 wxPyEndAllowThreads(__tstate);
5624 if (PyErr_Occurred()) SWIG_fail;
5625 }
5626 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5627 return resultobj;
5628 fail:
5629 return NULL;
5630 }
5631
5632
5633 SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5634 PyObject *resultobj = 0;
5635 wxComboBox *arg1 = (wxComboBox *) 0 ;
5636 wxWindow *arg2 = (wxWindow *) 0 ;
5637 int arg3 = (int) -1 ;
5638 wxString const &arg4_defvalue = wxPyEmptyString ;
5639 wxString *arg4 = (wxString *) &arg4_defvalue ;
5640 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5641 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5642 wxSize const &arg6_defvalue = wxDefaultSize ;
5643 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5644 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5645 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5646 long arg8 = (long) 0 ;
5647 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5648 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5649 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5650 wxString *arg10 = (wxString *) &arg10_defvalue ;
5651 bool result;
5652 void *argp1 = 0 ;
5653 int res1 = 0 ;
5654 void *argp2 = 0 ;
5655 int res2 = 0 ;
5656 int val3 ;
5657 int ecode3 = 0 ;
5658 bool temp4 = false ;
5659 wxPoint temp5 ;
5660 wxSize temp6 ;
5661 bool temp7 = false ;
5662 long val8 ;
5663 int ecode8 = 0 ;
5664 void *argp9 = 0 ;
5665 int res9 = 0 ;
5666 bool temp10 = false ;
5667 PyObject * obj0 = 0 ;
5668 PyObject * obj1 = 0 ;
5669 PyObject * obj2 = 0 ;
5670 PyObject * obj3 = 0 ;
5671 PyObject * obj4 = 0 ;
5672 PyObject * obj5 = 0 ;
5673 PyObject * obj6 = 0 ;
5674 PyObject * obj7 = 0 ;
5675 PyObject * obj8 = 0 ;
5676 PyObject * obj9 = 0 ;
5677 char * kwnames[] = {
5678 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5679 };
5680
5681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5683 if (!SWIG_IsOK(res1)) {
5684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5685 }
5686 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5687 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5688 if (!SWIG_IsOK(res2)) {
5689 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5690 }
5691 arg2 = reinterpret_cast< wxWindow * >(argp2);
5692 if (obj2) {
5693 ecode3 = SWIG_AsVal_int(obj2, &val3);
5694 if (!SWIG_IsOK(ecode3)) {
5695 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5696 }
5697 arg3 = static_cast< int >(val3);
5698 }
5699 if (obj3) {
5700 {
5701 arg4 = wxString_in_helper(obj3);
5702 if (arg4 == NULL) SWIG_fail;
5703 temp4 = true;
5704 }
5705 }
5706 if (obj4) {
5707 {
5708 arg5 = &temp5;
5709 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5710 }
5711 }
5712 if (obj5) {
5713 {
5714 arg6 = &temp6;
5715 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5716 }
5717 }
5718 if (obj6) {
5719 {
5720 if (! PySequence_Check(obj6)) {
5721 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5722 SWIG_fail;
5723 }
5724 arg7 = new wxArrayString;
5725 temp7 = true;
5726 int i, len=PySequence_Length(obj6);
5727 for (i=0; i<len; i++) {
5728 PyObject* item = PySequence_GetItem(obj6, i);
5729 wxString* s = wxString_in_helper(item);
5730 if (PyErr_Occurred()) SWIG_fail;
5731 arg7->Add(*s);
5732 delete s;
5733 Py_DECREF(item);
5734 }
5735 }
5736 }
5737 if (obj7) {
5738 ecode8 = SWIG_AsVal_long(obj7, &val8);
5739 if (!SWIG_IsOK(ecode8)) {
5740 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5741 }
5742 arg8 = static_cast< long >(val8);
5743 }
5744 if (obj8) {
5745 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5746 if (!SWIG_IsOK(res9)) {
5747 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5748 }
5749 if (!argp9) {
5750 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5751 }
5752 arg9 = reinterpret_cast< wxValidator * >(argp9);
5753 }
5754 if (obj9) {
5755 {
5756 arg10 = wxString_in_helper(obj9);
5757 if (arg10 == NULL) SWIG_fail;
5758 temp10 = true;
5759 }
5760 }
5761 {
5762 PyThreadState* __tstate = wxPyBeginAllowThreads();
5763 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
5764 wxPyEndAllowThreads(__tstate);
5765 if (PyErr_Occurred()) SWIG_fail;
5766 }
5767 {
5768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5769 }
5770 {
5771 if (temp4)
5772 delete arg4;
5773 }
5774 {
5775 if (temp7) delete arg7;
5776 }
5777 {
5778 if (temp10)
5779 delete arg10;
5780 }
5781 return resultobj;
5782 fail:
5783 {
5784 if (temp4)
5785 delete arg4;
5786 }
5787 {
5788 if (temp7) delete arg7;
5789 }
5790 {
5791 if (temp10)
5792 delete arg10;
5793 }
5794 return NULL;
5795 }
5796
5797
5798 SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5799 PyObject *resultobj = 0;
5800 wxComboBox *arg1 = (wxComboBox *) 0 ;
5801 wxString result;
5802 void *argp1 = 0 ;
5803 int res1 = 0 ;
5804 PyObject *swig_obj[1] ;
5805
5806 if (!args) SWIG_fail;
5807 swig_obj[0] = args;
5808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5809 if (!SWIG_IsOK(res1)) {
5810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5811 }
5812 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5813 {
5814 PyThreadState* __tstate = wxPyBeginAllowThreads();
5815 result = ((wxComboBox const *)arg1)->GetValue();
5816 wxPyEndAllowThreads(__tstate);
5817 if (PyErr_Occurred()) SWIG_fail;
5818 }
5819 {
5820 #if wxUSE_UNICODE
5821 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5822 #else
5823 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5824 #endif
5825 }
5826 return resultobj;
5827 fail:
5828 return NULL;
5829 }
5830
5831
5832 SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5833 PyObject *resultobj = 0;
5834 wxComboBox *arg1 = (wxComboBox *) 0 ;
5835 wxString *arg2 = 0 ;
5836 void *argp1 = 0 ;
5837 int res1 = 0 ;
5838 bool temp2 = false ;
5839 PyObject * obj0 = 0 ;
5840 PyObject * obj1 = 0 ;
5841 char * kwnames[] = {
5842 (char *) "self",(char *) "value", NULL
5843 };
5844
5845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5847 if (!SWIG_IsOK(res1)) {
5848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5849 }
5850 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5851 {
5852 arg2 = wxString_in_helper(obj1);
5853 if (arg2 == NULL) SWIG_fail;
5854 temp2 = true;
5855 }
5856 {
5857 PyThreadState* __tstate = wxPyBeginAllowThreads();
5858 (arg1)->SetValue((wxString const &)*arg2);
5859 wxPyEndAllowThreads(__tstate);
5860 if (PyErr_Occurred()) SWIG_fail;
5861 }
5862 resultobj = SWIG_Py_Void();
5863 {
5864 if (temp2)
5865 delete arg2;
5866 }
5867 return resultobj;
5868 fail:
5869 {
5870 if (temp2)
5871 delete arg2;
5872 }
5873 return NULL;
5874 }
5875
5876
5877 SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5878 PyObject *resultobj = 0;
5879 wxComboBox *arg1 = (wxComboBox *) 0 ;
5880 void *argp1 = 0 ;
5881 int res1 = 0 ;
5882 PyObject *swig_obj[1] ;
5883
5884 if (!args) SWIG_fail;
5885 swig_obj[0] = args;
5886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5887 if (!SWIG_IsOK(res1)) {
5888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5889 }
5890 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5891 {
5892 PyThreadState* __tstate = wxPyBeginAllowThreads();
5893 (arg1)->Copy();
5894 wxPyEndAllowThreads(__tstate);
5895 if (PyErr_Occurred()) SWIG_fail;
5896 }
5897 resultobj = SWIG_Py_Void();
5898 return resultobj;
5899 fail:
5900 return NULL;
5901 }
5902
5903
5904 SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5905 PyObject *resultobj = 0;
5906 wxComboBox *arg1 = (wxComboBox *) 0 ;
5907 void *argp1 = 0 ;
5908 int res1 = 0 ;
5909 PyObject *swig_obj[1] ;
5910
5911 if (!args) SWIG_fail;
5912 swig_obj[0] = args;
5913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5914 if (!SWIG_IsOK(res1)) {
5915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5916 }
5917 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5918 {
5919 PyThreadState* __tstate = wxPyBeginAllowThreads();
5920 (arg1)->Cut();
5921 wxPyEndAllowThreads(__tstate);
5922 if (PyErr_Occurred()) SWIG_fail;
5923 }
5924 resultobj = SWIG_Py_Void();
5925 return resultobj;
5926 fail:
5927 return NULL;
5928 }
5929
5930
5931 SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5932 PyObject *resultobj = 0;
5933 wxComboBox *arg1 = (wxComboBox *) 0 ;
5934 void *argp1 = 0 ;
5935 int res1 = 0 ;
5936 PyObject *swig_obj[1] ;
5937
5938 if (!args) SWIG_fail;
5939 swig_obj[0] = args;
5940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5941 if (!SWIG_IsOK(res1)) {
5942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5943 }
5944 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5945 {
5946 PyThreadState* __tstate = wxPyBeginAllowThreads();
5947 (arg1)->Paste();
5948 wxPyEndAllowThreads(__tstate);
5949 if (PyErr_Occurred()) SWIG_fail;
5950 }
5951 resultobj = SWIG_Py_Void();
5952 return resultobj;
5953 fail:
5954 return NULL;
5955 }
5956
5957
5958 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5959 PyObject *resultobj = 0;
5960 wxComboBox *arg1 = (wxComboBox *) 0 ;
5961 long arg2 ;
5962 void *argp1 = 0 ;
5963 int res1 = 0 ;
5964 long val2 ;
5965 int ecode2 = 0 ;
5966 PyObject * obj0 = 0 ;
5967 PyObject * obj1 = 0 ;
5968 char * kwnames[] = {
5969 (char *) "self",(char *) "pos", NULL
5970 };
5971
5972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5974 if (!SWIG_IsOK(res1)) {
5975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
5976 }
5977 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5978 ecode2 = SWIG_AsVal_long(obj1, &val2);
5979 if (!SWIG_IsOK(ecode2)) {
5980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
5981 }
5982 arg2 = static_cast< long >(val2);
5983 {
5984 PyThreadState* __tstate = wxPyBeginAllowThreads();
5985 (arg1)->SetInsertionPoint(arg2);
5986 wxPyEndAllowThreads(__tstate);
5987 if (PyErr_Occurred()) SWIG_fail;
5988 }
5989 resultobj = SWIG_Py_Void();
5990 return resultobj;
5991 fail:
5992 return NULL;
5993 }
5994
5995
5996 SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5997 PyObject *resultobj = 0;
5998 wxComboBox *arg1 = (wxComboBox *) 0 ;
5999 long result;
6000 void *argp1 = 0 ;
6001 int res1 = 0 ;
6002 PyObject *swig_obj[1] ;
6003
6004 if (!args) SWIG_fail;
6005 swig_obj[0] = args;
6006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6007 if (!SWIG_IsOK(res1)) {
6008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6009 }
6010 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6011 {
6012 PyThreadState* __tstate = wxPyBeginAllowThreads();
6013 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6014 wxPyEndAllowThreads(__tstate);
6015 if (PyErr_Occurred()) SWIG_fail;
6016 }
6017 resultobj = SWIG_From_long(static_cast< long >(result));
6018 return resultobj;
6019 fail:
6020 return NULL;
6021 }
6022
6023
6024 SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6025 PyObject *resultobj = 0;
6026 wxComboBox *arg1 = (wxComboBox *) 0 ;
6027 long result;
6028 void *argp1 = 0 ;
6029 int res1 = 0 ;
6030 PyObject *swig_obj[1] ;
6031
6032 if (!args) SWIG_fail;
6033 swig_obj[0] = args;
6034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6035 if (!SWIG_IsOK(res1)) {
6036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6037 }
6038 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6039 {
6040 PyThreadState* __tstate = wxPyBeginAllowThreads();
6041 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6042 wxPyEndAllowThreads(__tstate);
6043 if (PyErr_Occurred()) SWIG_fail;
6044 }
6045 resultobj = SWIG_From_long(static_cast< long >(result));
6046 return resultobj;
6047 fail:
6048 return NULL;
6049 }
6050
6051
6052 SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6053 PyObject *resultobj = 0;
6054 wxComboBox *arg1 = (wxComboBox *) 0 ;
6055 long arg2 ;
6056 long arg3 ;
6057 wxString *arg4 = 0 ;
6058 void *argp1 = 0 ;
6059 int res1 = 0 ;
6060 long val2 ;
6061 int ecode2 = 0 ;
6062 long val3 ;
6063 int ecode3 = 0 ;
6064 bool temp4 = false ;
6065 PyObject * obj0 = 0 ;
6066 PyObject * obj1 = 0 ;
6067 PyObject * obj2 = 0 ;
6068 PyObject * obj3 = 0 ;
6069 char * kwnames[] = {
6070 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
6071 };
6072
6073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6075 if (!SWIG_IsOK(res1)) {
6076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6077 }
6078 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6079 ecode2 = SWIG_AsVal_long(obj1, &val2);
6080 if (!SWIG_IsOK(ecode2)) {
6081 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6082 }
6083 arg2 = static_cast< long >(val2);
6084 ecode3 = SWIG_AsVal_long(obj2, &val3);
6085 if (!SWIG_IsOK(ecode3)) {
6086 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6087 }
6088 arg3 = static_cast< long >(val3);
6089 {
6090 arg4 = wxString_in_helper(obj3);
6091 if (arg4 == NULL) SWIG_fail;
6092 temp4 = true;
6093 }
6094 {
6095 PyThreadState* __tstate = wxPyBeginAllowThreads();
6096 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6097 wxPyEndAllowThreads(__tstate);
6098 if (PyErr_Occurred()) SWIG_fail;
6099 }
6100 resultobj = SWIG_Py_Void();
6101 {
6102 if (temp4)
6103 delete arg4;
6104 }
6105 return resultobj;
6106 fail:
6107 {
6108 if (temp4)
6109 delete arg4;
6110 }
6111 return NULL;
6112 }
6113
6114
6115 SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6116 PyObject *resultobj = 0;
6117 wxComboBox *arg1 = (wxComboBox *) 0 ;
6118 long arg2 ;
6119 long arg3 ;
6120 void *argp1 = 0 ;
6121 int res1 = 0 ;
6122 long val2 ;
6123 int ecode2 = 0 ;
6124 long val3 ;
6125 int ecode3 = 0 ;
6126 PyObject * obj0 = 0 ;
6127 PyObject * obj1 = 0 ;
6128 PyObject * obj2 = 0 ;
6129 char * kwnames[] = {
6130 (char *) "self",(char *) "from",(char *) "to", NULL
6131 };
6132
6133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6135 if (!SWIG_IsOK(res1)) {
6136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6137 }
6138 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6139 ecode2 = SWIG_AsVal_long(obj1, &val2);
6140 if (!SWIG_IsOK(ecode2)) {
6141 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6142 }
6143 arg2 = static_cast< long >(val2);
6144 ecode3 = SWIG_AsVal_long(obj2, &val3);
6145 if (!SWIG_IsOK(ecode3)) {
6146 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6147 }
6148 arg3 = static_cast< long >(val3);
6149 {
6150 PyThreadState* __tstate = wxPyBeginAllowThreads();
6151 (arg1)->SetSelection(arg2,arg3);
6152 wxPyEndAllowThreads(__tstate);
6153 if (PyErr_Occurred()) SWIG_fail;
6154 }
6155 resultobj = SWIG_Py_Void();
6156 return resultobj;
6157 fail:
6158 return NULL;
6159 }
6160
6161
6162 SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6163 PyObject *resultobj = 0;
6164 wxComboBox *arg1 = (wxComboBox *) 0 ;
6165 int result;
6166 void *argp1 = 0 ;
6167 int res1 = 0 ;
6168 PyObject *swig_obj[1] ;
6169
6170 if (!args) SWIG_fail;
6171 swig_obj[0] = args;
6172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6173 if (!SWIG_IsOK(res1)) {
6174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6175 }
6176 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6177 {
6178 PyThreadState* __tstate = wxPyBeginAllowThreads();
6179 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6180 wxPyEndAllowThreads(__tstate);
6181 if (PyErr_Occurred()) SWIG_fail;
6182 }
6183 resultobj = SWIG_From_int(static_cast< int >(result));
6184 return resultobj;
6185 fail:
6186 return NULL;
6187 }
6188
6189
6190 SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6191 PyObject *resultobj = 0;
6192 wxComboBox *arg1 = (wxComboBox *) 0 ;
6193 wxString *arg2 = 0 ;
6194 bool result;
6195 void *argp1 = 0 ;
6196 int res1 = 0 ;
6197 bool temp2 = false ;
6198 PyObject * obj0 = 0 ;
6199 PyObject * obj1 = 0 ;
6200 char * kwnames[] = {
6201 (char *) "self",(char *) "string", NULL
6202 };
6203
6204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6206 if (!SWIG_IsOK(res1)) {
6207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6208 }
6209 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6210 {
6211 arg2 = wxString_in_helper(obj1);
6212 if (arg2 == NULL) SWIG_fail;
6213 temp2 = true;
6214 }
6215 {
6216 PyThreadState* __tstate = wxPyBeginAllowThreads();
6217 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6218 wxPyEndAllowThreads(__tstate);
6219 if (PyErr_Occurred()) SWIG_fail;
6220 }
6221 {
6222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6223 }
6224 {
6225 if (temp2)
6226 delete arg2;
6227 }
6228 return resultobj;
6229 fail:
6230 {
6231 if (temp2)
6232 delete arg2;
6233 }
6234 return NULL;
6235 }
6236
6237
6238 SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6239 PyObject *resultobj = 0;
6240 wxComboBox *arg1 = (wxComboBox *) 0 ;
6241 int arg2 ;
6242 wxString *arg3 = 0 ;
6243 void *argp1 = 0 ;
6244 int res1 = 0 ;
6245 int val2 ;
6246 int ecode2 = 0 ;
6247 bool temp3 = false ;
6248 PyObject * obj0 = 0 ;
6249 PyObject * obj1 = 0 ;
6250 PyObject * obj2 = 0 ;
6251 char * kwnames[] = {
6252 (char *) "self",(char *) "n",(char *) "string", NULL
6253 };
6254
6255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6257 if (!SWIG_IsOK(res1)) {
6258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'");
6259 }
6260 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6261 ecode2 = SWIG_AsVal_int(obj1, &val2);
6262 if (!SWIG_IsOK(ecode2)) {
6263 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'");
6264 }
6265 arg2 = static_cast< int >(val2);
6266 {
6267 arg3 = wxString_in_helper(obj2);
6268 if (arg3 == NULL) SWIG_fail;
6269 temp3 = true;
6270 }
6271 {
6272 PyThreadState* __tstate = wxPyBeginAllowThreads();
6273 (arg1)->SetString(arg2,(wxString const &)*arg3);
6274 wxPyEndAllowThreads(__tstate);
6275 if (PyErr_Occurred()) SWIG_fail;
6276 }
6277 resultobj = SWIG_Py_Void();
6278 {
6279 if (temp3)
6280 delete arg3;
6281 }
6282 return resultobj;
6283 fail:
6284 {
6285 if (temp3)
6286 delete arg3;
6287 }
6288 return NULL;
6289 }
6290
6291
6292 SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6293 PyObject *resultobj = 0;
6294 wxComboBox *arg1 = (wxComboBox *) 0 ;
6295 bool arg2 ;
6296 void *argp1 = 0 ;
6297 int res1 = 0 ;
6298 bool val2 ;
6299 int ecode2 = 0 ;
6300 PyObject * obj0 = 0 ;
6301 PyObject * obj1 = 0 ;
6302 char * kwnames[] = {
6303 (char *) "self",(char *) "editable", NULL
6304 };
6305
6306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6308 if (!SWIG_IsOK(res1)) {
6309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6310 }
6311 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6312 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6313 if (!SWIG_IsOK(ecode2)) {
6314 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6315 }
6316 arg2 = static_cast< bool >(val2);
6317 {
6318 PyThreadState* __tstate = wxPyBeginAllowThreads();
6319 (arg1)->SetEditable(arg2);
6320 wxPyEndAllowThreads(__tstate);
6321 if (PyErr_Occurred()) SWIG_fail;
6322 }
6323 resultobj = SWIG_Py_Void();
6324 return resultobj;
6325 fail:
6326 return NULL;
6327 }
6328
6329
6330 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6331 PyObject *resultobj = 0;
6332 wxComboBox *arg1 = (wxComboBox *) 0 ;
6333 void *argp1 = 0 ;
6334 int res1 = 0 ;
6335 PyObject *swig_obj[1] ;
6336
6337 if (!args) SWIG_fail;
6338 swig_obj[0] = args;
6339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6340 if (!SWIG_IsOK(res1)) {
6341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6342 }
6343 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6344 {
6345 PyThreadState* __tstate = wxPyBeginAllowThreads();
6346 (arg1)->SetInsertionPointEnd();
6347 wxPyEndAllowThreads(__tstate);
6348 if (PyErr_Occurred()) SWIG_fail;
6349 }
6350 resultobj = SWIG_Py_Void();
6351 return resultobj;
6352 fail:
6353 return NULL;
6354 }
6355
6356
6357 SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6358 PyObject *resultobj = 0;
6359 wxComboBox *arg1 = (wxComboBox *) 0 ;
6360 long arg2 ;
6361 long arg3 ;
6362 void *argp1 = 0 ;
6363 int res1 = 0 ;
6364 long val2 ;
6365 int ecode2 = 0 ;
6366 long val3 ;
6367 int ecode3 = 0 ;
6368 PyObject * obj0 = 0 ;
6369 PyObject * obj1 = 0 ;
6370 PyObject * obj2 = 0 ;
6371 char * kwnames[] = {
6372 (char *) "self",(char *) "from",(char *) "to", NULL
6373 };
6374
6375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6377 if (!SWIG_IsOK(res1)) {
6378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6379 }
6380 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6381 ecode2 = SWIG_AsVal_long(obj1, &val2);
6382 if (!SWIG_IsOK(ecode2)) {
6383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6384 }
6385 arg2 = static_cast< long >(val2);
6386 ecode3 = SWIG_AsVal_long(obj2, &val3);
6387 if (!SWIG_IsOK(ecode3)) {
6388 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6389 }
6390 arg3 = static_cast< long >(val3);
6391 {
6392 PyThreadState* __tstate = wxPyBeginAllowThreads();
6393 (arg1)->Remove(arg2,arg3);
6394 wxPyEndAllowThreads(__tstate);
6395 if (PyErr_Occurred()) SWIG_fail;
6396 }
6397 resultobj = SWIG_Py_Void();
6398 return resultobj;
6399 fail:
6400 return NULL;
6401 }
6402
6403
6404 SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6405 PyObject *resultobj = 0;
6406 wxComboBox *arg1 = (wxComboBox *) 0 ;
6407 bool result;
6408 void *argp1 = 0 ;
6409 int res1 = 0 ;
6410 PyObject *swig_obj[1] ;
6411
6412 if (!args) SWIG_fail;
6413 swig_obj[0] = args;
6414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6415 if (!SWIG_IsOK(res1)) {
6416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6417 }
6418 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6419 {
6420 PyThreadState* __tstate = wxPyBeginAllowThreads();
6421 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6422 wxPyEndAllowThreads(__tstate);
6423 if (PyErr_Occurred()) SWIG_fail;
6424 }
6425 {
6426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6427 }
6428 return resultobj;
6429 fail:
6430 return NULL;
6431 }
6432
6433
6434 SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6435 PyObject *resultobj = 0;
6436 wxComboBox *arg1 = (wxComboBox *) 0 ;
6437 void *argp1 = 0 ;
6438 int res1 = 0 ;
6439 PyObject *swig_obj[1] ;
6440
6441 if (!args) SWIG_fail;
6442 swig_obj[0] = args;
6443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6444 if (!SWIG_IsOK(res1)) {
6445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6446 }
6447 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6448 {
6449 PyThreadState* __tstate = wxPyBeginAllowThreads();
6450 (arg1)->Undo();
6451 wxPyEndAllowThreads(__tstate);
6452 if (PyErr_Occurred()) SWIG_fail;
6453 }
6454 resultobj = SWIG_Py_Void();
6455 return resultobj;
6456 fail:
6457 return NULL;
6458 }
6459
6460
6461 SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6462 PyObject *resultobj = 0;
6463 wxComboBox *arg1 = (wxComboBox *) 0 ;
6464 void *argp1 = 0 ;
6465 int res1 = 0 ;
6466 PyObject *swig_obj[1] ;
6467
6468 if (!args) SWIG_fail;
6469 swig_obj[0] = args;
6470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6471 if (!SWIG_IsOK(res1)) {
6472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6473 }
6474 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6475 {
6476 PyThreadState* __tstate = wxPyBeginAllowThreads();
6477 (arg1)->Redo();
6478 wxPyEndAllowThreads(__tstate);
6479 if (PyErr_Occurred()) SWIG_fail;
6480 }
6481 resultobj = SWIG_Py_Void();
6482 return resultobj;
6483 fail:
6484 return NULL;
6485 }
6486
6487
6488 SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6489 PyObject *resultobj = 0;
6490 wxComboBox *arg1 = (wxComboBox *) 0 ;
6491 void *argp1 = 0 ;
6492 int res1 = 0 ;
6493 PyObject *swig_obj[1] ;
6494
6495 if (!args) SWIG_fail;
6496 swig_obj[0] = args;
6497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6498 if (!SWIG_IsOK(res1)) {
6499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6500 }
6501 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6502 {
6503 PyThreadState* __tstate = wxPyBeginAllowThreads();
6504 (arg1)->SelectAll();
6505 wxPyEndAllowThreads(__tstate);
6506 if (PyErr_Occurred()) SWIG_fail;
6507 }
6508 resultobj = SWIG_Py_Void();
6509 return resultobj;
6510 fail:
6511 return NULL;
6512 }
6513
6514
6515 SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6516 PyObject *resultobj = 0;
6517 wxComboBox *arg1 = (wxComboBox *) 0 ;
6518 bool result;
6519 void *argp1 = 0 ;
6520 int res1 = 0 ;
6521 PyObject *swig_obj[1] ;
6522
6523 if (!args) SWIG_fail;
6524 swig_obj[0] = args;
6525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6526 if (!SWIG_IsOK(res1)) {
6527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6528 }
6529 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6530 {
6531 PyThreadState* __tstate = wxPyBeginAllowThreads();
6532 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6533 wxPyEndAllowThreads(__tstate);
6534 if (PyErr_Occurred()) SWIG_fail;
6535 }
6536 {
6537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6538 }
6539 return resultobj;
6540 fail:
6541 return NULL;
6542 }
6543
6544
6545 SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6546 PyObject *resultobj = 0;
6547 wxComboBox *arg1 = (wxComboBox *) 0 ;
6548 bool result;
6549 void *argp1 = 0 ;
6550 int res1 = 0 ;
6551 PyObject *swig_obj[1] ;
6552
6553 if (!args) SWIG_fail;
6554 swig_obj[0] = args;
6555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6556 if (!SWIG_IsOK(res1)) {
6557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6558 }
6559 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6560 {
6561 PyThreadState* __tstate = wxPyBeginAllowThreads();
6562 result = (bool)((wxComboBox const *)arg1)->CanCut();
6563 wxPyEndAllowThreads(__tstate);
6564 if (PyErr_Occurred()) SWIG_fail;
6565 }
6566 {
6567 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6568 }
6569 return resultobj;
6570 fail:
6571 return NULL;
6572 }
6573
6574
6575 SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6576 PyObject *resultobj = 0;
6577 wxComboBox *arg1 = (wxComboBox *) 0 ;
6578 bool result;
6579 void *argp1 = 0 ;
6580 int res1 = 0 ;
6581 PyObject *swig_obj[1] ;
6582
6583 if (!args) SWIG_fail;
6584 swig_obj[0] = args;
6585 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6586 if (!SWIG_IsOK(res1)) {
6587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6588 }
6589 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6590 {
6591 PyThreadState* __tstate = wxPyBeginAllowThreads();
6592 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6593 wxPyEndAllowThreads(__tstate);
6594 if (PyErr_Occurred()) SWIG_fail;
6595 }
6596 {
6597 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6598 }
6599 return resultobj;
6600 fail:
6601 return NULL;
6602 }
6603
6604
6605 SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6606 PyObject *resultobj = 0;
6607 wxComboBox *arg1 = (wxComboBox *) 0 ;
6608 bool result;
6609 void *argp1 = 0 ;
6610 int res1 = 0 ;
6611 PyObject *swig_obj[1] ;
6612
6613 if (!args) SWIG_fail;
6614 swig_obj[0] = args;
6615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6616 if (!SWIG_IsOK(res1)) {
6617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6618 }
6619 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6620 {
6621 PyThreadState* __tstate = wxPyBeginAllowThreads();
6622 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6623 wxPyEndAllowThreads(__tstate);
6624 if (PyErr_Occurred()) SWIG_fail;
6625 }
6626 {
6627 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6628 }
6629 return resultobj;
6630 fail:
6631 return NULL;
6632 }
6633
6634
6635 SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6636 PyObject *resultobj = 0;
6637 wxComboBox *arg1 = (wxComboBox *) 0 ;
6638 bool result;
6639 void *argp1 = 0 ;
6640 int res1 = 0 ;
6641 PyObject *swig_obj[1] ;
6642
6643 if (!args) SWIG_fail;
6644 swig_obj[0] = args;
6645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6646 if (!SWIG_IsOK(res1)) {
6647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6648 }
6649 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6650 {
6651 PyThreadState* __tstate = wxPyBeginAllowThreads();
6652 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6653 wxPyEndAllowThreads(__tstate);
6654 if (PyErr_Occurred()) SWIG_fail;
6655 }
6656 {
6657 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6658 }
6659 return resultobj;
6660 fail:
6661 return NULL;
6662 }
6663
6664
6665 SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6666 PyObject *resultobj = 0;
6667 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6668 SwigValueWrapper<wxVisualAttributes > result;
6669 int val1 ;
6670 int ecode1 = 0 ;
6671 PyObject * obj0 = 0 ;
6672 char * kwnames[] = {
6673 (char *) "variant", NULL
6674 };
6675
6676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6677 if (obj0) {
6678 ecode1 = SWIG_AsVal_int(obj0, &val1);
6679 if (!SWIG_IsOK(ecode1)) {
6680 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6681 }
6682 arg1 = static_cast< wxWindowVariant >(val1);
6683 }
6684 {
6685 if (!wxPyCheckForApp()) SWIG_fail;
6686 PyThreadState* __tstate = wxPyBeginAllowThreads();
6687 result = wxComboBox::GetClassDefaultAttributes(arg1);
6688 wxPyEndAllowThreads(__tstate);
6689 if (PyErr_Occurred()) SWIG_fail;
6690 }
6691 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6692 return resultobj;
6693 fail:
6694 return NULL;
6695 }
6696
6697
6698 SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6699 PyObject *obj;
6700 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6701 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6702 return SWIG_Py_Void();
6703 }
6704
6705 SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6706 return SWIG_Python_InitShadowInstance(args);
6707 }
6708
6709 SWIGINTERN int GaugeNameStr_set(PyObject *) {
6710 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6711 return 1;
6712 }
6713
6714
6715 SWIGINTERN PyObject *GaugeNameStr_get(void) {
6716 PyObject *pyobj = 0;
6717
6718 {
6719 #if wxUSE_UNICODE
6720 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6721 #else
6722 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6723 #endif
6724 }
6725 return pyobj;
6726 }
6727
6728
6729 SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6730 PyObject *resultobj = 0;
6731 wxWindow *arg1 = (wxWindow *) 0 ;
6732 int arg2 = (int) -1 ;
6733 int arg3 = (int) 100 ;
6734 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6735 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6736 wxSize const &arg5_defvalue = wxDefaultSize ;
6737 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6738 long arg6 = (long) wxGA_HORIZONTAL ;
6739 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6740 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6741 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6742 wxString *arg8 = (wxString *) &arg8_defvalue ;
6743 wxGauge *result = 0 ;
6744 void *argp1 = 0 ;
6745 int res1 = 0 ;
6746 int val2 ;
6747 int ecode2 = 0 ;
6748 int val3 ;
6749 int ecode3 = 0 ;
6750 wxPoint temp4 ;
6751 wxSize temp5 ;
6752 long val6 ;
6753 int ecode6 = 0 ;
6754 void *argp7 = 0 ;
6755 int res7 = 0 ;
6756 bool temp8 = false ;
6757 PyObject * obj0 = 0 ;
6758 PyObject * obj1 = 0 ;
6759 PyObject * obj2 = 0 ;
6760 PyObject * obj3 = 0 ;
6761 PyObject * obj4 = 0 ;
6762 PyObject * obj5 = 0 ;
6763 PyObject * obj6 = 0 ;
6764 PyObject * obj7 = 0 ;
6765 char * kwnames[] = {
6766 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6767 };
6768
6769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6771 if (!SWIG_IsOK(res1)) {
6772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6773 }
6774 arg1 = reinterpret_cast< wxWindow * >(argp1);
6775 if (obj1) {
6776 ecode2 = SWIG_AsVal_int(obj1, &val2);
6777 if (!SWIG_IsOK(ecode2)) {
6778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6779 }
6780 arg2 = static_cast< int >(val2);
6781 }
6782 if (obj2) {
6783 ecode3 = SWIG_AsVal_int(obj2, &val3);
6784 if (!SWIG_IsOK(ecode3)) {
6785 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6786 }
6787 arg3 = static_cast< int >(val3);
6788 }
6789 if (obj3) {
6790 {
6791 arg4 = &temp4;
6792 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6793 }
6794 }
6795 if (obj4) {
6796 {
6797 arg5 = &temp5;
6798 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6799 }
6800 }
6801 if (obj5) {
6802 ecode6 = SWIG_AsVal_long(obj5, &val6);
6803 if (!SWIG_IsOK(ecode6)) {
6804 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6805 }
6806 arg6 = static_cast< long >(val6);
6807 }
6808 if (obj6) {
6809 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6810 if (!SWIG_IsOK(res7)) {
6811 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6812 }
6813 if (!argp7) {
6814 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6815 }
6816 arg7 = reinterpret_cast< wxValidator * >(argp7);
6817 }
6818 if (obj7) {
6819 {
6820 arg8 = wxString_in_helper(obj7);
6821 if (arg8 == NULL) SWIG_fail;
6822 temp8 = true;
6823 }
6824 }
6825 {
6826 if (!wxPyCheckForApp()) SWIG_fail;
6827 PyThreadState* __tstate = wxPyBeginAllowThreads();
6828 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6829 wxPyEndAllowThreads(__tstate);
6830 if (PyErr_Occurred()) SWIG_fail;
6831 }
6832 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6833 {
6834 if (temp8)
6835 delete arg8;
6836 }
6837 return resultobj;
6838 fail:
6839 {
6840 if (temp8)
6841 delete arg8;
6842 }
6843 return NULL;
6844 }
6845
6846
6847 SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6848 PyObject *resultobj = 0;
6849 wxGauge *result = 0 ;
6850
6851 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6852 {
6853 if (!wxPyCheckForApp()) SWIG_fail;
6854 PyThreadState* __tstate = wxPyBeginAllowThreads();
6855 result = (wxGauge *)new wxGauge();
6856 wxPyEndAllowThreads(__tstate);
6857 if (PyErr_Occurred()) SWIG_fail;
6858 }
6859 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6860 return resultobj;
6861 fail:
6862 return NULL;
6863 }
6864
6865
6866 SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6867 PyObject *resultobj = 0;
6868 wxGauge *arg1 = (wxGauge *) 0 ;
6869 wxWindow *arg2 = (wxWindow *) 0 ;
6870 int arg3 = (int) -1 ;
6871 int arg4 = (int) 100 ;
6872 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6873 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6874 wxSize const &arg6_defvalue = wxDefaultSize ;
6875 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6876 long arg7 = (long) wxGA_HORIZONTAL ;
6877 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6878 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6879 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6880 wxString *arg9 = (wxString *) &arg9_defvalue ;
6881 bool result;
6882 void *argp1 = 0 ;
6883 int res1 = 0 ;
6884 void *argp2 = 0 ;
6885 int res2 = 0 ;
6886 int val3 ;
6887 int ecode3 = 0 ;
6888 int val4 ;
6889 int ecode4 = 0 ;
6890 wxPoint temp5 ;
6891 wxSize temp6 ;
6892 long val7 ;
6893 int ecode7 = 0 ;
6894 void *argp8 = 0 ;
6895 int res8 = 0 ;
6896 bool temp9 = false ;
6897 PyObject * obj0 = 0 ;
6898 PyObject * obj1 = 0 ;
6899 PyObject * obj2 = 0 ;
6900 PyObject * obj3 = 0 ;
6901 PyObject * obj4 = 0 ;
6902 PyObject * obj5 = 0 ;
6903 PyObject * obj6 = 0 ;
6904 PyObject * obj7 = 0 ;
6905 PyObject * obj8 = 0 ;
6906 char * kwnames[] = {
6907 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6908 };
6909
6910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6912 if (!SWIG_IsOK(res1)) {
6913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6914 }
6915 arg1 = reinterpret_cast< wxGauge * >(argp1);
6916 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6917 if (!SWIG_IsOK(res2)) {
6918 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6919 }
6920 arg2 = reinterpret_cast< wxWindow * >(argp2);
6921 if (obj2) {
6922 ecode3 = SWIG_AsVal_int(obj2, &val3);
6923 if (!SWIG_IsOK(ecode3)) {
6924 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6925 }
6926 arg3 = static_cast< int >(val3);
6927 }
6928 if (obj3) {
6929 ecode4 = SWIG_AsVal_int(obj3, &val4);
6930 if (!SWIG_IsOK(ecode4)) {
6931 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6932 }
6933 arg4 = static_cast< int >(val4);
6934 }
6935 if (obj4) {
6936 {
6937 arg5 = &temp5;
6938 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
6939 }
6940 }
6941 if (obj5) {
6942 {
6943 arg6 = &temp6;
6944 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
6945 }
6946 }
6947 if (obj6) {
6948 ecode7 = SWIG_AsVal_long(obj6, &val7);
6949 if (!SWIG_IsOK(ecode7)) {
6950 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
6951 }
6952 arg7 = static_cast< long >(val7);
6953 }
6954 if (obj7) {
6955 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
6956 if (!SWIG_IsOK(res8)) {
6957 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6958 }
6959 if (!argp8) {
6960 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6961 }
6962 arg8 = reinterpret_cast< wxValidator * >(argp8);
6963 }
6964 if (obj8) {
6965 {
6966 arg9 = wxString_in_helper(obj8);
6967 if (arg9 == NULL) SWIG_fail;
6968 temp9 = true;
6969 }
6970 }
6971 {
6972 PyThreadState* __tstate = wxPyBeginAllowThreads();
6973 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6974 wxPyEndAllowThreads(__tstate);
6975 if (PyErr_Occurred()) SWIG_fail;
6976 }
6977 {
6978 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6979 }
6980 {
6981 if (temp9)
6982 delete arg9;
6983 }
6984 return resultobj;
6985 fail:
6986 {
6987 if (temp9)
6988 delete arg9;
6989 }
6990 return NULL;
6991 }
6992
6993
6994 SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6995 PyObject *resultobj = 0;
6996 wxGauge *arg1 = (wxGauge *) 0 ;
6997 int arg2 ;
6998 void *argp1 = 0 ;
6999 int res1 = 0 ;
7000 int val2 ;
7001 int ecode2 = 0 ;
7002 PyObject * obj0 = 0 ;
7003 PyObject * obj1 = 0 ;
7004 char * kwnames[] = {
7005 (char *) "self",(char *) "range", NULL
7006 };
7007
7008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7010 if (!SWIG_IsOK(res1)) {
7011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7012 }
7013 arg1 = reinterpret_cast< wxGauge * >(argp1);
7014 ecode2 = SWIG_AsVal_int(obj1, &val2);
7015 if (!SWIG_IsOK(ecode2)) {
7016 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7017 }
7018 arg2 = static_cast< int >(val2);
7019 {
7020 PyThreadState* __tstate = wxPyBeginAllowThreads();
7021 (arg1)->SetRange(arg2);
7022 wxPyEndAllowThreads(__tstate);
7023 if (PyErr_Occurred()) SWIG_fail;
7024 }
7025 resultobj = SWIG_Py_Void();
7026 return resultobj;
7027 fail:
7028 return NULL;
7029 }
7030
7031
7032 SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7033 PyObject *resultobj = 0;
7034 wxGauge *arg1 = (wxGauge *) 0 ;
7035 int result;
7036 void *argp1 = 0 ;
7037 int res1 = 0 ;
7038 PyObject *swig_obj[1] ;
7039
7040 if (!args) SWIG_fail;
7041 swig_obj[0] = args;
7042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7043 if (!SWIG_IsOK(res1)) {
7044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7045 }
7046 arg1 = reinterpret_cast< wxGauge * >(argp1);
7047 {
7048 PyThreadState* __tstate = wxPyBeginAllowThreads();
7049 result = (int)((wxGauge const *)arg1)->GetRange();
7050 wxPyEndAllowThreads(__tstate);
7051 if (PyErr_Occurred()) SWIG_fail;
7052 }
7053 resultobj = SWIG_From_int(static_cast< int >(result));
7054 return resultobj;
7055 fail:
7056 return NULL;
7057 }
7058
7059
7060 SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7061 PyObject *resultobj = 0;
7062 wxGauge *arg1 = (wxGauge *) 0 ;
7063 int arg2 ;
7064 void *argp1 = 0 ;
7065 int res1 = 0 ;
7066 int val2 ;
7067 int ecode2 = 0 ;
7068 PyObject * obj0 = 0 ;
7069 PyObject * obj1 = 0 ;
7070 char * kwnames[] = {
7071 (char *) "self",(char *) "pos", NULL
7072 };
7073
7074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7076 if (!SWIG_IsOK(res1)) {
7077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7078 }
7079 arg1 = reinterpret_cast< wxGauge * >(argp1);
7080 ecode2 = SWIG_AsVal_int(obj1, &val2);
7081 if (!SWIG_IsOK(ecode2)) {
7082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7083 }
7084 arg2 = static_cast< int >(val2);
7085 {
7086 PyThreadState* __tstate = wxPyBeginAllowThreads();
7087 (arg1)->SetValue(arg2);
7088 wxPyEndAllowThreads(__tstate);
7089 if (PyErr_Occurred()) SWIG_fail;
7090 }
7091 resultobj = SWIG_Py_Void();
7092 return resultobj;
7093 fail:
7094 return NULL;
7095 }
7096
7097
7098 SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7099 PyObject *resultobj = 0;
7100 wxGauge *arg1 = (wxGauge *) 0 ;
7101 int result;
7102 void *argp1 = 0 ;
7103 int res1 = 0 ;
7104 PyObject *swig_obj[1] ;
7105
7106 if (!args) SWIG_fail;
7107 swig_obj[0] = args;
7108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7109 if (!SWIG_IsOK(res1)) {
7110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7111 }
7112 arg1 = reinterpret_cast< wxGauge * >(argp1);
7113 {
7114 PyThreadState* __tstate = wxPyBeginAllowThreads();
7115 result = (int)((wxGauge const *)arg1)->GetValue();
7116 wxPyEndAllowThreads(__tstate);
7117 if (PyErr_Occurred()) SWIG_fail;
7118 }
7119 resultobj = SWIG_From_int(static_cast< int >(result));
7120 return resultobj;
7121 fail:
7122 return NULL;
7123 }
7124
7125
7126 SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7127 PyObject *resultobj = 0;
7128 wxGauge *arg1 = (wxGauge *) 0 ;
7129 bool result;
7130 void *argp1 = 0 ;
7131 int res1 = 0 ;
7132 PyObject *swig_obj[1] ;
7133
7134 if (!args) SWIG_fail;
7135 swig_obj[0] = args;
7136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7137 if (!SWIG_IsOK(res1)) {
7138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7139 }
7140 arg1 = reinterpret_cast< wxGauge * >(argp1);
7141 {
7142 PyThreadState* __tstate = wxPyBeginAllowThreads();
7143 result = (bool)((wxGauge const *)arg1)->IsVertical();
7144 wxPyEndAllowThreads(__tstate);
7145 if (PyErr_Occurred()) SWIG_fail;
7146 }
7147 {
7148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7149 }
7150 return resultobj;
7151 fail:
7152 return NULL;
7153 }
7154
7155
7156 SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7157 PyObject *resultobj = 0;
7158 wxGauge *arg1 = (wxGauge *) 0 ;
7159 int arg2 ;
7160 void *argp1 = 0 ;
7161 int res1 = 0 ;
7162 int val2 ;
7163 int ecode2 = 0 ;
7164 PyObject * obj0 = 0 ;
7165 PyObject * obj1 = 0 ;
7166 char * kwnames[] = {
7167 (char *) "self",(char *) "w", NULL
7168 };
7169
7170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7172 if (!SWIG_IsOK(res1)) {
7173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7174 }
7175 arg1 = reinterpret_cast< wxGauge * >(argp1);
7176 ecode2 = SWIG_AsVal_int(obj1, &val2);
7177 if (!SWIG_IsOK(ecode2)) {
7178 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7179 }
7180 arg2 = static_cast< int >(val2);
7181 {
7182 PyThreadState* __tstate = wxPyBeginAllowThreads();
7183 (arg1)->SetShadowWidth(arg2);
7184 wxPyEndAllowThreads(__tstate);
7185 if (PyErr_Occurred()) SWIG_fail;
7186 }
7187 resultobj = SWIG_Py_Void();
7188 return resultobj;
7189 fail:
7190 return NULL;
7191 }
7192
7193
7194 SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7195 PyObject *resultobj = 0;
7196 wxGauge *arg1 = (wxGauge *) 0 ;
7197 int result;
7198 void *argp1 = 0 ;
7199 int res1 = 0 ;
7200 PyObject *swig_obj[1] ;
7201
7202 if (!args) SWIG_fail;
7203 swig_obj[0] = args;
7204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7205 if (!SWIG_IsOK(res1)) {
7206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7207 }
7208 arg1 = reinterpret_cast< wxGauge * >(argp1);
7209 {
7210 PyThreadState* __tstate = wxPyBeginAllowThreads();
7211 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7212 wxPyEndAllowThreads(__tstate);
7213 if (PyErr_Occurred()) SWIG_fail;
7214 }
7215 resultobj = SWIG_From_int(static_cast< int >(result));
7216 return resultobj;
7217 fail:
7218 return NULL;
7219 }
7220
7221
7222 SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7223 PyObject *resultobj = 0;
7224 wxGauge *arg1 = (wxGauge *) 0 ;
7225 int arg2 ;
7226 void *argp1 = 0 ;
7227 int res1 = 0 ;
7228 int val2 ;
7229 int ecode2 = 0 ;
7230 PyObject * obj0 = 0 ;
7231 PyObject * obj1 = 0 ;
7232 char * kwnames[] = {
7233 (char *) "self",(char *) "w", NULL
7234 };
7235
7236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7238 if (!SWIG_IsOK(res1)) {
7239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7240 }
7241 arg1 = reinterpret_cast< wxGauge * >(argp1);
7242 ecode2 = SWIG_AsVal_int(obj1, &val2);
7243 if (!SWIG_IsOK(ecode2)) {
7244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7245 }
7246 arg2 = static_cast< int >(val2);
7247 {
7248 PyThreadState* __tstate = wxPyBeginAllowThreads();
7249 (arg1)->SetBezelFace(arg2);
7250 wxPyEndAllowThreads(__tstate);
7251 if (PyErr_Occurred()) SWIG_fail;
7252 }
7253 resultobj = SWIG_Py_Void();
7254 return resultobj;
7255 fail:
7256 return NULL;
7257 }
7258
7259
7260 SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7261 PyObject *resultobj = 0;
7262 wxGauge *arg1 = (wxGauge *) 0 ;
7263 int result;
7264 void *argp1 = 0 ;
7265 int res1 = 0 ;
7266 PyObject *swig_obj[1] ;
7267
7268 if (!args) SWIG_fail;
7269 swig_obj[0] = args;
7270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7271 if (!SWIG_IsOK(res1)) {
7272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7273 }
7274 arg1 = reinterpret_cast< wxGauge * >(argp1);
7275 {
7276 PyThreadState* __tstate = wxPyBeginAllowThreads();
7277 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7278 wxPyEndAllowThreads(__tstate);
7279 if (PyErr_Occurred()) SWIG_fail;
7280 }
7281 resultobj = SWIG_From_int(static_cast< int >(result));
7282 return resultobj;
7283 fail:
7284 return NULL;
7285 }
7286
7287
7288 SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7289 PyObject *resultobj = 0;
7290 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7291 SwigValueWrapper<wxVisualAttributes > result;
7292 int val1 ;
7293 int ecode1 = 0 ;
7294 PyObject * obj0 = 0 ;
7295 char * kwnames[] = {
7296 (char *) "variant", NULL
7297 };
7298
7299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7300 if (obj0) {
7301 ecode1 = SWIG_AsVal_int(obj0, &val1);
7302 if (!SWIG_IsOK(ecode1)) {
7303 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7304 }
7305 arg1 = static_cast< wxWindowVariant >(val1);
7306 }
7307 {
7308 if (!wxPyCheckForApp()) SWIG_fail;
7309 PyThreadState* __tstate = wxPyBeginAllowThreads();
7310 result = wxGauge::GetClassDefaultAttributes(arg1);
7311 wxPyEndAllowThreads(__tstate);
7312 if (PyErr_Occurred()) SWIG_fail;
7313 }
7314 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7315 return resultobj;
7316 fail:
7317 return NULL;
7318 }
7319
7320
7321 SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7322 PyObject *obj;
7323 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7324 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7325 return SWIG_Py_Void();
7326 }
7327
7328 SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7329 return SWIG_Python_InitShadowInstance(args);
7330 }
7331
7332 SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7333 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7334 return 1;
7335 }
7336
7337
7338 SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7339 PyObject *pyobj = 0;
7340
7341 {
7342 #if wxUSE_UNICODE
7343 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7344 #else
7345 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7346 #endif
7347 }
7348 return pyobj;
7349 }
7350
7351
7352 SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7353 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7354 return 1;
7355 }
7356
7357
7358 SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7359 PyObject *pyobj = 0;
7360
7361 {
7362 #if wxUSE_UNICODE
7363 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7364 #else
7365 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7366 #endif
7367 }
7368 return pyobj;
7369 }
7370
7371
7372 SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7373 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7374 return 1;
7375 }
7376
7377
7378 SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7379 PyObject *pyobj = 0;
7380
7381 {
7382 #if wxUSE_UNICODE
7383 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7384 #else
7385 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7386 #endif
7387 }
7388 return pyobj;
7389 }
7390
7391
7392 SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7393 PyObject *resultobj = 0;
7394 wxWindow *arg1 = (wxWindow *) 0 ;
7395 int arg2 = (int) -1 ;
7396 wxString const &arg3_defvalue = wxPyEmptyString ;
7397 wxString *arg3 = (wxString *) &arg3_defvalue ;
7398 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7399 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7400 wxSize const &arg5_defvalue = wxDefaultSize ;
7401 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7402 long arg6 = (long) 0 ;
7403 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7404 wxString *arg7 = (wxString *) &arg7_defvalue ;
7405 wxStaticBox *result = 0 ;
7406 void *argp1 = 0 ;
7407 int res1 = 0 ;
7408 int val2 ;
7409 int ecode2 = 0 ;
7410 bool temp3 = false ;
7411 wxPoint temp4 ;
7412 wxSize temp5 ;
7413 long val6 ;
7414 int ecode6 = 0 ;
7415 bool temp7 = false ;
7416 PyObject * obj0 = 0 ;
7417 PyObject * obj1 = 0 ;
7418 PyObject * obj2 = 0 ;
7419 PyObject * obj3 = 0 ;
7420 PyObject * obj4 = 0 ;
7421 PyObject * obj5 = 0 ;
7422 PyObject * obj6 = 0 ;
7423 char * kwnames[] = {
7424 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7425 };
7426
7427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7429 if (!SWIG_IsOK(res1)) {
7430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7431 }
7432 arg1 = reinterpret_cast< wxWindow * >(argp1);
7433 if (obj1) {
7434 ecode2 = SWIG_AsVal_int(obj1, &val2);
7435 if (!SWIG_IsOK(ecode2)) {
7436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7437 }
7438 arg2 = static_cast< int >(val2);
7439 }
7440 if (obj2) {
7441 {
7442 arg3 = wxString_in_helper(obj2);
7443 if (arg3 == NULL) SWIG_fail;
7444 temp3 = true;
7445 }
7446 }
7447 if (obj3) {
7448 {
7449 arg4 = &temp4;
7450 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7451 }
7452 }
7453 if (obj4) {
7454 {
7455 arg5 = &temp5;
7456 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7457 }
7458 }
7459 if (obj5) {
7460 ecode6 = SWIG_AsVal_long(obj5, &val6);
7461 if (!SWIG_IsOK(ecode6)) {
7462 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7463 }
7464 arg6 = static_cast< long >(val6);
7465 }
7466 if (obj6) {
7467 {
7468 arg7 = wxString_in_helper(obj6);
7469 if (arg7 == NULL) SWIG_fail;
7470 temp7 = true;
7471 }
7472 }
7473 {
7474 if (!wxPyCheckForApp()) SWIG_fail;
7475 PyThreadState* __tstate = wxPyBeginAllowThreads();
7476 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7477 wxPyEndAllowThreads(__tstate);
7478 if (PyErr_Occurred()) SWIG_fail;
7479 }
7480 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7481 {
7482 if (temp3)
7483 delete arg3;
7484 }
7485 {
7486 if (temp7)
7487 delete arg7;
7488 }
7489 return resultobj;
7490 fail:
7491 {
7492 if (temp3)
7493 delete arg3;
7494 }
7495 {
7496 if (temp7)
7497 delete arg7;
7498 }
7499 return NULL;
7500 }
7501
7502
7503 SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7504 PyObject *resultobj = 0;
7505 wxStaticBox *result = 0 ;
7506
7507 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7508 {
7509 if (!wxPyCheckForApp()) SWIG_fail;
7510 PyThreadState* __tstate = wxPyBeginAllowThreads();
7511 result = (wxStaticBox *)new wxStaticBox();
7512 wxPyEndAllowThreads(__tstate);
7513 if (PyErr_Occurred()) SWIG_fail;
7514 }
7515 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7516 return resultobj;
7517 fail:
7518 return NULL;
7519 }
7520
7521
7522 SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7523 PyObject *resultobj = 0;
7524 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7525 wxWindow *arg2 = (wxWindow *) 0 ;
7526 int arg3 = (int) -1 ;
7527 wxString const &arg4_defvalue = wxPyEmptyString ;
7528 wxString *arg4 = (wxString *) &arg4_defvalue ;
7529 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7530 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7531 wxSize const &arg6_defvalue = wxDefaultSize ;
7532 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7533 long arg7 = (long) 0 ;
7534 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7535 wxString *arg8 = (wxString *) &arg8_defvalue ;
7536 bool result;
7537 void *argp1 = 0 ;
7538 int res1 = 0 ;
7539 void *argp2 = 0 ;
7540 int res2 = 0 ;
7541 int val3 ;
7542 int ecode3 = 0 ;
7543 bool temp4 = false ;
7544 wxPoint temp5 ;
7545 wxSize temp6 ;
7546 long val7 ;
7547 int ecode7 = 0 ;
7548 bool temp8 = false ;
7549 PyObject * obj0 = 0 ;
7550 PyObject * obj1 = 0 ;
7551 PyObject * obj2 = 0 ;
7552 PyObject * obj3 = 0 ;
7553 PyObject * obj4 = 0 ;
7554 PyObject * obj5 = 0 ;
7555 PyObject * obj6 = 0 ;
7556 PyObject * obj7 = 0 ;
7557 char * kwnames[] = {
7558 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7559 };
7560
7561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7563 if (!SWIG_IsOK(res1)) {
7564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7565 }
7566 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7567 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7568 if (!SWIG_IsOK(res2)) {
7569 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7570 }
7571 arg2 = reinterpret_cast< wxWindow * >(argp2);
7572 if (obj2) {
7573 ecode3 = SWIG_AsVal_int(obj2, &val3);
7574 if (!SWIG_IsOK(ecode3)) {
7575 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7576 }
7577 arg3 = static_cast< int >(val3);
7578 }
7579 if (obj3) {
7580 {
7581 arg4 = wxString_in_helper(obj3);
7582 if (arg4 == NULL) SWIG_fail;
7583 temp4 = true;
7584 }
7585 }
7586 if (obj4) {
7587 {
7588 arg5 = &temp5;
7589 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7590 }
7591 }
7592 if (obj5) {
7593 {
7594 arg6 = &temp6;
7595 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7596 }
7597 }
7598 if (obj6) {
7599 ecode7 = SWIG_AsVal_long(obj6, &val7);
7600 if (!SWIG_IsOK(ecode7)) {
7601 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7602 }
7603 arg7 = static_cast< long >(val7);
7604 }
7605 if (obj7) {
7606 {
7607 arg8 = wxString_in_helper(obj7);
7608 if (arg8 == NULL) SWIG_fail;
7609 temp8 = true;
7610 }
7611 }
7612 {
7613 PyThreadState* __tstate = wxPyBeginAllowThreads();
7614 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7615 wxPyEndAllowThreads(__tstate);
7616 if (PyErr_Occurred()) SWIG_fail;
7617 }
7618 {
7619 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7620 }
7621 {
7622 if (temp4)
7623 delete arg4;
7624 }
7625 {
7626 if (temp8)
7627 delete arg8;
7628 }
7629 return resultobj;
7630 fail:
7631 {
7632 if (temp4)
7633 delete arg4;
7634 }
7635 {
7636 if (temp8)
7637 delete arg8;
7638 }
7639 return NULL;
7640 }
7641
7642
7643 SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7644 PyObject *resultobj = 0;
7645 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7646 SwigValueWrapper<wxVisualAttributes > result;
7647 int val1 ;
7648 int ecode1 = 0 ;
7649 PyObject * obj0 = 0 ;
7650 char * kwnames[] = {
7651 (char *) "variant", NULL
7652 };
7653
7654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7655 if (obj0) {
7656 ecode1 = SWIG_AsVal_int(obj0, &val1);
7657 if (!SWIG_IsOK(ecode1)) {
7658 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7659 }
7660 arg1 = static_cast< wxWindowVariant >(val1);
7661 }
7662 {
7663 if (!wxPyCheckForApp()) SWIG_fail;
7664 PyThreadState* __tstate = wxPyBeginAllowThreads();
7665 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7666 wxPyEndAllowThreads(__tstate);
7667 if (PyErr_Occurred()) SWIG_fail;
7668 }
7669 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7670 return resultobj;
7671 fail:
7672 return NULL;
7673 }
7674
7675
7676 SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7677 PyObject *obj;
7678 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7679 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7680 return SWIG_Py_Void();
7681 }
7682
7683 SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7684 return SWIG_Python_InitShadowInstance(args);
7685 }
7686
7687 SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7688 PyObject *resultobj = 0;
7689 wxWindow *arg1 = (wxWindow *) 0 ;
7690 int arg2 = (int) -1 ;
7691 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7692 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7693 wxSize const &arg4_defvalue = wxDefaultSize ;
7694 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7695 long arg5 = (long) wxLI_HORIZONTAL ;
7696 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7697 wxString *arg6 = (wxString *) &arg6_defvalue ;
7698 wxStaticLine *result = 0 ;
7699 void *argp1 = 0 ;
7700 int res1 = 0 ;
7701 int val2 ;
7702 int ecode2 = 0 ;
7703 wxPoint temp3 ;
7704 wxSize temp4 ;
7705 long val5 ;
7706 int ecode5 = 0 ;
7707 bool temp6 = false ;
7708 PyObject * obj0 = 0 ;
7709 PyObject * obj1 = 0 ;
7710 PyObject * obj2 = 0 ;
7711 PyObject * obj3 = 0 ;
7712 PyObject * obj4 = 0 ;
7713 PyObject * obj5 = 0 ;
7714 char * kwnames[] = {
7715 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7716 };
7717
7718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7720 if (!SWIG_IsOK(res1)) {
7721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7722 }
7723 arg1 = reinterpret_cast< wxWindow * >(argp1);
7724 if (obj1) {
7725 ecode2 = SWIG_AsVal_int(obj1, &val2);
7726 if (!SWIG_IsOK(ecode2)) {
7727 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7728 }
7729 arg2 = static_cast< int >(val2);
7730 }
7731 if (obj2) {
7732 {
7733 arg3 = &temp3;
7734 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7735 }
7736 }
7737 if (obj3) {
7738 {
7739 arg4 = &temp4;
7740 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7741 }
7742 }
7743 if (obj4) {
7744 ecode5 = SWIG_AsVal_long(obj4, &val5);
7745 if (!SWIG_IsOK(ecode5)) {
7746 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7747 }
7748 arg5 = static_cast< long >(val5);
7749 }
7750 if (obj5) {
7751 {
7752 arg6 = wxString_in_helper(obj5);
7753 if (arg6 == NULL) SWIG_fail;
7754 temp6 = true;
7755 }
7756 }
7757 {
7758 if (!wxPyCheckForApp()) SWIG_fail;
7759 PyThreadState* __tstate = wxPyBeginAllowThreads();
7760 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7761 wxPyEndAllowThreads(__tstate);
7762 if (PyErr_Occurred()) SWIG_fail;
7763 }
7764 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7765 {
7766 if (temp6)
7767 delete arg6;
7768 }
7769 return resultobj;
7770 fail:
7771 {
7772 if (temp6)
7773 delete arg6;
7774 }
7775 return NULL;
7776 }
7777
7778
7779 SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7780 PyObject *resultobj = 0;
7781 wxStaticLine *result = 0 ;
7782
7783 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7784 {
7785 if (!wxPyCheckForApp()) SWIG_fail;
7786 PyThreadState* __tstate = wxPyBeginAllowThreads();
7787 result = (wxStaticLine *)new wxStaticLine();
7788 wxPyEndAllowThreads(__tstate);
7789 if (PyErr_Occurred()) SWIG_fail;
7790 }
7791 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7792 return resultobj;
7793 fail:
7794 return NULL;
7795 }
7796
7797
7798 SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7799 PyObject *resultobj = 0;
7800 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7801 wxWindow *arg2 = (wxWindow *) 0 ;
7802 int arg3 = (int) -1 ;
7803 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7804 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7805 wxSize const &arg5_defvalue = wxDefaultSize ;
7806 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7807 long arg6 = (long) wxLI_HORIZONTAL ;
7808 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7809 wxString *arg7 = (wxString *) &arg7_defvalue ;
7810 bool result;
7811 void *argp1 = 0 ;
7812 int res1 = 0 ;
7813 void *argp2 = 0 ;
7814 int res2 = 0 ;
7815 int val3 ;
7816 int ecode3 = 0 ;
7817 wxPoint temp4 ;
7818 wxSize temp5 ;
7819 long val6 ;
7820 int ecode6 = 0 ;
7821 bool temp7 = false ;
7822 PyObject * obj0 = 0 ;
7823 PyObject * obj1 = 0 ;
7824 PyObject * obj2 = 0 ;
7825 PyObject * obj3 = 0 ;
7826 PyObject * obj4 = 0 ;
7827 PyObject * obj5 = 0 ;
7828 PyObject * obj6 = 0 ;
7829 char * kwnames[] = {
7830 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7831 };
7832
7833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7835 if (!SWIG_IsOK(res1)) {
7836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7837 }
7838 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7839 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7840 if (!SWIG_IsOK(res2)) {
7841 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7842 }
7843 arg2 = reinterpret_cast< wxWindow * >(argp2);
7844 if (obj2) {
7845 ecode3 = SWIG_AsVal_int(obj2, &val3);
7846 if (!SWIG_IsOK(ecode3)) {
7847 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7848 }
7849 arg3 = static_cast< int >(val3);
7850 }
7851 if (obj3) {
7852 {
7853 arg4 = &temp4;
7854 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7855 }
7856 }
7857 if (obj4) {
7858 {
7859 arg5 = &temp5;
7860 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7861 }
7862 }
7863 if (obj5) {
7864 ecode6 = SWIG_AsVal_long(obj5, &val6);
7865 if (!SWIG_IsOK(ecode6)) {
7866 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7867 }
7868 arg6 = static_cast< long >(val6);
7869 }
7870 if (obj6) {
7871 {
7872 arg7 = wxString_in_helper(obj6);
7873 if (arg7 == NULL) SWIG_fail;
7874 temp7 = true;
7875 }
7876 }
7877 {
7878 PyThreadState* __tstate = wxPyBeginAllowThreads();
7879 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7880 wxPyEndAllowThreads(__tstate);
7881 if (PyErr_Occurred()) SWIG_fail;
7882 }
7883 {
7884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7885 }
7886 {
7887 if (temp7)
7888 delete arg7;
7889 }
7890 return resultobj;
7891 fail:
7892 {
7893 if (temp7)
7894 delete arg7;
7895 }
7896 return NULL;
7897 }
7898
7899
7900 SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7901 PyObject *resultobj = 0;
7902 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7903 bool result;
7904 void *argp1 = 0 ;
7905 int res1 = 0 ;
7906 PyObject *swig_obj[1] ;
7907
7908 if (!args) SWIG_fail;
7909 swig_obj[0] = args;
7910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7911 if (!SWIG_IsOK(res1)) {
7912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7913 }
7914 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7915 {
7916 PyThreadState* __tstate = wxPyBeginAllowThreads();
7917 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7918 wxPyEndAllowThreads(__tstate);
7919 if (PyErr_Occurred()) SWIG_fail;
7920 }
7921 {
7922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7923 }
7924 return resultobj;
7925 fail:
7926 return NULL;
7927 }
7928
7929
7930 SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7931 PyObject *resultobj = 0;
7932 int result;
7933
7934 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
7935 {
7936 PyThreadState* __tstate = wxPyBeginAllowThreads();
7937 result = (int)wxStaticLine::GetDefaultSize();
7938 wxPyEndAllowThreads(__tstate);
7939 if (PyErr_Occurred()) SWIG_fail;
7940 }
7941 resultobj = SWIG_From_int(static_cast< int >(result));
7942 return resultobj;
7943 fail:
7944 return NULL;
7945 }
7946
7947
7948 SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7949 PyObject *resultobj = 0;
7950 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7951 SwigValueWrapper<wxVisualAttributes > result;
7952 int val1 ;
7953 int ecode1 = 0 ;
7954 PyObject * obj0 = 0 ;
7955 char * kwnames[] = {
7956 (char *) "variant", NULL
7957 };
7958
7959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7960 if (obj0) {
7961 ecode1 = SWIG_AsVal_int(obj0, &val1);
7962 if (!SWIG_IsOK(ecode1)) {
7963 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7964 }
7965 arg1 = static_cast< wxWindowVariant >(val1);
7966 }
7967 {
7968 if (!wxPyCheckForApp()) SWIG_fail;
7969 PyThreadState* __tstate = wxPyBeginAllowThreads();
7970 result = wxStaticLine::GetClassDefaultAttributes(arg1);
7971 wxPyEndAllowThreads(__tstate);
7972 if (PyErr_Occurred()) SWIG_fail;
7973 }
7974 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7975 return resultobj;
7976 fail:
7977 return NULL;
7978 }
7979
7980
7981 SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7982 PyObject *obj;
7983 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7984 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
7985 return SWIG_Py_Void();
7986 }
7987
7988 SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7989 return SWIG_Python_InitShadowInstance(args);
7990 }
7991
7992 SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7993 PyObject *resultobj = 0;
7994 wxWindow *arg1 = (wxWindow *) 0 ;
7995 int arg2 = (int) -1 ;
7996 wxString const &arg3_defvalue = wxPyEmptyString ;
7997 wxString *arg3 = (wxString *) &arg3_defvalue ;
7998 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7999 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8000 wxSize const &arg5_defvalue = wxDefaultSize ;
8001 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8002 long arg6 = (long) 0 ;
8003 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8004 wxString *arg7 = (wxString *) &arg7_defvalue ;
8005 wxStaticText *result = 0 ;
8006 void *argp1 = 0 ;
8007 int res1 = 0 ;
8008 int val2 ;
8009 int ecode2 = 0 ;
8010 bool temp3 = false ;
8011 wxPoint temp4 ;
8012 wxSize temp5 ;
8013 long val6 ;
8014 int ecode6 = 0 ;
8015 bool temp7 = false ;
8016 PyObject * obj0 = 0 ;
8017 PyObject * obj1 = 0 ;
8018 PyObject * obj2 = 0 ;
8019 PyObject * obj3 = 0 ;
8020 PyObject * obj4 = 0 ;
8021 PyObject * obj5 = 0 ;
8022 PyObject * obj6 = 0 ;
8023 char * kwnames[] = {
8024 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8025 };
8026
8027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8029 if (!SWIG_IsOK(res1)) {
8030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8031 }
8032 arg1 = reinterpret_cast< wxWindow * >(argp1);
8033 if (obj1) {
8034 ecode2 = SWIG_AsVal_int(obj1, &val2);
8035 if (!SWIG_IsOK(ecode2)) {
8036 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8037 }
8038 arg2 = static_cast< int >(val2);
8039 }
8040 if (obj2) {
8041 {
8042 arg3 = wxString_in_helper(obj2);
8043 if (arg3 == NULL) SWIG_fail;
8044 temp3 = true;
8045 }
8046 }
8047 if (obj3) {
8048 {
8049 arg4 = &temp4;
8050 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8051 }
8052 }
8053 if (obj4) {
8054 {
8055 arg5 = &temp5;
8056 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8057 }
8058 }
8059 if (obj5) {
8060 ecode6 = SWIG_AsVal_long(obj5, &val6);
8061 if (!SWIG_IsOK(ecode6)) {
8062 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8063 }
8064 arg6 = static_cast< long >(val6);
8065 }
8066 if (obj6) {
8067 {
8068 arg7 = wxString_in_helper(obj6);
8069 if (arg7 == NULL) SWIG_fail;
8070 temp7 = true;
8071 }
8072 }
8073 {
8074 if (!wxPyCheckForApp()) SWIG_fail;
8075 PyThreadState* __tstate = wxPyBeginAllowThreads();
8076 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8077 wxPyEndAllowThreads(__tstate);
8078 if (PyErr_Occurred()) SWIG_fail;
8079 }
8080 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8081 {
8082 if (temp3)
8083 delete arg3;
8084 }
8085 {
8086 if (temp7)
8087 delete arg7;
8088 }
8089 return resultobj;
8090 fail:
8091 {
8092 if (temp3)
8093 delete arg3;
8094 }
8095 {
8096 if (temp7)
8097 delete arg7;
8098 }
8099 return NULL;
8100 }
8101
8102
8103 SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8104 PyObject *resultobj = 0;
8105 wxStaticText *result = 0 ;
8106
8107 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8108 {
8109 if (!wxPyCheckForApp()) SWIG_fail;
8110 PyThreadState* __tstate = wxPyBeginAllowThreads();
8111 result = (wxStaticText *)new wxStaticText();
8112 wxPyEndAllowThreads(__tstate);
8113 if (PyErr_Occurred()) SWIG_fail;
8114 }
8115 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8116 return resultobj;
8117 fail:
8118 return NULL;
8119 }
8120
8121
8122 SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8123 PyObject *resultobj = 0;
8124 wxStaticText *arg1 = (wxStaticText *) 0 ;
8125 wxWindow *arg2 = (wxWindow *) 0 ;
8126 int arg3 = (int) -1 ;
8127 wxString const &arg4_defvalue = wxPyEmptyString ;
8128 wxString *arg4 = (wxString *) &arg4_defvalue ;
8129 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8130 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8131 wxSize const &arg6_defvalue = wxDefaultSize ;
8132 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8133 long arg7 = (long) 0 ;
8134 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8135 wxString *arg8 = (wxString *) &arg8_defvalue ;
8136 bool result;
8137 void *argp1 = 0 ;
8138 int res1 = 0 ;
8139 void *argp2 = 0 ;
8140 int res2 = 0 ;
8141 int val3 ;
8142 int ecode3 = 0 ;
8143 bool temp4 = false ;
8144 wxPoint temp5 ;
8145 wxSize temp6 ;
8146 long val7 ;
8147 int ecode7 = 0 ;
8148 bool temp8 = false ;
8149 PyObject * obj0 = 0 ;
8150 PyObject * obj1 = 0 ;
8151 PyObject * obj2 = 0 ;
8152 PyObject * obj3 = 0 ;
8153 PyObject * obj4 = 0 ;
8154 PyObject * obj5 = 0 ;
8155 PyObject * obj6 = 0 ;
8156 PyObject * obj7 = 0 ;
8157 char * kwnames[] = {
8158 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8159 };
8160
8161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8163 if (!SWIG_IsOK(res1)) {
8164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8165 }
8166 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8167 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8168 if (!SWIG_IsOK(res2)) {
8169 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8170 }
8171 arg2 = reinterpret_cast< wxWindow * >(argp2);
8172 if (obj2) {
8173 ecode3 = SWIG_AsVal_int(obj2, &val3);
8174 if (!SWIG_IsOK(ecode3)) {
8175 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8176 }
8177 arg3 = static_cast< int >(val3);
8178 }
8179 if (obj3) {
8180 {
8181 arg4 = wxString_in_helper(obj3);
8182 if (arg4 == NULL) SWIG_fail;
8183 temp4 = true;
8184 }
8185 }
8186 if (obj4) {
8187 {
8188 arg5 = &temp5;
8189 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8190 }
8191 }
8192 if (obj5) {
8193 {
8194 arg6 = &temp6;
8195 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8196 }
8197 }
8198 if (obj6) {
8199 ecode7 = SWIG_AsVal_long(obj6, &val7);
8200 if (!SWIG_IsOK(ecode7)) {
8201 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8202 }
8203 arg7 = static_cast< long >(val7);
8204 }
8205 if (obj7) {
8206 {
8207 arg8 = wxString_in_helper(obj7);
8208 if (arg8 == NULL) SWIG_fail;
8209 temp8 = true;
8210 }
8211 }
8212 {
8213 PyThreadState* __tstate = wxPyBeginAllowThreads();
8214 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8215 wxPyEndAllowThreads(__tstate);
8216 if (PyErr_Occurred()) SWIG_fail;
8217 }
8218 {
8219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8220 }
8221 {
8222 if (temp4)
8223 delete arg4;
8224 }
8225 {
8226 if (temp8)
8227 delete arg8;
8228 }
8229 return resultobj;
8230 fail:
8231 {
8232 if (temp4)
8233 delete arg4;
8234 }
8235 {
8236 if (temp8)
8237 delete arg8;
8238 }
8239 return NULL;
8240 }
8241
8242
8243 SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8244 PyObject *resultobj = 0;
8245 wxStaticText *arg1 = (wxStaticText *) 0 ;
8246 int arg2 ;
8247 void *argp1 = 0 ;
8248 int res1 = 0 ;
8249 int val2 ;
8250 int ecode2 = 0 ;
8251 PyObject * obj0 = 0 ;
8252 PyObject * obj1 = 0 ;
8253 char * kwnames[] = {
8254 (char *) "self",(char *) "width", NULL
8255 };
8256
8257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8259 if (!SWIG_IsOK(res1)) {
8260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8261 }
8262 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8263 ecode2 = SWIG_AsVal_int(obj1, &val2);
8264 if (!SWIG_IsOK(ecode2)) {
8265 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8266 }
8267 arg2 = static_cast< int >(val2);
8268 {
8269 PyThreadState* __tstate = wxPyBeginAllowThreads();
8270 (arg1)->Wrap(arg2);
8271 wxPyEndAllowThreads(__tstate);
8272 if (PyErr_Occurred()) SWIG_fail;
8273 }
8274 resultobj = SWIG_Py_Void();
8275 return resultobj;
8276 fail:
8277 return NULL;
8278 }
8279
8280
8281 SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8282 PyObject *resultobj = 0;
8283 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8284 SwigValueWrapper<wxVisualAttributes > result;
8285 int val1 ;
8286 int ecode1 = 0 ;
8287 PyObject * obj0 = 0 ;
8288 char * kwnames[] = {
8289 (char *) "variant", NULL
8290 };
8291
8292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8293 if (obj0) {
8294 ecode1 = SWIG_AsVal_int(obj0, &val1);
8295 if (!SWIG_IsOK(ecode1)) {
8296 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8297 }
8298 arg1 = static_cast< wxWindowVariant >(val1);
8299 }
8300 {
8301 if (!wxPyCheckForApp()) SWIG_fail;
8302 PyThreadState* __tstate = wxPyBeginAllowThreads();
8303 result = wxStaticText::GetClassDefaultAttributes(arg1);
8304 wxPyEndAllowThreads(__tstate);
8305 if (PyErr_Occurred()) SWIG_fail;
8306 }
8307 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8308 return resultobj;
8309 fail:
8310 return NULL;
8311 }
8312
8313
8314 SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8315 PyObject *obj;
8316 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8317 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8318 return SWIG_Py_Void();
8319 }
8320
8321 SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8322 return SWIG_Python_InitShadowInstance(args);
8323 }
8324
8325 SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8326 PyObject *resultobj = 0;
8327 wxWindow *arg1 = (wxWindow *) 0 ;
8328 int arg2 = (int) -1 ;
8329 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8330 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8331 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8332 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8333 wxSize const &arg5_defvalue = wxDefaultSize ;
8334 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8335 long arg6 = (long) 0 ;
8336 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8337 wxString *arg7 = (wxString *) &arg7_defvalue ;
8338 wxStaticBitmap *result = 0 ;
8339 void *argp1 = 0 ;
8340 int res1 = 0 ;
8341 int val2 ;
8342 int ecode2 = 0 ;
8343 void *argp3 = 0 ;
8344 int res3 = 0 ;
8345 wxPoint temp4 ;
8346 wxSize temp5 ;
8347 long val6 ;
8348 int ecode6 = 0 ;
8349 bool temp7 = false ;
8350 PyObject * obj0 = 0 ;
8351 PyObject * obj1 = 0 ;
8352 PyObject * obj2 = 0 ;
8353 PyObject * obj3 = 0 ;
8354 PyObject * obj4 = 0 ;
8355 PyObject * obj5 = 0 ;
8356 PyObject * obj6 = 0 ;
8357 char * kwnames[] = {
8358 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8359 };
8360
8361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8363 if (!SWIG_IsOK(res1)) {
8364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8365 }
8366 arg1 = reinterpret_cast< wxWindow * >(argp1);
8367 if (obj1) {
8368 ecode2 = SWIG_AsVal_int(obj1, &val2);
8369 if (!SWIG_IsOK(ecode2)) {
8370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8371 }
8372 arg2 = static_cast< int >(val2);
8373 }
8374 if (obj2) {
8375 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8376 if (!SWIG_IsOK(res3)) {
8377 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8378 }
8379 if (!argp3) {
8380 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8381 }
8382 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8383 }
8384 if (obj3) {
8385 {
8386 arg4 = &temp4;
8387 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8388 }
8389 }
8390 if (obj4) {
8391 {
8392 arg5 = &temp5;
8393 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8394 }
8395 }
8396 if (obj5) {
8397 ecode6 = SWIG_AsVal_long(obj5, &val6);
8398 if (!SWIG_IsOK(ecode6)) {
8399 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8400 }
8401 arg6 = static_cast< long >(val6);
8402 }
8403 if (obj6) {
8404 {
8405 arg7 = wxString_in_helper(obj6);
8406 if (arg7 == NULL) SWIG_fail;
8407 temp7 = true;
8408 }
8409 }
8410 {
8411 if (!wxPyCheckForApp()) SWIG_fail;
8412 PyThreadState* __tstate = wxPyBeginAllowThreads();
8413 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8414 wxPyEndAllowThreads(__tstate);
8415 if (PyErr_Occurred()) SWIG_fail;
8416 }
8417 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8418 {
8419 if (temp7)
8420 delete arg7;
8421 }
8422 return resultobj;
8423 fail:
8424 {
8425 if (temp7)
8426 delete arg7;
8427 }
8428 return NULL;
8429 }
8430
8431
8432 SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8433 PyObject *resultobj = 0;
8434 wxStaticBitmap *result = 0 ;
8435
8436 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8437 {
8438 if (!wxPyCheckForApp()) SWIG_fail;
8439 PyThreadState* __tstate = wxPyBeginAllowThreads();
8440 result = (wxStaticBitmap *)new wxStaticBitmap();
8441 wxPyEndAllowThreads(__tstate);
8442 if (PyErr_Occurred()) SWIG_fail;
8443 }
8444 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8445 return resultobj;
8446 fail:
8447 return NULL;
8448 }
8449
8450
8451 SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8452 PyObject *resultobj = 0;
8453 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8454 wxWindow *arg2 = (wxWindow *) 0 ;
8455 int arg3 = (int) -1 ;
8456 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8457 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8458 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8459 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8460 wxSize const &arg6_defvalue = wxDefaultSize ;
8461 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8462 long arg7 = (long) 0 ;
8463 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8464 wxString *arg8 = (wxString *) &arg8_defvalue ;
8465 bool result;
8466 void *argp1 = 0 ;
8467 int res1 = 0 ;
8468 void *argp2 = 0 ;
8469 int res2 = 0 ;
8470 int val3 ;
8471 int ecode3 = 0 ;
8472 void *argp4 = 0 ;
8473 int res4 = 0 ;
8474 wxPoint temp5 ;
8475 wxSize temp6 ;
8476 long val7 ;
8477 int ecode7 = 0 ;
8478 bool temp8 = false ;
8479 PyObject * obj0 = 0 ;
8480 PyObject * obj1 = 0 ;
8481 PyObject * obj2 = 0 ;
8482 PyObject * obj3 = 0 ;
8483 PyObject * obj4 = 0 ;
8484 PyObject * obj5 = 0 ;
8485 PyObject * obj6 = 0 ;
8486 PyObject * obj7 = 0 ;
8487 char * kwnames[] = {
8488 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8489 };
8490
8491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8493 if (!SWIG_IsOK(res1)) {
8494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8495 }
8496 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8497 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8498 if (!SWIG_IsOK(res2)) {
8499 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8500 }
8501 arg2 = reinterpret_cast< wxWindow * >(argp2);
8502 if (obj2) {
8503 ecode3 = SWIG_AsVal_int(obj2, &val3);
8504 if (!SWIG_IsOK(ecode3)) {
8505 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8506 }
8507 arg3 = static_cast< int >(val3);
8508 }
8509 if (obj3) {
8510 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8511 if (!SWIG_IsOK(res4)) {
8512 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8513 }
8514 if (!argp4) {
8515 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8516 }
8517 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8518 }
8519 if (obj4) {
8520 {
8521 arg5 = &temp5;
8522 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8523 }
8524 }
8525 if (obj5) {
8526 {
8527 arg6 = &temp6;
8528 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8529 }
8530 }
8531 if (obj6) {
8532 ecode7 = SWIG_AsVal_long(obj6, &val7);
8533 if (!SWIG_IsOK(ecode7)) {
8534 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8535 }
8536 arg7 = static_cast< long >(val7);
8537 }
8538 if (obj7) {
8539 {
8540 arg8 = wxString_in_helper(obj7);
8541 if (arg8 == NULL) SWIG_fail;
8542 temp8 = true;
8543 }
8544 }
8545 {
8546 PyThreadState* __tstate = wxPyBeginAllowThreads();
8547 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8548 wxPyEndAllowThreads(__tstate);
8549 if (PyErr_Occurred()) SWIG_fail;
8550 }
8551 {
8552 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8553 }
8554 {
8555 if (temp8)
8556 delete arg8;
8557 }
8558 return resultobj;
8559 fail:
8560 {
8561 if (temp8)
8562 delete arg8;
8563 }
8564 return NULL;
8565 }
8566
8567
8568 SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8569 PyObject *resultobj = 0;
8570 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8571 wxBitmap result;
8572 void *argp1 = 0 ;
8573 int res1 = 0 ;
8574 PyObject *swig_obj[1] ;
8575
8576 if (!args) SWIG_fail;
8577 swig_obj[0] = args;
8578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8579 if (!SWIG_IsOK(res1)) {
8580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8581 }
8582 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8583 {
8584 PyThreadState* __tstate = wxPyBeginAllowThreads();
8585 result = (arg1)->GetBitmap();
8586 wxPyEndAllowThreads(__tstate);
8587 if (PyErr_Occurred()) SWIG_fail;
8588 }
8589 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8590 return resultobj;
8591 fail:
8592 return NULL;
8593 }
8594
8595
8596 SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8597 PyObject *resultobj = 0;
8598 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8599 wxBitmap *arg2 = 0 ;
8600 void *argp1 = 0 ;
8601 int res1 = 0 ;
8602 void *argp2 = 0 ;
8603 int res2 = 0 ;
8604 PyObject * obj0 = 0 ;
8605 PyObject * obj1 = 0 ;
8606 char * kwnames[] = {
8607 (char *) "self",(char *) "bitmap", NULL
8608 };
8609
8610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8612 if (!SWIG_IsOK(res1)) {
8613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8614 }
8615 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8616 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8617 if (!SWIG_IsOK(res2)) {
8618 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8619 }
8620 if (!argp2) {
8621 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8622 }
8623 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8624 {
8625 PyThreadState* __tstate = wxPyBeginAllowThreads();
8626 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8627 wxPyEndAllowThreads(__tstate);
8628 if (PyErr_Occurred()) SWIG_fail;
8629 }
8630 resultobj = SWIG_Py_Void();
8631 return resultobj;
8632 fail:
8633 return NULL;
8634 }
8635
8636
8637 SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8638 PyObject *resultobj = 0;
8639 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8640 wxIcon *arg2 = 0 ;
8641 void *argp1 = 0 ;
8642 int res1 = 0 ;
8643 void *argp2 = 0 ;
8644 int res2 = 0 ;
8645 PyObject * obj0 = 0 ;
8646 PyObject * obj1 = 0 ;
8647 char * kwnames[] = {
8648 (char *) "self",(char *) "icon", NULL
8649 };
8650
8651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8653 if (!SWIG_IsOK(res1)) {
8654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8655 }
8656 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8657 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8658 if (!SWIG_IsOK(res2)) {
8659 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8660 }
8661 if (!argp2) {
8662 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8663 }
8664 arg2 = reinterpret_cast< wxIcon * >(argp2);
8665 {
8666 PyThreadState* __tstate = wxPyBeginAllowThreads();
8667 (arg1)->SetIcon((wxIcon const &)*arg2);
8668 wxPyEndAllowThreads(__tstate);
8669 if (PyErr_Occurred()) SWIG_fail;
8670 }
8671 resultobj = SWIG_Py_Void();
8672 return resultobj;
8673 fail:
8674 return NULL;
8675 }
8676
8677
8678 SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8679 PyObject *resultobj = 0;
8680 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8681 SwigValueWrapper<wxVisualAttributes > result;
8682 int val1 ;
8683 int ecode1 = 0 ;
8684 PyObject * obj0 = 0 ;
8685 char * kwnames[] = {
8686 (char *) "variant", NULL
8687 };
8688
8689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8690 if (obj0) {
8691 ecode1 = SWIG_AsVal_int(obj0, &val1);
8692 if (!SWIG_IsOK(ecode1)) {
8693 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8694 }
8695 arg1 = static_cast< wxWindowVariant >(val1);
8696 }
8697 {
8698 if (!wxPyCheckForApp()) SWIG_fail;
8699 PyThreadState* __tstate = wxPyBeginAllowThreads();
8700 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8701 wxPyEndAllowThreads(__tstate);
8702 if (PyErr_Occurred()) SWIG_fail;
8703 }
8704 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8705 return resultobj;
8706 fail:
8707 return NULL;
8708 }
8709
8710
8711 SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8712 PyObject *obj;
8713 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8714 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8715 return SWIG_Py_Void();
8716 }
8717
8718 SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8719 return SWIG_Python_InitShadowInstance(args);
8720 }
8721
8722 SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8723 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8724 return 1;
8725 }
8726
8727
8728 SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8729 PyObject *pyobj = 0;
8730
8731 {
8732 #if wxUSE_UNICODE
8733 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8734 #else
8735 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8736 #endif
8737 }
8738 return pyobj;
8739 }
8740
8741
8742 SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8743 PyObject *resultobj = 0;
8744 wxWindow *arg1 = (wxWindow *) 0 ;
8745 int arg2 = (int) -1 ;
8746 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8747 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8748 wxSize const &arg4_defvalue = wxDefaultSize ;
8749 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8750 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8751 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8752 long arg6 = (long) 0 ;
8753 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8754 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8755 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8756 wxString *arg8 = (wxString *) &arg8_defvalue ;
8757 wxListBox *result = 0 ;
8758 void *argp1 = 0 ;
8759 int res1 = 0 ;
8760 int val2 ;
8761 int ecode2 = 0 ;
8762 wxPoint temp3 ;
8763 wxSize temp4 ;
8764 bool temp5 = false ;
8765 long val6 ;
8766 int ecode6 = 0 ;
8767 void *argp7 = 0 ;
8768 int res7 = 0 ;
8769 bool temp8 = false ;
8770 PyObject * obj0 = 0 ;
8771 PyObject * obj1 = 0 ;
8772 PyObject * obj2 = 0 ;
8773 PyObject * obj3 = 0 ;
8774 PyObject * obj4 = 0 ;
8775 PyObject * obj5 = 0 ;
8776 PyObject * obj6 = 0 ;
8777 PyObject * obj7 = 0 ;
8778 char * kwnames[] = {
8779 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8780 };
8781
8782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8784 if (!SWIG_IsOK(res1)) {
8785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8786 }
8787 arg1 = reinterpret_cast< wxWindow * >(argp1);
8788 if (obj1) {
8789 ecode2 = SWIG_AsVal_int(obj1, &val2);
8790 if (!SWIG_IsOK(ecode2)) {
8791 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8792 }
8793 arg2 = static_cast< int >(val2);
8794 }
8795 if (obj2) {
8796 {
8797 arg3 = &temp3;
8798 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
8799 }
8800 }
8801 if (obj3) {
8802 {
8803 arg4 = &temp4;
8804 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
8805 }
8806 }
8807 if (obj4) {
8808 {
8809 if (! PySequence_Check(obj4)) {
8810 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8811 SWIG_fail;
8812 }
8813 arg5 = new wxArrayString;
8814 temp5 = true;
8815 int i, len=PySequence_Length(obj4);
8816 for (i=0; i<len; i++) {
8817 PyObject* item = PySequence_GetItem(obj4, i);
8818 wxString* s = wxString_in_helper(item);
8819 if (PyErr_Occurred()) SWIG_fail;
8820 arg5->Add(*s);
8821 delete s;
8822 Py_DECREF(item);
8823 }
8824 }
8825 }
8826 if (obj5) {
8827 ecode6 = SWIG_AsVal_long(obj5, &val6);
8828 if (!SWIG_IsOK(ecode6)) {
8829 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8830 }
8831 arg6 = static_cast< long >(val6);
8832 }
8833 if (obj6) {
8834 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8835 if (!SWIG_IsOK(res7)) {
8836 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8837 }
8838 if (!argp7) {
8839 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8840 }
8841 arg7 = reinterpret_cast< wxValidator * >(argp7);
8842 }
8843 if (obj7) {
8844 {
8845 arg8 = wxString_in_helper(obj7);
8846 if (arg8 == NULL) SWIG_fail;
8847 temp8 = true;
8848 }
8849 }
8850 {
8851 if (!wxPyCheckForApp()) SWIG_fail;
8852 PyThreadState* __tstate = wxPyBeginAllowThreads();
8853 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8854 wxPyEndAllowThreads(__tstate);
8855 if (PyErr_Occurred()) SWIG_fail;
8856 }
8857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8858 {
8859 if (temp5) delete arg5;
8860 }
8861 {
8862 if (temp8)
8863 delete arg8;
8864 }
8865 return resultobj;
8866 fail:
8867 {
8868 if (temp5) delete arg5;
8869 }
8870 {
8871 if (temp8)
8872 delete arg8;
8873 }
8874 return NULL;
8875 }
8876
8877
8878 SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8879 PyObject *resultobj = 0;
8880 wxListBox *result = 0 ;
8881
8882 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8883 {
8884 if (!wxPyCheckForApp()) SWIG_fail;
8885 PyThreadState* __tstate = wxPyBeginAllowThreads();
8886 result = (wxListBox *)new wxListBox();
8887 wxPyEndAllowThreads(__tstate);
8888 if (PyErr_Occurred()) SWIG_fail;
8889 }
8890 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8891 return resultobj;
8892 fail:
8893 return NULL;
8894 }
8895
8896
8897 SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8898 PyObject *resultobj = 0;
8899 wxListBox *arg1 = (wxListBox *) 0 ;
8900 wxWindow *arg2 = (wxWindow *) 0 ;
8901 int arg3 = (int) -1 ;
8902 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8903 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8904 wxSize const &arg5_defvalue = wxDefaultSize ;
8905 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8906 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8907 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8908 long arg7 = (long) 0 ;
8909 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8910 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8911 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8912 wxString *arg9 = (wxString *) &arg9_defvalue ;
8913 bool result;
8914 void *argp1 = 0 ;
8915 int res1 = 0 ;
8916 void *argp2 = 0 ;
8917 int res2 = 0 ;
8918 int val3 ;
8919 int ecode3 = 0 ;
8920 wxPoint temp4 ;
8921 wxSize temp5 ;
8922 bool temp6 = false ;
8923 long val7 ;
8924 int ecode7 = 0 ;
8925 void *argp8 = 0 ;
8926 int res8 = 0 ;
8927 bool temp9 = false ;
8928 PyObject * obj0 = 0 ;
8929 PyObject * obj1 = 0 ;
8930 PyObject * obj2 = 0 ;
8931 PyObject * obj3 = 0 ;
8932 PyObject * obj4 = 0 ;
8933 PyObject * obj5 = 0 ;
8934 PyObject * obj6 = 0 ;
8935 PyObject * obj7 = 0 ;
8936 PyObject * obj8 = 0 ;
8937 char * kwnames[] = {
8938 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8939 };
8940
8941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
8942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
8943 if (!SWIG_IsOK(res1)) {
8944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
8945 }
8946 arg1 = reinterpret_cast< wxListBox * >(argp1);
8947 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8948 if (!SWIG_IsOK(res2)) {
8949 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8950 }
8951 arg2 = reinterpret_cast< wxWindow * >(argp2);
8952 if (obj2) {
8953 ecode3 = SWIG_AsVal_int(obj2, &val3);
8954 if (!SWIG_IsOK(ecode3)) {
8955 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
8956 }
8957 arg3 = static_cast< int >(val3);
8958 }
8959 if (obj3) {
8960 {
8961 arg4 = &temp4;
8962 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8963 }
8964 }
8965 if (obj4) {
8966 {
8967 arg5 = &temp5;
8968 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8969 }
8970 }
8971 if (obj5) {
8972 {
8973 if (! PySequence_Check(obj5)) {
8974 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8975 SWIG_fail;
8976 }
8977 arg6 = new wxArrayString;
8978 temp6 = true;
8979 int i, len=PySequence_Length(obj5);
8980 for (i=0; i<len; i++) {
8981 PyObject* item = PySequence_GetItem(obj5, i);
8982 wxString* s = wxString_in_helper(item);
8983 if (PyErr_Occurred()) SWIG_fail;
8984 arg6->Add(*s);
8985 delete s;
8986 Py_DECREF(item);
8987 }
8988 }
8989 }
8990 if (obj6) {
8991 ecode7 = SWIG_AsVal_long(obj6, &val7);
8992 if (!SWIG_IsOK(ecode7)) {
8993 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
8994 }
8995 arg7 = static_cast< long >(val7);
8996 }
8997 if (obj7) {
8998 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
8999 if (!SWIG_IsOK(res8)) {
9000 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9001 }
9002 if (!argp8) {
9003 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9004 }
9005 arg8 = reinterpret_cast< wxValidator * >(argp8);
9006 }
9007 if (obj8) {
9008 {
9009 arg9 = wxString_in_helper(obj8);
9010 if (arg9 == NULL) SWIG_fail;
9011 temp9 = true;
9012 }
9013 }
9014 {
9015 PyThreadState* __tstate = wxPyBeginAllowThreads();
9016 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9017 wxPyEndAllowThreads(__tstate);
9018 if (PyErr_Occurred()) SWIG_fail;
9019 }
9020 {
9021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9022 }
9023 {
9024 if (temp6) delete arg6;
9025 }
9026 {
9027 if (temp9)
9028 delete arg9;
9029 }
9030 return resultobj;
9031 fail:
9032 {
9033 if (temp6) delete arg6;
9034 }
9035 {
9036 if (temp9)
9037 delete arg9;
9038 }
9039 return NULL;
9040 }
9041
9042
9043 SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9044 PyObject *resultobj = 0;
9045 wxListBox *arg1 = (wxListBox *) 0 ;
9046 wxString *arg2 = 0 ;
9047 int arg3 ;
9048 PyObject *arg4 = (PyObject *) NULL ;
9049 void *argp1 = 0 ;
9050 int res1 = 0 ;
9051 bool temp2 = false ;
9052 int val3 ;
9053 int ecode3 = 0 ;
9054 PyObject * obj0 = 0 ;
9055 PyObject * obj1 = 0 ;
9056 PyObject * obj2 = 0 ;
9057 PyObject * obj3 = 0 ;
9058 char * kwnames[] = {
9059 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9060 };
9061
9062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9064 if (!SWIG_IsOK(res1)) {
9065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9066 }
9067 arg1 = reinterpret_cast< wxListBox * >(argp1);
9068 {
9069 arg2 = wxString_in_helper(obj1);
9070 if (arg2 == NULL) SWIG_fail;
9071 temp2 = true;
9072 }
9073 ecode3 = SWIG_AsVal_int(obj2, &val3);
9074 if (!SWIG_IsOK(ecode3)) {
9075 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9076 }
9077 arg3 = static_cast< int >(val3);
9078 if (obj3) {
9079 arg4 = obj3;
9080 }
9081 {
9082 PyThreadState* __tstate = wxPyBeginAllowThreads();
9083 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9084 wxPyEndAllowThreads(__tstate);
9085 if (PyErr_Occurred()) SWIG_fail;
9086 }
9087 resultobj = SWIG_Py_Void();
9088 {
9089 if (temp2)
9090 delete arg2;
9091 }
9092 return resultobj;
9093 fail:
9094 {
9095 if (temp2)
9096 delete arg2;
9097 }
9098 return NULL;
9099 }
9100
9101
9102 SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9103 PyObject *resultobj = 0;
9104 wxListBox *arg1 = (wxListBox *) 0 ;
9105 wxArrayString *arg2 = 0 ;
9106 unsigned int arg3 ;
9107 void *argp1 = 0 ;
9108 int res1 = 0 ;
9109 bool temp2 = false ;
9110 unsigned int val3 ;
9111 int ecode3 = 0 ;
9112 PyObject * obj0 = 0 ;
9113 PyObject * obj1 = 0 ;
9114 PyObject * obj2 = 0 ;
9115 char * kwnames[] = {
9116 (char *) "self",(char *) "items",(char *) "pos", NULL
9117 };
9118
9119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9121 if (!SWIG_IsOK(res1)) {
9122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9123 }
9124 arg1 = reinterpret_cast< wxListBox * >(argp1);
9125 {
9126 if (! PySequence_Check(obj1)) {
9127 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9128 SWIG_fail;
9129 }
9130 arg2 = new wxArrayString;
9131 temp2 = true;
9132 int i, len=PySequence_Length(obj1);
9133 for (i=0; i<len; i++) {
9134 PyObject* item = PySequence_GetItem(obj1, i);
9135 wxString* s = wxString_in_helper(item);
9136 if (PyErr_Occurred()) SWIG_fail;
9137 arg2->Add(*s);
9138 delete s;
9139 Py_DECREF(item);
9140 }
9141 }
9142 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
9143 if (!SWIG_IsOK(ecode3)) {
9144 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
9145 }
9146 arg3 = static_cast< unsigned int >(val3);
9147 {
9148 PyThreadState* __tstate = wxPyBeginAllowThreads();
9149 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9150 wxPyEndAllowThreads(__tstate);
9151 if (PyErr_Occurred()) SWIG_fail;
9152 }
9153 resultobj = SWIG_Py_Void();
9154 {
9155 if (temp2) delete arg2;
9156 }
9157 return resultobj;
9158 fail:
9159 {
9160 if (temp2) delete arg2;
9161 }
9162 return NULL;
9163 }
9164
9165
9166 SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9167 PyObject *resultobj = 0;
9168 wxListBox *arg1 = (wxListBox *) 0 ;
9169 wxArrayString *arg2 = 0 ;
9170 void *argp1 = 0 ;
9171 int res1 = 0 ;
9172 bool temp2 = false ;
9173 PyObject * obj0 = 0 ;
9174 PyObject * obj1 = 0 ;
9175 char * kwnames[] = {
9176 (char *) "self",(char *) "items", NULL
9177 };
9178
9179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9181 if (!SWIG_IsOK(res1)) {
9182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9183 }
9184 arg1 = reinterpret_cast< wxListBox * >(argp1);
9185 {
9186 if (! PySequence_Check(obj1)) {
9187 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9188 SWIG_fail;
9189 }
9190 arg2 = new wxArrayString;
9191 temp2 = true;
9192 int i, len=PySequence_Length(obj1);
9193 for (i=0; i<len; i++) {
9194 PyObject* item = PySequence_GetItem(obj1, i);
9195 wxString* s = wxString_in_helper(item);
9196 if (PyErr_Occurred()) SWIG_fail;
9197 arg2->Add(*s);
9198 delete s;
9199 Py_DECREF(item);
9200 }
9201 }
9202 {
9203 PyThreadState* __tstate = wxPyBeginAllowThreads();
9204 (arg1)->Set((wxArrayString const &)*arg2);
9205 wxPyEndAllowThreads(__tstate);
9206 if (PyErr_Occurred()) SWIG_fail;
9207 }
9208 resultobj = SWIG_Py_Void();
9209 {
9210 if (temp2) delete arg2;
9211 }
9212 return resultobj;
9213 fail:
9214 {
9215 if (temp2) delete arg2;
9216 }
9217 return NULL;
9218 }
9219
9220
9221 SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9222 PyObject *resultobj = 0;
9223 wxListBox *arg1 = (wxListBox *) 0 ;
9224 int arg2 ;
9225 bool result;
9226 void *argp1 = 0 ;
9227 int res1 = 0 ;
9228 int val2 ;
9229 int ecode2 = 0 ;
9230 PyObject * obj0 = 0 ;
9231 PyObject * obj1 = 0 ;
9232 char * kwnames[] = {
9233 (char *) "self",(char *) "n", NULL
9234 };
9235
9236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9238 if (!SWIG_IsOK(res1)) {
9239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9240 }
9241 arg1 = reinterpret_cast< wxListBox * >(argp1);
9242 ecode2 = SWIG_AsVal_int(obj1, &val2);
9243 if (!SWIG_IsOK(ecode2)) {
9244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9245 }
9246 arg2 = static_cast< int >(val2);
9247 {
9248 PyThreadState* __tstate = wxPyBeginAllowThreads();
9249 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9250 wxPyEndAllowThreads(__tstate);
9251 if (PyErr_Occurred()) SWIG_fail;
9252 }
9253 {
9254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9255 }
9256 return resultobj;
9257 fail:
9258 return NULL;
9259 }
9260
9261
9262 SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9263 PyObject *resultobj = 0;
9264 wxListBox *arg1 = (wxListBox *) 0 ;
9265 int arg2 ;
9266 bool arg3 = (bool) true ;
9267 void *argp1 = 0 ;
9268 int res1 = 0 ;
9269 int val2 ;
9270 int ecode2 = 0 ;
9271 bool val3 ;
9272 int ecode3 = 0 ;
9273 PyObject * obj0 = 0 ;
9274 PyObject * obj1 = 0 ;
9275 PyObject * obj2 = 0 ;
9276 char * kwnames[] = {
9277 (char *) "self",(char *) "n",(char *) "select", NULL
9278 };
9279
9280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9282 if (!SWIG_IsOK(res1)) {
9283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9284 }
9285 arg1 = reinterpret_cast< wxListBox * >(argp1);
9286 ecode2 = SWIG_AsVal_int(obj1, &val2);
9287 if (!SWIG_IsOK(ecode2)) {
9288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9289 }
9290 arg2 = static_cast< int >(val2);
9291 if (obj2) {
9292 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9293 if (!SWIG_IsOK(ecode3)) {
9294 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9295 }
9296 arg3 = static_cast< bool >(val3);
9297 }
9298 {
9299 PyThreadState* __tstate = wxPyBeginAllowThreads();
9300 (arg1)->SetSelection(arg2,arg3);
9301 wxPyEndAllowThreads(__tstate);
9302 if (PyErr_Occurred()) SWIG_fail;
9303 }
9304 resultobj = SWIG_Py_Void();
9305 return resultobj;
9306 fail:
9307 return NULL;
9308 }
9309
9310
9311 SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9312 PyObject *resultobj = 0;
9313 wxListBox *arg1 = (wxListBox *) 0 ;
9314 int arg2 ;
9315 void *argp1 = 0 ;
9316 int res1 = 0 ;
9317 int val2 ;
9318 int ecode2 = 0 ;
9319 PyObject * obj0 = 0 ;
9320 PyObject * obj1 = 0 ;
9321 char * kwnames[] = {
9322 (char *) "self",(char *) "n", NULL
9323 };
9324
9325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9327 if (!SWIG_IsOK(res1)) {
9328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9329 }
9330 arg1 = reinterpret_cast< wxListBox * >(argp1);
9331 ecode2 = SWIG_AsVal_int(obj1, &val2);
9332 if (!SWIG_IsOK(ecode2)) {
9333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9334 }
9335 arg2 = static_cast< int >(val2);
9336 {
9337 PyThreadState* __tstate = wxPyBeginAllowThreads();
9338 (arg1)->Select(arg2);
9339 wxPyEndAllowThreads(__tstate);
9340 if (PyErr_Occurred()) SWIG_fail;
9341 }
9342 resultobj = SWIG_Py_Void();
9343 return resultobj;
9344 fail:
9345 return NULL;
9346 }
9347
9348
9349 SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9350 PyObject *resultobj = 0;
9351 wxListBox *arg1 = (wxListBox *) 0 ;
9352 int arg2 ;
9353 void *argp1 = 0 ;
9354 int res1 = 0 ;
9355 int val2 ;
9356 int ecode2 = 0 ;
9357 PyObject * obj0 = 0 ;
9358 PyObject * obj1 = 0 ;
9359 char * kwnames[] = {
9360 (char *) "self",(char *) "n", NULL
9361 };
9362
9363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9365 if (!SWIG_IsOK(res1)) {
9366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9367 }
9368 arg1 = reinterpret_cast< wxListBox * >(argp1);
9369 ecode2 = SWIG_AsVal_int(obj1, &val2);
9370 if (!SWIG_IsOK(ecode2)) {
9371 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9372 }
9373 arg2 = static_cast< int >(val2);
9374 {
9375 PyThreadState* __tstate = wxPyBeginAllowThreads();
9376 (arg1)->Deselect(arg2);
9377 wxPyEndAllowThreads(__tstate);
9378 if (PyErr_Occurred()) SWIG_fail;
9379 }
9380 resultobj = SWIG_Py_Void();
9381 return resultobj;
9382 fail:
9383 return NULL;
9384 }
9385
9386
9387 SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9388 PyObject *resultobj = 0;
9389 wxListBox *arg1 = (wxListBox *) 0 ;
9390 int arg2 = (int) -1 ;
9391 void *argp1 = 0 ;
9392 int res1 = 0 ;
9393 int val2 ;
9394 int ecode2 = 0 ;
9395 PyObject * obj0 = 0 ;
9396 PyObject * obj1 = 0 ;
9397 char * kwnames[] = {
9398 (char *) "self",(char *) "itemToLeaveSelected", NULL
9399 };
9400
9401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9403 if (!SWIG_IsOK(res1)) {
9404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9405 }
9406 arg1 = reinterpret_cast< wxListBox * >(argp1);
9407 if (obj1) {
9408 ecode2 = SWIG_AsVal_int(obj1, &val2);
9409 if (!SWIG_IsOK(ecode2)) {
9410 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9411 }
9412 arg2 = static_cast< int >(val2);
9413 }
9414 {
9415 PyThreadState* __tstate = wxPyBeginAllowThreads();
9416 (arg1)->DeselectAll(arg2);
9417 wxPyEndAllowThreads(__tstate);
9418 if (PyErr_Occurred()) SWIG_fail;
9419 }
9420 resultobj = SWIG_Py_Void();
9421 return resultobj;
9422 fail:
9423 return NULL;
9424 }
9425
9426
9427 SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9428 PyObject *resultobj = 0;
9429 wxListBox *arg1 = (wxListBox *) 0 ;
9430 wxString *arg2 = 0 ;
9431 bool arg3 = (bool) true ;
9432 bool result;
9433 void *argp1 = 0 ;
9434 int res1 = 0 ;
9435 bool temp2 = false ;
9436 bool val3 ;
9437 int ecode3 = 0 ;
9438 PyObject * obj0 = 0 ;
9439 PyObject * obj1 = 0 ;
9440 PyObject * obj2 = 0 ;
9441 char * kwnames[] = {
9442 (char *) "self",(char *) "s",(char *) "select", NULL
9443 };
9444
9445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9447 if (!SWIG_IsOK(res1)) {
9448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9449 }
9450 arg1 = reinterpret_cast< wxListBox * >(argp1);
9451 {
9452 arg2 = wxString_in_helper(obj1);
9453 if (arg2 == NULL) SWIG_fail;
9454 temp2 = true;
9455 }
9456 if (obj2) {
9457 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9458 if (!SWIG_IsOK(ecode3)) {
9459 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9460 }
9461 arg3 = static_cast< bool >(val3);
9462 }
9463 {
9464 PyThreadState* __tstate = wxPyBeginAllowThreads();
9465 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9466 wxPyEndAllowThreads(__tstate);
9467 if (PyErr_Occurred()) SWIG_fail;
9468 }
9469 {
9470 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9471 }
9472 {
9473 if (temp2)
9474 delete arg2;
9475 }
9476 return resultobj;
9477 fail:
9478 {
9479 if (temp2)
9480 delete arg2;
9481 }
9482 return NULL;
9483 }
9484
9485
9486 SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9487 PyObject *resultobj = 0;
9488 wxListBox *arg1 = (wxListBox *) 0 ;
9489 PyObject *result = 0 ;
9490 void *argp1 = 0 ;
9491 int res1 = 0 ;
9492 PyObject *swig_obj[1] ;
9493
9494 if (!args) SWIG_fail;
9495 swig_obj[0] = args;
9496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9497 if (!SWIG_IsOK(res1)) {
9498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9499 }
9500 arg1 = reinterpret_cast< wxListBox * >(argp1);
9501 {
9502 PyThreadState* __tstate = wxPyBeginAllowThreads();
9503 result = (PyObject *)wxListBox_GetSelections(arg1);
9504 wxPyEndAllowThreads(__tstate);
9505 if (PyErr_Occurred()) SWIG_fail;
9506 }
9507 resultobj = result;
9508 return resultobj;
9509 fail:
9510 return NULL;
9511 }
9512
9513
9514 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9515 PyObject *resultobj = 0;
9516 wxListBox *arg1 = (wxListBox *) 0 ;
9517 int arg2 ;
9518 void *argp1 = 0 ;
9519 int res1 = 0 ;
9520 int val2 ;
9521 int ecode2 = 0 ;
9522 PyObject * obj0 = 0 ;
9523 PyObject * obj1 = 0 ;
9524 char * kwnames[] = {
9525 (char *) "self",(char *) "n", NULL
9526 };
9527
9528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9530 if (!SWIG_IsOK(res1)) {
9531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9532 }
9533 arg1 = reinterpret_cast< wxListBox * >(argp1);
9534 ecode2 = SWIG_AsVal_int(obj1, &val2);
9535 if (!SWIG_IsOK(ecode2)) {
9536 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9537 }
9538 arg2 = static_cast< int >(val2);
9539 {
9540 PyThreadState* __tstate = wxPyBeginAllowThreads();
9541 (arg1)->SetFirstItem(arg2);
9542 wxPyEndAllowThreads(__tstate);
9543 if (PyErr_Occurred()) SWIG_fail;
9544 }
9545 resultobj = SWIG_Py_Void();
9546 return resultobj;
9547 fail:
9548 return NULL;
9549 }
9550
9551
9552 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9553 PyObject *resultobj = 0;
9554 wxListBox *arg1 = (wxListBox *) 0 ;
9555 wxString *arg2 = 0 ;
9556 void *argp1 = 0 ;
9557 int res1 = 0 ;
9558 bool temp2 = false ;
9559 PyObject * obj0 = 0 ;
9560 PyObject * obj1 = 0 ;
9561 char * kwnames[] = {
9562 (char *) "self",(char *) "s", NULL
9563 };
9564
9565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9567 if (!SWIG_IsOK(res1)) {
9568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9569 }
9570 arg1 = reinterpret_cast< wxListBox * >(argp1);
9571 {
9572 arg2 = wxString_in_helper(obj1);
9573 if (arg2 == NULL) SWIG_fail;
9574 temp2 = true;
9575 }
9576 {
9577 PyThreadState* __tstate = wxPyBeginAllowThreads();
9578 (arg1)->SetFirstItem((wxString const &)*arg2);
9579 wxPyEndAllowThreads(__tstate);
9580 if (PyErr_Occurred()) SWIG_fail;
9581 }
9582 resultobj = SWIG_Py_Void();
9583 {
9584 if (temp2)
9585 delete arg2;
9586 }
9587 return resultobj;
9588 fail:
9589 {
9590 if (temp2)
9591 delete arg2;
9592 }
9593 return NULL;
9594 }
9595
9596
9597 SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9598 PyObject *resultobj = 0;
9599 wxListBox *arg1 = (wxListBox *) 0 ;
9600 int arg2 ;
9601 void *argp1 = 0 ;
9602 int res1 = 0 ;
9603 int val2 ;
9604 int ecode2 = 0 ;
9605 PyObject * obj0 = 0 ;
9606 PyObject * obj1 = 0 ;
9607 char * kwnames[] = {
9608 (char *) "self",(char *) "n", NULL
9609 };
9610
9611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9613 if (!SWIG_IsOK(res1)) {
9614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9615 }
9616 arg1 = reinterpret_cast< wxListBox * >(argp1);
9617 ecode2 = SWIG_AsVal_int(obj1, &val2);
9618 if (!SWIG_IsOK(ecode2)) {
9619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9620 }
9621 arg2 = static_cast< int >(val2);
9622 {
9623 PyThreadState* __tstate = wxPyBeginAllowThreads();
9624 (arg1)->EnsureVisible(arg2);
9625 wxPyEndAllowThreads(__tstate);
9626 if (PyErr_Occurred()) SWIG_fail;
9627 }
9628 resultobj = SWIG_Py_Void();
9629 return resultobj;
9630 fail:
9631 return NULL;
9632 }
9633
9634
9635 SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9636 PyObject *resultobj = 0;
9637 wxListBox *arg1 = (wxListBox *) 0 ;
9638 wxString *arg2 = 0 ;
9639 void *argp1 = 0 ;
9640 int res1 = 0 ;
9641 bool temp2 = false ;
9642 PyObject * obj0 = 0 ;
9643 PyObject * obj1 = 0 ;
9644 char * kwnames[] = {
9645 (char *) "self",(char *) "s", NULL
9646 };
9647
9648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9650 if (!SWIG_IsOK(res1)) {
9651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9652 }
9653 arg1 = reinterpret_cast< wxListBox * >(argp1);
9654 {
9655 arg2 = wxString_in_helper(obj1);
9656 if (arg2 == NULL) SWIG_fail;
9657 temp2 = true;
9658 }
9659 {
9660 PyThreadState* __tstate = wxPyBeginAllowThreads();
9661 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9662 wxPyEndAllowThreads(__tstate);
9663 if (PyErr_Occurred()) SWIG_fail;
9664 }
9665 resultobj = SWIG_Py_Void();
9666 {
9667 if (temp2)
9668 delete arg2;
9669 }
9670 return resultobj;
9671 fail:
9672 {
9673 if (temp2)
9674 delete arg2;
9675 }
9676 return NULL;
9677 }
9678
9679
9680 SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9681 PyObject *resultobj = 0;
9682 wxListBox *arg1 = (wxListBox *) 0 ;
9683 bool result;
9684 void *argp1 = 0 ;
9685 int res1 = 0 ;
9686 PyObject *swig_obj[1] ;
9687
9688 if (!args) SWIG_fail;
9689 swig_obj[0] = args;
9690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9691 if (!SWIG_IsOK(res1)) {
9692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9693 }
9694 arg1 = reinterpret_cast< wxListBox * >(argp1);
9695 {
9696 PyThreadState* __tstate = wxPyBeginAllowThreads();
9697 result = (bool)((wxListBox const *)arg1)->IsSorted();
9698 wxPyEndAllowThreads(__tstate);
9699 if (PyErr_Occurred()) SWIG_fail;
9700 }
9701 {
9702 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9703 }
9704 return resultobj;
9705 fail:
9706 return NULL;
9707 }
9708
9709
9710 SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9711 PyObject *resultobj = 0;
9712 wxListBox *arg1 = (wxListBox *) 0 ;
9713 wxPoint *arg2 = 0 ;
9714 int result;
9715 void *argp1 = 0 ;
9716 int res1 = 0 ;
9717 wxPoint temp2 ;
9718 PyObject * obj0 = 0 ;
9719 PyObject * obj1 = 0 ;
9720 char * kwnames[] = {
9721 (char *) "self",(char *) "pt", NULL
9722 };
9723
9724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9726 if (!SWIG_IsOK(res1)) {
9727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9728 }
9729 arg1 = reinterpret_cast< wxListBox * >(argp1);
9730 {
9731 arg2 = &temp2;
9732 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9733 }
9734 {
9735 PyThreadState* __tstate = wxPyBeginAllowThreads();
9736 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9737 wxPyEndAllowThreads(__tstate);
9738 if (PyErr_Occurred()) SWIG_fail;
9739 }
9740 resultobj = SWIG_From_int(static_cast< int >(result));
9741 return resultobj;
9742 fail:
9743 return NULL;
9744 }
9745
9746
9747 SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9748 PyObject *resultobj = 0;
9749 wxListBox *arg1 = (wxListBox *) 0 ;
9750 int arg2 ;
9751 wxColour *arg3 = 0 ;
9752 void *argp1 = 0 ;
9753 int res1 = 0 ;
9754 int val2 ;
9755 int ecode2 = 0 ;
9756 wxColour temp3 ;
9757 PyObject * obj0 = 0 ;
9758 PyObject * obj1 = 0 ;
9759 PyObject * obj2 = 0 ;
9760 char * kwnames[] = {
9761 (char *) "self",(char *) "item",(char *) "c", NULL
9762 };
9763
9764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9766 if (!SWIG_IsOK(res1)) {
9767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9768 }
9769 arg1 = reinterpret_cast< wxListBox * >(argp1);
9770 ecode2 = SWIG_AsVal_int(obj1, &val2);
9771 if (!SWIG_IsOK(ecode2)) {
9772 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9773 }
9774 arg2 = static_cast< int >(val2);
9775 {
9776 arg3 = &temp3;
9777 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9778 }
9779 {
9780 PyThreadState* __tstate = wxPyBeginAllowThreads();
9781 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9782 wxPyEndAllowThreads(__tstate);
9783 if (PyErr_Occurred()) SWIG_fail;
9784 }
9785 resultobj = SWIG_Py_Void();
9786 return resultobj;
9787 fail:
9788 return NULL;
9789 }
9790
9791
9792 SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9793 PyObject *resultobj = 0;
9794 wxListBox *arg1 = (wxListBox *) 0 ;
9795 int arg2 ;
9796 wxColour *arg3 = 0 ;
9797 void *argp1 = 0 ;
9798 int res1 = 0 ;
9799 int val2 ;
9800 int ecode2 = 0 ;
9801 wxColour temp3 ;
9802 PyObject * obj0 = 0 ;
9803 PyObject * obj1 = 0 ;
9804 PyObject * obj2 = 0 ;
9805 char * kwnames[] = {
9806 (char *) "self",(char *) "item",(char *) "c", NULL
9807 };
9808
9809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9811 if (!SWIG_IsOK(res1)) {
9812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9813 }
9814 arg1 = reinterpret_cast< wxListBox * >(argp1);
9815 ecode2 = SWIG_AsVal_int(obj1, &val2);
9816 if (!SWIG_IsOK(ecode2)) {
9817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9818 }
9819 arg2 = static_cast< int >(val2);
9820 {
9821 arg3 = &temp3;
9822 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9823 }
9824 {
9825 PyThreadState* __tstate = wxPyBeginAllowThreads();
9826 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9827 wxPyEndAllowThreads(__tstate);
9828 if (PyErr_Occurred()) SWIG_fail;
9829 }
9830 resultobj = SWIG_Py_Void();
9831 return resultobj;
9832 fail:
9833 return NULL;
9834 }
9835
9836
9837 SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9838 PyObject *resultobj = 0;
9839 wxListBox *arg1 = (wxListBox *) 0 ;
9840 int arg2 ;
9841 wxFont *arg3 = 0 ;
9842 void *argp1 = 0 ;
9843 int res1 = 0 ;
9844 int val2 ;
9845 int ecode2 = 0 ;
9846 void *argp3 = 0 ;
9847 int res3 = 0 ;
9848 PyObject * obj0 = 0 ;
9849 PyObject * obj1 = 0 ;
9850 PyObject * obj2 = 0 ;
9851 char * kwnames[] = {
9852 (char *) "self",(char *) "item",(char *) "f", NULL
9853 };
9854
9855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9857 if (!SWIG_IsOK(res1)) {
9858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9859 }
9860 arg1 = reinterpret_cast< wxListBox * >(argp1);
9861 ecode2 = SWIG_AsVal_int(obj1, &val2);
9862 if (!SWIG_IsOK(ecode2)) {
9863 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9864 }
9865 arg2 = static_cast< int >(val2);
9866 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9867 if (!SWIG_IsOK(res3)) {
9868 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9869 }
9870 if (!argp3) {
9871 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9872 }
9873 arg3 = reinterpret_cast< wxFont * >(argp3);
9874 {
9875 PyThreadState* __tstate = wxPyBeginAllowThreads();
9876 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9877 wxPyEndAllowThreads(__tstate);
9878 if (PyErr_Occurred()) SWIG_fail;
9879 }
9880 resultobj = SWIG_Py_Void();
9881 return resultobj;
9882 fail:
9883 return NULL;
9884 }
9885
9886
9887 SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9888 PyObject *resultobj = 0;
9889 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9890 SwigValueWrapper<wxVisualAttributes > result;
9891 int val1 ;
9892 int ecode1 = 0 ;
9893 PyObject * obj0 = 0 ;
9894 char * kwnames[] = {
9895 (char *) "variant", NULL
9896 };
9897
9898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9899 if (obj0) {
9900 ecode1 = SWIG_AsVal_int(obj0, &val1);
9901 if (!SWIG_IsOK(ecode1)) {
9902 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9903 }
9904 arg1 = static_cast< wxWindowVariant >(val1);
9905 }
9906 {
9907 if (!wxPyCheckForApp()) SWIG_fail;
9908 PyThreadState* __tstate = wxPyBeginAllowThreads();
9909 result = wxListBox::GetClassDefaultAttributes(arg1);
9910 wxPyEndAllowThreads(__tstate);
9911 if (PyErr_Occurred()) SWIG_fail;
9912 }
9913 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9914 return resultobj;
9915 fail:
9916 return NULL;
9917 }
9918
9919
9920 SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9921 PyObject *obj;
9922 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9923 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9924 return SWIG_Py_Void();
9925 }
9926
9927 SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9928 return SWIG_Python_InitShadowInstance(args);
9929 }
9930
9931 SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9932 PyObject *resultobj = 0;
9933 wxWindow *arg1 = (wxWindow *) 0 ;
9934 int arg2 = (int) -1 ;
9935 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9936 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9937 wxSize const &arg4_defvalue = wxDefaultSize ;
9938 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9939 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
9940 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
9941 long arg6 = (long) 0 ;
9942 wxValidator const &arg7_defvalue = wxDefaultValidator ;
9943 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
9944 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
9945 wxString *arg8 = (wxString *) &arg8_defvalue ;
9946 wxCheckListBox *result = 0 ;
9947 void *argp1 = 0 ;
9948 int res1 = 0 ;
9949 int val2 ;
9950 int ecode2 = 0 ;
9951 wxPoint temp3 ;
9952 wxSize temp4 ;
9953 bool temp5 = false ;
9954 long val6 ;
9955 int ecode6 = 0 ;
9956 void *argp7 = 0 ;
9957 int res7 = 0 ;
9958 bool temp8 = false ;
9959 PyObject * obj0 = 0 ;
9960 PyObject * obj1 = 0 ;
9961 PyObject * obj2 = 0 ;
9962 PyObject * obj3 = 0 ;
9963 PyObject * obj4 = 0 ;
9964 PyObject * obj5 = 0 ;
9965 PyObject * obj6 = 0 ;
9966 PyObject * obj7 = 0 ;
9967 char * kwnames[] = {
9968 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9969 };
9970
9971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
9972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
9973 if (!SWIG_IsOK(res1)) {
9974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
9975 }
9976 arg1 = reinterpret_cast< wxWindow * >(argp1);
9977 if (obj1) {
9978 ecode2 = SWIG_AsVal_int(obj1, &val2);
9979 if (!SWIG_IsOK(ecode2)) {
9980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
9981 }
9982 arg2 = static_cast< int >(val2);
9983 }
9984 if (obj2) {
9985 {
9986 arg3 = &temp3;
9987 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9988 }
9989 }
9990 if (obj3) {
9991 {
9992 arg4 = &temp4;
9993 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
9994 }
9995 }
9996 if (obj4) {
9997 {
9998 if (! PySequence_Check(obj4)) {
9999 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10000 SWIG_fail;
10001 }
10002 arg5 = new wxArrayString;
10003 temp5 = true;
10004 int i, len=PySequence_Length(obj4);
10005 for (i=0; i<len; i++) {
10006 PyObject* item = PySequence_GetItem(obj4, i);
10007 wxString* s = wxString_in_helper(item);
10008 if (PyErr_Occurred()) SWIG_fail;
10009 arg5->Add(*s);
10010 delete s;
10011 Py_DECREF(item);
10012 }
10013 }
10014 }
10015 if (obj5) {
10016 ecode6 = SWIG_AsVal_long(obj5, &val6);
10017 if (!SWIG_IsOK(ecode6)) {
10018 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10019 }
10020 arg6 = static_cast< long >(val6);
10021 }
10022 if (obj6) {
10023 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10024 if (!SWIG_IsOK(res7)) {
10025 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10026 }
10027 if (!argp7) {
10028 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10029 }
10030 arg7 = reinterpret_cast< wxValidator * >(argp7);
10031 }
10032 if (obj7) {
10033 {
10034 arg8 = wxString_in_helper(obj7);
10035 if (arg8 == NULL) SWIG_fail;
10036 temp8 = true;
10037 }
10038 }
10039 {
10040 if (!wxPyCheckForApp()) SWIG_fail;
10041 PyThreadState* __tstate = wxPyBeginAllowThreads();
10042 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10043 wxPyEndAllowThreads(__tstate);
10044 if (PyErr_Occurred()) SWIG_fail;
10045 }
10046 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10047 {
10048 if (temp5) delete arg5;
10049 }
10050 {
10051 if (temp8)
10052 delete arg8;
10053 }
10054 return resultobj;
10055 fail:
10056 {
10057 if (temp5) delete arg5;
10058 }
10059 {
10060 if (temp8)
10061 delete arg8;
10062 }
10063 return NULL;
10064 }
10065
10066
10067 SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10068 PyObject *resultobj = 0;
10069 wxCheckListBox *result = 0 ;
10070
10071 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10072 {
10073 if (!wxPyCheckForApp()) SWIG_fail;
10074 PyThreadState* __tstate = wxPyBeginAllowThreads();
10075 result = (wxCheckListBox *)new wxCheckListBox();
10076 wxPyEndAllowThreads(__tstate);
10077 if (PyErr_Occurred()) SWIG_fail;
10078 }
10079 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10080 return resultobj;
10081 fail:
10082 return NULL;
10083 }
10084
10085
10086 SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10087 PyObject *resultobj = 0;
10088 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10089 wxWindow *arg2 = (wxWindow *) 0 ;
10090 int arg3 = (int) -1 ;
10091 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10092 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10093 wxSize const &arg5_defvalue = wxDefaultSize ;
10094 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10095 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10096 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10097 long arg7 = (long) 0 ;
10098 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10099 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10100 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10101 wxString *arg9 = (wxString *) &arg9_defvalue ;
10102 bool result;
10103 void *argp1 = 0 ;
10104 int res1 = 0 ;
10105 void *argp2 = 0 ;
10106 int res2 = 0 ;
10107 int val3 ;
10108 int ecode3 = 0 ;
10109 wxPoint temp4 ;
10110 wxSize temp5 ;
10111 bool temp6 = false ;
10112 long val7 ;
10113 int ecode7 = 0 ;
10114 void *argp8 = 0 ;
10115 int res8 = 0 ;
10116 bool temp9 = false ;
10117 PyObject * obj0 = 0 ;
10118 PyObject * obj1 = 0 ;
10119 PyObject * obj2 = 0 ;
10120 PyObject * obj3 = 0 ;
10121 PyObject * obj4 = 0 ;
10122 PyObject * obj5 = 0 ;
10123 PyObject * obj6 = 0 ;
10124 PyObject * obj7 = 0 ;
10125 PyObject * obj8 = 0 ;
10126 char * kwnames[] = {
10127 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10128 };
10129
10130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10132 if (!SWIG_IsOK(res1)) {
10133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10134 }
10135 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10136 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10137 if (!SWIG_IsOK(res2)) {
10138 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10139 }
10140 arg2 = reinterpret_cast< wxWindow * >(argp2);
10141 if (obj2) {
10142 ecode3 = SWIG_AsVal_int(obj2, &val3);
10143 if (!SWIG_IsOK(ecode3)) {
10144 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10145 }
10146 arg3 = static_cast< int >(val3);
10147 }
10148 if (obj3) {
10149 {
10150 arg4 = &temp4;
10151 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10152 }
10153 }
10154 if (obj4) {
10155 {
10156 arg5 = &temp5;
10157 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10158 }
10159 }
10160 if (obj5) {
10161 {
10162 if (! PySequence_Check(obj5)) {
10163 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10164 SWIG_fail;
10165 }
10166 arg6 = new wxArrayString;
10167 temp6 = true;
10168 int i, len=PySequence_Length(obj5);
10169 for (i=0; i<len; i++) {
10170 PyObject* item = PySequence_GetItem(obj5, i);
10171 wxString* s = wxString_in_helper(item);
10172 if (PyErr_Occurred()) SWIG_fail;
10173 arg6->Add(*s);
10174 delete s;
10175 Py_DECREF(item);
10176 }
10177 }
10178 }
10179 if (obj6) {
10180 ecode7 = SWIG_AsVal_long(obj6, &val7);
10181 if (!SWIG_IsOK(ecode7)) {
10182 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10183 }
10184 arg7 = static_cast< long >(val7);
10185 }
10186 if (obj7) {
10187 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10188 if (!SWIG_IsOK(res8)) {
10189 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10190 }
10191 if (!argp8) {
10192 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10193 }
10194 arg8 = reinterpret_cast< wxValidator * >(argp8);
10195 }
10196 if (obj8) {
10197 {
10198 arg9 = wxString_in_helper(obj8);
10199 if (arg9 == NULL) SWIG_fail;
10200 temp9 = true;
10201 }
10202 }
10203 {
10204 PyThreadState* __tstate = wxPyBeginAllowThreads();
10205 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10206 wxPyEndAllowThreads(__tstate);
10207 if (PyErr_Occurred()) SWIG_fail;
10208 }
10209 {
10210 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10211 }
10212 {
10213 if (temp6) delete arg6;
10214 }
10215 {
10216 if (temp9)
10217 delete arg9;
10218 }
10219 return resultobj;
10220 fail:
10221 {
10222 if (temp6) delete arg6;
10223 }
10224 {
10225 if (temp9)
10226 delete arg9;
10227 }
10228 return NULL;
10229 }
10230
10231
10232 SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10233 PyObject *resultobj = 0;
10234 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10235 unsigned int arg2 ;
10236 bool result;
10237 void *argp1 = 0 ;
10238 int res1 = 0 ;
10239 unsigned int val2 ;
10240 int ecode2 = 0 ;
10241 PyObject * obj0 = 0 ;
10242 PyObject * obj1 = 0 ;
10243 char * kwnames[] = {
10244 (char *) "self",(char *) "index", NULL
10245 };
10246
10247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10249 if (!SWIG_IsOK(res1)) {
10250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10251 }
10252 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10253 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10254 if (!SWIG_IsOK(ecode2)) {
10255 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
10256 }
10257 arg2 = static_cast< unsigned int >(val2);
10258 {
10259 PyThreadState* __tstate = wxPyBeginAllowThreads();
10260 result = (bool)(arg1)->IsChecked(arg2);
10261 wxPyEndAllowThreads(__tstate);
10262 if (PyErr_Occurred()) SWIG_fail;
10263 }
10264 {
10265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10266 }
10267 return resultobj;
10268 fail:
10269 return NULL;
10270 }
10271
10272
10273 SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10274 PyObject *resultobj = 0;
10275 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10276 unsigned int arg2 ;
10277 int arg3 = (int) true ;
10278 void *argp1 = 0 ;
10279 int res1 = 0 ;
10280 unsigned int val2 ;
10281 int ecode2 = 0 ;
10282 int val3 ;
10283 int ecode3 = 0 ;
10284 PyObject * obj0 = 0 ;
10285 PyObject * obj1 = 0 ;
10286 PyObject * obj2 = 0 ;
10287 char * kwnames[] = {
10288 (char *) "self",(char *) "index",(char *) "check", NULL
10289 };
10290
10291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10293 if (!SWIG_IsOK(res1)) {
10294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10295 }
10296 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10297 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10298 if (!SWIG_IsOK(ecode2)) {
10299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
10300 }
10301 arg2 = static_cast< unsigned int >(val2);
10302 if (obj2) {
10303 ecode3 = SWIG_AsVal_int(obj2, &val3);
10304 if (!SWIG_IsOK(ecode3)) {
10305 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10306 }
10307 arg3 = static_cast< int >(val3);
10308 }
10309 {
10310 PyThreadState* __tstate = wxPyBeginAllowThreads();
10311 (arg1)->Check(arg2,arg3);
10312 wxPyEndAllowThreads(__tstate);
10313 if (PyErr_Occurred()) SWIG_fail;
10314 }
10315 resultobj = SWIG_Py_Void();
10316 return resultobj;
10317 fail:
10318 return NULL;
10319 }
10320
10321
10322 SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10323 PyObject *obj;
10324 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10325 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10326 return SWIG_Py_Void();
10327 }
10328
10329 SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10330 return SWIG_Python_InitShadowInstance(args);
10331 }
10332
10333 SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10334 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10335 return 1;
10336 }
10337
10338
10339 SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10340 PyObject *pyobj = 0;
10341
10342 {
10343 #if wxUSE_UNICODE
10344 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10345 #else
10346 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10347 #endif
10348 }
10349 return pyobj;
10350 }
10351
10352
10353 SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10354 PyObject *resultobj = 0;
10355 wxColour const &arg1_defvalue = wxNullColour ;
10356 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10357 wxColour const &arg2_defvalue = wxNullColour ;
10358 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10359 wxFont const &arg3_defvalue = wxNullFont ;
10360 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10361 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10362 wxTextAttr *result = 0 ;
10363 wxColour temp1 ;
10364 wxColour temp2 ;
10365 void *argp3 = 0 ;
10366 int res3 = 0 ;
10367 int val4 ;
10368 int ecode4 = 0 ;
10369 PyObject * obj0 = 0 ;
10370 PyObject * obj1 = 0 ;
10371 PyObject * obj2 = 0 ;
10372 PyObject * obj3 = 0 ;
10373 char * kwnames[] = {
10374 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10375 };
10376
10377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10378 if (obj0) {
10379 {
10380 arg1 = &temp1;
10381 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
10382 }
10383 }
10384 if (obj1) {
10385 {
10386 arg2 = &temp2;
10387 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10388 }
10389 }
10390 if (obj2) {
10391 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10392 if (!SWIG_IsOK(res3)) {
10393 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10394 }
10395 if (!argp3) {
10396 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10397 }
10398 arg3 = reinterpret_cast< wxFont * >(argp3);
10399 }
10400 if (obj3) {
10401 ecode4 = SWIG_AsVal_int(obj3, &val4);
10402 if (!SWIG_IsOK(ecode4)) {
10403 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10404 }
10405 arg4 = static_cast< wxTextAttrAlignment >(val4);
10406 }
10407 {
10408 PyThreadState* __tstate = wxPyBeginAllowThreads();
10409 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10410 wxPyEndAllowThreads(__tstate);
10411 if (PyErr_Occurred()) SWIG_fail;
10412 }
10413 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10414 return resultobj;
10415 fail:
10416 return NULL;
10417 }
10418
10419
10420 SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10421 PyObject *resultobj = 0;
10422 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10423 void *argp1 = 0 ;
10424 int res1 = 0 ;
10425 PyObject *swig_obj[1] ;
10426
10427 if (!args) SWIG_fail;
10428 swig_obj[0] = args;
10429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10430 if (!SWIG_IsOK(res1)) {
10431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10432 }
10433 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10434 {
10435 PyThreadState* __tstate = wxPyBeginAllowThreads();
10436 delete arg1;
10437
10438 wxPyEndAllowThreads(__tstate);
10439 if (PyErr_Occurred()) SWIG_fail;
10440 }
10441 resultobj = SWIG_Py_Void();
10442 return resultobj;
10443 fail:
10444 return NULL;
10445 }
10446
10447
10448 SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10449 PyObject *resultobj = 0;
10450 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10451 void *argp1 = 0 ;
10452 int res1 = 0 ;
10453 PyObject *swig_obj[1] ;
10454
10455 if (!args) SWIG_fail;
10456 swig_obj[0] = args;
10457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10458 if (!SWIG_IsOK(res1)) {
10459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10460 }
10461 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10462 {
10463 PyThreadState* __tstate = wxPyBeginAllowThreads();
10464 (arg1)->Init();
10465 wxPyEndAllowThreads(__tstate);
10466 if (PyErr_Occurred()) SWIG_fail;
10467 }
10468 resultobj = SWIG_Py_Void();
10469 return resultobj;
10470 fail:
10471 return NULL;
10472 }
10473
10474
10475 SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10476 PyObject *resultobj = 0;
10477 wxTextAttr *arg1 = 0 ;
10478 wxTextAttr *arg2 = 0 ;
10479 wxTextAttr result;
10480 void *argp1 = 0 ;
10481 int res1 = 0 ;
10482 void *argp2 = 0 ;
10483 int res2 = 0 ;
10484 PyObject * obj0 = 0 ;
10485 PyObject * obj1 = 0 ;
10486 char * kwnames[] = {
10487 (char *) "base",(char *) "overlay", NULL
10488 };
10489
10490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10491 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10492 if (!SWIG_IsOK(res1)) {
10493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10494 }
10495 if (!argp1) {
10496 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10497 }
10498 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10499 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10500 if (!SWIG_IsOK(res2)) {
10501 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10502 }
10503 if (!argp2) {
10504 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10505 }
10506 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10507 {
10508 PyThreadState* __tstate = wxPyBeginAllowThreads();
10509 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10510 wxPyEndAllowThreads(__tstate);
10511 if (PyErr_Occurred()) SWIG_fail;
10512 }
10513 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10514 return resultobj;
10515 fail:
10516 return NULL;
10517 }
10518
10519
10520 SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10521 PyObject *resultobj = 0;
10522 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10523 wxColour *arg2 = 0 ;
10524 void *argp1 = 0 ;
10525 int res1 = 0 ;
10526 wxColour temp2 ;
10527 PyObject * obj0 = 0 ;
10528 PyObject * obj1 = 0 ;
10529 char * kwnames[] = {
10530 (char *) "self",(char *) "colText", NULL
10531 };
10532
10533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10535 if (!SWIG_IsOK(res1)) {
10536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10537 }
10538 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10539 {
10540 arg2 = &temp2;
10541 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10542 }
10543 {
10544 PyThreadState* __tstate = wxPyBeginAllowThreads();
10545 (arg1)->SetTextColour((wxColour const &)*arg2);
10546 wxPyEndAllowThreads(__tstate);
10547 if (PyErr_Occurred()) SWIG_fail;
10548 }
10549 resultobj = SWIG_Py_Void();
10550 return resultobj;
10551 fail:
10552 return NULL;
10553 }
10554
10555
10556 SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10557 PyObject *resultobj = 0;
10558 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10559 wxColour *arg2 = 0 ;
10560 void *argp1 = 0 ;
10561 int res1 = 0 ;
10562 wxColour temp2 ;
10563 PyObject * obj0 = 0 ;
10564 PyObject * obj1 = 0 ;
10565 char * kwnames[] = {
10566 (char *) "self",(char *) "colBack", NULL
10567 };
10568
10569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10571 if (!SWIG_IsOK(res1)) {
10572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10573 }
10574 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10575 {
10576 arg2 = &temp2;
10577 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10578 }
10579 {
10580 PyThreadState* __tstate = wxPyBeginAllowThreads();
10581 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10582 wxPyEndAllowThreads(__tstate);
10583 if (PyErr_Occurred()) SWIG_fail;
10584 }
10585 resultobj = SWIG_Py_Void();
10586 return resultobj;
10587 fail:
10588 return NULL;
10589 }
10590
10591
10592 SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10593 PyObject *resultobj = 0;
10594 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10595 wxFont *arg2 = 0 ;
10596 long arg3 = (long) wxTEXT_ATTR_FONT ;
10597 void *argp1 = 0 ;
10598 int res1 = 0 ;
10599 void *argp2 = 0 ;
10600 int res2 = 0 ;
10601 long val3 ;
10602 int ecode3 = 0 ;
10603 PyObject * obj0 = 0 ;
10604 PyObject * obj1 = 0 ;
10605 PyObject * obj2 = 0 ;
10606 char * kwnames[] = {
10607 (char *) "self",(char *) "font",(char *) "flags", NULL
10608 };
10609
10610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10612 if (!SWIG_IsOK(res1)) {
10613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10614 }
10615 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10616 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10617 if (!SWIG_IsOK(res2)) {
10618 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10619 }
10620 if (!argp2) {
10621 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10622 }
10623 arg2 = reinterpret_cast< wxFont * >(argp2);
10624 if (obj2) {
10625 ecode3 = SWIG_AsVal_long(obj2, &val3);
10626 if (!SWIG_IsOK(ecode3)) {
10627 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10628 }
10629 arg3 = static_cast< long >(val3);
10630 }
10631 {
10632 PyThreadState* __tstate = wxPyBeginAllowThreads();
10633 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10634 wxPyEndAllowThreads(__tstate);
10635 if (PyErr_Occurred()) SWIG_fail;
10636 }
10637 resultobj = SWIG_Py_Void();
10638 return resultobj;
10639 fail:
10640 return NULL;
10641 }
10642
10643
10644 SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10645 PyObject *resultobj = 0;
10646 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10647 wxTextAttrAlignment arg2 ;
10648 void *argp1 = 0 ;
10649 int res1 = 0 ;
10650 int val2 ;
10651 int ecode2 = 0 ;
10652 PyObject * obj0 = 0 ;
10653 PyObject * obj1 = 0 ;
10654 char * kwnames[] = {
10655 (char *) "self",(char *) "alignment", NULL
10656 };
10657
10658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10660 if (!SWIG_IsOK(res1)) {
10661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10662 }
10663 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10664 ecode2 = SWIG_AsVal_int(obj1, &val2);
10665 if (!SWIG_IsOK(ecode2)) {
10666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10667 }
10668 arg2 = static_cast< wxTextAttrAlignment >(val2);
10669 {
10670 PyThreadState* __tstate = wxPyBeginAllowThreads();
10671 (arg1)->SetAlignment(arg2);
10672 wxPyEndAllowThreads(__tstate);
10673 if (PyErr_Occurred()) SWIG_fail;
10674 }
10675 resultobj = SWIG_Py_Void();
10676 return resultobj;
10677 fail:
10678 return NULL;
10679 }
10680
10681
10682 SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10683 PyObject *resultobj = 0;
10684 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10685 wxArrayInt *arg2 = 0 ;
10686 void *argp1 = 0 ;
10687 int res1 = 0 ;
10688 bool temp2 = false ;
10689 PyObject * obj0 = 0 ;
10690 PyObject * obj1 = 0 ;
10691 char * kwnames[] = {
10692 (char *) "self",(char *) "tabs", NULL
10693 };
10694
10695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10697 if (!SWIG_IsOK(res1)) {
10698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10699 }
10700 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10701 {
10702 if (! PySequence_Check(obj1)) {
10703 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10704 SWIG_fail;
10705 }
10706 arg2 = new wxArrayInt;
10707 temp2 = true;
10708 int i, len=PySequence_Length(obj1);
10709 for (i=0; i<len; i++) {
10710 PyObject* item = PySequence_GetItem(obj1, i);
10711 PyObject* number = PyNumber_Int(item);
10712 arg2->Add(PyInt_AS_LONG(number));
10713 Py_DECREF(item);
10714 Py_DECREF(number);
10715 }
10716 }
10717 {
10718 PyThreadState* __tstate = wxPyBeginAllowThreads();
10719 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10720 wxPyEndAllowThreads(__tstate);
10721 if (PyErr_Occurred()) SWIG_fail;
10722 }
10723 resultobj = SWIG_Py_Void();
10724 {
10725 if (temp2) delete arg2;
10726 }
10727 return resultobj;
10728 fail:
10729 {
10730 if (temp2) delete arg2;
10731 }
10732 return NULL;
10733 }
10734
10735
10736 SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10737 PyObject *resultobj = 0;
10738 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10739 int arg2 ;
10740 int arg3 = (int) 0 ;
10741 void *argp1 = 0 ;
10742 int res1 = 0 ;
10743 int val2 ;
10744 int ecode2 = 0 ;
10745 int val3 ;
10746 int ecode3 = 0 ;
10747 PyObject * obj0 = 0 ;
10748 PyObject * obj1 = 0 ;
10749 PyObject * obj2 = 0 ;
10750 char * kwnames[] = {
10751 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10752 };
10753
10754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10756 if (!SWIG_IsOK(res1)) {
10757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10758 }
10759 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10760 ecode2 = SWIG_AsVal_int(obj1, &val2);
10761 if (!SWIG_IsOK(ecode2)) {
10762 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10763 }
10764 arg2 = static_cast< int >(val2);
10765 if (obj2) {
10766 ecode3 = SWIG_AsVal_int(obj2, &val3);
10767 if (!SWIG_IsOK(ecode3)) {
10768 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10769 }
10770 arg3 = static_cast< int >(val3);
10771 }
10772 {
10773 PyThreadState* __tstate = wxPyBeginAllowThreads();
10774 (arg1)->SetLeftIndent(arg2,arg3);
10775 wxPyEndAllowThreads(__tstate);
10776 if (PyErr_Occurred()) SWIG_fail;
10777 }
10778 resultobj = SWIG_Py_Void();
10779 return resultobj;
10780 fail:
10781 return NULL;
10782 }
10783
10784
10785 SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10786 PyObject *resultobj = 0;
10787 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10788 int arg2 ;
10789 void *argp1 = 0 ;
10790 int res1 = 0 ;
10791 int val2 ;
10792 int ecode2 = 0 ;
10793 PyObject * obj0 = 0 ;
10794 PyObject * obj1 = 0 ;
10795 char * kwnames[] = {
10796 (char *) "self",(char *) "indent", NULL
10797 };
10798
10799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10801 if (!SWIG_IsOK(res1)) {
10802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10803 }
10804 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10805 ecode2 = SWIG_AsVal_int(obj1, &val2);
10806 if (!SWIG_IsOK(ecode2)) {
10807 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10808 }
10809 arg2 = static_cast< int >(val2);
10810 {
10811 PyThreadState* __tstate = wxPyBeginAllowThreads();
10812 (arg1)->SetRightIndent(arg2);
10813 wxPyEndAllowThreads(__tstate);
10814 if (PyErr_Occurred()) SWIG_fail;
10815 }
10816 resultobj = SWIG_Py_Void();
10817 return resultobj;
10818 fail:
10819 return NULL;
10820 }
10821
10822
10823 SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10824 PyObject *resultobj = 0;
10825 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10826 long arg2 ;
10827 void *argp1 = 0 ;
10828 int res1 = 0 ;
10829 long val2 ;
10830 int ecode2 = 0 ;
10831 PyObject * obj0 = 0 ;
10832 PyObject * obj1 = 0 ;
10833 char * kwnames[] = {
10834 (char *) "self",(char *) "flags", NULL
10835 };
10836
10837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10839 if (!SWIG_IsOK(res1)) {
10840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10841 }
10842 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10843 ecode2 = SWIG_AsVal_long(obj1, &val2);
10844 if (!SWIG_IsOK(ecode2)) {
10845 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10846 }
10847 arg2 = static_cast< long >(val2);
10848 {
10849 PyThreadState* __tstate = wxPyBeginAllowThreads();
10850 (arg1)->SetFlags(arg2);
10851 wxPyEndAllowThreads(__tstate);
10852 if (PyErr_Occurred()) SWIG_fail;
10853 }
10854 resultobj = SWIG_Py_Void();
10855 return resultobj;
10856 fail:
10857 return NULL;
10858 }
10859
10860
10861 SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10862 PyObject *resultobj = 0;
10863 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10864 bool result;
10865 void *argp1 = 0 ;
10866 int res1 = 0 ;
10867 PyObject *swig_obj[1] ;
10868
10869 if (!args) SWIG_fail;
10870 swig_obj[0] = args;
10871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10872 if (!SWIG_IsOK(res1)) {
10873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10874 }
10875 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10876 {
10877 PyThreadState* __tstate = wxPyBeginAllowThreads();
10878 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10879 wxPyEndAllowThreads(__tstate);
10880 if (PyErr_Occurred()) SWIG_fail;
10881 }
10882 {
10883 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10884 }
10885 return resultobj;
10886 fail:
10887 return NULL;
10888 }
10889
10890
10891 SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10892 PyObject *resultobj = 0;
10893 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10894 bool result;
10895 void *argp1 = 0 ;
10896 int res1 = 0 ;
10897 PyObject *swig_obj[1] ;
10898
10899 if (!args) SWIG_fail;
10900 swig_obj[0] = args;
10901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10902 if (!SWIG_IsOK(res1)) {
10903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10904 }
10905 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10906 {
10907 PyThreadState* __tstate = wxPyBeginAllowThreads();
10908 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
10909 wxPyEndAllowThreads(__tstate);
10910 if (PyErr_Occurred()) SWIG_fail;
10911 }
10912 {
10913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10914 }
10915 return resultobj;
10916 fail:
10917 return NULL;
10918 }
10919
10920
10921 SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10922 PyObject *resultobj = 0;
10923 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10924 bool result;
10925 void *argp1 = 0 ;
10926 int res1 = 0 ;
10927 PyObject *swig_obj[1] ;
10928
10929 if (!args) SWIG_fail;
10930 swig_obj[0] = args;
10931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10932 if (!SWIG_IsOK(res1)) {
10933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10934 }
10935 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10936 {
10937 PyThreadState* __tstate = wxPyBeginAllowThreads();
10938 result = (bool)((wxTextAttr const *)arg1)->HasFont();
10939 wxPyEndAllowThreads(__tstate);
10940 if (PyErr_Occurred()) SWIG_fail;
10941 }
10942 {
10943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10944 }
10945 return resultobj;
10946 fail:
10947 return NULL;
10948 }
10949
10950
10951 SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10952 PyObject *resultobj = 0;
10953 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10954 bool result;
10955 void *argp1 = 0 ;
10956 int res1 = 0 ;
10957 PyObject *swig_obj[1] ;
10958
10959 if (!args) SWIG_fail;
10960 swig_obj[0] = args;
10961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10962 if (!SWIG_IsOK(res1)) {
10963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10964 }
10965 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10966 {
10967 PyThreadState* __tstate = wxPyBeginAllowThreads();
10968 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
10969 wxPyEndAllowThreads(__tstate);
10970 if (PyErr_Occurred()) SWIG_fail;
10971 }
10972 {
10973 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10974 }
10975 return resultobj;
10976 fail:
10977 return NULL;
10978 }
10979
10980
10981 SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10982 PyObject *resultobj = 0;
10983 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10984 bool result;
10985 void *argp1 = 0 ;
10986 int res1 = 0 ;
10987 PyObject *swig_obj[1] ;
10988
10989 if (!args) SWIG_fail;
10990 swig_obj[0] = args;
10991 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10992 if (!SWIG_IsOK(res1)) {
10993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10994 }
10995 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10996 {
10997 PyThreadState* __tstate = wxPyBeginAllowThreads();
10998 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
10999 wxPyEndAllowThreads(__tstate);
11000 if (PyErr_Occurred()) SWIG_fail;
11001 }
11002 {
11003 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11004 }
11005 return resultobj;
11006 fail:
11007 return NULL;
11008 }
11009
11010
11011 SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11012 PyObject *resultobj = 0;
11013 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11014 bool result;
11015 void *argp1 = 0 ;
11016 int res1 = 0 ;
11017 PyObject *swig_obj[1] ;
11018
11019 if (!args) SWIG_fail;
11020 swig_obj[0] = args;
11021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11022 if (!SWIG_IsOK(res1)) {
11023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11024 }
11025 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11026 {
11027 PyThreadState* __tstate = wxPyBeginAllowThreads();
11028 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11029 wxPyEndAllowThreads(__tstate);
11030 if (PyErr_Occurred()) SWIG_fail;
11031 }
11032 {
11033 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11034 }
11035 return resultobj;
11036 fail:
11037 return NULL;
11038 }
11039
11040
11041 SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11042 PyObject *resultobj = 0;
11043 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11044 bool result;
11045 void *argp1 = 0 ;
11046 int res1 = 0 ;
11047 PyObject *swig_obj[1] ;
11048
11049 if (!args) SWIG_fail;
11050 swig_obj[0] = args;
11051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11052 if (!SWIG_IsOK(res1)) {
11053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11054 }
11055 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11056 {
11057 PyThreadState* __tstate = wxPyBeginAllowThreads();
11058 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11059 wxPyEndAllowThreads(__tstate);
11060 if (PyErr_Occurred()) SWIG_fail;
11061 }
11062 {
11063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11064 }
11065 return resultobj;
11066 fail:
11067 return NULL;
11068 }
11069
11070
11071 SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11072 PyObject *resultobj = 0;
11073 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11074 long arg2 ;
11075 bool result;
11076 void *argp1 = 0 ;
11077 int res1 = 0 ;
11078 long val2 ;
11079 int ecode2 = 0 ;
11080 PyObject * obj0 = 0 ;
11081 PyObject * obj1 = 0 ;
11082 char * kwnames[] = {
11083 (char *) "self",(char *) "flag", NULL
11084 };
11085
11086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11088 if (!SWIG_IsOK(res1)) {
11089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11090 }
11091 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11092 ecode2 = SWIG_AsVal_long(obj1, &val2);
11093 if (!SWIG_IsOK(ecode2)) {
11094 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11095 }
11096 arg2 = static_cast< long >(val2);
11097 {
11098 PyThreadState* __tstate = wxPyBeginAllowThreads();
11099 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
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_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11113 PyObject *resultobj = 0;
11114 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11115 wxColour *result = 0 ;
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_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11125 }
11126 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11127 {
11128 PyThreadState* __tstate = wxPyBeginAllowThreads();
11129 {
11130 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11131 result = (wxColour *) &_result_ref;
11132 }
11133 wxPyEndAllowThreads(__tstate);
11134 if (PyErr_Occurred()) SWIG_fail;
11135 }
11136 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11137 return resultobj;
11138 fail:
11139 return NULL;
11140 }
11141
11142
11143 SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11144 PyObject *resultobj = 0;
11145 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11146 wxColour *result = 0 ;
11147 void *argp1 = 0 ;
11148 int res1 = 0 ;
11149 PyObject *swig_obj[1] ;
11150
11151 if (!args) SWIG_fail;
11152 swig_obj[0] = args;
11153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11154 if (!SWIG_IsOK(res1)) {
11155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11156 }
11157 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11158 {
11159 PyThreadState* __tstate = wxPyBeginAllowThreads();
11160 {
11161 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11162 result = (wxColour *) &_result_ref;
11163 }
11164 wxPyEndAllowThreads(__tstate);
11165 if (PyErr_Occurred()) SWIG_fail;
11166 }
11167 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11168 return resultobj;
11169 fail:
11170 return NULL;
11171 }
11172
11173
11174 SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11175 PyObject *resultobj = 0;
11176 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11177 wxFont *result = 0 ;
11178 void *argp1 = 0 ;
11179 int res1 = 0 ;
11180 PyObject *swig_obj[1] ;
11181
11182 if (!args) SWIG_fail;
11183 swig_obj[0] = args;
11184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11185 if (!SWIG_IsOK(res1)) {
11186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11187 }
11188 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11189 {
11190 PyThreadState* __tstate = wxPyBeginAllowThreads();
11191 {
11192 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11193 result = (wxFont *) &_result_ref;
11194 }
11195 wxPyEndAllowThreads(__tstate);
11196 if (PyErr_Occurred()) SWIG_fail;
11197 }
11198 {
11199 wxFont* resultptr = new wxFont(*result);
11200 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11201 }
11202 return resultobj;
11203 fail:
11204 return NULL;
11205 }
11206
11207
11208 SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11209 PyObject *resultobj = 0;
11210 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11211 wxTextAttrAlignment result;
11212 void *argp1 = 0 ;
11213 int res1 = 0 ;
11214 PyObject *swig_obj[1] ;
11215
11216 if (!args) SWIG_fail;
11217 swig_obj[0] = args;
11218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11219 if (!SWIG_IsOK(res1)) {
11220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11221 }
11222 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11223 {
11224 PyThreadState* __tstate = wxPyBeginAllowThreads();
11225 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11226 wxPyEndAllowThreads(__tstate);
11227 if (PyErr_Occurred()) SWIG_fail;
11228 }
11229 resultobj = SWIG_From_int(static_cast< int >(result));
11230 return resultobj;
11231 fail:
11232 return NULL;
11233 }
11234
11235
11236 SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11237 PyObject *resultobj = 0;
11238 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11239 wxArrayInt *result = 0 ;
11240 void *argp1 = 0 ;
11241 int res1 = 0 ;
11242 PyObject *swig_obj[1] ;
11243
11244 if (!args) SWIG_fail;
11245 swig_obj[0] = args;
11246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11247 if (!SWIG_IsOK(res1)) {
11248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11249 }
11250 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11251 {
11252 PyThreadState* __tstate = wxPyBeginAllowThreads();
11253 {
11254 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11255 result = (wxArrayInt *) &_result_ref;
11256 }
11257 wxPyEndAllowThreads(__tstate);
11258 if (PyErr_Occurred()) SWIG_fail;
11259 }
11260 {
11261 resultobj = PyList_New(0);
11262 size_t idx;
11263 for (idx = 0; idx < result->GetCount(); idx += 1) {
11264 PyObject* val = PyInt_FromLong( result->Item(idx) );
11265 PyList_Append(resultobj, val);
11266 Py_DECREF(val);
11267 }
11268 }
11269 return resultobj;
11270 fail:
11271 return NULL;
11272 }
11273
11274
11275 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11276 PyObject *resultobj = 0;
11277 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11278 long result;
11279 void *argp1 = 0 ;
11280 int res1 = 0 ;
11281 PyObject *swig_obj[1] ;
11282
11283 if (!args) SWIG_fail;
11284 swig_obj[0] = args;
11285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11286 if (!SWIG_IsOK(res1)) {
11287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11288 }
11289 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11290 {
11291 PyThreadState* __tstate = wxPyBeginAllowThreads();
11292 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11293 wxPyEndAllowThreads(__tstate);
11294 if (PyErr_Occurred()) SWIG_fail;
11295 }
11296 resultobj = SWIG_From_long(static_cast< long >(result));
11297 return resultobj;
11298 fail:
11299 return NULL;
11300 }
11301
11302
11303 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11304 PyObject *resultobj = 0;
11305 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11306 long result;
11307 void *argp1 = 0 ;
11308 int res1 = 0 ;
11309 PyObject *swig_obj[1] ;
11310
11311 if (!args) SWIG_fail;
11312 swig_obj[0] = args;
11313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11314 if (!SWIG_IsOK(res1)) {
11315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11316 }
11317 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11318 {
11319 PyThreadState* __tstate = wxPyBeginAllowThreads();
11320 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11321 wxPyEndAllowThreads(__tstate);
11322 if (PyErr_Occurred()) SWIG_fail;
11323 }
11324 resultobj = SWIG_From_long(static_cast< long >(result));
11325 return resultobj;
11326 fail:
11327 return NULL;
11328 }
11329
11330
11331 SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11332 PyObject *resultobj = 0;
11333 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11334 long result;
11335 void *argp1 = 0 ;
11336 int res1 = 0 ;
11337 PyObject *swig_obj[1] ;
11338
11339 if (!args) SWIG_fail;
11340 swig_obj[0] = args;
11341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11342 if (!SWIG_IsOK(res1)) {
11343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11344 }
11345 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11346 {
11347 PyThreadState* __tstate = wxPyBeginAllowThreads();
11348 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11349 wxPyEndAllowThreads(__tstate);
11350 if (PyErr_Occurred()) SWIG_fail;
11351 }
11352 resultobj = SWIG_From_long(static_cast< long >(result));
11353 return resultobj;
11354 fail:
11355 return NULL;
11356 }
11357
11358
11359 SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11360 PyObject *resultobj = 0;
11361 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11362 long result;
11363 void *argp1 = 0 ;
11364 int res1 = 0 ;
11365 PyObject *swig_obj[1] ;
11366
11367 if (!args) SWIG_fail;
11368 swig_obj[0] = args;
11369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11370 if (!SWIG_IsOK(res1)) {
11371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11372 }
11373 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11374 {
11375 PyThreadState* __tstate = wxPyBeginAllowThreads();
11376 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11377 wxPyEndAllowThreads(__tstate);
11378 if (PyErr_Occurred()) SWIG_fail;
11379 }
11380 resultobj = SWIG_From_long(static_cast< long >(result));
11381 return resultobj;
11382 fail:
11383 return NULL;
11384 }
11385
11386
11387 SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11388 PyObject *resultobj = 0;
11389 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11390 bool result;
11391 void *argp1 = 0 ;
11392 int res1 = 0 ;
11393 PyObject *swig_obj[1] ;
11394
11395 if (!args) SWIG_fail;
11396 swig_obj[0] = args;
11397 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11398 if (!SWIG_IsOK(res1)) {
11399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11400 }
11401 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11402 {
11403 PyThreadState* __tstate = wxPyBeginAllowThreads();
11404 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11405 wxPyEndAllowThreads(__tstate);
11406 if (PyErr_Occurred()) SWIG_fail;
11407 }
11408 {
11409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11410 }
11411 return resultobj;
11412 fail:
11413 return NULL;
11414 }
11415
11416
11417 SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11418 PyObject *resultobj = 0;
11419 wxTextAttr *arg1 = 0 ;
11420 wxTextAttr *arg2 = 0 ;
11421 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11422 wxTextAttr result;
11423 void *argp1 = 0 ;
11424 int res1 = 0 ;
11425 void *argp2 = 0 ;
11426 int res2 = 0 ;
11427 void *argp3 = 0 ;
11428 int res3 = 0 ;
11429 PyObject * obj0 = 0 ;
11430 PyObject * obj1 = 0 ;
11431 PyObject * obj2 = 0 ;
11432 char * kwnames[] = {
11433 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11434 };
11435
11436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11437 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11438 if (!SWIG_IsOK(res1)) {
11439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11440 }
11441 if (!argp1) {
11442 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11443 }
11444 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11445 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11446 if (!SWIG_IsOK(res2)) {
11447 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11448 }
11449 if (!argp2) {
11450 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11451 }
11452 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11453 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11454 if (!SWIG_IsOK(res3)) {
11455 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11456 }
11457 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11458 {
11459 PyThreadState* __tstate = wxPyBeginAllowThreads();
11460 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11461 wxPyEndAllowThreads(__tstate);
11462 if (PyErr_Occurred()) SWIG_fail;
11463 }
11464 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11465 return resultobj;
11466 fail:
11467 return NULL;
11468 }
11469
11470
11471 SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11472 PyObject *obj;
11473 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11474 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11475 return SWIG_Py_Void();
11476 }
11477
11478 SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11479 return SWIG_Python_InitShadowInstance(args);
11480 }
11481
11482 SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11483 PyObject *resultobj = 0;
11484 wxWindow *arg1 = (wxWindow *) 0 ;
11485 int arg2 = (int) -1 ;
11486 wxString const &arg3_defvalue = wxPyEmptyString ;
11487 wxString *arg3 = (wxString *) &arg3_defvalue ;
11488 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11489 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11490 wxSize const &arg5_defvalue = wxDefaultSize ;
11491 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11492 long arg6 = (long) 0 ;
11493 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11494 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11495 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11496 wxString *arg8 = (wxString *) &arg8_defvalue ;
11497 wxTextCtrl *result = 0 ;
11498 void *argp1 = 0 ;
11499 int res1 = 0 ;
11500 int val2 ;
11501 int ecode2 = 0 ;
11502 bool temp3 = false ;
11503 wxPoint temp4 ;
11504 wxSize temp5 ;
11505 long val6 ;
11506 int ecode6 = 0 ;
11507 void *argp7 = 0 ;
11508 int res7 = 0 ;
11509 bool temp8 = false ;
11510 PyObject * obj0 = 0 ;
11511 PyObject * obj1 = 0 ;
11512 PyObject * obj2 = 0 ;
11513 PyObject * obj3 = 0 ;
11514 PyObject * obj4 = 0 ;
11515 PyObject * obj5 = 0 ;
11516 PyObject * obj6 = 0 ;
11517 PyObject * obj7 = 0 ;
11518 char * kwnames[] = {
11519 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11520 };
11521
11522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11524 if (!SWIG_IsOK(res1)) {
11525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11526 }
11527 arg1 = reinterpret_cast< wxWindow * >(argp1);
11528 if (obj1) {
11529 ecode2 = SWIG_AsVal_int(obj1, &val2);
11530 if (!SWIG_IsOK(ecode2)) {
11531 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11532 }
11533 arg2 = static_cast< int >(val2);
11534 }
11535 if (obj2) {
11536 {
11537 arg3 = wxString_in_helper(obj2);
11538 if (arg3 == NULL) SWIG_fail;
11539 temp3 = true;
11540 }
11541 }
11542 if (obj3) {
11543 {
11544 arg4 = &temp4;
11545 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11546 }
11547 }
11548 if (obj4) {
11549 {
11550 arg5 = &temp5;
11551 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11552 }
11553 }
11554 if (obj5) {
11555 ecode6 = SWIG_AsVal_long(obj5, &val6);
11556 if (!SWIG_IsOK(ecode6)) {
11557 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11558 }
11559 arg6 = static_cast< long >(val6);
11560 }
11561 if (obj6) {
11562 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11563 if (!SWIG_IsOK(res7)) {
11564 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11565 }
11566 if (!argp7) {
11567 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11568 }
11569 arg7 = reinterpret_cast< wxValidator * >(argp7);
11570 }
11571 if (obj7) {
11572 {
11573 arg8 = wxString_in_helper(obj7);
11574 if (arg8 == NULL) SWIG_fail;
11575 temp8 = true;
11576 }
11577 }
11578 {
11579 if (!wxPyCheckForApp()) SWIG_fail;
11580 PyThreadState* __tstate = wxPyBeginAllowThreads();
11581 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11582 wxPyEndAllowThreads(__tstate);
11583 if (PyErr_Occurred()) SWIG_fail;
11584 }
11585 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11586 {
11587 if (temp3)
11588 delete arg3;
11589 }
11590 {
11591 if (temp8)
11592 delete arg8;
11593 }
11594 return resultobj;
11595 fail:
11596 {
11597 if (temp3)
11598 delete arg3;
11599 }
11600 {
11601 if (temp8)
11602 delete arg8;
11603 }
11604 return NULL;
11605 }
11606
11607
11608 SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11609 PyObject *resultobj = 0;
11610 wxTextCtrl *result = 0 ;
11611
11612 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11613 {
11614 if (!wxPyCheckForApp()) SWIG_fail;
11615 PyThreadState* __tstate = wxPyBeginAllowThreads();
11616 result = (wxTextCtrl *)new wxTextCtrl();
11617 wxPyEndAllowThreads(__tstate);
11618 if (PyErr_Occurred()) SWIG_fail;
11619 }
11620 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11621 return resultobj;
11622 fail:
11623 return NULL;
11624 }
11625
11626
11627 SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11628 PyObject *resultobj = 0;
11629 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11630 wxWindow *arg2 = (wxWindow *) 0 ;
11631 int arg3 = (int) -1 ;
11632 wxString const &arg4_defvalue = wxPyEmptyString ;
11633 wxString *arg4 = (wxString *) &arg4_defvalue ;
11634 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11635 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11636 wxSize const &arg6_defvalue = wxDefaultSize ;
11637 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11638 long arg7 = (long) 0 ;
11639 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11640 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11641 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11642 wxString *arg9 = (wxString *) &arg9_defvalue ;
11643 bool result;
11644 void *argp1 = 0 ;
11645 int res1 = 0 ;
11646 void *argp2 = 0 ;
11647 int res2 = 0 ;
11648 int val3 ;
11649 int ecode3 = 0 ;
11650 bool temp4 = false ;
11651 wxPoint temp5 ;
11652 wxSize temp6 ;
11653 long val7 ;
11654 int ecode7 = 0 ;
11655 void *argp8 = 0 ;
11656 int res8 = 0 ;
11657 bool temp9 = false ;
11658 PyObject * obj0 = 0 ;
11659 PyObject * obj1 = 0 ;
11660 PyObject * obj2 = 0 ;
11661 PyObject * obj3 = 0 ;
11662 PyObject * obj4 = 0 ;
11663 PyObject * obj5 = 0 ;
11664 PyObject * obj6 = 0 ;
11665 PyObject * obj7 = 0 ;
11666 PyObject * obj8 = 0 ;
11667 char * kwnames[] = {
11668 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11669 };
11670
11671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11673 if (!SWIG_IsOK(res1)) {
11674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11675 }
11676 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11677 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11678 if (!SWIG_IsOK(res2)) {
11679 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11680 }
11681 arg2 = reinterpret_cast< wxWindow * >(argp2);
11682 if (obj2) {
11683 ecode3 = SWIG_AsVal_int(obj2, &val3);
11684 if (!SWIG_IsOK(ecode3)) {
11685 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11686 }
11687 arg3 = static_cast< int >(val3);
11688 }
11689 if (obj3) {
11690 {
11691 arg4 = wxString_in_helper(obj3);
11692 if (arg4 == NULL) SWIG_fail;
11693 temp4 = true;
11694 }
11695 }
11696 if (obj4) {
11697 {
11698 arg5 = &temp5;
11699 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11700 }
11701 }
11702 if (obj5) {
11703 {
11704 arg6 = &temp6;
11705 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11706 }
11707 }
11708 if (obj6) {
11709 ecode7 = SWIG_AsVal_long(obj6, &val7);
11710 if (!SWIG_IsOK(ecode7)) {
11711 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11712 }
11713 arg7 = static_cast< long >(val7);
11714 }
11715 if (obj7) {
11716 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11717 if (!SWIG_IsOK(res8)) {
11718 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11719 }
11720 if (!argp8) {
11721 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11722 }
11723 arg8 = reinterpret_cast< wxValidator * >(argp8);
11724 }
11725 if (obj8) {
11726 {
11727 arg9 = wxString_in_helper(obj8);
11728 if (arg9 == NULL) SWIG_fail;
11729 temp9 = true;
11730 }
11731 }
11732 {
11733 PyThreadState* __tstate = wxPyBeginAllowThreads();
11734 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11735 wxPyEndAllowThreads(__tstate);
11736 if (PyErr_Occurred()) SWIG_fail;
11737 }
11738 {
11739 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11740 }
11741 {
11742 if (temp4)
11743 delete arg4;
11744 }
11745 {
11746 if (temp9)
11747 delete arg9;
11748 }
11749 return resultobj;
11750 fail:
11751 {
11752 if (temp4)
11753 delete arg4;
11754 }
11755 {
11756 if (temp9)
11757 delete arg9;
11758 }
11759 return NULL;
11760 }
11761
11762
11763 SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11764 PyObject *resultobj = 0;
11765 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11766 wxString result;
11767 void *argp1 = 0 ;
11768 int res1 = 0 ;
11769 PyObject *swig_obj[1] ;
11770
11771 if (!args) SWIG_fail;
11772 swig_obj[0] = args;
11773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11774 if (!SWIG_IsOK(res1)) {
11775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11776 }
11777 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11778 {
11779 PyThreadState* __tstate = wxPyBeginAllowThreads();
11780 result = ((wxTextCtrl const *)arg1)->GetValue();
11781 wxPyEndAllowThreads(__tstate);
11782 if (PyErr_Occurred()) SWIG_fail;
11783 }
11784 {
11785 #if wxUSE_UNICODE
11786 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11787 #else
11788 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11789 #endif
11790 }
11791 return resultobj;
11792 fail:
11793 return NULL;
11794 }
11795
11796
11797 SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11798 PyObject *resultobj = 0;
11799 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11800 wxString *arg2 = 0 ;
11801 void *argp1 = 0 ;
11802 int res1 = 0 ;
11803 bool temp2 = false ;
11804 PyObject * obj0 = 0 ;
11805 PyObject * obj1 = 0 ;
11806 char * kwnames[] = {
11807 (char *) "self",(char *) "value", NULL
11808 };
11809
11810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11812 if (!SWIG_IsOK(res1)) {
11813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11814 }
11815 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11816 {
11817 arg2 = wxString_in_helper(obj1);
11818 if (arg2 == NULL) SWIG_fail;
11819 temp2 = true;
11820 }
11821 {
11822 PyThreadState* __tstate = wxPyBeginAllowThreads();
11823 (arg1)->SetValue((wxString const &)*arg2);
11824 wxPyEndAllowThreads(__tstate);
11825 if (PyErr_Occurred()) SWIG_fail;
11826 }
11827 resultobj = SWIG_Py_Void();
11828 {
11829 if (temp2)
11830 delete arg2;
11831 }
11832 return resultobj;
11833 fail:
11834 {
11835 if (temp2)
11836 delete arg2;
11837 }
11838 return NULL;
11839 }
11840
11841
11842 SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11843 PyObject *resultobj = 0;
11844 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11845 long arg2 ;
11846 long arg3 ;
11847 wxString result;
11848 void *argp1 = 0 ;
11849 int res1 = 0 ;
11850 long val2 ;
11851 int ecode2 = 0 ;
11852 long val3 ;
11853 int ecode3 = 0 ;
11854 PyObject * obj0 = 0 ;
11855 PyObject * obj1 = 0 ;
11856 PyObject * obj2 = 0 ;
11857 char * kwnames[] = {
11858 (char *) "self",(char *) "from",(char *) "to", NULL
11859 };
11860
11861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11863 if (!SWIG_IsOK(res1)) {
11864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11865 }
11866 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11867 ecode2 = SWIG_AsVal_long(obj1, &val2);
11868 if (!SWIG_IsOK(ecode2)) {
11869 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11870 }
11871 arg2 = static_cast< long >(val2);
11872 ecode3 = SWIG_AsVal_long(obj2, &val3);
11873 if (!SWIG_IsOK(ecode3)) {
11874 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
11875 }
11876 arg3 = static_cast< long >(val3);
11877 {
11878 PyThreadState* __tstate = wxPyBeginAllowThreads();
11879 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
11880 wxPyEndAllowThreads(__tstate);
11881 if (PyErr_Occurred()) SWIG_fail;
11882 }
11883 {
11884 #if wxUSE_UNICODE
11885 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11886 #else
11887 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11888 #endif
11889 }
11890 return resultobj;
11891 fail:
11892 return NULL;
11893 }
11894
11895
11896 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11897 PyObject *resultobj = 0;
11898 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11899 long arg2 ;
11900 int result;
11901 void *argp1 = 0 ;
11902 int res1 = 0 ;
11903 long val2 ;
11904 int ecode2 = 0 ;
11905 PyObject * obj0 = 0 ;
11906 PyObject * obj1 = 0 ;
11907 char * kwnames[] = {
11908 (char *) "self",(char *) "lineNo", NULL
11909 };
11910
11911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
11912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11913 if (!SWIG_IsOK(res1)) {
11914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11915 }
11916 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11917 ecode2 = SWIG_AsVal_long(obj1, &val2);
11918 if (!SWIG_IsOK(ecode2)) {
11919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
11920 }
11921 arg2 = static_cast< long >(val2);
11922 {
11923 PyThreadState* __tstate = wxPyBeginAllowThreads();
11924 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
11925 wxPyEndAllowThreads(__tstate);
11926 if (PyErr_Occurred()) SWIG_fail;
11927 }
11928 resultobj = SWIG_From_int(static_cast< int >(result));
11929 return resultobj;
11930 fail:
11931 return NULL;
11932 }
11933
11934
11935 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11936 PyObject *resultobj = 0;
11937 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11938 long arg2 ;
11939 wxString result;
11940 void *argp1 = 0 ;
11941 int res1 = 0 ;
11942 long val2 ;
11943 int ecode2 = 0 ;
11944 PyObject * obj0 = 0 ;
11945 PyObject * obj1 = 0 ;
11946 char * kwnames[] = {
11947 (char *) "self",(char *) "lineNo", NULL
11948 };
11949
11950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
11951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11952 if (!SWIG_IsOK(res1)) {
11953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11954 }
11955 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11956 ecode2 = SWIG_AsVal_long(obj1, &val2);
11957 if (!SWIG_IsOK(ecode2)) {
11958 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
11959 }
11960 arg2 = static_cast< long >(val2);
11961 {
11962 PyThreadState* __tstate = wxPyBeginAllowThreads();
11963 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
11964 wxPyEndAllowThreads(__tstate);
11965 if (PyErr_Occurred()) SWIG_fail;
11966 }
11967 {
11968 #if wxUSE_UNICODE
11969 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11970 #else
11971 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11972 #endif
11973 }
11974 return resultobj;
11975 fail:
11976 return NULL;
11977 }
11978
11979
11980 SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11981 PyObject *resultobj = 0;
11982 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11983 int result;
11984 void *argp1 = 0 ;
11985 int res1 = 0 ;
11986 PyObject *swig_obj[1] ;
11987
11988 if (!args) SWIG_fail;
11989 swig_obj[0] = args;
11990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11991 if (!SWIG_IsOK(res1)) {
11992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11993 }
11994 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11995 {
11996 PyThreadState* __tstate = wxPyBeginAllowThreads();
11997 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
11998 wxPyEndAllowThreads(__tstate);
11999 if (PyErr_Occurred()) SWIG_fail;
12000 }
12001 resultobj = SWIG_From_int(static_cast< int >(result));
12002 return resultobj;
12003 fail:
12004 return NULL;
12005 }
12006
12007
12008 SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12009 PyObject *resultobj = 0;
12010 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12011 bool result;
12012 void *argp1 = 0 ;
12013 int res1 = 0 ;
12014 PyObject *swig_obj[1] ;
12015
12016 if (!args) SWIG_fail;
12017 swig_obj[0] = args;
12018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12019 if (!SWIG_IsOK(res1)) {
12020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12021 }
12022 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12023 {
12024 PyThreadState* __tstate = wxPyBeginAllowThreads();
12025 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12026 wxPyEndAllowThreads(__tstate);
12027 if (PyErr_Occurred()) SWIG_fail;
12028 }
12029 {
12030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12031 }
12032 return resultobj;
12033 fail:
12034 return NULL;
12035 }
12036
12037
12038 SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12039 PyObject *resultobj = 0;
12040 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12041 bool result;
12042 void *argp1 = 0 ;
12043 int res1 = 0 ;
12044 PyObject *swig_obj[1] ;
12045
12046 if (!args) SWIG_fail;
12047 swig_obj[0] = args;
12048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12049 if (!SWIG_IsOK(res1)) {
12050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12051 }
12052 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12053 {
12054 PyThreadState* __tstate = wxPyBeginAllowThreads();
12055 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12056 wxPyEndAllowThreads(__tstate);
12057 if (PyErr_Occurred()) SWIG_fail;
12058 }
12059 {
12060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12061 }
12062 return resultobj;
12063 fail:
12064 return NULL;
12065 }
12066
12067
12068 SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12069 PyObject *resultobj = 0;
12070 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12071 bool result;
12072 void *argp1 = 0 ;
12073 int res1 = 0 ;
12074 PyObject *swig_obj[1] ;
12075
12076 if (!args) SWIG_fail;
12077 swig_obj[0] = args;
12078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12079 if (!SWIG_IsOK(res1)) {
12080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12081 }
12082 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12083 {
12084 PyThreadState* __tstate = wxPyBeginAllowThreads();
12085 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12086 wxPyEndAllowThreads(__tstate);
12087 if (PyErr_Occurred()) SWIG_fail;
12088 }
12089 {
12090 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12091 }
12092 return resultobj;
12093 fail:
12094 return NULL;
12095 }
12096
12097
12098 SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12099 PyObject *resultobj = 0;
12100 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12101 bool result;
12102 void *argp1 = 0 ;
12103 int res1 = 0 ;
12104 PyObject *swig_obj[1] ;
12105
12106 if (!args) SWIG_fail;
12107 swig_obj[0] = args;
12108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12109 if (!SWIG_IsOK(res1)) {
12110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12111 }
12112 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12113 {
12114 PyThreadState* __tstate = wxPyBeginAllowThreads();
12115 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12116 wxPyEndAllowThreads(__tstate);
12117 if (PyErr_Occurred()) SWIG_fail;
12118 }
12119 {
12120 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12121 }
12122 return resultobj;
12123 fail:
12124 return NULL;
12125 }
12126
12127
12128 SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12129 PyObject *resultobj = 0;
12130 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12131 long *arg2 = (long *) 0 ;
12132 long *arg3 = (long *) 0 ;
12133 void *argp1 = 0 ;
12134 int res1 = 0 ;
12135 long temp2 ;
12136 int res2 = SWIG_TMPOBJ ;
12137 long temp3 ;
12138 int res3 = SWIG_TMPOBJ ;
12139 PyObject *swig_obj[1] ;
12140
12141 arg2 = &temp2;
12142 arg3 = &temp3;
12143 if (!args) SWIG_fail;
12144 swig_obj[0] = args;
12145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12146 if (!SWIG_IsOK(res1)) {
12147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12148 }
12149 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12150 {
12151 PyThreadState* __tstate = wxPyBeginAllowThreads();
12152 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12153 wxPyEndAllowThreads(__tstate);
12154 if (PyErr_Occurred()) SWIG_fail;
12155 }
12156 resultobj = SWIG_Py_Void();
12157 if (SWIG_IsTmpObj(res2)) {
12158 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12159 } else {
12160 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12161 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12162 }
12163 if (SWIG_IsTmpObj(res3)) {
12164 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12165 } else {
12166 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12167 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12168 }
12169 return resultobj;
12170 fail:
12171 return NULL;
12172 }
12173
12174
12175 SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12176 PyObject *resultobj = 0;
12177 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12178 wxString result;
12179 void *argp1 = 0 ;
12180 int res1 = 0 ;
12181 PyObject *swig_obj[1] ;
12182
12183 if (!args) SWIG_fail;
12184 swig_obj[0] = args;
12185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12186 if (!SWIG_IsOK(res1)) {
12187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12188 }
12189 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12190 {
12191 PyThreadState* __tstate = wxPyBeginAllowThreads();
12192 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12193 wxPyEndAllowThreads(__tstate);
12194 if (PyErr_Occurred()) SWIG_fail;
12195 }
12196 {
12197 #if wxUSE_UNICODE
12198 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12199 #else
12200 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12201 #endif
12202 }
12203 return resultobj;
12204 fail:
12205 return NULL;
12206 }
12207
12208
12209 SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12210 PyObject *resultobj = 0;
12211 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12212 void *argp1 = 0 ;
12213 int res1 = 0 ;
12214 PyObject *swig_obj[1] ;
12215
12216 if (!args) SWIG_fail;
12217 swig_obj[0] = args;
12218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12219 if (!SWIG_IsOK(res1)) {
12220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12221 }
12222 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12223 {
12224 PyThreadState* __tstate = wxPyBeginAllowThreads();
12225 (arg1)->Clear();
12226 wxPyEndAllowThreads(__tstate);
12227 if (PyErr_Occurred()) SWIG_fail;
12228 }
12229 resultobj = SWIG_Py_Void();
12230 return resultobj;
12231 fail:
12232 return NULL;
12233 }
12234
12235
12236 SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12237 PyObject *resultobj = 0;
12238 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12239 long arg2 ;
12240 long arg3 ;
12241 wxString *arg4 = 0 ;
12242 void *argp1 = 0 ;
12243 int res1 = 0 ;
12244 long val2 ;
12245 int ecode2 = 0 ;
12246 long val3 ;
12247 int ecode3 = 0 ;
12248 bool temp4 = false ;
12249 PyObject * obj0 = 0 ;
12250 PyObject * obj1 = 0 ;
12251 PyObject * obj2 = 0 ;
12252 PyObject * obj3 = 0 ;
12253 char * kwnames[] = {
12254 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
12255 };
12256
12257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12259 if (!SWIG_IsOK(res1)) {
12260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12261 }
12262 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12263 ecode2 = SWIG_AsVal_long(obj1, &val2);
12264 if (!SWIG_IsOK(ecode2)) {
12265 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12266 }
12267 arg2 = static_cast< long >(val2);
12268 ecode3 = SWIG_AsVal_long(obj2, &val3);
12269 if (!SWIG_IsOK(ecode3)) {
12270 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12271 }
12272 arg3 = static_cast< long >(val3);
12273 {
12274 arg4 = wxString_in_helper(obj3);
12275 if (arg4 == NULL) SWIG_fail;
12276 temp4 = true;
12277 }
12278 {
12279 PyThreadState* __tstate = wxPyBeginAllowThreads();
12280 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12281 wxPyEndAllowThreads(__tstate);
12282 if (PyErr_Occurred()) SWIG_fail;
12283 }
12284 resultobj = SWIG_Py_Void();
12285 {
12286 if (temp4)
12287 delete arg4;
12288 }
12289 return resultobj;
12290 fail:
12291 {
12292 if (temp4)
12293 delete arg4;
12294 }
12295 return NULL;
12296 }
12297
12298
12299 SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12300 PyObject *resultobj = 0;
12301 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12302 long arg2 ;
12303 long arg3 ;
12304 void *argp1 = 0 ;
12305 int res1 = 0 ;
12306 long val2 ;
12307 int ecode2 = 0 ;
12308 long val3 ;
12309 int ecode3 = 0 ;
12310 PyObject * obj0 = 0 ;
12311 PyObject * obj1 = 0 ;
12312 PyObject * obj2 = 0 ;
12313 char * kwnames[] = {
12314 (char *) "self",(char *) "from",(char *) "to", NULL
12315 };
12316
12317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12319 if (!SWIG_IsOK(res1)) {
12320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12321 }
12322 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12323 ecode2 = SWIG_AsVal_long(obj1, &val2);
12324 if (!SWIG_IsOK(ecode2)) {
12325 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12326 }
12327 arg2 = static_cast< long >(val2);
12328 ecode3 = SWIG_AsVal_long(obj2, &val3);
12329 if (!SWIG_IsOK(ecode3)) {
12330 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12331 }
12332 arg3 = static_cast< long >(val3);
12333 {
12334 PyThreadState* __tstate = wxPyBeginAllowThreads();
12335 (arg1)->Remove(arg2,arg3);
12336 wxPyEndAllowThreads(__tstate);
12337 if (PyErr_Occurred()) SWIG_fail;
12338 }
12339 resultobj = SWIG_Py_Void();
12340 return resultobj;
12341 fail:
12342 return NULL;
12343 }
12344
12345
12346 SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12347 PyObject *resultobj = 0;
12348 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12349 wxString *arg2 = 0 ;
12350 bool result;
12351 void *argp1 = 0 ;
12352 int res1 = 0 ;
12353 bool temp2 = false ;
12354 PyObject * obj0 = 0 ;
12355 PyObject * obj1 = 0 ;
12356 char * kwnames[] = {
12357 (char *) "self",(char *) "file", NULL
12358 };
12359
12360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) SWIG_fail;
12361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12362 if (!SWIG_IsOK(res1)) {
12363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12364 }
12365 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12366 {
12367 arg2 = wxString_in_helper(obj1);
12368 if (arg2 == NULL) SWIG_fail;
12369 temp2 = true;
12370 }
12371 {
12372 PyThreadState* __tstate = wxPyBeginAllowThreads();
12373 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
12374 wxPyEndAllowThreads(__tstate);
12375 if (PyErr_Occurred()) SWIG_fail;
12376 }
12377 {
12378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12379 }
12380 {
12381 if (temp2)
12382 delete arg2;
12383 }
12384 return resultobj;
12385 fail:
12386 {
12387 if (temp2)
12388 delete arg2;
12389 }
12390 return NULL;
12391 }
12392
12393
12394 SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12395 PyObject *resultobj = 0;
12396 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12397 wxString const &arg2_defvalue = wxPyEmptyString ;
12398 wxString *arg2 = (wxString *) &arg2_defvalue ;
12399 bool result;
12400 void *argp1 = 0 ;
12401 int res1 = 0 ;
12402 bool temp2 = false ;
12403 PyObject * obj0 = 0 ;
12404 PyObject * obj1 = 0 ;
12405 char * kwnames[] = {
12406 (char *) "self",(char *) "file", NULL
12407 };
12408
12409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) SWIG_fail;
12410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12411 if (!SWIG_IsOK(res1)) {
12412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12413 }
12414 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12415 if (obj1) {
12416 {
12417 arg2 = wxString_in_helper(obj1);
12418 if (arg2 == NULL) SWIG_fail;
12419 temp2 = true;
12420 }
12421 }
12422 {
12423 PyThreadState* __tstate = wxPyBeginAllowThreads();
12424 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
12425 wxPyEndAllowThreads(__tstate);
12426 if (PyErr_Occurred()) SWIG_fail;
12427 }
12428 {
12429 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12430 }
12431 {
12432 if (temp2)
12433 delete arg2;
12434 }
12435 return resultobj;
12436 fail:
12437 {
12438 if (temp2)
12439 delete arg2;
12440 }
12441 return NULL;
12442 }
12443
12444
12445 SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12446 PyObject *resultobj = 0;
12447 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12448 void *argp1 = 0 ;
12449 int res1 = 0 ;
12450 PyObject *swig_obj[1] ;
12451
12452 if (!args) SWIG_fail;
12453 swig_obj[0] = args;
12454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12455 if (!SWIG_IsOK(res1)) {
12456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12457 }
12458 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12459 {
12460 PyThreadState* __tstate = wxPyBeginAllowThreads();
12461 (arg1)->MarkDirty();
12462 wxPyEndAllowThreads(__tstate);
12463 if (PyErr_Occurred()) SWIG_fail;
12464 }
12465 resultobj = SWIG_Py_Void();
12466 return resultobj;
12467 fail:
12468 return NULL;
12469 }
12470
12471
12472 SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12473 PyObject *resultobj = 0;
12474 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12475 void *argp1 = 0 ;
12476 int res1 = 0 ;
12477 PyObject *swig_obj[1] ;
12478
12479 if (!args) SWIG_fail;
12480 swig_obj[0] = args;
12481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12482 if (!SWIG_IsOK(res1)) {
12483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12484 }
12485 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12486 {
12487 PyThreadState* __tstate = wxPyBeginAllowThreads();
12488 (arg1)->DiscardEdits();
12489 wxPyEndAllowThreads(__tstate);
12490 if (PyErr_Occurred()) SWIG_fail;
12491 }
12492 resultobj = SWIG_Py_Void();
12493 return resultobj;
12494 fail:
12495 return NULL;
12496 }
12497
12498
12499 SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12500 PyObject *resultobj = 0;
12501 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12502 unsigned long arg2 ;
12503 void *argp1 = 0 ;
12504 int res1 = 0 ;
12505 unsigned long val2 ;
12506 int ecode2 = 0 ;
12507 PyObject * obj0 = 0 ;
12508 PyObject * obj1 = 0 ;
12509 char * kwnames[] = {
12510 (char *) "self",(char *) "len", NULL
12511 };
12512
12513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12515 if (!SWIG_IsOK(res1)) {
12516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12517 }
12518 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12519 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12520 if (!SWIG_IsOK(ecode2)) {
12521 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12522 }
12523 arg2 = static_cast< unsigned long >(val2);
12524 {
12525 PyThreadState* __tstate = wxPyBeginAllowThreads();
12526 (arg1)->SetMaxLength(arg2);
12527 wxPyEndAllowThreads(__tstate);
12528 if (PyErr_Occurred()) SWIG_fail;
12529 }
12530 resultobj = SWIG_Py_Void();
12531 return resultobj;
12532 fail:
12533 return NULL;
12534 }
12535
12536
12537 SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12538 PyObject *resultobj = 0;
12539 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12540 wxString *arg2 = 0 ;
12541 void *argp1 = 0 ;
12542 int res1 = 0 ;
12543 bool temp2 = false ;
12544 PyObject * obj0 = 0 ;
12545 PyObject * obj1 = 0 ;
12546 char * kwnames[] = {
12547 (char *) "self",(char *) "text", NULL
12548 };
12549
12550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12552 if (!SWIG_IsOK(res1)) {
12553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12554 }
12555 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12556 {
12557 arg2 = wxString_in_helper(obj1);
12558 if (arg2 == NULL) SWIG_fail;
12559 temp2 = true;
12560 }
12561 {
12562 PyThreadState* __tstate = wxPyBeginAllowThreads();
12563 (arg1)->WriteText((wxString const &)*arg2);
12564 wxPyEndAllowThreads(__tstate);
12565 if (PyErr_Occurred()) SWIG_fail;
12566 }
12567 resultobj = SWIG_Py_Void();
12568 {
12569 if (temp2)
12570 delete arg2;
12571 }
12572 return resultobj;
12573 fail:
12574 {
12575 if (temp2)
12576 delete arg2;
12577 }
12578 return NULL;
12579 }
12580
12581
12582 SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12583 PyObject *resultobj = 0;
12584 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12585 wxString *arg2 = 0 ;
12586 void *argp1 = 0 ;
12587 int res1 = 0 ;
12588 bool temp2 = false ;
12589 PyObject * obj0 = 0 ;
12590 PyObject * obj1 = 0 ;
12591 char * kwnames[] = {
12592 (char *) "self",(char *) "text", NULL
12593 };
12594
12595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12597 if (!SWIG_IsOK(res1)) {
12598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12599 }
12600 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12601 {
12602 arg2 = wxString_in_helper(obj1);
12603 if (arg2 == NULL) SWIG_fail;
12604 temp2 = true;
12605 }
12606 {
12607 PyThreadState* __tstate = wxPyBeginAllowThreads();
12608 (arg1)->AppendText((wxString const &)*arg2);
12609 wxPyEndAllowThreads(__tstate);
12610 if (PyErr_Occurred()) SWIG_fail;
12611 }
12612 resultobj = SWIG_Py_Void();
12613 {
12614 if (temp2)
12615 delete arg2;
12616 }
12617 return resultobj;
12618 fail:
12619 {
12620 if (temp2)
12621 delete arg2;
12622 }
12623 return NULL;
12624 }
12625
12626
12627 SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12628 PyObject *resultobj = 0;
12629 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12630 wxKeyEvent *arg2 = 0 ;
12631 bool result;
12632 void *argp1 = 0 ;
12633 int res1 = 0 ;
12634 void *argp2 = 0 ;
12635 int res2 = 0 ;
12636 PyObject * obj0 = 0 ;
12637 PyObject * obj1 = 0 ;
12638 char * kwnames[] = {
12639 (char *) "self",(char *) "event", NULL
12640 };
12641
12642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12644 if (!SWIG_IsOK(res1)) {
12645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12646 }
12647 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12648 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12649 if (!SWIG_IsOK(res2)) {
12650 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12651 }
12652 if (!argp2) {
12653 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12654 }
12655 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12656 {
12657 PyThreadState* __tstate = wxPyBeginAllowThreads();
12658 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12659 wxPyEndAllowThreads(__tstate);
12660 if (PyErr_Occurred()) SWIG_fail;
12661 }
12662 {
12663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12664 }
12665 return resultobj;
12666 fail:
12667 return NULL;
12668 }
12669
12670
12671 SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12672 PyObject *resultobj = 0;
12673 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12674 long arg2 ;
12675 long arg3 ;
12676 wxTextAttr *arg4 = 0 ;
12677 bool result;
12678 void *argp1 = 0 ;
12679 int res1 = 0 ;
12680 long val2 ;
12681 int ecode2 = 0 ;
12682 long val3 ;
12683 int ecode3 = 0 ;
12684 void *argp4 = 0 ;
12685 int res4 = 0 ;
12686 PyObject * obj0 = 0 ;
12687 PyObject * obj1 = 0 ;
12688 PyObject * obj2 = 0 ;
12689 PyObject * obj3 = 0 ;
12690 char * kwnames[] = {
12691 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12692 };
12693
12694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12696 if (!SWIG_IsOK(res1)) {
12697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12698 }
12699 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12700 ecode2 = SWIG_AsVal_long(obj1, &val2);
12701 if (!SWIG_IsOK(ecode2)) {
12702 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12703 }
12704 arg2 = static_cast< long >(val2);
12705 ecode3 = SWIG_AsVal_long(obj2, &val3);
12706 if (!SWIG_IsOK(ecode3)) {
12707 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12708 }
12709 arg3 = static_cast< long >(val3);
12710 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12711 if (!SWIG_IsOK(res4)) {
12712 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12713 }
12714 if (!argp4) {
12715 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12716 }
12717 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12718 {
12719 PyThreadState* __tstate = wxPyBeginAllowThreads();
12720 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12721 wxPyEndAllowThreads(__tstate);
12722 if (PyErr_Occurred()) SWIG_fail;
12723 }
12724 {
12725 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12726 }
12727 return resultobj;
12728 fail:
12729 return NULL;
12730 }
12731
12732
12733 SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12734 PyObject *resultobj = 0;
12735 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12736 long arg2 ;
12737 wxTextAttr *arg3 = 0 ;
12738 bool result;
12739 void *argp1 = 0 ;
12740 int res1 = 0 ;
12741 long val2 ;
12742 int ecode2 = 0 ;
12743 void *argp3 = 0 ;
12744 int res3 = 0 ;
12745 PyObject * obj0 = 0 ;
12746 PyObject * obj1 = 0 ;
12747 PyObject * obj2 = 0 ;
12748 char * kwnames[] = {
12749 (char *) "self",(char *) "position",(char *) "style", NULL
12750 };
12751
12752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12754 if (!SWIG_IsOK(res1)) {
12755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12756 }
12757 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12758 ecode2 = SWIG_AsVal_long(obj1, &val2);
12759 if (!SWIG_IsOK(ecode2)) {
12760 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12761 }
12762 arg2 = static_cast< long >(val2);
12763 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12764 if (!SWIG_IsOK(res3)) {
12765 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12766 }
12767 if (!argp3) {
12768 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12769 }
12770 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12771 {
12772 PyThreadState* __tstate = wxPyBeginAllowThreads();
12773 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12774 wxPyEndAllowThreads(__tstate);
12775 if (PyErr_Occurred()) SWIG_fail;
12776 }
12777 {
12778 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12779 }
12780 return resultobj;
12781 fail:
12782 return NULL;
12783 }
12784
12785
12786 SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12787 PyObject *resultobj = 0;
12788 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12789 wxTextAttr *arg2 = 0 ;
12790 bool result;
12791 void *argp1 = 0 ;
12792 int res1 = 0 ;
12793 void *argp2 = 0 ;
12794 int res2 = 0 ;
12795 PyObject * obj0 = 0 ;
12796 PyObject * obj1 = 0 ;
12797 char * kwnames[] = {
12798 (char *) "self",(char *) "style", NULL
12799 };
12800
12801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12803 if (!SWIG_IsOK(res1)) {
12804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12805 }
12806 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12807 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12808 if (!SWIG_IsOK(res2)) {
12809 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12810 }
12811 if (!argp2) {
12812 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12813 }
12814 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12815 {
12816 PyThreadState* __tstate = wxPyBeginAllowThreads();
12817 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
12818 wxPyEndAllowThreads(__tstate);
12819 if (PyErr_Occurred()) SWIG_fail;
12820 }
12821 {
12822 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12823 }
12824 return resultobj;
12825 fail:
12826 return NULL;
12827 }
12828
12829
12830 SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12831 PyObject *resultobj = 0;
12832 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12833 wxTextAttr *result = 0 ;
12834 void *argp1 = 0 ;
12835 int res1 = 0 ;
12836 PyObject *swig_obj[1] ;
12837
12838 if (!args) SWIG_fail;
12839 swig_obj[0] = args;
12840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12841 if (!SWIG_IsOK(res1)) {
12842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12843 }
12844 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12845 {
12846 PyThreadState* __tstate = wxPyBeginAllowThreads();
12847 {
12848 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
12849 result = (wxTextAttr *) &_result_ref;
12850 }
12851 wxPyEndAllowThreads(__tstate);
12852 if (PyErr_Occurred()) SWIG_fail;
12853 }
12854 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
12855 return resultobj;
12856 fail:
12857 return NULL;
12858 }
12859
12860
12861 SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12862 PyObject *resultobj = 0;
12863 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12864 long arg2 ;
12865 long arg3 ;
12866 long result;
12867 void *argp1 = 0 ;
12868 int res1 = 0 ;
12869 long val2 ;
12870 int ecode2 = 0 ;
12871 long val3 ;
12872 int ecode3 = 0 ;
12873 PyObject * obj0 = 0 ;
12874 PyObject * obj1 = 0 ;
12875 PyObject * obj2 = 0 ;
12876 char * kwnames[] = {
12877 (char *) "self",(char *) "x",(char *) "y", NULL
12878 };
12879
12880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12882 if (!SWIG_IsOK(res1)) {
12883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12884 }
12885 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12886 ecode2 = SWIG_AsVal_long(obj1, &val2);
12887 if (!SWIG_IsOK(ecode2)) {
12888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
12889 }
12890 arg2 = static_cast< long >(val2);
12891 ecode3 = SWIG_AsVal_long(obj2, &val3);
12892 if (!SWIG_IsOK(ecode3)) {
12893 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
12894 }
12895 arg3 = static_cast< long >(val3);
12896 {
12897 PyThreadState* __tstate = wxPyBeginAllowThreads();
12898 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
12899 wxPyEndAllowThreads(__tstate);
12900 if (PyErr_Occurred()) SWIG_fail;
12901 }
12902 resultobj = SWIG_From_long(static_cast< long >(result));
12903 return resultobj;
12904 fail:
12905 return NULL;
12906 }
12907
12908
12909 SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12910 PyObject *resultobj = 0;
12911 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12912 long arg2 ;
12913 long *arg3 = (long *) 0 ;
12914 long *arg4 = (long *) 0 ;
12915 void *argp1 = 0 ;
12916 int res1 = 0 ;
12917 long val2 ;
12918 int ecode2 = 0 ;
12919 long temp3 ;
12920 int res3 = SWIG_TMPOBJ ;
12921 long temp4 ;
12922 int res4 = SWIG_TMPOBJ ;
12923 PyObject * obj0 = 0 ;
12924 PyObject * obj1 = 0 ;
12925 char * kwnames[] = {
12926 (char *) "self",(char *) "pos", NULL
12927 };
12928
12929 arg3 = &temp3;
12930 arg4 = &temp4;
12931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
12932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12933 if (!SWIG_IsOK(res1)) {
12934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12935 }
12936 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12937 ecode2 = SWIG_AsVal_long(obj1, &val2);
12938 if (!SWIG_IsOK(ecode2)) {
12939 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
12940 }
12941 arg2 = static_cast< long >(val2);
12942 {
12943 PyThreadState* __tstate = wxPyBeginAllowThreads();
12944 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
12945 wxPyEndAllowThreads(__tstate);
12946 if (PyErr_Occurred()) SWIG_fail;
12947 }
12948 resultobj = SWIG_Py_Void();
12949 if (SWIG_IsTmpObj(res3)) {
12950 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12951 } else {
12952 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12953 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12954 }
12955 if (SWIG_IsTmpObj(res4)) {
12956 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
12957 } else {
12958 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12959 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
12960 }
12961 return resultobj;
12962 fail:
12963 return NULL;
12964 }
12965
12966
12967 SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12968 PyObject *resultobj = 0;
12969 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12970 long arg2 ;
12971 void *argp1 = 0 ;
12972 int res1 = 0 ;
12973 long val2 ;
12974 int ecode2 = 0 ;
12975 PyObject * obj0 = 0 ;
12976 PyObject * obj1 = 0 ;
12977 char * kwnames[] = {
12978 (char *) "self",(char *) "pos", NULL
12979 };
12980
12981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
12982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12983 if (!SWIG_IsOK(res1)) {
12984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12985 }
12986 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12987 ecode2 = SWIG_AsVal_long(obj1, &val2);
12988 if (!SWIG_IsOK(ecode2)) {
12989 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
12990 }
12991 arg2 = static_cast< long >(val2);
12992 {
12993 PyThreadState* __tstate = wxPyBeginAllowThreads();
12994 (arg1)->ShowPosition(arg2);
12995 wxPyEndAllowThreads(__tstate);
12996 if (PyErr_Occurred()) SWIG_fail;
12997 }
12998 resultobj = SWIG_Py_Void();
12999 return resultobj;
13000 fail:
13001 return NULL;
13002 }
13003
13004
13005 SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13006 PyObject *resultobj = 0;
13007 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13008 wxPoint *arg2 = 0 ;
13009 long *arg3 = (long *) 0 ;
13010 long *arg4 = (long *) 0 ;
13011 wxTextCtrlHitTestResult result;
13012 void *argp1 = 0 ;
13013 int res1 = 0 ;
13014 wxPoint temp2 ;
13015 long temp3 ;
13016 int res3 = SWIG_TMPOBJ ;
13017 long temp4 ;
13018 int res4 = SWIG_TMPOBJ ;
13019 PyObject * obj0 = 0 ;
13020 PyObject * obj1 = 0 ;
13021 char * kwnames[] = {
13022 (char *) "self",(char *) "pt", NULL
13023 };
13024
13025 arg3 = &temp3;
13026 arg4 = &temp4;
13027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13029 if (!SWIG_IsOK(res1)) {
13030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13031 }
13032 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13033 {
13034 arg2 = &temp2;
13035 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13036 }
13037 {
13038 PyThreadState* __tstate = wxPyBeginAllowThreads();
13039 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13040 wxPyEndAllowThreads(__tstate);
13041 if (PyErr_Occurred()) SWIG_fail;
13042 }
13043 resultobj = SWIG_From_int(static_cast< int >(result));
13044 if (SWIG_IsTmpObj(res3)) {
13045 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13046 } else {
13047 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13048 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13049 }
13050 if (SWIG_IsTmpObj(res4)) {
13051 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13052 } else {
13053 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13054 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13055 }
13056 return resultobj;
13057 fail:
13058 return NULL;
13059 }
13060
13061
13062 SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13063 PyObject *resultobj = 0;
13064 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13065 wxPoint *arg2 = 0 ;
13066 long *arg3 = (long *) 0 ;
13067 wxTextCtrlHitTestResult result;
13068 void *argp1 = 0 ;
13069 int res1 = 0 ;
13070 wxPoint temp2 ;
13071 long temp3 ;
13072 int res3 = SWIG_TMPOBJ ;
13073 PyObject * obj0 = 0 ;
13074 PyObject * obj1 = 0 ;
13075 char * kwnames[] = {
13076 (char *) "self",(char *) "pt", NULL
13077 };
13078
13079 arg3 = &temp3;
13080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13082 if (!SWIG_IsOK(res1)) {
13083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13084 }
13085 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13086 {
13087 arg2 = &temp2;
13088 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13089 }
13090 {
13091 PyThreadState* __tstate = wxPyBeginAllowThreads();
13092 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13093 wxPyEndAllowThreads(__tstate);
13094 if (PyErr_Occurred()) SWIG_fail;
13095 }
13096 resultobj = SWIG_From_int(static_cast< int >(result));
13097 if (SWIG_IsTmpObj(res3)) {
13098 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13099 } else {
13100 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13101 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13102 }
13103 return resultobj;
13104 fail:
13105 return NULL;
13106 }
13107
13108
13109 SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13110 PyObject *resultobj = 0;
13111 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13112 void *argp1 = 0 ;
13113 int res1 = 0 ;
13114 PyObject *swig_obj[1] ;
13115
13116 if (!args) SWIG_fail;
13117 swig_obj[0] = args;
13118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13119 if (!SWIG_IsOK(res1)) {
13120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13121 }
13122 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13123 {
13124 PyThreadState* __tstate = wxPyBeginAllowThreads();
13125 (arg1)->Copy();
13126 wxPyEndAllowThreads(__tstate);
13127 if (PyErr_Occurred()) SWIG_fail;
13128 }
13129 resultobj = SWIG_Py_Void();
13130 return resultobj;
13131 fail:
13132 return NULL;
13133 }
13134
13135
13136 SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13137 PyObject *resultobj = 0;
13138 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13139 void *argp1 = 0 ;
13140 int res1 = 0 ;
13141 PyObject *swig_obj[1] ;
13142
13143 if (!args) SWIG_fail;
13144 swig_obj[0] = args;
13145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13146 if (!SWIG_IsOK(res1)) {
13147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13148 }
13149 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13150 {
13151 PyThreadState* __tstate = wxPyBeginAllowThreads();
13152 (arg1)->Cut();
13153 wxPyEndAllowThreads(__tstate);
13154 if (PyErr_Occurred()) SWIG_fail;
13155 }
13156 resultobj = SWIG_Py_Void();
13157 return resultobj;
13158 fail:
13159 return NULL;
13160 }
13161
13162
13163 SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13164 PyObject *resultobj = 0;
13165 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13166 void *argp1 = 0 ;
13167 int res1 = 0 ;
13168 PyObject *swig_obj[1] ;
13169
13170 if (!args) SWIG_fail;
13171 swig_obj[0] = args;
13172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13173 if (!SWIG_IsOK(res1)) {
13174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13175 }
13176 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13177 {
13178 PyThreadState* __tstate = wxPyBeginAllowThreads();
13179 (arg1)->Paste();
13180 wxPyEndAllowThreads(__tstate);
13181 if (PyErr_Occurred()) SWIG_fail;
13182 }
13183 resultobj = SWIG_Py_Void();
13184 return resultobj;
13185 fail:
13186 return NULL;
13187 }
13188
13189
13190 SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13191 PyObject *resultobj = 0;
13192 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13193 bool result;
13194 void *argp1 = 0 ;
13195 int res1 = 0 ;
13196 PyObject *swig_obj[1] ;
13197
13198 if (!args) SWIG_fail;
13199 swig_obj[0] = args;
13200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13201 if (!SWIG_IsOK(res1)) {
13202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13203 }
13204 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13205 {
13206 PyThreadState* __tstate = wxPyBeginAllowThreads();
13207 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13208 wxPyEndAllowThreads(__tstate);
13209 if (PyErr_Occurred()) SWIG_fail;
13210 }
13211 {
13212 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13213 }
13214 return resultobj;
13215 fail:
13216 return NULL;
13217 }
13218
13219
13220 SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13221 PyObject *resultobj = 0;
13222 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13223 bool result;
13224 void *argp1 = 0 ;
13225 int res1 = 0 ;
13226 PyObject *swig_obj[1] ;
13227
13228 if (!args) SWIG_fail;
13229 swig_obj[0] = args;
13230 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13231 if (!SWIG_IsOK(res1)) {
13232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13233 }
13234 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13235 {
13236 PyThreadState* __tstate = wxPyBeginAllowThreads();
13237 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13238 wxPyEndAllowThreads(__tstate);
13239 if (PyErr_Occurred()) SWIG_fail;
13240 }
13241 {
13242 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13243 }
13244 return resultobj;
13245 fail:
13246 return NULL;
13247 }
13248
13249
13250 SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13251 PyObject *resultobj = 0;
13252 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13253 bool result;
13254 void *argp1 = 0 ;
13255 int res1 = 0 ;
13256 PyObject *swig_obj[1] ;
13257
13258 if (!args) SWIG_fail;
13259 swig_obj[0] = args;
13260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13261 if (!SWIG_IsOK(res1)) {
13262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13263 }
13264 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13265 {
13266 PyThreadState* __tstate = wxPyBeginAllowThreads();
13267 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13268 wxPyEndAllowThreads(__tstate);
13269 if (PyErr_Occurred()) SWIG_fail;
13270 }
13271 {
13272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13273 }
13274 return resultobj;
13275 fail:
13276 return NULL;
13277 }
13278
13279
13280 SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13281 PyObject *resultobj = 0;
13282 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13283 void *argp1 = 0 ;
13284 int res1 = 0 ;
13285 PyObject *swig_obj[1] ;
13286
13287 if (!args) SWIG_fail;
13288 swig_obj[0] = args;
13289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13290 if (!SWIG_IsOK(res1)) {
13291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13292 }
13293 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13294 {
13295 PyThreadState* __tstate = wxPyBeginAllowThreads();
13296 (arg1)->Undo();
13297 wxPyEndAllowThreads(__tstate);
13298 if (PyErr_Occurred()) SWIG_fail;
13299 }
13300 resultobj = SWIG_Py_Void();
13301 return resultobj;
13302 fail:
13303 return NULL;
13304 }
13305
13306
13307 SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13308 PyObject *resultobj = 0;
13309 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13310 void *argp1 = 0 ;
13311 int res1 = 0 ;
13312 PyObject *swig_obj[1] ;
13313
13314 if (!args) SWIG_fail;
13315 swig_obj[0] = args;
13316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13317 if (!SWIG_IsOK(res1)) {
13318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13319 }
13320 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13321 {
13322 PyThreadState* __tstate = wxPyBeginAllowThreads();
13323 (arg1)->Redo();
13324 wxPyEndAllowThreads(__tstate);
13325 if (PyErr_Occurred()) SWIG_fail;
13326 }
13327 resultobj = SWIG_Py_Void();
13328 return resultobj;
13329 fail:
13330 return NULL;
13331 }
13332
13333
13334 SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13335 PyObject *resultobj = 0;
13336 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13337 bool result;
13338 void *argp1 = 0 ;
13339 int res1 = 0 ;
13340 PyObject *swig_obj[1] ;
13341
13342 if (!args) SWIG_fail;
13343 swig_obj[0] = args;
13344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13345 if (!SWIG_IsOK(res1)) {
13346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13347 }
13348 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13349 {
13350 PyThreadState* __tstate = wxPyBeginAllowThreads();
13351 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13352 wxPyEndAllowThreads(__tstate);
13353 if (PyErr_Occurred()) SWIG_fail;
13354 }
13355 {
13356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13357 }
13358 return resultobj;
13359 fail:
13360 return NULL;
13361 }
13362
13363
13364 SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13365 PyObject *resultobj = 0;
13366 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13367 bool result;
13368 void *argp1 = 0 ;
13369 int res1 = 0 ;
13370 PyObject *swig_obj[1] ;
13371
13372 if (!args) SWIG_fail;
13373 swig_obj[0] = args;
13374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13375 if (!SWIG_IsOK(res1)) {
13376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13377 }
13378 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13379 {
13380 PyThreadState* __tstate = wxPyBeginAllowThreads();
13381 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13382 wxPyEndAllowThreads(__tstate);
13383 if (PyErr_Occurred()) SWIG_fail;
13384 }
13385 {
13386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13387 }
13388 return resultobj;
13389 fail:
13390 return NULL;
13391 }
13392
13393
13394 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13395 PyObject *resultobj = 0;
13396 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13397 long arg2 ;
13398 void *argp1 = 0 ;
13399 int res1 = 0 ;
13400 long val2 ;
13401 int ecode2 = 0 ;
13402 PyObject * obj0 = 0 ;
13403 PyObject * obj1 = 0 ;
13404 char * kwnames[] = {
13405 (char *) "self",(char *) "pos", NULL
13406 };
13407
13408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13410 if (!SWIG_IsOK(res1)) {
13411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13412 }
13413 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13414 ecode2 = SWIG_AsVal_long(obj1, &val2);
13415 if (!SWIG_IsOK(ecode2)) {
13416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13417 }
13418 arg2 = static_cast< long >(val2);
13419 {
13420 PyThreadState* __tstate = wxPyBeginAllowThreads();
13421 (arg1)->SetInsertionPoint(arg2);
13422 wxPyEndAllowThreads(__tstate);
13423 if (PyErr_Occurred()) SWIG_fail;
13424 }
13425 resultobj = SWIG_Py_Void();
13426 return resultobj;
13427 fail:
13428 return NULL;
13429 }
13430
13431
13432 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13433 PyObject *resultobj = 0;
13434 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13435 void *argp1 = 0 ;
13436 int res1 = 0 ;
13437 PyObject *swig_obj[1] ;
13438
13439 if (!args) SWIG_fail;
13440 swig_obj[0] = args;
13441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13442 if (!SWIG_IsOK(res1)) {
13443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13444 }
13445 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13446 {
13447 PyThreadState* __tstate = wxPyBeginAllowThreads();
13448 (arg1)->SetInsertionPointEnd();
13449 wxPyEndAllowThreads(__tstate);
13450 if (PyErr_Occurred()) SWIG_fail;
13451 }
13452 resultobj = SWIG_Py_Void();
13453 return resultobj;
13454 fail:
13455 return NULL;
13456 }
13457
13458
13459 SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13460 PyObject *resultobj = 0;
13461 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13462 long result;
13463 void *argp1 = 0 ;
13464 int res1 = 0 ;
13465 PyObject *swig_obj[1] ;
13466
13467 if (!args) SWIG_fail;
13468 swig_obj[0] = args;
13469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13470 if (!SWIG_IsOK(res1)) {
13471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13472 }
13473 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13474 {
13475 PyThreadState* __tstate = wxPyBeginAllowThreads();
13476 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13477 wxPyEndAllowThreads(__tstate);
13478 if (PyErr_Occurred()) SWIG_fail;
13479 }
13480 resultobj = SWIG_From_long(static_cast< long >(result));
13481 return resultobj;
13482 fail:
13483 return NULL;
13484 }
13485
13486
13487 SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13488 PyObject *resultobj = 0;
13489 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13490 long result;
13491 void *argp1 = 0 ;
13492 int res1 = 0 ;
13493 PyObject *swig_obj[1] ;
13494
13495 if (!args) SWIG_fail;
13496 swig_obj[0] = args;
13497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13498 if (!SWIG_IsOK(res1)) {
13499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13500 }
13501 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13502 {
13503 PyThreadState* __tstate = wxPyBeginAllowThreads();
13504 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13505 wxPyEndAllowThreads(__tstate);
13506 if (PyErr_Occurred()) SWIG_fail;
13507 }
13508 resultobj = SWIG_From_long(static_cast< long >(result));
13509 return resultobj;
13510 fail:
13511 return NULL;
13512 }
13513
13514
13515 SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13516 PyObject *resultobj = 0;
13517 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13518 long arg2 ;
13519 long arg3 ;
13520 void *argp1 = 0 ;
13521 int res1 = 0 ;
13522 long val2 ;
13523 int ecode2 = 0 ;
13524 long val3 ;
13525 int ecode3 = 0 ;
13526 PyObject * obj0 = 0 ;
13527 PyObject * obj1 = 0 ;
13528 PyObject * obj2 = 0 ;
13529 char * kwnames[] = {
13530 (char *) "self",(char *) "from",(char *) "to", NULL
13531 };
13532
13533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13535 if (!SWIG_IsOK(res1)) {
13536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13537 }
13538 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13539 ecode2 = SWIG_AsVal_long(obj1, &val2);
13540 if (!SWIG_IsOK(ecode2)) {
13541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13542 }
13543 arg2 = static_cast< long >(val2);
13544 ecode3 = SWIG_AsVal_long(obj2, &val3);
13545 if (!SWIG_IsOK(ecode3)) {
13546 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13547 }
13548 arg3 = static_cast< long >(val3);
13549 {
13550 PyThreadState* __tstate = wxPyBeginAllowThreads();
13551 (arg1)->SetSelection(arg2,arg3);
13552 wxPyEndAllowThreads(__tstate);
13553 if (PyErr_Occurred()) SWIG_fail;
13554 }
13555 resultobj = SWIG_Py_Void();
13556 return resultobj;
13557 fail:
13558 return NULL;
13559 }
13560
13561
13562 SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13563 PyObject *resultobj = 0;
13564 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13565 void *argp1 = 0 ;
13566 int res1 = 0 ;
13567 PyObject *swig_obj[1] ;
13568
13569 if (!args) SWIG_fail;
13570 swig_obj[0] = args;
13571 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13572 if (!SWIG_IsOK(res1)) {
13573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13574 }
13575 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13576 {
13577 PyThreadState* __tstate = wxPyBeginAllowThreads();
13578 (arg1)->SelectAll();
13579 wxPyEndAllowThreads(__tstate);
13580 if (PyErr_Occurred()) SWIG_fail;
13581 }
13582 resultobj = SWIG_Py_Void();
13583 return resultobj;
13584 fail:
13585 return NULL;
13586 }
13587
13588
13589 SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13590 PyObject *resultobj = 0;
13591 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13592 bool arg2 ;
13593 void *argp1 = 0 ;
13594 int res1 = 0 ;
13595 bool val2 ;
13596 int ecode2 = 0 ;
13597 PyObject * obj0 = 0 ;
13598 PyObject * obj1 = 0 ;
13599 char * kwnames[] = {
13600 (char *) "self",(char *) "editable", NULL
13601 };
13602
13603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13605 if (!SWIG_IsOK(res1)) {
13606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13607 }
13608 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13609 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13610 if (!SWIG_IsOK(ecode2)) {
13611 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13612 }
13613 arg2 = static_cast< bool >(val2);
13614 {
13615 PyThreadState* __tstate = wxPyBeginAllowThreads();
13616 (arg1)->SetEditable(arg2);
13617 wxPyEndAllowThreads(__tstate);
13618 if (PyErr_Occurred()) SWIG_fail;
13619 }
13620 resultobj = SWIG_Py_Void();
13621 return resultobj;
13622 fail:
13623 return NULL;
13624 }
13625
13626
13627 SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13628 PyObject *resultobj = 0;
13629 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13630 wxString *arg2 = 0 ;
13631 void *argp1 = 0 ;
13632 int res1 = 0 ;
13633 bool temp2 = false ;
13634 PyObject * obj0 = 0 ;
13635 PyObject * obj1 = 0 ;
13636 char * kwnames[] = {
13637 (char *) "self",(char *) "text", NULL
13638 };
13639
13640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13642 if (!SWIG_IsOK(res1)) {
13643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13644 }
13645 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13646 {
13647 arg2 = wxString_in_helper(obj1);
13648 if (arg2 == NULL) SWIG_fail;
13649 temp2 = true;
13650 }
13651 {
13652 PyThreadState* __tstate = wxPyBeginAllowThreads();
13653 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13654 wxPyEndAllowThreads(__tstate);
13655 if (PyErr_Occurred()) SWIG_fail;
13656 }
13657 resultobj = SWIG_Py_Void();
13658 {
13659 if (temp2)
13660 delete arg2;
13661 }
13662 return resultobj;
13663 fail:
13664 {
13665 if (temp2)
13666 delete arg2;
13667 }
13668 return NULL;
13669 }
13670
13671
13672 SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13673 PyObject *resultobj = 0;
13674 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13675 long arg2 ;
13676 long arg3 ;
13677 wxString result;
13678 void *argp1 = 0 ;
13679 int res1 = 0 ;
13680 long val2 ;
13681 int ecode2 = 0 ;
13682 long val3 ;
13683 int ecode3 = 0 ;
13684 PyObject * obj0 = 0 ;
13685 PyObject * obj1 = 0 ;
13686 PyObject * obj2 = 0 ;
13687 char * kwnames[] = {
13688 (char *) "self",(char *) "from",(char *) "to", NULL
13689 };
13690
13691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13693 if (!SWIG_IsOK(res1)) {
13694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13695 }
13696 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13697 ecode2 = SWIG_AsVal_long(obj1, &val2);
13698 if (!SWIG_IsOK(ecode2)) {
13699 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13700 }
13701 arg2 = static_cast< long >(val2);
13702 ecode3 = SWIG_AsVal_long(obj2, &val3);
13703 if (!SWIG_IsOK(ecode3)) {
13704 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13705 }
13706 arg3 = static_cast< long >(val3);
13707 {
13708 PyThreadState* __tstate = wxPyBeginAllowThreads();
13709 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13710 wxPyEndAllowThreads(__tstate);
13711 if (PyErr_Occurred()) SWIG_fail;
13712 }
13713 {
13714 #if wxUSE_UNICODE
13715 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13716 #else
13717 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13718 #endif
13719 }
13720 return resultobj;
13721 fail:
13722 return NULL;
13723 }
13724
13725
13726 SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13727 PyObject *resultobj = 0;
13728 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13729 SwigValueWrapper<wxVisualAttributes > result;
13730 int val1 ;
13731 int ecode1 = 0 ;
13732 PyObject * obj0 = 0 ;
13733 char * kwnames[] = {
13734 (char *) "variant", NULL
13735 };
13736
13737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13738 if (obj0) {
13739 ecode1 = SWIG_AsVal_int(obj0, &val1);
13740 if (!SWIG_IsOK(ecode1)) {
13741 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13742 }
13743 arg1 = static_cast< wxWindowVariant >(val1);
13744 }
13745 {
13746 if (!wxPyCheckForApp()) SWIG_fail;
13747 PyThreadState* __tstate = wxPyBeginAllowThreads();
13748 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13749 wxPyEndAllowThreads(__tstate);
13750 if (PyErr_Occurred()) SWIG_fail;
13751 }
13752 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13753 return resultobj;
13754 fail:
13755 return NULL;
13756 }
13757
13758
13759 SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13760 PyObject *obj;
13761 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13762 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13763 return SWIG_Py_Void();
13764 }
13765
13766 SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13767 return SWIG_Python_InitShadowInstance(args);
13768 }
13769
13770 SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13771 PyObject *resultobj = 0;
13772 int arg1 ;
13773 wxMouseEvent *arg2 = 0 ;
13774 long arg3 ;
13775 long arg4 ;
13776 wxTextUrlEvent *result = 0 ;
13777 int val1 ;
13778 int ecode1 = 0 ;
13779 void *argp2 = 0 ;
13780 int res2 = 0 ;
13781 long val3 ;
13782 int ecode3 = 0 ;
13783 long val4 ;
13784 int ecode4 = 0 ;
13785 PyObject * obj0 = 0 ;
13786 PyObject * obj1 = 0 ;
13787 PyObject * obj2 = 0 ;
13788 PyObject * obj3 = 0 ;
13789 char * kwnames[] = {
13790 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
13791 };
13792
13793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13794 ecode1 = SWIG_AsVal_int(obj0, &val1);
13795 if (!SWIG_IsOK(ecode1)) {
13796 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
13797 }
13798 arg1 = static_cast< int >(val1);
13799 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
13800 if (!SWIG_IsOK(res2)) {
13801 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13802 }
13803 if (!argp2) {
13804 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13805 }
13806 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
13807 ecode3 = SWIG_AsVal_long(obj2, &val3);
13808 if (!SWIG_IsOK(ecode3)) {
13809 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
13810 }
13811 arg3 = static_cast< long >(val3);
13812 ecode4 = SWIG_AsVal_long(obj3, &val4);
13813 if (!SWIG_IsOK(ecode4)) {
13814 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
13815 }
13816 arg4 = static_cast< long >(val4);
13817 {
13818 PyThreadState* __tstate = wxPyBeginAllowThreads();
13819 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
13820 wxPyEndAllowThreads(__tstate);
13821 if (PyErr_Occurred()) SWIG_fail;
13822 }
13823 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
13824 return resultobj;
13825 fail:
13826 return NULL;
13827 }
13828
13829
13830 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13831 PyObject *resultobj = 0;
13832 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13833 wxMouseEvent *result = 0 ;
13834 void *argp1 = 0 ;
13835 int res1 = 0 ;
13836 PyObject *swig_obj[1] ;
13837
13838 if (!args) SWIG_fail;
13839 swig_obj[0] = args;
13840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13841 if (!SWIG_IsOK(res1)) {
13842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
13843 }
13844 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13845 {
13846 PyThreadState* __tstate = wxPyBeginAllowThreads();
13847 {
13848 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
13849 result = (wxMouseEvent *) &_result_ref;
13850 }
13851 wxPyEndAllowThreads(__tstate);
13852 if (PyErr_Occurred()) SWIG_fail;
13853 }
13854 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
13855 return resultobj;
13856 fail:
13857 return NULL;
13858 }
13859
13860
13861 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13862 PyObject *resultobj = 0;
13863 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13864 long result;
13865 void *argp1 = 0 ;
13866 int res1 = 0 ;
13867 PyObject *swig_obj[1] ;
13868
13869 if (!args) SWIG_fail;
13870 swig_obj[0] = args;
13871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13872 if (!SWIG_IsOK(res1)) {
13873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13874 }
13875 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13876 {
13877 PyThreadState* __tstate = wxPyBeginAllowThreads();
13878 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
13879 wxPyEndAllowThreads(__tstate);
13880 if (PyErr_Occurred()) SWIG_fail;
13881 }
13882 resultobj = SWIG_From_long(static_cast< long >(result));
13883 return resultobj;
13884 fail:
13885 return NULL;
13886 }
13887
13888
13889 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13890 PyObject *resultobj = 0;
13891 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13892 long result;
13893 void *argp1 = 0 ;
13894 int res1 = 0 ;
13895 PyObject *swig_obj[1] ;
13896
13897 if (!args) SWIG_fail;
13898 swig_obj[0] = args;
13899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13900 if (!SWIG_IsOK(res1)) {
13901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13902 }
13903 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13904 {
13905 PyThreadState* __tstate = wxPyBeginAllowThreads();
13906 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
13907 wxPyEndAllowThreads(__tstate);
13908 if (PyErr_Occurred()) SWIG_fail;
13909 }
13910 resultobj = SWIG_From_long(static_cast< long >(result));
13911 return resultobj;
13912 fail:
13913 return NULL;
13914 }
13915
13916
13917 SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13918 PyObject *obj;
13919 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13920 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
13921 return SWIG_Py_Void();
13922 }
13923
13924 SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13925 return SWIG_Python_InitShadowInstance(args);
13926 }
13927
13928 SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
13929 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
13930 return 1;
13931 }
13932
13933
13934 SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
13935 PyObject *pyobj = 0;
13936
13937 {
13938 #if wxUSE_UNICODE
13939 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
13940 #else
13941 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
13942 #endif
13943 }
13944 return pyobj;
13945 }
13946
13947
13948 SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13949 PyObject *resultobj = 0;
13950 wxWindow *arg1 = (wxWindow *) 0 ;
13951 int arg2 = (int) -1 ;
13952 wxPoint const &arg3_defvalue = wxDefaultPosition ;
13953 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
13954 wxSize const &arg4_defvalue = wxDefaultSize ;
13955 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
13956 long arg5 = (long) wxSB_HORIZONTAL ;
13957 wxValidator const &arg6_defvalue = wxDefaultValidator ;
13958 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
13959 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
13960 wxString *arg7 = (wxString *) &arg7_defvalue ;
13961 wxScrollBar *result = 0 ;
13962 void *argp1 = 0 ;
13963 int res1 = 0 ;
13964 int val2 ;
13965 int ecode2 = 0 ;
13966 wxPoint temp3 ;
13967 wxSize temp4 ;
13968 long val5 ;
13969 int ecode5 = 0 ;
13970 void *argp6 = 0 ;
13971 int res6 = 0 ;
13972 bool temp7 = false ;
13973 PyObject * obj0 = 0 ;
13974 PyObject * obj1 = 0 ;
13975 PyObject * obj2 = 0 ;
13976 PyObject * obj3 = 0 ;
13977 PyObject * obj4 = 0 ;
13978 PyObject * obj5 = 0 ;
13979 PyObject * obj6 = 0 ;
13980 char * kwnames[] = {
13981 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13982 };
13983
13984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
13986 if (!SWIG_IsOK(res1)) {
13987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
13988 }
13989 arg1 = reinterpret_cast< wxWindow * >(argp1);
13990 if (obj1) {
13991 ecode2 = SWIG_AsVal_int(obj1, &val2);
13992 if (!SWIG_IsOK(ecode2)) {
13993 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
13994 }
13995 arg2 = static_cast< int >(val2);
13996 }
13997 if (obj2) {
13998 {
13999 arg3 = &temp3;
14000 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14001 }
14002 }
14003 if (obj3) {
14004 {
14005 arg4 = &temp4;
14006 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14007 }
14008 }
14009 if (obj4) {
14010 ecode5 = SWIG_AsVal_long(obj4, &val5);
14011 if (!SWIG_IsOK(ecode5)) {
14012 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14013 }
14014 arg5 = static_cast< long >(val5);
14015 }
14016 if (obj5) {
14017 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14018 if (!SWIG_IsOK(res6)) {
14019 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14020 }
14021 if (!argp6) {
14022 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14023 }
14024 arg6 = reinterpret_cast< wxValidator * >(argp6);
14025 }
14026 if (obj6) {
14027 {
14028 arg7 = wxString_in_helper(obj6);
14029 if (arg7 == NULL) SWIG_fail;
14030 temp7 = true;
14031 }
14032 }
14033 {
14034 if (!wxPyCheckForApp()) SWIG_fail;
14035 PyThreadState* __tstate = wxPyBeginAllowThreads();
14036 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14037 wxPyEndAllowThreads(__tstate);
14038 if (PyErr_Occurred()) SWIG_fail;
14039 }
14040 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14041 {
14042 if (temp7)
14043 delete arg7;
14044 }
14045 return resultobj;
14046 fail:
14047 {
14048 if (temp7)
14049 delete arg7;
14050 }
14051 return NULL;
14052 }
14053
14054
14055 SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14056 PyObject *resultobj = 0;
14057 wxScrollBar *result = 0 ;
14058
14059 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14060 {
14061 if (!wxPyCheckForApp()) SWIG_fail;
14062 PyThreadState* __tstate = wxPyBeginAllowThreads();
14063 result = (wxScrollBar *)new wxScrollBar();
14064 wxPyEndAllowThreads(__tstate);
14065 if (PyErr_Occurred()) SWIG_fail;
14066 }
14067 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14068 return resultobj;
14069 fail:
14070 return NULL;
14071 }
14072
14073
14074 SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14075 PyObject *resultobj = 0;
14076 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14077 wxWindow *arg2 = (wxWindow *) 0 ;
14078 int arg3 = (int) -1 ;
14079 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14080 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14081 wxSize const &arg5_defvalue = wxDefaultSize ;
14082 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14083 long arg6 = (long) wxSB_HORIZONTAL ;
14084 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14085 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14086 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14087 wxString *arg8 = (wxString *) &arg8_defvalue ;
14088 bool result;
14089 void *argp1 = 0 ;
14090 int res1 = 0 ;
14091 void *argp2 = 0 ;
14092 int res2 = 0 ;
14093 int val3 ;
14094 int ecode3 = 0 ;
14095 wxPoint temp4 ;
14096 wxSize temp5 ;
14097 long val6 ;
14098 int ecode6 = 0 ;
14099 void *argp7 = 0 ;
14100 int res7 = 0 ;
14101 bool temp8 = false ;
14102 PyObject * obj0 = 0 ;
14103 PyObject * obj1 = 0 ;
14104 PyObject * obj2 = 0 ;
14105 PyObject * obj3 = 0 ;
14106 PyObject * obj4 = 0 ;
14107 PyObject * obj5 = 0 ;
14108 PyObject * obj6 = 0 ;
14109 PyObject * obj7 = 0 ;
14110 char * kwnames[] = {
14111 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14112 };
14113
14114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14116 if (!SWIG_IsOK(res1)) {
14117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14118 }
14119 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14120 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14121 if (!SWIG_IsOK(res2)) {
14122 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14123 }
14124 arg2 = reinterpret_cast< wxWindow * >(argp2);
14125 if (obj2) {
14126 ecode3 = SWIG_AsVal_int(obj2, &val3);
14127 if (!SWIG_IsOK(ecode3)) {
14128 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14129 }
14130 arg3 = static_cast< int >(val3);
14131 }
14132 if (obj3) {
14133 {
14134 arg4 = &temp4;
14135 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14136 }
14137 }
14138 if (obj4) {
14139 {
14140 arg5 = &temp5;
14141 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14142 }
14143 }
14144 if (obj5) {
14145 ecode6 = SWIG_AsVal_long(obj5, &val6);
14146 if (!SWIG_IsOK(ecode6)) {
14147 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14148 }
14149 arg6 = static_cast< long >(val6);
14150 }
14151 if (obj6) {
14152 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14153 if (!SWIG_IsOK(res7)) {
14154 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14155 }
14156 if (!argp7) {
14157 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14158 }
14159 arg7 = reinterpret_cast< wxValidator * >(argp7);
14160 }
14161 if (obj7) {
14162 {
14163 arg8 = wxString_in_helper(obj7);
14164 if (arg8 == NULL) SWIG_fail;
14165 temp8 = true;
14166 }
14167 }
14168 {
14169 PyThreadState* __tstate = wxPyBeginAllowThreads();
14170 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14171 wxPyEndAllowThreads(__tstate);
14172 if (PyErr_Occurred()) SWIG_fail;
14173 }
14174 {
14175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14176 }
14177 {
14178 if (temp8)
14179 delete arg8;
14180 }
14181 return resultobj;
14182 fail:
14183 {
14184 if (temp8)
14185 delete arg8;
14186 }
14187 return NULL;
14188 }
14189
14190
14191 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14192 PyObject *resultobj = 0;
14193 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14194 int result;
14195 void *argp1 = 0 ;
14196 int res1 = 0 ;
14197 PyObject *swig_obj[1] ;
14198
14199 if (!args) SWIG_fail;
14200 swig_obj[0] = args;
14201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14202 if (!SWIG_IsOK(res1)) {
14203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14204 }
14205 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14206 {
14207 PyThreadState* __tstate = wxPyBeginAllowThreads();
14208 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14209 wxPyEndAllowThreads(__tstate);
14210 if (PyErr_Occurred()) SWIG_fail;
14211 }
14212 resultobj = SWIG_From_int(static_cast< int >(result));
14213 return resultobj;
14214 fail:
14215 return NULL;
14216 }
14217
14218
14219 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14220 PyObject *resultobj = 0;
14221 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14222 int result;
14223 void *argp1 = 0 ;
14224 int res1 = 0 ;
14225 PyObject *swig_obj[1] ;
14226
14227 if (!args) SWIG_fail;
14228 swig_obj[0] = args;
14229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14230 if (!SWIG_IsOK(res1)) {
14231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14232 }
14233 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14234 {
14235 PyThreadState* __tstate = wxPyBeginAllowThreads();
14236 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14237 wxPyEndAllowThreads(__tstate);
14238 if (PyErr_Occurred()) SWIG_fail;
14239 }
14240 resultobj = SWIG_From_int(static_cast< int >(result));
14241 return resultobj;
14242 fail:
14243 return NULL;
14244 }
14245
14246
14247 SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14248 PyObject *resultobj = 0;
14249 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14250 int result;
14251 void *argp1 = 0 ;
14252 int res1 = 0 ;
14253 PyObject *swig_obj[1] ;
14254
14255 if (!args) SWIG_fail;
14256 swig_obj[0] = args;
14257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14258 if (!SWIG_IsOK(res1)) {
14259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14260 }
14261 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14262 {
14263 PyThreadState* __tstate = wxPyBeginAllowThreads();
14264 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14265 wxPyEndAllowThreads(__tstate);
14266 if (PyErr_Occurred()) SWIG_fail;
14267 }
14268 resultobj = SWIG_From_int(static_cast< int >(result));
14269 return resultobj;
14270 fail:
14271 return NULL;
14272 }
14273
14274
14275 SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14276 PyObject *resultobj = 0;
14277 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14278 int result;
14279 void *argp1 = 0 ;
14280 int res1 = 0 ;
14281 PyObject *swig_obj[1] ;
14282
14283 if (!args) SWIG_fail;
14284 swig_obj[0] = args;
14285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14286 if (!SWIG_IsOK(res1)) {
14287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14288 }
14289 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14290 {
14291 PyThreadState* __tstate = wxPyBeginAllowThreads();
14292 result = (int)((wxScrollBar const *)arg1)->GetRange();
14293 wxPyEndAllowThreads(__tstate);
14294 if (PyErr_Occurred()) SWIG_fail;
14295 }
14296 resultobj = SWIG_From_int(static_cast< int >(result));
14297 return resultobj;
14298 fail:
14299 return NULL;
14300 }
14301
14302
14303 SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14304 PyObject *resultobj = 0;
14305 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14306 bool result;
14307 void *argp1 = 0 ;
14308 int res1 = 0 ;
14309 PyObject *swig_obj[1] ;
14310
14311 if (!args) SWIG_fail;
14312 swig_obj[0] = args;
14313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14314 if (!SWIG_IsOK(res1)) {
14315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14316 }
14317 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14318 {
14319 PyThreadState* __tstate = wxPyBeginAllowThreads();
14320 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14321 wxPyEndAllowThreads(__tstate);
14322 if (PyErr_Occurred()) SWIG_fail;
14323 }
14324 {
14325 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14326 }
14327 return resultobj;
14328 fail:
14329 return NULL;
14330 }
14331
14332
14333 SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14334 PyObject *resultobj = 0;
14335 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14336 int arg2 ;
14337 void *argp1 = 0 ;
14338 int res1 = 0 ;
14339 int val2 ;
14340 int ecode2 = 0 ;
14341 PyObject * obj0 = 0 ;
14342 PyObject * obj1 = 0 ;
14343 char * kwnames[] = {
14344 (char *) "self",(char *) "viewStart", NULL
14345 };
14346
14347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14349 if (!SWIG_IsOK(res1)) {
14350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14351 }
14352 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14353 ecode2 = SWIG_AsVal_int(obj1, &val2);
14354 if (!SWIG_IsOK(ecode2)) {
14355 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14356 }
14357 arg2 = static_cast< int >(val2);
14358 {
14359 PyThreadState* __tstate = wxPyBeginAllowThreads();
14360 (arg1)->SetThumbPosition(arg2);
14361 wxPyEndAllowThreads(__tstate);
14362 if (PyErr_Occurred()) SWIG_fail;
14363 }
14364 resultobj = SWIG_Py_Void();
14365 return resultobj;
14366 fail:
14367 return NULL;
14368 }
14369
14370
14371 SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14372 PyObject *resultobj = 0;
14373 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14374 SwigValueWrapper<wxVisualAttributes > result;
14375 int val1 ;
14376 int ecode1 = 0 ;
14377 PyObject * obj0 = 0 ;
14378 char * kwnames[] = {
14379 (char *) "variant", NULL
14380 };
14381
14382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14383 if (obj0) {
14384 ecode1 = SWIG_AsVal_int(obj0, &val1);
14385 if (!SWIG_IsOK(ecode1)) {
14386 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14387 }
14388 arg1 = static_cast< wxWindowVariant >(val1);
14389 }
14390 {
14391 if (!wxPyCheckForApp()) SWIG_fail;
14392 PyThreadState* __tstate = wxPyBeginAllowThreads();
14393 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14394 wxPyEndAllowThreads(__tstate);
14395 if (PyErr_Occurred()) SWIG_fail;
14396 }
14397 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14398 return resultobj;
14399 fail:
14400 return NULL;
14401 }
14402
14403
14404 SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14405 PyObject *obj;
14406 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14407 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14408 return SWIG_Py_Void();
14409 }
14410
14411 SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14412 return SWIG_Python_InitShadowInstance(args);
14413 }
14414
14415 SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14416 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14417 return 1;
14418 }
14419
14420
14421 SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14422 PyObject *pyobj = 0;
14423
14424 {
14425 #if wxUSE_UNICODE
14426 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14427 #else
14428 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14429 #endif
14430 }
14431 return pyobj;
14432 }
14433
14434
14435 SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14436 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14437 return 1;
14438 }
14439
14440
14441 SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14442 PyObject *pyobj = 0;
14443
14444 {
14445 #if wxUSE_UNICODE
14446 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14447 #else
14448 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14449 #endif
14450 }
14451 return pyobj;
14452 }
14453
14454
14455 SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14456 PyObject *resultobj = 0;
14457 wxWindow *arg1 = (wxWindow *) 0 ;
14458 int arg2 = (int) -1 ;
14459 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14460 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14461 wxSize const &arg4_defvalue = wxDefaultSize ;
14462 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14463 long arg5 = (long) wxSP_HORIZONTAL ;
14464 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14465 wxString *arg6 = (wxString *) &arg6_defvalue ;
14466 wxSpinButton *result = 0 ;
14467 void *argp1 = 0 ;
14468 int res1 = 0 ;
14469 int val2 ;
14470 int ecode2 = 0 ;
14471 wxPoint temp3 ;
14472 wxSize temp4 ;
14473 long val5 ;
14474 int ecode5 = 0 ;
14475 bool temp6 = false ;
14476 PyObject * obj0 = 0 ;
14477 PyObject * obj1 = 0 ;
14478 PyObject * obj2 = 0 ;
14479 PyObject * obj3 = 0 ;
14480 PyObject * obj4 = 0 ;
14481 PyObject * obj5 = 0 ;
14482 char * kwnames[] = {
14483 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14484 };
14485
14486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14488 if (!SWIG_IsOK(res1)) {
14489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14490 }
14491 arg1 = reinterpret_cast< wxWindow * >(argp1);
14492 if (obj1) {
14493 ecode2 = SWIG_AsVal_int(obj1, &val2);
14494 if (!SWIG_IsOK(ecode2)) {
14495 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14496 }
14497 arg2 = static_cast< int >(val2);
14498 }
14499 if (obj2) {
14500 {
14501 arg3 = &temp3;
14502 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14503 }
14504 }
14505 if (obj3) {
14506 {
14507 arg4 = &temp4;
14508 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14509 }
14510 }
14511 if (obj4) {
14512 ecode5 = SWIG_AsVal_long(obj4, &val5);
14513 if (!SWIG_IsOK(ecode5)) {
14514 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14515 }
14516 arg5 = static_cast< long >(val5);
14517 }
14518 if (obj5) {
14519 {
14520 arg6 = wxString_in_helper(obj5);
14521 if (arg6 == NULL) SWIG_fail;
14522 temp6 = true;
14523 }
14524 }
14525 {
14526 if (!wxPyCheckForApp()) SWIG_fail;
14527 PyThreadState* __tstate = wxPyBeginAllowThreads();
14528 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14529 wxPyEndAllowThreads(__tstate);
14530 if (PyErr_Occurred()) SWIG_fail;
14531 }
14532 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14533 {
14534 if (temp6)
14535 delete arg6;
14536 }
14537 return resultobj;
14538 fail:
14539 {
14540 if (temp6)
14541 delete arg6;
14542 }
14543 return NULL;
14544 }
14545
14546
14547 SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14548 PyObject *resultobj = 0;
14549 wxSpinButton *result = 0 ;
14550
14551 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14552 {
14553 if (!wxPyCheckForApp()) SWIG_fail;
14554 PyThreadState* __tstate = wxPyBeginAllowThreads();
14555 result = (wxSpinButton *)new wxSpinButton();
14556 wxPyEndAllowThreads(__tstate);
14557 if (PyErr_Occurred()) SWIG_fail;
14558 }
14559 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14560 return resultobj;
14561 fail:
14562 return NULL;
14563 }
14564
14565
14566 SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14567 PyObject *resultobj = 0;
14568 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14569 wxWindow *arg2 = (wxWindow *) 0 ;
14570 int arg3 = (int) -1 ;
14571 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14572 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14573 wxSize const &arg5_defvalue = wxDefaultSize ;
14574 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14575 long arg6 = (long) wxSP_HORIZONTAL ;
14576 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14577 wxString *arg7 = (wxString *) &arg7_defvalue ;
14578 bool result;
14579 void *argp1 = 0 ;
14580 int res1 = 0 ;
14581 void *argp2 = 0 ;
14582 int res2 = 0 ;
14583 int val3 ;
14584 int ecode3 = 0 ;
14585 wxPoint temp4 ;
14586 wxSize temp5 ;
14587 long val6 ;
14588 int ecode6 = 0 ;
14589 bool temp7 = false ;
14590 PyObject * obj0 = 0 ;
14591 PyObject * obj1 = 0 ;
14592 PyObject * obj2 = 0 ;
14593 PyObject * obj3 = 0 ;
14594 PyObject * obj4 = 0 ;
14595 PyObject * obj5 = 0 ;
14596 PyObject * obj6 = 0 ;
14597 char * kwnames[] = {
14598 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14599 };
14600
14601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14603 if (!SWIG_IsOK(res1)) {
14604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14605 }
14606 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14607 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14608 if (!SWIG_IsOK(res2)) {
14609 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14610 }
14611 arg2 = reinterpret_cast< wxWindow * >(argp2);
14612 if (obj2) {
14613 ecode3 = SWIG_AsVal_int(obj2, &val3);
14614 if (!SWIG_IsOK(ecode3)) {
14615 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14616 }
14617 arg3 = static_cast< int >(val3);
14618 }
14619 if (obj3) {
14620 {
14621 arg4 = &temp4;
14622 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14623 }
14624 }
14625 if (obj4) {
14626 {
14627 arg5 = &temp5;
14628 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14629 }
14630 }
14631 if (obj5) {
14632 ecode6 = SWIG_AsVal_long(obj5, &val6);
14633 if (!SWIG_IsOK(ecode6)) {
14634 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14635 }
14636 arg6 = static_cast< long >(val6);
14637 }
14638 if (obj6) {
14639 {
14640 arg7 = wxString_in_helper(obj6);
14641 if (arg7 == NULL) SWIG_fail;
14642 temp7 = true;
14643 }
14644 }
14645 {
14646 PyThreadState* __tstate = wxPyBeginAllowThreads();
14647 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14648 wxPyEndAllowThreads(__tstate);
14649 if (PyErr_Occurred()) SWIG_fail;
14650 }
14651 {
14652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14653 }
14654 {
14655 if (temp7)
14656 delete arg7;
14657 }
14658 return resultobj;
14659 fail:
14660 {
14661 if (temp7)
14662 delete arg7;
14663 }
14664 return NULL;
14665 }
14666
14667
14668 SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14669 PyObject *resultobj = 0;
14670 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14671 int result;
14672 void *argp1 = 0 ;
14673 int res1 = 0 ;
14674 PyObject *swig_obj[1] ;
14675
14676 if (!args) SWIG_fail;
14677 swig_obj[0] = args;
14678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14679 if (!SWIG_IsOK(res1)) {
14680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14681 }
14682 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14683 {
14684 PyThreadState* __tstate = wxPyBeginAllowThreads();
14685 result = (int)((wxSpinButton const *)arg1)->GetValue();
14686 wxPyEndAllowThreads(__tstate);
14687 if (PyErr_Occurred()) SWIG_fail;
14688 }
14689 resultobj = SWIG_From_int(static_cast< int >(result));
14690 return resultobj;
14691 fail:
14692 return NULL;
14693 }
14694
14695
14696 SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14697 PyObject *resultobj = 0;
14698 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14699 int result;
14700 void *argp1 = 0 ;
14701 int res1 = 0 ;
14702 PyObject *swig_obj[1] ;
14703
14704 if (!args) SWIG_fail;
14705 swig_obj[0] = args;
14706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14707 if (!SWIG_IsOK(res1)) {
14708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14709 }
14710 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14711 {
14712 PyThreadState* __tstate = wxPyBeginAllowThreads();
14713 result = (int)((wxSpinButton const *)arg1)->GetMin();
14714 wxPyEndAllowThreads(__tstate);
14715 if (PyErr_Occurred()) SWIG_fail;
14716 }
14717 resultobj = SWIG_From_int(static_cast< int >(result));
14718 return resultobj;
14719 fail:
14720 return NULL;
14721 }
14722
14723
14724 SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14725 PyObject *resultobj = 0;
14726 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14727 int result;
14728 void *argp1 = 0 ;
14729 int res1 = 0 ;
14730 PyObject *swig_obj[1] ;
14731
14732 if (!args) SWIG_fail;
14733 swig_obj[0] = args;
14734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14735 if (!SWIG_IsOK(res1)) {
14736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14737 }
14738 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14739 {
14740 PyThreadState* __tstate = wxPyBeginAllowThreads();
14741 result = (int)((wxSpinButton const *)arg1)->GetMax();
14742 wxPyEndAllowThreads(__tstate);
14743 if (PyErr_Occurred()) SWIG_fail;
14744 }
14745 resultobj = SWIG_From_int(static_cast< int >(result));
14746 return resultobj;
14747 fail:
14748 return NULL;
14749 }
14750
14751
14752 SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14753 PyObject *resultobj = 0;
14754 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14755 int arg2 ;
14756 void *argp1 = 0 ;
14757 int res1 = 0 ;
14758 int val2 ;
14759 int ecode2 = 0 ;
14760 PyObject * obj0 = 0 ;
14761 PyObject * obj1 = 0 ;
14762 char * kwnames[] = {
14763 (char *) "self",(char *) "val", NULL
14764 };
14765
14766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14768 if (!SWIG_IsOK(res1)) {
14769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14770 }
14771 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14772 ecode2 = SWIG_AsVal_int(obj1, &val2);
14773 if (!SWIG_IsOK(ecode2)) {
14774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14775 }
14776 arg2 = static_cast< int >(val2);
14777 {
14778 PyThreadState* __tstate = wxPyBeginAllowThreads();
14779 (arg1)->SetValue(arg2);
14780 wxPyEndAllowThreads(__tstate);
14781 if (PyErr_Occurred()) SWIG_fail;
14782 }
14783 resultobj = SWIG_Py_Void();
14784 return resultobj;
14785 fail:
14786 return NULL;
14787 }
14788
14789
14790 SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14791 PyObject *resultobj = 0;
14792 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14793 int arg2 ;
14794 void *argp1 = 0 ;
14795 int res1 = 0 ;
14796 int val2 ;
14797 int ecode2 = 0 ;
14798 PyObject * obj0 = 0 ;
14799 PyObject * obj1 = 0 ;
14800 char * kwnames[] = {
14801 (char *) "self",(char *) "minVal", NULL
14802 };
14803
14804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
14805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14806 if (!SWIG_IsOK(res1)) {
14807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14808 }
14809 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14810 ecode2 = SWIG_AsVal_int(obj1, &val2);
14811 if (!SWIG_IsOK(ecode2)) {
14812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
14813 }
14814 arg2 = static_cast< int >(val2);
14815 {
14816 PyThreadState* __tstate = wxPyBeginAllowThreads();
14817 (arg1)->SetMin(arg2);
14818 wxPyEndAllowThreads(__tstate);
14819 if (PyErr_Occurred()) SWIG_fail;
14820 }
14821 resultobj = SWIG_Py_Void();
14822 return resultobj;
14823 fail:
14824 return NULL;
14825 }
14826
14827
14828 SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14829 PyObject *resultobj = 0;
14830 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14831 int arg2 ;
14832 void *argp1 = 0 ;
14833 int res1 = 0 ;
14834 int val2 ;
14835 int ecode2 = 0 ;
14836 PyObject * obj0 = 0 ;
14837 PyObject * obj1 = 0 ;
14838 char * kwnames[] = {
14839 (char *) "self",(char *) "maxVal", NULL
14840 };
14841
14842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
14843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14844 if (!SWIG_IsOK(res1)) {
14845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14846 }
14847 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14848 ecode2 = SWIG_AsVal_int(obj1, &val2);
14849 if (!SWIG_IsOK(ecode2)) {
14850 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
14851 }
14852 arg2 = static_cast< int >(val2);
14853 {
14854 PyThreadState* __tstate = wxPyBeginAllowThreads();
14855 (arg1)->SetMax(arg2);
14856 wxPyEndAllowThreads(__tstate);
14857 if (PyErr_Occurred()) SWIG_fail;
14858 }
14859 resultobj = SWIG_Py_Void();
14860 return resultobj;
14861 fail:
14862 return NULL;
14863 }
14864
14865
14866 SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14867 PyObject *resultobj = 0;
14868 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14869 int arg2 ;
14870 int arg3 ;
14871 void *argp1 = 0 ;
14872 int res1 = 0 ;
14873 int val2 ;
14874 int ecode2 = 0 ;
14875 int val3 ;
14876 int ecode3 = 0 ;
14877 PyObject * obj0 = 0 ;
14878 PyObject * obj1 = 0 ;
14879 PyObject * obj2 = 0 ;
14880 char * kwnames[] = {
14881 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
14882 };
14883
14884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14886 if (!SWIG_IsOK(res1)) {
14887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14888 }
14889 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14890 ecode2 = SWIG_AsVal_int(obj1, &val2);
14891 if (!SWIG_IsOK(ecode2)) {
14892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
14893 }
14894 arg2 = static_cast< int >(val2);
14895 ecode3 = SWIG_AsVal_int(obj2, &val3);
14896 if (!SWIG_IsOK(ecode3)) {
14897 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
14898 }
14899 arg3 = static_cast< int >(val3);
14900 {
14901 PyThreadState* __tstate = wxPyBeginAllowThreads();
14902 (arg1)->SetRange(arg2,arg3);
14903 wxPyEndAllowThreads(__tstate);
14904 if (PyErr_Occurred()) SWIG_fail;
14905 }
14906 resultobj = SWIG_Py_Void();
14907 return resultobj;
14908 fail:
14909 return NULL;
14910 }
14911
14912
14913 SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14914 PyObject *resultobj = 0;
14915 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14916 bool result;
14917 void *argp1 = 0 ;
14918 int res1 = 0 ;
14919 PyObject *swig_obj[1] ;
14920
14921 if (!args) SWIG_fail;
14922 swig_obj[0] = args;
14923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14924 if (!SWIG_IsOK(res1)) {
14925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14926 }
14927 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14928 {
14929 PyThreadState* __tstate = wxPyBeginAllowThreads();
14930 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
14931 wxPyEndAllowThreads(__tstate);
14932 if (PyErr_Occurred()) SWIG_fail;
14933 }
14934 {
14935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14936 }
14937 return resultobj;
14938 fail:
14939 return NULL;
14940 }
14941
14942
14943 SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14944 PyObject *resultobj = 0;
14945 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14946 SwigValueWrapper<wxVisualAttributes > result;
14947 int val1 ;
14948 int ecode1 = 0 ;
14949 PyObject * obj0 = 0 ;
14950 char * kwnames[] = {
14951 (char *) "variant", NULL
14952 };
14953
14954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14955 if (obj0) {
14956 ecode1 = SWIG_AsVal_int(obj0, &val1);
14957 if (!SWIG_IsOK(ecode1)) {
14958 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14959 }
14960 arg1 = static_cast< wxWindowVariant >(val1);
14961 }
14962 {
14963 if (!wxPyCheckForApp()) SWIG_fail;
14964 PyThreadState* __tstate = wxPyBeginAllowThreads();
14965 result = wxSpinButton::GetClassDefaultAttributes(arg1);
14966 wxPyEndAllowThreads(__tstate);
14967 if (PyErr_Occurred()) SWIG_fail;
14968 }
14969 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14970 return resultobj;
14971 fail:
14972 return NULL;
14973 }
14974
14975
14976 SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14977 PyObject *obj;
14978 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14979 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
14980 return SWIG_Py_Void();
14981 }
14982
14983 SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14984 return SWIG_Python_InitShadowInstance(args);
14985 }
14986
14987 SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14988 PyObject *resultobj = 0;
14989 wxWindow *arg1 = (wxWindow *) 0 ;
14990 int arg2 = (int) -1 ;
14991 wxString const &arg3_defvalue = wxPyEmptyString ;
14992 wxString *arg3 = (wxString *) &arg3_defvalue ;
14993 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14994 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14995 wxSize const &arg5_defvalue = wxDefaultSize ;
14996 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14997 long arg6 = (long) wxSP_ARROW_KEYS ;
14998 int arg7 = (int) 0 ;
14999 int arg8 = (int) 100 ;
15000 int arg9 = (int) 0 ;
15001 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15002 wxString *arg10 = (wxString *) &arg10_defvalue ;
15003 wxSpinCtrl *result = 0 ;
15004 void *argp1 = 0 ;
15005 int res1 = 0 ;
15006 int val2 ;
15007 int ecode2 = 0 ;
15008 bool temp3 = false ;
15009 wxPoint temp4 ;
15010 wxSize temp5 ;
15011 long val6 ;
15012 int ecode6 = 0 ;
15013 int val7 ;
15014 int ecode7 = 0 ;
15015 int val8 ;
15016 int ecode8 = 0 ;
15017 int val9 ;
15018 int ecode9 = 0 ;
15019 bool temp10 = false ;
15020 PyObject * obj0 = 0 ;
15021 PyObject * obj1 = 0 ;
15022 PyObject * obj2 = 0 ;
15023 PyObject * obj3 = 0 ;
15024 PyObject * obj4 = 0 ;
15025 PyObject * obj5 = 0 ;
15026 PyObject * obj6 = 0 ;
15027 PyObject * obj7 = 0 ;
15028 PyObject * obj8 = 0 ;
15029 PyObject * obj9 = 0 ;
15030 char * kwnames[] = {
15031 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15032 };
15033
15034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15036 if (!SWIG_IsOK(res1)) {
15037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15038 }
15039 arg1 = reinterpret_cast< wxWindow * >(argp1);
15040 if (obj1) {
15041 ecode2 = SWIG_AsVal_int(obj1, &val2);
15042 if (!SWIG_IsOK(ecode2)) {
15043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15044 }
15045 arg2 = static_cast< int >(val2);
15046 }
15047 if (obj2) {
15048 {
15049 arg3 = wxString_in_helper(obj2);
15050 if (arg3 == NULL) SWIG_fail;
15051 temp3 = true;
15052 }
15053 }
15054 if (obj3) {
15055 {
15056 arg4 = &temp4;
15057 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15058 }
15059 }
15060 if (obj4) {
15061 {
15062 arg5 = &temp5;
15063 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15064 }
15065 }
15066 if (obj5) {
15067 ecode6 = SWIG_AsVal_long(obj5, &val6);
15068 if (!SWIG_IsOK(ecode6)) {
15069 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15070 }
15071 arg6 = static_cast< long >(val6);
15072 }
15073 if (obj6) {
15074 ecode7 = SWIG_AsVal_int(obj6, &val7);
15075 if (!SWIG_IsOK(ecode7)) {
15076 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15077 }
15078 arg7 = static_cast< int >(val7);
15079 }
15080 if (obj7) {
15081 ecode8 = SWIG_AsVal_int(obj7, &val8);
15082 if (!SWIG_IsOK(ecode8)) {
15083 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15084 }
15085 arg8 = static_cast< int >(val8);
15086 }
15087 if (obj8) {
15088 ecode9 = SWIG_AsVal_int(obj8, &val9);
15089 if (!SWIG_IsOK(ecode9)) {
15090 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15091 }
15092 arg9 = static_cast< int >(val9);
15093 }
15094 if (obj9) {
15095 {
15096 arg10 = wxString_in_helper(obj9);
15097 if (arg10 == NULL) SWIG_fail;
15098 temp10 = true;
15099 }
15100 }
15101 {
15102 if (!wxPyCheckForApp()) SWIG_fail;
15103 PyThreadState* __tstate = wxPyBeginAllowThreads();
15104 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15105 wxPyEndAllowThreads(__tstate);
15106 if (PyErr_Occurred()) SWIG_fail;
15107 }
15108 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15109 {
15110 if (temp3)
15111 delete arg3;
15112 }
15113 {
15114 if (temp10)
15115 delete arg10;
15116 }
15117 return resultobj;
15118 fail:
15119 {
15120 if (temp3)
15121 delete arg3;
15122 }
15123 {
15124 if (temp10)
15125 delete arg10;
15126 }
15127 return NULL;
15128 }
15129
15130
15131 SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15132 PyObject *resultobj = 0;
15133 wxSpinCtrl *result = 0 ;
15134
15135 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15136 {
15137 if (!wxPyCheckForApp()) SWIG_fail;
15138 PyThreadState* __tstate = wxPyBeginAllowThreads();
15139 result = (wxSpinCtrl *)new wxSpinCtrl();
15140 wxPyEndAllowThreads(__tstate);
15141 if (PyErr_Occurred()) SWIG_fail;
15142 }
15143 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15144 return resultobj;
15145 fail:
15146 return NULL;
15147 }
15148
15149
15150 SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15151 PyObject *resultobj = 0;
15152 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15153 wxWindow *arg2 = (wxWindow *) 0 ;
15154 int arg3 = (int) -1 ;
15155 wxString const &arg4_defvalue = wxPyEmptyString ;
15156 wxString *arg4 = (wxString *) &arg4_defvalue ;
15157 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15158 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15159 wxSize const &arg6_defvalue = wxDefaultSize ;
15160 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15161 long arg7 = (long) wxSP_ARROW_KEYS ;
15162 int arg8 = (int) 0 ;
15163 int arg9 = (int) 100 ;
15164 int arg10 = (int) 0 ;
15165 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15166 wxString *arg11 = (wxString *) &arg11_defvalue ;
15167 bool result;
15168 void *argp1 = 0 ;
15169 int res1 = 0 ;
15170 void *argp2 = 0 ;
15171 int res2 = 0 ;
15172 int val3 ;
15173 int ecode3 = 0 ;
15174 bool temp4 = false ;
15175 wxPoint temp5 ;
15176 wxSize temp6 ;
15177 long val7 ;
15178 int ecode7 = 0 ;
15179 int val8 ;
15180 int ecode8 = 0 ;
15181 int val9 ;
15182 int ecode9 = 0 ;
15183 int val10 ;
15184 int ecode10 = 0 ;
15185 bool temp11 = false ;
15186 PyObject * obj0 = 0 ;
15187 PyObject * obj1 = 0 ;
15188 PyObject * obj2 = 0 ;
15189 PyObject * obj3 = 0 ;
15190 PyObject * obj4 = 0 ;
15191 PyObject * obj5 = 0 ;
15192 PyObject * obj6 = 0 ;
15193 PyObject * obj7 = 0 ;
15194 PyObject * obj8 = 0 ;
15195 PyObject * obj9 = 0 ;
15196 PyObject * obj10 = 0 ;
15197 char * kwnames[] = {
15198 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15199 };
15200
15201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15203 if (!SWIG_IsOK(res1)) {
15204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15205 }
15206 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15207 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15208 if (!SWIG_IsOK(res2)) {
15209 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15210 }
15211 arg2 = reinterpret_cast< wxWindow * >(argp2);
15212 if (obj2) {
15213 ecode3 = SWIG_AsVal_int(obj2, &val3);
15214 if (!SWIG_IsOK(ecode3)) {
15215 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15216 }
15217 arg3 = static_cast< int >(val3);
15218 }
15219 if (obj3) {
15220 {
15221 arg4 = wxString_in_helper(obj3);
15222 if (arg4 == NULL) SWIG_fail;
15223 temp4 = true;
15224 }
15225 }
15226 if (obj4) {
15227 {
15228 arg5 = &temp5;
15229 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15230 }
15231 }
15232 if (obj5) {
15233 {
15234 arg6 = &temp6;
15235 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
15236 }
15237 }
15238 if (obj6) {
15239 ecode7 = SWIG_AsVal_long(obj6, &val7);
15240 if (!SWIG_IsOK(ecode7)) {
15241 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15242 }
15243 arg7 = static_cast< long >(val7);
15244 }
15245 if (obj7) {
15246 ecode8 = SWIG_AsVal_int(obj7, &val8);
15247 if (!SWIG_IsOK(ecode8)) {
15248 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15249 }
15250 arg8 = static_cast< int >(val8);
15251 }
15252 if (obj8) {
15253 ecode9 = SWIG_AsVal_int(obj8, &val9);
15254 if (!SWIG_IsOK(ecode9)) {
15255 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15256 }
15257 arg9 = static_cast< int >(val9);
15258 }
15259 if (obj9) {
15260 ecode10 = SWIG_AsVal_int(obj9, &val10);
15261 if (!SWIG_IsOK(ecode10)) {
15262 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15263 }
15264 arg10 = static_cast< int >(val10);
15265 }
15266 if (obj10) {
15267 {
15268 arg11 = wxString_in_helper(obj10);
15269 if (arg11 == NULL) SWIG_fail;
15270 temp11 = true;
15271 }
15272 }
15273 {
15274 PyThreadState* __tstate = wxPyBeginAllowThreads();
15275 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15276 wxPyEndAllowThreads(__tstate);
15277 if (PyErr_Occurred()) SWIG_fail;
15278 }
15279 {
15280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15281 }
15282 {
15283 if (temp4)
15284 delete arg4;
15285 }
15286 {
15287 if (temp11)
15288 delete arg11;
15289 }
15290 return resultobj;
15291 fail:
15292 {
15293 if (temp4)
15294 delete arg4;
15295 }
15296 {
15297 if (temp11)
15298 delete arg11;
15299 }
15300 return NULL;
15301 }
15302
15303
15304 SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15305 PyObject *resultobj = 0;
15306 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15307 int result;
15308 void *argp1 = 0 ;
15309 int res1 = 0 ;
15310 PyObject *swig_obj[1] ;
15311
15312 if (!args) SWIG_fail;
15313 swig_obj[0] = args;
15314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15315 if (!SWIG_IsOK(res1)) {
15316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15317 }
15318 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15319 {
15320 PyThreadState* __tstate = wxPyBeginAllowThreads();
15321 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15322 wxPyEndAllowThreads(__tstate);
15323 if (PyErr_Occurred()) SWIG_fail;
15324 }
15325 resultobj = SWIG_From_int(static_cast< int >(result));
15326 return resultobj;
15327 fail:
15328 return NULL;
15329 }
15330
15331
15332 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15333 PyObject *resultobj = 0;
15334 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15335 int arg2 ;
15336 void *argp1 = 0 ;
15337 int res1 = 0 ;
15338 int val2 ;
15339 int ecode2 = 0 ;
15340 PyObject * obj0 = 0 ;
15341 PyObject * obj1 = 0 ;
15342 char * kwnames[] = {
15343 (char *) "self",(char *) "value", NULL
15344 };
15345
15346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15348 if (!SWIG_IsOK(res1)) {
15349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15350 }
15351 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15352 ecode2 = SWIG_AsVal_int(obj1, &val2);
15353 if (!SWIG_IsOK(ecode2)) {
15354 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15355 }
15356 arg2 = static_cast< int >(val2);
15357 {
15358 PyThreadState* __tstate = wxPyBeginAllowThreads();
15359 (arg1)->SetValue(arg2);
15360 wxPyEndAllowThreads(__tstate);
15361 if (PyErr_Occurred()) SWIG_fail;
15362 }
15363 resultobj = SWIG_Py_Void();
15364 return resultobj;
15365 fail:
15366 return NULL;
15367 }
15368
15369
15370 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15371 PyObject *resultobj = 0;
15372 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15373 wxString *arg2 = 0 ;
15374 void *argp1 = 0 ;
15375 int res1 = 0 ;
15376 bool temp2 = false ;
15377 PyObject * obj0 = 0 ;
15378 PyObject * obj1 = 0 ;
15379 char * kwnames[] = {
15380 (char *) "self",(char *) "text", NULL
15381 };
15382
15383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15385 if (!SWIG_IsOK(res1)) {
15386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15387 }
15388 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15389 {
15390 arg2 = wxString_in_helper(obj1);
15391 if (arg2 == NULL) SWIG_fail;
15392 temp2 = true;
15393 }
15394 {
15395 PyThreadState* __tstate = wxPyBeginAllowThreads();
15396 (arg1)->SetValue((wxString const &)*arg2);
15397 wxPyEndAllowThreads(__tstate);
15398 if (PyErr_Occurred()) SWIG_fail;
15399 }
15400 resultobj = SWIG_Py_Void();
15401 {
15402 if (temp2)
15403 delete arg2;
15404 }
15405 return resultobj;
15406 fail:
15407 {
15408 if (temp2)
15409 delete arg2;
15410 }
15411 return NULL;
15412 }
15413
15414
15415 SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15416 PyObject *resultobj = 0;
15417 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15418 int arg2 ;
15419 int arg3 ;
15420 void *argp1 = 0 ;
15421 int res1 = 0 ;
15422 int val2 ;
15423 int ecode2 = 0 ;
15424 int val3 ;
15425 int ecode3 = 0 ;
15426 PyObject * obj0 = 0 ;
15427 PyObject * obj1 = 0 ;
15428 PyObject * obj2 = 0 ;
15429 char * kwnames[] = {
15430 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15431 };
15432
15433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15435 if (!SWIG_IsOK(res1)) {
15436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15437 }
15438 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15439 ecode2 = SWIG_AsVal_int(obj1, &val2);
15440 if (!SWIG_IsOK(ecode2)) {
15441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15442 }
15443 arg2 = static_cast< int >(val2);
15444 ecode3 = SWIG_AsVal_int(obj2, &val3);
15445 if (!SWIG_IsOK(ecode3)) {
15446 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15447 }
15448 arg3 = static_cast< int >(val3);
15449 {
15450 PyThreadState* __tstate = wxPyBeginAllowThreads();
15451 (arg1)->SetRange(arg2,arg3);
15452 wxPyEndAllowThreads(__tstate);
15453 if (PyErr_Occurred()) SWIG_fail;
15454 }
15455 resultobj = SWIG_Py_Void();
15456 return resultobj;
15457 fail:
15458 return NULL;
15459 }
15460
15461
15462 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15463 PyObject *resultobj = 0;
15464 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15465 int result;
15466 void *argp1 = 0 ;
15467 int res1 = 0 ;
15468 PyObject *swig_obj[1] ;
15469
15470 if (!args) SWIG_fail;
15471 swig_obj[0] = args;
15472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15473 if (!SWIG_IsOK(res1)) {
15474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15475 }
15476 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15477 {
15478 PyThreadState* __tstate = wxPyBeginAllowThreads();
15479 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15480 wxPyEndAllowThreads(__tstate);
15481 if (PyErr_Occurred()) SWIG_fail;
15482 }
15483 resultobj = SWIG_From_int(static_cast< int >(result));
15484 return resultobj;
15485 fail:
15486 return NULL;
15487 }
15488
15489
15490 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15491 PyObject *resultobj = 0;
15492 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15493 int result;
15494 void *argp1 = 0 ;
15495 int res1 = 0 ;
15496 PyObject *swig_obj[1] ;
15497
15498 if (!args) SWIG_fail;
15499 swig_obj[0] = args;
15500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15501 if (!SWIG_IsOK(res1)) {
15502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15503 }
15504 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15505 {
15506 PyThreadState* __tstate = wxPyBeginAllowThreads();
15507 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15508 wxPyEndAllowThreads(__tstate);
15509 if (PyErr_Occurred()) SWIG_fail;
15510 }
15511 resultobj = SWIG_From_int(static_cast< int >(result));
15512 return resultobj;
15513 fail:
15514 return NULL;
15515 }
15516
15517
15518 SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15519 PyObject *resultobj = 0;
15520 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15521 long arg2 ;
15522 long arg3 ;
15523 void *argp1 = 0 ;
15524 int res1 = 0 ;
15525 long val2 ;
15526 int ecode2 = 0 ;
15527 long val3 ;
15528 int ecode3 = 0 ;
15529 PyObject * obj0 = 0 ;
15530 PyObject * obj1 = 0 ;
15531 PyObject * obj2 = 0 ;
15532 char * kwnames[] = {
15533 (char *) "self",(char *) "from",(char *) "to", NULL
15534 };
15535
15536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15538 if (!SWIG_IsOK(res1)) {
15539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15540 }
15541 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15542 ecode2 = SWIG_AsVal_long(obj1, &val2);
15543 if (!SWIG_IsOK(ecode2)) {
15544 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15545 }
15546 arg2 = static_cast< long >(val2);
15547 ecode3 = SWIG_AsVal_long(obj2, &val3);
15548 if (!SWIG_IsOK(ecode3)) {
15549 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15550 }
15551 arg3 = static_cast< long >(val3);
15552 {
15553 PyThreadState* __tstate = wxPyBeginAllowThreads();
15554 (arg1)->SetSelection(arg2,arg3);
15555 wxPyEndAllowThreads(__tstate);
15556 if (PyErr_Occurred()) SWIG_fail;
15557 }
15558 resultobj = SWIG_Py_Void();
15559 return resultobj;
15560 fail:
15561 return NULL;
15562 }
15563
15564
15565 SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15566 PyObject *resultobj = 0;
15567 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15568 SwigValueWrapper<wxVisualAttributes > result;
15569 int val1 ;
15570 int ecode1 = 0 ;
15571 PyObject * obj0 = 0 ;
15572 char * kwnames[] = {
15573 (char *) "variant", NULL
15574 };
15575
15576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15577 if (obj0) {
15578 ecode1 = SWIG_AsVal_int(obj0, &val1);
15579 if (!SWIG_IsOK(ecode1)) {
15580 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15581 }
15582 arg1 = static_cast< wxWindowVariant >(val1);
15583 }
15584 {
15585 if (!wxPyCheckForApp()) SWIG_fail;
15586 PyThreadState* __tstate = wxPyBeginAllowThreads();
15587 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15588 wxPyEndAllowThreads(__tstate);
15589 if (PyErr_Occurred()) SWIG_fail;
15590 }
15591 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15592 return resultobj;
15593 fail:
15594 return NULL;
15595 }
15596
15597
15598 SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15599 PyObject *obj;
15600 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15601 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15602 return SWIG_Py_Void();
15603 }
15604
15605 SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15606 return SWIG_Python_InitShadowInstance(args);
15607 }
15608
15609 SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15610 PyObject *resultobj = 0;
15611 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15612 int arg2 = (int) 0 ;
15613 wxSpinEvent *result = 0 ;
15614 int val1 ;
15615 int ecode1 = 0 ;
15616 int val2 ;
15617 int ecode2 = 0 ;
15618 PyObject * obj0 = 0 ;
15619 PyObject * obj1 = 0 ;
15620 char * kwnames[] = {
15621 (char *) "commandType",(char *) "winid", NULL
15622 };
15623
15624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15625 if (obj0) {
15626 ecode1 = SWIG_AsVal_int(obj0, &val1);
15627 if (!SWIG_IsOK(ecode1)) {
15628 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15629 }
15630 arg1 = static_cast< wxEventType >(val1);
15631 }
15632 if (obj1) {
15633 ecode2 = SWIG_AsVal_int(obj1, &val2);
15634 if (!SWIG_IsOK(ecode2)) {
15635 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15636 }
15637 arg2 = static_cast< int >(val2);
15638 }
15639 {
15640 PyThreadState* __tstate = wxPyBeginAllowThreads();
15641 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15642 wxPyEndAllowThreads(__tstate);
15643 if (PyErr_Occurred()) SWIG_fail;
15644 }
15645 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15646 return resultobj;
15647 fail:
15648 return NULL;
15649 }
15650
15651
15652 SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15653 PyObject *resultobj = 0;
15654 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15655 int result;
15656 void *argp1 = 0 ;
15657 int res1 = 0 ;
15658 PyObject *swig_obj[1] ;
15659
15660 if (!args) SWIG_fail;
15661 swig_obj[0] = args;
15662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15663 if (!SWIG_IsOK(res1)) {
15664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15665 }
15666 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15667 {
15668 PyThreadState* __tstate = wxPyBeginAllowThreads();
15669 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15670 wxPyEndAllowThreads(__tstate);
15671 if (PyErr_Occurred()) SWIG_fail;
15672 }
15673 resultobj = SWIG_From_int(static_cast< int >(result));
15674 return resultobj;
15675 fail:
15676 return NULL;
15677 }
15678
15679
15680 SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15681 PyObject *resultobj = 0;
15682 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15683 int arg2 ;
15684 void *argp1 = 0 ;
15685 int res1 = 0 ;
15686 int val2 ;
15687 int ecode2 = 0 ;
15688 PyObject * obj0 = 0 ;
15689 PyObject * obj1 = 0 ;
15690 char * kwnames[] = {
15691 (char *) "self",(char *) "pos", NULL
15692 };
15693
15694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15696 if (!SWIG_IsOK(res1)) {
15697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15698 }
15699 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15700 ecode2 = SWIG_AsVal_int(obj1, &val2);
15701 if (!SWIG_IsOK(ecode2)) {
15702 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15703 }
15704 arg2 = static_cast< int >(val2);
15705 {
15706 PyThreadState* __tstate = wxPyBeginAllowThreads();
15707 (arg1)->SetPosition(arg2);
15708 wxPyEndAllowThreads(__tstate);
15709 if (PyErr_Occurred()) SWIG_fail;
15710 }
15711 resultobj = SWIG_Py_Void();
15712 return resultobj;
15713 fail:
15714 return NULL;
15715 }
15716
15717
15718 SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15719 PyObject *obj;
15720 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15721 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15722 return SWIG_Py_Void();
15723 }
15724
15725 SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15726 return SWIG_Python_InitShadowInstance(args);
15727 }
15728
15729 SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15730 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15731 return 1;
15732 }
15733
15734
15735 SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15736 PyObject *pyobj = 0;
15737
15738 {
15739 #if wxUSE_UNICODE
15740 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15741 #else
15742 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15743 #endif
15744 }
15745 return pyobj;
15746 }
15747
15748
15749 SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15750 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15751 return 1;
15752 }
15753
15754
15755 SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15756 PyObject *pyobj = 0;
15757
15758 {
15759 #if wxUSE_UNICODE
15760 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15761 #else
15762 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15763 #endif
15764 }
15765 return pyobj;
15766 }
15767
15768
15769 SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15770 PyObject *resultobj = 0;
15771 wxWindow *arg1 = (wxWindow *) 0 ;
15772 int arg2 = (int) -1 ;
15773 wxString const &arg3_defvalue = wxPyEmptyString ;
15774 wxString *arg3 = (wxString *) &arg3_defvalue ;
15775 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15776 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15777 wxSize const &arg5_defvalue = wxDefaultSize ;
15778 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15779 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
15780 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
15781 int arg7 = (int) 0 ;
15782 long arg8 = (long) wxRA_HORIZONTAL ;
15783 wxValidator const &arg9_defvalue = wxDefaultValidator ;
15784 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
15785 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
15786 wxString *arg10 = (wxString *) &arg10_defvalue ;
15787 wxRadioBox *result = 0 ;
15788 void *argp1 = 0 ;
15789 int res1 = 0 ;
15790 int val2 ;
15791 int ecode2 = 0 ;
15792 bool temp3 = false ;
15793 wxPoint temp4 ;
15794 wxSize temp5 ;
15795 bool temp6 = false ;
15796 int val7 ;
15797 int ecode7 = 0 ;
15798 long val8 ;
15799 int ecode8 = 0 ;
15800 void *argp9 = 0 ;
15801 int res9 = 0 ;
15802 bool temp10 = false ;
15803 PyObject * obj0 = 0 ;
15804 PyObject * obj1 = 0 ;
15805 PyObject * obj2 = 0 ;
15806 PyObject * obj3 = 0 ;
15807 PyObject * obj4 = 0 ;
15808 PyObject * obj5 = 0 ;
15809 PyObject * obj6 = 0 ;
15810 PyObject * obj7 = 0 ;
15811 PyObject * obj8 = 0 ;
15812 PyObject * obj9 = 0 ;
15813 char * kwnames[] = {
15814 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
15815 };
15816
15817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15819 if (!SWIG_IsOK(res1)) {
15820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
15821 }
15822 arg1 = reinterpret_cast< wxWindow * >(argp1);
15823 if (obj1) {
15824 ecode2 = SWIG_AsVal_int(obj1, &val2);
15825 if (!SWIG_IsOK(ecode2)) {
15826 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
15827 }
15828 arg2 = static_cast< int >(val2);
15829 }
15830 if (obj2) {
15831 {
15832 arg3 = wxString_in_helper(obj2);
15833 if (arg3 == NULL) SWIG_fail;
15834 temp3 = true;
15835 }
15836 }
15837 if (obj3) {
15838 {
15839 arg4 = &temp4;
15840 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15841 }
15842 }
15843 if (obj4) {
15844 {
15845 arg5 = &temp5;
15846 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15847 }
15848 }
15849 if (obj5) {
15850 {
15851 if (! PySequence_Check(obj5)) {
15852 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
15853 SWIG_fail;
15854 }
15855 arg6 = new wxArrayString;
15856 temp6 = true;
15857 int i, len=PySequence_Length(obj5);
15858 for (i=0; i<len; i++) {
15859 PyObject* item = PySequence_GetItem(obj5, i);
15860 wxString* s = wxString_in_helper(item);
15861 if (PyErr_Occurred()) SWIG_fail;
15862 arg6->Add(*s);
15863 delete s;
15864 Py_DECREF(item);
15865 }
15866 }
15867 }
15868 if (obj6) {
15869 ecode7 = SWIG_AsVal_int(obj6, &val7);
15870 if (!SWIG_IsOK(ecode7)) {
15871 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
15872 }
15873 arg7 = static_cast< int >(val7);
15874 }
15875 if (obj7) {
15876 ecode8 = SWIG_AsVal_long(obj7, &val8);
15877 if (!SWIG_IsOK(ecode8)) {
15878 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
15879 }
15880 arg8 = static_cast< long >(val8);
15881 }
15882 if (obj8) {
15883 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
15884 if (!SWIG_IsOK(res9)) {
15885 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
15886 }
15887 if (!argp9) {
15888 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
15889 }
15890 arg9 = reinterpret_cast< wxValidator * >(argp9);
15891 }
15892 if (obj9) {
15893 {
15894 arg10 = wxString_in_helper(obj9);
15895 if (arg10 == NULL) SWIG_fail;
15896 temp10 = true;
15897 }
15898 }
15899 {
15900 if (!wxPyCheckForApp()) SWIG_fail;
15901 PyThreadState* __tstate = wxPyBeginAllowThreads();
15902 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);
15903 wxPyEndAllowThreads(__tstate);
15904 if (PyErr_Occurred()) SWIG_fail;
15905 }
15906 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
15907 {
15908 if (temp3)
15909 delete arg3;
15910 }
15911 {
15912 if (temp6) delete arg6;
15913 }
15914 {
15915 if (temp10)
15916 delete arg10;
15917 }
15918 return resultobj;
15919 fail:
15920 {
15921 if (temp3)
15922 delete arg3;
15923 }
15924 {
15925 if (temp6) delete arg6;
15926 }
15927 {
15928 if (temp10)
15929 delete arg10;
15930 }
15931 return NULL;
15932 }
15933
15934
15935 SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15936 PyObject *resultobj = 0;
15937 wxRadioBox *result = 0 ;
15938
15939 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
15940 {
15941 if (!wxPyCheckForApp()) SWIG_fail;
15942 PyThreadState* __tstate = wxPyBeginAllowThreads();
15943 result = (wxRadioBox *)new wxRadioBox();
15944 wxPyEndAllowThreads(__tstate);
15945 if (PyErr_Occurred()) SWIG_fail;
15946 }
15947 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
15948 return resultobj;
15949 fail:
15950 return NULL;
15951 }
15952
15953
15954 SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15955 PyObject *resultobj = 0;
15956 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
15957 wxWindow *arg2 = (wxWindow *) 0 ;
15958 int arg3 = (int) -1 ;
15959 wxString const &arg4_defvalue = wxPyEmptyString ;
15960 wxString *arg4 = (wxString *) &arg4_defvalue ;
15961 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15962 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15963 wxSize const &arg6_defvalue = wxDefaultSize ;
15964 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15965 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
15966 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
15967 int arg8 = (int) 0 ;
15968 long arg9 = (long) wxRA_HORIZONTAL ;
15969 wxValidator const &arg10_defvalue = wxDefaultValidator ;
15970 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
15971 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
15972 wxString *arg11 = (wxString *) &arg11_defvalue ;
15973 bool result;
15974 void *argp1 = 0 ;
15975 int res1 = 0 ;
15976 void *argp2 = 0 ;
15977 int res2 = 0 ;
15978 int val3 ;
15979 int ecode3 = 0 ;
15980 bool temp4 = false ;
15981 wxPoint temp5 ;
15982 wxSize temp6 ;
15983 bool temp7 = false ;
15984 int val8 ;
15985 int ecode8 = 0 ;
15986 long val9 ;
15987 int ecode9 = 0 ;
15988 void *argp10 = 0 ;
15989 int res10 = 0 ;
15990 bool temp11 = false ;
15991 PyObject * obj0 = 0 ;
15992 PyObject * obj1 = 0 ;
15993 PyObject * obj2 = 0 ;
15994 PyObject * obj3 = 0 ;
15995 PyObject * obj4 = 0 ;
15996 PyObject * obj5 = 0 ;
15997 PyObject * obj6 = 0 ;
15998 PyObject * obj7 = 0 ;
15999 PyObject * obj8 = 0 ;
16000 PyObject * obj9 = 0 ;
16001 PyObject * obj10 = 0 ;
16002 char * kwnames[] = {
16003 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16004 };
16005
16006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16008 if (!SWIG_IsOK(res1)) {
16009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16010 }
16011 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16012 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16013 if (!SWIG_IsOK(res2)) {
16014 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16015 }
16016 arg2 = reinterpret_cast< wxWindow * >(argp2);
16017 if (obj2) {
16018 ecode3 = SWIG_AsVal_int(obj2, &val3);
16019 if (!SWIG_IsOK(ecode3)) {
16020 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16021 }
16022 arg3 = static_cast< int >(val3);
16023 }
16024 if (obj3) {
16025 {
16026 arg4 = wxString_in_helper(obj3);
16027 if (arg4 == NULL) SWIG_fail;
16028 temp4 = true;
16029 }
16030 }
16031 if (obj4) {
16032 {
16033 arg5 = &temp5;
16034 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16035 }
16036 }
16037 if (obj5) {
16038 {
16039 arg6 = &temp6;
16040 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
16041 }
16042 }
16043 if (obj6) {
16044 {
16045 if (! PySequence_Check(obj6)) {
16046 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16047 SWIG_fail;
16048 }
16049 arg7 = new wxArrayString;
16050 temp7 = true;
16051 int i, len=PySequence_Length(obj6);
16052 for (i=0; i<len; i++) {
16053 PyObject* item = PySequence_GetItem(obj6, i);
16054 wxString* s = wxString_in_helper(item);
16055 if (PyErr_Occurred()) SWIG_fail;
16056 arg7->Add(*s);
16057 delete s;
16058 Py_DECREF(item);
16059 }
16060 }
16061 }
16062 if (obj7) {
16063 ecode8 = SWIG_AsVal_int(obj7, &val8);
16064 if (!SWIG_IsOK(ecode8)) {
16065 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16066 }
16067 arg8 = static_cast< int >(val8);
16068 }
16069 if (obj8) {
16070 ecode9 = SWIG_AsVal_long(obj8, &val9);
16071 if (!SWIG_IsOK(ecode9)) {
16072 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16073 }
16074 arg9 = static_cast< long >(val9);
16075 }
16076 if (obj9) {
16077 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16078 if (!SWIG_IsOK(res10)) {
16079 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16080 }
16081 if (!argp10) {
16082 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16083 }
16084 arg10 = reinterpret_cast< wxValidator * >(argp10);
16085 }
16086 if (obj10) {
16087 {
16088 arg11 = wxString_in_helper(obj10);
16089 if (arg11 == NULL) SWIG_fail;
16090 temp11 = true;
16091 }
16092 }
16093 {
16094 PyThreadState* __tstate = wxPyBeginAllowThreads();
16095 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);
16096 wxPyEndAllowThreads(__tstate);
16097 if (PyErr_Occurred()) SWIG_fail;
16098 }
16099 {
16100 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16101 }
16102 {
16103 if (temp4)
16104 delete arg4;
16105 }
16106 {
16107 if (temp7) delete arg7;
16108 }
16109 {
16110 if (temp11)
16111 delete arg11;
16112 }
16113 return resultobj;
16114 fail:
16115 {
16116 if (temp4)
16117 delete arg4;
16118 }
16119 {
16120 if (temp7) delete arg7;
16121 }
16122 {
16123 if (temp11)
16124 delete arg11;
16125 }
16126 return NULL;
16127 }
16128
16129
16130 SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16131 PyObject *resultobj = 0;
16132 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16133 int arg2 ;
16134 void *argp1 = 0 ;
16135 int res1 = 0 ;
16136 int val2 ;
16137 int ecode2 = 0 ;
16138 PyObject * obj0 = 0 ;
16139 PyObject * obj1 = 0 ;
16140 char * kwnames[] = {
16141 (char *) "self",(char *) "n", NULL
16142 };
16143
16144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16146 if (!SWIG_IsOK(res1)) {
16147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16148 }
16149 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16150 ecode2 = SWIG_AsVal_int(obj1, &val2);
16151 if (!SWIG_IsOK(ecode2)) {
16152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16153 }
16154 arg2 = static_cast< int >(val2);
16155 {
16156 PyThreadState* __tstate = wxPyBeginAllowThreads();
16157 (arg1)->SetSelection(arg2);
16158 wxPyEndAllowThreads(__tstate);
16159 if (PyErr_Occurred()) SWIG_fail;
16160 }
16161 resultobj = SWIG_Py_Void();
16162 return resultobj;
16163 fail:
16164 return NULL;
16165 }
16166
16167
16168 SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16169 PyObject *resultobj = 0;
16170 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16171 int result;
16172 void *argp1 = 0 ;
16173 int res1 = 0 ;
16174 PyObject *swig_obj[1] ;
16175
16176 if (!args) SWIG_fail;
16177 swig_obj[0] = args;
16178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16179 if (!SWIG_IsOK(res1)) {
16180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16181 }
16182 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16183 {
16184 PyThreadState* __tstate = wxPyBeginAllowThreads();
16185 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16186 wxPyEndAllowThreads(__tstate);
16187 if (PyErr_Occurred()) SWIG_fail;
16188 }
16189 resultobj = SWIG_From_int(static_cast< int >(result));
16190 return resultobj;
16191 fail:
16192 return NULL;
16193 }
16194
16195
16196 SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16197 PyObject *resultobj = 0;
16198 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16199 wxString result;
16200 void *argp1 = 0 ;
16201 int res1 = 0 ;
16202 PyObject *swig_obj[1] ;
16203
16204 if (!args) SWIG_fail;
16205 swig_obj[0] = args;
16206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16207 if (!SWIG_IsOK(res1)) {
16208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16209 }
16210 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16211 {
16212 PyThreadState* __tstate = wxPyBeginAllowThreads();
16213 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16214 wxPyEndAllowThreads(__tstate);
16215 if (PyErr_Occurred()) SWIG_fail;
16216 }
16217 {
16218 #if wxUSE_UNICODE
16219 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16220 #else
16221 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16222 #endif
16223 }
16224 return resultobj;
16225 fail:
16226 return NULL;
16227 }
16228
16229
16230 SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16231 PyObject *resultobj = 0;
16232 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16233 wxString *arg2 = 0 ;
16234 bool result;
16235 void *argp1 = 0 ;
16236 int res1 = 0 ;
16237 bool temp2 = false ;
16238 PyObject * obj0 = 0 ;
16239 PyObject * obj1 = 0 ;
16240 char * kwnames[] = {
16241 (char *) "self",(char *) "s", NULL
16242 };
16243
16244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16246 if (!SWIG_IsOK(res1)) {
16247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16248 }
16249 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16250 {
16251 arg2 = wxString_in_helper(obj1);
16252 if (arg2 == NULL) SWIG_fail;
16253 temp2 = true;
16254 }
16255 {
16256 PyThreadState* __tstate = wxPyBeginAllowThreads();
16257 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16258 wxPyEndAllowThreads(__tstate);
16259 if (PyErr_Occurred()) SWIG_fail;
16260 }
16261 {
16262 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16263 }
16264 {
16265 if (temp2)
16266 delete arg2;
16267 }
16268 return resultobj;
16269 fail:
16270 {
16271 if (temp2)
16272 delete arg2;
16273 }
16274 return NULL;
16275 }
16276
16277
16278 SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16279 PyObject *resultobj = 0;
16280 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16281 size_t result;
16282 void *argp1 = 0 ;
16283 int res1 = 0 ;
16284 PyObject *swig_obj[1] ;
16285
16286 if (!args) SWIG_fail;
16287 swig_obj[0] = args;
16288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16289 if (!SWIG_IsOK(res1)) {
16290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16291 }
16292 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16293 {
16294 PyThreadState* __tstate = wxPyBeginAllowThreads();
16295 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
16296 wxPyEndAllowThreads(__tstate);
16297 if (PyErr_Occurred()) SWIG_fail;
16298 }
16299 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
16300 return resultobj;
16301 fail:
16302 return NULL;
16303 }
16304
16305
16306 SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16307 PyObject *resultobj = 0;
16308 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16309 wxString *arg2 = 0 ;
16310 int result;
16311 void *argp1 = 0 ;
16312 int res1 = 0 ;
16313 bool temp2 = false ;
16314 PyObject * obj0 = 0 ;
16315 PyObject * obj1 = 0 ;
16316 char * kwnames[] = {
16317 (char *) "self",(char *) "s", NULL
16318 };
16319
16320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16322 if (!SWIG_IsOK(res1)) {
16323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16324 }
16325 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16326 {
16327 arg2 = wxString_in_helper(obj1);
16328 if (arg2 == NULL) SWIG_fail;
16329 temp2 = true;
16330 }
16331 {
16332 PyThreadState* __tstate = wxPyBeginAllowThreads();
16333 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16334 wxPyEndAllowThreads(__tstate);
16335 if (PyErr_Occurred()) SWIG_fail;
16336 }
16337 resultobj = SWIG_From_int(static_cast< int >(result));
16338 {
16339 if (temp2)
16340 delete arg2;
16341 }
16342 return resultobj;
16343 fail:
16344 {
16345 if (temp2)
16346 delete arg2;
16347 }
16348 return NULL;
16349 }
16350
16351
16352 SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16353 PyObject *resultobj = 0;
16354 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16355 int arg2 ;
16356 wxString result;
16357 void *argp1 = 0 ;
16358 int res1 = 0 ;
16359 int val2 ;
16360 int ecode2 = 0 ;
16361 PyObject * obj0 = 0 ;
16362 PyObject * obj1 = 0 ;
16363 char * kwnames[] = {
16364 (char *) "self",(char *) "n", NULL
16365 };
16366
16367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16369 if (!SWIG_IsOK(res1)) {
16370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16371 }
16372 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16373 ecode2 = SWIG_AsVal_int(obj1, &val2);
16374 if (!SWIG_IsOK(ecode2)) {
16375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16376 }
16377 arg2 = static_cast< int >(val2);
16378 {
16379 PyThreadState* __tstate = wxPyBeginAllowThreads();
16380 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16381 wxPyEndAllowThreads(__tstate);
16382 if (PyErr_Occurred()) SWIG_fail;
16383 }
16384 {
16385 #if wxUSE_UNICODE
16386 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16387 #else
16388 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16389 #endif
16390 }
16391 return resultobj;
16392 fail:
16393 return NULL;
16394 }
16395
16396
16397 SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16398 PyObject *resultobj = 0;
16399 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16400 int arg2 ;
16401 wxString *arg3 = 0 ;
16402 void *argp1 = 0 ;
16403 int res1 = 0 ;
16404 int val2 ;
16405 int ecode2 = 0 ;
16406 bool temp3 = false ;
16407 PyObject * obj0 = 0 ;
16408 PyObject * obj1 = 0 ;
16409 PyObject * obj2 = 0 ;
16410 char * kwnames[] = {
16411 (char *) "self",(char *) "n",(char *) "label", NULL
16412 };
16413
16414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16416 if (!SWIG_IsOK(res1)) {
16417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16418 }
16419 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16420 ecode2 = SWIG_AsVal_int(obj1, &val2);
16421 if (!SWIG_IsOK(ecode2)) {
16422 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16423 }
16424 arg2 = static_cast< int >(val2);
16425 {
16426 arg3 = wxString_in_helper(obj2);
16427 if (arg3 == NULL) SWIG_fail;
16428 temp3 = true;
16429 }
16430 {
16431 PyThreadState* __tstate = wxPyBeginAllowThreads();
16432 (arg1)->SetString(arg2,(wxString const &)*arg3);
16433 wxPyEndAllowThreads(__tstate);
16434 if (PyErr_Occurred()) SWIG_fail;
16435 }
16436 resultobj = SWIG_Py_Void();
16437 {
16438 if (temp3)
16439 delete arg3;
16440 }
16441 return resultobj;
16442 fail:
16443 {
16444 if (temp3)
16445 delete arg3;
16446 }
16447 return NULL;
16448 }
16449
16450
16451 SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16452 PyObject *resultobj = 0;
16453 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16454 unsigned int arg2 ;
16455 bool arg3 = (bool) true ;
16456 void *argp1 = 0 ;
16457 int res1 = 0 ;
16458 unsigned int val2 ;
16459 int ecode2 = 0 ;
16460 bool val3 ;
16461 int ecode3 = 0 ;
16462 PyObject * obj0 = 0 ;
16463 PyObject * obj1 = 0 ;
16464 PyObject * obj2 = 0 ;
16465 char * kwnames[] = {
16466 (char *) "self",(char *) "n",(char *) "enable", NULL
16467 };
16468
16469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16471 if (!SWIG_IsOK(res1)) {
16472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16473 }
16474 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16475 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16476 if (!SWIG_IsOK(ecode2)) {
16477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
16478 }
16479 arg2 = static_cast< unsigned int >(val2);
16480 if (obj2) {
16481 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16482 if (!SWIG_IsOK(ecode3)) {
16483 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16484 }
16485 arg3 = static_cast< bool >(val3);
16486 }
16487 {
16488 PyThreadState* __tstate = wxPyBeginAllowThreads();
16489 (arg1)->Enable(arg2,arg3);
16490 wxPyEndAllowThreads(__tstate);
16491 if (PyErr_Occurred()) SWIG_fail;
16492 }
16493 resultobj = SWIG_Py_Void();
16494 return resultobj;
16495 fail:
16496 return NULL;
16497 }
16498
16499
16500 SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16501 PyObject *resultobj = 0;
16502 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16503 unsigned int arg2 ;
16504 bool arg3 = (bool) true ;
16505 void *argp1 = 0 ;
16506 int res1 = 0 ;
16507 unsigned int val2 ;
16508 int ecode2 = 0 ;
16509 bool val3 ;
16510 int ecode3 = 0 ;
16511 PyObject * obj0 = 0 ;
16512 PyObject * obj1 = 0 ;
16513 PyObject * obj2 = 0 ;
16514 char * kwnames[] = {
16515 (char *) "self",(char *) "n",(char *) "show", NULL
16516 };
16517
16518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16520 if (!SWIG_IsOK(res1)) {
16521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16522 }
16523 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16524 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16525 if (!SWIG_IsOK(ecode2)) {
16526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
16527 }
16528 arg2 = static_cast< unsigned int >(val2);
16529 if (obj2) {
16530 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16531 if (!SWIG_IsOK(ecode3)) {
16532 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16533 }
16534 arg3 = static_cast< bool >(val3);
16535 }
16536 {
16537 PyThreadState* __tstate = wxPyBeginAllowThreads();
16538 (arg1)->Show(arg2,arg3);
16539 wxPyEndAllowThreads(__tstate);
16540 if (PyErr_Occurred()) SWIG_fail;
16541 }
16542 resultobj = SWIG_Py_Void();
16543 return resultobj;
16544 fail:
16545 return NULL;
16546 }
16547
16548
16549 SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16550 PyObject *resultobj = 0;
16551 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16552 unsigned int arg2 ;
16553 bool result;
16554 void *argp1 = 0 ;
16555 int res1 = 0 ;
16556 unsigned int val2 ;
16557 int ecode2 = 0 ;
16558 PyObject * obj0 = 0 ;
16559 PyObject * obj1 = 0 ;
16560 char * kwnames[] = {
16561 (char *) "self",(char *) "n", NULL
16562 };
16563
16564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16566 if (!SWIG_IsOK(res1)) {
16567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16568 }
16569 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16570 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16571 if (!SWIG_IsOK(ecode2)) {
16572 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16573 }
16574 arg2 = static_cast< unsigned int >(val2);
16575 {
16576 PyThreadState* __tstate = wxPyBeginAllowThreads();
16577 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16578 wxPyEndAllowThreads(__tstate);
16579 if (PyErr_Occurred()) SWIG_fail;
16580 }
16581 {
16582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16583 }
16584 return resultobj;
16585 fail:
16586 return NULL;
16587 }
16588
16589
16590 SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16591 PyObject *resultobj = 0;
16592 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16593 unsigned int arg2 ;
16594 bool result;
16595 void *argp1 = 0 ;
16596 int res1 = 0 ;
16597 unsigned int val2 ;
16598 int ecode2 = 0 ;
16599 PyObject * obj0 = 0 ;
16600 PyObject * obj1 = 0 ;
16601 char * kwnames[] = {
16602 (char *) "self",(char *) "n", NULL
16603 };
16604
16605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16607 if (!SWIG_IsOK(res1)) {
16608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16609 }
16610 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16611 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16612 if (!SWIG_IsOK(ecode2)) {
16613 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16614 }
16615 arg2 = static_cast< unsigned int >(val2);
16616 {
16617 PyThreadState* __tstate = wxPyBeginAllowThreads();
16618 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16619 wxPyEndAllowThreads(__tstate);
16620 if (PyErr_Occurred()) SWIG_fail;
16621 }
16622 {
16623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16624 }
16625 return resultobj;
16626 fail:
16627 return NULL;
16628 }
16629
16630
16631 SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16632 PyObject *resultobj = 0;
16633 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16634 unsigned int result;
16635 void *argp1 = 0 ;
16636 int res1 = 0 ;
16637 PyObject *swig_obj[1] ;
16638
16639 if (!args) SWIG_fail;
16640 swig_obj[0] = args;
16641 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16642 if (!SWIG_IsOK(res1)) {
16643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16644 }
16645 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16646 {
16647 PyThreadState* __tstate = wxPyBeginAllowThreads();
16648 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
16649 wxPyEndAllowThreads(__tstate);
16650 if (PyErr_Occurred()) SWIG_fail;
16651 }
16652 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16653 return resultobj;
16654 fail:
16655 return NULL;
16656 }
16657
16658
16659 SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16660 PyObject *resultobj = 0;
16661 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16662 unsigned int result;
16663 void *argp1 = 0 ;
16664 int res1 = 0 ;
16665 PyObject *swig_obj[1] ;
16666
16667 if (!args) SWIG_fail;
16668 swig_obj[0] = args;
16669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16670 if (!SWIG_IsOK(res1)) {
16671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16672 }
16673 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16674 {
16675 PyThreadState* __tstate = wxPyBeginAllowThreads();
16676 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
16677 wxPyEndAllowThreads(__tstate);
16678 if (PyErr_Occurred()) SWIG_fail;
16679 }
16680 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16681 return resultobj;
16682 fail:
16683 return NULL;
16684 }
16685
16686
16687 SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16688 PyObject *resultobj = 0;
16689 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16690 int arg2 ;
16691 wxDirection arg3 ;
16692 long arg4 ;
16693 int result;
16694 void *argp1 = 0 ;
16695 int res1 = 0 ;
16696 int val2 ;
16697 int ecode2 = 0 ;
16698 int val3 ;
16699 int ecode3 = 0 ;
16700 long val4 ;
16701 int ecode4 = 0 ;
16702 PyObject * obj0 = 0 ;
16703 PyObject * obj1 = 0 ;
16704 PyObject * obj2 = 0 ;
16705 PyObject * obj3 = 0 ;
16706 char * kwnames[] = {
16707 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16708 };
16709
16710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16712 if (!SWIG_IsOK(res1)) {
16713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16714 }
16715 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16716 ecode2 = SWIG_AsVal_int(obj1, &val2);
16717 if (!SWIG_IsOK(ecode2)) {
16718 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16719 }
16720 arg2 = static_cast< int >(val2);
16721 ecode3 = SWIG_AsVal_int(obj2, &val3);
16722 if (!SWIG_IsOK(ecode3)) {
16723 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16724 }
16725 arg3 = static_cast< wxDirection >(val3);
16726 ecode4 = SWIG_AsVal_long(obj3, &val4);
16727 if (!SWIG_IsOK(ecode4)) {
16728 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16729 }
16730 arg4 = static_cast< long >(val4);
16731 {
16732 PyThreadState* __tstate = wxPyBeginAllowThreads();
16733 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
16734 wxPyEndAllowThreads(__tstate);
16735 if (PyErr_Occurred()) SWIG_fail;
16736 }
16737 resultobj = SWIG_From_int(static_cast< int >(result));
16738 return resultobj;
16739 fail:
16740 return NULL;
16741 }
16742
16743
16744 SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16745 PyObject *resultobj = 0;
16746 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16747 unsigned int arg2 ;
16748 wxString *arg3 = 0 ;
16749 void *argp1 = 0 ;
16750 int res1 = 0 ;
16751 unsigned int val2 ;
16752 int ecode2 = 0 ;
16753 bool temp3 = false ;
16754 PyObject * obj0 = 0 ;
16755 PyObject * obj1 = 0 ;
16756 PyObject * obj2 = 0 ;
16757 char * kwnames[] = {
16758 (char *) "self",(char *) "item",(char *) "text", NULL
16759 };
16760
16761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16763 if (!SWIG_IsOK(res1)) {
16764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16765 }
16766 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16767 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16768 if (!SWIG_IsOK(ecode2)) {
16769 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16770 }
16771 arg2 = static_cast< unsigned int >(val2);
16772 {
16773 arg3 = wxString_in_helper(obj2);
16774 if (arg3 == NULL) SWIG_fail;
16775 temp3 = true;
16776 }
16777 {
16778 PyThreadState* __tstate = wxPyBeginAllowThreads();
16779 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
16780 wxPyEndAllowThreads(__tstate);
16781 if (PyErr_Occurred()) SWIG_fail;
16782 }
16783 resultobj = SWIG_Py_Void();
16784 {
16785 if (temp3)
16786 delete arg3;
16787 }
16788 return resultobj;
16789 fail:
16790 {
16791 if (temp3)
16792 delete arg3;
16793 }
16794 return NULL;
16795 }
16796
16797
16798 SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16799 PyObject *resultobj = 0;
16800 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16801 unsigned int arg2 ;
16802 wxToolTip *result = 0 ;
16803 void *argp1 = 0 ;
16804 int res1 = 0 ;
16805 unsigned int val2 ;
16806 int ecode2 = 0 ;
16807 PyObject * obj0 = 0 ;
16808 PyObject * obj1 = 0 ;
16809 char * kwnames[] = {
16810 (char *) "self",(char *) "item", NULL
16811 };
16812
16813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
16814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16815 if (!SWIG_IsOK(res1)) {
16816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16817 }
16818 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16819 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16820 if (!SWIG_IsOK(ecode2)) {
16821 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16822 }
16823 arg2 = static_cast< unsigned int >(val2);
16824 {
16825 PyThreadState* __tstate = wxPyBeginAllowThreads();
16826 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
16827 wxPyEndAllowThreads(__tstate);
16828 if (PyErr_Occurred()) SWIG_fail;
16829 }
16830 {
16831 resultobj = wxPyMake_wxObject(result, (bool)0);
16832 }
16833 return resultobj;
16834 fail:
16835 return NULL;
16836 }
16837
16838
16839 SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16840 PyObject *resultobj = 0;
16841 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
16842 SwigValueWrapper<wxVisualAttributes > result;
16843 int val1 ;
16844 int ecode1 = 0 ;
16845 PyObject * obj0 = 0 ;
16846 char * kwnames[] = {
16847 (char *) "variant", NULL
16848 };
16849
16850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
16851 if (obj0) {
16852 ecode1 = SWIG_AsVal_int(obj0, &val1);
16853 if (!SWIG_IsOK(ecode1)) {
16854 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
16855 }
16856 arg1 = static_cast< wxWindowVariant >(val1);
16857 }
16858 {
16859 if (!wxPyCheckForApp()) SWIG_fail;
16860 PyThreadState* __tstate = wxPyBeginAllowThreads();
16861 result = wxRadioBox::GetClassDefaultAttributes(arg1);
16862 wxPyEndAllowThreads(__tstate);
16863 if (PyErr_Occurred()) SWIG_fail;
16864 }
16865 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
16866 return resultobj;
16867 fail:
16868 return NULL;
16869 }
16870
16871
16872 SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16873 PyObject *obj;
16874 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16875 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
16876 return SWIG_Py_Void();
16877 }
16878
16879 SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16880 return SWIG_Python_InitShadowInstance(args);
16881 }
16882
16883 SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16884 PyObject *resultobj = 0;
16885 wxWindow *arg1 = (wxWindow *) 0 ;
16886 int arg2 = (int) -1 ;
16887 wxString const &arg3_defvalue = wxPyEmptyString ;
16888 wxString *arg3 = (wxString *) &arg3_defvalue ;
16889 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16890 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16891 wxSize const &arg5_defvalue = wxDefaultSize ;
16892 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16893 long arg6 = (long) 0 ;
16894 wxValidator const &arg7_defvalue = wxDefaultValidator ;
16895 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
16896 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
16897 wxString *arg8 = (wxString *) &arg8_defvalue ;
16898 wxRadioButton *result = 0 ;
16899 void *argp1 = 0 ;
16900 int res1 = 0 ;
16901 int val2 ;
16902 int ecode2 = 0 ;
16903 bool temp3 = false ;
16904 wxPoint temp4 ;
16905 wxSize temp5 ;
16906 long val6 ;
16907 int ecode6 = 0 ;
16908 void *argp7 = 0 ;
16909 int res7 = 0 ;
16910 bool temp8 = false ;
16911 PyObject * obj0 = 0 ;
16912 PyObject * obj1 = 0 ;
16913 PyObject * obj2 = 0 ;
16914 PyObject * obj3 = 0 ;
16915 PyObject * obj4 = 0 ;
16916 PyObject * obj5 = 0 ;
16917 PyObject * obj6 = 0 ;
16918 PyObject * obj7 = 0 ;
16919 char * kwnames[] = {
16920 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
16921 };
16922
16923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
16924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16925 if (!SWIG_IsOK(res1)) {
16926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
16927 }
16928 arg1 = reinterpret_cast< wxWindow * >(argp1);
16929 if (obj1) {
16930 ecode2 = SWIG_AsVal_int(obj1, &val2);
16931 if (!SWIG_IsOK(ecode2)) {
16932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
16933 }
16934 arg2 = static_cast< int >(val2);
16935 }
16936 if (obj2) {
16937 {
16938 arg3 = wxString_in_helper(obj2);
16939 if (arg3 == NULL) SWIG_fail;
16940 temp3 = true;
16941 }
16942 }
16943 if (obj3) {
16944 {
16945 arg4 = &temp4;
16946 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
16947 }
16948 }
16949 if (obj4) {
16950 {
16951 arg5 = &temp5;
16952 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
16953 }
16954 }
16955 if (obj5) {
16956 ecode6 = SWIG_AsVal_long(obj5, &val6);
16957 if (!SWIG_IsOK(ecode6)) {
16958 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
16959 }
16960 arg6 = static_cast< long >(val6);
16961 }
16962 if (obj6) {
16963 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
16964 if (!SWIG_IsOK(res7)) {
16965 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
16966 }
16967 if (!argp7) {
16968 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
16969 }
16970 arg7 = reinterpret_cast< wxValidator * >(argp7);
16971 }
16972 if (obj7) {
16973 {
16974 arg8 = wxString_in_helper(obj7);
16975 if (arg8 == NULL) SWIG_fail;
16976 temp8 = true;
16977 }
16978 }
16979 {
16980 if (!wxPyCheckForApp()) SWIG_fail;
16981 PyThreadState* __tstate = wxPyBeginAllowThreads();
16982 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
16983 wxPyEndAllowThreads(__tstate);
16984 if (PyErr_Occurred()) SWIG_fail;
16985 }
16986 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
16987 {
16988 if (temp3)
16989 delete arg3;
16990 }
16991 {
16992 if (temp8)
16993 delete arg8;
16994 }
16995 return resultobj;
16996 fail:
16997 {
16998 if (temp3)
16999 delete arg3;
17000 }
17001 {
17002 if (temp8)
17003 delete arg8;
17004 }
17005 return NULL;
17006 }
17007
17008
17009 SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17010 PyObject *resultobj = 0;
17011 wxRadioButton *result = 0 ;
17012
17013 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17014 {
17015 if (!wxPyCheckForApp()) SWIG_fail;
17016 PyThreadState* __tstate = wxPyBeginAllowThreads();
17017 result = (wxRadioButton *)new wxRadioButton();
17018 wxPyEndAllowThreads(__tstate);
17019 if (PyErr_Occurred()) SWIG_fail;
17020 }
17021 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17022 return resultobj;
17023 fail:
17024 return NULL;
17025 }
17026
17027
17028 SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17029 PyObject *resultobj = 0;
17030 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17031 wxWindow *arg2 = (wxWindow *) 0 ;
17032 int arg3 = (int) -1 ;
17033 wxString const &arg4_defvalue = wxPyEmptyString ;
17034 wxString *arg4 = (wxString *) &arg4_defvalue ;
17035 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17036 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17037 wxSize const &arg6_defvalue = wxDefaultSize ;
17038 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17039 long arg7 = (long) 0 ;
17040 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17041 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17042 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17043 wxString *arg9 = (wxString *) &arg9_defvalue ;
17044 bool result;
17045 void *argp1 = 0 ;
17046 int res1 = 0 ;
17047 void *argp2 = 0 ;
17048 int res2 = 0 ;
17049 int val3 ;
17050 int ecode3 = 0 ;
17051 bool temp4 = false ;
17052 wxPoint temp5 ;
17053 wxSize temp6 ;
17054 long val7 ;
17055 int ecode7 = 0 ;
17056 void *argp8 = 0 ;
17057 int res8 = 0 ;
17058 bool temp9 = false ;
17059 PyObject * obj0 = 0 ;
17060 PyObject * obj1 = 0 ;
17061 PyObject * obj2 = 0 ;
17062 PyObject * obj3 = 0 ;
17063 PyObject * obj4 = 0 ;
17064 PyObject * obj5 = 0 ;
17065 PyObject * obj6 = 0 ;
17066 PyObject * obj7 = 0 ;
17067 PyObject * obj8 = 0 ;
17068 char * kwnames[] = {
17069 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17070 };
17071
17072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17074 if (!SWIG_IsOK(res1)) {
17075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17076 }
17077 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17078 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17079 if (!SWIG_IsOK(res2)) {
17080 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17081 }
17082 arg2 = reinterpret_cast< wxWindow * >(argp2);
17083 if (obj2) {
17084 ecode3 = SWIG_AsVal_int(obj2, &val3);
17085 if (!SWIG_IsOK(ecode3)) {
17086 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17087 }
17088 arg3 = static_cast< int >(val3);
17089 }
17090 if (obj3) {
17091 {
17092 arg4 = wxString_in_helper(obj3);
17093 if (arg4 == NULL) SWIG_fail;
17094 temp4 = true;
17095 }
17096 }
17097 if (obj4) {
17098 {
17099 arg5 = &temp5;
17100 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17101 }
17102 }
17103 if (obj5) {
17104 {
17105 arg6 = &temp6;
17106 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17107 }
17108 }
17109 if (obj6) {
17110 ecode7 = SWIG_AsVal_long(obj6, &val7);
17111 if (!SWIG_IsOK(ecode7)) {
17112 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17113 }
17114 arg7 = static_cast< long >(val7);
17115 }
17116 if (obj7) {
17117 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17118 if (!SWIG_IsOK(res8)) {
17119 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17120 }
17121 if (!argp8) {
17122 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17123 }
17124 arg8 = reinterpret_cast< wxValidator * >(argp8);
17125 }
17126 if (obj8) {
17127 {
17128 arg9 = wxString_in_helper(obj8);
17129 if (arg9 == NULL) SWIG_fail;
17130 temp9 = true;
17131 }
17132 }
17133 {
17134 PyThreadState* __tstate = wxPyBeginAllowThreads();
17135 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17136 wxPyEndAllowThreads(__tstate);
17137 if (PyErr_Occurred()) SWIG_fail;
17138 }
17139 {
17140 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17141 }
17142 {
17143 if (temp4)
17144 delete arg4;
17145 }
17146 {
17147 if (temp9)
17148 delete arg9;
17149 }
17150 return resultobj;
17151 fail:
17152 {
17153 if (temp4)
17154 delete arg4;
17155 }
17156 {
17157 if (temp9)
17158 delete arg9;
17159 }
17160 return NULL;
17161 }
17162
17163
17164 SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17165 PyObject *resultobj = 0;
17166 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17167 bool result;
17168 void *argp1 = 0 ;
17169 int res1 = 0 ;
17170 PyObject *swig_obj[1] ;
17171
17172 if (!args) SWIG_fail;
17173 swig_obj[0] = args;
17174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17175 if (!SWIG_IsOK(res1)) {
17176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17177 }
17178 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17179 {
17180 PyThreadState* __tstate = wxPyBeginAllowThreads();
17181 result = (bool)(arg1)->GetValue();
17182 wxPyEndAllowThreads(__tstate);
17183 if (PyErr_Occurred()) SWIG_fail;
17184 }
17185 {
17186 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17187 }
17188 return resultobj;
17189 fail:
17190 return NULL;
17191 }
17192
17193
17194 SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17195 PyObject *resultobj = 0;
17196 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17197 bool arg2 ;
17198 void *argp1 = 0 ;
17199 int res1 = 0 ;
17200 bool val2 ;
17201 int ecode2 = 0 ;
17202 PyObject * obj0 = 0 ;
17203 PyObject * obj1 = 0 ;
17204 char * kwnames[] = {
17205 (char *) "self",(char *) "value", NULL
17206 };
17207
17208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17210 if (!SWIG_IsOK(res1)) {
17211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17212 }
17213 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17214 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17215 if (!SWIG_IsOK(ecode2)) {
17216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17217 }
17218 arg2 = static_cast< bool >(val2);
17219 {
17220 PyThreadState* __tstate = wxPyBeginAllowThreads();
17221 (arg1)->SetValue(arg2);
17222 wxPyEndAllowThreads(__tstate);
17223 if (PyErr_Occurred()) SWIG_fail;
17224 }
17225 resultobj = SWIG_Py_Void();
17226 return resultobj;
17227 fail:
17228 return NULL;
17229 }
17230
17231
17232 SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17233 PyObject *resultobj = 0;
17234 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17235 SwigValueWrapper<wxVisualAttributes > result;
17236 int val1 ;
17237 int ecode1 = 0 ;
17238 PyObject * obj0 = 0 ;
17239 char * kwnames[] = {
17240 (char *) "variant", NULL
17241 };
17242
17243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17244 if (obj0) {
17245 ecode1 = SWIG_AsVal_int(obj0, &val1);
17246 if (!SWIG_IsOK(ecode1)) {
17247 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17248 }
17249 arg1 = static_cast< wxWindowVariant >(val1);
17250 }
17251 {
17252 if (!wxPyCheckForApp()) SWIG_fail;
17253 PyThreadState* __tstate = wxPyBeginAllowThreads();
17254 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17255 wxPyEndAllowThreads(__tstate);
17256 if (PyErr_Occurred()) SWIG_fail;
17257 }
17258 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17259 return resultobj;
17260 fail:
17261 return NULL;
17262 }
17263
17264
17265 SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17266 PyObject *obj;
17267 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17268 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17269 return SWIG_Py_Void();
17270 }
17271
17272 SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17273 return SWIG_Python_InitShadowInstance(args);
17274 }
17275
17276 SWIGINTERN int SliderNameStr_set(PyObject *) {
17277 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17278 return 1;
17279 }
17280
17281
17282 SWIGINTERN PyObject *SliderNameStr_get(void) {
17283 PyObject *pyobj = 0;
17284
17285 {
17286 #if wxUSE_UNICODE
17287 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17288 #else
17289 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17290 #endif
17291 }
17292 return pyobj;
17293 }
17294
17295
17296 SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17297 PyObject *resultobj = 0;
17298 wxWindow *arg1 = (wxWindow *) 0 ;
17299 int arg2 = (int) -1 ;
17300 int arg3 = (int) 0 ;
17301 int arg4 = (int) 0 ;
17302 int arg5 = (int) 100 ;
17303 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17304 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17305 wxSize const &arg7_defvalue = wxDefaultSize ;
17306 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17307 long arg8 = (long) wxSL_HORIZONTAL ;
17308 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17309 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17310 wxString const &arg10_defvalue = wxPySliderNameStr ;
17311 wxString *arg10 = (wxString *) &arg10_defvalue ;
17312 wxSlider *result = 0 ;
17313 void *argp1 = 0 ;
17314 int res1 = 0 ;
17315 int val2 ;
17316 int ecode2 = 0 ;
17317 int val3 ;
17318 int ecode3 = 0 ;
17319 int val4 ;
17320 int ecode4 = 0 ;
17321 int val5 ;
17322 int ecode5 = 0 ;
17323 wxPoint temp6 ;
17324 wxSize temp7 ;
17325 long val8 ;
17326 int ecode8 = 0 ;
17327 void *argp9 = 0 ;
17328 int res9 = 0 ;
17329 bool temp10 = false ;
17330 PyObject * obj0 = 0 ;
17331 PyObject * obj1 = 0 ;
17332 PyObject * obj2 = 0 ;
17333 PyObject * obj3 = 0 ;
17334 PyObject * obj4 = 0 ;
17335 PyObject * obj5 = 0 ;
17336 PyObject * obj6 = 0 ;
17337 PyObject * obj7 = 0 ;
17338 PyObject * obj8 = 0 ;
17339 PyObject * obj9 = 0 ;
17340 char * kwnames[] = {
17341 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17342 };
17343
17344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17346 if (!SWIG_IsOK(res1)) {
17347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17348 }
17349 arg1 = reinterpret_cast< wxWindow * >(argp1);
17350 if (obj1) {
17351 ecode2 = SWIG_AsVal_int(obj1, &val2);
17352 if (!SWIG_IsOK(ecode2)) {
17353 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17354 }
17355 arg2 = static_cast< int >(val2);
17356 }
17357 if (obj2) {
17358 ecode3 = SWIG_AsVal_int(obj2, &val3);
17359 if (!SWIG_IsOK(ecode3)) {
17360 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17361 }
17362 arg3 = static_cast< int >(val3);
17363 }
17364 if (obj3) {
17365 ecode4 = SWIG_AsVal_int(obj3, &val4);
17366 if (!SWIG_IsOK(ecode4)) {
17367 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17368 }
17369 arg4 = static_cast< int >(val4);
17370 }
17371 if (obj4) {
17372 ecode5 = SWIG_AsVal_int(obj4, &val5);
17373 if (!SWIG_IsOK(ecode5)) {
17374 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17375 }
17376 arg5 = static_cast< int >(val5);
17377 }
17378 if (obj5) {
17379 {
17380 arg6 = &temp6;
17381 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
17382 }
17383 }
17384 if (obj6) {
17385 {
17386 arg7 = &temp7;
17387 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
17388 }
17389 }
17390 if (obj7) {
17391 ecode8 = SWIG_AsVal_long(obj7, &val8);
17392 if (!SWIG_IsOK(ecode8)) {
17393 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17394 }
17395 arg8 = static_cast< long >(val8);
17396 }
17397 if (obj8) {
17398 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17399 if (!SWIG_IsOK(res9)) {
17400 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17401 }
17402 if (!argp9) {
17403 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17404 }
17405 arg9 = reinterpret_cast< wxValidator * >(argp9);
17406 }
17407 if (obj9) {
17408 {
17409 arg10 = wxString_in_helper(obj9);
17410 if (arg10 == NULL) SWIG_fail;
17411 temp10 = true;
17412 }
17413 }
17414 {
17415 if (!wxPyCheckForApp()) SWIG_fail;
17416 PyThreadState* __tstate = wxPyBeginAllowThreads();
17417 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17418 wxPyEndAllowThreads(__tstate);
17419 if (PyErr_Occurred()) SWIG_fail;
17420 }
17421 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17422 {
17423 if (temp10)
17424 delete arg10;
17425 }
17426 return resultobj;
17427 fail:
17428 {
17429 if (temp10)
17430 delete arg10;
17431 }
17432 return NULL;
17433 }
17434
17435
17436 SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17437 PyObject *resultobj = 0;
17438 wxSlider *result = 0 ;
17439
17440 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17441 {
17442 if (!wxPyCheckForApp()) SWIG_fail;
17443 PyThreadState* __tstate = wxPyBeginAllowThreads();
17444 result = (wxSlider *)new wxSlider();
17445 wxPyEndAllowThreads(__tstate);
17446 if (PyErr_Occurred()) SWIG_fail;
17447 }
17448 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17449 return resultobj;
17450 fail:
17451 return NULL;
17452 }
17453
17454
17455 SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17456 PyObject *resultobj = 0;
17457 wxSlider *arg1 = (wxSlider *) 0 ;
17458 wxWindow *arg2 = (wxWindow *) 0 ;
17459 int arg3 = (int) -1 ;
17460 int arg4 = (int) 0 ;
17461 int arg5 = (int) 0 ;
17462 int arg6 = (int) 100 ;
17463 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17464 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17465 wxSize const &arg8_defvalue = wxDefaultSize ;
17466 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17467 long arg9 = (long) wxSL_HORIZONTAL ;
17468 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17469 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17470 wxString const &arg11_defvalue = wxPySliderNameStr ;
17471 wxString *arg11 = (wxString *) &arg11_defvalue ;
17472 bool result;
17473 void *argp1 = 0 ;
17474 int res1 = 0 ;
17475 void *argp2 = 0 ;
17476 int res2 = 0 ;
17477 int val3 ;
17478 int ecode3 = 0 ;
17479 int val4 ;
17480 int ecode4 = 0 ;
17481 int val5 ;
17482 int ecode5 = 0 ;
17483 int val6 ;
17484 int ecode6 = 0 ;
17485 wxPoint temp7 ;
17486 wxSize temp8 ;
17487 long val9 ;
17488 int ecode9 = 0 ;
17489 void *argp10 = 0 ;
17490 int res10 = 0 ;
17491 bool temp11 = false ;
17492 PyObject * obj0 = 0 ;
17493 PyObject * obj1 = 0 ;
17494 PyObject * obj2 = 0 ;
17495 PyObject * obj3 = 0 ;
17496 PyObject * obj4 = 0 ;
17497 PyObject * obj5 = 0 ;
17498 PyObject * obj6 = 0 ;
17499 PyObject * obj7 = 0 ;
17500 PyObject * obj8 = 0 ;
17501 PyObject * obj9 = 0 ;
17502 PyObject * obj10 = 0 ;
17503 char * kwnames[] = {
17504 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17505 };
17506
17507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17509 if (!SWIG_IsOK(res1)) {
17510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17511 }
17512 arg1 = reinterpret_cast< wxSlider * >(argp1);
17513 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17514 if (!SWIG_IsOK(res2)) {
17515 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17516 }
17517 arg2 = reinterpret_cast< wxWindow * >(argp2);
17518 if (obj2) {
17519 ecode3 = SWIG_AsVal_int(obj2, &val3);
17520 if (!SWIG_IsOK(ecode3)) {
17521 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17522 }
17523 arg3 = static_cast< int >(val3);
17524 }
17525 if (obj3) {
17526 ecode4 = SWIG_AsVal_int(obj3, &val4);
17527 if (!SWIG_IsOK(ecode4)) {
17528 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17529 }
17530 arg4 = static_cast< int >(val4);
17531 }
17532 if (obj4) {
17533 ecode5 = SWIG_AsVal_int(obj4, &val5);
17534 if (!SWIG_IsOK(ecode5)) {
17535 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17536 }
17537 arg5 = static_cast< int >(val5);
17538 }
17539 if (obj5) {
17540 ecode6 = SWIG_AsVal_int(obj5, &val6);
17541 if (!SWIG_IsOK(ecode6)) {
17542 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17543 }
17544 arg6 = static_cast< int >(val6);
17545 }
17546 if (obj6) {
17547 {
17548 arg7 = &temp7;
17549 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
17550 }
17551 }
17552 if (obj7) {
17553 {
17554 arg8 = &temp8;
17555 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
17556 }
17557 }
17558 if (obj8) {
17559 ecode9 = SWIG_AsVal_long(obj8, &val9);
17560 if (!SWIG_IsOK(ecode9)) {
17561 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17562 }
17563 arg9 = static_cast< long >(val9);
17564 }
17565 if (obj9) {
17566 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17567 if (!SWIG_IsOK(res10)) {
17568 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17569 }
17570 if (!argp10) {
17571 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17572 }
17573 arg10 = reinterpret_cast< wxValidator * >(argp10);
17574 }
17575 if (obj10) {
17576 {
17577 arg11 = wxString_in_helper(obj10);
17578 if (arg11 == NULL) SWIG_fail;
17579 temp11 = true;
17580 }
17581 }
17582 {
17583 PyThreadState* __tstate = wxPyBeginAllowThreads();
17584 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17585 wxPyEndAllowThreads(__tstate);
17586 if (PyErr_Occurred()) SWIG_fail;
17587 }
17588 {
17589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17590 }
17591 {
17592 if (temp11)
17593 delete arg11;
17594 }
17595 return resultobj;
17596 fail:
17597 {
17598 if (temp11)
17599 delete arg11;
17600 }
17601 return NULL;
17602 }
17603
17604
17605 SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17606 PyObject *resultobj = 0;
17607 wxSlider *arg1 = (wxSlider *) 0 ;
17608 int result;
17609 void *argp1 = 0 ;
17610 int res1 = 0 ;
17611 PyObject *swig_obj[1] ;
17612
17613 if (!args) SWIG_fail;
17614 swig_obj[0] = args;
17615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17616 if (!SWIG_IsOK(res1)) {
17617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17618 }
17619 arg1 = reinterpret_cast< wxSlider * >(argp1);
17620 {
17621 PyThreadState* __tstate = wxPyBeginAllowThreads();
17622 result = (int)((wxSlider const *)arg1)->GetValue();
17623 wxPyEndAllowThreads(__tstate);
17624 if (PyErr_Occurred()) SWIG_fail;
17625 }
17626 resultobj = SWIG_From_int(static_cast< int >(result));
17627 return resultobj;
17628 fail:
17629 return NULL;
17630 }
17631
17632
17633 SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17634 PyObject *resultobj = 0;
17635 wxSlider *arg1 = (wxSlider *) 0 ;
17636 int arg2 ;
17637 void *argp1 = 0 ;
17638 int res1 = 0 ;
17639 int val2 ;
17640 int ecode2 = 0 ;
17641 PyObject * obj0 = 0 ;
17642 PyObject * obj1 = 0 ;
17643 char * kwnames[] = {
17644 (char *) "self",(char *) "value", NULL
17645 };
17646
17647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17649 if (!SWIG_IsOK(res1)) {
17650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17651 }
17652 arg1 = reinterpret_cast< wxSlider * >(argp1);
17653 ecode2 = SWIG_AsVal_int(obj1, &val2);
17654 if (!SWIG_IsOK(ecode2)) {
17655 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17656 }
17657 arg2 = static_cast< int >(val2);
17658 {
17659 PyThreadState* __tstate = wxPyBeginAllowThreads();
17660 (arg1)->SetValue(arg2);
17661 wxPyEndAllowThreads(__tstate);
17662 if (PyErr_Occurred()) SWIG_fail;
17663 }
17664 resultobj = SWIG_Py_Void();
17665 return resultobj;
17666 fail:
17667 return NULL;
17668 }
17669
17670
17671 SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17672 PyObject *resultobj = 0;
17673 wxSlider *arg1 = (wxSlider *) 0 ;
17674 int arg2 ;
17675 int arg3 ;
17676 void *argp1 = 0 ;
17677 int res1 = 0 ;
17678 int val2 ;
17679 int ecode2 = 0 ;
17680 int val3 ;
17681 int ecode3 = 0 ;
17682 PyObject * obj0 = 0 ;
17683 PyObject * obj1 = 0 ;
17684 PyObject * obj2 = 0 ;
17685 char * kwnames[] = {
17686 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
17687 };
17688
17689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17691 if (!SWIG_IsOK(res1)) {
17692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
17693 }
17694 arg1 = reinterpret_cast< wxSlider * >(argp1);
17695 ecode2 = SWIG_AsVal_int(obj1, &val2);
17696 if (!SWIG_IsOK(ecode2)) {
17697 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
17698 }
17699 arg2 = static_cast< int >(val2);
17700 ecode3 = SWIG_AsVal_int(obj2, &val3);
17701 if (!SWIG_IsOK(ecode3)) {
17702 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
17703 }
17704 arg3 = static_cast< int >(val3);
17705 {
17706 PyThreadState* __tstate = wxPyBeginAllowThreads();
17707 (arg1)->SetRange(arg2,arg3);
17708 wxPyEndAllowThreads(__tstate);
17709 if (PyErr_Occurred()) SWIG_fail;
17710 }
17711 resultobj = SWIG_Py_Void();
17712 return resultobj;
17713 fail:
17714 return NULL;
17715 }
17716
17717
17718 SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17719 PyObject *resultobj = 0;
17720 wxSlider *arg1 = (wxSlider *) 0 ;
17721 int result;
17722 void *argp1 = 0 ;
17723 int res1 = 0 ;
17724 PyObject *swig_obj[1] ;
17725
17726 if (!args) SWIG_fail;
17727 swig_obj[0] = args;
17728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17729 if (!SWIG_IsOK(res1)) {
17730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
17731 }
17732 arg1 = reinterpret_cast< wxSlider * >(argp1);
17733 {
17734 PyThreadState* __tstate = wxPyBeginAllowThreads();
17735 result = (int)((wxSlider const *)arg1)->GetMin();
17736 wxPyEndAllowThreads(__tstate);
17737 if (PyErr_Occurred()) SWIG_fail;
17738 }
17739 resultobj = SWIG_From_int(static_cast< int >(result));
17740 return resultobj;
17741 fail:
17742 return NULL;
17743 }
17744
17745
17746 SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17747 PyObject *resultobj = 0;
17748 wxSlider *arg1 = (wxSlider *) 0 ;
17749 int result;
17750 void *argp1 = 0 ;
17751 int res1 = 0 ;
17752 PyObject *swig_obj[1] ;
17753
17754 if (!args) SWIG_fail;
17755 swig_obj[0] = args;
17756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17757 if (!SWIG_IsOK(res1)) {
17758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
17759 }
17760 arg1 = reinterpret_cast< wxSlider * >(argp1);
17761 {
17762 PyThreadState* __tstate = wxPyBeginAllowThreads();
17763 result = (int)((wxSlider const *)arg1)->GetMax();
17764 wxPyEndAllowThreads(__tstate);
17765 if (PyErr_Occurred()) SWIG_fail;
17766 }
17767 resultobj = SWIG_From_int(static_cast< int >(result));
17768 return resultobj;
17769 fail:
17770 return NULL;
17771 }
17772
17773
17774 SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17775 PyObject *resultobj = 0;
17776 wxSlider *arg1 = (wxSlider *) 0 ;
17777 int arg2 ;
17778 void *argp1 = 0 ;
17779 int res1 = 0 ;
17780 int val2 ;
17781 int ecode2 = 0 ;
17782 PyObject * obj0 = 0 ;
17783 PyObject * obj1 = 0 ;
17784 char * kwnames[] = {
17785 (char *) "self",(char *) "minValue", NULL
17786 };
17787
17788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
17789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17790 if (!SWIG_IsOK(res1)) {
17791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
17792 }
17793 arg1 = reinterpret_cast< wxSlider * >(argp1);
17794 ecode2 = SWIG_AsVal_int(obj1, &val2);
17795 if (!SWIG_IsOK(ecode2)) {
17796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
17797 }
17798 arg2 = static_cast< int >(val2);
17799 {
17800 PyThreadState* __tstate = wxPyBeginAllowThreads();
17801 (arg1)->SetMin(arg2);
17802 wxPyEndAllowThreads(__tstate);
17803 if (PyErr_Occurred()) SWIG_fail;
17804 }
17805 resultobj = SWIG_Py_Void();
17806 return resultobj;
17807 fail:
17808 return NULL;
17809 }
17810
17811
17812 SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17813 PyObject *resultobj = 0;
17814 wxSlider *arg1 = (wxSlider *) 0 ;
17815 int arg2 ;
17816 void *argp1 = 0 ;
17817 int res1 = 0 ;
17818 int val2 ;
17819 int ecode2 = 0 ;
17820 PyObject * obj0 = 0 ;
17821 PyObject * obj1 = 0 ;
17822 char * kwnames[] = {
17823 (char *) "self",(char *) "maxValue", NULL
17824 };
17825
17826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
17827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17828 if (!SWIG_IsOK(res1)) {
17829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
17830 }
17831 arg1 = reinterpret_cast< wxSlider * >(argp1);
17832 ecode2 = SWIG_AsVal_int(obj1, &val2);
17833 if (!SWIG_IsOK(ecode2)) {
17834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
17835 }
17836 arg2 = static_cast< int >(val2);
17837 {
17838 PyThreadState* __tstate = wxPyBeginAllowThreads();
17839 (arg1)->SetMax(arg2);
17840 wxPyEndAllowThreads(__tstate);
17841 if (PyErr_Occurred()) SWIG_fail;
17842 }
17843 resultobj = SWIG_Py_Void();
17844 return resultobj;
17845 fail:
17846 return NULL;
17847 }
17848
17849
17850 SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17851 PyObject *resultobj = 0;
17852 wxSlider *arg1 = (wxSlider *) 0 ;
17853 int arg2 ;
17854 void *argp1 = 0 ;
17855 int res1 = 0 ;
17856 int val2 ;
17857 int ecode2 = 0 ;
17858 PyObject * obj0 = 0 ;
17859 PyObject * obj1 = 0 ;
17860 char * kwnames[] = {
17861 (char *) "self",(char *) "lineSize", NULL
17862 };
17863
17864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
17865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17866 if (!SWIG_IsOK(res1)) {
17867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
17868 }
17869 arg1 = reinterpret_cast< wxSlider * >(argp1);
17870 ecode2 = SWIG_AsVal_int(obj1, &val2);
17871 if (!SWIG_IsOK(ecode2)) {
17872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
17873 }
17874 arg2 = static_cast< int >(val2);
17875 {
17876 PyThreadState* __tstate = wxPyBeginAllowThreads();
17877 (arg1)->SetLineSize(arg2);
17878 wxPyEndAllowThreads(__tstate);
17879 if (PyErr_Occurred()) SWIG_fail;
17880 }
17881 resultobj = SWIG_Py_Void();
17882 return resultobj;
17883 fail:
17884 return NULL;
17885 }
17886
17887
17888 SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17889 PyObject *resultobj = 0;
17890 wxSlider *arg1 = (wxSlider *) 0 ;
17891 int arg2 ;
17892 void *argp1 = 0 ;
17893 int res1 = 0 ;
17894 int val2 ;
17895 int ecode2 = 0 ;
17896 PyObject * obj0 = 0 ;
17897 PyObject * obj1 = 0 ;
17898 char * kwnames[] = {
17899 (char *) "self",(char *) "pageSize", NULL
17900 };
17901
17902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
17903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17904 if (!SWIG_IsOK(res1)) {
17905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
17906 }
17907 arg1 = reinterpret_cast< wxSlider * >(argp1);
17908 ecode2 = SWIG_AsVal_int(obj1, &val2);
17909 if (!SWIG_IsOK(ecode2)) {
17910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
17911 }
17912 arg2 = static_cast< int >(val2);
17913 {
17914 PyThreadState* __tstate = wxPyBeginAllowThreads();
17915 (arg1)->SetPageSize(arg2);
17916 wxPyEndAllowThreads(__tstate);
17917 if (PyErr_Occurred()) SWIG_fail;
17918 }
17919 resultobj = SWIG_Py_Void();
17920 return resultobj;
17921 fail:
17922 return NULL;
17923 }
17924
17925
17926 SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17927 PyObject *resultobj = 0;
17928 wxSlider *arg1 = (wxSlider *) 0 ;
17929 int result;
17930 void *argp1 = 0 ;
17931 int res1 = 0 ;
17932 PyObject *swig_obj[1] ;
17933
17934 if (!args) SWIG_fail;
17935 swig_obj[0] = args;
17936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17937 if (!SWIG_IsOK(res1)) {
17938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
17939 }
17940 arg1 = reinterpret_cast< wxSlider * >(argp1);
17941 {
17942 PyThreadState* __tstate = wxPyBeginAllowThreads();
17943 result = (int)((wxSlider const *)arg1)->GetLineSize();
17944 wxPyEndAllowThreads(__tstate);
17945 if (PyErr_Occurred()) SWIG_fail;
17946 }
17947 resultobj = SWIG_From_int(static_cast< int >(result));
17948 return resultobj;
17949 fail:
17950 return NULL;
17951 }
17952
17953
17954 SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17955 PyObject *resultobj = 0;
17956 wxSlider *arg1 = (wxSlider *) 0 ;
17957 int result;
17958 void *argp1 = 0 ;
17959 int res1 = 0 ;
17960 PyObject *swig_obj[1] ;
17961
17962 if (!args) SWIG_fail;
17963 swig_obj[0] = args;
17964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17965 if (!SWIG_IsOK(res1)) {
17966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
17967 }
17968 arg1 = reinterpret_cast< wxSlider * >(argp1);
17969 {
17970 PyThreadState* __tstate = wxPyBeginAllowThreads();
17971 result = (int)((wxSlider const *)arg1)->GetPageSize();
17972 wxPyEndAllowThreads(__tstate);
17973 if (PyErr_Occurred()) SWIG_fail;
17974 }
17975 resultobj = SWIG_From_int(static_cast< int >(result));
17976 return resultobj;
17977 fail:
17978 return NULL;
17979 }
17980
17981
17982 SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17983 PyObject *resultobj = 0;
17984 wxSlider *arg1 = (wxSlider *) 0 ;
17985 int arg2 ;
17986 void *argp1 = 0 ;
17987 int res1 = 0 ;
17988 int val2 ;
17989 int ecode2 = 0 ;
17990 PyObject * obj0 = 0 ;
17991 PyObject * obj1 = 0 ;
17992 char * kwnames[] = {
17993 (char *) "self",(char *) "lenPixels", NULL
17994 };
17995
17996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
17997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17998 if (!SWIG_IsOK(res1)) {
17999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18000 }
18001 arg1 = reinterpret_cast< wxSlider * >(argp1);
18002 ecode2 = SWIG_AsVal_int(obj1, &val2);
18003 if (!SWIG_IsOK(ecode2)) {
18004 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18005 }
18006 arg2 = static_cast< int >(val2);
18007 {
18008 PyThreadState* __tstate = wxPyBeginAllowThreads();
18009 (arg1)->SetThumbLength(arg2);
18010 wxPyEndAllowThreads(__tstate);
18011 if (PyErr_Occurred()) SWIG_fail;
18012 }
18013 resultobj = SWIG_Py_Void();
18014 return resultobj;
18015 fail:
18016 return NULL;
18017 }
18018
18019
18020 SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18021 PyObject *resultobj = 0;
18022 wxSlider *arg1 = (wxSlider *) 0 ;
18023 int result;
18024 void *argp1 = 0 ;
18025 int res1 = 0 ;
18026 PyObject *swig_obj[1] ;
18027
18028 if (!args) SWIG_fail;
18029 swig_obj[0] = args;
18030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18031 if (!SWIG_IsOK(res1)) {
18032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18033 }
18034 arg1 = reinterpret_cast< wxSlider * >(argp1);
18035 {
18036 PyThreadState* __tstate = wxPyBeginAllowThreads();
18037 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18038 wxPyEndAllowThreads(__tstate);
18039 if (PyErr_Occurred()) SWIG_fail;
18040 }
18041 resultobj = SWIG_From_int(static_cast< int >(result));
18042 return resultobj;
18043 fail:
18044 return NULL;
18045 }
18046
18047
18048 SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18049 PyObject *resultobj = 0;
18050 wxSlider *arg1 = (wxSlider *) 0 ;
18051 int arg2 ;
18052 int arg3 = (int) 1 ;
18053 void *argp1 = 0 ;
18054 int res1 = 0 ;
18055 int val2 ;
18056 int ecode2 = 0 ;
18057 int val3 ;
18058 int ecode3 = 0 ;
18059 PyObject * obj0 = 0 ;
18060 PyObject * obj1 = 0 ;
18061 PyObject * obj2 = 0 ;
18062 char * kwnames[] = {
18063 (char *) "self",(char *) "n",(char *) "pos", NULL
18064 };
18065
18066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18068 if (!SWIG_IsOK(res1)) {
18069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18070 }
18071 arg1 = reinterpret_cast< wxSlider * >(argp1);
18072 ecode2 = SWIG_AsVal_int(obj1, &val2);
18073 if (!SWIG_IsOK(ecode2)) {
18074 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18075 }
18076 arg2 = static_cast< int >(val2);
18077 if (obj2) {
18078 ecode3 = SWIG_AsVal_int(obj2, &val3);
18079 if (!SWIG_IsOK(ecode3)) {
18080 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18081 }
18082 arg3 = static_cast< int >(val3);
18083 }
18084 {
18085 PyThreadState* __tstate = wxPyBeginAllowThreads();
18086 (arg1)->SetTickFreq(arg2,arg3);
18087 wxPyEndAllowThreads(__tstate);
18088 if (PyErr_Occurred()) SWIG_fail;
18089 }
18090 resultobj = SWIG_Py_Void();
18091 return resultobj;
18092 fail:
18093 return NULL;
18094 }
18095
18096
18097 SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18098 PyObject *resultobj = 0;
18099 wxSlider *arg1 = (wxSlider *) 0 ;
18100 int result;
18101 void *argp1 = 0 ;
18102 int res1 = 0 ;
18103 PyObject *swig_obj[1] ;
18104
18105 if (!args) SWIG_fail;
18106 swig_obj[0] = args;
18107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18108 if (!SWIG_IsOK(res1)) {
18109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18110 }
18111 arg1 = reinterpret_cast< wxSlider * >(argp1);
18112 {
18113 PyThreadState* __tstate = wxPyBeginAllowThreads();
18114 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18115 wxPyEndAllowThreads(__tstate);
18116 if (PyErr_Occurred()) SWIG_fail;
18117 }
18118 resultobj = SWIG_From_int(static_cast< int >(result));
18119 return resultobj;
18120 fail:
18121 return NULL;
18122 }
18123
18124
18125 SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18126 PyObject *resultobj = 0;
18127 wxSlider *arg1 = (wxSlider *) 0 ;
18128 void *argp1 = 0 ;
18129 int res1 = 0 ;
18130 PyObject *swig_obj[1] ;
18131
18132 if (!args) SWIG_fail;
18133 swig_obj[0] = args;
18134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18135 if (!SWIG_IsOK(res1)) {
18136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18137 }
18138 arg1 = reinterpret_cast< wxSlider * >(argp1);
18139 {
18140 PyThreadState* __tstate = wxPyBeginAllowThreads();
18141 (arg1)->ClearTicks();
18142 wxPyEndAllowThreads(__tstate);
18143 if (PyErr_Occurred()) SWIG_fail;
18144 }
18145 resultobj = SWIG_Py_Void();
18146 return resultobj;
18147 fail:
18148 return NULL;
18149 }
18150
18151
18152 SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18153 PyObject *resultobj = 0;
18154 wxSlider *arg1 = (wxSlider *) 0 ;
18155 int arg2 ;
18156 void *argp1 = 0 ;
18157 int res1 = 0 ;
18158 int val2 ;
18159 int ecode2 = 0 ;
18160 PyObject * obj0 = 0 ;
18161 PyObject * obj1 = 0 ;
18162 char * kwnames[] = {
18163 (char *) "self",(char *) "tickPos", NULL
18164 };
18165
18166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18168 if (!SWIG_IsOK(res1)) {
18169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18170 }
18171 arg1 = reinterpret_cast< wxSlider * >(argp1);
18172 ecode2 = SWIG_AsVal_int(obj1, &val2);
18173 if (!SWIG_IsOK(ecode2)) {
18174 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18175 }
18176 arg2 = static_cast< int >(val2);
18177 {
18178 PyThreadState* __tstate = wxPyBeginAllowThreads();
18179 (arg1)->SetTick(arg2);
18180 wxPyEndAllowThreads(__tstate);
18181 if (PyErr_Occurred()) SWIG_fail;
18182 }
18183 resultobj = SWIG_Py_Void();
18184 return resultobj;
18185 fail:
18186 return NULL;
18187 }
18188
18189
18190 SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18191 PyObject *resultobj = 0;
18192 wxSlider *arg1 = (wxSlider *) 0 ;
18193 void *argp1 = 0 ;
18194 int res1 = 0 ;
18195 PyObject *swig_obj[1] ;
18196
18197 if (!args) SWIG_fail;
18198 swig_obj[0] = args;
18199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18200 if (!SWIG_IsOK(res1)) {
18201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18202 }
18203 arg1 = reinterpret_cast< wxSlider * >(argp1);
18204 {
18205 PyThreadState* __tstate = wxPyBeginAllowThreads();
18206 (arg1)->ClearSel();
18207 wxPyEndAllowThreads(__tstate);
18208 if (PyErr_Occurred()) SWIG_fail;
18209 }
18210 resultobj = SWIG_Py_Void();
18211 return resultobj;
18212 fail:
18213 return NULL;
18214 }
18215
18216
18217 SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18218 PyObject *resultobj = 0;
18219 wxSlider *arg1 = (wxSlider *) 0 ;
18220 int result;
18221 void *argp1 = 0 ;
18222 int res1 = 0 ;
18223 PyObject *swig_obj[1] ;
18224
18225 if (!args) SWIG_fail;
18226 swig_obj[0] = args;
18227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18228 if (!SWIG_IsOK(res1)) {
18229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18230 }
18231 arg1 = reinterpret_cast< wxSlider * >(argp1);
18232 {
18233 PyThreadState* __tstate = wxPyBeginAllowThreads();
18234 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18235 wxPyEndAllowThreads(__tstate);
18236 if (PyErr_Occurred()) SWIG_fail;
18237 }
18238 resultobj = SWIG_From_int(static_cast< int >(result));
18239 return resultobj;
18240 fail:
18241 return NULL;
18242 }
18243
18244
18245 SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18246 PyObject *resultobj = 0;
18247 wxSlider *arg1 = (wxSlider *) 0 ;
18248 int result;
18249 void *argp1 = 0 ;
18250 int res1 = 0 ;
18251 PyObject *swig_obj[1] ;
18252
18253 if (!args) SWIG_fail;
18254 swig_obj[0] = args;
18255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18256 if (!SWIG_IsOK(res1)) {
18257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18258 }
18259 arg1 = reinterpret_cast< wxSlider * >(argp1);
18260 {
18261 PyThreadState* __tstate = wxPyBeginAllowThreads();
18262 result = (int)((wxSlider const *)arg1)->GetSelStart();
18263 wxPyEndAllowThreads(__tstate);
18264 if (PyErr_Occurred()) SWIG_fail;
18265 }
18266 resultobj = SWIG_From_int(static_cast< int >(result));
18267 return resultobj;
18268 fail:
18269 return NULL;
18270 }
18271
18272
18273 SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18274 PyObject *resultobj = 0;
18275 wxSlider *arg1 = (wxSlider *) 0 ;
18276 int arg2 ;
18277 int arg3 ;
18278 void *argp1 = 0 ;
18279 int res1 = 0 ;
18280 int val2 ;
18281 int ecode2 = 0 ;
18282 int val3 ;
18283 int ecode3 = 0 ;
18284 PyObject * obj0 = 0 ;
18285 PyObject * obj1 = 0 ;
18286 PyObject * obj2 = 0 ;
18287 char * kwnames[] = {
18288 (char *) "self",(char *) "min",(char *) "max", NULL
18289 };
18290
18291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18293 if (!SWIG_IsOK(res1)) {
18294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18295 }
18296 arg1 = reinterpret_cast< wxSlider * >(argp1);
18297 ecode2 = SWIG_AsVal_int(obj1, &val2);
18298 if (!SWIG_IsOK(ecode2)) {
18299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18300 }
18301 arg2 = static_cast< int >(val2);
18302 ecode3 = SWIG_AsVal_int(obj2, &val3);
18303 if (!SWIG_IsOK(ecode3)) {
18304 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18305 }
18306 arg3 = static_cast< int >(val3);
18307 {
18308 PyThreadState* __tstate = wxPyBeginAllowThreads();
18309 (arg1)->SetSelection(arg2,arg3);
18310 wxPyEndAllowThreads(__tstate);
18311 if (PyErr_Occurred()) SWIG_fail;
18312 }
18313 resultobj = SWIG_Py_Void();
18314 return resultobj;
18315 fail:
18316 return NULL;
18317 }
18318
18319
18320 SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18321 PyObject *resultobj = 0;
18322 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18323 SwigValueWrapper<wxVisualAttributes > result;
18324 int val1 ;
18325 int ecode1 = 0 ;
18326 PyObject * obj0 = 0 ;
18327 char * kwnames[] = {
18328 (char *) "variant", NULL
18329 };
18330
18331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18332 if (obj0) {
18333 ecode1 = SWIG_AsVal_int(obj0, &val1);
18334 if (!SWIG_IsOK(ecode1)) {
18335 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18336 }
18337 arg1 = static_cast< wxWindowVariant >(val1);
18338 }
18339 {
18340 if (!wxPyCheckForApp()) SWIG_fail;
18341 PyThreadState* __tstate = wxPyBeginAllowThreads();
18342 result = wxSlider::GetClassDefaultAttributes(arg1);
18343 wxPyEndAllowThreads(__tstate);
18344 if (PyErr_Occurred()) SWIG_fail;
18345 }
18346 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18347 return resultobj;
18348 fail:
18349 return NULL;
18350 }
18351
18352
18353 SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18354 PyObject *obj;
18355 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18356 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18357 return SWIG_Py_Void();
18358 }
18359
18360 SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18361 return SWIG_Python_InitShadowInstance(args);
18362 }
18363
18364 SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18365 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18366 return 1;
18367 }
18368
18369
18370 SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18371 PyObject *pyobj = 0;
18372
18373 {
18374 #if wxUSE_UNICODE
18375 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18376 #else
18377 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18378 #endif
18379 }
18380 return pyobj;
18381 }
18382
18383
18384 SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18385 PyObject *resultobj = 0;
18386 wxWindow *arg1 = (wxWindow *) 0 ;
18387 int arg2 = (int) -1 ;
18388 wxString const &arg3_defvalue = wxPyEmptyString ;
18389 wxString *arg3 = (wxString *) &arg3_defvalue ;
18390 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18391 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18392 wxSize const &arg5_defvalue = wxDefaultSize ;
18393 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18394 long arg6 = (long) 0 ;
18395 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18396 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18397 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18398 wxString *arg8 = (wxString *) &arg8_defvalue ;
18399 wxToggleButton *result = 0 ;
18400 void *argp1 = 0 ;
18401 int res1 = 0 ;
18402 int val2 ;
18403 int ecode2 = 0 ;
18404 bool temp3 = false ;
18405 wxPoint temp4 ;
18406 wxSize temp5 ;
18407 long val6 ;
18408 int ecode6 = 0 ;
18409 void *argp7 = 0 ;
18410 int res7 = 0 ;
18411 bool temp8 = false ;
18412 PyObject * obj0 = 0 ;
18413 PyObject * obj1 = 0 ;
18414 PyObject * obj2 = 0 ;
18415 PyObject * obj3 = 0 ;
18416 PyObject * obj4 = 0 ;
18417 PyObject * obj5 = 0 ;
18418 PyObject * obj6 = 0 ;
18419 PyObject * obj7 = 0 ;
18420 char * kwnames[] = {
18421 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18422 };
18423
18424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18426 if (!SWIG_IsOK(res1)) {
18427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18428 }
18429 arg1 = reinterpret_cast< wxWindow * >(argp1);
18430 if (obj1) {
18431 ecode2 = SWIG_AsVal_int(obj1, &val2);
18432 if (!SWIG_IsOK(ecode2)) {
18433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18434 }
18435 arg2 = static_cast< int >(val2);
18436 }
18437 if (obj2) {
18438 {
18439 arg3 = wxString_in_helper(obj2);
18440 if (arg3 == NULL) SWIG_fail;
18441 temp3 = true;
18442 }
18443 }
18444 if (obj3) {
18445 {
18446 arg4 = &temp4;
18447 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18448 }
18449 }
18450 if (obj4) {
18451 {
18452 arg5 = &temp5;
18453 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18454 }
18455 }
18456 if (obj5) {
18457 ecode6 = SWIG_AsVal_long(obj5, &val6);
18458 if (!SWIG_IsOK(ecode6)) {
18459 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18460 }
18461 arg6 = static_cast< long >(val6);
18462 }
18463 if (obj6) {
18464 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18465 if (!SWIG_IsOK(res7)) {
18466 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18467 }
18468 if (!argp7) {
18469 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18470 }
18471 arg7 = reinterpret_cast< wxValidator * >(argp7);
18472 }
18473 if (obj7) {
18474 {
18475 arg8 = wxString_in_helper(obj7);
18476 if (arg8 == NULL) SWIG_fail;
18477 temp8 = true;
18478 }
18479 }
18480 {
18481 if (!wxPyCheckForApp()) SWIG_fail;
18482 PyThreadState* __tstate = wxPyBeginAllowThreads();
18483 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18484 wxPyEndAllowThreads(__tstate);
18485 if (PyErr_Occurred()) SWIG_fail;
18486 }
18487 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18488 {
18489 if (temp3)
18490 delete arg3;
18491 }
18492 {
18493 if (temp8)
18494 delete arg8;
18495 }
18496 return resultobj;
18497 fail:
18498 {
18499 if (temp3)
18500 delete arg3;
18501 }
18502 {
18503 if (temp8)
18504 delete arg8;
18505 }
18506 return NULL;
18507 }
18508
18509
18510 SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18511 PyObject *resultobj = 0;
18512 wxToggleButton *result = 0 ;
18513
18514 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18515 {
18516 if (!wxPyCheckForApp()) SWIG_fail;
18517 PyThreadState* __tstate = wxPyBeginAllowThreads();
18518 result = (wxToggleButton *)new wxToggleButton();
18519 wxPyEndAllowThreads(__tstate);
18520 if (PyErr_Occurred()) SWIG_fail;
18521 }
18522 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18523 return resultobj;
18524 fail:
18525 return NULL;
18526 }
18527
18528
18529 SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18530 PyObject *resultobj = 0;
18531 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18532 wxWindow *arg2 = (wxWindow *) 0 ;
18533 int arg3 = (int) -1 ;
18534 wxString const &arg4_defvalue = wxPyEmptyString ;
18535 wxString *arg4 = (wxString *) &arg4_defvalue ;
18536 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18537 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18538 wxSize const &arg6_defvalue = wxDefaultSize ;
18539 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18540 long arg7 = (long) 0 ;
18541 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18542 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18543 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18544 wxString *arg9 = (wxString *) &arg9_defvalue ;
18545 bool result;
18546 void *argp1 = 0 ;
18547 int res1 = 0 ;
18548 void *argp2 = 0 ;
18549 int res2 = 0 ;
18550 int val3 ;
18551 int ecode3 = 0 ;
18552 bool temp4 = false ;
18553 wxPoint temp5 ;
18554 wxSize temp6 ;
18555 long val7 ;
18556 int ecode7 = 0 ;
18557 void *argp8 = 0 ;
18558 int res8 = 0 ;
18559 bool temp9 = false ;
18560 PyObject * obj0 = 0 ;
18561 PyObject * obj1 = 0 ;
18562 PyObject * obj2 = 0 ;
18563 PyObject * obj3 = 0 ;
18564 PyObject * obj4 = 0 ;
18565 PyObject * obj5 = 0 ;
18566 PyObject * obj6 = 0 ;
18567 PyObject * obj7 = 0 ;
18568 PyObject * obj8 = 0 ;
18569 char * kwnames[] = {
18570 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18571 };
18572
18573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18575 if (!SWIG_IsOK(res1)) {
18576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18577 }
18578 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18579 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18580 if (!SWIG_IsOK(res2)) {
18581 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18582 }
18583 arg2 = reinterpret_cast< wxWindow * >(argp2);
18584 if (obj2) {
18585 ecode3 = SWIG_AsVal_int(obj2, &val3);
18586 if (!SWIG_IsOK(ecode3)) {
18587 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18588 }
18589 arg3 = static_cast< int >(val3);
18590 }
18591 if (obj3) {
18592 {
18593 arg4 = wxString_in_helper(obj3);
18594 if (arg4 == NULL) SWIG_fail;
18595 temp4 = true;
18596 }
18597 }
18598 if (obj4) {
18599 {
18600 arg5 = &temp5;
18601 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18602 }
18603 }
18604 if (obj5) {
18605 {
18606 arg6 = &temp6;
18607 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
18608 }
18609 }
18610 if (obj6) {
18611 ecode7 = SWIG_AsVal_long(obj6, &val7);
18612 if (!SWIG_IsOK(ecode7)) {
18613 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18614 }
18615 arg7 = static_cast< long >(val7);
18616 }
18617 if (obj7) {
18618 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18619 if (!SWIG_IsOK(res8)) {
18620 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18621 }
18622 if (!argp8) {
18623 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18624 }
18625 arg8 = reinterpret_cast< wxValidator * >(argp8);
18626 }
18627 if (obj8) {
18628 {
18629 arg9 = wxString_in_helper(obj8);
18630 if (arg9 == NULL) SWIG_fail;
18631 temp9 = true;
18632 }
18633 }
18634 {
18635 PyThreadState* __tstate = wxPyBeginAllowThreads();
18636 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18637 wxPyEndAllowThreads(__tstate);
18638 if (PyErr_Occurred()) SWIG_fail;
18639 }
18640 {
18641 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18642 }
18643 {
18644 if (temp4)
18645 delete arg4;
18646 }
18647 {
18648 if (temp9)
18649 delete arg9;
18650 }
18651 return resultobj;
18652 fail:
18653 {
18654 if (temp4)
18655 delete arg4;
18656 }
18657 {
18658 if (temp9)
18659 delete arg9;
18660 }
18661 return NULL;
18662 }
18663
18664
18665 SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18666 PyObject *resultobj = 0;
18667 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18668 bool arg2 ;
18669 void *argp1 = 0 ;
18670 int res1 = 0 ;
18671 bool val2 ;
18672 int ecode2 = 0 ;
18673 PyObject * obj0 = 0 ;
18674 PyObject * obj1 = 0 ;
18675 char * kwnames[] = {
18676 (char *) "self",(char *) "value", NULL
18677 };
18678
18679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18681 if (!SWIG_IsOK(res1)) {
18682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18683 }
18684 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18685 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18686 if (!SWIG_IsOK(ecode2)) {
18687 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
18688 }
18689 arg2 = static_cast< bool >(val2);
18690 {
18691 PyThreadState* __tstate = wxPyBeginAllowThreads();
18692 (arg1)->SetValue(arg2);
18693 wxPyEndAllowThreads(__tstate);
18694 if (PyErr_Occurred()) SWIG_fail;
18695 }
18696 resultobj = SWIG_Py_Void();
18697 return resultobj;
18698 fail:
18699 return NULL;
18700 }
18701
18702
18703 SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18704 PyObject *resultobj = 0;
18705 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18706 bool result;
18707 void *argp1 = 0 ;
18708 int res1 = 0 ;
18709 PyObject *swig_obj[1] ;
18710
18711 if (!args) SWIG_fail;
18712 swig_obj[0] = args;
18713 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18714 if (!SWIG_IsOK(res1)) {
18715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
18716 }
18717 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18718 {
18719 PyThreadState* __tstate = wxPyBeginAllowThreads();
18720 result = (bool)((wxToggleButton const *)arg1)->GetValue();
18721 wxPyEndAllowThreads(__tstate);
18722 if (PyErr_Occurred()) SWIG_fail;
18723 }
18724 {
18725 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18726 }
18727 return resultobj;
18728 fail:
18729 return NULL;
18730 }
18731
18732
18733 SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18734 PyObject *resultobj = 0;
18735 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18736 SwigValueWrapper<wxVisualAttributes > result;
18737 int val1 ;
18738 int ecode1 = 0 ;
18739 PyObject * obj0 = 0 ;
18740 char * kwnames[] = {
18741 (char *) "variant", NULL
18742 };
18743
18744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18745 if (obj0) {
18746 ecode1 = SWIG_AsVal_int(obj0, &val1);
18747 if (!SWIG_IsOK(ecode1)) {
18748 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18749 }
18750 arg1 = static_cast< wxWindowVariant >(val1);
18751 }
18752 {
18753 if (!wxPyCheckForApp()) SWIG_fail;
18754 PyThreadState* __tstate = wxPyBeginAllowThreads();
18755 result = wxToggleButton::GetClassDefaultAttributes(arg1);
18756 wxPyEndAllowThreads(__tstate);
18757 if (PyErr_Occurred()) SWIG_fail;
18758 }
18759 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18760 return resultobj;
18761 fail:
18762 return NULL;
18763 }
18764
18765
18766 SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18767 PyObject *obj;
18768 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18769 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
18770 return SWIG_Py_Void();
18771 }
18772
18773 SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18774 return SWIG_Python_InitShadowInstance(args);
18775 }
18776
18777 SWIGINTERN int NotebookNameStr_set(PyObject *) {
18778 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
18779 return 1;
18780 }
18781
18782
18783 SWIGINTERN PyObject *NotebookNameStr_get(void) {
18784 PyObject *pyobj = 0;
18785
18786 {
18787 #if wxUSE_UNICODE
18788 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
18789 #else
18790 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
18791 #endif
18792 }
18793 return pyobj;
18794 }
18795
18796
18797 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18798 PyObject *resultobj = 0;
18799 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18800 size_t result;
18801 void *argp1 = 0 ;
18802 int res1 = 0 ;
18803 PyObject *swig_obj[1] ;
18804
18805 if (!args) SWIG_fail;
18806 swig_obj[0] = args;
18807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18808 if (!SWIG_IsOK(res1)) {
18809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18810 }
18811 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18812 {
18813 PyThreadState* __tstate = wxPyBeginAllowThreads();
18814 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
18815 wxPyEndAllowThreads(__tstate);
18816 if (PyErr_Occurred()) SWIG_fail;
18817 }
18818 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
18819 return resultobj;
18820 fail:
18821 return NULL;
18822 }
18823
18824
18825 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18826 PyObject *resultobj = 0;
18827 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18828 size_t arg2 ;
18829 wxWindow *result = 0 ;
18830 void *argp1 = 0 ;
18831 int res1 = 0 ;
18832 size_t val2 ;
18833 int ecode2 = 0 ;
18834 PyObject * obj0 = 0 ;
18835 PyObject * obj1 = 0 ;
18836 char * kwnames[] = {
18837 (char *) "self",(char *) "n", NULL
18838 };
18839
18840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
18841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18842 if (!SWIG_IsOK(res1)) {
18843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
18844 }
18845 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18846 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18847 if (!SWIG_IsOK(ecode2)) {
18848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
18849 }
18850 arg2 = static_cast< size_t >(val2);
18851 {
18852 PyThreadState* __tstate = wxPyBeginAllowThreads();
18853 result = (wxWindow *)(arg1)->GetPage(arg2);
18854 wxPyEndAllowThreads(__tstate);
18855 if (PyErr_Occurred()) SWIG_fail;
18856 }
18857 {
18858 resultobj = wxPyMake_wxObject(result, 0);
18859 }
18860 return resultobj;
18861 fail:
18862 return NULL;
18863 }
18864
18865
18866 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18867 PyObject *resultobj = 0;
18868 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18869 wxWindow *result = 0 ;
18870 void *argp1 = 0 ;
18871 int res1 = 0 ;
18872 PyObject *swig_obj[1] ;
18873
18874 if (!args) SWIG_fail;
18875 swig_obj[0] = args;
18876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18877 if (!SWIG_IsOK(res1)) {
18878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18879 }
18880 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18881 {
18882 PyThreadState* __tstate = wxPyBeginAllowThreads();
18883 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
18884 wxPyEndAllowThreads(__tstate);
18885 if (PyErr_Occurred()) SWIG_fail;
18886 }
18887 {
18888 resultobj = wxPyMake_wxObject(result, 0);
18889 }
18890 return resultobj;
18891 fail:
18892 return NULL;
18893 }
18894
18895
18896 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18897 PyObject *resultobj = 0;
18898 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18899 int result;
18900 void *argp1 = 0 ;
18901 int res1 = 0 ;
18902 PyObject *swig_obj[1] ;
18903
18904 if (!args) SWIG_fail;
18905 swig_obj[0] = args;
18906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18907 if (!SWIG_IsOK(res1)) {
18908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18909 }
18910 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18911 {
18912 PyThreadState* __tstate = wxPyBeginAllowThreads();
18913 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
18914 wxPyEndAllowThreads(__tstate);
18915 if (PyErr_Occurred()) SWIG_fail;
18916 }
18917 resultobj = SWIG_From_int(static_cast< int >(result));
18918 return resultobj;
18919 fail:
18920 return NULL;
18921 }
18922
18923
18924 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18925 PyObject *resultobj = 0;
18926 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18927 size_t arg2 ;
18928 wxString *arg3 = 0 ;
18929 bool result;
18930 void *argp1 = 0 ;
18931 int res1 = 0 ;
18932 size_t val2 ;
18933 int ecode2 = 0 ;
18934 bool temp3 = false ;
18935 PyObject * obj0 = 0 ;
18936 PyObject * obj1 = 0 ;
18937 PyObject * obj2 = 0 ;
18938 char * kwnames[] = {
18939 (char *) "self",(char *) "n",(char *) "strText", NULL
18940 };
18941
18942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18944 if (!SWIG_IsOK(res1)) {
18945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
18946 }
18947 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18948 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18949 if (!SWIG_IsOK(ecode2)) {
18950 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
18951 }
18952 arg2 = static_cast< size_t >(val2);
18953 {
18954 arg3 = wxString_in_helper(obj2);
18955 if (arg3 == NULL) SWIG_fail;
18956 temp3 = true;
18957 }
18958 {
18959 PyThreadState* __tstate = wxPyBeginAllowThreads();
18960 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
18961 wxPyEndAllowThreads(__tstate);
18962 if (PyErr_Occurred()) SWIG_fail;
18963 }
18964 {
18965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18966 }
18967 {
18968 if (temp3)
18969 delete arg3;
18970 }
18971 return resultobj;
18972 fail:
18973 {
18974 if (temp3)
18975 delete arg3;
18976 }
18977 return NULL;
18978 }
18979
18980
18981 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18982 PyObject *resultobj = 0;
18983 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18984 size_t arg2 ;
18985 wxString result;
18986 void *argp1 = 0 ;
18987 int res1 = 0 ;
18988 size_t val2 ;
18989 int ecode2 = 0 ;
18990 PyObject * obj0 = 0 ;
18991 PyObject * obj1 = 0 ;
18992 char * kwnames[] = {
18993 (char *) "self",(char *) "n", NULL
18994 };
18995
18996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
18997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18998 if (!SWIG_IsOK(res1)) {
18999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19000 }
19001 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19002 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19003 if (!SWIG_IsOK(ecode2)) {
19004 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19005 }
19006 arg2 = static_cast< size_t >(val2);
19007 {
19008 PyThreadState* __tstate = wxPyBeginAllowThreads();
19009 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19010 wxPyEndAllowThreads(__tstate);
19011 if (PyErr_Occurred()) SWIG_fail;
19012 }
19013 {
19014 #if wxUSE_UNICODE
19015 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19016 #else
19017 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19018 #endif
19019 }
19020 return resultobj;
19021 fail:
19022 return NULL;
19023 }
19024
19025
19026 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19027 PyObject *resultobj = 0;
19028 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19029 wxImageList *arg2 = (wxImageList *) 0 ;
19030 void *argp1 = 0 ;
19031 int res1 = 0 ;
19032 void *argp2 = 0 ;
19033 int res2 = 0 ;
19034 PyObject * obj0 = 0 ;
19035 PyObject * obj1 = 0 ;
19036 char * kwnames[] = {
19037 (char *) "self",(char *) "imageList", NULL
19038 };
19039
19040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19042 if (!SWIG_IsOK(res1)) {
19043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19044 }
19045 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19046 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19047 if (!SWIG_IsOK(res2)) {
19048 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19049 }
19050 arg2 = reinterpret_cast< wxImageList * >(argp2);
19051 {
19052 PyThreadState* __tstate = wxPyBeginAllowThreads();
19053 (arg1)->SetImageList(arg2);
19054 wxPyEndAllowThreads(__tstate);
19055 if (PyErr_Occurred()) SWIG_fail;
19056 }
19057 resultobj = SWIG_Py_Void();
19058 return resultobj;
19059 fail:
19060 return NULL;
19061 }
19062
19063
19064 SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19065 PyObject *resultobj = 0;
19066 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19067 wxImageList *arg2 = (wxImageList *) 0 ;
19068 void *argp1 = 0 ;
19069 int res1 = 0 ;
19070 int res2 = 0 ;
19071 PyObject * obj0 = 0 ;
19072 PyObject * obj1 = 0 ;
19073 char * kwnames[] = {
19074 (char *) "self",(char *) "imageList", NULL
19075 };
19076
19077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19079 if (!SWIG_IsOK(res1)) {
19080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19081 }
19082 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19083 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19084 if (!SWIG_IsOK(res2)) {
19085 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19086 }
19087 {
19088 PyThreadState* __tstate = wxPyBeginAllowThreads();
19089 (arg1)->AssignImageList(arg2);
19090 wxPyEndAllowThreads(__tstate);
19091 if (PyErr_Occurred()) SWIG_fail;
19092 }
19093 resultobj = SWIG_Py_Void();
19094 return resultobj;
19095 fail:
19096 return NULL;
19097 }
19098
19099
19100 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19101 PyObject *resultobj = 0;
19102 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19103 wxImageList *result = 0 ;
19104 void *argp1 = 0 ;
19105 int res1 = 0 ;
19106 PyObject *swig_obj[1] ;
19107
19108 if (!args) SWIG_fail;
19109 swig_obj[0] = args;
19110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19111 if (!SWIG_IsOK(res1)) {
19112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19113 }
19114 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19115 {
19116 PyThreadState* __tstate = wxPyBeginAllowThreads();
19117 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19118 wxPyEndAllowThreads(__tstate);
19119 if (PyErr_Occurred()) SWIG_fail;
19120 }
19121 {
19122 resultobj = wxPyMake_wxObject(result, (bool)0);
19123 }
19124 return resultobj;
19125 fail:
19126 return NULL;
19127 }
19128
19129
19130 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19131 PyObject *resultobj = 0;
19132 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19133 size_t arg2 ;
19134 int result;
19135 void *argp1 = 0 ;
19136 int res1 = 0 ;
19137 size_t val2 ;
19138 int ecode2 = 0 ;
19139 PyObject * obj0 = 0 ;
19140 PyObject * obj1 = 0 ;
19141 char * kwnames[] = {
19142 (char *) "self",(char *) "n", NULL
19143 };
19144
19145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19147 if (!SWIG_IsOK(res1)) {
19148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19149 }
19150 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19151 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19152 if (!SWIG_IsOK(ecode2)) {
19153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19154 }
19155 arg2 = static_cast< size_t >(val2);
19156 {
19157 PyThreadState* __tstate = wxPyBeginAllowThreads();
19158 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19159 wxPyEndAllowThreads(__tstate);
19160 if (PyErr_Occurred()) SWIG_fail;
19161 }
19162 resultobj = SWIG_From_int(static_cast< int >(result));
19163 return resultobj;
19164 fail:
19165 return NULL;
19166 }
19167
19168
19169 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19170 PyObject *resultobj = 0;
19171 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19172 size_t arg2 ;
19173 int arg3 ;
19174 bool result;
19175 void *argp1 = 0 ;
19176 int res1 = 0 ;
19177 size_t val2 ;
19178 int ecode2 = 0 ;
19179 int val3 ;
19180 int ecode3 = 0 ;
19181 PyObject * obj0 = 0 ;
19182 PyObject * obj1 = 0 ;
19183 PyObject * obj2 = 0 ;
19184 char * kwnames[] = {
19185 (char *) "self",(char *) "n",(char *) "imageId", NULL
19186 };
19187
19188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19190 if (!SWIG_IsOK(res1)) {
19191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19192 }
19193 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19194 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19195 if (!SWIG_IsOK(ecode2)) {
19196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19197 }
19198 arg2 = static_cast< size_t >(val2);
19199 ecode3 = SWIG_AsVal_int(obj2, &val3);
19200 if (!SWIG_IsOK(ecode3)) {
19201 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19202 }
19203 arg3 = static_cast< int >(val3);
19204 {
19205 PyThreadState* __tstate = wxPyBeginAllowThreads();
19206 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19207 wxPyEndAllowThreads(__tstate);
19208 if (PyErr_Occurred()) SWIG_fail;
19209 }
19210 {
19211 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19212 }
19213 return resultobj;
19214 fail:
19215 return NULL;
19216 }
19217
19218
19219 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19220 PyObject *resultobj = 0;
19221 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19222 wxSize *arg2 = 0 ;
19223 void *argp1 = 0 ;
19224 int res1 = 0 ;
19225 wxSize temp2 ;
19226 PyObject * obj0 = 0 ;
19227 PyObject * obj1 = 0 ;
19228 char * kwnames[] = {
19229 (char *) "self",(char *) "size", NULL
19230 };
19231
19232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19234 if (!SWIG_IsOK(res1)) {
19235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19236 }
19237 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19238 {
19239 arg2 = &temp2;
19240 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19241 }
19242 {
19243 PyThreadState* __tstate = wxPyBeginAllowThreads();
19244 (arg1)->SetPageSize((wxSize const &)*arg2);
19245 wxPyEndAllowThreads(__tstate);
19246 if (PyErr_Occurred()) SWIG_fail;
19247 }
19248 resultobj = SWIG_Py_Void();
19249 return resultobj;
19250 fail:
19251 return NULL;
19252 }
19253
19254
19255 SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19256 PyObject *resultobj = 0;
19257 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19258 wxSize *arg2 = 0 ;
19259 wxSize result;
19260 void *argp1 = 0 ;
19261 int res1 = 0 ;
19262 wxSize temp2 ;
19263 PyObject * obj0 = 0 ;
19264 PyObject * obj1 = 0 ;
19265 char * kwnames[] = {
19266 (char *) "self",(char *) "sizePage", NULL
19267 };
19268
19269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19271 if (!SWIG_IsOK(res1)) {
19272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19273 }
19274 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19275 {
19276 arg2 = &temp2;
19277 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19278 }
19279 {
19280 PyThreadState* __tstate = wxPyBeginAllowThreads();
19281 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19282 wxPyEndAllowThreads(__tstate);
19283 if (PyErr_Occurred()) SWIG_fail;
19284 }
19285 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19286 return resultobj;
19287 fail:
19288 return NULL;
19289 }
19290
19291
19292 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19293 PyObject *resultobj = 0;
19294 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19295 unsigned int result;
19296 void *argp1 = 0 ;
19297 int res1 = 0 ;
19298 PyObject *swig_obj[1] ;
19299
19300 if (!args) SWIG_fail;
19301 swig_obj[0] = args;
19302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19303 if (!SWIG_IsOK(res1)) {
19304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19305 }
19306 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19307 {
19308 PyThreadState* __tstate = wxPyBeginAllowThreads();
19309 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
19310 wxPyEndAllowThreads(__tstate);
19311 if (PyErr_Occurred()) SWIG_fail;
19312 }
19313 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19314 return resultobj;
19315 fail:
19316 return NULL;
19317 }
19318
19319
19320 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19321 PyObject *resultobj = 0;
19322 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19323 unsigned int arg2 ;
19324 void *argp1 = 0 ;
19325 int res1 = 0 ;
19326 unsigned int val2 ;
19327 int ecode2 = 0 ;
19328 PyObject * obj0 = 0 ;
19329 PyObject * obj1 = 0 ;
19330 char * kwnames[] = {
19331 (char *) "self",(char *) "internalBorder", NULL
19332 };
19333
19334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19336 if (!SWIG_IsOK(res1)) {
19337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19338 }
19339 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19340 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
19341 if (!SWIG_IsOK(ecode2)) {
19342 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
19343 }
19344 arg2 = static_cast< unsigned int >(val2);
19345 {
19346 PyThreadState* __tstate = wxPyBeginAllowThreads();
19347 (arg1)->SetInternalBorder(arg2);
19348 wxPyEndAllowThreads(__tstate);
19349 if (PyErr_Occurred()) SWIG_fail;
19350 }
19351 resultobj = SWIG_Py_Void();
19352 return resultobj;
19353 fail:
19354 return NULL;
19355 }
19356
19357
19358 SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19359 PyObject *resultobj = 0;
19360 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19361 bool result;
19362 void *argp1 = 0 ;
19363 int res1 = 0 ;
19364 PyObject *swig_obj[1] ;
19365
19366 if (!args) SWIG_fail;
19367 swig_obj[0] = args;
19368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19369 if (!SWIG_IsOK(res1)) {
19370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19371 }
19372 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19373 {
19374 PyThreadState* __tstate = wxPyBeginAllowThreads();
19375 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19376 wxPyEndAllowThreads(__tstate);
19377 if (PyErr_Occurred()) SWIG_fail;
19378 }
19379 {
19380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19381 }
19382 return resultobj;
19383 fail:
19384 return NULL;
19385 }
19386
19387
19388 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19389 PyObject *resultobj = 0;
19390 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19391 int arg2 ;
19392 void *argp1 = 0 ;
19393 int res1 = 0 ;
19394 int val2 ;
19395 int ecode2 = 0 ;
19396 PyObject * obj0 = 0 ;
19397 PyObject * obj1 = 0 ;
19398 char * kwnames[] = {
19399 (char *) "self",(char *) "margin", NULL
19400 };
19401
19402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19404 if (!SWIG_IsOK(res1)) {
19405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19406 }
19407 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19408 ecode2 = SWIG_AsVal_int(obj1, &val2);
19409 if (!SWIG_IsOK(ecode2)) {
19410 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19411 }
19412 arg2 = static_cast< int >(val2);
19413 {
19414 PyThreadState* __tstate = wxPyBeginAllowThreads();
19415 (arg1)->SetControlMargin(arg2);
19416 wxPyEndAllowThreads(__tstate);
19417 if (PyErr_Occurred()) SWIG_fail;
19418 }
19419 resultobj = SWIG_Py_Void();
19420 return resultobj;
19421 fail:
19422 return NULL;
19423 }
19424
19425
19426 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19427 PyObject *resultobj = 0;
19428 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19429 int result;
19430 void *argp1 = 0 ;
19431 int res1 = 0 ;
19432 PyObject *swig_obj[1] ;
19433
19434 if (!args) SWIG_fail;
19435 swig_obj[0] = args;
19436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19437 if (!SWIG_IsOK(res1)) {
19438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19439 }
19440 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19441 {
19442 PyThreadState* __tstate = wxPyBeginAllowThreads();
19443 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19444 wxPyEndAllowThreads(__tstate);
19445 if (PyErr_Occurred()) SWIG_fail;
19446 }
19447 resultobj = SWIG_From_int(static_cast< int >(result));
19448 return resultobj;
19449 fail:
19450 return NULL;
19451 }
19452
19453
19454 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19455 PyObject *resultobj = 0;
19456 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19457 bool arg2 ;
19458 void *argp1 = 0 ;
19459 int res1 = 0 ;
19460 bool val2 ;
19461 int ecode2 = 0 ;
19462 PyObject * obj0 = 0 ;
19463 PyObject * obj1 = 0 ;
19464 char * kwnames[] = {
19465 (char *) "self",(char *) "fit", NULL
19466 };
19467
19468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19470 if (!SWIG_IsOK(res1)) {
19471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19472 }
19473 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19474 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19475 if (!SWIG_IsOK(ecode2)) {
19476 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19477 }
19478 arg2 = static_cast< bool >(val2);
19479 {
19480 PyThreadState* __tstate = wxPyBeginAllowThreads();
19481 (arg1)->SetFitToCurrentPage(arg2);
19482 wxPyEndAllowThreads(__tstate);
19483 if (PyErr_Occurred()) SWIG_fail;
19484 }
19485 resultobj = SWIG_Py_Void();
19486 return resultobj;
19487 fail:
19488 return NULL;
19489 }
19490
19491
19492 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19493 PyObject *resultobj = 0;
19494 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19495 bool result;
19496 void *argp1 = 0 ;
19497 int res1 = 0 ;
19498 PyObject *swig_obj[1] ;
19499
19500 if (!args) SWIG_fail;
19501 swig_obj[0] = args;
19502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19503 if (!SWIG_IsOK(res1)) {
19504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19505 }
19506 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19507 {
19508 PyThreadState* __tstate = wxPyBeginAllowThreads();
19509 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19510 wxPyEndAllowThreads(__tstate);
19511 if (PyErr_Occurred()) SWIG_fail;
19512 }
19513 {
19514 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19515 }
19516 return resultobj;
19517 fail:
19518 return NULL;
19519 }
19520
19521
19522 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19523 PyObject *resultobj = 0;
19524 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19525 wxSizer *result = 0 ;
19526 void *argp1 = 0 ;
19527 int res1 = 0 ;
19528 PyObject *swig_obj[1] ;
19529
19530 if (!args) SWIG_fail;
19531 swig_obj[0] = args;
19532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19533 if (!SWIG_IsOK(res1)) {
19534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19535 }
19536 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19537 {
19538 PyThreadState* __tstate = wxPyBeginAllowThreads();
19539 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19540 wxPyEndAllowThreads(__tstate);
19541 if (PyErr_Occurred()) SWIG_fail;
19542 }
19543 {
19544 resultobj = wxPyMake_wxObject(result, (bool)0);
19545 }
19546 return resultobj;
19547 fail:
19548 return NULL;
19549 }
19550
19551
19552 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19553 PyObject *resultobj = 0;
19554 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19555 size_t arg2 ;
19556 bool result;
19557 void *argp1 = 0 ;
19558 int res1 = 0 ;
19559 size_t val2 ;
19560 int ecode2 = 0 ;
19561 PyObject * obj0 = 0 ;
19562 PyObject * obj1 = 0 ;
19563 char * kwnames[] = {
19564 (char *) "self",(char *) "n", NULL
19565 };
19566
19567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19569 if (!SWIG_IsOK(res1)) {
19570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19571 }
19572 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19573 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19574 if (!SWIG_IsOK(ecode2)) {
19575 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19576 }
19577 arg2 = static_cast< size_t >(val2);
19578 {
19579 PyThreadState* __tstate = wxPyBeginAllowThreads();
19580 result = (bool)(arg1)->DeletePage(arg2);
19581 wxPyEndAllowThreads(__tstate);
19582 if (PyErr_Occurred()) SWIG_fail;
19583 }
19584 {
19585 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19586 }
19587 return resultobj;
19588 fail:
19589 return NULL;
19590 }
19591
19592
19593 SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19594 PyObject *resultobj = 0;
19595 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19596 size_t arg2 ;
19597 bool result;
19598 void *argp1 = 0 ;
19599 int res1 = 0 ;
19600 size_t val2 ;
19601 int ecode2 = 0 ;
19602 PyObject * obj0 = 0 ;
19603 PyObject * obj1 = 0 ;
19604 char * kwnames[] = {
19605 (char *) "self",(char *) "n", NULL
19606 };
19607
19608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19610 if (!SWIG_IsOK(res1)) {
19611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19612 }
19613 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19614 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19615 if (!SWIG_IsOK(ecode2)) {
19616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19617 }
19618 arg2 = static_cast< size_t >(val2);
19619 {
19620 PyThreadState* __tstate = wxPyBeginAllowThreads();
19621 result = (bool)(arg1)->RemovePage(arg2);
19622 wxPyEndAllowThreads(__tstate);
19623 if (PyErr_Occurred()) SWIG_fail;
19624 }
19625 {
19626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19627 }
19628 return resultobj;
19629 fail:
19630 return NULL;
19631 }
19632
19633
19634 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19635 PyObject *resultobj = 0;
19636 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19637 bool result;
19638 void *argp1 = 0 ;
19639 int res1 = 0 ;
19640 PyObject *swig_obj[1] ;
19641
19642 if (!args) SWIG_fail;
19643 swig_obj[0] = args;
19644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19645 if (!SWIG_IsOK(res1)) {
19646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19647 }
19648 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19649 {
19650 PyThreadState* __tstate = wxPyBeginAllowThreads();
19651 result = (bool)(arg1)->DeleteAllPages();
19652 wxPyEndAllowThreads(__tstate);
19653 if (PyErr_Occurred()) SWIG_fail;
19654 }
19655 {
19656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19657 }
19658 return resultobj;
19659 fail:
19660 return NULL;
19661 }
19662
19663
19664 SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19665 PyObject *resultobj = 0;
19666 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19667 wxWindow *arg2 = (wxWindow *) 0 ;
19668 wxString *arg3 = 0 ;
19669 bool arg4 = (bool) false ;
19670 int arg5 = (int) -1 ;
19671 bool result;
19672 void *argp1 = 0 ;
19673 int res1 = 0 ;
19674 void *argp2 = 0 ;
19675 int res2 = 0 ;
19676 bool temp3 = false ;
19677 bool val4 ;
19678 int ecode4 = 0 ;
19679 int val5 ;
19680 int ecode5 = 0 ;
19681 PyObject * obj0 = 0 ;
19682 PyObject * obj1 = 0 ;
19683 PyObject * obj2 = 0 ;
19684 PyObject * obj3 = 0 ;
19685 PyObject * obj4 = 0 ;
19686 char * kwnames[] = {
19687 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19688 };
19689
19690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19692 if (!SWIG_IsOK(res1)) {
19693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19694 }
19695 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19696 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19697 if (!SWIG_IsOK(res2)) {
19698 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
19699 }
19700 arg2 = reinterpret_cast< wxWindow * >(argp2);
19701 {
19702 arg3 = wxString_in_helper(obj2);
19703 if (arg3 == NULL) SWIG_fail;
19704 temp3 = true;
19705 }
19706 if (obj3) {
19707 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19708 if (!SWIG_IsOK(ecode4)) {
19709 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
19710 }
19711 arg4 = static_cast< bool >(val4);
19712 }
19713 if (obj4) {
19714 ecode5 = SWIG_AsVal_int(obj4, &val5);
19715 if (!SWIG_IsOK(ecode5)) {
19716 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
19717 }
19718 arg5 = static_cast< int >(val5);
19719 }
19720 {
19721 PyThreadState* __tstate = wxPyBeginAllowThreads();
19722 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
19723 wxPyEndAllowThreads(__tstate);
19724 if (PyErr_Occurred()) SWIG_fail;
19725 }
19726 {
19727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19728 }
19729 {
19730 if (temp3)
19731 delete arg3;
19732 }
19733 return resultobj;
19734 fail:
19735 {
19736 if (temp3)
19737 delete arg3;
19738 }
19739 return NULL;
19740 }
19741
19742
19743 SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19744 PyObject *resultobj = 0;
19745 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19746 size_t arg2 ;
19747 wxWindow *arg3 = (wxWindow *) 0 ;
19748 wxString *arg4 = 0 ;
19749 bool arg5 = (bool) false ;
19750 int arg6 = (int) -1 ;
19751 bool result;
19752 void *argp1 = 0 ;
19753 int res1 = 0 ;
19754 size_t val2 ;
19755 int ecode2 = 0 ;
19756 void *argp3 = 0 ;
19757 int res3 = 0 ;
19758 bool temp4 = false ;
19759 bool val5 ;
19760 int ecode5 = 0 ;
19761 int val6 ;
19762 int ecode6 = 0 ;
19763 PyObject * obj0 = 0 ;
19764 PyObject * obj1 = 0 ;
19765 PyObject * obj2 = 0 ;
19766 PyObject * obj3 = 0 ;
19767 PyObject * obj4 = 0 ;
19768 PyObject * obj5 = 0 ;
19769 char * kwnames[] = {
19770 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19771 };
19772
19773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19775 if (!SWIG_IsOK(res1)) {
19776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19777 }
19778 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19779 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19780 if (!SWIG_IsOK(ecode2)) {
19781 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
19782 }
19783 arg2 = static_cast< size_t >(val2);
19784 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
19785 if (!SWIG_IsOK(res3)) {
19786 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
19787 }
19788 arg3 = reinterpret_cast< wxWindow * >(argp3);
19789 {
19790 arg4 = wxString_in_helper(obj3);
19791 if (arg4 == NULL) SWIG_fail;
19792 temp4 = true;
19793 }
19794 if (obj4) {
19795 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19796 if (!SWIG_IsOK(ecode5)) {
19797 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
19798 }
19799 arg5 = static_cast< bool >(val5);
19800 }
19801 if (obj5) {
19802 ecode6 = SWIG_AsVal_int(obj5, &val6);
19803 if (!SWIG_IsOK(ecode6)) {
19804 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
19805 }
19806 arg6 = static_cast< int >(val6);
19807 }
19808 {
19809 PyThreadState* __tstate = wxPyBeginAllowThreads();
19810 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
19811 wxPyEndAllowThreads(__tstate);
19812 if (PyErr_Occurred()) SWIG_fail;
19813 }
19814 {
19815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19816 }
19817 {
19818 if (temp4)
19819 delete arg4;
19820 }
19821 return resultobj;
19822 fail:
19823 {
19824 if (temp4)
19825 delete arg4;
19826 }
19827 return NULL;
19828 }
19829
19830
19831 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19832 PyObject *resultobj = 0;
19833 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19834 size_t arg2 ;
19835 int result;
19836 void *argp1 = 0 ;
19837 int res1 = 0 ;
19838 size_t val2 ;
19839 int ecode2 = 0 ;
19840 PyObject * obj0 = 0 ;
19841 PyObject * obj1 = 0 ;
19842 char * kwnames[] = {
19843 (char *) "self",(char *) "n", NULL
19844 };
19845
19846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19848 if (!SWIG_IsOK(res1)) {
19849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19850 }
19851 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19852 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19853 if (!SWIG_IsOK(ecode2)) {
19854 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
19855 }
19856 arg2 = static_cast< size_t >(val2);
19857 {
19858 PyThreadState* __tstate = wxPyBeginAllowThreads();
19859 result = (int)(arg1)->SetSelection(arg2);
19860 wxPyEndAllowThreads(__tstate);
19861 if (PyErr_Occurred()) SWIG_fail;
19862 }
19863 resultobj = SWIG_From_int(static_cast< int >(result));
19864 return resultobj;
19865 fail:
19866 return NULL;
19867 }
19868
19869
19870 SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19871 PyObject *resultobj = 0;
19872 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19873 bool arg2 = (bool) true ;
19874 void *argp1 = 0 ;
19875 int res1 = 0 ;
19876 bool val2 ;
19877 int ecode2 = 0 ;
19878 PyObject * obj0 = 0 ;
19879 PyObject * obj1 = 0 ;
19880 char * kwnames[] = {
19881 (char *) "self",(char *) "forward", NULL
19882 };
19883
19884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19886 if (!SWIG_IsOK(res1)) {
19887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19888 }
19889 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19890 if (obj1) {
19891 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19892 if (!SWIG_IsOK(ecode2)) {
19893 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
19894 }
19895 arg2 = static_cast< bool >(val2);
19896 }
19897 {
19898 PyThreadState* __tstate = wxPyBeginAllowThreads();
19899 (arg1)->AdvanceSelection(arg2);
19900 wxPyEndAllowThreads(__tstate);
19901 if (PyErr_Occurred()) SWIG_fail;
19902 }
19903 resultobj = SWIG_Py_Void();
19904 return resultobj;
19905 fail:
19906 return NULL;
19907 }
19908
19909
19910 SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19911 PyObject *resultobj = 0;
19912 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19913 wxPoint *arg2 = 0 ;
19914 long *arg3 = (long *) 0 ;
19915 int result;
19916 void *argp1 = 0 ;
19917 int res1 = 0 ;
19918 wxPoint temp2 ;
19919 long temp3 ;
19920 int res3 = SWIG_TMPOBJ ;
19921 PyObject * obj0 = 0 ;
19922 PyObject * obj1 = 0 ;
19923 char * kwnames[] = {
19924 (char *) "self",(char *) "pt", NULL
19925 };
19926
19927 arg3 = &temp3;
19928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
19929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19930 if (!SWIG_IsOK(res1)) {
19931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19932 }
19933 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19934 {
19935 arg2 = &temp2;
19936 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19937 }
19938 {
19939 PyThreadState* __tstate = wxPyBeginAllowThreads();
19940 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
19941 wxPyEndAllowThreads(__tstate);
19942 if (PyErr_Occurred()) SWIG_fail;
19943 }
19944 resultobj = SWIG_From_int(static_cast< int >(result));
19945 if (SWIG_IsTmpObj(res3)) {
19946 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
19947 } else {
19948 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19949 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
19950 }
19951 return resultobj;
19952 fail:
19953 return NULL;
19954 }
19955
19956
19957 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19958 PyObject *resultobj = 0;
19959 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19960 SwigValueWrapper<wxVisualAttributes > result;
19961 int val1 ;
19962 int ecode1 = 0 ;
19963 PyObject * obj0 = 0 ;
19964 char * kwnames[] = {
19965 (char *) "variant", NULL
19966 };
19967
19968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19969 if (obj0) {
19970 ecode1 = SWIG_AsVal_int(obj0, &val1);
19971 if (!SWIG_IsOK(ecode1)) {
19972 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19973 }
19974 arg1 = static_cast< wxWindowVariant >(val1);
19975 }
19976 {
19977 if (!wxPyCheckForApp()) SWIG_fail;
19978 PyThreadState* __tstate = wxPyBeginAllowThreads();
19979 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
19980 wxPyEndAllowThreads(__tstate);
19981 if (PyErr_Occurred()) SWIG_fail;
19982 }
19983 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19984 return resultobj;
19985 fail:
19986 return NULL;
19987 }
19988
19989
19990 SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19991 PyObject *obj;
19992 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19993 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
19994 return SWIG_Py_Void();
19995 }
19996
19997 SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19998 PyObject *resultobj = 0;
19999 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20000 int arg2 = (int) 0 ;
20001 int arg3 = (int) -1 ;
20002 int arg4 = (int) -1 ;
20003 wxBookCtrlBaseEvent *result = 0 ;
20004 int val1 ;
20005 int ecode1 = 0 ;
20006 int val2 ;
20007 int ecode2 = 0 ;
20008 int val3 ;
20009 int ecode3 = 0 ;
20010 int val4 ;
20011 int ecode4 = 0 ;
20012 PyObject * obj0 = 0 ;
20013 PyObject * obj1 = 0 ;
20014 PyObject * obj2 = 0 ;
20015 PyObject * obj3 = 0 ;
20016 char * kwnames[] = {
20017 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20018 };
20019
20020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20021 if (obj0) {
20022 ecode1 = SWIG_AsVal_int(obj0, &val1);
20023 if (!SWIG_IsOK(ecode1)) {
20024 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20025 }
20026 arg1 = static_cast< wxEventType >(val1);
20027 }
20028 if (obj1) {
20029 ecode2 = SWIG_AsVal_int(obj1, &val2);
20030 if (!SWIG_IsOK(ecode2)) {
20031 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20032 }
20033 arg2 = static_cast< int >(val2);
20034 }
20035 if (obj2) {
20036 ecode3 = SWIG_AsVal_int(obj2, &val3);
20037 if (!SWIG_IsOK(ecode3)) {
20038 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20039 }
20040 arg3 = static_cast< int >(val3);
20041 }
20042 if (obj3) {
20043 ecode4 = SWIG_AsVal_int(obj3, &val4);
20044 if (!SWIG_IsOK(ecode4)) {
20045 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20046 }
20047 arg4 = static_cast< int >(val4);
20048 }
20049 {
20050 PyThreadState* __tstate = wxPyBeginAllowThreads();
20051 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20052 wxPyEndAllowThreads(__tstate);
20053 if (PyErr_Occurred()) SWIG_fail;
20054 }
20055 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20056 return resultobj;
20057 fail:
20058 return NULL;
20059 }
20060
20061
20062 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20063 PyObject *resultobj = 0;
20064 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20065 int result;
20066 void *argp1 = 0 ;
20067 int res1 = 0 ;
20068 PyObject *swig_obj[1] ;
20069
20070 if (!args) SWIG_fail;
20071 swig_obj[0] = args;
20072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20073 if (!SWIG_IsOK(res1)) {
20074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20075 }
20076 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20077 {
20078 PyThreadState* __tstate = wxPyBeginAllowThreads();
20079 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20080 wxPyEndAllowThreads(__tstate);
20081 if (PyErr_Occurred()) SWIG_fail;
20082 }
20083 resultobj = SWIG_From_int(static_cast< int >(result));
20084 return resultobj;
20085 fail:
20086 return NULL;
20087 }
20088
20089
20090 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20091 PyObject *resultobj = 0;
20092 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20093 int arg2 ;
20094 void *argp1 = 0 ;
20095 int res1 = 0 ;
20096 int val2 ;
20097 int ecode2 = 0 ;
20098 PyObject * obj0 = 0 ;
20099 PyObject * obj1 = 0 ;
20100 char * kwnames[] = {
20101 (char *) "self",(char *) "nSel", NULL
20102 };
20103
20104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20106 if (!SWIG_IsOK(res1)) {
20107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20108 }
20109 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20110 ecode2 = SWIG_AsVal_int(obj1, &val2);
20111 if (!SWIG_IsOK(ecode2)) {
20112 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20113 }
20114 arg2 = static_cast< int >(val2);
20115 {
20116 PyThreadState* __tstate = wxPyBeginAllowThreads();
20117 (arg1)->SetSelection(arg2);
20118 wxPyEndAllowThreads(__tstate);
20119 if (PyErr_Occurred()) SWIG_fail;
20120 }
20121 resultobj = SWIG_Py_Void();
20122 return resultobj;
20123 fail:
20124 return NULL;
20125 }
20126
20127
20128 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20129 PyObject *resultobj = 0;
20130 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20131 int result;
20132 void *argp1 = 0 ;
20133 int res1 = 0 ;
20134 PyObject *swig_obj[1] ;
20135
20136 if (!args) SWIG_fail;
20137 swig_obj[0] = args;
20138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20139 if (!SWIG_IsOK(res1)) {
20140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20141 }
20142 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20143 {
20144 PyThreadState* __tstate = wxPyBeginAllowThreads();
20145 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20146 wxPyEndAllowThreads(__tstate);
20147 if (PyErr_Occurred()) SWIG_fail;
20148 }
20149 resultobj = SWIG_From_int(static_cast< int >(result));
20150 return resultobj;
20151 fail:
20152 return NULL;
20153 }
20154
20155
20156 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20157 PyObject *resultobj = 0;
20158 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20159 int arg2 ;
20160 void *argp1 = 0 ;
20161 int res1 = 0 ;
20162 int val2 ;
20163 int ecode2 = 0 ;
20164 PyObject * obj0 = 0 ;
20165 PyObject * obj1 = 0 ;
20166 char * kwnames[] = {
20167 (char *) "self",(char *) "nOldSel", NULL
20168 };
20169
20170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20172 if (!SWIG_IsOK(res1)) {
20173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20174 }
20175 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20176 ecode2 = SWIG_AsVal_int(obj1, &val2);
20177 if (!SWIG_IsOK(ecode2)) {
20178 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20179 }
20180 arg2 = static_cast< int >(val2);
20181 {
20182 PyThreadState* __tstate = wxPyBeginAllowThreads();
20183 (arg1)->SetOldSelection(arg2);
20184 wxPyEndAllowThreads(__tstate);
20185 if (PyErr_Occurred()) SWIG_fail;
20186 }
20187 resultobj = SWIG_Py_Void();
20188 return resultobj;
20189 fail:
20190 return NULL;
20191 }
20192
20193
20194 SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20195 PyObject *obj;
20196 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20197 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20198 return SWIG_Py_Void();
20199 }
20200
20201 SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20202 return SWIG_Python_InitShadowInstance(args);
20203 }
20204
20205 SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20206 PyObject *resultobj = 0;
20207 wxWindow *arg1 = (wxWindow *) 0 ;
20208 int arg2 = (int) -1 ;
20209 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20210 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20211 wxSize const &arg4_defvalue = wxDefaultSize ;
20212 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20213 long arg5 = (long) 0 ;
20214 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20215 wxString *arg6 = (wxString *) &arg6_defvalue ;
20216 wxNotebook *result = 0 ;
20217 void *argp1 = 0 ;
20218 int res1 = 0 ;
20219 int val2 ;
20220 int ecode2 = 0 ;
20221 wxPoint temp3 ;
20222 wxSize temp4 ;
20223 long val5 ;
20224 int ecode5 = 0 ;
20225 bool temp6 = false ;
20226 PyObject * obj0 = 0 ;
20227 PyObject * obj1 = 0 ;
20228 PyObject * obj2 = 0 ;
20229 PyObject * obj3 = 0 ;
20230 PyObject * obj4 = 0 ;
20231 PyObject * obj5 = 0 ;
20232 char * kwnames[] = {
20233 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20234 };
20235
20236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20238 if (!SWIG_IsOK(res1)) {
20239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20240 }
20241 arg1 = reinterpret_cast< wxWindow * >(argp1);
20242 if (obj1) {
20243 ecode2 = SWIG_AsVal_int(obj1, &val2);
20244 if (!SWIG_IsOK(ecode2)) {
20245 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20246 }
20247 arg2 = static_cast< int >(val2);
20248 }
20249 if (obj2) {
20250 {
20251 arg3 = &temp3;
20252 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20253 }
20254 }
20255 if (obj3) {
20256 {
20257 arg4 = &temp4;
20258 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20259 }
20260 }
20261 if (obj4) {
20262 ecode5 = SWIG_AsVal_long(obj4, &val5);
20263 if (!SWIG_IsOK(ecode5)) {
20264 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20265 }
20266 arg5 = static_cast< long >(val5);
20267 }
20268 if (obj5) {
20269 {
20270 arg6 = wxString_in_helper(obj5);
20271 if (arg6 == NULL) SWIG_fail;
20272 temp6 = true;
20273 }
20274 }
20275 {
20276 if (!wxPyCheckForApp()) SWIG_fail;
20277 PyThreadState* __tstate = wxPyBeginAllowThreads();
20278 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20279 wxPyEndAllowThreads(__tstate);
20280 if (PyErr_Occurred()) SWIG_fail;
20281 }
20282 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20283 {
20284 if (temp6)
20285 delete arg6;
20286 }
20287 return resultobj;
20288 fail:
20289 {
20290 if (temp6)
20291 delete arg6;
20292 }
20293 return NULL;
20294 }
20295
20296
20297 SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20298 PyObject *resultobj = 0;
20299 wxNotebook *result = 0 ;
20300
20301 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20302 {
20303 if (!wxPyCheckForApp()) SWIG_fail;
20304 PyThreadState* __tstate = wxPyBeginAllowThreads();
20305 result = (wxNotebook *)new wxNotebook();
20306 wxPyEndAllowThreads(__tstate);
20307 if (PyErr_Occurred()) SWIG_fail;
20308 }
20309 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20310 return resultobj;
20311 fail:
20312 return NULL;
20313 }
20314
20315
20316 SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20317 PyObject *resultobj = 0;
20318 wxNotebook *arg1 = (wxNotebook *) 0 ;
20319 wxWindow *arg2 = (wxWindow *) 0 ;
20320 int arg3 = (int) -1 ;
20321 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20322 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20323 wxSize const &arg5_defvalue = wxDefaultSize ;
20324 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20325 long arg6 = (long) 0 ;
20326 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20327 wxString *arg7 = (wxString *) &arg7_defvalue ;
20328 bool result;
20329 void *argp1 = 0 ;
20330 int res1 = 0 ;
20331 void *argp2 = 0 ;
20332 int res2 = 0 ;
20333 int val3 ;
20334 int ecode3 = 0 ;
20335 wxPoint temp4 ;
20336 wxSize temp5 ;
20337 long val6 ;
20338 int ecode6 = 0 ;
20339 bool temp7 = false ;
20340 PyObject * obj0 = 0 ;
20341 PyObject * obj1 = 0 ;
20342 PyObject * obj2 = 0 ;
20343 PyObject * obj3 = 0 ;
20344 PyObject * obj4 = 0 ;
20345 PyObject * obj5 = 0 ;
20346 PyObject * obj6 = 0 ;
20347 char * kwnames[] = {
20348 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20349 };
20350
20351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20353 if (!SWIG_IsOK(res1)) {
20354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20355 }
20356 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20357 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20358 if (!SWIG_IsOK(res2)) {
20359 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20360 }
20361 arg2 = reinterpret_cast< wxWindow * >(argp2);
20362 if (obj2) {
20363 ecode3 = SWIG_AsVal_int(obj2, &val3);
20364 if (!SWIG_IsOK(ecode3)) {
20365 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20366 }
20367 arg3 = static_cast< int >(val3);
20368 }
20369 if (obj3) {
20370 {
20371 arg4 = &temp4;
20372 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20373 }
20374 }
20375 if (obj4) {
20376 {
20377 arg5 = &temp5;
20378 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20379 }
20380 }
20381 if (obj5) {
20382 ecode6 = SWIG_AsVal_long(obj5, &val6);
20383 if (!SWIG_IsOK(ecode6)) {
20384 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20385 }
20386 arg6 = static_cast< long >(val6);
20387 }
20388 if (obj6) {
20389 {
20390 arg7 = wxString_in_helper(obj6);
20391 if (arg7 == NULL) SWIG_fail;
20392 temp7 = true;
20393 }
20394 }
20395 {
20396 PyThreadState* __tstate = wxPyBeginAllowThreads();
20397 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20398 wxPyEndAllowThreads(__tstate);
20399 if (PyErr_Occurred()) SWIG_fail;
20400 }
20401 {
20402 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20403 }
20404 {
20405 if (temp7)
20406 delete arg7;
20407 }
20408 return resultobj;
20409 fail:
20410 {
20411 if (temp7)
20412 delete arg7;
20413 }
20414 return NULL;
20415 }
20416
20417
20418 SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20419 PyObject *resultobj = 0;
20420 wxNotebook *arg1 = (wxNotebook *) 0 ;
20421 int result;
20422 void *argp1 = 0 ;
20423 int res1 = 0 ;
20424 PyObject *swig_obj[1] ;
20425
20426 if (!args) SWIG_fail;
20427 swig_obj[0] = args;
20428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20429 if (!SWIG_IsOK(res1)) {
20430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20431 }
20432 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20433 {
20434 PyThreadState* __tstate = wxPyBeginAllowThreads();
20435 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20436 wxPyEndAllowThreads(__tstate);
20437 if (PyErr_Occurred()) SWIG_fail;
20438 }
20439 resultobj = SWIG_From_int(static_cast< int >(result));
20440 return resultobj;
20441 fail:
20442 return NULL;
20443 }
20444
20445
20446 SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20447 PyObject *resultobj = 0;
20448 wxNotebook *arg1 = (wxNotebook *) 0 ;
20449 wxSize *arg2 = 0 ;
20450 void *argp1 = 0 ;
20451 int res1 = 0 ;
20452 wxSize temp2 ;
20453 PyObject * obj0 = 0 ;
20454 PyObject * obj1 = 0 ;
20455 char * kwnames[] = {
20456 (char *) "self",(char *) "padding", NULL
20457 };
20458
20459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20461 if (!SWIG_IsOK(res1)) {
20462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20463 }
20464 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20465 {
20466 arg2 = &temp2;
20467 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20468 }
20469 {
20470 PyThreadState* __tstate = wxPyBeginAllowThreads();
20471 (arg1)->SetPadding((wxSize const &)*arg2);
20472 wxPyEndAllowThreads(__tstate);
20473 if (PyErr_Occurred()) SWIG_fail;
20474 }
20475 resultobj = SWIG_Py_Void();
20476 return resultobj;
20477 fail:
20478 return NULL;
20479 }
20480
20481
20482 SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20483 PyObject *resultobj = 0;
20484 wxNotebook *arg1 = (wxNotebook *) 0 ;
20485 wxSize *arg2 = 0 ;
20486 void *argp1 = 0 ;
20487 int res1 = 0 ;
20488 wxSize temp2 ;
20489 PyObject * obj0 = 0 ;
20490 PyObject * obj1 = 0 ;
20491 char * kwnames[] = {
20492 (char *) "self",(char *) "sz", NULL
20493 };
20494
20495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20497 if (!SWIG_IsOK(res1)) {
20498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20499 }
20500 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20501 {
20502 arg2 = &temp2;
20503 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20504 }
20505 {
20506 PyThreadState* __tstate = wxPyBeginAllowThreads();
20507 (arg1)->SetTabSize((wxSize const &)*arg2);
20508 wxPyEndAllowThreads(__tstate);
20509 if (PyErr_Occurred()) SWIG_fail;
20510 }
20511 resultobj = SWIG_Py_Void();
20512 return resultobj;
20513 fail:
20514 return NULL;
20515 }
20516
20517
20518 SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20519 PyObject *resultobj = 0;
20520 wxNotebook *arg1 = (wxNotebook *) 0 ;
20521 wxColour result;
20522 void *argp1 = 0 ;
20523 int res1 = 0 ;
20524 PyObject *swig_obj[1] ;
20525
20526 if (!args) SWIG_fail;
20527 swig_obj[0] = args;
20528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20529 if (!SWIG_IsOK(res1)) {
20530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20531 }
20532 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20533 {
20534 PyThreadState* __tstate = wxPyBeginAllowThreads();
20535 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20536 wxPyEndAllowThreads(__tstate);
20537 if (PyErr_Occurred()) SWIG_fail;
20538 }
20539 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20540 return resultobj;
20541 fail:
20542 return NULL;
20543 }
20544
20545
20546 SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20547 PyObject *resultobj = 0;
20548 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20549 SwigValueWrapper<wxVisualAttributes > result;
20550 int val1 ;
20551 int ecode1 = 0 ;
20552 PyObject * obj0 = 0 ;
20553 char * kwnames[] = {
20554 (char *) "variant", NULL
20555 };
20556
20557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20558 if (obj0) {
20559 ecode1 = SWIG_AsVal_int(obj0, &val1);
20560 if (!SWIG_IsOK(ecode1)) {
20561 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20562 }
20563 arg1 = static_cast< wxWindowVariant >(val1);
20564 }
20565 {
20566 if (!wxPyCheckForApp()) SWIG_fail;
20567 PyThreadState* __tstate = wxPyBeginAllowThreads();
20568 result = wxNotebook::GetClassDefaultAttributes(arg1);
20569 wxPyEndAllowThreads(__tstate);
20570 if (PyErr_Occurred()) SWIG_fail;
20571 }
20572 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20573 return resultobj;
20574 fail:
20575 return NULL;
20576 }
20577
20578
20579 SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20580 PyObject *obj;
20581 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20582 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
20583 return SWIG_Py_Void();
20584 }
20585
20586 SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20587 return SWIG_Python_InitShadowInstance(args);
20588 }
20589
20590 SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20591 PyObject *resultobj = 0;
20592 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20593 int arg2 = (int) 0 ;
20594 int arg3 = (int) -1 ;
20595 int arg4 = (int) -1 ;
20596 wxNotebookEvent *result = 0 ;
20597 int val1 ;
20598 int ecode1 = 0 ;
20599 int val2 ;
20600 int ecode2 = 0 ;
20601 int val3 ;
20602 int ecode3 = 0 ;
20603 int val4 ;
20604 int ecode4 = 0 ;
20605 PyObject * obj0 = 0 ;
20606 PyObject * obj1 = 0 ;
20607 PyObject * obj2 = 0 ;
20608 PyObject * obj3 = 0 ;
20609 char * kwnames[] = {
20610 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20611 };
20612
20613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20614 if (obj0) {
20615 ecode1 = SWIG_AsVal_int(obj0, &val1);
20616 if (!SWIG_IsOK(ecode1)) {
20617 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20618 }
20619 arg1 = static_cast< wxEventType >(val1);
20620 }
20621 if (obj1) {
20622 ecode2 = SWIG_AsVal_int(obj1, &val2);
20623 if (!SWIG_IsOK(ecode2)) {
20624 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
20625 }
20626 arg2 = static_cast< int >(val2);
20627 }
20628 if (obj2) {
20629 ecode3 = SWIG_AsVal_int(obj2, &val3);
20630 if (!SWIG_IsOK(ecode3)) {
20631 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
20632 }
20633 arg3 = static_cast< int >(val3);
20634 }
20635 if (obj3) {
20636 ecode4 = SWIG_AsVal_int(obj3, &val4);
20637 if (!SWIG_IsOK(ecode4)) {
20638 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
20639 }
20640 arg4 = static_cast< int >(val4);
20641 }
20642 {
20643 PyThreadState* __tstate = wxPyBeginAllowThreads();
20644 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
20645 wxPyEndAllowThreads(__tstate);
20646 if (PyErr_Occurred()) SWIG_fail;
20647 }
20648 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
20649 return resultobj;
20650 fail:
20651 return NULL;
20652 }
20653
20654
20655 SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20656 PyObject *obj;
20657 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20658 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
20659 return SWIG_Py_Void();
20660 }
20661
20662 SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20663 return SWIG_Python_InitShadowInstance(args);
20664 }
20665
20666 SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20667 PyObject *resultobj = 0;
20668 wxWindow *arg1 = (wxWindow *) 0 ;
20669 int arg2 = (int) -1 ;
20670 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20671 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20672 wxSize const &arg4_defvalue = wxDefaultSize ;
20673 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20674 long arg5 = (long) 0 ;
20675 wxString const &arg6_defvalue = wxPyEmptyString ;
20676 wxString *arg6 = (wxString *) &arg6_defvalue ;
20677 wxListbook *result = 0 ;
20678 void *argp1 = 0 ;
20679 int res1 = 0 ;
20680 int val2 ;
20681 int ecode2 = 0 ;
20682 wxPoint temp3 ;
20683 wxSize temp4 ;
20684 long val5 ;
20685 int ecode5 = 0 ;
20686 bool temp6 = false ;
20687 PyObject * obj0 = 0 ;
20688 PyObject * obj1 = 0 ;
20689 PyObject * obj2 = 0 ;
20690 PyObject * obj3 = 0 ;
20691 PyObject * obj4 = 0 ;
20692 PyObject * obj5 = 0 ;
20693 char * kwnames[] = {
20694 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20695 };
20696
20697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20699 if (!SWIG_IsOK(res1)) {
20700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
20701 }
20702 arg1 = reinterpret_cast< wxWindow * >(argp1);
20703 if (obj1) {
20704 ecode2 = SWIG_AsVal_int(obj1, &val2);
20705 if (!SWIG_IsOK(ecode2)) {
20706 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
20707 }
20708 arg2 = static_cast< int >(val2);
20709 }
20710 if (obj2) {
20711 {
20712 arg3 = &temp3;
20713 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20714 }
20715 }
20716 if (obj3) {
20717 {
20718 arg4 = &temp4;
20719 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20720 }
20721 }
20722 if (obj4) {
20723 ecode5 = SWIG_AsVal_long(obj4, &val5);
20724 if (!SWIG_IsOK(ecode5)) {
20725 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
20726 }
20727 arg5 = static_cast< long >(val5);
20728 }
20729 if (obj5) {
20730 {
20731 arg6 = wxString_in_helper(obj5);
20732 if (arg6 == NULL) SWIG_fail;
20733 temp6 = true;
20734 }
20735 }
20736 {
20737 if (!wxPyCheckForApp()) SWIG_fail;
20738 PyThreadState* __tstate = wxPyBeginAllowThreads();
20739 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20740 wxPyEndAllowThreads(__tstate);
20741 if (PyErr_Occurred()) SWIG_fail;
20742 }
20743 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
20744 {
20745 if (temp6)
20746 delete arg6;
20747 }
20748 return resultobj;
20749 fail:
20750 {
20751 if (temp6)
20752 delete arg6;
20753 }
20754 return NULL;
20755 }
20756
20757
20758 SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20759 PyObject *resultobj = 0;
20760 wxListbook *result = 0 ;
20761
20762 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
20763 {
20764 if (!wxPyCheckForApp()) SWIG_fail;
20765 PyThreadState* __tstate = wxPyBeginAllowThreads();
20766 result = (wxListbook *)new wxListbook();
20767 wxPyEndAllowThreads(__tstate);
20768 if (PyErr_Occurred()) SWIG_fail;
20769 }
20770 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
20771 return resultobj;
20772 fail:
20773 return NULL;
20774 }
20775
20776
20777 SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20778 PyObject *resultobj = 0;
20779 wxListbook *arg1 = (wxListbook *) 0 ;
20780 wxWindow *arg2 = (wxWindow *) 0 ;
20781 int arg3 = (int) -1 ;
20782 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20783 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20784 wxSize const &arg5_defvalue = wxDefaultSize ;
20785 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20786 long arg6 = (long) 0 ;
20787 wxString const &arg7_defvalue = wxPyEmptyString ;
20788 wxString *arg7 = (wxString *) &arg7_defvalue ;
20789 bool result;
20790 void *argp1 = 0 ;
20791 int res1 = 0 ;
20792 void *argp2 = 0 ;
20793 int res2 = 0 ;
20794 int val3 ;
20795 int ecode3 = 0 ;
20796 wxPoint temp4 ;
20797 wxSize temp5 ;
20798 long val6 ;
20799 int ecode6 = 0 ;
20800 bool temp7 = false ;
20801 PyObject * obj0 = 0 ;
20802 PyObject * obj1 = 0 ;
20803 PyObject * obj2 = 0 ;
20804 PyObject * obj3 = 0 ;
20805 PyObject * obj4 = 0 ;
20806 PyObject * obj5 = 0 ;
20807 PyObject * obj6 = 0 ;
20808 char * kwnames[] = {
20809 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20810 };
20811
20812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
20814 if (!SWIG_IsOK(res1)) {
20815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
20816 }
20817 arg1 = reinterpret_cast< wxListbook * >(argp1);
20818 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20819 if (!SWIG_IsOK(res2)) {
20820 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20821 }
20822 arg2 = reinterpret_cast< wxWindow * >(argp2);
20823 if (obj2) {
20824 ecode3 = SWIG_AsVal_int(obj2, &val3);
20825 if (!SWIG_IsOK(ecode3)) {
20826 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
20827 }
20828 arg3 = static_cast< int >(val3);
20829 }
20830 if (obj3) {
20831 {
20832 arg4 = &temp4;
20833 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20834 }
20835 }
20836 if (obj4) {
20837 {
20838 arg5 = &temp5;
20839 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20840 }
20841 }
20842 if (obj5) {
20843 ecode6 = SWIG_AsVal_long(obj5, &val6);
20844 if (!SWIG_IsOK(ecode6)) {
20845 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
20846 }
20847 arg6 = static_cast< long >(val6);
20848 }
20849 if (obj6) {
20850 {
20851 arg7 = wxString_in_helper(obj6);
20852 if (arg7 == NULL) SWIG_fail;
20853 temp7 = true;
20854 }
20855 }
20856 {
20857 PyThreadState* __tstate = wxPyBeginAllowThreads();
20858 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20859 wxPyEndAllowThreads(__tstate);
20860 if (PyErr_Occurred()) SWIG_fail;
20861 }
20862 {
20863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20864 }
20865 {
20866 if (temp7)
20867 delete arg7;
20868 }
20869 return resultobj;
20870 fail:
20871 {
20872 if (temp7)
20873 delete arg7;
20874 }
20875 return NULL;
20876 }
20877
20878
20879 SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20880 PyObject *resultobj = 0;
20881 wxListbook *arg1 = (wxListbook *) 0 ;
20882 wxListView *result = 0 ;
20883 void *argp1 = 0 ;
20884 int res1 = 0 ;
20885 PyObject *swig_obj[1] ;
20886
20887 if (!args) SWIG_fail;
20888 swig_obj[0] = args;
20889 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
20890 if (!SWIG_IsOK(res1)) {
20891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
20892 }
20893 arg1 = reinterpret_cast< wxListbook * >(argp1);
20894 {
20895 PyThreadState* __tstate = wxPyBeginAllowThreads();
20896 result = (wxListView *)(arg1)->GetListView();
20897 wxPyEndAllowThreads(__tstate);
20898 if (PyErr_Occurred()) SWIG_fail;
20899 }
20900 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
20901 return resultobj;
20902 fail:
20903 return NULL;
20904 }
20905
20906
20907 SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20908 PyObject *obj;
20909 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20910 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
20911 return SWIG_Py_Void();
20912 }
20913
20914 SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20915 return SWIG_Python_InitShadowInstance(args);
20916 }
20917
20918 SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20919 PyObject *resultobj = 0;
20920 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20921 int arg2 = (int) 0 ;
20922 int arg3 = (int) -1 ;
20923 int arg4 = (int) -1 ;
20924 wxListbookEvent *result = 0 ;
20925 int val1 ;
20926 int ecode1 = 0 ;
20927 int val2 ;
20928 int ecode2 = 0 ;
20929 int val3 ;
20930 int ecode3 = 0 ;
20931 int val4 ;
20932 int ecode4 = 0 ;
20933 PyObject * obj0 = 0 ;
20934 PyObject * obj1 = 0 ;
20935 PyObject * obj2 = 0 ;
20936 PyObject * obj3 = 0 ;
20937 char * kwnames[] = {
20938 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20939 };
20940
20941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20942 if (obj0) {
20943 ecode1 = SWIG_AsVal_int(obj0, &val1);
20944 if (!SWIG_IsOK(ecode1)) {
20945 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20946 }
20947 arg1 = static_cast< wxEventType >(val1);
20948 }
20949 if (obj1) {
20950 ecode2 = SWIG_AsVal_int(obj1, &val2);
20951 if (!SWIG_IsOK(ecode2)) {
20952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
20953 }
20954 arg2 = static_cast< int >(val2);
20955 }
20956 if (obj2) {
20957 ecode3 = SWIG_AsVal_int(obj2, &val3);
20958 if (!SWIG_IsOK(ecode3)) {
20959 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
20960 }
20961 arg3 = static_cast< int >(val3);
20962 }
20963 if (obj3) {
20964 ecode4 = SWIG_AsVal_int(obj3, &val4);
20965 if (!SWIG_IsOK(ecode4)) {
20966 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
20967 }
20968 arg4 = static_cast< int >(val4);
20969 }
20970 {
20971 PyThreadState* __tstate = wxPyBeginAllowThreads();
20972 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
20973 wxPyEndAllowThreads(__tstate);
20974 if (PyErr_Occurred()) SWIG_fail;
20975 }
20976 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
20977 return resultobj;
20978 fail:
20979 return NULL;
20980 }
20981
20982
20983 SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20984 PyObject *obj;
20985 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20986 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
20987 return SWIG_Py_Void();
20988 }
20989
20990 SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20991 return SWIG_Python_InitShadowInstance(args);
20992 }
20993
20994 SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20995 PyObject *resultobj = 0;
20996 wxWindow *arg1 = (wxWindow *) 0 ;
20997 int arg2 ;
20998 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20999 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21000 wxSize const &arg4_defvalue = wxDefaultSize ;
21001 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21002 long arg5 = (long) 0 ;
21003 wxString const &arg6_defvalue = wxPyEmptyString ;
21004 wxString *arg6 = (wxString *) &arg6_defvalue ;
21005 wxChoicebook *result = 0 ;
21006 void *argp1 = 0 ;
21007 int res1 = 0 ;
21008 int val2 ;
21009 int ecode2 = 0 ;
21010 wxPoint temp3 ;
21011 wxSize temp4 ;
21012 long val5 ;
21013 int ecode5 = 0 ;
21014 bool temp6 = false ;
21015 PyObject * obj0 = 0 ;
21016 PyObject * obj1 = 0 ;
21017 PyObject * obj2 = 0 ;
21018 PyObject * obj3 = 0 ;
21019 PyObject * obj4 = 0 ;
21020 PyObject * obj5 = 0 ;
21021 char * kwnames[] = {
21022 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21023 };
21024
21025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21027 if (!SWIG_IsOK(res1)) {
21028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21029 }
21030 arg1 = reinterpret_cast< wxWindow * >(argp1);
21031 ecode2 = SWIG_AsVal_int(obj1, &val2);
21032 if (!SWIG_IsOK(ecode2)) {
21033 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21034 }
21035 arg2 = static_cast< int >(val2);
21036 if (obj2) {
21037 {
21038 arg3 = &temp3;
21039 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21040 }
21041 }
21042 if (obj3) {
21043 {
21044 arg4 = &temp4;
21045 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21046 }
21047 }
21048 if (obj4) {
21049 ecode5 = SWIG_AsVal_long(obj4, &val5);
21050 if (!SWIG_IsOK(ecode5)) {
21051 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21052 }
21053 arg5 = static_cast< long >(val5);
21054 }
21055 if (obj5) {
21056 {
21057 arg6 = wxString_in_helper(obj5);
21058 if (arg6 == NULL) SWIG_fail;
21059 temp6 = true;
21060 }
21061 }
21062 {
21063 if (!wxPyCheckForApp()) SWIG_fail;
21064 PyThreadState* __tstate = wxPyBeginAllowThreads();
21065 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21066 wxPyEndAllowThreads(__tstate);
21067 if (PyErr_Occurred()) SWIG_fail;
21068 }
21069 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21070 {
21071 if (temp6)
21072 delete arg6;
21073 }
21074 return resultobj;
21075 fail:
21076 {
21077 if (temp6)
21078 delete arg6;
21079 }
21080 return NULL;
21081 }
21082
21083
21084 SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21085 PyObject *resultobj = 0;
21086 wxChoicebook *result = 0 ;
21087
21088 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21089 {
21090 if (!wxPyCheckForApp()) SWIG_fail;
21091 PyThreadState* __tstate = wxPyBeginAllowThreads();
21092 result = (wxChoicebook *)new wxChoicebook();
21093 wxPyEndAllowThreads(__tstate);
21094 if (PyErr_Occurred()) SWIG_fail;
21095 }
21096 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21097 return resultobj;
21098 fail:
21099 return NULL;
21100 }
21101
21102
21103 SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21104 PyObject *resultobj = 0;
21105 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21106 wxWindow *arg2 = (wxWindow *) 0 ;
21107 int arg3 ;
21108 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21109 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21110 wxSize const &arg5_defvalue = wxDefaultSize ;
21111 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21112 long arg6 = (long) 0 ;
21113 wxString const &arg7_defvalue = wxPyEmptyString ;
21114 wxString *arg7 = (wxString *) &arg7_defvalue ;
21115 bool result;
21116 void *argp1 = 0 ;
21117 int res1 = 0 ;
21118 void *argp2 = 0 ;
21119 int res2 = 0 ;
21120 int val3 ;
21121 int ecode3 = 0 ;
21122 wxPoint temp4 ;
21123 wxSize temp5 ;
21124 long val6 ;
21125 int ecode6 = 0 ;
21126 bool temp7 = false ;
21127 PyObject * obj0 = 0 ;
21128 PyObject * obj1 = 0 ;
21129 PyObject * obj2 = 0 ;
21130 PyObject * obj3 = 0 ;
21131 PyObject * obj4 = 0 ;
21132 PyObject * obj5 = 0 ;
21133 PyObject * obj6 = 0 ;
21134 char * kwnames[] = {
21135 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21136 };
21137
21138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21140 if (!SWIG_IsOK(res1)) {
21141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21142 }
21143 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21144 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21145 if (!SWIG_IsOK(res2)) {
21146 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21147 }
21148 arg2 = reinterpret_cast< wxWindow * >(argp2);
21149 ecode3 = SWIG_AsVal_int(obj2, &val3);
21150 if (!SWIG_IsOK(ecode3)) {
21151 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21152 }
21153 arg3 = static_cast< int >(val3);
21154 if (obj3) {
21155 {
21156 arg4 = &temp4;
21157 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21158 }
21159 }
21160 if (obj4) {
21161 {
21162 arg5 = &temp5;
21163 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21164 }
21165 }
21166 if (obj5) {
21167 ecode6 = SWIG_AsVal_long(obj5, &val6);
21168 if (!SWIG_IsOK(ecode6)) {
21169 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21170 }
21171 arg6 = static_cast< long >(val6);
21172 }
21173 if (obj6) {
21174 {
21175 arg7 = wxString_in_helper(obj6);
21176 if (arg7 == NULL) SWIG_fail;
21177 temp7 = true;
21178 }
21179 }
21180 {
21181 PyThreadState* __tstate = wxPyBeginAllowThreads();
21182 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21183 wxPyEndAllowThreads(__tstate);
21184 if (PyErr_Occurred()) SWIG_fail;
21185 }
21186 {
21187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21188 }
21189 {
21190 if (temp7)
21191 delete arg7;
21192 }
21193 return resultobj;
21194 fail:
21195 {
21196 if (temp7)
21197 delete arg7;
21198 }
21199 return NULL;
21200 }
21201
21202
21203 SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21204 PyObject *resultobj = 0;
21205 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21206 wxChoice *result = 0 ;
21207 void *argp1 = 0 ;
21208 int res1 = 0 ;
21209 PyObject *swig_obj[1] ;
21210
21211 if (!args) SWIG_fail;
21212 swig_obj[0] = args;
21213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21214 if (!SWIG_IsOK(res1)) {
21215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21216 }
21217 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21218 {
21219 PyThreadState* __tstate = wxPyBeginAllowThreads();
21220 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21221 wxPyEndAllowThreads(__tstate);
21222 if (PyErr_Occurred()) SWIG_fail;
21223 }
21224 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21225 return resultobj;
21226 fail:
21227 return NULL;
21228 }
21229
21230
21231 SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21232 PyObject *obj;
21233 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21234 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21235 return SWIG_Py_Void();
21236 }
21237
21238 SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21239 return SWIG_Python_InitShadowInstance(args);
21240 }
21241
21242 SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21243 PyObject *resultobj = 0;
21244 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21245 int arg2 = (int) 0 ;
21246 int arg3 = (int) -1 ;
21247 int arg4 = (int) -1 ;
21248 wxChoicebookEvent *result = 0 ;
21249 int val1 ;
21250 int ecode1 = 0 ;
21251 int val2 ;
21252 int ecode2 = 0 ;
21253 int val3 ;
21254 int ecode3 = 0 ;
21255 int val4 ;
21256 int ecode4 = 0 ;
21257 PyObject * obj0 = 0 ;
21258 PyObject * obj1 = 0 ;
21259 PyObject * obj2 = 0 ;
21260 PyObject * obj3 = 0 ;
21261 char * kwnames[] = {
21262 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21263 };
21264
21265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21266 if (obj0) {
21267 ecode1 = SWIG_AsVal_int(obj0, &val1);
21268 if (!SWIG_IsOK(ecode1)) {
21269 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21270 }
21271 arg1 = static_cast< wxEventType >(val1);
21272 }
21273 if (obj1) {
21274 ecode2 = SWIG_AsVal_int(obj1, &val2);
21275 if (!SWIG_IsOK(ecode2)) {
21276 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21277 }
21278 arg2 = static_cast< int >(val2);
21279 }
21280 if (obj2) {
21281 ecode3 = SWIG_AsVal_int(obj2, &val3);
21282 if (!SWIG_IsOK(ecode3)) {
21283 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21284 }
21285 arg3 = static_cast< int >(val3);
21286 }
21287 if (obj3) {
21288 ecode4 = SWIG_AsVal_int(obj3, &val4);
21289 if (!SWIG_IsOK(ecode4)) {
21290 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21291 }
21292 arg4 = static_cast< int >(val4);
21293 }
21294 {
21295 PyThreadState* __tstate = wxPyBeginAllowThreads();
21296 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21297 wxPyEndAllowThreads(__tstate);
21298 if (PyErr_Occurred()) SWIG_fail;
21299 }
21300 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21301 return resultobj;
21302 fail:
21303 return NULL;
21304 }
21305
21306
21307 SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21308 PyObject *obj;
21309 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21310 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21311 return SWIG_Py_Void();
21312 }
21313
21314 SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21315 return SWIG_Python_InitShadowInstance(args);
21316 }
21317
21318 SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21319 PyObject *resultobj = 0;
21320 wxWindow *arg1 = (wxWindow *) 0 ;
21321 int arg2 ;
21322 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21323 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21324 wxSize const &arg4_defvalue = wxDefaultSize ;
21325 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21326 long arg5 = (long) wxBK_DEFAULT ;
21327 wxString const &arg6_defvalue = wxPyEmptyString ;
21328 wxString *arg6 = (wxString *) &arg6_defvalue ;
21329 wxTreebook *result = 0 ;
21330 void *argp1 = 0 ;
21331 int res1 = 0 ;
21332 int val2 ;
21333 int ecode2 = 0 ;
21334 wxPoint temp3 ;
21335 wxSize temp4 ;
21336 long val5 ;
21337 int ecode5 = 0 ;
21338 bool temp6 = false ;
21339 PyObject * obj0 = 0 ;
21340 PyObject * obj1 = 0 ;
21341 PyObject * obj2 = 0 ;
21342 PyObject * obj3 = 0 ;
21343 PyObject * obj4 = 0 ;
21344 PyObject * obj5 = 0 ;
21345 char * kwnames[] = {
21346 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21347 };
21348
21349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21351 if (!SWIG_IsOK(res1)) {
21352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21353 }
21354 arg1 = reinterpret_cast< wxWindow * >(argp1);
21355 ecode2 = SWIG_AsVal_int(obj1, &val2);
21356 if (!SWIG_IsOK(ecode2)) {
21357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21358 }
21359 arg2 = static_cast< int >(val2);
21360 if (obj2) {
21361 {
21362 arg3 = &temp3;
21363 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21364 }
21365 }
21366 if (obj3) {
21367 {
21368 arg4 = &temp4;
21369 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21370 }
21371 }
21372 if (obj4) {
21373 ecode5 = SWIG_AsVal_long(obj4, &val5);
21374 if (!SWIG_IsOK(ecode5)) {
21375 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21376 }
21377 arg5 = static_cast< long >(val5);
21378 }
21379 if (obj5) {
21380 {
21381 arg6 = wxString_in_helper(obj5);
21382 if (arg6 == NULL) SWIG_fail;
21383 temp6 = true;
21384 }
21385 }
21386 {
21387 if (!wxPyCheckForApp()) SWIG_fail;
21388 PyThreadState* __tstate = wxPyBeginAllowThreads();
21389 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21390 wxPyEndAllowThreads(__tstate);
21391 if (PyErr_Occurred()) SWIG_fail;
21392 }
21393 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21394 {
21395 if (temp6)
21396 delete arg6;
21397 }
21398 return resultobj;
21399 fail:
21400 {
21401 if (temp6)
21402 delete arg6;
21403 }
21404 return NULL;
21405 }
21406
21407
21408 SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21409 PyObject *resultobj = 0;
21410 wxTreebook *result = 0 ;
21411
21412 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21413 {
21414 if (!wxPyCheckForApp()) SWIG_fail;
21415 PyThreadState* __tstate = wxPyBeginAllowThreads();
21416 result = (wxTreebook *)new wxTreebook();
21417 wxPyEndAllowThreads(__tstate);
21418 if (PyErr_Occurred()) SWIG_fail;
21419 }
21420 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21421 return resultobj;
21422 fail:
21423 return NULL;
21424 }
21425
21426
21427 SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21428 PyObject *resultobj = 0;
21429 wxTreebook *arg1 = (wxTreebook *) 0 ;
21430 wxWindow *arg2 = (wxWindow *) 0 ;
21431 int arg3 ;
21432 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21433 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21434 wxSize const &arg5_defvalue = wxDefaultSize ;
21435 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21436 long arg6 = (long) wxBK_DEFAULT ;
21437 wxString const &arg7_defvalue = wxPyEmptyString ;
21438 wxString *arg7 = (wxString *) &arg7_defvalue ;
21439 bool result;
21440 void *argp1 = 0 ;
21441 int res1 = 0 ;
21442 void *argp2 = 0 ;
21443 int res2 = 0 ;
21444 int val3 ;
21445 int ecode3 = 0 ;
21446 wxPoint temp4 ;
21447 wxSize temp5 ;
21448 long val6 ;
21449 int ecode6 = 0 ;
21450 bool temp7 = false ;
21451 PyObject * obj0 = 0 ;
21452 PyObject * obj1 = 0 ;
21453 PyObject * obj2 = 0 ;
21454 PyObject * obj3 = 0 ;
21455 PyObject * obj4 = 0 ;
21456 PyObject * obj5 = 0 ;
21457 PyObject * obj6 = 0 ;
21458 char * kwnames[] = {
21459 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21460 };
21461
21462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21464 if (!SWIG_IsOK(res1)) {
21465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21466 }
21467 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21468 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21469 if (!SWIG_IsOK(res2)) {
21470 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21471 }
21472 arg2 = reinterpret_cast< wxWindow * >(argp2);
21473 ecode3 = SWIG_AsVal_int(obj2, &val3);
21474 if (!SWIG_IsOK(ecode3)) {
21475 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21476 }
21477 arg3 = static_cast< int >(val3);
21478 if (obj3) {
21479 {
21480 arg4 = &temp4;
21481 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21482 }
21483 }
21484 if (obj4) {
21485 {
21486 arg5 = &temp5;
21487 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21488 }
21489 }
21490 if (obj5) {
21491 ecode6 = SWIG_AsVal_long(obj5, &val6);
21492 if (!SWIG_IsOK(ecode6)) {
21493 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21494 }
21495 arg6 = static_cast< long >(val6);
21496 }
21497 if (obj6) {
21498 {
21499 arg7 = wxString_in_helper(obj6);
21500 if (arg7 == NULL) SWIG_fail;
21501 temp7 = true;
21502 }
21503 }
21504 {
21505 PyThreadState* __tstate = wxPyBeginAllowThreads();
21506 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21507 wxPyEndAllowThreads(__tstate);
21508 if (PyErr_Occurred()) SWIG_fail;
21509 }
21510 {
21511 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21512 }
21513 {
21514 if (temp7)
21515 delete arg7;
21516 }
21517 return resultobj;
21518 fail:
21519 {
21520 if (temp7)
21521 delete arg7;
21522 }
21523 return NULL;
21524 }
21525
21526
21527 SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21528 PyObject *resultobj = 0;
21529 wxTreebook *arg1 = (wxTreebook *) 0 ;
21530 size_t arg2 ;
21531 wxWindow *arg3 = (wxWindow *) 0 ;
21532 wxString *arg4 = 0 ;
21533 bool arg5 = (bool) false ;
21534 int arg6 = (int) wxNOT_FOUND ;
21535 bool result;
21536 void *argp1 = 0 ;
21537 int res1 = 0 ;
21538 size_t val2 ;
21539 int ecode2 = 0 ;
21540 void *argp3 = 0 ;
21541 int res3 = 0 ;
21542 bool temp4 = false ;
21543 bool val5 ;
21544 int ecode5 = 0 ;
21545 int val6 ;
21546 int ecode6 = 0 ;
21547 PyObject * obj0 = 0 ;
21548 PyObject * obj1 = 0 ;
21549 PyObject * obj2 = 0 ;
21550 PyObject * obj3 = 0 ;
21551 PyObject * obj4 = 0 ;
21552 PyObject * obj5 = 0 ;
21553 char * kwnames[] = {
21554 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21555 };
21556
21557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21559 if (!SWIG_IsOK(res1)) {
21560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21561 }
21562 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21563 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21564 if (!SWIG_IsOK(ecode2)) {
21565 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
21566 }
21567 arg2 = static_cast< size_t >(val2);
21568 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
21569 if (!SWIG_IsOK(res3)) {
21570 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
21571 }
21572 arg3 = reinterpret_cast< wxWindow * >(argp3);
21573 {
21574 arg4 = wxString_in_helper(obj3);
21575 if (arg4 == NULL) SWIG_fail;
21576 temp4 = true;
21577 }
21578 if (obj4) {
21579 ecode5 = SWIG_AsVal_bool(obj4, &val5);
21580 if (!SWIG_IsOK(ecode5)) {
21581 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
21582 }
21583 arg5 = static_cast< bool >(val5);
21584 }
21585 if (obj5) {
21586 ecode6 = SWIG_AsVal_int(obj5, &val6);
21587 if (!SWIG_IsOK(ecode6)) {
21588 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
21589 }
21590 arg6 = static_cast< int >(val6);
21591 }
21592 {
21593 PyThreadState* __tstate = wxPyBeginAllowThreads();
21594 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
21595 wxPyEndAllowThreads(__tstate);
21596 if (PyErr_Occurred()) SWIG_fail;
21597 }
21598 {
21599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21600 }
21601 {
21602 if (temp4)
21603 delete arg4;
21604 }
21605 return resultobj;
21606 fail:
21607 {
21608 if (temp4)
21609 delete arg4;
21610 }
21611 return NULL;
21612 }
21613
21614
21615 SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21616 PyObject *resultobj = 0;
21617 wxTreebook *arg1 = (wxTreebook *) 0 ;
21618 wxWindow *arg2 = (wxWindow *) 0 ;
21619 wxString *arg3 = 0 ;
21620 bool arg4 = (bool) false ;
21621 int arg5 = (int) wxNOT_FOUND ;
21622 bool result;
21623 void *argp1 = 0 ;
21624 int res1 = 0 ;
21625 void *argp2 = 0 ;
21626 int res2 = 0 ;
21627 bool temp3 = false ;
21628 bool val4 ;
21629 int ecode4 = 0 ;
21630 int val5 ;
21631 int ecode5 = 0 ;
21632 PyObject * obj0 = 0 ;
21633 PyObject * obj1 = 0 ;
21634 PyObject * obj2 = 0 ;
21635 PyObject * obj3 = 0 ;
21636 PyObject * obj4 = 0 ;
21637 char * kwnames[] = {
21638 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21639 };
21640
21641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21643 if (!SWIG_IsOK(res1)) {
21644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21645 }
21646 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21647 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21648 if (!SWIG_IsOK(res2)) {
21649 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
21650 }
21651 arg2 = reinterpret_cast< wxWindow * >(argp2);
21652 {
21653 arg3 = wxString_in_helper(obj2);
21654 if (arg3 == NULL) SWIG_fail;
21655 temp3 = true;
21656 }
21657 if (obj3) {
21658 ecode4 = SWIG_AsVal_bool(obj3, &val4);
21659 if (!SWIG_IsOK(ecode4)) {
21660 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
21661 }
21662 arg4 = static_cast< bool >(val4);
21663 }
21664 if (obj4) {
21665 ecode5 = SWIG_AsVal_int(obj4, &val5);
21666 if (!SWIG_IsOK(ecode5)) {
21667 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
21668 }
21669 arg5 = static_cast< int >(val5);
21670 }
21671 {
21672 PyThreadState* __tstate = wxPyBeginAllowThreads();
21673 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
21674 wxPyEndAllowThreads(__tstate);
21675 if (PyErr_Occurred()) SWIG_fail;
21676 }
21677 {
21678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21679 }
21680 {
21681 if (temp3)
21682 delete arg3;
21683 }
21684 return resultobj;
21685 fail:
21686 {
21687 if (temp3)
21688 delete arg3;
21689 }
21690 return NULL;
21691 }
21692
21693
21694 SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21695 PyObject *resultobj = 0;
21696 wxTreebook *arg1 = (wxTreebook *) 0 ;
21697 size_t arg2 ;
21698 bool result;
21699 void *argp1 = 0 ;
21700 int res1 = 0 ;
21701 size_t val2 ;
21702 int ecode2 = 0 ;
21703 PyObject * obj0 = 0 ;
21704 PyObject * obj1 = 0 ;
21705 char * kwnames[] = {
21706 (char *) "self",(char *) "pos", NULL
21707 };
21708
21709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
21710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21711 if (!SWIG_IsOK(res1)) {
21712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21713 }
21714 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21715 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21716 if (!SWIG_IsOK(ecode2)) {
21717 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
21718 }
21719 arg2 = static_cast< size_t >(val2);
21720 {
21721 PyThreadState* __tstate = wxPyBeginAllowThreads();
21722 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
21723 wxPyEndAllowThreads(__tstate);
21724 if (PyErr_Occurred()) SWIG_fail;
21725 }
21726 {
21727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21728 }
21729 return resultobj;
21730 fail:
21731 return NULL;
21732 }
21733
21734
21735 SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21736 PyObject *resultobj = 0;
21737 wxTreebook *arg1 = (wxTreebook *) 0 ;
21738 size_t arg2 ;
21739 bool arg3 = (bool) true ;
21740 bool result;
21741 void *argp1 = 0 ;
21742 int res1 = 0 ;
21743 size_t val2 ;
21744 int ecode2 = 0 ;
21745 bool val3 ;
21746 int ecode3 = 0 ;
21747 PyObject * obj0 = 0 ;
21748 PyObject * obj1 = 0 ;
21749 PyObject * obj2 = 0 ;
21750 char * kwnames[] = {
21751 (char *) "self",(char *) "pos",(char *) "expand", NULL
21752 };
21753
21754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21756 if (!SWIG_IsOK(res1)) {
21757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21758 }
21759 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21760 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21761 if (!SWIG_IsOK(ecode2)) {
21762 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
21763 }
21764 arg2 = static_cast< size_t >(val2);
21765 if (obj2) {
21766 ecode3 = SWIG_AsVal_bool(obj2, &val3);
21767 if (!SWIG_IsOK(ecode3)) {
21768 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
21769 }
21770 arg3 = static_cast< bool >(val3);
21771 }
21772 {
21773 PyThreadState* __tstate = wxPyBeginAllowThreads();
21774 result = (bool)(arg1)->ExpandNode(arg2,arg3);
21775 wxPyEndAllowThreads(__tstate);
21776 if (PyErr_Occurred()) SWIG_fail;
21777 }
21778 {
21779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21780 }
21781 return resultobj;
21782 fail:
21783 return NULL;
21784 }
21785
21786
21787 SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21788 PyObject *resultobj = 0;
21789 wxTreebook *arg1 = (wxTreebook *) 0 ;
21790 size_t arg2 ;
21791 bool result;
21792 void *argp1 = 0 ;
21793 int res1 = 0 ;
21794 size_t val2 ;
21795 int ecode2 = 0 ;
21796 PyObject * obj0 = 0 ;
21797 PyObject * obj1 = 0 ;
21798 char * kwnames[] = {
21799 (char *) "self",(char *) "pos", NULL
21800 };
21801
21802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
21803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21804 if (!SWIG_IsOK(res1)) {
21805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21806 }
21807 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21808 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21809 if (!SWIG_IsOK(ecode2)) {
21810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
21811 }
21812 arg2 = static_cast< size_t >(val2);
21813 {
21814 PyThreadState* __tstate = wxPyBeginAllowThreads();
21815 result = (bool)(arg1)->CollapseNode(arg2);
21816 wxPyEndAllowThreads(__tstate);
21817 if (PyErr_Occurred()) SWIG_fail;
21818 }
21819 {
21820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21821 }
21822 return resultobj;
21823 fail:
21824 return NULL;
21825 }
21826
21827
21828 SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21829 PyObject *resultobj = 0;
21830 wxTreebook *arg1 = (wxTreebook *) 0 ;
21831 size_t arg2 ;
21832 int result;
21833 void *argp1 = 0 ;
21834 int res1 = 0 ;
21835 size_t val2 ;
21836 int ecode2 = 0 ;
21837 PyObject * obj0 = 0 ;
21838 PyObject * obj1 = 0 ;
21839 char * kwnames[] = {
21840 (char *) "self",(char *) "pos", NULL
21841 };
21842
21843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
21844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21845 if (!SWIG_IsOK(res1)) {
21846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21847 }
21848 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21849 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21850 if (!SWIG_IsOK(ecode2)) {
21851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
21852 }
21853 arg2 = static_cast< size_t >(val2);
21854 {
21855 PyThreadState* __tstate = wxPyBeginAllowThreads();
21856 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
21857 wxPyEndAllowThreads(__tstate);
21858 if (PyErr_Occurred()) SWIG_fail;
21859 }
21860 resultobj = SWIG_From_int(static_cast< int >(result));
21861 return resultobj;
21862 fail:
21863 return NULL;
21864 }
21865
21866
21867 SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21868 PyObject *resultobj = 0;
21869 wxTreebook *arg1 = (wxTreebook *) 0 ;
21870 wxTreeCtrl *result = 0 ;
21871 void *argp1 = 0 ;
21872 int res1 = 0 ;
21873 PyObject *swig_obj[1] ;
21874
21875 if (!args) SWIG_fail;
21876 swig_obj[0] = args;
21877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21878 if (!SWIG_IsOK(res1)) {
21879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21880 }
21881 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21882 {
21883 PyThreadState* __tstate = wxPyBeginAllowThreads();
21884 result = (wxTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
21885 wxPyEndAllowThreads(__tstate);
21886 if (PyErr_Occurred()) SWIG_fail;
21887 }
21888 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeCtrl, 0 | 0 );
21889 return resultobj;
21890 fail:
21891 return NULL;
21892 }
21893
21894
21895 SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21896 PyObject *obj;
21897 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21898 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
21899 return SWIG_Py_Void();
21900 }
21901
21902 SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21903 return SWIG_Python_InitShadowInstance(args);
21904 }
21905
21906 SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21907 PyObject *resultobj = 0;
21908 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21909 int arg2 = (int) 0 ;
21910 int arg3 = (int) wxNOT_FOUND ;
21911 int arg4 = (int) wxNOT_FOUND ;
21912 wxTreebookEvent *result = 0 ;
21913 int val1 ;
21914 int ecode1 = 0 ;
21915 int val2 ;
21916 int ecode2 = 0 ;
21917 int val3 ;
21918 int ecode3 = 0 ;
21919 int val4 ;
21920 int ecode4 = 0 ;
21921 PyObject * obj0 = 0 ;
21922 PyObject * obj1 = 0 ;
21923 PyObject * obj2 = 0 ;
21924 PyObject * obj3 = 0 ;
21925 char * kwnames[] = {
21926 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21927 };
21928
21929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21930 if (obj0) {
21931 ecode1 = SWIG_AsVal_int(obj0, &val1);
21932 if (!SWIG_IsOK(ecode1)) {
21933 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21934 }
21935 arg1 = static_cast< wxEventType >(val1);
21936 }
21937 if (obj1) {
21938 ecode2 = SWIG_AsVal_int(obj1, &val2);
21939 if (!SWIG_IsOK(ecode2)) {
21940 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
21941 }
21942 arg2 = static_cast< int >(val2);
21943 }
21944 if (obj2) {
21945 ecode3 = SWIG_AsVal_int(obj2, &val3);
21946 if (!SWIG_IsOK(ecode3)) {
21947 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
21948 }
21949 arg3 = static_cast< int >(val3);
21950 }
21951 if (obj3) {
21952 ecode4 = SWIG_AsVal_int(obj3, &val4);
21953 if (!SWIG_IsOK(ecode4)) {
21954 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
21955 }
21956 arg4 = static_cast< int >(val4);
21957 }
21958 {
21959 PyThreadState* __tstate = wxPyBeginAllowThreads();
21960 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
21961 wxPyEndAllowThreads(__tstate);
21962 if (PyErr_Occurred()) SWIG_fail;
21963 }
21964 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
21965 return resultobj;
21966 fail:
21967 return NULL;
21968 }
21969
21970
21971 SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21972 PyObject *obj;
21973 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21974 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
21975 return SWIG_Py_Void();
21976 }
21977
21978 SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21979 return SWIG_Python_InitShadowInstance(args);
21980 }
21981
21982 SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21983 PyObject *resultobj = 0;
21984 wxWindow *arg1 = (wxWindow *) 0 ;
21985 int arg2 ;
21986 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21987 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21988 wxSize const &arg4_defvalue = wxDefaultSize ;
21989 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21990 long arg5 = (long) wxBK_DEFAULT ;
21991 wxString const &arg6_defvalue = wxPyEmptyString ;
21992 wxString *arg6 = (wxString *) &arg6_defvalue ;
21993 wxToolbook *result = 0 ;
21994 void *argp1 = 0 ;
21995 int res1 = 0 ;
21996 int val2 ;
21997 int ecode2 = 0 ;
21998 wxPoint temp3 ;
21999 wxSize temp4 ;
22000 long val5 ;
22001 int ecode5 = 0 ;
22002 bool temp6 = false ;
22003 PyObject * obj0 = 0 ;
22004 PyObject * obj1 = 0 ;
22005 PyObject * obj2 = 0 ;
22006 PyObject * obj3 = 0 ;
22007 PyObject * obj4 = 0 ;
22008 PyObject * obj5 = 0 ;
22009 char * kwnames[] = {
22010 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22011 };
22012
22013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22015 if (!SWIG_IsOK(res1)) {
22016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22017 }
22018 arg1 = reinterpret_cast< wxWindow * >(argp1);
22019 ecode2 = SWIG_AsVal_int(obj1, &val2);
22020 if (!SWIG_IsOK(ecode2)) {
22021 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22022 }
22023 arg2 = static_cast< int >(val2);
22024 if (obj2) {
22025 {
22026 arg3 = &temp3;
22027 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22028 }
22029 }
22030 if (obj3) {
22031 {
22032 arg4 = &temp4;
22033 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22034 }
22035 }
22036 if (obj4) {
22037 ecode5 = SWIG_AsVal_long(obj4, &val5);
22038 if (!SWIG_IsOK(ecode5)) {
22039 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22040 }
22041 arg5 = static_cast< long >(val5);
22042 }
22043 if (obj5) {
22044 {
22045 arg6 = wxString_in_helper(obj5);
22046 if (arg6 == NULL) SWIG_fail;
22047 temp6 = true;
22048 }
22049 }
22050 {
22051 PyThreadState* __tstate = wxPyBeginAllowThreads();
22052 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22053 wxPyEndAllowThreads(__tstate);
22054 if (PyErr_Occurred()) SWIG_fail;
22055 }
22056 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22057 {
22058 if (temp6)
22059 delete arg6;
22060 }
22061 return resultobj;
22062 fail:
22063 {
22064 if (temp6)
22065 delete arg6;
22066 }
22067 return NULL;
22068 }
22069
22070
22071 SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22072 PyObject *resultobj = 0;
22073 wxToolbook *result = 0 ;
22074
22075 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22076 {
22077 PyThreadState* __tstate = wxPyBeginAllowThreads();
22078 result = (wxToolbook *)new wxToolbook();
22079 wxPyEndAllowThreads(__tstate);
22080 if (PyErr_Occurred()) SWIG_fail;
22081 }
22082 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22083 return resultobj;
22084 fail:
22085 return NULL;
22086 }
22087
22088
22089 SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22090 PyObject *resultobj = 0;
22091 wxToolbook *arg1 = (wxToolbook *) 0 ;
22092 wxWindow *arg2 = (wxWindow *) 0 ;
22093 int arg3 ;
22094 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22095 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22096 wxSize const &arg5_defvalue = wxDefaultSize ;
22097 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22098 long arg6 = (long) 0 ;
22099 wxString const &arg7_defvalue = wxEmptyString ;
22100 wxString *arg7 = (wxString *) &arg7_defvalue ;
22101 bool result;
22102 void *argp1 = 0 ;
22103 int res1 = 0 ;
22104 void *argp2 = 0 ;
22105 int res2 = 0 ;
22106 int val3 ;
22107 int ecode3 = 0 ;
22108 wxPoint temp4 ;
22109 wxSize temp5 ;
22110 long val6 ;
22111 int ecode6 = 0 ;
22112 bool temp7 = false ;
22113 PyObject * obj0 = 0 ;
22114 PyObject * obj1 = 0 ;
22115 PyObject * obj2 = 0 ;
22116 PyObject * obj3 = 0 ;
22117 PyObject * obj4 = 0 ;
22118 PyObject * obj5 = 0 ;
22119 PyObject * obj6 = 0 ;
22120 char * kwnames[] = {
22121 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22122 };
22123
22124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22126 if (!SWIG_IsOK(res1)) {
22127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22128 }
22129 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22130 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22131 if (!SWIG_IsOK(res2)) {
22132 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22133 }
22134 arg2 = reinterpret_cast< wxWindow * >(argp2);
22135 ecode3 = SWIG_AsVal_int(obj2, &val3);
22136 if (!SWIG_IsOK(ecode3)) {
22137 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22138 }
22139 arg3 = static_cast< int >(val3);
22140 if (obj3) {
22141 {
22142 arg4 = &temp4;
22143 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22144 }
22145 }
22146 if (obj4) {
22147 {
22148 arg5 = &temp5;
22149 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22150 }
22151 }
22152 if (obj5) {
22153 ecode6 = SWIG_AsVal_long(obj5, &val6);
22154 if (!SWIG_IsOK(ecode6)) {
22155 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22156 }
22157 arg6 = static_cast< long >(val6);
22158 }
22159 if (obj6) {
22160 {
22161 arg7 = wxString_in_helper(obj6);
22162 if (arg7 == NULL) SWIG_fail;
22163 temp7 = true;
22164 }
22165 }
22166 {
22167 PyThreadState* __tstate = wxPyBeginAllowThreads();
22168 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22169 wxPyEndAllowThreads(__tstate);
22170 if (PyErr_Occurred()) SWIG_fail;
22171 }
22172 {
22173 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22174 }
22175 {
22176 if (temp7)
22177 delete arg7;
22178 }
22179 return resultobj;
22180 fail:
22181 {
22182 if (temp7)
22183 delete arg7;
22184 }
22185 return NULL;
22186 }
22187
22188
22189 SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22190 PyObject *resultobj = 0;
22191 wxToolbook *arg1 = (wxToolbook *) 0 ;
22192 wxToolBarBase *result = 0 ;
22193 void *argp1 = 0 ;
22194 int res1 = 0 ;
22195 PyObject *swig_obj[1] ;
22196
22197 if (!args) SWIG_fail;
22198 swig_obj[0] = args;
22199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22200 if (!SWIG_IsOK(res1)) {
22201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22202 }
22203 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22204 {
22205 PyThreadState* __tstate = wxPyBeginAllowThreads();
22206 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22207 wxPyEndAllowThreads(__tstate);
22208 if (PyErr_Occurred()) SWIG_fail;
22209 }
22210 {
22211 resultobj = wxPyMake_wxObject(result, (bool)0);
22212 }
22213 return resultobj;
22214 fail:
22215 return NULL;
22216 }
22217
22218
22219 SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22220 PyObject *resultobj = 0;
22221 wxToolbook *arg1 = (wxToolbook *) 0 ;
22222 void *argp1 = 0 ;
22223 int res1 = 0 ;
22224 PyObject *swig_obj[1] ;
22225
22226 if (!args) SWIG_fail;
22227 swig_obj[0] = args;
22228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22229 if (!SWIG_IsOK(res1)) {
22230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22231 }
22232 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22233 {
22234 PyThreadState* __tstate = wxPyBeginAllowThreads();
22235 (arg1)->Realize();
22236 wxPyEndAllowThreads(__tstate);
22237 if (PyErr_Occurred()) SWIG_fail;
22238 }
22239 resultobj = SWIG_Py_Void();
22240 return resultobj;
22241 fail:
22242 return NULL;
22243 }
22244
22245
22246 SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22247 PyObject *obj;
22248 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22249 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22250 return SWIG_Py_Void();
22251 }
22252
22253 SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22254 return SWIG_Python_InitShadowInstance(args);
22255 }
22256
22257 SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22258 PyObject *resultobj = 0;
22259 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22260 int arg2 = (int) 0 ;
22261 int arg3 = (int) wxNOT_FOUND ;
22262 int arg4 = (int) wxNOT_FOUND ;
22263 wxToolbookEvent *result = 0 ;
22264 int val1 ;
22265 int ecode1 = 0 ;
22266 int val2 ;
22267 int ecode2 = 0 ;
22268 int val3 ;
22269 int ecode3 = 0 ;
22270 int val4 ;
22271 int ecode4 = 0 ;
22272 PyObject * obj0 = 0 ;
22273 PyObject * obj1 = 0 ;
22274 PyObject * obj2 = 0 ;
22275 PyObject * obj3 = 0 ;
22276 char * kwnames[] = {
22277 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22278 };
22279
22280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22281 if (obj0) {
22282 ecode1 = SWIG_AsVal_int(obj0, &val1);
22283 if (!SWIG_IsOK(ecode1)) {
22284 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22285 }
22286 arg1 = static_cast< wxEventType >(val1);
22287 }
22288 if (obj1) {
22289 ecode2 = SWIG_AsVal_int(obj1, &val2);
22290 if (!SWIG_IsOK(ecode2)) {
22291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22292 }
22293 arg2 = static_cast< int >(val2);
22294 }
22295 if (obj2) {
22296 ecode3 = SWIG_AsVal_int(obj2, &val3);
22297 if (!SWIG_IsOK(ecode3)) {
22298 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22299 }
22300 arg3 = static_cast< int >(val3);
22301 }
22302 if (obj3) {
22303 ecode4 = SWIG_AsVal_int(obj3, &val4);
22304 if (!SWIG_IsOK(ecode4)) {
22305 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22306 }
22307 arg4 = static_cast< int >(val4);
22308 }
22309 {
22310 PyThreadState* __tstate = wxPyBeginAllowThreads();
22311 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22312 wxPyEndAllowThreads(__tstate);
22313 if (PyErr_Occurred()) SWIG_fail;
22314 }
22315 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22316 return resultobj;
22317 fail:
22318 return NULL;
22319 }
22320
22321
22322 SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22323 PyObject *obj;
22324 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22325 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22326 return SWIG_Py_Void();
22327 }
22328
22329 SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22330 return SWIG_Python_InitShadowInstance(args);
22331 }
22332
22333 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22334 PyObject *resultobj = 0;
22335 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22336 int result;
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_wxToolBarToolBase, 0 | 0 );
22344 if (!SWIG_IsOK(res1)) {
22345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22346 }
22347 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22348 {
22349 PyThreadState* __tstate = wxPyBeginAllowThreads();
22350 result = (int)(arg1)->GetId();
22351 wxPyEndAllowThreads(__tstate);
22352 if (PyErr_Occurred()) SWIG_fail;
22353 }
22354 resultobj = SWIG_From_int(static_cast< int >(result));
22355 return resultobj;
22356 fail:
22357 return NULL;
22358 }
22359
22360
22361 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22362 PyObject *resultobj = 0;
22363 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22364 wxControl *result = 0 ;
22365 void *argp1 = 0 ;
22366 int res1 = 0 ;
22367 PyObject *swig_obj[1] ;
22368
22369 if (!args) SWIG_fail;
22370 swig_obj[0] = args;
22371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22372 if (!SWIG_IsOK(res1)) {
22373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22374 }
22375 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22376 {
22377 PyThreadState* __tstate = wxPyBeginAllowThreads();
22378 result = (wxControl *)(arg1)->GetControl();
22379 wxPyEndAllowThreads(__tstate);
22380 if (PyErr_Occurred()) SWIG_fail;
22381 }
22382 {
22383 resultobj = wxPyMake_wxObject(result, 0);
22384 }
22385 return resultobj;
22386 fail:
22387 return NULL;
22388 }
22389
22390
22391 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22392 PyObject *resultobj = 0;
22393 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22394 wxToolBarBase *result = 0 ;
22395 void *argp1 = 0 ;
22396 int res1 = 0 ;
22397 PyObject *swig_obj[1] ;
22398
22399 if (!args) SWIG_fail;
22400 swig_obj[0] = args;
22401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22402 if (!SWIG_IsOK(res1)) {
22403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22404 }
22405 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22406 {
22407 PyThreadState* __tstate = wxPyBeginAllowThreads();
22408 result = (wxToolBarBase *)(arg1)->GetToolBar();
22409 wxPyEndAllowThreads(__tstate);
22410 if (PyErr_Occurred()) SWIG_fail;
22411 }
22412 {
22413 resultobj = wxPyMake_wxObject(result, (bool)0);
22414 }
22415 return resultobj;
22416 fail:
22417 return NULL;
22418 }
22419
22420
22421 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22422 PyObject *resultobj = 0;
22423 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22424 int result;
22425 void *argp1 = 0 ;
22426 int res1 = 0 ;
22427 PyObject *swig_obj[1] ;
22428
22429 if (!args) SWIG_fail;
22430 swig_obj[0] = args;
22431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22432 if (!SWIG_IsOK(res1)) {
22433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22434 }
22435 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22436 {
22437 PyThreadState* __tstate = wxPyBeginAllowThreads();
22438 result = (int)(arg1)->IsButton();
22439 wxPyEndAllowThreads(__tstate);
22440 if (PyErr_Occurred()) SWIG_fail;
22441 }
22442 resultobj = SWIG_From_int(static_cast< int >(result));
22443 return resultobj;
22444 fail:
22445 return NULL;
22446 }
22447
22448
22449 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22450 PyObject *resultobj = 0;
22451 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22452 int result;
22453 void *argp1 = 0 ;
22454 int res1 = 0 ;
22455 PyObject *swig_obj[1] ;
22456
22457 if (!args) SWIG_fail;
22458 swig_obj[0] = args;
22459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22460 if (!SWIG_IsOK(res1)) {
22461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22462 }
22463 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22464 {
22465 PyThreadState* __tstate = wxPyBeginAllowThreads();
22466 result = (int)(arg1)->IsControl();
22467 wxPyEndAllowThreads(__tstate);
22468 if (PyErr_Occurred()) SWIG_fail;
22469 }
22470 resultobj = SWIG_From_int(static_cast< int >(result));
22471 return resultobj;
22472 fail:
22473 return NULL;
22474 }
22475
22476
22477 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(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_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22490 }
22491 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22492 {
22493 PyThreadState* __tstate = wxPyBeginAllowThreads();
22494 result = (int)(arg1)->IsSeparator();
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_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22506 PyObject *resultobj = 0;
22507 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22508 int result;
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_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22518 }
22519 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22520 {
22521 PyThreadState* __tstate = wxPyBeginAllowThreads();
22522 result = (int)(arg1)->GetStyle();
22523 wxPyEndAllowThreads(__tstate);
22524 if (PyErr_Occurred()) SWIG_fail;
22525 }
22526 resultobj = SWIG_From_int(static_cast< int >(result));
22527 return resultobj;
22528 fail:
22529 return NULL;
22530 }
22531
22532
22533 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22534 PyObject *resultobj = 0;
22535 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22536 wxItemKind result;
22537 void *argp1 = 0 ;
22538 int res1 = 0 ;
22539 PyObject *swig_obj[1] ;
22540
22541 if (!args) SWIG_fail;
22542 swig_obj[0] = args;
22543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22544 if (!SWIG_IsOK(res1)) {
22545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22546 }
22547 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22548 {
22549 PyThreadState* __tstate = wxPyBeginAllowThreads();
22550 result = (wxItemKind)(arg1)->GetKind();
22551 wxPyEndAllowThreads(__tstate);
22552 if (PyErr_Occurred()) SWIG_fail;
22553 }
22554 resultobj = SWIG_From_int(static_cast< int >(result));
22555 return resultobj;
22556 fail:
22557 return NULL;
22558 }
22559
22560
22561 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22562 PyObject *resultobj = 0;
22563 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22564 bool result;
22565 void *argp1 = 0 ;
22566 int res1 = 0 ;
22567 PyObject *swig_obj[1] ;
22568
22569 if (!args) SWIG_fail;
22570 swig_obj[0] = args;
22571 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22572 if (!SWIG_IsOK(res1)) {
22573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22574 }
22575 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22576 {
22577 PyThreadState* __tstate = wxPyBeginAllowThreads();
22578 result = (bool)(arg1)->IsEnabled();
22579 wxPyEndAllowThreads(__tstate);
22580 if (PyErr_Occurred()) SWIG_fail;
22581 }
22582 {
22583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22584 }
22585 return resultobj;
22586 fail:
22587 return NULL;
22588 }
22589
22590
22591 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22592 PyObject *resultobj = 0;
22593 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22594 bool result;
22595 void *argp1 = 0 ;
22596 int res1 = 0 ;
22597 PyObject *swig_obj[1] ;
22598
22599 if (!args) SWIG_fail;
22600 swig_obj[0] = args;
22601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22602 if (!SWIG_IsOK(res1)) {
22603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22604 }
22605 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22606 {
22607 PyThreadState* __tstate = wxPyBeginAllowThreads();
22608 result = (bool)(arg1)->IsToggled();
22609 wxPyEndAllowThreads(__tstate);
22610 if (PyErr_Occurred()) SWIG_fail;
22611 }
22612 {
22613 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22614 }
22615 return resultobj;
22616 fail:
22617 return NULL;
22618 }
22619
22620
22621 SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22622 PyObject *resultobj = 0;
22623 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22624 bool 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_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22634 }
22635 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22636 {
22637 PyThreadState* __tstate = wxPyBeginAllowThreads();
22638 result = (bool)(arg1)->CanBeToggled();
22639 wxPyEndAllowThreads(__tstate);
22640 if (PyErr_Occurred()) SWIG_fail;
22641 }
22642 {
22643 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22644 }
22645 return resultobj;
22646 fail:
22647 return NULL;
22648 }
22649
22650
22651 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22652 PyObject *resultobj = 0;
22653 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22654 wxBitmap *result = 0 ;
22655 void *argp1 = 0 ;
22656 int res1 = 0 ;
22657 PyObject *swig_obj[1] ;
22658
22659 if (!args) SWIG_fail;
22660 swig_obj[0] = args;
22661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22662 if (!SWIG_IsOK(res1)) {
22663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22664 }
22665 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22666 {
22667 PyThreadState* __tstate = wxPyBeginAllowThreads();
22668 {
22669 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
22670 result = (wxBitmap *) &_result_ref;
22671 }
22672 wxPyEndAllowThreads(__tstate);
22673 if (PyErr_Occurred()) SWIG_fail;
22674 }
22675 {
22676 wxBitmap* resultptr = new wxBitmap(*result);
22677 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22678 }
22679 return resultobj;
22680 fail:
22681 return NULL;
22682 }
22683
22684
22685 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22686 PyObject *resultobj = 0;
22687 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22688 wxBitmap *result = 0 ;
22689 void *argp1 = 0 ;
22690 int res1 = 0 ;
22691 PyObject *swig_obj[1] ;
22692
22693 if (!args) SWIG_fail;
22694 swig_obj[0] = args;
22695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22696 if (!SWIG_IsOK(res1)) {
22697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22698 }
22699 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22700 {
22701 PyThreadState* __tstate = wxPyBeginAllowThreads();
22702 {
22703 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
22704 result = (wxBitmap *) &_result_ref;
22705 }
22706 wxPyEndAllowThreads(__tstate);
22707 if (PyErr_Occurred()) SWIG_fail;
22708 }
22709 {
22710 wxBitmap* resultptr = new wxBitmap(*result);
22711 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22712 }
22713 return resultobj;
22714 fail:
22715 return NULL;
22716 }
22717
22718
22719 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22720 PyObject *resultobj = 0;
22721 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22722 wxBitmap result;
22723 void *argp1 = 0 ;
22724 int res1 = 0 ;
22725 PyObject *swig_obj[1] ;
22726
22727 if (!args) SWIG_fail;
22728 swig_obj[0] = args;
22729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22730 if (!SWIG_IsOK(res1)) {
22731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22732 }
22733 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22734 {
22735 PyThreadState* __tstate = wxPyBeginAllowThreads();
22736 result = (arg1)->GetBitmap();
22737 wxPyEndAllowThreads(__tstate);
22738 if (PyErr_Occurred()) SWIG_fail;
22739 }
22740 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
22741 return resultobj;
22742 fail:
22743 return NULL;
22744 }
22745
22746
22747 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22748 PyObject *resultobj = 0;
22749 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22750 wxString result;
22751 void *argp1 = 0 ;
22752 int res1 = 0 ;
22753 PyObject *swig_obj[1] ;
22754
22755 if (!args) SWIG_fail;
22756 swig_obj[0] = args;
22757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22758 if (!SWIG_IsOK(res1)) {
22759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22760 }
22761 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22762 {
22763 PyThreadState* __tstate = wxPyBeginAllowThreads();
22764 result = (arg1)->GetLabel();
22765 wxPyEndAllowThreads(__tstate);
22766 if (PyErr_Occurred()) SWIG_fail;
22767 }
22768 {
22769 #if wxUSE_UNICODE
22770 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22771 #else
22772 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22773 #endif
22774 }
22775 return resultobj;
22776 fail:
22777 return NULL;
22778 }
22779
22780
22781 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22782 PyObject *resultobj = 0;
22783 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22784 wxString result;
22785 void *argp1 = 0 ;
22786 int res1 = 0 ;
22787 PyObject *swig_obj[1] ;
22788
22789 if (!args) SWIG_fail;
22790 swig_obj[0] = args;
22791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22792 if (!SWIG_IsOK(res1)) {
22793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22794 }
22795 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22796 {
22797 PyThreadState* __tstate = wxPyBeginAllowThreads();
22798 result = (arg1)->GetShortHelp();
22799 wxPyEndAllowThreads(__tstate);
22800 if (PyErr_Occurred()) SWIG_fail;
22801 }
22802 {
22803 #if wxUSE_UNICODE
22804 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22805 #else
22806 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22807 #endif
22808 }
22809 return resultobj;
22810 fail:
22811 return NULL;
22812 }
22813
22814
22815 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22816 PyObject *resultobj = 0;
22817 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22818 wxString result;
22819 void *argp1 = 0 ;
22820 int res1 = 0 ;
22821 PyObject *swig_obj[1] ;
22822
22823 if (!args) SWIG_fail;
22824 swig_obj[0] = args;
22825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22826 if (!SWIG_IsOK(res1)) {
22827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22828 }
22829 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22830 {
22831 PyThreadState* __tstate = wxPyBeginAllowThreads();
22832 result = (arg1)->GetLongHelp();
22833 wxPyEndAllowThreads(__tstate);
22834 if (PyErr_Occurred()) SWIG_fail;
22835 }
22836 {
22837 #if wxUSE_UNICODE
22838 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22839 #else
22840 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22841 #endif
22842 }
22843 return resultobj;
22844 fail:
22845 return NULL;
22846 }
22847
22848
22849 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22850 PyObject *resultobj = 0;
22851 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22852 bool arg2 ;
22853 bool result;
22854 void *argp1 = 0 ;
22855 int res1 = 0 ;
22856 bool val2 ;
22857 int ecode2 = 0 ;
22858 PyObject * obj0 = 0 ;
22859 PyObject * obj1 = 0 ;
22860 char * kwnames[] = {
22861 (char *) "self",(char *) "enable", NULL
22862 };
22863
22864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
22865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22866 if (!SWIG_IsOK(res1)) {
22867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22868 }
22869 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22870 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22871 if (!SWIG_IsOK(ecode2)) {
22872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
22873 }
22874 arg2 = static_cast< bool >(val2);
22875 {
22876 PyThreadState* __tstate = wxPyBeginAllowThreads();
22877 result = (bool)(arg1)->Enable(arg2);
22878 wxPyEndAllowThreads(__tstate);
22879 if (PyErr_Occurred()) SWIG_fail;
22880 }
22881 {
22882 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22883 }
22884 return resultobj;
22885 fail:
22886 return NULL;
22887 }
22888
22889
22890 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22891 PyObject *resultobj = 0;
22892 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22893 void *argp1 = 0 ;
22894 int res1 = 0 ;
22895 PyObject *swig_obj[1] ;
22896
22897 if (!args) SWIG_fail;
22898 swig_obj[0] = args;
22899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22900 if (!SWIG_IsOK(res1)) {
22901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22902 }
22903 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22904 {
22905 PyThreadState* __tstate = wxPyBeginAllowThreads();
22906 (arg1)->Toggle();
22907 wxPyEndAllowThreads(__tstate);
22908 if (PyErr_Occurred()) SWIG_fail;
22909 }
22910 resultobj = SWIG_Py_Void();
22911 return resultobj;
22912 fail:
22913 return NULL;
22914 }
22915
22916
22917 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22918 PyObject *resultobj = 0;
22919 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22920 bool arg2 ;
22921 bool result;
22922 void *argp1 = 0 ;
22923 int res1 = 0 ;
22924 bool val2 ;
22925 int ecode2 = 0 ;
22926 PyObject * obj0 = 0 ;
22927 PyObject * obj1 = 0 ;
22928 char * kwnames[] = {
22929 (char *) "self",(char *) "toggle", NULL
22930 };
22931
22932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
22933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22934 if (!SWIG_IsOK(res1)) {
22935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22936 }
22937 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22938 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22939 if (!SWIG_IsOK(ecode2)) {
22940 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
22941 }
22942 arg2 = static_cast< bool >(val2);
22943 {
22944 PyThreadState* __tstate = wxPyBeginAllowThreads();
22945 result = (bool)(arg1)->SetToggle(arg2);
22946 wxPyEndAllowThreads(__tstate);
22947 if (PyErr_Occurred()) SWIG_fail;
22948 }
22949 {
22950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22951 }
22952 return resultobj;
22953 fail:
22954 return NULL;
22955 }
22956
22957
22958 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22959 PyObject *resultobj = 0;
22960 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22961 wxString *arg2 = 0 ;
22962 bool result;
22963 void *argp1 = 0 ;
22964 int res1 = 0 ;
22965 bool temp2 = false ;
22966 PyObject * obj0 = 0 ;
22967 PyObject * obj1 = 0 ;
22968 char * kwnames[] = {
22969 (char *) "self",(char *) "help", NULL
22970 };
22971
22972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
22973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22974 if (!SWIG_IsOK(res1)) {
22975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22976 }
22977 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22978 {
22979 arg2 = wxString_in_helper(obj1);
22980 if (arg2 == NULL) SWIG_fail;
22981 temp2 = true;
22982 }
22983 {
22984 PyThreadState* __tstate = wxPyBeginAllowThreads();
22985 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
22986 wxPyEndAllowThreads(__tstate);
22987 if (PyErr_Occurred()) SWIG_fail;
22988 }
22989 {
22990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22991 }
22992 {
22993 if (temp2)
22994 delete arg2;
22995 }
22996 return resultobj;
22997 fail:
22998 {
22999 if (temp2)
23000 delete arg2;
23001 }
23002 return NULL;
23003 }
23004
23005
23006 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23007 PyObject *resultobj = 0;
23008 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23009 wxString *arg2 = 0 ;
23010 bool result;
23011 void *argp1 = 0 ;
23012 int res1 = 0 ;
23013 bool temp2 = false ;
23014 PyObject * obj0 = 0 ;
23015 PyObject * obj1 = 0 ;
23016 char * kwnames[] = {
23017 (char *) "self",(char *) "help", NULL
23018 };
23019
23020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23022 if (!SWIG_IsOK(res1)) {
23023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23024 }
23025 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23026 {
23027 arg2 = wxString_in_helper(obj1);
23028 if (arg2 == NULL) SWIG_fail;
23029 temp2 = true;
23030 }
23031 {
23032 PyThreadState* __tstate = wxPyBeginAllowThreads();
23033 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23034 wxPyEndAllowThreads(__tstate);
23035 if (PyErr_Occurred()) SWIG_fail;
23036 }
23037 {
23038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23039 }
23040 {
23041 if (temp2)
23042 delete arg2;
23043 }
23044 return resultobj;
23045 fail:
23046 {
23047 if (temp2)
23048 delete arg2;
23049 }
23050 return NULL;
23051 }
23052
23053
23054 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23055 PyObject *resultobj = 0;
23056 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23057 wxBitmap *arg2 = 0 ;
23058 void *argp1 = 0 ;
23059 int res1 = 0 ;
23060 void *argp2 = 0 ;
23061 int res2 = 0 ;
23062 PyObject * obj0 = 0 ;
23063 PyObject * obj1 = 0 ;
23064 char * kwnames[] = {
23065 (char *) "self",(char *) "bmp", NULL
23066 };
23067
23068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23070 if (!SWIG_IsOK(res1)) {
23071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23072 }
23073 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23074 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23075 if (!SWIG_IsOK(res2)) {
23076 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23077 }
23078 if (!argp2) {
23079 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23080 }
23081 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23082 {
23083 PyThreadState* __tstate = wxPyBeginAllowThreads();
23084 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23085 wxPyEndAllowThreads(__tstate);
23086 if (PyErr_Occurred()) SWIG_fail;
23087 }
23088 resultobj = SWIG_Py_Void();
23089 return resultobj;
23090 fail:
23091 return NULL;
23092 }
23093
23094
23095 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23096 PyObject *resultobj = 0;
23097 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23098 wxBitmap *arg2 = 0 ;
23099 void *argp1 = 0 ;
23100 int res1 = 0 ;
23101 void *argp2 = 0 ;
23102 int res2 = 0 ;
23103 PyObject * obj0 = 0 ;
23104 PyObject * obj1 = 0 ;
23105 char * kwnames[] = {
23106 (char *) "self",(char *) "bmp", NULL
23107 };
23108
23109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23111 if (!SWIG_IsOK(res1)) {
23112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23113 }
23114 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23115 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23116 if (!SWIG_IsOK(res2)) {
23117 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23118 }
23119 if (!argp2) {
23120 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23121 }
23122 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23123 {
23124 PyThreadState* __tstate = wxPyBeginAllowThreads();
23125 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23126 wxPyEndAllowThreads(__tstate);
23127 if (PyErr_Occurred()) SWIG_fail;
23128 }
23129 resultobj = SWIG_Py_Void();
23130 return resultobj;
23131 fail:
23132 return NULL;
23133 }
23134
23135
23136 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23137 PyObject *resultobj = 0;
23138 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23139 wxString *arg2 = 0 ;
23140 void *argp1 = 0 ;
23141 int res1 = 0 ;
23142 bool temp2 = false ;
23143 PyObject * obj0 = 0 ;
23144 PyObject * obj1 = 0 ;
23145 char * kwnames[] = {
23146 (char *) "self",(char *) "label", NULL
23147 };
23148
23149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23151 if (!SWIG_IsOK(res1)) {
23152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23153 }
23154 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23155 {
23156 arg2 = wxString_in_helper(obj1);
23157 if (arg2 == NULL) SWIG_fail;
23158 temp2 = true;
23159 }
23160 {
23161 PyThreadState* __tstate = wxPyBeginAllowThreads();
23162 (arg1)->SetLabel((wxString const &)*arg2);
23163 wxPyEndAllowThreads(__tstate);
23164 if (PyErr_Occurred()) SWIG_fail;
23165 }
23166 resultobj = SWIG_Py_Void();
23167 {
23168 if (temp2)
23169 delete arg2;
23170 }
23171 return resultobj;
23172 fail:
23173 {
23174 if (temp2)
23175 delete arg2;
23176 }
23177 return NULL;
23178 }
23179
23180
23181 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23182 PyObject *resultobj = 0;
23183 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23184 void *argp1 = 0 ;
23185 int res1 = 0 ;
23186 PyObject *swig_obj[1] ;
23187
23188 if (!args) SWIG_fail;
23189 swig_obj[0] = args;
23190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23191 if (!SWIG_IsOK(res1)) {
23192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23193 }
23194 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23195 {
23196 PyThreadState* __tstate = wxPyBeginAllowThreads();
23197 (arg1)->Detach();
23198 wxPyEndAllowThreads(__tstate);
23199 if (PyErr_Occurred()) SWIG_fail;
23200 }
23201 resultobj = SWIG_Py_Void();
23202 return resultobj;
23203 fail:
23204 return NULL;
23205 }
23206
23207
23208 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23209 PyObject *resultobj = 0;
23210 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23211 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23212 void *argp1 = 0 ;
23213 int res1 = 0 ;
23214 void *argp2 = 0 ;
23215 int res2 = 0 ;
23216 PyObject * obj0 = 0 ;
23217 PyObject * obj1 = 0 ;
23218 char * kwnames[] = {
23219 (char *) "self",(char *) "tbar", NULL
23220 };
23221
23222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23224 if (!SWIG_IsOK(res1)) {
23225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23226 }
23227 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23228 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23229 if (!SWIG_IsOK(res2)) {
23230 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23231 }
23232 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23233 {
23234 PyThreadState* __tstate = wxPyBeginAllowThreads();
23235 (arg1)->Attach(arg2);
23236 wxPyEndAllowThreads(__tstate);
23237 if (PyErr_Occurred()) SWIG_fail;
23238 }
23239 resultobj = SWIG_Py_Void();
23240 return resultobj;
23241 fail:
23242 return NULL;
23243 }
23244
23245
23246 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23247 PyObject *resultobj = 0;
23248 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23249 PyObject *result = 0 ;
23250 void *argp1 = 0 ;
23251 int res1 = 0 ;
23252 PyObject *swig_obj[1] ;
23253
23254 if (!args) SWIG_fail;
23255 swig_obj[0] = args;
23256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23257 if (!SWIG_IsOK(res1)) {
23258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23259 }
23260 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23261 {
23262 PyThreadState* __tstate = wxPyBeginAllowThreads();
23263 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23264 wxPyEndAllowThreads(__tstate);
23265 if (PyErr_Occurred()) SWIG_fail;
23266 }
23267 resultobj = result;
23268 return resultobj;
23269 fail:
23270 return NULL;
23271 }
23272
23273
23274 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23275 PyObject *resultobj = 0;
23276 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23277 PyObject *arg2 = (PyObject *) 0 ;
23278 void *argp1 = 0 ;
23279 int res1 = 0 ;
23280 PyObject * obj0 = 0 ;
23281 PyObject * obj1 = 0 ;
23282 char * kwnames[] = {
23283 (char *) "self",(char *) "clientData", NULL
23284 };
23285
23286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23288 if (!SWIG_IsOK(res1)) {
23289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23290 }
23291 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23292 arg2 = obj1;
23293 {
23294 PyThreadState* __tstate = wxPyBeginAllowThreads();
23295 wxToolBarToolBase_SetClientData(arg1,arg2);
23296 wxPyEndAllowThreads(__tstate);
23297 if (PyErr_Occurred()) SWIG_fail;
23298 }
23299 resultobj = SWIG_Py_Void();
23300 return resultobj;
23301 fail:
23302 return NULL;
23303 }
23304
23305
23306 SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23307 PyObject *obj;
23308 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23309 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23310 return SWIG_Py_Void();
23311 }
23312
23313 SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23314 PyObject *resultobj = 0;
23315 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23316 int arg2 ;
23317 wxString *arg3 = 0 ;
23318 wxBitmap *arg4 = 0 ;
23319 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23320 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23321 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23322 wxString const &arg7_defvalue = wxPyEmptyString ;
23323 wxString *arg7 = (wxString *) &arg7_defvalue ;
23324 wxString const &arg8_defvalue = wxPyEmptyString ;
23325 wxString *arg8 = (wxString *) &arg8_defvalue ;
23326 PyObject *arg9 = (PyObject *) NULL ;
23327 wxToolBarToolBase *result = 0 ;
23328 void *argp1 = 0 ;
23329 int res1 = 0 ;
23330 int val2 ;
23331 int ecode2 = 0 ;
23332 bool temp3 = false ;
23333 void *argp4 = 0 ;
23334 int res4 = 0 ;
23335 void *argp5 = 0 ;
23336 int res5 = 0 ;
23337 int val6 ;
23338 int ecode6 = 0 ;
23339 bool temp7 = false ;
23340 bool temp8 = false ;
23341 PyObject * obj0 = 0 ;
23342 PyObject * obj1 = 0 ;
23343 PyObject * obj2 = 0 ;
23344 PyObject * obj3 = 0 ;
23345 PyObject * obj4 = 0 ;
23346 PyObject * obj5 = 0 ;
23347 PyObject * obj6 = 0 ;
23348 PyObject * obj7 = 0 ;
23349 PyObject * obj8 = 0 ;
23350 char * kwnames[] = {
23351 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23352 };
23353
23354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23356 if (!SWIG_IsOK(res1)) {
23357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23358 }
23359 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23360 ecode2 = SWIG_AsVal_int(obj1, &val2);
23361 if (!SWIG_IsOK(ecode2)) {
23362 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23363 }
23364 arg2 = static_cast< int >(val2);
23365 {
23366 arg3 = wxString_in_helper(obj2);
23367 if (arg3 == NULL) SWIG_fail;
23368 temp3 = true;
23369 }
23370 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23371 if (!SWIG_IsOK(res4)) {
23372 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23373 }
23374 if (!argp4) {
23375 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23376 }
23377 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23378 if (obj4) {
23379 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23380 if (!SWIG_IsOK(res5)) {
23381 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23382 }
23383 if (!argp5) {
23384 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23385 }
23386 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23387 }
23388 if (obj5) {
23389 ecode6 = SWIG_AsVal_int(obj5, &val6);
23390 if (!SWIG_IsOK(ecode6)) {
23391 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23392 }
23393 arg6 = static_cast< wxItemKind >(val6);
23394 }
23395 if (obj6) {
23396 {
23397 arg7 = wxString_in_helper(obj6);
23398 if (arg7 == NULL) SWIG_fail;
23399 temp7 = true;
23400 }
23401 }
23402 if (obj7) {
23403 {
23404 arg8 = wxString_in_helper(obj7);
23405 if (arg8 == NULL) SWIG_fail;
23406 temp8 = true;
23407 }
23408 }
23409 if (obj8) {
23410 arg9 = obj8;
23411 }
23412 {
23413 PyThreadState* __tstate = wxPyBeginAllowThreads();
23414 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23415 wxPyEndAllowThreads(__tstate);
23416 if (PyErr_Occurred()) SWIG_fail;
23417 }
23418 {
23419 resultobj = wxPyMake_wxObject(result, (bool)0);
23420 }
23421 {
23422 if (temp3)
23423 delete arg3;
23424 }
23425 {
23426 if (temp7)
23427 delete arg7;
23428 }
23429 {
23430 if (temp8)
23431 delete arg8;
23432 }
23433 return resultobj;
23434 fail:
23435 {
23436 if (temp3)
23437 delete arg3;
23438 }
23439 {
23440 if (temp7)
23441 delete arg7;
23442 }
23443 {
23444 if (temp8)
23445 delete arg8;
23446 }
23447 return NULL;
23448 }
23449
23450
23451 SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23452 PyObject *resultobj = 0;
23453 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23454 size_t arg2 ;
23455 int arg3 ;
23456 wxString *arg4 = 0 ;
23457 wxBitmap *arg5 = 0 ;
23458 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23459 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23460 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23461 wxString const &arg8_defvalue = wxPyEmptyString ;
23462 wxString *arg8 = (wxString *) &arg8_defvalue ;
23463 wxString const &arg9_defvalue = wxPyEmptyString ;
23464 wxString *arg9 = (wxString *) &arg9_defvalue ;
23465 PyObject *arg10 = (PyObject *) NULL ;
23466 wxToolBarToolBase *result = 0 ;
23467 void *argp1 = 0 ;
23468 int res1 = 0 ;
23469 size_t val2 ;
23470 int ecode2 = 0 ;
23471 int val3 ;
23472 int ecode3 = 0 ;
23473 bool temp4 = false ;
23474 void *argp5 = 0 ;
23475 int res5 = 0 ;
23476 void *argp6 = 0 ;
23477 int res6 = 0 ;
23478 int val7 ;
23479 int ecode7 = 0 ;
23480 bool temp8 = false ;
23481 bool temp9 = false ;
23482 PyObject * obj0 = 0 ;
23483 PyObject * obj1 = 0 ;
23484 PyObject * obj2 = 0 ;
23485 PyObject * obj3 = 0 ;
23486 PyObject * obj4 = 0 ;
23487 PyObject * obj5 = 0 ;
23488 PyObject * obj6 = 0 ;
23489 PyObject * obj7 = 0 ;
23490 PyObject * obj8 = 0 ;
23491 PyObject * obj9 = 0 ;
23492 char * kwnames[] = {
23493 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23494 };
23495
23496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23498 if (!SWIG_IsOK(res1)) {
23499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23500 }
23501 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23502 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23503 if (!SWIG_IsOK(ecode2)) {
23504 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23505 }
23506 arg2 = static_cast< size_t >(val2);
23507 ecode3 = SWIG_AsVal_int(obj2, &val3);
23508 if (!SWIG_IsOK(ecode3)) {
23509 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23510 }
23511 arg3 = static_cast< int >(val3);
23512 {
23513 arg4 = wxString_in_helper(obj3);
23514 if (arg4 == NULL) SWIG_fail;
23515 temp4 = true;
23516 }
23517 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23518 if (!SWIG_IsOK(res5)) {
23519 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23520 }
23521 if (!argp5) {
23522 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23523 }
23524 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23525 if (obj5) {
23526 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23527 if (!SWIG_IsOK(res6)) {
23528 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23529 }
23530 if (!argp6) {
23531 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23532 }
23533 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23534 }
23535 if (obj6) {
23536 ecode7 = SWIG_AsVal_int(obj6, &val7);
23537 if (!SWIG_IsOK(ecode7)) {
23538 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23539 }
23540 arg7 = static_cast< wxItemKind >(val7);
23541 }
23542 if (obj7) {
23543 {
23544 arg8 = wxString_in_helper(obj7);
23545 if (arg8 == NULL) SWIG_fail;
23546 temp8 = true;
23547 }
23548 }
23549 if (obj8) {
23550 {
23551 arg9 = wxString_in_helper(obj8);
23552 if (arg9 == NULL) SWIG_fail;
23553 temp9 = true;
23554 }
23555 }
23556 if (obj9) {
23557 arg10 = obj9;
23558 }
23559 {
23560 PyThreadState* __tstate = wxPyBeginAllowThreads();
23561 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
23562 wxPyEndAllowThreads(__tstate);
23563 if (PyErr_Occurred()) SWIG_fail;
23564 }
23565 {
23566 resultobj = wxPyMake_wxObject(result, (bool)0);
23567 }
23568 {
23569 if (temp4)
23570 delete arg4;
23571 }
23572 {
23573 if (temp8)
23574 delete arg8;
23575 }
23576 {
23577 if (temp9)
23578 delete arg9;
23579 }
23580 return resultobj;
23581 fail:
23582 {
23583 if (temp4)
23584 delete arg4;
23585 }
23586 {
23587 if (temp8)
23588 delete arg8;
23589 }
23590 {
23591 if (temp9)
23592 delete arg9;
23593 }
23594 return NULL;
23595 }
23596
23597
23598 SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23599 PyObject *resultobj = 0;
23600 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23601 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
23602 wxToolBarToolBase *result = 0 ;
23603 void *argp1 = 0 ;
23604 int res1 = 0 ;
23605 void *argp2 = 0 ;
23606 int res2 = 0 ;
23607 PyObject * obj0 = 0 ;
23608 PyObject * obj1 = 0 ;
23609 char * kwnames[] = {
23610 (char *) "self",(char *) "tool", NULL
23611 };
23612
23613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
23614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23615 if (!SWIG_IsOK(res1)) {
23616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23617 }
23618 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23619 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23620 if (!SWIG_IsOK(res2)) {
23621 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
23622 }
23623 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
23624 {
23625 PyThreadState* __tstate = wxPyBeginAllowThreads();
23626 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
23627 wxPyEndAllowThreads(__tstate);
23628 if (PyErr_Occurred()) SWIG_fail;
23629 }
23630 {
23631 resultobj = wxPyMake_wxObject(result, (bool)0);
23632 }
23633 return resultobj;
23634 fail:
23635 return NULL;
23636 }
23637
23638
23639 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23640 PyObject *resultobj = 0;
23641 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23642 size_t arg2 ;
23643 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
23644 wxToolBarToolBase *result = 0 ;
23645 void *argp1 = 0 ;
23646 int res1 = 0 ;
23647 size_t val2 ;
23648 int ecode2 = 0 ;
23649 void *argp3 = 0 ;
23650 int res3 = 0 ;
23651 PyObject * obj0 = 0 ;
23652 PyObject * obj1 = 0 ;
23653 PyObject * obj2 = 0 ;
23654 char * kwnames[] = {
23655 (char *) "self",(char *) "pos",(char *) "tool", NULL
23656 };
23657
23658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23660 if (!SWIG_IsOK(res1)) {
23661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23662 }
23663 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23664 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23665 if (!SWIG_IsOK(ecode2)) {
23666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
23667 }
23668 arg2 = static_cast< size_t >(val2);
23669 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23670 if (!SWIG_IsOK(res3)) {
23671 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
23672 }
23673 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
23674 {
23675 PyThreadState* __tstate = wxPyBeginAllowThreads();
23676 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
23677 wxPyEndAllowThreads(__tstate);
23678 if (PyErr_Occurred()) SWIG_fail;
23679 }
23680 {
23681 resultobj = wxPyMake_wxObject(result, (bool)0);
23682 }
23683 return resultobj;
23684 fail:
23685 return NULL;
23686 }
23687
23688
23689 SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23690 PyObject *resultobj = 0;
23691 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23692 wxControl *arg2 = (wxControl *) 0 ;
23693 wxToolBarToolBase *result = 0 ;
23694 void *argp1 = 0 ;
23695 int res1 = 0 ;
23696 void *argp2 = 0 ;
23697 int res2 = 0 ;
23698 PyObject * obj0 = 0 ;
23699 PyObject * obj1 = 0 ;
23700 char * kwnames[] = {
23701 (char *) "self",(char *) "control", NULL
23702 };
23703
23704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
23705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23706 if (!SWIG_IsOK(res1)) {
23707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23708 }
23709 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23710 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
23711 if (!SWIG_IsOK(res2)) {
23712 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
23713 }
23714 arg2 = reinterpret_cast< wxControl * >(argp2);
23715 {
23716 PyThreadState* __tstate = wxPyBeginAllowThreads();
23717 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
23718 wxPyEndAllowThreads(__tstate);
23719 if (PyErr_Occurred()) SWIG_fail;
23720 }
23721 {
23722 resultobj = wxPyMake_wxObject(result, (bool)0);
23723 }
23724 return resultobj;
23725 fail:
23726 return NULL;
23727 }
23728
23729
23730 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23731 PyObject *resultobj = 0;
23732 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23733 size_t arg2 ;
23734 wxControl *arg3 = (wxControl *) 0 ;
23735 wxToolBarToolBase *result = 0 ;
23736 void *argp1 = 0 ;
23737 int res1 = 0 ;
23738 size_t val2 ;
23739 int ecode2 = 0 ;
23740 void *argp3 = 0 ;
23741 int res3 = 0 ;
23742 PyObject * obj0 = 0 ;
23743 PyObject * obj1 = 0 ;
23744 PyObject * obj2 = 0 ;
23745 char * kwnames[] = {
23746 (char *) "self",(char *) "pos",(char *) "control", NULL
23747 };
23748
23749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23751 if (!SWIG_IsOK(res1)) {
23752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23753 }
23754 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23755 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23756 if (!SWIG_IsOK(ecode2)) {
23757 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
23758 }
23759 arg2 = static_cast< size_t >(val2);
23760 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
23761 if (!SWIG_IsOK(res3)) {
23762 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
23763 }
23764 arg3 = reinterpret_cast< wxControl * >(argp3);
23765 {
23766 PyThreadState* __tstate = wxPyBeginAllowThreads();
23767 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
23768 wxPyEndAllowThreads(__tstate);
23769 if (PyErr_Occurred()) SWIG_fail;
23770 }
23771 {
23772 resultobj = wxPyMake_wxObject(result, (bool)0);
23773 }
23774 return resultobj;
23775 fail:
23776 return NULL;
23777 }
23778
23779
23780 SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23781 PyObject *resultobj = 0;
23782 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23783 int arg2 ;
23784 wxControl *result = 0 ;
23785 void *argp1 = 0 ;
23786 int res1 = 0 ;
23787 int val2 ;
23788 int ecode2 = 0 ;
23789 PyObject * obj0 = 0 ;
23790 PyObject * obj1 = 0 ;
23791 char * kwnames[] = {
23792 (char *) "self",(char *) "id", NULL
23793 };
23794
23795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
23796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23797 if (!SWIG_IsOK(res1)) {
23798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23799 }
23800 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23801 ecode2 = SWIG_AsVal_int(obj1, &val2);
23802 if (!SWIG_IsOK(ecode2)) {
23803 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
23804 }
23805 arg2 = static_cast< int >(val2);
23806 {
23807 PyThreadState* __tstate = wxPyBeginAllowThreads();
23808 result = (wxControl *)(arg1)->FindControl(arg2);
23809 wxPyEndAllowThreads(__tstate);
23810 if (PyErr_Occurred()) SWIG_fail;
23811 }
23812 {
23813 resultobj = wxPyMake_wxObject(result, 0);
23814 }
23815 return resultobj;
23816 fail:
23817 return NULL;
23818 }
23819
23820
23821 SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23822 PyObject *resultobj = 0;
23823 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23824 wxToolBarToolBase *result = 0 ;
23825 void *argp1 = 0 ;
23826 int res1 = 0 ;
23827 PyObject *swig_obj[1] ;
23828
23829 if (!args) SWIG_fail;
23830 swig_obj[0] = args;
23831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23832 if (!SWIG_IsOK(res1)) {
23833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23834 }
23835 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23836 {
23837 PyThreadState* __tstate = wxPyBeginAllowThreads();
23838 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
23839 wxPyEndAllowThreads(__tstate);
23840 if (PyErr_Occurred()) SWIG_fail;
23841 }
23842 {
23843 resultobj = wxPyMake_wxObject(result, (bool)0);
23844 }
23845 return resultobj;
23846 fail:
23847 return NULL;
23848 }
23849
23850
23851 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23852 PyObject *resultobj = 0;
23853 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23854 size_t arg2 ;
23855 wxToolBarToolBase *result = 0 ;
23856 void *argp1 = 0 ;
23857 int res1 = 0 ;
23858 size_t val2 ;
23859 int ecode2 = 0 ;
23860 PyObject * obj0 = 0 ;
23861 PyObject * obj1 = 0 ;
23862 char * kwnames[] = {
23863 (char *) "self",(char *) "pos", NULL
23864 };
23865
23866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
23867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23868 if (!SWIG_IsOK(res1)) {
23869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23870 }
23871 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23872 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23873 if (!SWIG_IsOK(ecode2)) {
23874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
23875 }
23876 arg2 = static_cast< size_t >(val2);
23877 {
23878 PyThreadState* __tstate = wxPyBeginAllowThreads();
23879 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
23880 wxPyEndAllowThreads(__tstate);
23881 if (PyErr_Occurred()) SWIG_fail;
23882 }
23883 {
23884 resultobj = wxPyMake_wxObject(result, (bool)0);
23885 }
23886 return resultobj;
23887 fail:
23888 return NULL;
23889 }
23890
23891
23892 SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23893 PyObject *resultobj = 0;
23894 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23895 int arg2 ;
23896 wxToolBarToolBase *result = 0 ;
23897 void *argp1 = 0 ;
23898 int res1 = 0 ;
23899 int val2 ;
23900 int ecode2 = 0 ;
23901 PyObject * obj0 = 0 ;
23902 PyObject * obj1 = 0 ;
23903 char * kwnames[] = {
23904 (char *) "self",(char *) "id", NULL
23905 };
23906
23907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
23908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23909 if (!SWIG_IsOK(res1)) {
23910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23911 }
23912 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23913 ecode2 = SWIG_AsVal_int(obj1, &val2);
23914 if (!SWIG_IsOK(ecode2)) {
23915 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
23916 }
23917 arg2 = static_cast< int >(val2);
23918 {
23919 PyThreadState* __tstate = wxPyBeginAllowThreads();
23920 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
23921 wxPyEndAllowThreads(__tstate);
23922 if (PyErr_Occurred()) SWIG_fail;
23923 }
23924 {
23925 resultobj = wxPyMake_wxObject(result, (bool)0);
23926 }
23927 return resultobj;
23928 fail:
23929 return NULL;
23930 }
23931
23932
23933 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23934 PyObject *resultobj = 0;
23935 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23936 size_t arg2 ;
23937 bool result;
23938 void *argp1 = 0 ;
23939 int res1 = 0 ;
23940 size_t val2 ;
23941 int ecode2 = 0 ;
23942 PyObject * obj0 = 0 ;
23943 PyObject * obj1 = 0 ;
23944 char * kwnames[] = {
23945 (char *) "self",(char *) "pos", NULL
23946 };
23947
23948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
23949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23950 if (!SWIG_IsOK(res1)) {
23951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23952 }
23953 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23954 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23955 if (!SWIG_IsOK(ecode2)) {
23956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
23957 }
23958 arg2 = static_cast< size_t >(val2);
23959 {
23960 PyThreadState* __tstate = wxPyBeginAllowThreads();
23961 result = (bool)(arg1)->DeleteToolByPos(arg2);
23962 wxPyEndAllowThreads(__tstate);
23963 if (PyErr_Occurred()) SWIG_fail;
23964 }
23965 {
23966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23967 }
23968 return resultobj;
23969 fail:
23970 return NULL;
23971 }
23972
23973
23974 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23975 PyObject *resultobj = 0;
23976 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23977 int arg2 ;
23978 bool result;
23979 void *argp1 = 0 ;
23980 int res1 = 0 ;
23981 int val2 ;
23982 int ecode2 = 0 ;
23983 PyObject * obj0 = 0 ;
23984 PyObject * obj1 = 0 ;
23985 char * kwnames[] = {
23986 (char *) "self",(char *) "id", NULL
23987 };
23988
23989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
23990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23991 if (!SWIG_IsOK(res1)) {
23992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23993 }
23994 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23995 ecode2 = SWIG_AsVal_int(obj1, &val2);
23996 if (!SWIG_IsOK(ecode2)) {
23997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
23998 }
23999 arg2 = static_cast< int >(val2);
24000 {
24001 PyThreadState* __tstate = wxPyBeginAllowThreads();
24002 result = (bool)(arg1)->DeleteTool(arg2);
24003 wxPyEndAllowThreads(__tstate);
24004 if (PyErr_Occurred()) SWIG_fail;
24005 }
24006 {
24007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24008 }
24009 return resultobj;
24010 fail:
24011 return NULL;
24012 }
24013
24014
24015 SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24016 PyObject *resultobj = 0;
24017 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24018 void *argp1 = 0 ;
24019 int res1 = 0 ;
24020 PyObject *swig_obj[1] ;
24021
24022 if (!args) SWIG_fail;
24023 swig_obj[0] = args;
24024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24025 if (!SWIG_IsOK(res1)) {
24026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24027 }
24028 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24029 {
24030 PyThreadState* __tstate = wxPyBeginAllowThreads();
24031 (arg1)->ClearTools();
24032 wxPyEndAllowThreads(__tstate);
24033 if (PyErr_Occurred()) SWIG_fail;
24034 }
24035 resultobj = SWIG_Py_Void();
24036 return resultobj;
24037 fail:
24038 return NULL;
24039 }
24040
24041
24042 SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24043 PyObject *resultobj = 0;
24044 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24045 bool result;
24046 void *argp1 = 0 ;
24047 int res1 = 0 ;
24048 PyObject *swig_obj[1] ;
24049
24050 if (!args) SWIG_fail;
24051 swig_obj[0] = args;
24052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24053 if (!SWIG_IsOK(res1)) {
24054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24055 }
24056 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24057 {
24058 PyThreadState* __tstate = wxPyBeginAllowThreads();
24059 result = (bool)(arg1)->Realize();
24060 wxPyEndAllowThreads(__tstate);
24061 if (PyErr_Occurred()) SWIG_fail;
24062 }
24063 {
24064 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24065 }
24066 return resultobj;
24067 fail:
24068 return NULL;
24069 }
24070
24071
24072 SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24073 PyObject *resultobj = 0;
24074 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24075 int arg2 ;
24076 bool arg3 ;
24077 void *argp1 = 0 ;
24078 int res1 = 0 ;
24079 int val2 ;
24080 int ecode2 = 0 ;
24081 bool val3 ;
24082 int ecode3 = 0 ;
24083 PyObject * obj0 = 0 ;
24084 PyObject * obj1 = 0 ;
24085 PyObject * obj2 = 0 ;
24086 char * kwnames[] = {
24087 (char *) "self",(char *) "id",(char *) "enable", NULL
24088 };
24089
24090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24092 if (!SWIG_IsOK(res1)) {
24093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24094 }
24095 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24096 ecode2 = SWIG_AsVal_int(obj1, &val2);
24097 if (!SWIG_IsOK(ecode2)) {
24098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24099 }
24100 arg2 = static_cast< int >(val2);
24101 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24102 if (!SWIG_IsOK(ecode3)) {
24103 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24104 }
24105 arg3 = static_cast< bool >(val3);
24106 {
24107 PyThreadState* __tstate = wxPyBeginAllowThreads();
24108 (arg1)->EnableTool(arg2,arg3);
24109 wxPyEndAllowThreads(__tstate);
24110 if (PyErr_Occurred()) SWIG_fail;
24111 }
24112 resultobj = SWIG_Py_Void();
24113 return resultobj;
24114 fail:
24115 return NULL;
24116 }
24117
24118
24119 SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24120 PyObject *resultobj = 0;
24121 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24122 int arg2 ;
24123 bool arg3 ;
24124 void *argp1 = 0 ;
24125 int res1 = 0 ;
24126 int val2 ;
24127 int ecode2 = 0 ;
24128 bool val3 ;
24129 int ecode3 = 0 ;
24130 PyObject * obj0 = 0 ;
24131 PyObject * obj1 = 0 ;
24132 PyObject * obj2 = 0 ;
24133 char * kwnames[] = {
24134 (char *) "self",(char *) "id",(char *) "toggle", NULL
24135 };
24136
24137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24139 if (!SWIG_IsOK(res1)) {
24140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24141 }
24142 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24143 ecode2 = SWIG_AsVal_int(obj1, &val2);
24144 if (!SWIG_IsOK(ecode2)) {
24145 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24146 }
24147 arg2 = static_cast< int >(val2);
24148 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24149 if (!SWIG_IsOK(ecode3)) {
24150 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24151 }
24152 arg3 = static_cast< bool >(val3);
24153 {
24154 PyThreadState* __tstate = wxPyBeginAllowThreads();
24155 (arg1)->ToggleTool(arg2,arg3);
24156 wxPyEndAllowThreads(__tstate);
24157 if (PyErr_Occurred()) SWIG_fail;
24158 }
24159 resultobj = SWIG_Py_Void();
24160 return resultobj;
24161 fail:
24162 return NULL;
24163 }
24164
24165
24166 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24167 PyObject *resultobj = 0;
24168 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24169 int arg2 ;
24170 bool arg3 ;
24171 void *argp1 = 0 ;
24172 int res1 = 0 ;
24173 int val2 ;
24174 int ecode2 = 0 ;
24175 bool val3 ;
24176 int ecode3 = 0 ;
24177 PyObject * obj0 = 0 ;
24178 PyObject * obj1 = 0 ;
24179 PyObject * obj2 = 0 ;
24180 char * kwnames[] = {
24181 (char *) "self",(char *) "id",(char *) "toggle", NULL
24182 };
24183
24184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24186 if (!SWIG_IsOK(res1)) {
24187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24188 }
24189 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24190 ecode2 = SWIG_AsVal_int(obj1, &val2);
24191 if (!SWIG_IsOK(ecode2)) {
24192 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24193 }
24194 arg2 = static_cast< int >(val2);
24195 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24196 if (!SWIG_IsOK(ecode3)) {
24197 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24198 }
24199 arg3 = static_cast< bool >(val3);
24200 {
24201 PyThreadState* __tstate = wxPyBeginAllowThreads();
24202 (arg1)->SetToggle(arg2,arg3);
24203 wxPyEndAllowThreads(__tstate);
24204 if (PyErr_Occurred()) SWIG_fail;
24205 }
24206 resultobj = SWIG_Py_Void();
24207 return resultobj;
24208 fail:
24209 return NULL;
24210 }
24211
24212
24213 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24214 PyObject *resultobj = 0;
24215 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24216 int arg2 ;
24217 PyObject *result = 0 ;
24218 void *argp1 = 0 ;
24219 int res1 = 0 ;
24220 int val2 ;
24221 int ecode2 = 0 ;
24222 PyObject * obj0 = 0 ;
24223 PyObject * obj1 = 0 ;
24224 char * kwnames[] = {
24225 (char *) "self",(char *) "id", NULL
24226 };
24227
24228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24230 if (!SWIG_IsOK(res1)) {
24231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24232 }
24233 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24234 ecode2 = SWIG_AsVal_int(obj1, &val2);
24235 if (!SWIG_IsOK(ecode2)) {
24236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24237 }
24238 arg2 = static_cast< int >(val2);
24239 {
24240 PyThreadState* __tstate = wxPyBeginAllowThreads();
24241 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24242 wxPyEndAllowThreads(__tstate);
24243 if (PyErr_Occurred()) SWIG_fail;
24244 }
24245 resultobj = result;
24246 return resultobj;
24247 fail:
24248 return NULL;
24249 }
24250
24251
24252 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24253 PyObject *resultobj = 0;
24254 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24255 int arg2 ;
24256 PyObject *arg3 = (PyObject *) 0 ;
24257 void *argp1 = 0 ;
24258 int res1 = 0 ;
24259 int val2 ;
24260 int ecode2 = 0 ;
24261 PyObject * obj0 = 0 ;
24262 PyObject * obj1 = 0 ;
24263 PyObject * obj2 = 0 ;
24264 char * kwnames[] = {
24265 (char *) "self",(char *) "id",(char *) "clientData", NULL
24266 };
24267
24268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24270 if (!SWIG_IsOK(res1)) {
24271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24272 }
24273 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24274 ecode2 = SWIG_AsVal_int(obj1, &val2);
24275 if (!SWIG_IsOK(ecode2)) {
24276 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24277 }
24278 arg2 = static_cast< int >(val2);
24279 arg3 = obj2;
24280 {
24281 PyThreadState* __tstate = wxPyBeginAllowThreads();
24282 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24283 wxPyEndAllowThreads(__tstate);
24284 if (PyErr_Occurred()) SWIG_fail;
24285 }
24286 resultobj = SWIG_Py_Void();
24287 return resultobj;
24288 fail:
24289 return NULL;
24290 }
24291
24292
24293 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24294 PyObject *resultobj = 0;
24295 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24296 int arg2 ;
24297 int result;
24298 void *argp1 = 0 ;
24299 int res1 = 0 ;
24300 int val2 ;
24301 int ecode2 = 0 ;
24302 PyObject * obj0 = 0 ;
24303 PyObject * obj1 = 0 ;
24304 char * kwnames[] = {
24305 (char *) "self",(char *) "id", NULL
24306 };
24307
24308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24310 if (!SWIG_IsOK(res1)) {
24311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24312 }
24313 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24314 ecode2 = SWIG_AsVal_int(obj1, &val2);
24315 if (!SWIG_IsOK(ecode2)) {
24316 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24317 }
24318 arg2 = static_cast< int >(val2);
24319 {
24320 PyThreadState* __tstate = wxPyBeginAllowThreads();
24321 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24322 wxPyEndAllowThreads(__tstate);
24323 if (PyErr_Occurred()) SWIG_fail;
24324 }
24325 resultobj = SWIG_From_int(static_cast< int >(result));
24326 return resultobj;
24327 fail:
24328 return NULL;
24329 }
24330
24331
24332 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24333 PyObject *resultobj = 0;
24334 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24335 int arg2 ;
24336 bool result;
24337 void *argp1 = 0 ;
24338 int res1 = 0 ;
24339 int val2 ;
24340 int ecode2 = 0 ;
24341 PyObject * obj0 = 0 ;
24342 PyObject * obj1 = 0 ;
24343 char * kwnames[] = {
24344 (char *) "self",(char *) "id", NULL
24345 };
24346
24347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24349 if (!SWIG_IsOK(res1)) {
24350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24351 }
24352 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24353 ecode2 = SWIG_AsVal_int(obj1, &val2);
24354 if (!SWIG_IsOK(ecode2)) {
24355 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24356 }
24357 arg2 = static_cast< int >(val2);
24358 {
24359 PyThreadState* __tstate = wxPyBeginAllowThreads();
24360 result = (bool)(arg1)->GetToolState(arg2);
24361 wxPyEndAllowThreads(__tstate);
24362 if (PyErr_Occurred()) SWIG_fail;
24363 }
24364 {
24365 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24366 }
24367 return resultobj;
24368 fail:
24369 return NULL;
24370 }
24371
24372
24373 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24374 PyObject *resultobj = 0;
24375 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24376 int arg2 ;
24377 bool result;
24378 void *argp1 = 0 ;
24379 int res1 = 0 ;
24380 int val2 ;
24381 int ecode2 = 0 ;
24382 PyObject * obj0 = 0 ;
24383 PyObject * obj1 = 0 ;
24384 char * kwnames[] = {
24385 (char *) "self",(char *) "id", NULL
24386 };
24387
24388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24390 if (!SWIG_IsOK(res1)) {
24391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24392 }
24393 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24394 ecode2 = SWIG_AsVal_int(obj1, &val2);
24395 if (!SWIG_IsOK(ecode2)) {
24396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24397 }
24398 arg2 = static_cast< int >(val2);
24399 {
24400 PyThreadState* __tstate = wxPyBeginAllowThreads();
24401 result = (bool)(arg1)->GetToolEnabled(arg2);
24402 wxPyEndAllowThreads(__tstate);
24403 if (PyErr_Occurred()) SWIG_fail;
24404 }
24405 {
24406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24407 }
24408 return resultobj;
24409 fail:
24410 return NULL;
24411 }
24412
24413
24414 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24415 PyObject *resultobj = 0;
24416 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24417 int arg2 ;
24418 wxString *arg3 = 0 ;
24419 void *argp1 = 0 ;
24420 int res1 = 0 ;
24421 int val2 ;
24422 int ecode2 = 0 ;
24423 bool temp3 = false ;
24424 PyObject * obj0 = 0 ;
24425 PyObject * obj1 = 0 ;
24426 PyObject * obj2 = 0 ;
24427 char * kwnames[] = {
24428 (char *) "self",(char *) "id",(char *) "helpString", NULL
24429 };
24430
24431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24433 if (!SWIG_IsOK(res1)) {
24434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24435 }
24436 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24437 ecode2 = SWIG_AsVal_int(obj1, &val2);
24438 if (!SWIG_IsOK(ecode2)) {
24439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24440 }
24441 arg2 = static_cast< int >(val2);
24442 {
24443 arg3 = wxString_in_helper(obj2);
24444 if (arg3 == NULL) SWIG_fail;
24445 temp3 = true;
24446 }
24447 {
24448 PyThreadState* __tstate = wxPyBeginAllowThreads();
24449 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24450 wxPyEndAllowThreads(__tstate);
24451 if (PyErr_Occurred()) SWIG_fail;
24452 }
24453 resultobj = SWIG_Py_Void();
24454 {
24455 if (temp3)
24456 delete arg3;
24457 }
24458 return resultobj;
24459 fail:
24460 {
24461 if (temp3)
24462 delete arg3;
24463 }
24464 return NULL;
24465 }
24466
24467
24468 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24469 PyObject *resultobj = 0;
24470 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24471 int arg2 ;
24472 wxString result;
24473 void *argp1 = 0 ;
24474 int res1 = 0 ;
24475 int val2 ;
24476 int ecode2 = 0 ;
24477 PyObject * obj0 = 0 ;
24478 PyObject * obj1 = 0 ;
24479 char * kwnames[] = {
24480 (char *) "self",(char *) "id", NULL
24481 };
24482
24483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24485 if (!SWIG_IsOK(res1)) {
24486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24487 }
24488 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24489 ecode2 = SWIG_AsVal_int(obj1, &val2);
24490 if (!SWIG_IsOK(ecode2)) {
24491 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24492 }
24493 arg2 = static_cast< int >(val2);
24494 {
24495 PyThreadState* __tstate = wxPyBeginAllowThreads();
24496 result = (arg1)->GetToolShortHelp(arg2);
24497 wxPyEndAllowThreads(__tstate);
24498 if (PyErr_Occurred()) SWIG_fail;
24499 }
24500 {
24501 #if wxUSE_UNICODE
24502 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24503 #else
24504 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24505 #endif
24506 }
24507 return resultobj;
24508 fail:
24509 return NULL;
24510 }
24511
24512
24513 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24514 PyObject *resultobj = 0;
24515 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24516 int arg2 ;
24517 wxString *arg3 = 0 ;
24518 void *argp1 = 0 ;
24519 int res1 = 0 ;
24520 int val2 ;
24521 int ecode2 = 0 ;
24522 bool temp3 = false ;
24523 PyObject * obj0 = 0 ;
24524 PyObject * obj1 = 0 ;
24525 PyObject * obj2 = 0 ;
24526 char * kwnames[] = {
24527 (char *) "self",(char *) "id",(char *) "helpString", NULL
24528 };
24529
24530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24532 if (!SWIG_IsOK(res1)) {
24533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24534 }
24535 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24536 ecode2 = SWIG_AsVal_int(obj1, &val2);
24537 if (!SWIG_IsOK(ecode2)) {
24538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24539 }
24540 arg2 = static_cast< int >(val2);
24541 {
24542 arg3 = wxString_in_helper(obj2);
24543 if (arg3 == NULL) SWIG_fail;
24544 temp3 = true;
24545 }
24546 {
24547 PyThreadState* __tstate = wxPyBeginAllowThreads();
24548 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24549 wxPyEndAllowThreads(__tstate);
24550 if (PyErr_Occurred()) SWIG_fail;
24551 }
24552 resultobj = SWIG_Py_Void();
24553 {
24554 if (temp3)
24555 delete arg3;
24556 }
24557 return resultobj;
24558 fail:
24559 {
24560 if (temp3)
24561 delete arg3;
24562 }
24563 return NULL;
24564 }
24565
24566
24567 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24568 PyObject *resultobj = 0;
24569 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24570 int arg2 ;
24571 wxString result;
24572 void *argp1 = 0 ;
24573 int res1 = 0 ;
24574 int val2 ;
24575 int ecode2 = 0 ;
24576 PyObject * obj0 = 0 ;
24577 PyObject * obj1 = 0 ;
24578 char * kwnames[] = {
24579 (char *) "self",(char *) "id", NULL
24580 };
24581
24582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24584 if (!SWIG_IsOK(res1)) {
24585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24586 }
24587 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24588 ecode2 = SWIG_AsVal_int(obj1, &val2);
24589 if (!SWIG_IsOK(ecode2)) {
24590 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24591 }
24592 arg2 = static_cast< int >(val2);
24593 {
24594 PyThreadState* __tstate = wxPyBeginAllowThreads();
24595 result = (arg1)->GetToolLongHelp(arg2);
24596 wxPyEndAllowThreads(__tstate);
24597 if (PyErr_Occurred()) SWIG_fail;
24598 }
24599 {
24600 #if wxUSE_UNICODE
24601 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24602 #else
24603 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24604 #endif
24605 }
24606 return resultobj;
24607 fail:
24608 return NULL;
24609 }
24610
24611
24612 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24613 PyObject *resultobj = 0;
24614 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24615 int arg2 ;
24616 int arg3 ;
24617 void *argp1 = 0 ;
24618 int res1 = 0 ;
24619 int val2 ;
24620 int ecode2 = 0 ;
24621 int val3 ;
24622 int ecode3 = 0 ;
24623 PyObject * obj0 = 0 ;
24624 PyObject * obj1 = 0 ;
24625 PyObject * obj2 = 0 ;
24626 char * kwnames[] = {
24627 (char *) "self",(char *) "x",(char *) "y", NULL
24628 };
24629
24630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24632 if (!SWIG_IsOK(res1)) {
24633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24634 }
24635 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24636 ecode2 = SWIG_AsVal_int(obj1, &val2);
24637 if (!SWIG_IsOK(ecode2)) {
24638 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
24639 }
24640 arg2 = static_cast< int >(val2);
24641 ecode3 = SWIG_AsVal_int(obj2, &val3);
24642 if (!SWIG_IsOK(ecode3)) {
24643 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
24644 }
24645 arg3 = static_cast< int >(val3);
24646 {
24647 PyThreadState* __tstate = wxPyBeginAllowThreads();
24648 (arg1)->SetMargins(arg2,arg3);
24649 wxPyEndAllowThreads(__tstate);
24650 if (PyErr_Occurred()) SWIG_fail;
24651 }
24652 resultobj = SWIG_Py_Void();
24653 return resultobj;
24654 fail:
24655 return NULL;
24656 }
24657
24658
24659 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24660 PyObject *resultobj = 0;
24661 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24662 wxSize *arg2 = 0 ;
24663 void *argp1 = 0 ;
24664 int res1 = 0 ;
24665 wxSize temp2 ;
24666 PyObject * obj0 = 0 ;
24667 PyObject * obj1 = 0 ;
24668 char * kwnames[] = {
24669 (char *) "self",(char *) "size", NULL
24670 };
24671
24672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
24673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24674 if (!SWIG_IsOK(res1)) {
24675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24676 }
24677 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24678 {
24679 arg2 = &temp2;
24680 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24681 }
24682 {
24683 PyThreadState* __tstate = wxPyBeginAllowThreads();
24684 (arg1)->SetMargins((wxSize const &)*arg2);
24685 wxPyEndAllowThreads(__tstate);
24686 if (PyErr_Occurred()) SWIG_fail;
24687 }
24688 resultobj = SWIG_Py_Void();
24689 return resultobj;
24690 fail:
24691 return NULL;
24692 }
24693
24694
24695 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24696 PyObject *resultobj = 0;
24697 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24698 int arg2 ;
24699 void *argp1 = 0 ;
24700 int res1 = 0 ;
24701 int val2 ;
24702 int ecode2 = 0 ;
24703 PyObject * obj0 = 0 ;
24704 PyObject * obj1 = 0 ;
24705 char * kwnames[] = {
24706 (char *) "self",(char *) "packing", NULL
24707 };
24708
24709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
24710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24711 if (!SWIG_IsOK(res1)) {
24712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24713 }
24714 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24715 ecode2 = SWIG_AsVal_int(obj1, &val2);
24716 if (!SWIG_IsOK(ecode2)) {
24717 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
24718 }
24719 arg2 = static_cast< int >(val2);
24720 {
24721 PyThreadState* __tstate = wxPyBeginAllowThreads();
24722 (arg1)->SetToolPacking(arg2);
24723 wxPyEndAllowThreads(__tstate);
24724 if (PyErr_Occurred()) SWIG_fail;
24725 }
24726 resultobj = SWIG_Py_Void();
24727 return resultobj;
24728 fail:
24729 return NULL;
24730 }
24731
24732
24733 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24734 PyObject *resultobj = 0;
24735 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24736 int arg2 ;
24737 void *argp1 = 0 ;
24738 int res1 = 0 ;
24739 int val2 ;
24740 int ecode2 = 0 ;
24741 PyObject * obj0 = 0 ;
24742 PyObject * obj1 = 0 ;
24743 char * kwnames[] = {
24744 (char *) "self",(char *) "separation", NULL
24745 };
24746
24747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
24748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24749 if (!SWIG_IsOK(res1)) {
24750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24751 }
24752 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24753 ecode2 = SWIG_AsVal_int(obj1, &val2);
24754 if (!SWIG_IsOK(ecode2)) {
24755 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
24756 }
24757 arg2 = static_cast< int >(val2);
24758 {
24759 PyThreadState* __tstate = wxPyBeginAllowThreads();
24760 (arg1)->SetToolSeparation(arg2);
24761 wxPyEndAllowThreads(__tstate);
24762 if (PyErr_Occurred()) SWIG_fail;
24763 }
24764 resultobj = SWIG_Py_Void();
24765 return resultobj;
24766 fail:
24767 return NULL;
24768 }
24769
24770
24771 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24772 PyObject *resultobj = 0;
24773 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24774 wxSize result;
24775 void *argp1 = 0 ;
24776 int res1 = 0 ;
24777 PyObject *swig_obj[1] ;
24778
24779 if (!args) SWIG_fail;
24780 swig_obj[0] = args;
24781 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24782 if (!SWIG_IsOK(res1)) {
24783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24784 }
24785 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24786 {
24787 PyThreadState* __tstate = wxPyBeginAllowThreads();
24788 result = (arg1)->GetToolMargins();
24789 wxPyEndAllowThreads(__tstate);
24790 if (PyErr_Occurred()) SWIG_fail;
24791 }
24792 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24793 return resultobj;
24794 fail:
24795 return NULL;
24796 }
24797
24798
24799 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24800 PyObject *resultobj = 0;
24801 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24802 wxSize result;
24803 void *argp1 = 0 ;
24804 int res1 = 0 ;
24805 PyObject *swig_obj[1] ;
24806
24807 if (!args) SWIG_fail;
24808 swig_obj[0] = args;
24809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24810 if (!SWIG_IsOK(res1)) {
24811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24812 }
24813 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24814 {
24815 PyThreadState* __tstate = wxPyBeginAllowThreads();
24816 result = (arg1)->GetMargins();
24817 wxPyEndAllowThreads(__tstate);
24818 if (PyErr_Occurred()) SWIG_fail;
24819 }
24820 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24821 return resultobj;
24822 fail:
24823 return NULL;
24824 }
24825
24826
24827 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24828 PyObject *resultobj = 0;
24829 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24830 int result;
24831 void *argp1 = 0 ;
24832 int res1 = 0 ;
24833 PyObject *swig_obj[1] ;
24834
24835 if (!args) SWIG_fail;
24836 swig_obj[0] = args;
24837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24838 if (!SWIG_IsOK(res1)) {
24839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24840 }
24841 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24842 {
24843 PyThreadState* __tstate = wxPyBeginAllowThreads();
24844 result = (int)(arg1)->GetToolPacking();
24845 wxPyEndAllowThreads(__tstate);
24846 if (PyErr_Occurred()) SWIG_fail;
24847 }
24848 resultobj = SWIG_From_int(static_cast< int >(result));
24849 return resultobj;
24850 fail:
24851 return NULL;
24852 }
24853
24854
24855 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24856 PyObject *resultobj = 0;
24857 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24858 int result;
24859 void *argp1 = 0 ;
24860 int res1 = 0 ;
24861 PyObject *swig_obj[1] ;
24862
24863 if (!args) SWIG_fail;
24864 swig_obj[0] = args;
24865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24866 if (!SWIG_IsOK(res1)) {
24867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24868 }
24869 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24870 {
24871 PyThreadState* __tstate = wxPyBeginAllowThreads();
24872 result = (int)(arg1)->GetToolSeparation();
24873 wxPyEndAllowThreads(__tstate);
24874 if (PyErr_Occurred()) SWIG_fail;
24875 }
24876 resultobj = SWIG_From_int(static_cast< int >(result));
24877 return resultobj;
24878 fail:
24879 return NULL;
24880 }
24881
24882
24883 SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24884 PyObject *resultobj = 0;
24885 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24886 int arg2 ;
24887 void *argp1 = 0 ;
24888 int res1 = 0 ;
24889 int val2 ;
24890 int ecode2 = 0 ;
24891 PyObject * obj0 = 0 ;
24892 PyObject * obj1 = 0 ;
24893 char * kwnames[] = {
24894 (char *) "self",(char *) "nRows", NULL
24895 };
24896
24897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
24898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24899 if (!SWIG_IsOK(res1)) {
24900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24901 }
24902 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24903 ecode2 = SWIG_AsVal_int(obj1, &val2);
24904 if (!SWIG_IsOK(ecode2)) {
24905 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
24906 }
24907 arg2 = static_cast< int >(val2);
24908 {
24909 PyThreadState* __tstate = wxPyBeginAllowThreads();
24910 (arg1)->SetRows(arg2);
24911 wxPyEndAllowThreads(__tstate);
24912 if (PyErr_Occurred()) SWIG_fail;
24913 }
24914 resultobj = SWIG_Py_Void();
24915 return resultobj;
24916 fail:
24917 return NULL;
24918 }
24919
24920
24921 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24922 PyObject *resultobj = 0;
24923 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24924 int arg2 ;
24925 int arg3 ;
24926 void *argp1 = 0 ;
24927 int res1 = 0 ;
24928 int val2 ;
24929 int ecode2 = 0 ;
24930 int val3 ;
24931 int ecode3 = 0 ;
24932 PyObject * obj0 = 0 ;
24933 PyObject * obj1 = 0 ;
24934 PyObject * obj2 = 0 ;
24935 char * kwnames[] = {
24936 (char *) "self",(char *) "rows",(char *) "cols", NULL
24937 };
24938
24939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24941 if (!SWIG_IsOK(res1)) {
24942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24943 }
24944 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24945 ecode2 = SWIG_AsVal_int(obj1, &val2);
24946 if (!SWIG_IsOK(ecode2)) {
24947 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
24948 }
24949 arg2 = static_cast< int >(val2);
24950 ecode3 = SWIG_AsVal_int(obj2, &val3);
24951 if (!SWIG_IsOK(ecode3)) {
24952 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
24953 }
24954 arg3 = static_cast< int >(val3);
24955 {
24956 PyThreadState* __tstate = wxPyBeginAllowThreads();
24957 (arg1)->SetMaxRowsCols(arg2,arg3);
24958 wxPyEndAllowThreads(__tstate);
24959 if (PyErr_Occurred()) SWIG_fail;
24960 }
24961 resultobj = SWIG_Py_Void();
24962 return resultobj;
24963 fail:
24964 return NULL;
24965 }
24966
24967
24968 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24969 PyObject *resultobj = 0;
24970 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24971 int result;
24972 void *argp1 = 0 ;
24973 int res1 = 0 ;
24974 PyObject *swig_obj[1] ;
24975
24976 if (!args) SWIG_fail;
24977 swig_obj[0] = args;
24978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24979 if (!SWIG_IsOK(res1)) {
24980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24981 }
24982 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24983 {
24984 PyThreadState* __tstate = wxPyBeginAllowThreads();
24985 result = (int)(arg1)->GetMaxRows();
24986 wxPyEndAllowThreads(__tstate);
24987 if (PyErr_Occurred()) SWIG_fail;
24988 }
24989 resultobj = SWIG_From_int(static_cast< int >(result));
24990 return resultobj;
24991 fail:
24992 return NULL;
24993 }
24994
24995
24996 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24997 PyObject *resultobj = 0;
24998 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24999 int result;
25000 void *argp1 = 0 ;
25001 int res1 = 0 ;
25002 PyObject *swig_obj[1] ;
25003
25004 if (!args) SWIG_fail;
25005 swig_obj[0] = args;
25006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25007 if (!SWIG_IsOK(res1)) {
25008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25009 }
25010 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25011 {
25012 PyThreadState* __tstate = wxPyBeginAllowThreads();
25013 result = (int)(arg1)->GetMaxCols();
25014 wxPyEndAllowThreads(__tstate);
25015 if (PyErr_Occurred()) SWIG_fail;
25016 }
25017 resultobj = SWIG_From_int(static_cast< int >(result));
25018 return resultobj;
25019 fail:
25020 return NULL;
25021 }
25022
25023
25024 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25025 PyObject *resultobj = 0;
25026 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25027 wxSize *arg2 = 0 ;
25028 void *argp1 = 0 ;
25029 int res1 = 0 ;
25030 wxSize temp2 ;
25031 PyObject * obj0 = 0 ;
25032 PyObject * obj1 = 0 ;
25033 char * kwnames[] = {
25034 (char *) "self",(char *) "size", NULL
25035 };
25036
25037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25039 if (!SWIG_IsOK(res1)) {
25040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25041 }
25042 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25043 {
25044 arg2 = &temp2;
25045 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25046 }
25047 {
25048 PyThreadState* __tstate = wxPyBeginAllowThreads();
25049 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25050 wxPyEndAllowThreads(__tstate);
25051 if (PyErr_Occurred()) SWIG_fail;
25052 }
25053 resultobj = SWIG_Py_Void();
25054 return resultobj;
25055 fail:
25056 return NULL;
25057 }
25058
25059
25060 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25061 PyObject *resultobj = 0;
25062 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25063 wxSize result;
25064 void *argp1 = 0 ;
25065 int res1 = 0 ;
25066 PyObject *swig_obj[1] ;
25067
25068 if (!args) SWIG_fail;
25069 swig_obj[0] = args;
25070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25071 if (!SWIG_IsOK(res1)) {
25072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25073 }
25074 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25075 {
25076 PyThreadState* __tstate = wxPyBeginAllowThreads();
25077 result = (arg1)->GetToolBitmapSize();
25078 wxPyEndAllowThreads(__tstate);
25079 if (PyErr_Occurred()) SWIG_fail;
25080 }
25081 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25082 return resultobj;
25083 fail:
25084 return NULL;
25085 }
25086
25087
25088 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25089 PyObject *resultobj = 0;
25090 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25091 wxSize result;
25092 void *argp1 = 0 ;
25093 int res1 = 0 ;
25094 PyObject *swig_obj[1] ;
25095
25096 if (!args) SWIG_fail;
25097 swig_obj[0] = args;
25098 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25099 if (!SWIG_IsOK(res1)) {
25100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25101 }
25102 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25103 {
25104 PyThreadState* __tstate = wxPyBeginAllowThreads();
25105 result = (arg1)->GetToolSize();
25106 wxPyEndAllowThreads(__tstate);
25107 if (PyErr_Occurred()) SWIG_fail;
25108 }
25109 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25110 return resultobj;
25111 fail:
25112 return NULL;
25113 }
25114
25115
25116 SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25117 PyObject *resultobj = 0;
25118 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25119 int arg2 ;
25120 int arg3 ;
25121 wxToolBarToolBase *result = 0 ;
25122 void *argp1 = 0 ;
25123 int res1 = 0 ;
25124 int val2 ;
25125 int ecode2 = 0 ;
25126 int val3 ;
25127 int ecode3 = 0 ;
25128 PyObject * obj0 = 0 ;
25129 PyObject * obj1 = 0 ;
25130 PyObject * obj2 = 0 ;
25131 char * kwnames[] = {
25132 (char *) "self",(char *) "x",(char *) "y", NULL
25133 };
25134
25135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25137 if (!SWIG_IsOK(res1)) {
25138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25139 }
25140 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25141 ecode2 = SWIG_AsVal_int(obj1, &val2);
25142 if (!SWIG_IsOK(ecode2)) {
25143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25144 }
25145 arg2 = static_cast< int >(val2);
25146 ecode3 = SWIG_AsVal_int(obj2, &val3);
25147 if (!SWIG_IsOK(ecode3)) {
25148 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25149 }
25150 arg3 = static_cast< int >(val3);
25151 {
25152 PyThreadState* __tstate = wxPyBeginAllowThreads();
25153 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25154 wxPyEndAllowThreads(__tstate);
25155 if (PyErr_Occurred()) SWIG_fail;
25156 }
25157 {
25158 resultobj = wxPyMake_wxObject(result, (bool)0);
25159 }
25160 return resultobj;
25161 fail:
25162 return NULL;
25163 }
25164
25165
25166 SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25167 PyObject *resultobj = 0;
25168 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25169 int arg2 ;
25170 wxToolBarToolBase *result = 0 ;
25171 void *argp1 = 0 ;
25172 int res1 = 0 ;
25173 int val2 ;
25174 int ecode2 = 0 ;
25175 PyObject * obj0 = 0 ;
25176 PyObject * obj1 = 0 ;
25177 char * kwnames[] = {
25178 (char *) "self",(char *) "toolid", NULL
25179 };
25180
25181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",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_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25185 }
25186 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25187 ecode2 = SWIG_AsVal_int(obj1, &val2);
25188 if (!SWIG_IsOK(ecode2)) {
25189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25190 }
25191 arg2 = static_cast< int >(val2);
25192 {
25193 PyThreadState* __tstate = wxPyBeginAllowThreads();
25194 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25195 wxPyEndAllowThreads(__tstate);
25196 if (PyErr_Occurred()) SWIG_fail;
25197 }
25198 {
25199 resultobj = wxPyMake_wxObject(result, (bool)0);
25200 }
25201 return resultobj;
25202 fail:
25203 return NULL;
25204 }
25205
25206
25207 SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25208 PyObject *resultobj = 0;
25209 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25210 bool result;
25211 void *argp1 = 0 ;
25212 int res1 = 0 ;
25213 PyObject *swig_obj[1] ;
25214
25215 if (!args) SWIG_fail;
25216 swig_obj[0] = args;
25217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25218 if (!SWIG_IsOK(res1)) {
25219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25220 }
25221 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25222 {
25223 PyThreadState* __tstate = wxPyBeginAllowThreads();
25224 result = (bool)(arg1)->IsVertical();
25225 wxPyEndAllowThreads(__tstate);
25226 if (PyErr_Occurred()) SWIG_fail;
25227 }
25228 {
25229 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25230 }
25231 return resultobj;
25232 fail:
25233 return NULL;
25234 }
25235
25236
25237 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25238 PyObject *resultobj = 0;
25239 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25240 size_t result;
25241 void *argp1 = 0 ;
25242 int res1 = 0 ;
25243 PyObject *swig_obj[1] ;
25244
25245 if (!args) SWIG_fail;
25246 swig_obj[0] = args;
25247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25248 if (!SWIG_IsOK(res1)) {
25249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25250 }
25251 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25252 {
25253 PyThreadState* __tstate = wxPyBeginAllowThreads();
25254 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25255 wxPyEndAllowThreads(__tstate);
25256 if (PyErr_Occurred()) SWIG_fail;
25257 }
25258 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25259 return resultobj;
25260 fail:
25261 return NULL;
25262 }
25263
25264
25265 SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25266 PyObject *obj;
25267 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25268 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25269 return SWIG_Py_Void();
25270 }
25271
25272 SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25273 PyObject *resultobj = 0;
25274 wxWindow *arg1 = (wxWindow *) 0 ;
25275 int arg2 = (int) -1 ;
25276 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25277 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25278 wxSize const &arg4_defvalue = wxDefaultSize ;
25279 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25280 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25281 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25282 wxString *arg6 = (wxString *) &arg6_defvalue ;
25283 wxToolBar *result = 0 ;
25284 void *argp1 = 0 ;
25285 int res1 = 0 ;
25286 int val2 ;
25287 int ecode2 = 0 ;
25288 wxPoint temp3 ;
25289 wxSize temp4 ;
25290 long val5 ;
25291 int ecode5 = 0 ;
25292 bool temp6 = false ;
25293 PyObject * obj0 = 0 ;
25294 PyObject * obj1 = 0 ;
25295 PyObject * obj2 = 0 ;
25296 PyObject * obj3 = 0 ;
25297 PyObject * obj4 = 0 ;
25298 PyObject * obj5 = 0 ;
25299 char * kwnames[] = {
25300 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25301 };
25302
25303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25305 if (!SWIG_IsOK(res1)) {
25306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25307 }
25308 arg1 = reinterpret_cast< wxWindow * >(argp1);
25309 if (obj1) {
25310 ecode2 = SWIG_AsVal_int(obj1, &val2);
25311 if (!SWIG_IsOK(ecode2)) {
25312 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25313 }
25314 arg2 = static_cast< int >(val2);
25315 }
25316 if (obj2) {
25317 {
25318 arg3 = &temp3;
25319 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25320 }
25321 }
25322 if (obj3) {
25323 {
25324 arg4 = &temp4;
25325 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25326 }
25327 }
25328 if (obj4) {
25329 ecode5 = SWIG_AsVal_long(obj4, &val5);
25330 if (!SWIG_IsOK(ecode5)) {
25331 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25332 }
25333 arg5 = static_cast< long >(val5);
25334 }
25335 if (obj5) {
25336 {
25337 arg6 = wxString_in_helper(obj5);
25338 if (arg6 == NULL) SWIG_fail;
25339 temp6 = true;
25340 }
25341 }
25342 {
25343 if (!wxPyCheckForApp()) SWIG_fail;
25344 PyThreadState* __tstate = wxPyBeginAllowThreads();
25345 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25346 wxPyEndAllowThreads(__tstate);
25347 if (PyErr_Occurred()) SWIG_fail;
25348 }
25349 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25350 {
25351 if (temp6)
25352 delete arg6;
25353 }
25354 return resultobj;
25355 fail:
25356 {
25357 if (temp6)
25358 delete arg6;
25359 }
25360 return NULL;
25361 }
25362
25363
25364 SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25365 PyObject *resultobj = 0;
25366 wxToolBar *result = 0 ;
25367
25368 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25369 {
25370 if (!wxPyCheckForApp()) SWIG_fail;
25371 PyThreadState* __tstate = wxPyBeginAllowThreads();
25372 result = (wxToolBar *)new wxToolBar();
25373 wxPyEndAllowThreads(__tstate);
25374 if (PyErr_Occurred()) SWIG_fail;
25375 }
25376 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25377 return resultobj;
25378 fail:
25379 return NULL;
25380 }
25381
25382
25383 SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25384 PyObject *resultobj = 0;
25385 wxToolBar *arg1 = (wxToolBar *) 0 ;
25386 wxWindow *arg2 = (wxWindow *) 0 ;
25387 int arg3 = (int) -1 ;
25388 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25389 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25390 wxSize const &arg5_defvalue = wxDefaultSize ;
25391 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25392 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25393 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25394 wxString *arg7 = (wxString *) &arg7_defvalue ;
25395 bool result;
25396 void *argp1 = 0 ;
25397 int res1 = 0 ;
25398 void *argp2 = 0 ;
25399 int res2 = 0 ;
25400 int val3 ;
25401 int ecode3 = 0 ;
25402 wxPoint temp4 ;
25403 wxSize temp5 ;
25404 long val6 ;
25405 int ecode6 = 0 ;
25406 bool temp7 = false ;
25407 PyObject * obj0 = 0 ;
25408 PyObject * obj1 = 0 ;
25409 PyObject * obj2 = 0 ;
25410 PyObject * obj3 = 0 ;
25411 PyObject * obj4 = 0 ;
25412 PyObject * obj5 = 0 ;
25413 PyObject * obj6 = 0 ;
25414 char * kwnames[] = {
25415 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25416 };
25417
25418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25420 if (!SWIG_IsOK(res1)) {
25421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25422 }
25423 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25424 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25425 if (!SWIG_IsOK(res2)) {
25426 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25427 }
25428 arg2 = reinterpret_cast< wxWindow * >(argp2);
25429 if (obj2) {
25430 ecode3 = SWIG_AsVal_int(obj2, &val3);
25431 if (!SWIG_IsOK(ecode3)) {
25432 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25433 }
25434 arg3 = static_cast< int >(val3);
25435 }
25436 if (obj3) {
25437 {
25438 arg4 = &temp4;
25439 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25440 }
25441 }
25442 if (obj4) {
25443 {
25444 arg5 = &temp5;
25445 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25446 }
25447 }
25448 if (obj5) {
25449 ecode6 = SWIG_AsVal_long(obj5, &val6);
25450 if (!SWIG_IsOK(ecode6)) {
25451 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25452 }
25453 arg6 = static_cast< long >(val6);
25454 }
25455 if (obj6) {
25456 {
25457 arg7 = wxString_in_helper(obj6);
25458 if (arg7 == NULL) SWIG_fail;
25459 temp7 = true;
25460 }
25461 }
25462 {
25463 PyThreadState* __tstate = wxPyBeginAllowThreads();
25464 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25465 wxPyEndAllowThreads(__tstate);
25466 if (PyErr_Occurred()) SWIG_fail;
25467 }
25468 {
25469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25470 }
25471 {
25472 if (temp7)
25473 delete arg7;
25474 }
25475 return resultobj;
25476 fail:
25477 {
25478 if (temp7)
25479 delete arg7;
25480 }
25481 return NULL;
25482 }
25483
25484
25485 SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25486 PyObject *resultobj = 0;
25487 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25488 SwigValueWrapper<wxVisualAttributes > result;
25489 int val1 ;
25490 int ecode1 = 0 ;
25491 PyObject * obj0 = 0 ;
25492 char * kwnames[] = {
25493 (char *) "variant", NULL
25494 };
25495
25496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25497 if (obj0) {
25498 ecode1 = SWIG_AsVal_int(obj0, &val1);
25499 if (!SWIG_IsOK(ecode1)) {
25500 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25501 }
25502 arg1 = static_cast< wxWindowVariant >(val1);
25503 }
25504 {
25505 if (!wxPyCheckForApp()) SWIG_fail;
25506 PyThreadState* __tstate = wxPyBeginAllowThreads();
25507 result = wxToolBar::GetClassDefaultAttributes(arg1);
25508 wxPyEndAllowThreads(__tstate);
25509 if (PyErr_Occurred()) SWIG_fail;
25510 }
25511 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25512 return resultobj;
25513 fail:
25514 return NULL;
25515 }
25516
25517
25518 SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25519 PyObject *obj;
25520 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25521 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25522 return SWIG_Py_Void();
25523 }
25524
25525 SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25526 return SWIG_Python_InitShadowInstance(args);
25527 }
25528
25529 SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25530 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25531 return 1;
25532 }
25533
25534
25535 SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25536 PyObject *pyobj = 0;
25537
25538 {
25539 #if wxUSE_UNICODE
25540 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25541 #else
25542 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25543 #endif
25544 }
25545 return pyobj;
25546 }
25547
25548
25549 SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25550 PyObject *resultobj = 0;
25551 wxColour const &arg1_defvalue = wxNullColour ;
25552 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25553 wxColour const &arg2_defvalue = wxNullColour ;
25554 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25555 wxFont const &arg3_defvalue = wxNullFont ;
25556 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25557 wxListItemAttr *result = 0 ;
25558 wxColour temp1 ;
25559 wxColour temp2 ;
25560 void *argp3 = 0 ;
25561 int res3 = 0 ;
25562 PyObject * obj0 = 0 ;
25563 PyObject * obj1 = 0 ;
25564 PyObject * obj2 = 0 ;
25565 char * kwnames[] = {
25566 (char *) "colText",(char *) "colBack",(char *) "font", NULL
25567 };
25568
25569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25570 if (obj0) {
25571 {
25572 arg1 = &temp1;
25573 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
25574 }
25575 }
25576 if (obj1) {
25577 {
25578 arg2 = &temp2;
25579 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25580 }
25581 }
25582 if (obj2) {
25583 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
25584 if (!SWIG_IsOK(res3)) {
25585 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25586 }
25587 if (!argp3) {
25588 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25589 }
25590 arg3 = reinterpret_cast< wxFont * >(argp3);
25591 }
25592 {
25593 PyThreadState* __tstate = wxPyBeginAllowThreads();
25594 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
25595 wxPyEndAllowThreads(__tstate);
25596 if (PyErr_Occurred()) SWIG_fail;
25597 }
25598 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
25599 return resultobj;
25600 fail:
25601 return NULL;
25602 }
25603
25604
25605 SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25606 PyObject *resultobj = 0;
25607 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25608 void *argp1 = 0 ;
25609 int res1 = 0 ;
25610 PyObject *swig_obj[1] ;
25611
25612 if (!args) SWIG_fail;
25613 swig_obj[0] = args;
25614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
25615 if (!SWIG_IsOK(res1)) {
25616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25617 }
25618 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25619 {
25620 PyThreadState* __tstate = wxPyBeginAllowThreads();
25621 delete arg1;
25622
25623 wxPyEndAllowThreads(__tstate);
25624 if (PyErr_Occurred()) SWIG_fail;
25625 }
25626 resultobj = SWIG_Py_Void();
25627 return resultobj;
25628 fail:
25629 return NULL;
25630 }
25631
25632
25633 SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25634 PyObject *resultobj = 0;
25635 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25636 wxColour *arg2 = 0 ;
25637 void *argp1 = 0 ;
25638 int res1 = 0 ;
25639 wxColour temp2 ;
25640 PyObject * obj0 = 0 ;
25641 PyObject * obj1 = 0 ;
25642 char * kwnames[] = {
25643 (char *) "self",(char *) "colText", NULL
25644 };
25645
25646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
25647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25648 if (!SWIG_IsOK(res1)) {
25649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25650 }
25651 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25652 {
25653 arg2 = &temp2;
25654 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25655 }
25656 {
25657 PyThreadState* __tstate = wxPyBeginAllowThreads();
25658 (arg1)->SetTextColour((wxColour const &)*arg2);
25659 wxPyEndAllowThreads(__tstate);
25660 if (PyErr_Occurred()) SWIG_fail;
25661 }
25662 resultobj = SWIG_Py_Void();
25663 return resultobj;
25664 fail:
25665 return NULL;
25666 }
25667
25668
25669 SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25670 PyObject *resultobj = 0;
25671 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25672 wxColour *arg2 = 0 ;
25673 void *argp1 = 0 ;
25674 int res1 = 0 ;
25675 wxColour temp2 ;
25676 PyObject * obj0 = 0 ;
25677 PyObject * obj1 = 0 ;
25678 char * kwnames[] = {
25679 (char *) "self",(char *) "colBack", NULL
25680 };
25681
25682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
25683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25684 if (!SWIG_IsOK(res1)) {
25685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25686 }
25687 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25688 {
25689 arg2 = &temp2;
25690 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25691 }
25692 {
25693 PyThreadState* __tstate = wxPyBeginAllowThreads();
25694 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
25695 wxPyEndAllowThreads(__tstate);
25696 if (PyErr_Occurred()) SWIG_fail;
25697 }
25698 resultobj = SWIG_Py_Void();
25699 return resultobj;
25700 fail:
25701 return NULL;
25702 }
25703
25704
25705 SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25706 PyObject *resultobj = 0;
25707 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25708 wxFont *arg2 = 0 ;
25709 void *argp1 = 0 ;
25710 int res1 = 0 ;
25711 void *argp2 = 0 ;
25712 int res2 = 0 ;
25713 PyObject * obj0 = 0 ;
25714 PyObject * obj1 = 0 ;
25715 char * kwnames[] = {
25716 (char *) "self",(char *) "font", NULL
25717 };
25718
25719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25721 if (!SWIG_IsOK(res1)) {
25722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25723 }
25724 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25725 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25726 if (!SWIG_IsOK(res2)) {
25727 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25728 }
25729 if (!argp2) {
25730 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25731 }
25732 arg2 = reinterpret_cast< wxFont * >(argp2);
25733 {
25734 PyThreadState* __tstate = wxPyBeginAllowThreads();
25735 (arg1)->SetFont((wxFont const &)*arg2);
25736 wxPyEndAllowThreads(__tstate);
25737 if (PyErr_Occurred()) SWIG_fail;
25738 }
25739 resultobj = SWIG_Py_Void();
25740 return resultobj;
25741 fail:
25742 return NULL;
25743 }
25744
25745
25746 SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25747 PyObject *resultobj = 0;
25748 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25749 bool result;
25750 void *argp1 = 0 ;
25751 int res1 = 0 ;
25752 PyObject *swig_obj[1] ;
25753
25754 if (!args) SWIG_fail;
25755 swig_obj[0] = args;
25756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25757 if (!SWIG_IsOK(res1)) {
25758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25759 }
25760 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25761 {
25762 PyThreadState* __tstate = wxPyBeginAllowThreads();
25763 result = (bool)(arg1)->HasTextColour();
25764 wxPyEndAllowThreads(__tstate);
25765 if (PyErr_Occurred()) SWIG_fail;
25766 }
25767 {
25768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25769 }
25770 return resultobj;
25771 fail:
25772 return NULL;
25773 }
25774
25775
25776 SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25777 PyObject *resultobj = 0;
25778 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25779 bool result;
25780 void *argp1 = 0 ;
25781 int res1 = 0 ;
25782 PyObject *swig_obj[1] ;
25783
25784 if (!args) SWIG_fail;
25785 swig_obj[0] = args;
25786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25787 if (!SWIG_IsOK(res1)) {
25788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25789 }
25790 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25791 {
25792 PyThreadState* __tstate = wxPyBeginAllowThreads();
25793 result = (bool)(arg1)->HasBackgroundColour();
25794 wxPyEndAllowThreads(__tstate);
25795 if (PyErr_Occurred()) SWIG_fail;
25796 }
25797 {
25798 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25799 }
25800 return resultobj;
25801 fail:
25802 return NULL;
25803 }
25804
25805
25806 SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25807 PyObject *resultobj = 0;
25808 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25809 bool result;
25810 void *argp1 = 0 ;
25811 int res1 = 0 ;
25812 PyObject *swig_obj[1] ;
25813
25814 if (!args) SWIG_fail;
25815 swig_obj[0] = args;
25816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25817 if (!SWIG_IsOK(res1)) {
25818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25819 }
25820 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25821 {
25822 PyThreadState* __tstate = wxPyBeginAllowThreads();
25823 result = (bool)(arg1)->HasFont();
25824 wxPyEndAllowThreads(__tstate);
25825 if (PyErr_Occurred()) SWIG_fail;
25826 }
25827 {
25828 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25829 }
25830 return resultobj;
25831 fail:
25832 return NULL;
25833 }
25834
25835
25836 SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25837 PyObject *resultobj = 0;
25838 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25839 wxColour result;
25840 void *argp1 = 0 ;
25841 int res1 = 0 ;
25842 PyObject *swig_obj[1] ;
25843
25844 if (!args) SWIG_fail;
25845 swig_obj[0] = args;
25846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25847 if (!SWIG_IsOK(res1)) {
25848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25849 }
25850 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25851 {
25852 PyThreadState* __tstate = wxPyBeginAllowThreads();
25853 result = (arg1)->GetTextColour();
25854 wxPyEndAllowThreads(__tstate);
25855 if (PyErr_Occurred()) SWIG_fail;
25856 }
25857 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25858 return resultobj;
25859 fail:
25860 return NULL;
25861 }
25862
25863
25864 SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25865 PyObject *resultobj = 0;
25866 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25867 wxColour result;
25868 void *argp1 = 0 ;
25869 int res1 = 0 ;
25870 PyObject *swig_obj[1] ;
25871
25872 if (!args) SWIG_fail;
25873 swig_obj[0] = args;
25874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25875 if (!SWIG_IsOK(res1)) {
25876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25877 }
25878 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25879 {
25880 PyThreadState* __tstate = wxPyBeginAllowThreads();
25881 result = (arg1)->GetBackgroundColour();
25882 wxPyEndAllowThreads(__tstate);
25883 if (PyErr_Occurred()) SWIG_fail;
25884 }
25885 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25886 return resultobj;
25887 fail:
25888 return NULL;
25889 }
25890
25891
25892 SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25893 PyObject *resultobj = 0;
25894 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25895 wxFont result;
25896 void *argp1 = 0 ;
25897 int res1 = 0 ;
25898 PyObject *swig_obj[1] ;
25899
25900 if (!args) SWIG_fail;
25901 swig_obj[0] = args;
25902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25903 if (!SWIG_IsOK(res1)) {
25904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25905 }
25906 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25907 {
25908 PyThreadState* __tstate = wxPyBeginAllowThreads();
25909 result = (arg1)->GetFont();
25910 wxPyEndAllowThreads(__tstate);
25911 if (PyErr_Occurred()) SWIG_fail;
25912 }
25913 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
25914 return resultobj;
25915 fail:
25916 return NULL;
25917 }
25918
25919
25920 SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25921 PyObject *resultobj = 0;
25922 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25923 wxListItemAttr *arg2 = 0 ;
25924 void *argp1 = 0 ;
25925 int res1 = 0 ;
25926 void *argp2 = 0 ;
25927 int res2 = 0 ;
25928 PyObject * obj0 = 0 ;
25929 PyObject * obj1 = 0 ;
25930 char * kwnames[] = {
25931 (char *) "self",(char *) "source", NULL
25932 };
25933
25934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
25935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25936 if (!SWIG_IsOK(res1)) {
25937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25938 }
25939 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25940 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
25941 if (!SWIG_IsOK(res2)) {
25942 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
25943 }
25944 if (!argp2) {
25945 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
25946 }
25947 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
25948 {
25949 PyThreadState* __tstate = wxPyBeginAllowThreads();
25950 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
25951 wxPyEndAllowThreads(__tstate);
25952 if (PyErr_Occurred()) SWIG_fail;
25953 }
25954 resultobj = SWIG_Py_Void();
25955 return resultobj;
25956 fail:
25957 return NULL;
25958 }
25959
25960
25961 SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25962 PyObject *resultobj = 0;
25963 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25964 void *argp1 = 0 ;
25965 int res1 = 0 ;
25966 PyObject *swig_obj[1] ;
25967
25968 if (!args) SWIG_fail;
25969 swig_obj[0] = args;
25970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25971 if (!SWIG_IsOK(res1)) {
25972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25973 }
25974 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25975 {
25976 PyThreadState* __tstate = wxPyBeginAllowThreads();
25977 wxListItemAttr_Destroy(arg1);
25978 wxPyEndAllowThreads(__tstate);
25979 if (PyErr_Occurred()) SWIG_fail;
25980 }
25981 resultobj = SWIG_Py_Void();
25982 return resultobj;
25983 fail:
25984 return NULL;
25985 }
25986
25987
25988 SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25989 PyObject *obj;
25990 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25991 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
25992 return SWIG_Py_Void();
25993 }
25994
25995 SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25996 return SWIG_Python_InitShadowInstance(args);
25997 }
25998
25999 SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26000 PyObject *resultobj = 0;
26001 wxListItem *result = 0 ;
26002
26003 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26004 {
26005 PyThreadState* __tstate = wxPyBeginAllowThreads();
26006 result = (wxListItem *)new wxListItem();
26007 wxPyEndAllowThreads(__tstate);
26008 if (PyErr_Occurred()) SWIG_fail;
26009 }
26010 {
26011 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
26012 }
26013 return resultobj;
26014 fail:
26015 return NULL;
26016 }
26017
26018
26019 SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26020 PyObject *resultobj = 0;
26021 wxListItem *arg1 = (wxListItem *) 0 ;
26022 void *argp1 = 0 ;
26023 int res1 = 0 ;
26024 PyObject *swig_obj[1] ;
26025
26026 if (!args) SWIG_fail;
26027 swig_obj[0] = args;
26028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26029 if (!SWIG_IsOK(res1)) {
26030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26031 }
26032 arg1 = reinterpret_cast< wxListItem * >(argp1);
26033 {
26034 PyThreadState* __tstate = wxPyBeginAllowThreads();
26035 delete arg1;
26036
26037 wxPyEndAllowThreads(__tstate);
26038 if (PyErr_Occurred()) SWIG_fail;
26039 }
26040 resultobj = SWIG_Py_Void();
26041 return resultobj;
26042 fail:
26043 return NULL;
26044 }
26045
26046
26047 SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26048 PyObject *resultobj = 0;
26049 wxListItem *arg1 = (wxListItem *) 0 ;
26050 void *argp1 = 0 ;
26051 int res1 = 0 ;
26052 PyObject *swig_obj[1] ;
26053
26054 if (!args) SWIG_fail;
26055 swig_obj[0] = args;
26056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26057 if (!SWIG_IsOK(res1)) {
26058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26059 }
26060 arg1 = reinterpret_cast< wxListItem * >(argp1);
26061 {
26062 PyThreadState* __tstate = wxPyBeginAllowThreads();
26063 (arg1)->Clear();
26064 wxPyEndAllowThreads(__tstate);
26065 if (PyErr_Occurred()) SWIG_fail;
26066 }
26067 resultobj = SWIG_Py_Void();
26068 return resultobj;
26069 fail:
26070 return NULL;
26071 }
26072
26073
26074 SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26075 PyObject *resultobj = 0;
26076 wxListItem *arg1 = (wxListItem *) 0 ;
26077 void *argp1 = 0 ;
26078 int res1 = 0 ;
26079 PyObject *swig_obj[1] ;
26080
26081 if (!args) SWIG_fail;
26082 swig_obj[0] = args;
26083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26084 if (!SWIG_IsOK(res1)) {
26085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26086 }
26087 arg1 = reinterpret_cast< wxListItem * >(argp1);
26088 {
26089 PyThreadState* __tstate = wxPyBeginAllowThreads();
26090 (arg1)->ClearAttributes();
26091 wxPyEndAllowThreads(__tstate);
26092 if (PyErr_Occurred()) SWIG_fail;
26093 }
26094 resultobj = SWIG_Py_Void();
26095 return resultobj;
26096 fail:
26097 return NULL;
26098 }
26099
26100
26101 SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26102 PyObject *resultobj = 0;
26103 wxListItem *arg1 = (wxListItem *) 0 ;
26104 long arg2 ;
26105 void *argp1 = 0 ;
26106 int res1 = 0 ;
26107 long val2 ;
26108 int ecode2 = 0 ;
26109 PyObject * obj0 = 0 ;
26110 PyObject * obj1 = 0 ;
26111 char * kwnames[] = {
26112 (char *) "self",(char *) "mask", NULL
26113 };
26114
26115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26117 if (!SWIG_IsOK(res1)) {
26118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26119 }
26120 arg1 = reinterpret_cast< wxListItem * >(argp1);
26121 ecode2 = SWIG_AsVal_long(obj1, &val2);
26122 if (!SWIG_IsOK(ecode2)) {
26123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26124 }
26125 arg2 = static_cast< long >(val2);
26126 {
26127 PyThreadState* __tstate = wxPyBeginAllowThreads();
26128 (arg1)->SetMask(arg2);
26129 wxPyEndAllowThreads(__tstate);
26130 if (PyErr_Occurred()) SWIG_fail;
26131 }
26132 resultobj = SWIG_Py_Void();
26133 return resultobj;
26134 fail:
26135 return NULL;
26136 }
26137
26138
26139 SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26140 PyObject *resultobj = 0;
26141 wxListItem *arg1 = (wxListItem *) 0 ;
26142 long arg2 ;
26143 void *argp1 = 0 ;
26144 int res1 = 0 ;
26145 long val2 ;
26146 int ecode2 = 0 ;
26147 PyObject * obj0 = 0 ;
26148 PyObject * obj1 = 0 ;
26149 char * kwnames[] = {
26150 (char *) "self",(char *) "id", NULL
26151 };
26152
26153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26155 if (!SWIG_IsOK(res1)) {
26156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26157 }
26158 arg1 = reinterpret_cast< wxListItem * >(argp1);
26159 ecode2 = SWIG_AsVal_long(obj1, &val2);
26160 if (!SWIG_IsOK(ecode2)) {
26161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26162 }
26163 arg2 = static_cast< long >(val2);
26164 {
26165 PyThreadState* __tstate = wxPyBeginAllowThreads();
26166 (arg1)->SetId(arg2);
26167 wxPyEndAllowThreads(__tstate);
26168 if (PyErr_Occurred()) SWIG_fail;
26169 }
26170 resultobj = SWIG_Py_Void();
26171 return resultobj;
26172 fail:
26173 return NULL;
26174 }
26175
26176
26177 SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26178 PyObject *resultobj = 0;
26179 wxListItem *arg1 = (wxListItem *) 0 ;
26180 int arg2 ;
26181 void *argp1 = 0 ;
26182 int res1 = 0 ;
26183 int val2 ;
26184 int ecode2 = 0 ;
26185 PyObject * obj0 = 0 ;
26186 PyObject * obj1 = 0 ;
26187 char * kwnames[] = {
26188 (char *) "self",(char *) "col", NULL
26189 };
26190
26191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26193 if (!SWIG_IsOK(res1)) {
26194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26195 }
26196 arg1 = reinterpret_cast< wxListItem * >(argp1);
26197 ecode2 = SWIG_AsVal_int(obj1, &val2);
26198 if (!SWIG_IsOK(ecode2)) {
26199 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26200 }
26201 arg2 = static_cast< int >(val2);
26202 {
26203 PyThreadState* __tstate = wxPyBeginAllowThreads();
26204 (arg1)->SetColumn(arg2);
26205 wxPyEndAllowThreads(__tstate);
26206 if (PyErr_Occurred()) SWIG_fail;
26207 }
26208 resultobj = SWIG_Py_Void();
26209 return resultobj;
26210 fail:
26211 return NULL;
26212 }
26213
26214
26215 SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26216 PyObject *resultobj = 0;
26217 wxListItem *arg1 = (wxListItem *) 0 ;
26218 long arg2 ;
26219 void *argp1 = 0 ;
26220 int res1 = 0 ;
26221 long val2 ;
26222 int ecode2 = 0 ;
26223 PyObject * obj0 = 0 ;
26224 PyObject * obj1 = 0 ;
26225 char * kwnames[] = {
26226 (char *) "self",(char *) "state", NULL
26227 };
26228
26229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26231 if (!SWIG_IsOK(res1)) {
26232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26233 }
26234 arg1 = reinterpret_cast< wxListItem * >(argp1);
26235 ecode2 = SWIG_AsVal_long(obj1, &val2);
26236 if (!SWIG_IsOK(ecode2)) {
26237 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26238 }
26239 arg2 = static_cast< long >(val2);
26240 {
26241 PyThreadState* __tstate = wxPyBeginAllowThreads();
26242 (arg1)->SetState(arg2);
26243 wxPyEndAllowThreads(__tstate);
26244 if (PyErr_Occurred()) SWIG_fail;
26245 }
26246 resultobj = SWIG_Py_Void();
26247 return resultobj;
26248 fail:
26249 return NULL;
26250 }
26251
26252
26253 SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26254 PyObject *resultobj = 0;
26255 wxListItem *arg1 = (wxListItem *) 0 ;
26256 long arg2 ;
26257 void *argp1 = 0 ;
26258 int res1 = 0 ;
26259 long val2 ;
26260 int ecode2 = 0 ;
26261 PyObject * obj0 = 0 ;
26262 PyObject * obj1 = 0 ;
26263 char * kwnames[] = {
26264 (char *) "self",(char *) "stateMask", NULL
26265 };
26266
26267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26269 if (!SWIG_IsOK(res1)) {
26270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26271 }
26272 arg1 = reinterpret_cast< wxListItem * >(argp1);
26273 ecode2 = SWIG_AsVal_long(obj1, &val2);
26274 if (!SWIG_IsOK(ecode2)) {
26275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26276 }
26277 arg2 = static_cast< long >(val2);
26278 {
26279 PyThreadState* __tstate = wxPyBeginAllowThreads();
26280 (arg1)->SetStateMask(arg2);
26281 wxPyEndAllowThreads(__tstate);
26282 if (PyErr_Occurred()) SWIG_fail;
26283 }
26284 resultobj = SWIG_Py_Void();
26285 return resultobj;
26286 fail:
26287 return NULL;
26288 }
26289
26290
26291 SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26292 PyObject *resultobj = 0;
26293 wxListItem *arg1 = (wxListItem *) 0 ;
26294 wxString *arg2 = 0 ;
26295 void *argp1 = 0 ;
26296 int res1 = 0 ;
26297 bool temp2 = false ;
26298 PyObject * obj0 = 0 ;
26299 PyObject * obj1 = 0 ;
26300 char * kwnames[] = {
26301 (char *) "self",(char *) "text", NULL
26302 };
26303
26304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26306 if (!SWIG_IsOK(res1)) {
26307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26308 }
26309 arg1 = reinterpret_cast< wxListItem * >(argp1);
26310 {
26311 arg2 = wxString_in_helper(obj1);
26312 if (arg2 == NULL) SWIG_fail;
26313 temp2 = true;
26314 }
26315 {
26316 PyThreadState* __tstate = wxPyBeginAllowThreads();
26317 (arg1)->SetText((wxString const &)*arg2);
26318 wxPyEndAllowThreads(__tstate);
26319 if (PyErr_Occurred()) SWIG_fail;
26320 }
26321 resultobj = SWIG_Py_Void();
26322 {
26323 if (temp2)
26324 delete arg2;
26325 }
26326 return resultobj;
26327 fail:
26328 {
26329 if (temp2)
26330 delete arg2;
26331 }
26332 return NULL;
26333 }
26334
26335
26336 SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26337 PyObject *resultobj = 0;
26338 wxListItem *arg1 = (wxListItem *) 0 ;
26339 int arg2 ;
26340 void *argp1 = 0 ;
26341 int res1 = 0 ;
26342 int val2 ;
26343 int ecode2 = 0 ;
26344 PyObject * obj0 = 0 ;
26345 PyObject * obj1 = 0 ;
26346 char * kwnames[] = {
26347 (char *) "self",(char *) "image", NULL
26348 };
26349
26350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26352 if (!SWIG_IsOK(res1)) {
26353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26354 }
26355 arg1 = reinterpret_cast< wxListItem * >(argp1);
26356 ecode2 = SWIG_AsVal_int(obj1, &val2);
26357 if (!SWIG_IsOK(ecode2)) {
26358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26359 }
26360 arg2 = static_cast< int >(val2);
26361 {
26362 PyThreadState* __tstate = wxPyBeginAllowThreads();
26363 (arg1)->SetImage(arg2);
26364 wxPyEndAllowThreads(__tstate);
26365 if (PyErr_Occurred()) SWIG_fail;
26366 }
26367 resultobj = SWIG_Py_Void();
26368 return resultobj;
26369 fail:
26370 return NULL;
26371 }
26372
26373
26374 SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26375 PyObject *resultobj = 0;
26376 wxListItem *arg1 = (wxListItem *) 0 ;
26377 long arg2 ;
26378 void *argp1 = 0 ;
26379 int res1 = 0 ;
26380 long val2 ;
26381 int ecode2 = 0 ;
26382 PyObject * obj0 = 0 ;
26383 PyObject * obj1 = 0 ;
26384 char * kwnames[] = {
26385 (char *) "self",(char *) "data", NULL
26386 };
26387
26388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26390 if (!SWIG_IsOK(res1)) {
26391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26392 }
26393 arg1 = reinterpret_cast< wxListItem * >(argp1);
26394 ecode2 = SWIG_AsVal_long(obj1, &val2);
26395 if (!SWIG_IsOK(ecode2)) {
26396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26397 }
26398 arg2 = static_cast< long >(val2);
26399 {
26400 PyThreadState* __tstate = wxPyBeginAllowThreads();
26401 (arg1)->SetData(arg2);
26402 wxPyEndAllowThreads(__tstate);
26403 if (PyErr_Occurred()) SWIG_fail;
26404 }
26405 resultobj = SWIG_Py_Void();
26406 return resultobj;
26407 fail:
26408 return NULL;
26409 }
26410
26411
26412 SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26413 PyObject *resultobj = 0;
26414 wxListItem *arg1 = (wxListItem *) 0 ;
26415 int arg2 ;
26416 void *argp1 = 0 ;
26417 int res1 = 0 ;
26418 int val2 ;
26419 int ecode2 = 0 ;
26420 PyObject * obj0 = 0 ;
26421 PyObject * obj1 = 0 ;
26422 char * kwnames[] = {
26423 (char *) "self",(char *) "width", NULL
26424 };
26425
26426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26428 if (!SWIG_IsOK(res1)) {
26429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26430 }
26431 arg1 = reinterpret_cast< wxListItem * >(argp1);
26432 ecode2 = SWIG_AsVal_int(obj1, &val2);
26433 if (!SWIG_IsOK(ecode2)) {
26434 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26435 }
26436 arg2 = static_cast< int >(val2);
26437 {
26438 PyThreadState* __tstate = wxPyBeginAllowThreads();
26439 (arg1)->SetWidth(arg2);
26440 wxPyEndAllowThreads(__tstate);
26441 if (PyErr_Occurred()) SWIG_fail;
26442 }
26443 resultobj = SWIG_Py_Void();
26444 return resultobj;
26445 fail:
26446 return NULL;
26447 }
26448
26449
26450 SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26451 PyObject *resultobj = 0;
26452 wxListItem *arg1 = (wxListItem *) 0 ;
26453 wxListColumnFormat arg2 ;
26454 void *argp1 = 0 ;
26455 int res1 = 0 ;
26456 int val2 ;
26457 int ecode2 = 0 ;
26458 PyObject * obj0 = 0 ;
26459 PyObject * obj1 = 0 ;
26460 char * kwnames[] = {
26461 (char *) "self",(char *) "align", NULL
26462 };
26463
26464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26466 if (!SWIG_IsOK(res1)) {
26467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26468 }
26469 arg1 = reinterpret_cast< wxListItem * >(argp1);
26470 ecode2 = SWIG_AsVal_int(obj1, &val2);
26471 if (!SWIG_IsOK(ecode2)) {
26472 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26473 }
26474 arg2 = static_cast< wxListColumnFormat >(val2);
26475 {
26476 PyThreadState* __tstate = wxPyBeginAllowThreads();
26477 (arg1)->SetAlign(arg2);
26478 wxPyEndAllowThreads(__tstate);
26479 if (PyErr_Occurred()) SWIG_fail;
26480 }
26481 resultobj = SWIG_Py_Void();
26482 return resultobj;
26483 fail:
26484 return NULL;
26485 }
26486
26487
26488 SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26489 PyObject *resultobj = 0;
26490 wxListItem *arg1 = (wxListItem *) 0 ;
26491 wxColour *arg2 = 0 ;
26492 void *argp1 = 0 ;
26493 int res1 = 0 ;
26494 wxColour temp2 ;
26495 PyObject * obj0 = 0 ;
26496 PyObject * obj1 = 0 ;
26497 char * kwnames[] = {
26498 (char *) "self",(char *) "colText", NULL
26499 };
26500
26501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26503 if (!SWIG_IsOK(res1)) {
26504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26505 }
26506 arg1 = reinterpret_cast< wxListItem * >(argp1);
26507 {
26508 arg2 = &temp2;
26509 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26510 }
26511 {
26512 PyThreadState* __tstate = wxPyBeginAllowThreads();
26513 (arg1)->SetTextColour((wxColour const &)*arg2);
26514 wxPyEndAllowThreads(__tstate);
26515 if (PyErr_Occurred()) SWIG_fail;
26516 }
26517 resultobj = SWIG_Py_Void();
26518 return resultobj;
26519 fail:
26520 return NULL;
26521 }
26522
26523
26524 SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26525 PyObject *resultobj = 0;
26526 wxListItem *arg1 = (wxListItem *) 0 ;
26527 wxColour *arg2 = 0 ;
26528 void *argp1 = 0 ;
26529 int res1 = 0 ;
26530 wxColour temp2 ;
26531 PyObject * obj0 = 0 ;
26532 PyObject * obj1 = 0 ;
26533 char * kwnames[] = {
26534 (char *) "self",(char *) "colBack", NULL
26535 };
26536
26537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26539 if (!SWIG_IsOK(res1)) {
26540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26541 }
26542 arg1 = reinterpret_cast< wxListItem * >(argp1);
26543 {
26544 arg2 = &temp2;
26545 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26546 }
26547 {
26548 PyThreadState* __tstate = wxPyBeginAllowThreads();
26549 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26550 wxPyEndAllowThreads(__tstate);
26551 if (PyErr_Occurred()) SWIG_fail;
26552 }
26553 resultobj = SWIG_Py_Void();
26554 return resultobj;
26555 fail:
26556 return NULL;
26557 }
26558
26559
26560 SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26561 PyObject *resultobj = 0;
26562 wxListItem *arg1 = (wxListItem *) 0 ;
26563 wxFont *arg2 = 0 ;
26564 void *argp1 = 0 ;
26565 int res1 = 0 ;
26566 void *argp2 = 0 ;
26567 int res2 = 0 ;
26568 PyObject * obj0 = 0 ;
26569 PyObject * obj1 = 0 ;
26570 char * kwnames[] = {
26571 (char *) "self",(char *) "font", NULL
26572 };
26573
26574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26576 if (!SWIG_IsOK(res1)) {
26577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
26578 }
26579 arg1 = reinterpret_cast< wxListItem * >(argp1);
26580 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26581 if (!SWIG_IsOK(res2)) {
26582 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26583 }
26584 if (!argp2) {
26585 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26586 }
26587 arg2 = reinterpret_cast< wxFont * >(argp2);
26588 {
26589 PyThreadState* __tstate = wxPyBeginAllowThreads();
26590 (arg1)->SetFont((wxFont const &)*arg2);
26591 wxPyEndAllowThreads(__tstate);
26592 if (PyErr_Occurred()) SWIG_fail;
26593 }
26594 resultobj = SWIG_Py_Void();
26595 return resultobj;
26596 fail:
26597 return NULL;
26598 }
26599
26600
26601 SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26602 PyObject *resultobj = 0;
26603 wxListItem *arg1 = (wxListItem *) 0 ;
26604 long result;
26605 void *argp1 = 0 ;
26606 int res1 = 0 ;
26607 PyObject *swig_obj[1] ;
26608
26609 if (!args) SWIG_fail;
26610 swig_obj[0] = args;
26611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26612 if (!SWIG_IsOK(res1)) {
26613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26614 }
26615 arg1 = reinterpret_cast< wxListItem * >(argp1);
26616 {
26617 PyThreadState* __tstate = wxPyBeginAllowThreads();
26618 result = (long)(arg1)->GetMask();
26619 wxPyEndAllowThreads(__tstate);
26620 if (PyErr_Occurred()) SWIG_fail;
26621 }
26622 resultobj = SWIG_From_long(static_cast< long >(result));
26623 return resultobj;
26624 fail:
26625 return NULL;
26626 }
26627
26628
26629 SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26630 PyObject *resultobj = 0;
26631 wxListItem *arg1 = (wxListItem *) 0 ;
26632 long result;
26633 void *argp1 = 0 ;
26634 int res1 = 0 ;
26635 PyObject *swig_obj[1] ;
26636
26637 if (!args) SWIG_fail;
26638 swig_obj[0] = args;
26639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26640 if (!SWIG_IsOK(res1)) {
26641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26642 }
26643 arg1 = reinterpret_cast< wxListItem * >(argp1);
26644 {
26645 PyThreadState* __tstate = wxPyBeginAllowThreads();
26646 result = (long)(arg1)->GetId();
26647 wxPyEndAllowThreads(__tstate);
26648 if (PyErr_Occurred()) SWIG_fail;
26649 }
26650 resultobj = SWIG_From_long(static_cast< long >(result));
26651 return resultobj;
26652 fail:
26653 return NULL;
26654 }
26655
26656
26657 SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26658 PyObject *resultobj = 0;
26659 wxListItem *arg1 = (wxListItem *) 0 ;
26660 int result;
26661 void *argp1 = 0 ;
26662 int res1 = 0 ;
26663 PyObject *swig_obj[1] ;
26664
26665 if (!args) SWIG_fail;
26666 swig_obj[0] = args;
26667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26668 if (!SWIG_IsOK(res1)) {
26669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26670 }
26671 arg1 = reinterpret_cast< wxListItem * >(argp1);
26672 {
26673 PyThreadState* __tstate = wxPyBeginAllowThreads();
26674 result = (int)(arg1)->GetColumn();
26675 wxPyEndAllowThreads(__tstate);
26676 if (PyErr_Occurred()) SWIG_fail;
26677 }
26678 resultobj = SWIG_From_int(static_cast< int >(result));
26679 return resultobj;
26680 fail:
26681 return NULL;
26682 }
26683
26684
26685 SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26686 PyObject *resultobj = 0;
26687 wxListItem *arg1 = (wxListItem *) 0 ;
26688 long result;
26689 void *argp1 = 0 ;
26690 int res1 = 0 ;
26691 PyObject *swig_obj[1] ;
26692
26693 if (!args) SWIG_fail;
26694 swig_obj[0] = args;
26695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26696 if (!SWIG_IsOK(res1)) {
26697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26698 }
26699 arg1 = reinterpret_cast< wxListItem * >(argp1);
26700 {
26701 PyThreadState* __tstate = wxPyBeginAllowThreads();
26702 result = (long)(arg1)->GetState();
26703 wxPyEndAllowThreads(__tstate);
26704 if (PyErr_Occurred()) SWIG_fail;
26705 }
26706 resultobj = SWIG_From_long(static_cast< long >(result));
26707 return resultobj;
26708 fail:
26709 return NULL;
26710 }
26711
26712
26713 SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26714 PyObject *resultobj = 0;
26715 wxListItem *arg1 = (wxListItem *) 0 ;
26716 wxString *result = 0 ;
26717 void *argp1 = 0 ;
26718 int res1 = 0 ;
26719 PyObject *swig_obj[1] ;
26720
26721 if (!args) SWIG_fail;
26722 swig_obj[0] = args;
26723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26724 if (!SWIG_IsOK(res1)) {
26725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26726 }
26727 arg1 = reinterpret_cast< wxListItem * >(argp1);
26728 {
26729 PyThreadState* __tstate = wxPyBeginAllowThreads();
26730 {
26731 wxString const &_result_ref = (arg1)->GetText();
26732 result = (wxString *) &_result_ref;
26733 }
26734 wxPyEndAllowThreads(__tstate);
26735 if (PyErr_Occurred()) SWIG_fail;
26736 }
26737 {
26738 #if wxUSE_UNICODE
26739 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
26740 #else
26741 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
26742 #endif
26743 }
26744 return resultobj;
26745 fail:
26746 return NULL;
26747 }
26748
26749
26750 SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26751 PyObject *resultobj = 0;
26752 wxListItem *arg1 = (wxListItem *) 0 ;
26753 int result;
26754 void *argp1 = 0 ;
26755 int res1 = 0 ;
26756 PyObject *swig_obj[1] ;
26757
26758 if (!args) SWIG_fail;
26759 swig_obj[0] = args;
26760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26761 if (!SWIG_IsOK(res1)) {
26762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26763 }
26764 arg1 = reinterpret_cast< wxListItem * >(argp1);
26765 {
26766 PyThreadState* __tstate = wxPyBeginAllowThreads();
26767 result = (int)(arg1)->GetImage();
26768 wxPyEndAllowThreads(__tstate);
26769 if (PyErr_Occurred()) SWIG_fail;
26770 }
26771 resultobj = SWIG_From_int(static_cast< int >(result));
26772 return resultobj;
26773 fail:
26774 return NULL;
26775 }
26776
26777
26778 SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26779 PyObject *resultobj = 0;
26780 wxListItem *arg1 = (wxListItem *) 0 ;
26781 long result;
26782 void *argp1 = 0 ;
26783 int res1 = 0 ;
26784 PyObject *swig_obj[1] ;
26785
26786 if (!args) SWIG_fail;
26787 swig_obj[0] = args;
26788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26789 if (!SWIG_IsOK(res1)) {
26790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26791 }
26792 arg1 = reinterpret_cast< wxListItem * >(argp1);
26793 {
26794 PyThreadState* __tstate = wxPyBeginAllowThreads();
26795 result = (long)(arg1)->GetData();
26796 wxPyEndAllowThreads(__tstate);
26797 if (PyErr_Occurred()) SWIG_fail;
26798 }
26799 resultobj = SWIG_From_long(static_cast< long >(result));
26800 return resultobj;
26801 fail:
26802 return NULL;
26803 }
26804
26805
26806 SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26807 PyObject *resultobj = 0;
26808 wxListItem *arg1 = (wxListItem *) 0 ;
26809 int result;
26810 void *argp1 = 0 ;
26811 int res1 = 0 ;
26812 PyObject *swig_obj[1] ;
26813
26814 if (!args) SWIG_fail;
26815 swig_obj[0] = args;
26816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26817 if (!SWIG_IsOK(res1)) {
26818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26819 }
26820 arg1 = reinterpret_cast< wxListItem * >(argp1);
26821 {
26822 PyThreadState* __tstate = wxPyBeginAllowThreads();
26823 result = (int)(arg1)->GetWidth();
26824 wxPyEndAllowThreads(__tstate);
26825 if (PyErr_Occurred()) SWIG_fail;
26826 }
26827 resultobj = SWIG_From_int(static_cast< int >(result));
26828 return resultobj;
26829 fail:
26830 return NULL;
26831 }
26832
26833
26834 SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26835 PyObject *resultobj = 0;
26836 wxListItem *arg1 = (wxListItem *) 0 ;
26837 wxListColumnFormat result;
26838 void *argp1 = 0 ;
26839 int res1 = 0 ;
26840 PyObject *swig_obj[1] ;
26841
26842 if (!args) SWIG_fail;
26843 swig_obj[0] = args;
26844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26845 if (!SWIG_IsOK(res1)) {
26846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26847 }
26848 arg1 = reinterpret_cast< wxListItem * >(argp1);
26849 {
26850 PyThreadState* __tstate = wxPyBeginAllowThreads();
26851 result = (wxListColumnFormat)(arg1)->GetAlign();
26852 wxPyEndAllowThreads(__tstate);
26853 if (PyErr_Occurred()) SWIG_fail;
26854 }
26855 resultobj = SWIG_From_int(static_cast< int >(result));
26856 return resultobj;
26857 fail:
26858 return NULL;
26859 }
26860
26861
26862 SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26863 PyObject *resultobj = 0;
26864 wxListItem *arg1 = (wxListItem *) 0 ;
26865 wxListItemAttr *result = 0 ;
26866 void *argp1 = 0 ;
26867 int res1 = 0 ;
26868 PyObject *swig_obj[1] ;
26869
26870 if (!args) SWIG_fail;
26871 swig_obj[0] = args;
26872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26873 if (!SWIG_IsOK(res1)) {
26874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26875 }
26876 arg1 = reinterpret_cast< wxListItem * >(argp1);
26877 {
26878 PyThreadState* __tstate = wxPyBeginAllowThreads();
26879 result = (wxListItemAttr *)(arg1)->GetAttributes();
26880 wxPyEndAllowThreads(__tstate);
26881 if (PyErr_Occurred()) SWIG_fail;
26882 }
26883 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26884 return resultobj;
26885 fail:
26886 return NULL;
26887 }
26888
26889
26890 SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26891 PyObject *resultobj = 0;
26892 wxListItem *arg1 = (wxListItem *) 0 ;
26893 bool result;
26894 void *argp1 = 0 ;
26895 int res1 = 0 ;
26896 PyObject *swig_obj[1] ;
26897
26898 if (!args) SWIG_fail;
26899 swig_obj[0] = args;
26900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26901 if (!SWIG_IsOK(res1)) {
26902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26903 }
26904 arg1 = reinterpret_cast< wxListItem * >(argp1);
26905 {
26906 PyThreadState* __tstate = wxPyBeginAllowThreads();
26907 result = (bool)(arg1)->HasAttributes();
26908 wxPyEndAllowThreads(__tstate);
26909 if (PyErr_Occurred()) SWIG_fail;
26910 }
26911 {
26912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26913 }
26914 return resultobj;
26915 fail:
26916 return NULL;
26917 }
26918
26919
26920 SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26921 PyObject *resultobj = 0;
26922 wxListItem *arg1 = (wxListItem *) 0 ;
26923 wxColour result;
26924 void *argp1 = 0 ;
26925 int res1 = 0 ;
26926 PyObject *swig_obj[1] ;
26927
26928 if (!args) SWIG_fail;
26929 swig_obj[0] = args;
26930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26931 if (!SWIG_IsOK(res1)) {
26932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
26933 }
26934 arg1 = reinterpret_cast< wxListItem * >(argp1);
26935 {
26936 PyThreadState* __tstate = wxPyBeginAllowThreads();
26937 result = ((wxListItem const *)arg1)->GetTextColour();
26938 wxPyEndAllowThreads(__tstate);
26939 if (PyErr_Occurred()) SWIG_fail;
26940 }
26941 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26942 return resultobj;
26943 fail:
26944 return NULL;
26945 }
26946
26947
26948 SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26949 PyObject *resultobj = 0;
26950 wxListItem *arg1 = (wxListItem *) 0 ;
26951 wxColour result;
26952 void *argp1 = 0 ;
26953 int res1 = 0 ;
26954 PyObject *swig_obj[1] ;
26955
26956 if (!args) SWIG_fail;
26957 swig_obj[0] = args;
26958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26959 if (!SWIG_IsOK(res1)) {
26960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
26961 }
26962 arg1 = reinterpret_cast< wxListItem * >(argp1);
26963 {
26964 PyThreadState* __tstate = wxPyBeginAllowThreads();
26965 result = ((wxListItem const *)arg1)->GetBackgroundColour();
26966 wxPyEndAllowThreads(__tstate);
26967 if (PyErr_Occurred()) SWIG_fail;
26968 }
26969 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26970 return resultobj;
26971 fail:
26972 return NULL;
26973 }
26974
26975
26976 SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26977 PyObject *resultobj = 0;
26978 wxListItem *arg1 = (wxListItem *) 0 ;
26979 wxFont result;
26980 void *argp1 = 0 ;
26981 int res1 = 0 ;
26982 PyObject *swig_obj[1] ;
26983
26984 if (!args) SWIG_fail;
26985 swig_obj[0] = args;
26986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26987 if (!SWIG_IsOK(res1)) {
26988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
26989 }
26990 arg1 = reinterpret_cast< wxListItem * >(argp1);
26991 {
26992 PyThreadState* __tstate = wxPyBeginAllowThreads();
26993 result = ((wxListItem const *)arg1)->GetFont();
26994 wxPyEndAllowThreads(__tstate);
26995 if (PyErr_Occurred()) SWIG_fail;
26996 }
26997 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26998 return resultobj;
26999 fail:
27000 return NULL;
27001 }
27002
27003
27004 SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27005 PyObject *resultobj = 0;
27006 wxListItem *arg1 = (wxListItem *) 0 ;
27007 long arg2 ;
27008 void *argp1 = 0 ;
27009 int res1 = 0 ;
27010 long val2 ;
27011 int ecode2 = 0 ;
27012 PyObject *swig_obj[2] ;
27013
27014 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27016 if (!SWIG_IsOK(res1)) {
27017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27018 }
27019 arg1 = reinterpret_cast< wxListItem * >(argp1);
27020 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27021 if (!SWIG_IsOK(ecode2)) {
27022 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27023 }
27024 arg2 = static_cast< long >(val2);
27025 if (arg1) (arg1)->m_mask = arg2;
27026
27027 resultobj = SWIG_Py_Void();
27028 return resultobj;
27029 fail:
27030 return NULL;
27031 }
27032
27033
27034 SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27035 PyObject *resultobj = 0;
27036 wxListItem *arg1 = (wxListItem *) 0 ;
27037 long 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_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27047 }
27048 arg1 = reinterpret_cast< wxListItem * >(argp1);
27049 result = (long) ((arg1)->m_mask);
27050 resultobj = SWIG_From_long(static_cast< long >(result));
27051 return resultobj;
27052 fail:
27053 return NULL;
27054 }
27055
27056
27057 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27058 PyObject *resultobj = 0;
27059 wxListItem *arg1 = (wxListItem *) 0 ;
27060 long arg2 ;
27061 void *argp1 = 0 ;
27062 int res1 = 0 ;
27063 long val2 ;
27064 int ecode2 = 0 ;
27065 PyObject *swig_obj[2] ;
27066
27067 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27069 if (!SWIG_IsOK(res1)) {
27070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27071 }
27072 arg1 = reinterpret_cast< wxListItem * >(argp1);
27073 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27074 if (!SWIG_IsOK(ecode2)) {
27075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27076 }
27077 arg2 = static_cast< long >(val2);
27078 if (arg1) (arg1)->m_itemId = arg2;
27079
27080 resultobj = SWIG_Py_Void();
27081 return resultobj;
27082 fail:
27083 return NULL;
27084 }
27085
27086
27087 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27088 PyObject *resultobj = 0;
27089 wxListItem *arg1 = (wxListItem *) 0 ;
27090 long result;
27091 void *argp1 = 0 ;
27092 int res1 = 0 ;
27093 PyObject *swig_obj[1] ;
27094
27095 if (!args) SWIG_fail;
27096 swig_obj[0] = args;
27097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27098 if (!SWIG_IsOK(res1)) {
27099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27100 }
27101 arg1 = reinterpret_cast< wxListItem * >(argp1);
27102 result = (long) ((arg1)->m_itemId);
27103 resultobj = SWIG_From_long(static_cast< long >(result));
27104 return resultobj;
27105 fail:
27106 return NULL;
27107 }
27108
27109
27110 SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27111 PyObject *resultobj = 0;
27112 wxListItem *arg1 = (wxListItem *) 0 ;
27113 int arg2 ;
27114 void *argp1 = 0 ;
27115 int res1 = 0 ;
27116 int val2 ;
27117 int ecode2 = 0 ;
27118 PyObject *swig_obj[2] ;
27119
27120 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27122 if (!SWIG_IsOK(res1)) {
27123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27124 }
27125 arg1 = reinterpret_cast< wxListItem * >(argp1);
27126 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27127 if (!SWIG_IsOK(ecode2)) {
27128 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27129 }
27130 arg2 = static_cast< int >(val2);
27131 if (arg1) (arg1)->m_col = arg2;
27132
27133 resultobj = SWIG_Py_Void();
27134 return resultobj;
27135 fail:
27136 return NULL;
27137 }
27138
27139
27140 SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27141 PyObject *resultobj = 0;
27142 wxListItem *arg1 = (wxListItem *) 0 ;
27143 int result;
27144 void *argp1 = 0 ;
27145 int res1 = 0 ;
27146 PyObject *swig_obj[1] ;
27147
27148 if (!args) SWIG_fail;
27149 swig_obj[0] = args;
27150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27151 if (!SWIG_IsOK(res1)) {
27152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27153 }
27154 arg1 = reinterpret_cast< wxListItem * >(argp1);
27155 result = (int) ((arg1)->m_col);
27156 resultobj = SWIG_From_int(static_cast< int >(result));
27157 return resultobj;
27158 fail:
27159 return NULL;
27160 }
27161
27162
27163 SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27164 PyObject *resultobj = 0;
27165 wxListItem *arg1 = (wxListItem *) 0 ;
27166 long arg2 ;
27167 void *argp1 = 0 ;
27168 int res1 = 0 ;
27169 long val2 ;
27170 int ecode2 = 0 ;
27171 PyObject *swig_obj[2] ;
27172
27173 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27175 if (!SWIG_IsOK(res1)) {
27176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27177 }
27178 arg1 = reinterpret_cast< wxListItem * >(argp1);
27179 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27180 if (!SWIG_IsOK(ecode2)) {
27181 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27182 }
27183 arg2 = static_cast< long >(val2);
27184 if (arg1) (arg1)->m_state = arg2;
27185
27186 resultobj = SWIG_Py_Void();
27187 return resultobj;
27188 fail:
27189 return NULL;
27190 }
27191
27192
27193 SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27194 PyObject *resultobj = 0;
27195 wxListItem *arg1 = (wxListItem *) 0 ;
27196 long result;
27197 void *argp1 = 0 ;
27198 int res1 = 0 ;
27199 PyObject *swig_obj[1] ;
27200
27201 if (!args) SWIG_fail;
27202 swig_obj[0] = args;
27203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27204 if (!SWIG_IsOK(res1)) {
27205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27206 }
27207 arg1 = reinterpret_cast< wxListItem * >(argp1);
27208 result = (long) ((arg1)->m_state);
27209 resultobj = SWIG_From_long(static_cast< long >(result));
27210 return resultobj;
27211 fail:
27212 return NULL;
27213 }
27214
27215
27216 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27217 PyObject *resultobj = 0;
27218 wxListItem *arg1 = (wxListItem *) 0 ;
27219 long arg2 ;
27220 void *argp1 = 0 ;
27221 int res1 = 0 ;
27222 long val2 ;
27223 int ecode2 = 0 ;
27224 PyObject *swig_obj[2] ;
27225
27226 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27228 if (!SWIG_IsOK(res1)) {
27229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27230 }
27231 arg1 = reinterpret_cast< wxListItem * >(argp1);
27232 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27233 if (!SWIG_IsOK(ecode2)) {
27234 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27235 }
27236 arg2 = static_cast< long >(val2);
27237 if (arg1) (arg1)->m_stateMask = arg2;
27238
27239 resultobj = SWIG_Py_Void();
27240 return resultobj;
27241 fail:
27242 return NULL;
27243 }
27244
27245
27246 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27247 PyObject *resultobj = 0;
27248 wxListItem *arg1 = (wxListItem *) 0 ;
27249 long result;
27250 void *argp1 = 0 ;
27251 int res1 = 0 ;
27252 PyObject *swig_obj[1] ;
27253
27254 if (!args) SWIG_fail;
27255 swig_obj[0] = args;
27256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27257 if (!SWIG_IsOK(res1)) {
27258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27259 }
27260 arg1 = reinterpret_cast< wxListItem * >(argp1);
27261 result = (long) ((arg1)->m_stateMask);
27262 resultobj = SWIG_From_long(static_cast< long >(result));
27263 return resultobj;
27264 fail:
27265 return NULL;
27266 }
27267
27268
27269 SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27270 PyObject *resultobj = 0;
27271 wxListItem *arg1 = (wxListItem *) 0 ;
27272 wxString *arg2 = (wxString *) 0 ;
27273 void *argp1 = 0 ;
27274 int res1 = 0 ;
27275 bool temp2 = false ;
27276 PyObject *swig_obj[2] ;
27277
27278 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27280 if (!SWIG_IsOK(res1)) {
27281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27282 }
27283 arg1 = reinterpret_cast< wxListItem * >(argp1);
27284 {
27285 arg2 = wxString_in_helper(swig_obj[1]);
27286 if (arg2 == NULL) SWIG_fail;
27287 temp2 = true;
27288 }
27289 if (arg1) (arg1)->m_text = *arg2;
27290
27291 resultobj = SWIG_Py_Void();
27292 {
27293 if (temp2)
27294 delete arg2;
27295 }
27296 return resultobj;
27297 fail:
27298 {
27299 if (temp2)
27300 delete arg2;
27301 }
27302 return NULL;
27303 }
27304
27305
27306 SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27307 PyObject *resultobj = 0;
27308 wxListItem *arg1 = (wxListItem *) 0 ;
27309 wxString *result = 0 ;
27310 void *argp1 = 0 ;
27311 int res1 = 0 ;
27312 PyObject *swig_obj[1] ;
27313
27314 if (!args) SWIG_fail;
27315 swig_obj[0] = args;
27316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27317 if (!SWIG_IsOK(res1)) {
27318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27319 }
27320 arg1 = reinterpret_cast< wxListItem * >(argp1);
27321 result = (wxString *)& ((arg1)->m_text);
27322 {
27323 #if wxUSE_UNICODE
27324 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27325 #else
27326 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27327 #endif
27328 }
27329 return resultobj;
27330 fail:
27331 return NULL;
27332 }
27333
27334
27335 SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27336 PyObject *resultobj = 0;
27337 wxListItem *arg1 = (wxListItem *) 0 ;
27338 int arg2 ;
27339 void *argp1 = 0 ;
27340 int res1 = 0 ;
27341 int val2 ;
27342 int ecode2 = 0 ;
27343 PyObject *swig_obj[2] ;
27344
27345 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27347 if (!SWIG_IsOK(res1)) {
27348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27349 }
27350 arg1 = reinterpret_cast< wxListItem * >(argp1);
27351 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27352 if (!SWIG_IsOK(ecode2)) {
27353 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27354 }
27355 arg2 = static_cast< int >(val2);
27356 if (arg1) (arg1)->m_image = arg2;
27357
27358 resultobj = SWIG_Py_Void();
27359 return resultobj;
27360 fail:
27361 return NULL;
27362 }
27363
27364
27365 SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27366 PyObject *resultobj = 0;
27367 wxListItem *arg1 = (wxListItem *) 0 ;
27368 int result;
27369 void *argp1 = 0 ;
27370 int res1 = 0 ;
27371 PyObject *swig_obj[1] ;
27372
27373 if (!args) SWIG_fail;
27374 swig_obj[0] = args;
27375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27376 if (!SWIG_IsOK(res1)) {
27377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27378 }
27379 arg1 = reinterpret_cast< wxListItem * >(argp1);
27380 result = (int) ((arg1)->m_image);
27381 resultobj = SWIG_From_int(static_cast< int >(result));
27382 return resultobj;
27383 fail:
27384 return NULL;
27385 }
27386
27387
27388 SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27389 PyObject *resultobj = 0;
27390 wxListItem *arg1 = (wxListItem *) 0 ;
27391 long arg2 ;
27392 void *argp1 = 0 ;
27393 int res1 = 0 ;
27394 long val2 ;
27395 int ecode2 = 0 ;
27396 PyObject *swig_obj[2] ;
27397
27398 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27400 if (!SWIG_IsOK(res1)) {
27401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27402 }
27403 arg1 = reinterpret_cast< wxListItem * >(argp1);
27404 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27405 if (!SWIG_IsOK(ecode2)) {
27406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27407 }
27408 arg2 = static_cast< long >(val2);
27409 if (arg1) (arg1)->m_data = arg2;
27410
27411 resultobj = SWIG_Py_Void();
27412 return resultobj;
27413 fail:
27414 return NULL;
27415 }
27416
27417
27418 SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27419 PyObject *resultobj = 0;
27420 wxListItem *arg1 = (wxListItem *) 0 ;
27421 long result;
27422 void *argp1 = 0 ;
27423 int res1 = 0 ;
27424 PyObject *swig_obj[1] ;
27425
27426 if (!args) SWIG_fail;
27427 swig_obj[0] = args;
27428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27429 if (!SWIG_IsOK(res1)) {
27430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27431 }
27432 arg1 = reinterpret_cast< wxListItem * >(argp1);
27433 result = (long) ((arg1)->m_data);
27434 resultobj = SWIG_From_long(static_cast< long >(result));
27435 return resultobj;
27436 fail:
27437 return NULL;
27438 }
27439
27440
27441 SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27442 PyObject *resultobj = 0;
27443 wxListItem *arg1 = (wxListItem *) 0 ;
27444 int arg2 ;
27445 void *argp1 = 0 ;
27446 int res1 = 0 ;
27447 int val2 ;
27448 int ecode2 = 0 ;
27449 PyObject *swig_obj[2] ;
27450
27451 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27453 if (!SWIG_IsOK(res1)) {
27454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27455 }
27456 arg1 = reinterpret_cast< wxListItem * >(argp1);
27457 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27458 if (!SWIG_IsOK(ecode2)) {
27459 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27460 }
27461 arg2 = static_cast< int >(val2);
27462 if (arg1) (arg1)->m_format = arg2;
27463
27464 resultobj = SWIG_Py_Void();
27465 return resultobj;
27466 fail:
27467 return NULL;
27468 }
27469
27470
27471 SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27472 PyObject *resultobj = 0;
27473 wxListItem *arg1 = (wxListItem *) 0 ;
27474 int result;
27475 void *argp1 = 0 ;
27476 int res1 = 0 ;
27477 PyObject *swig_obj[1] ;
27478
27479 if (!args) SWIG_fail;
27480 swig_obj[0] = args;
27481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27482 if (!SWIG_IsOK(res1)) {
27483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27484 }
27485 arg1 = reinterpret_cast< wxListItem * >(argp1);
27486 result = (int) ((arg1)->m_format);
27487 resultobj = SWIG_From_int(static_cast< int >(result));
27488 return resultobj;
27489 fail:
27490 return NULL;
27491 }
27492
27493
27494 SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27495 PyObject *resultobj = 0;
27496 wxListItem *arg1 = (wxListItem *) 0 ;
27497 int arg2 ;
27498 void *argp1 = 0 ;
27499 int res1 = 0 ;
27500 int val2 ;
27501 int ecode2 = 0 ;
27502 PyObject *swig_obj[2] ;
27503
27504 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27506 if (!SWIG_IsOK(res1)) {
27507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27508 }
27509 arg1 = reinterpret_cast< wxListItem * >(argp1);
27510 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27511 if (!SWIG_IsOK(ecode2)) {
27512 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27513 }
27514 arg2 = static_cast< int >(val2);
27515 if (arg1) (arg1)->m_width = arg2;
27516
27517 resultobj = SWIG_Py_Void();
27518 return resultobj;
27519 fail:
27520 return NULL;
27521 }
27522
27523
27524 SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27525 PyObject *resultobj = 0;
27526 wxListItem *arg1 = (wxListItem *) 0 ;
27527 int result;
27528 void *argp1 = 0 ;
27529 int res1 = 0 ;
27530 PyObject *swig_obj[1] ;
27531
27532 if (!args) SWIG_fail;
27533 swig_obj[0] = args;
27534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27535 if (!SWIG_IsOK(res1)) {
27536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27537 }
27538 arg1 = reinterpret_cast< wxListItem * >(argp1);
27539 result = (int) ((arg1)->m_width);
27540 resultobj = SWIG_From_int(static_cast< int >(result));
27541 return resultobj;
27542 fail:
27543 return NULL;
27544 }
27545
27546
27547 SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27548 PyObject *obj;
27549 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27550 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27551 return SWIG_Py_Void();
27552 }
27553
27554 SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27555 return SWIG_Python_InitShadowInstance(args);
27556 }
27557
27558 SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27559 PyObject *resultobj = 0;
27560 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27561 int arg2 = (int) 0 ;
27562 wxListEvent *result = 0 ;
27563 int val1 ;
27564 int ecode1 = 0 ;
27565 int val2 ;
27566 int ecode2 = 0 ;
27567 PyObject * obj0 = 0 ;
27568 PyObject * obj1 = 0 ;
27569 char * kwnames[] = {
27570 (char *) "commandType",(char *) "id", NULL
27571 };
27572
27573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27574 if (obj0) {
27575 ecode1 = SWIG_AsVal_int(obj0, &val1);
27576 if (!SWIG_IsOK(ecode1)) {
27577 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
27578 }
27579 arg1 = static_cast< wxEventType >(val1);
27580 }
27581 if (obj1) {
27582 ecode2 = SWIG_AsVal_int(obj1, &val2);
27583 if (!SWIG_IsOK(ecode2)) {
27584 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
27585 }
27586 arg2 = static_cast< int >(val2);
27587 }
27588 {
27589 PyThreadState* __tstate = wxPyBeginAllowThreads();
27590 result = (wxListEvent *)new wxListEvent(arg1,arg2);
27591 wxPyEndAllowThreads(__tstate);
27592 if (PyErr_Occurred()) SWIG_fail;
27593 }
27594 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
27595 return resultobj;
27596 fail:
27597 return NULL;
27598 }
27599
27600
27601 SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27602 PyObject *resultobj = 0;
27603 wxListEvent *arg1 = (wxListEvent *) 0 ;
27604 int arg2 ;
27605 void *argp1 = 0 ;
27606 int res1 = 0 ;
27607 int val2 ;
27608 int ecode2 = 0 ;
27609 PyObject *swig_obj[2] ;
27610
27611 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
27612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27613 if (!SWIG_IsOK(res1)) {
27614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27615 }
27616 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27617 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27618 if (!SWIG_IsOK(ecode2)) {
27619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
27620 }
27621 arg2 = static_cast< int >(val2);
27622 if (arg1) (arg1)->m_code = arg2;
27623
27624 resultobj = SWIG_Py_Void();
27625 return resultobj;
27626 fail:
27627 return NULL;
27628 }
27629
27630
27631 SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27632 PyObject *resultobj = 0;
27633 wxListEvent *arg1 = (wxListEvent *) 0 ;
27634 int result;
27635 void *argp1 = 0 ;
27636 int res1 = 0 ;
27637 PyObject *swig_obj[1] ;
27638
27639 if (!args) SWIG_fail;
27640 swig_obj[0] = args;
27641 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27642 if (!SWIG_IsOK(res1)) {
27643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27644 }
27645 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27646 result = (int) ((arg1)->m_code);
27647 resultobj = SWIG_From_int(static_cast< int >(result));
27648 return resultobj;
27649 fail:
27650 return NULL;
27651 }
27652
27653
27654 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27655 PyObject *resultobj = 0;
27656 wxListEvent *arg1 = (wxListEvent *) 0 ;
27657 long arg2 ;
27658 void *argp1 = 0 ;
27659 int res1 = 0 ;
27660 long val2 ;
27661 int ecode2 = 0 ;
27662 PyObject *swig_obj[2] ;
27663
27664 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
27665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27666 if (!SWIG_IsOK(res1)) {
27667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27668 }
27669 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27670 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27671 if (!SWIG_IsOK(ecode2)) {
27672 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
27673 }
27674 arg2 = static_cast< long >(val2);
27675 if (arg1) (arg1)->m_oldItemIndex = arg2;
27676
27677 resultobj = SWIG_Py_Void();
27678 return resultobj;
27679 fail:
27680 return NULL;
27681 }
27682
27683
27684 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27685 PyObject *resultobj = 0;
27686 wxListEvent *arg1 = (wxListEvent *) 0 ;
27687 long result;
27688 void *argp1 = 0 ;
27689 int res1 = 0 ;
27690 PyObject *swig_obj[1] ;
27691
27692 if (!args) SWIG_fail;
27693 swig_obj[0] = args;
27694 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27695 if (!SWIG_IsOK(res1)) {
27696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27697 }
27698 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27699 result = (long) ((arg1)->m_oldItemIndex);
27700 resultobj = SWIG_From_long(static_cast< long >(result));
27701 return resultobj;
27702 fail:
27703 return NULL;
27704 }
27705
27706
27707 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27708 PyObject *resultobj = 0;
27709 wxListEvent *arg1 = (wxListEvent *) 0 ;
27710 long arg2 ;
27711 void *argp1 = 0 ;
27712 int res1 = 0 ;
27713 long val2 ;
27714 int ecode2 = 0 ;
27715 PyObject *swig_obj[2] ;
27716
27717 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
27718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27719 if (!SWIG_IsOK(res1)) {
27720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27721 }
27722 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27723 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27724 if (!SWIG_IsOK(ecode2)) {
27725 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
27726 }
27727 arg2 = static_cast< long >(val2);
27728 if (arg1) (arg1)->m_itemIndex = arg2;
27729
27730 resultobj = SWIG_Py_Void();
27731 return resultobj;
27732 fail:
27733 return NULL;
27734 }
27735
27736
27737 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27738 PyObject *resultobj = 0;
27739 wxListEvent *arg1 = (wxListEvent *) 0 ;
27740 long result;
27741 void *argp1 = 0 ;
27742 int res1 = 0 ;
27743 PyObject *swig_obj[1] ;
27744
27745 if (!args) SWIG_fail;
27746 swig_obj[0] = args;
27747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27748 if (!SWIG_IsOK(res1)) {
27749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27750 }
27751 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27752 result = (long) ((arg1)->m_itemIndex);
27753 resultobj = SWIG_From_long(static_cast< long >(result));
27754 return resultobj;
27755 fail:
27756 return NULL;
27757 }
27758
27759
27760 SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27761 PyObject *resultobj = 0;
27762 wxListEvent *arg1 = (wxListEvent *) 0 ;
27763 int arg2 ;
27764 void *argp1 = 0 ;
27765 int res1 = 0 ;
27766 int val2 ;
27767 int ecode2 = 0 ;
27768 PyObject *swig_obj[2] ;
27769
27770 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
27771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27772 if (!SWIG_IsOK(res1)) {
27773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27774 }
27775 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27776 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27777 if (!SWIG_IsOK(ecode2)) {
27778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
27779 }
27780 arg2 = static_cast< int >(val2);
27781 if (arg1) (arg1)->m_col = arg2;
27782
27783 resultobj = SWIG_Py_Void();
27784 return resultobj;
27785 fail:
27786 return NULL;
27787 }
27788
27789
27790 SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27791 PyObject *resultobj = 0;
27792 wxListEvent *arg1 = (wxListEvent *) 0 ;
27793 int result;
27794 void *argp1 = 0 ;
27795 int res1 = 0 ;
27796 PyObject *swig_obj[1] ;
27797
27798 if (!args) SWIG_fail;
27799 swig_obj[0] = args;
27800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27801 if (!SWIG_IsOK(res1)) {
27802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27803 }
27804 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27805 result = (int) ((arg1)->m_col);
27806 resultobj = SWIG_From_int(static_cast< int >(result));
27807 return resultobj;
27808 fail:
27809 return NULL;
27810 }
27811
27812
27813 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27814 PyObject *resultobj = 0;
27815 wxListEvent *arg1 = (wxListEvent *) 0 ;
27816 wxPoint *arg2 = (wxPoint *) 0 ;
27817 void *argp1 = 0 ;
27818 int res1 = 0 ;
27819 void *argp2 = 0 ;
27820 int res2 = 0 ;
27821 PyObject *swig_obj[2] ;
27822
27823 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
27824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27825 if (!SWIG_IsOK(res1)) {
27826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27827 }
27828 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27829 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
27830 if (!SWIG_IsOK(res2)) {
27831 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
27832 }
27833 arg2 = reinterpret_cast< wxPoint * >(argp2);
27834 if (arg1) (arg1)->m_pointDrag = *arg2;
27835
27836 resultobj = SWIG_Py_Void();
27837 return resultobj;
27838 fail:
27839 return NULL;
27840 }
27841
27842
27843 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27844 PyObject *resultobj = 0;
27845 wxListEvent *arg1 = (wxListEvent *) 0 ;
27846 wxPoint *result = 0 ;
27847 void *argp1 = 0 ;
27848 int res1 = 0 ;
27849 PyObject *swig_obj[1] ;
27850
27851 if (!args) SWIG_fail;
27852 swig_obj[0] = args;
27853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27854 if (!SWIG_IsOK(res1)) {
27855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27856 }
27857 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27858 result = (wxPoint *)& ((arg1)->m_pointDrag);
27859 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
27860 return resultobj;
27861 fail:
27862 return NULL;
27863 }
27864
27865
27866 SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27867 PyObject *resultobj = 0;
27868 wxListEvent *arg1 = (wxListEvent *) 0 ;
27869 wxListItem *result = 0 ;
27870 void *argp1 = 0 ;
27871 int res1 = 0 ;
27872 PyObject *swig_obj[1] ;
27873
27874 if (!args) SWIG_fail;
27875 swig_obj[0] = args;
27876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27877 if (!SWIG_IsOK(res1)) {
27878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27879 }
27880 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27881 result = (wxListItem *)& ((arg1)->m_item);
27882 {
27883 resultobj = wxPyMake_wxObject(result, (bool)0);
27884 }
27885 return resultobj;
27886 fail:
27887 return NULL;
27888 }
27889
27890
27891 SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27892 PyObject *resultobj = 0;
27893 wxListEvent *arg1 = (wxListEvent *) 0 ;
27894 int result;
27895 void *argp1 = 0 ;
27896 int res1 = 0 ;
27897 PyObject *swig_obj[1] ;
27898
27899 if (!args) SWIG_fail;
27900 swig_obj[0] = args;
27901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27902 if (!SWIG_IsOK(res1)) {
27903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
27904 }
27905 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27906 {
27907 PyThreadState* __tstate = wxPyBeginAllowThreads();
27908 result = (int)(arg1)->GetKeyCode();
27909 wxPyEndAllowThreads(__tstate);
27910 if (PyErr_Occurred()) SWIG_fail;
27911 }
27912 resultobj = SWIG_From_int(static_cast< int >(result));
27913 return resultobj;
27914 fail:
27915 return NULL;
27916 }
27917
27918
27919 SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27920 PyObject *resultobj = 0;
27921 wxListEvent *arg1 = (wxListEvent *) 0 ;
27922 long result;
27923 void *argp1 = 0 ;
27924 int res1 = 0 ;
27925 PyObject *swig_obj[1] ;
27926
27927 if (!args) SWIG_fail;
27928 swig_obj[0] = args;
27929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27930 if (!SWIG_IsOK(res1)) {
27931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
27932 }
27933 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27934 {
27935 PyThreadState* __tstate = wxPyBeginAllowThreads();
27936 result = (long)(arg1)->GetIndex();
27937 wxPyEndAllowThreads(__tstate);
27938 if (PyErr_Occurred()) SWIG_fail;
27939 }
27940 resultobj = SWIG_From_long(static_cast< long >(result));
27941 return resultobj;
27942 fail:
27943 return NULL;
27944 }
27945
27946
27947 SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27948 PyObject *resultobj = 0;
27949 wxListEvent *arg1 = (wxListEvent *) 0 ;
27950 int result;
27951 void *argp1 = 0 ;
27952 int res1 = 0 ;
27953 PyObject *swig_obj[1] ;
27954
27955 if (!args) SWIG_fail;
27956 swig_obj[0] = args;
27957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27958 if (!SWIG_IsOK(res1)) {
27959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
27960 }
27961 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27962 {
27963 PyThreadState* __tstate = wxPyBeginAllowThreads();
27964 result = (int)(arg1)->GetColumn();
27965 wxPyEndAllowThreads(__tstate);
27966 if (PyErr_Occurred()) SWIG_fail;
27967 }
27968 resultobj = SWIG_From_int(static_cast< int >(result));
27969 return resultobj;
27970 fail:
27971 return NULL;
27972 }
27973
27974
27975 SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27976 PyObject *resultobj = 0;
27977 wxListEvent *arg1 = (wxListEvent *) 0 ;
27978 wxPoint result;
27979 void *argp1 = 0 ;
27980 int res1 = 0 ;
27981 PyObject *swig_obj[1] ;
27982
27983 if (!args) SWIG_fail;
27984 swig_obj[0] = args;
27985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27986 if (!SWIG_IsOK(res1)) {
27987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
27988 }
27989 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27990 {
27991 PyThreadState* __tstate = wxPyBeginAllowThreads();
27992 result = (arg1)->GetPoint();
27993 wxPyEndAllowThreads(__tstate);
27994 if (PyErr_Occurred()) SWIG_fail;
27995 }
27996 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
27997 return resultobj;
27998 fail:
27999 return NULL;
28000 }
28001
28002
28003 SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28004 PyObject *resultobj = 0;
28005 wxListEvent *arg1 = (wxListEvent *) 0 ;
28006 wxString *result = 0 ;
28007 void *argp1 = 0 ;
28008 int res1 = 0 ;
28009 PyObject *swig_obj[1] ;
28010
28011 if (!args) SWIG_fail;
28012 swig_obj[0] = args;
28013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28014 if (!SWIG_IsOK(res1)) {
28015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28016 }
28017 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28018 {
28019 PyThreadState* __tstate = wxPyBeginAllowThreads();
28020 {
28021 wxString const &_result_ref = (arg1)->GetLabel();
28022 result = (wxString *) &_result_ref;
28023 }
28024 wxPyEndAllowThreads(__tstate);
28025 if (PyErr_Occurred()) SWIG_fail;
28026 }
28027 {
28028 #if wxUSE_UNICODE
28029 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28030 #else
28031 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28032 #endif
28033 }
28034 return resultobj;
28035 fail:
28036 return NULL;
28037 }
28038
28039
28040 SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28041 PyObject *resultobj = 0;
28042 wxListEvent *arg1 = (wxListEvent *) 0 ;
28043 wxString *result = 0 ;
28044 void *argp1 = 0 ;
28045 int res1 = 0 ;
28046 PyObject *swig_obj[1] ;
28047
28048 if (!args) SWIG_fail;
28049 swig_obj[0] = args;
28050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28051 if (!SWIG_IsOK(res1)) {
28052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28053 }
28054 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28055 {
28056 PyThreadState* __tstate = wxPyBeginAllowThreads();
28057 {
28058 wxString const &_result_ref = (arg1)->GetText();
28059 result = (wxString *) &_result_ref;
28060 }
28061 wxPyEndAllowThreads(__tstate);
28062 if (PyErr_Occurred()) SWIG_fail;
28063 }
28064 {
28065 #if wxUSE_UNICODE
28066 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28067 #else
28068 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28069 #endif
28070 }
28071 return resultobj;
28072 fail:
28073 return NULL;
28074 }
28075
28076
28077 SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28078 PyObject *resultobj = 0;
28079 wxListEvent *arg1 = (wxListEvent *) 0 ;
28080 int result;
28081 void *argp1 = 0 ;
28082 int res1 = 0 ;
28083 PyObject *swig_obj[1] ;
28084
28085 if (!args) SWIG_fail;
28086 swig_obj[0] = args;
28087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28088 if (!SWIG_IsOK(res1)) {
28089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28090 }
28091 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28092 {
28093 PyThreadState* __tstate = wxPyBeginAllowThreads();
28094 result = (int)(arg1)->GetImage();
28095 wxPyEndAllowThreads(__tstate);
28096 if (PyErr_Occurred()) SWIG_fail;
28097 }
28098 resultobj = SWIG_From_int(static_cast< int >(result));
28099 return resultobj;
28100 fail:
28101 return NULL;
28102 }
28103
28104
28105 SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28106 PyObject *resultobj = 0;
28107 wxListEvent *arg1 = (wxListEvent *) 0 ;
28108 long result;
28109 void *argp1 = 0 ;
28110 int res1 = 0 ;
28111 PyObject *swig_obj[1] ;
28112
28113 if (!args) SWIG_fail;
28114 swig_obj[0] = args;
28115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28116 if (!SWIG_IsOK(res1)) {
28117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28118 }
28119 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28120 {
28121 PyThreadState* __tstate = wxPyBeginAllowThreads();
28122 result = (long)(arg1)->GetData();
28123 wxPyEndAllowThreads(__tstate);
28124 if (PyErr_Occurred()) SWIG_fail;
28125 }
28126 resultobj = SWIG_From_long(static_cast< long >(result));
28127 return resultobj;
28128 fail:
28129 return NULL;
28130 }
28131
28132
28133 SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28134 PyObject *resultobj = 0;
28135 wxListEvent *arg1 = (wxListEvent *) 0 ;
28136 long result;
28137 void *argp1 = 0 ;
28138 int res1 = 0 ;
28139 PyObject *swig_obj[1] ;
28140
28141 if (!args) SWIG_fail;
28142 swig_obj[0] = args;
28143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28144 if (!SWIG_IsOK(res1)) {
28145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28146 }
28147 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28148 {
28149 PyThreadState* __tstate = wxPyBeginAllowThreads();
28150 result = (long)(arg1)->GetMask();
28151 wxPyEndAllowThreads(__tstate);
28152 if (PyErr_Occurred()) SWIG_fail;
28153 }
28154 resultobj = SWIG_From_long(static_cast< long >(result));
28155 return resultobj;
28156 fail:
28157 return NULL;
28158 }
28159
28160
28161 SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28162 PyObject *resultobj = 0;
28163 wxListEvent *arg1 = (wxListEvent *) 0 ;
28164 wxListItem *result = 0 ;
28165 void *argp1 = 0 ;
28166 int res1 = 0 ;
28167 PyObject *swig_obj[1] ;
28168
28169 if (!args) SWIG_fail;
28170 swig_obj[0] = args;
28171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28172 if (!SWIG_IsOK(res1)) {
28173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28174 }
28175 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28176 {
28177 PyThreadState* __tstate = wxPyBeginAllowThreads();
28178 {
28179 wxListItem const &_result_ref = (arg1)->GetItem();
28180 result = (wxListItem *) &_result_ref;
28181 }
28182 wxPyEndAllowThreads(__tstate);
28183 if (PyErr_Occurred()) SWIG_fail;
28184 }
28185 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28186 return resultobj;
28187 fail:
28188 return NULL;
28189 }
28190
28191
28192 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28193 PyObject *resultobj = 0;
28194 wxListEvent *arg1 = (wxListEvent *) 0 ;
28195 long result;
28196 void *argp1 = 0 ;
28197 int res1 = 0 ;
28198 PyObject *swig_obj[1] ;
28199
28200 if (!args) SWIG_fail;
28201 swig_obj[0] = args;
28202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28203 if (!SWIG_IsOK(res1)) {
28204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28205 }
28206 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28207 {
28208 PyThreadState* __tstate = wxPyBeginAllowThreads();
28209 result = (long)(arg1)->GetCacheFrom();
28210 wxPyEndAllowThreads(__tstate);
28211 if (PyErr_Occurred()) SWIG_fail;
28212 }
28213 resultobj = SWIG_From_long(static_cast< long >(result));
28214 return resultobj;
28215 fail:
28216 return NULL;
28217 }
28218
28219
28220 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28221 PyObject *resultobj = 0;
28222 wxListEvent *arg1 = (wxListEvent *) 0 ;
28223 long result;
28224 void *argp1 = 0 ;
28225 int res1 = 0 ;
28226 PyObject *swig_obj[1] ;
28227
28228 if (!args) SWIG_fail;
28229 swig_obj[0] = args;
28230 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28231 if (!SWIG_IsOK(res1)) {
28232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28233 }
28234 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28235 {
28236 PyThreadState* __tstate = wxPyBeginAllowThreads();
28237 result = (long)(arg1)->GetCacheTo();
28238 wxPyEndAllowThreads(__tstate);
28239 if (PyErr_Occurred()) SWIG_fail;
28240 }
28241 resultobj = SWIG_From_long(static_cast< long >(result));
28242 return resultobj;
28243 fail:
28244 return NULL;
28245 }
28246
28247
28248 SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28249 PyObject *resultobj = 0;
28250 wxListEvent *arg1 = (wxListEvent *) 0 ;
28251 bool result;
28252 void *argp1 = 0 ;
28253 int res1 = 0 ;
28254 PyObject *swig_obj[1] ;
28255
28256 if (!args) SWIG_fail;
28257 swig_obj[0] = args;
28258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28259 if (!SWIG_IsOK(res1)) {
28260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28261 }
28262 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28263 {
28264 PyThreadState* __tstate = wxPyBeginAllowThreads();
28265 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28266 wxPyEndAllowThreads(__tstate);
28267 if (PyErr_Occurred()) SWIG_fail;
28268 }
28269 {
28270 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28271 }
28272 return resultobj;
28273 fail:
28274 return NULL;
28275 }
28276
28277
28278 SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28279 PyObject *resultobj = 0;
28280 wxListEvent *arg1 = (wxListEvent *) 0 ;
28281 bool arg2 ;
28282 void *argp1 = 0 ;
28283 int res1 = 0 ;
28284 bool val2 ;
28285 int ecode2 = 0 ;
28286 PyObject * obj0 = 0 ;
28287 PyObject * obj1 = 0 ;
28288 char * kwnames[] = {
28289 (char *) "self",(char *) "editCancelled", NULL
28290 };
28291
28292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28294 if (!SWIG_IsOK(res1)) {
28295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28296 }
28297 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28298 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28299 if (!SWIG_IsOK(ecode2)) {
28300 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28301 }
28302 arg2 = static_cast< bool >(val2);
28303 {
28304 PyThreadState* __tstate = wxPyBeginAllowThreads();
28305 (arg1)->SetEditCanceled(arg2);
28306 wxPyEndAllowThreads(__tstate);
28307 if (PyErr_Occurred()) SWIG_fail;
28308 }
28309 resultobj = SWIG_Py_Void();
28310 return resultobj;
28311 fail:
28312 return NULL;
28313 }
28314
28315
28316 SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28317 PyObject *obj;
28318 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28319 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28320 return SWIG_Py_Void();
28321 }
28322
28323 SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28324 return SWIG_Python_InitShadowInstance(args);
28325 }
28326
28327 SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28328 PyObject *resultobj = 0;
28329 wxWindow *arg1 = (wxWindow *) 0 ;
28330 int arg2 = (int) -1 ;
28331 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28332 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28333 wxSize const &arg4_defvalue = wxDefaultSize ;
28334 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28335 long arg5 = (long) wxLC_ICON ;
28336 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28337 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28338 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28339 wxString *arg7 = (wxString *) &arg7_defvalue ;
28340 wxPyListCtrl *result = 0 ;
28341 void *argp1 = 0 ;
28342 int res1 = 0 ;
28343 int val2 ;
28344 int ecode2 = 0 ;
28345 wxPoint temp3 ;
28346 wxSize temp4 ;
28347 long val5 ;
28348 int ecode5 = 0 ;
28349 void *argp6 = 0 ;
28350 int res6 = 0 ;
28351 bool temp7 = false ;
28352 PyObject * obj0 = 0 ;
28353 PyObject * obj1 = 0 ;
28354 PyObject * obj2 = 0 ;
28355 PyObject * obj3 = 0 ;
28356 PyObject * obj4 = 0 ;
28357 PyObject * obj5 = 0 ;
28358 PyObject * obj6 = 0 ;
28359 char * kwnames[] = {
28360 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28361 };
28362
28363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28365 if (!SWIG_IsOK(res1)) {
28366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28367 }
28368 arg1 = reinterpret_cast< wxWindow * >(argp1);
28369 if (obj1) {
28370 ecode2 = SWIG_AsVal_int(obj1, &val2);
28371 if (!SWIG_IsOK(ecode2)) {
28372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28373 }
28374 arg2 = static_cast< int >(val2);
28375 }
28376 if (obj2) {
28377 {
28378 arg3 = &temp3;
28379 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28380 }
28381 }
28382 if (obj3) {
28383 {
28384 arg4 = &temp4;
28385 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28386 }
28387 }
28388 if (obj4) {
28389 ecode5 = SWIG_AsVal_long(obj4, &val5);
28390 if (!SWIG_IsOK(ecode5)) {
28391 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28392 }
28393 arg5 = static_cast< long >(val5);
28394 }
28395 if (obj5) {
28396 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28397 if (!SWIG_IsOK(res6)) {
28398 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28399 }
28400 if (!argp6) {
28401 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28402 }
28403 arg6 = reinterpret_cast< wxValidator * >(argp6);
28404 }
28405 if (obj6) {
28406 {
28407 arg7 = wxString_in_helper(obj6);
28408 if (arg7 == NULL) SWIG_fail;
28409 temp7 = true;
28410 }
28411 }
28412 {
28413 if (!wxPyCheckForApp()) SWIG_fail;
28414 PyThreadState* __tstate = wxPyBeginAllowThreads();
28415 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28416 wxPyEndAllowThreads(__tstate);
28417 if (PyErr_Occurred()) SWIG_fail;
28418 }
28419 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28420 {
28421 if (temp7)
28422 delete arg7;
28423 }
28424 return resultobj;
28425 fail:
28426 {
28427 if (temp7)
28428 delete arg7;
28429 }
28430 return NULL;
28431 }
28432
28433
28434 SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28435 PyObject *resultobj = 0;
28436 wxPyListCtrl *result = 0 ;
28437
28438 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28439 {
28440 if (!wxPyCheckForApp()) SWIG_fail;
28441 PyThreadState* __tstate = wxPyBeginAllowThreads();
28442 result = (wxPyListCtrl *)new wxPyListCtrl();
28443 wxPyEndAllowThreads(__tstate);
28444 if (PyErr_Occurred()) SWIG_fail;
28445 }
28446 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28447 return resultobj;
28448 fail:
28449 return NULL;
28450 }
28451
28452
28453 SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28454 PyObject *resultobj = 0;
28455 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28456 wxWindow *arg2 = (wxWindow *) 0 ;
28457 int arg3 = (int) -1 ;
28458 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28459 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28460 wxSize const &arg5_defvalue = wxDefaultSize ;
28461 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28462 long arg6 = (long) wxLC_ICON ;
28463 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28464 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28465 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28466 wxString *arg8 = (wxString *) &arg8_defvalue ;
28467 bool result;
28468 void *argp1 = 0 ;
28469 int res1 = 0 ;
28470 void *argp2 = 0 ;
28471 int res2 = 0 ;
28472 int val3 ;
28473 int ecode3 = 0 ;
28474 wxPoint temp4 ;
28475 wxSize temp5 ;
28476 long val6 ;
28477 int ecode6 = 0 ;
28478 void *argp7 = 0 ;
28479 int res7 = 0 ;
28480 bool temp8 = false ;
28481 PyObject * obj0 = 0 ;
28482 PyObject * obj1 = 0 ;
28483 PyObject * obj2 = 0 ;
28484 PyObject * obj3 = 0 ;
28485 PyObject * obj4 = 0 ;
28486 PyObject * obj5 = 0 ;
28487 PyObject * obj6 = 0 ;
28488 PyObject * obj7 = 0 ;
28489 char * kwnames[] = {
28490 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28491 };
28492
28493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28495 if (!SWIG_IsOK(res1)) {
28496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28497 }
28498 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28499 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28500 if (!SWIG_IsOK(res2)) {
28501 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28502 }
28503 arg2 = reinterpret_cast< wxWindow * >(argp2);
28504 if (obj2) {
28505 ecode3 = SWIG_AsVal_int(obj2, &val3);
28506 if (!SWIG_IsOK(ecode3)) {
28507 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28508 }
28509 arg3 = static_cast< int >(val3);
28510 }
28511 if (obj3) {
28512 {
28513 arg4 = &temp4;
28514 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28515 }
28516 }
28517 if (obj4) {
28518 {
28519 arg5 = &temp5;
28520 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28521 }
28522 }
28523 if (obj5) {
28524 ecode6 = SWIG_AsVal_long(obj5, &val6);
28525 if (!SWIG_IsOK(ecode6)) {
28526 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28527 }
28528 arg6 = static_cast< long >(val6);
28529 }
28530 if (obj6) {
28531 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28532 if (!SWIG_IsOK(res7)) {
28533 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28534 }
28535 if (!argp7) {
28536 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28537 }
28538 arg7 = reinterpret_cast< wxValidator * >(argp7);
28539 }
28540 if (obj7) {
28541 {
28542 arg8 = wxString_in_helper(obj7);
28543 if (arg8 == NULL) SWIG_fail;
28544 temp8 = true;
28545 }
28546 }
28547 {
28548 PyThreadState* __tstate = wxPyBeginAllowThreads();
28549 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28550 wxPyEndAllowThreads(__tstate);
28551 if (PyErr_Occurred()) SWIG_fail;
28552 }
28553 {
28554 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28555 }
28556 {
28557 if (temp8)
28558 delete arg8;
28559 }
28560 return resultobj;
28561 fail:
28562 {
28563 if (temp8)
28564 delete arg8;
28565 }
28566 return NULL;
28567 }
28568
28569
28570 SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28571 PyObject *resultobj = 0;
28572 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28573 PyObject *arg2 = (PyObject *) 0 ;
28574 PyObject *arg3 = (PyObject *) 0 ;
28575 void *argp1 = 0 ;
28576 int res1 = 0 ;
28577 PyObject * obj0 = 0 ;
28578 PyObject * obj1 = 0 ;
28579 PyObject * obj2 = 0 ;
28580 char * kwnames[] = {
28581 (char *) "self",(char *) "self",(char *) "_class", NULL
28582 };
28583
28584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28586 if (!SWIG_IsOK(res1)) {
28587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28588 }
28589 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28590 arg2 = obj1;
28591 arg3 = obj2;
28592 {
28593 PyThreadState* __tstate = wxPyBeginAllowThreads();
28594 (arg1)->_setCallbackInfo(arg2,arg3);
28595 wxPyEndAllowThreads(__tstate);
28596 if (PyErr_Occurred()) SWIG_fail;
28597 }
28598 resultobj = SWIG_Py_Void();
28599 return resultobj;
28600 fail:
28601 return NULL;
28602 }
28603
28604
28605 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28606 PyObject *resultobj = 0;
28607 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28608 int arg2 ;
28609 wxListItem *result = 0 ;
28610 void *argp1 = 0 ;
28611 int res1 = 0 ;
28612 int val2 ;
28613 int ecode2 = 0 ;
28614 PyObject * obj0 = 0 ;
28615 PyObject * obj1 = 0 ;
28616 char * kwnames[] = {
28617 (char *) "self",(char *) "col", NULL
28618 };
28619
28620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
28621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28622 if (!SWIG_IsOK(res1)) {
28623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28624 }
28625 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28626 ecode2 = SWIG_AsVal_int(obj1, &val2);
28627 if (!SWIG_IsOK(ecode2)) {
28628 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
28629 }
28630 arg2 = static_cast< int >(val2);
28631 {
28632 PyThreadState* __tstate = wxPyBeginAllowThreads();
28633 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
28634 wxPyEndAllowThreads(__tstate);
28635 if (PyErr_Occurred()) SWIG_fail;
28636 }
28637 {
28638 resultobj = wxPyMake_wxObject(result, (bool)0);
28639 }
28640 return resultobj;
28641 fail:
28642 return NULL;
28643 }
28644
28645
28646 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28647 PyObject *resultobj = 0;
28648 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28649 int arg2 ;
28650 wxListItem *arg3 = 0 ;
28651 bool result;
28652 void *argp1 = 0 ;
28653 int res1 = 0 ;
28654 int val2 ;
28655 int ecode2 = 0 ;
28656 void *argp3 = 0 ;
28657 int res3 = 0 ;
28658 PyObject * obj0 = 0 ;
28659 PyObject * obj1 = 0 ;
28660 PyObject * obj2 = 0 ;
28661 char * kwnames[] = {
28662 (char *) "self",(char *) "col",(char *) "item", NULL
28663 };
28664
28665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28667 if (!SWIG_IsOK(res1)) {
28668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28669 }
28670 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28671 ecode2 = SWIG_AsVal_int(obj1, &val2);
28672 if (!SWIG_IsOK(ecode2)) {
28673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
28674 }
28675 arg2 = static_cast< int >(val2);
28676 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
28677 if (!SWIG_IsOK(res3)) {
28678 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28679 }
28680 if (!argp3) {
28681 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28682 }
28683 arg3 = reinterpret_cast< wxListItem * >(argp3);
28684 {
28685 PyThreadState* __tstate = wxPyBeginAllowThreads();
28686 result = (bool)(arg1)->SetColumn(arg2,*arg3);
28687 wxPyEndAllowThreads(__tstate);
28688 if (PyErr_Occurred()) SWIG_fail;
28689 }
28690 {
28691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28692 }
28693 return resultobj;
28694 fail:
28695 return NULL;
28696 }
28697
28698
28699 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28700 PyObject *resultobj = 0;
28701 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28702 int arg2 ;
28703 int result;
28704 void *argp1 = 0 ;
28705 int res1 = 0 ;
28706 int val2 ;
28707 int ecode2 = 0 ;
28708 PyObject * obj0 = 0 ;
28709 PyObject * obj1 = 0 ;
28710 char * kwnames[] = {
28711 (char *) "self",(char *) "col", NULL
28712 };
28713
28714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
28715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28716 if (!SWIG_IsOK(res1)) {
28717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28718 }
28719 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28720 ecode2 = SWIG_AsVal_int(obj1, &val2);
28721 if (!SWIG_IsOK(ecode2)) {
28722 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28723 }
28724 arg2 = static_cast< int >(val2);
28725 {
28726 PyThreadState* __tstate = wxPyBeginAllowThreads();
28727 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
28728 wxPyEndAllowThreads(__tstate);
28729 if (PyErr_Occurred()) SWIG_fail;
28730 }
28731 resultobj = SWIG_From_int(static_cast< int >(result));
28732 return resultobj;
28733 fail:
28734 return NULL;
28735 }
28736
28737
28738 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28739 PyObject *resultobj = 0;
28740 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28741 int arg2 ;
28742 int arg3 ;
28743 bool result;
28744 void *argp1 = 0 ;
28745 int res1 = 0 ;
28746 int val2 ;
28747 int ecode2 = 0 ;
28748 int val3 ;
28749 int ecode3 = 0 ;
28750 PyObject * obj0 = 0 ;
28751 PyObject * obj1 = 0 ;
28752 PyObject * obj2 = 0 ;
28753 char * kwnames[] = {
28754 (char *) "self",(char *) "col",(char *) "width", NULL
28755 };
28756
28757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28759 if (!SWIG_IsOK(res1)) {
28760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28761 }
28762 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28763 ecode2 = SWIG_AsVal_int(obj1, &val2);
28764 if (!SWIG_IsOK(ecode2)) {
28765 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28766 }
28767 arg2 = static_cast< int >(val2);
28768 ecode3 = SWIG_AsVal_int(obj2, &val3);
28769 if (!SWIG_IsOK(ecode3)) {
28770 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
28771 }
28772 arg3 = static_cast< int >(val3);
28773 {
28774 PyThreadState* __tstate = wxPyBeginAllowThreads();
28775 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
28776 wxPyEndAllowThreads(__tstate);
28777 if (PyErr_Occurred()) SWIG_fail;
28778 }
28779 {
28780 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28781 }
28782 return resultobj;
28783 fail:
28784 return NULL;
28785 }
28786
28787
28788 SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28789 PyObject *resultobj = 0;
28790 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28791 int result;
28792 void *argp1 = 0 ;
28793 int res1 = 0 ;
28794 PyObject *swig_obj[1] ;
28795
28796 if (!args) SWIG_fail;
28797 swig_obj[0] = args;
28798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28799 if (!SWIG_IsOK(res1)) {
28800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28801 }
28802 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28803 {
28804 PyThreadState* __tstate = wxPyBeginAllowThreads();
28805 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
28806 wxPyEndAllowThreads(__tstate);
28807 if (PyErr_Occurred()) SWIG_fail;
28808 }
28809 resultobj = SWIG_From_int(static_cast< int >(result));
28810 return resultobj;
28811 fail:
28812 return NULL;
28813 }
28814
28815
28816 SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28817 PyObject *resultobj = 0;
28818 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28819 wxRect result;
28820 void *argp1 = 0 ;
28821 int res1 = 0 ;
28822 PyObject *swig_obj[1] ;
28823
28824 if (!args) SWIG_fail;
28825 swig_obj[0] = args;
28826 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28827 if (!SWIG_IsOK(res1)) {
28828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28829 }
28830 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28831 {
28832 PyThreadState* __tstate = wxPyBeginAllowThreads();
28833 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
28834 wxPyEndAllowThreads(__tstate);
28835 if (PyErr_Occurred()) SWIG_fail;
28836 }
28837 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
28838 return resultobj;
28839 fail:
28840 return NULL;
28841 }
28842
28843
28844 SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28845 PyObject *resultobj = 0;
28846 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28847 wxTextCtrl *result = 0 ;
28848 void *argp1 = 0 ;
28849 int res1 = 0 ;
28850 PyObject *swig_obj[1] ;
28851
28852 if (!args) SWIG_fail;
28853 swig_obj[0] = args;
28854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28855 if (!SWIG_IsOK(res1)) {
28856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28857 }
28858 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28859 {
28860 PyThreadState* __tstate = wxPyBeginAllowThreads();
28861 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
28862 wxPyEndAllowThreads(__tstate);
28863 if (PyErr_Occurred()) SWIG_fail;
28864 }
28865 {
28866 resultobj = wxPyMake_wxObject(result, 0);
28867 }
28868 return resultobj;
28869 fail:
28870 return NULL;
28871 }
28872
28873
28874 SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28875 PyObject *resultobj = 0;
28876 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28877 long arg2 ;
28878 int arg3 = (int) 0 ;
28879 wxListItem *result = 0 ;
28880 void *argp1 = 0 ;
28881 int res1 = 0 ;
28882 long val2 ;
28883 int ecode2 = 0 ;
28884 int val3 ;
28885 int ecode3 = 0 ;
28886 PyObject * obj0 = 0 ;
28887 PyObject * obj1 = 0 ;
28888 PyObject * obj2 = 0 ;
28889 char * kwnames[] = {
28890 (char *) "self",(char *) "itemId",(char *) "col", NULL
28891 };
28892
28893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28895 if (!SWIG_IsOK(res1)) {
28896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28897 }
28898 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28899 ecode2 = SWIG_AsVal_long(obj1, &val2);
28900 if (!SWIG_IsOK(ecode2)) {
28901 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
28902 }
28903 arg2 = static_cast< long >(val2);
28904 if (obj2) {
28905 ecode3 = SWIG_AsVal_int(obj2, &val3);
28906 if (!SWIG_IsOK(ecode3)) {
28907 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
28908 }
28909 arg3 = static_cast< int >(val3);
28910 }
28911 {
28912 PyThreadState* __tstate = wxPyBeginAllowThreads();
28913 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
28914 wxPyEndAllowThreads(__tstate);
28915 if (PyErr_Occurred()) SWIG_fail;
28916 }
28917 {
28918 resultobj = wxPyMake_wxObject(result, (bool)0);
28919 }
28920 return resultobj;
28921 fail:
28922 return NULL;
28923 }
28924
28925
28926 SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28927 PyObject *resultobj = 0;
28928 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28929 wxListItem *arg2 = 0 ;
28930 bool result;
28931 void *argp1 = 0 ;
28932 int res1 = 0 ;
28933 void *argp2 = 0 ;
28934 int res2 = 0 ;
28935 PyObject * obj0 = 0 ;
28936 PyObject * obj1 = 0 ;
28937 char * kwnames[] = {
28938 (char *) "self",(char *) "info", NULL
28939 };
28940
28941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
28942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28943 if (!SWIG_IsOK(res1)) {
28944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28945 }
28946 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28947 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
28948 if (!SWIG_IsOK(res2)) {
28949 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
28950 }
28951 if (!argp2) {
28952 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
28953 }
28954 arg2 = reinterpret_cast< wxListItem * >(argp2);
28955 {
28956 PyThreadState* __tstate = wxPyBeginAllowThreads();
28957 result = (bool)(arg1)->SetItem(*arg2);
28958 wxPyEndAllowThreads(__tstate);
28959 if (PyErr_Occurred()) SWIG_fail;
28960 }
28961 {
28962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28963 }
28964 return resultobj;
28965 fail:
28966 return NULL;
28967 }
28968
28969
28970 SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28971 PyObject *resultobj = 0;
28972 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28973 long arg2 ;
28974 int arg3 ;
28975 wxString *arg4 = 0 ;
28976 int arg5 = (int) -1 ;
28977 long result;
28978 void *argp1 = 0 ;
28979 int res1 = 0 ;
28980 long val2 ;
28981 int ecode2 = 0 ;
28982 int val3 ;
28983 int ecode3 = 0 ;
28984 bool temp4 = false ;
28985 int val5 ;
28986 int ecode5 = 0 ;
28987 PyObject * obj0 = 0 ;
28988 PyObject * obj1 = 0 ;
28989 PyObject * obj2 = 0 ;
28990 PyObject * obj3 = 0 ;
28991 PyObject * obj4 = 0 ;
28992 char * kwnames[] = {
28993 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
28994 };
28995
28996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28998 if (!SWIG_IsOK(res1)) {
28999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29000 }
29001 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29002 ecode2 = SWIG_AsVal_long(obj1, &val2);
29003 if (!SWIG_IsOK(ecode2)) {
29004 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29005 }
29006 arg2 = static_cast< long >(val2);
29007 ecode3 = SWIG_AsVal_int(obj2, &val3);
29008 if (!SWIG_IsOK(ecode3)) {
29009 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29010 }
29011 arg3 = static_cast< int >(val3);
29012 {
29013 arg4 = wxString_in_helper(obj3);
29014 if (arg4 == NULL) SWIG_fail;
29015 temp4 = true;
29016 }
29017 if (obj4) {
29018 ecode5 = SWIG_AsVal_int(obj4, &val5);
29019 if (!SWIG_IsOK(ecode5)) {
29020 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29021 }
29022 arg5 = static_cast< int >(val5);
29023 }
29024 {
29025 PyThreadState* __tstate = wxPyBeginAllowThreads();
29026 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29027 wxPyEndAllowThreads(__tstate);
29028 if (PyErr_Occurred()) SWIG_fail;
29029 }
29030 resultobj = SWIG_From_long(static_cast< long >(result));
29031 {
29032 if (temp4)
29033 delete arg4;
29034 }
29035 return resultobj;
29036 fail:
29037 {
29038 if (temp4)
29039 delete arg4;
29040 }
29041 return NULL;
29042 }
29043
29044
29045 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29046 PyObject *resultobj = 0;
29047 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29048 long arg2 ;
29049 long arg3 ;
29050 int result;
29051 void *argp1 = 0 ;
29052 int res1 = 0 ;
29053 long val2 ;
29054 int ecode2 = 0 ;
29055 long val3 ;
29056 int ecode3 = 0 ;
29057 PyObject * obj0 = 0 ;
29058 PyObject * obj1 = 0 ;
29059 PyObject * obj2 = 0 ;
29060 char * kwnames[] = {
29061 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29062 };
29063
29064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29066 if (!SWIG_IsOK(res1)) {
29067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29068 }
29069 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29070 ecode2 = SWIG_AsVal_long(obj1, &val2);
29071 if (!SWIG_IsOK(ecode2)) {
29072 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29073 }
29074 arg2 = static_cast< long >(val2);
29075 ecode3 = SWIG_AsVal_long(obj2, &val3);
29076 if (!SWIG_IsOK(ecode3)) {
29077 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29078 }
29079 arg3 = static_cast< long >(val3);
29080 {
29081 PyThreadState* __tstate = wxPyBeginAllowThreads();
29082 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29083 wxPyEndAllowThreads(__tstate);
29084 if (PyErr_Occurred()) SWIG_fail;
29085 }
29086 resultobj = SWIG_From_int(static_cast< int >(result));
29087 return resultobj;
29088 fail:
29089 return NULL;
29090 }
29091
29092
29093 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29094 PyObject *resultobj = 0;
29095 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29096 long arg2 ;
29097 long arg3 ;
29098 long arg4 ;
29099 bool result;
29100 void *argp1 = 0 ;
29101 int res1 = 0 ;
29102 long val2 ;
29103 int ecode2 = 0 ;
29104 long val3 ;
29105 int ecode3 = 0 ;
29106 long val4 ;
29107 int ecode4 = 0 ;
29108 PyObject * obj0 = 0 ;
29109 PyObject * obj1 = 0 ;
29110 PyObject * obj2 = 0 ;
29111 PyObject * obj3 = 0 ;
29112 char * kwnames[] = {
29113 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29114 };
29115
29116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29118 if (!SWIG_IsOK(res1)) {
29119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29120 }
29121 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29122 ecode2 = SWIG_AsVal_long(obj1, &val2);
29123 if (!SWIG_IsOK(ecode2)) {
29124 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29125 }
29126 arg2 = static_cast< long >(val2);
29127 ecode3 = SWIG_AsVal_long(obj2, &val3);
29128 if (!SWIG_IsOK(ecode3)) {
29129 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29130 }
29131 arg3 = static_cast< long >(val3);
29132 ecode4 = SWIG_AsVal_long(obj3, &val4);
29133 if (!SWIG_IsOK(ecode4)) {
29134 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29135 }
29136 arg4 = static_cast< long >(val4);
29137 {
29138 PyThreadState* __tstate = wxPyBeginAllowThreads();
29139 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29140 wxPyEndAllowThreads(__tstate);
29141 if (PyErr_Occurred()) SWIG_fail;
29142 }
29143 {
29144 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29145 }
29146 return resultobj;
29147 fail:
29148 return NULL;
29149 }
29150
29151
29152 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29153 PyObject *resultobj = 0;
29154 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29155 long arg2 ;
29156 int arg3 ;
29157 int arg4 = (int) -1 ;
29158 bool result;
29159 void *argp1 = 0 ;
29160 int res1 = 0 ;
29161 long val2 ;
29162 int ecode2 = 0 ;
29163 int val3 ;
29164 int ecode3 = 0 ;
29165 int val4 ;
29166 int ecode4 = 0 ;
29167 PyObject * obj0 = 0 ;
29168 PyObject * obj1 = 0 ;
29169 PyObject * obj2 = 0 ;
29170 PyObject * obj3 = 0 ;
29171 char * kwnames[] = {
29172 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29173 };
29174
29175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29177 if (!SWIG_IsOK(res1)) {
29178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29179 }
29180 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29181 ecode2 = SWIG_AsVal_long(obj1, &val2);
29182 if (!SWIG_IsOK(ecode2)) {
29183 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29184 }
29185 arg2 = static_cast< long >(val2);
29186 ecode3 = SWIG_AsVal_int(obj2, &val3);
29187 if (!SWIG_IsOK(ecode3)) {
29188 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29189 }
29190 arg3 = static_cast< int >(val3);
29191 if (obj3) {
29192 ecode4 = SWIG_AsVal_int(obj3, &val4);
29193 if (!SWIG_IsOK(ecode4)) {
29194 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29195 }
29196 arg4 = static_cast< int >(val4);
29197 }
29198 {
29199 PyThreadState* __tstate = wxPyBeginAllowThreads();
29200 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29201 wxPyEndAllowThreads(__tstate);
29202 if (PyErr_Occurred()) SWIG_fail;
29203 }
29204 {
29205 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29206 }
29207 return resultobj;
29208 fail:
29209 return NULL;
29210 }
29211
29212
29213 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29214 PyObject *resultobj = 0;
29215 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29216 long arg2 ;
29217 long arg3 ;
29218 int arg4 ;
29219 bool result;
29220 void *argp1 = 0 ;
29221 int res1 = 0 ;
29222 long val2 ;
29223 int ecode2 = 0 ;
29224 long val3 ;
29225 int ecode3 = 0 ;
29226 int val4 ;
29227 int ecode4 = 0 ;
29228 PyObject * obj0 = 0 ;
29229 PyObject * obj1 = 0 ;
29230 PyObject * obj2 = 0 ;
29231 PyObject * obj3 = 0 ;
29232 char * kwnames[] = {
29233 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29234 };
29235
29236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29238 if (!SWIG_IsOK(res1)) {
29239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29240 }
29241 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29242 ecode2 = SWIG_AsVal_long(obj1, &val2);
29243 if (!SWIG_IsOK(ecode2)) {
29244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29245 }
29246 arg2 = static_cast< long >(val2);
29247 ecode3 = SWIG_AsVal_long(obj2, &val3);
29248 if (!SWIG_IsOK(ecode3)) {
29249 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29250 }
29251 arg3 = static_cast< long >(val3);
29252 ecode4 = SWIG_AsVal_int(obj3, &val4);
29253 if (!SWIG_IsOK(ecode4)) {
29254 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29255 }
29256 arg4 = static_cast< int >(val4);
29257 {
29258 PyThreadState* __tstate = wxPyBeginAllowThreads();
29259 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29260 wxPyEndAllowThreads(__tstate);
29261 if (PyErr_Occurred()) SWIG_fail;
29262 }
29263 {
29264 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29265 }
29266 return resultobj;
29267 fail:
29268 return NULL;
29269 }
29270
29271
29272 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29273 PyObject *resultobj = 0;
29274 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29275 long arg2 ;
29276 wxString result;
29277 void *argp1 = 0 ;
29278 int res1 = 0 ;
29279 long val2 ;
29280 int ecode2 = 0 ;
29281 PyObject * obj0 = 0 ;
29282 PyObject * obj1 = 0 ;
29283 char * kwnames[] = {
29284 (char *) "self",(char *) "item", NULL
29285 };
29286
29287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29289 if (!SWIG_IsOK(res1)) {
29290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29291 }
29292 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29293 ecode2 = SWIG_AsVal_long(obj1, &val2);
29294 if (!SWIG_IsOK(ecode2)) {
29295 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29296 }
29297 arg2 = static_cast< long >(val2);
29298 {
29299 PyThreadState* __tstate = wxPyBeginAllowThreads();
29300 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29301 wxPyEndAllowThreads(__tstate);
29302 if (PyErr_Occurred()) SWIG_fail;
29303 }
29304 {
29305 #if wxUSE_UNICODE
29306 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29307 #else
29308 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29309 #endif
29310 }
29311 return resultobj;
29312 fail:
29313 return NULL;
29314 }
29315
29316
29317 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29318 PyObject *resultobj = 0;
29319 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29320 long arg2 ;
29321 wxString *arg3 = 0 ;
29322 void *argp1 = 0 ;
29323 int res1 = 0 ;
29324 long val2 ;
29325 int ecode2 = 0 ;
29326 bool temp3 = false ;
29327 PyObject * obj0 = 0 ;
29328 PyObject * obj1 = 0 ;
29329 PyObject * obj2 = 0 ;
29330 char * kwnames[] = {
29331 (char *) "self",(char *) "item",(char *) "str", NULL
29332 };
29333
29334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29336 if (!SWIG_IsOK(res1)) {
29337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29338 }
29339 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29340 ecode2 = SWIG_AsVal_long(obj1, &val2);
29341 if (!SWIG_IsOK(ecode2)) {
29342 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29343 }
29344 arg2 = static_cast< long >(val2);
29345 {
29346 arg3 = wxString_in_helper(obj2);
29347 if (arg3 == NULL) SWIG_fail;
29348 temp3 = true;
29349 }
29350 {
29351 PyThreadState* __tstate = wxPyBeginAllowThreads();
29352 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29353 wxPyEndAllowThreads(__tstate);
29354 if (PyErr_Occurred()) SWIG_fail;
29355 }
29356 resultobj = SWIG_Py_Void();
29357 {
29358 if (temp3)
29359 delete arg3;
29360 }
29361 return resultobj;
29362 fail:
29363 {
29364 if (temp3)
29365 delete arg3;
29366 }
29367 return NULL;
29368 }
29369
29370
29371 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29372 PyObject *resultobj = 0;
29373 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29374 long arg2 ;
29375 long result;
29376 void *argp1 = 0 ;
29377 int res1 = 0 ;
29378 long val2 ;
29379 int ecode2 = 0 ;
29380 PyObject * obj0 = 0 ;
29381 PyObject * obj1 = 0 ;
29382 char * kwnames[] = {
29383 (char *) "self",(char *) "item", NULL
29384 };
29385
29386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29388 if (!SWIG_IsOK(res1)) {
29389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29390 }
29391 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29392 ecode2 = SWIG_AsVal_long(obj1, &val2);
29393 if (!SWIG_IsOK(ecode2)) {
29394 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29395 }
29396 arg2 = static_cast< long >(val2);
29397 {
29398 PyThreadState* __tstate = wxPyBeginAllowThreads();
29399 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29400 wxPyEndAllowThreads(__tstate);
29401 if (PyErr_Occurred()) SWIG_fail;
29402 }
29403 resultobj = SWIG_From_long(static_cast< long >(result));
29404 return resultobj;
29405 fail:
29406 return NULL;
29407 }
29408
29409
29410 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29411 PyObject *resultobj = 0;
29412 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29413 long arg2 ;
29414 long arg3 ;
29415 bool result;
29416 void *argp1 = 0 ;
29417 int res1 = 0 ;
29418 long val2 ;
29419 int ecode2 = 0 ;
29420 long val3 ;
29421 int ecode3 = 0 ;
29422 PyObject * obj0 = 0 ;
29423 PyObject * obj1 = 0 ;
29424 PyObject * obj2 = 0 ;
29425 char * kwnames[] = {
29426 (char *) "self",(char *) "item",(char *) "data", NULL
29427 };
29428
29429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29431 if (!SWIG_IsOK(res1)) {
29432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29433 }
29434 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29435 ecode2 = SWIG_AsVal_long(obj1, &val2);
29436 if (!SWIG_IsOK(ecode2)) {
29437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29438 }
29439 arg2 = static_cast< long >(val2);
29440 ecode3 = SWIG_AsVal_long(obj2, &val3);
29441 if (!SWIG_IsOK(ecode3)) {
29442 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29443 }
29444 arg3 = static_cast< long >(val3);
29445 {
29446 PyThreadState* __tstate = wxPyBeginAllowThreads();
29447 result = (bool)(arg1)->SetItemData(arg2,arg3);
29448 wxPyEndAllowThreads(__tstate);
29449 if (PyErr_Occurred()) SWIG_fail;
29450 }
29451 {
29452 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29453 }
29454 return resultobj;
29455 fail:
29456 return NULL;
29457 }
29458
29459
29460 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29461 PyObject *resultobj = 0;
29462 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29463 long arg2 ;
29464 wxPoint result;
29465 void *argp1 = 0 ;
29466 int res1 = 0 ;
29467 long val2 ;
29468 int ecode2 = 0 ;
29469 PyObject * obj0 = 0 ;
29470 PyObject * obj1 = 0 ;
29471 char * kwnames[] = {
29472 (char *) "self",(char *) "item", NULL
29473 };
29474
29475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29477 if (!SWIG_IsOK(res1)) {
29478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29479 }
29480 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29481 ecode2 = SWIG_AsVal_long(obj1, &val2);
29482 if (!SWIG_IsOK(ecode2)) {
29483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29484 }
29485 arg2 = static_cast< long >(val2);
29486 {
29487 PyThreadState* __tstate = wxPyBeginAllowThreads();
29488 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29489 wxPyEndAllowThreads(__tstate);
29490 if (PyErr_Occurred()) SWIG_fail;
29491 }
29492 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29493 return resultobj;
29494 fail:
29495 return NULL;
29496 }
29497
29498
29499 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29500 PyObject *resultobj = 0;
29501 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29502 long arg2 ;
29503 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29504 wxRect result;
29505 void *argp1 = 0 ;
29506 int res1 = 0 ;
29507 long val2 ;
29508 int ecode2 = 0 ;
29509 int val3 ;
29510 int ecode3 = 0 ;
29511 PyObject * obj0 = 0 ;
29512 PyObject * obj1 = 0 ;
29513 PyObject * obj2 = 0 ;
29514 char * kwnames[] = {
29515 (char *) "self",(char *) "item",(char *) "code", NULL
29516 };
29517
29518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29520 if (!SWIG_IsOK(res1)) {
29521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29522 }
29523 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29524 ecode2 = SWIG_AsVal_long(obj1, &val2);
29525 if (!SWIG_IsOK(ecode2)) {
29526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29527 }
29528 arg2 = static_cast< long >(val2);
29529 if (obj2) {
29530 ecode3 = SWIG_AsVal_int(obj2, &val3);
29531 if (!SWIG_IsOK(ecode3)) {
29532 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29533 }
29534 arg3 = static_cast< int >(val3);
29535 }
29536 {
29537 PyThreadState* __tstate = wxPyBeginAllowThreads();
29538 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29539 wxPyEndAllowThreads(__tstate);
29540 if (PyErr_Occurred()) SWIG_fail;
29541 }
29542 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29543 return resultobj;
29544 fail:
29545 return NULL;
29546 }
29547
29548
29549 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29550 PyObject *resultobj = 0;
29551 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29552 long arg2 ;
29553 wxPoint *arg3 = 0 ;
29554 bool result;
29555 void *argp1 = 0 ;
29556 int res1 = 0 ;
29557 long val2 ;
29558 int ecode2 = 0 ;
29559 wxPoint temp3 ;
29560 PyObject * obj0 = 0 ;
29561 PyObject * obj1 = 0 ;
29562 PyObject * obj2 = 0 ;
29563 char * kwnames[] = {
29564 (char *) "self",(char *) "item",(char *) "pos", NULL
29565 };
29566
29567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29569 if (!SWIG_IsOK(res1)) {
29570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29571 }
29572 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29573 ecode2 = SWIG_AsVal_long(obj1, &val2);
29574 if (!SWIG_IsOK(ecode2)) {
29575 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
29576 }
29577 arg2 = static_cast< long >(val2);
29578 {
29579 arg3 = &temp3;
29580 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29581 }
29582 {
29583 PyThreadState* __tstate = wxPyBeginAllowThreads();
29584 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
29585 wxPyEndAllowThreads(__tstate);
29586 if (PyErr_Occurred()) SWIG_fail;
29587 }
29588 {
29589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29590 }
29591 return resultobj;
29592 fail:
29593 return NULL;
29594 }
29595
29596
29597 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29598 PyObject *resultobj = 0;
29599 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29600 int result;
29601 void *argp1 = 0 ;
29602 int res1 = 0 ;
29603 PyObject *swig_obj[1] ;
29604
29605 if (!args) SWIG_fail;
29606 swig_obj[0] = args;
29607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29608 if (!SWIG_IsOK(res1)) {
29609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29610 }
29611 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29612 {
29613 PyThreadState* __tstate = wxPyBeginAllowThreads();
29614 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
29615 wxPyEndAllowThreads(__tstate);
29616 if (PyErr_Occurred()) SWIG_fail;
29617 }
29618 resultobj = SWIG_From_int(static_cast< int >(result));
29619 return resultobj;
29620 fail:
29621 return NULL;
29622 }
29623
29624
29625 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29626 PyObject *resultobj = 0;
29627 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29628 int result;
29629 void *argp1 = 0 ;
29630 int res1 = 0 ;
29631 PyObject *swig_obj[1] ;
29632
29633 if (!args) SWIG_fail;
29634 swig_obj[0] = args;
29635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29636 if (!SWIG_IsOK(res1)) {
29637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29638 }
29639 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29640 {
29641 PyThreadState* __tstate = wxPyBeginAllowThreads();
29642 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
29643 wxPyEndAllowThreads(__tstate);
29644 if (PyErr_Occurred()) SWIG_fail;
29645 }
29646 resultobj = SWIG_From_int(static_cast< int >(result));
29647 return resultobj;
29648 fail:
29649 return NULL;
29650 }
29651
29652
29653 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29654 PyObject *resultobj = 0;
29655 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29656 wxSize result;
29657 void *argp1 = 0 ;
29658 int res1 = 0 ;
29659 PyObject *swig_obj[1] ;
29660
29661 if (!args) SWIG_fail;
29662 swig_obj[0] = args;
29663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29664 if (!SWIG_IsOK(res1)) {
29665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29666 }
29667 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29668 {
29669 PyThreadState* __tstate = wxPyBeginAllowThreads();
29670 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
29671 wxPyEndAllowThreads(__tstate);
29672 if (PyErr_Occurred()) SWIG_fail;
29673 }
29674 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
29675 return resultobj;
29676 fail:
29677 return NULL;
29678 }
29679
29680
29681 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29682 PyObject *resultobj = 0;
29683 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29684 int arg2 ;
29685 bool arg3 = (bool) false ;
29686 void *argp1 = 0 ;
29687 int res1 = 0 ;
29688 int val2 ;
29689 int ecode2 = 0 ;
29690 bool val3 ;
29691 int ecode3 = 0 ;
29692 PyObject * obj0 = 0 ;
29693 PyObject * obj1 = 0 ;
29694 PyObject * obj2 = 0 ;
29695 char * kwnames[] = {
29696 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
29697 };
29698
29699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29701 if (!SWIG_IsOK(res1)) {
29702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29703 }
29704 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29705 ecode2 = SWIG_AsVal_int(obj1, &val2);
29706 if (!SWIG_IsOK(ecode2)) {
29707 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
29708 }
29709 arg2 = static_cast< int >(val2);
29710 if (obj2) {
29711 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29712 if (!SWIG_IsOK(ecode3)) {
29713 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
29714 }
29715 arg3 = static_cast< bool >(val3);
29716 }
29717 {
29718 PyThreadState* __tstate = wxPyBeginAllowThreads();
29719 (arg1)->SetItemSpacing(arg2,arg3);
29720 wxPyEndAllowThreads(__tstate);
29721 if (PyErr_Occurred()) SWIG_fail;
29722 }
29723 resultobj = SWIG_Py_Void();
29724 return resultobj;
29725 fail:
29726 return NULL;
29727 }
29728
29729
29730 SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29731 PyObject *resultobj = 0;
29732 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29733 int result;
29734 void *argp1 = 0 ;
29735 int res1 = 0 ;
29736 PyObject *swig_obj[1] ;
29737
29738 if (!args) SWIG_fail;
29739 swig_obj[0] = args;
29740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29741 if (!SWIG_IsOK(res1)) {
29742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29743 }
29744 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29745 {
29746 PyThreadState* __tstate = wxPyBeginAllowThreads();
29747 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
29748 wxPyEndAllowThreads(__tstate);
29749 if (PyErr_Occurred()) SWIG_fail;
29750 }
29751 resultobj = SWIG_From_int(static_cast< int >(result));
29752 return resultobj;
29753 fail:
29754 return NULL;
29755 }
29756
29757
29758 SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29759 PyObject *resultobj = 0;
29760 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29761 wxColour result;
29762 void *argp1 = 0 ;
29763 int res1 = 0 ;
29764 PyObject *swig_obj[1] ;
29765
29766 if (!args) SWIG_fail;
29767 swig_obj[0] = args;
29768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29769 if (!SWIG_IsOK(res1)) {
29770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29771 }
29772 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29773 {
29774 PyThreadState* __tstate = wxPyBeginAllowThreads();
29775 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
29776 wxPyEndAllowThreads(__tstate);
29777 if (PyErr_Occurred()) SWIG_fail;
29778 }
29779 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29780 return resultobj;
29781 fail:
29782 return NULL;
29783 }
29784
29785
29786 SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29787 PyObject *resultobj = 0;
29788 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29789 wxColour *arg2 = 0 ;
29790 void *argp1 = 0 ;
29791 int res1 = 0 ;
29792 wxColour temp2 ;
29793 PyObject * obj0 = 0 ;
29794 PyObject * obj1 = 0 ;
29795 char * kwnames[] = {
29796 (char *) "self",(char *) "col", NULL
29797 };
29798
29799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
29800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29801 if (!SWIG_IsOK(res1)) {
29802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29803 }
29804 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29805 {
29806 arg2 = &temp2;
29807 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29808 }
29809 {
29810 PyThreadState* __tstate = wxPyBeginAllowThreads();
29811 (arg1)->SetTextColour((wxColour const &)*arg2);
29812 wxPyEndAllowThreads(__tstate);
29813 if (PyErr_Occurred()) SWIG_fail;
29814 }
29815 resultobj = SWIG_Py_Void();
29816 return resultobj;
29817 fail:
29818 return NULL;
29819 }
29820
29821
29822 SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29823 PyObject *resultobj = 0;
29824 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29825 long result;
29826 void *argp1 = 0 ;
29827 int res1 = 0 ;
29828 PyObject *swig_obj[1] ;
29829
29830 if (!args) SWIG_fail;
29831 swig_obj[0] = args;
29832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29833 if (!SWIG_IsOK(res1)) {
29834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29835 }
29836 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29837 {
29838 PyThreadState* __tstate = wxPyBeginAllowThreads();
29839 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
29840 wxPyEndAllowThreads(__tstate);
29841 if (PyErr_Occurred()) SWIG_fail;
29842 }
29843 resultobj = SWIG_From_long(static_cast< long >(result));
29844 return resultobj;
29845 fail:
29846 return NULL;
29847 }
29848
29849
29850 SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29851 PyObject *resultobj = 0;
29852 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29853 long arg2 ;
29854 bool arg3 = (bool) true ;
29855 void *argp1 = 0 ;
29856 int res1 = 0 ;
29857 long val2 ;
29858 int ecode2 = 0 ;
29859 bool val3 ;
29860 int ecode3 = 0 ;
29861 PyObject * obj0 = 0 ;
29862 PyObject * obj1 = 0 ;
29863 PyObject * obj2 = 0 ;
29864 char * kwnames[] = {
29865 (char *) "self",(char *) "style",(char *) "add", NULL
29866 };
29867
29868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29870 if (!SWIG_IsOK(res1)) {
29871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29872 }
29873 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29874 ecode2 = SWIG_AsVal_long(obj1, &val2);
29875 if (!SWIG_IsOK(ecode2)) {
29876 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
29877 }
29878 arg2 = static_cast< long >(val2);
29879 if (obj2) {
29880 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29881 if (!SWIG_IsOK(ecode3)) {
29882 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
29883 }
29884 arg3 = static_cast< bool >(val3);
29885 }
29886 {
29887 PyThreadState* __tstate = wxPyBeginAllowThreads();
29888 (arg1)->SetSingleStyle(arg2,arg3);
29889 wxPyEndAllowThreads(__tstate);
29890 if (PyErr_Occurred()) SWIG_fail;
29891 }
29892 resultobj = SWIG_Py_Void();
29893 return resultobj;
29894 fail:
29895 return NULL;
29896 }
29897
29898
29899 SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29900 PyObject *resultobj = 0;
29901 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29902 long arg2 ;
29903 int arg3 = (int) wxLIST_NEXT_ALL ;
29904 int arg4 = (int) wxLIST_STATE_DONTCARE ;
29905 long result;
29906 void *argp1 = 0 ;
29907 int res1 = 0 ;
29908 long val2 ;
29909 int ecode2 = 0 ;
29910 int val3 ;
29911 int ecode3 = 0 ;
29912 int val4 ;
29913 int ecode4 = 0 ;
29914 PyObject * obj0 = 0 ;
29915 PyObject * obj1 = 0 ;
29916 PyObject * obj2 = 0 ;
29917 PyObject * obj3 = 0 ;
29918 char * kwnames[] = {
29919 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
29920 };
29921
29922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29924 if (!SWIG_IsOK(res1)) {
29925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29926 }
29927 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29928 ecode2 = SWIG_AsVal_long(obj1, &val2);
29929 if (!SWIG_IsOK(ecode2)) {
29930 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
29931 }
29932 arg2 = static_cast< long >(val2);
29933 if (obj2) {
29934 ecode3 = SWIG_AsVal_int(obj2, &val3);
29935 if (!SWIG_IsOK(ecode3)) {
29936 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
29937 }
29938 arg3 = static_cast< int >(val3);
29939 }
29940 if (obj3) {
29941 ecode4 = SWIG_AsVal_int(obj3, &val4);
29942 if (!SWIG_IsOK(ecode4)) {
29943 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
29944 }
29945 arg4 = static_cast< int >(val4);
29946 }
29947 {
29948 PyThreadState* __tstate = wxPyBeginAllowThreads();
29949 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
29950 wxPyEndAllowThreads(__tstate);
29951 if (PyErr_Occurred()) SWIG_fail;
29952 }
29953 resultobj = SWIG_From_long(static_cast< long >(result));
29954 return resultobj;
29955 fail:
29956 return NULL;
29957 }
29958
29959
29960 SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29961 PyObject *resultobj = 0;
29962 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29963 int arg2 ;
29964 wxImageList *result = 0 ;
29965 void *argp1 = 0 ;
29966 int res1 = 0 ;
29967 int val2 ;
29968 int ecode2 = 0 ;
29969 PyObject * obj0 = 0 ;
29970 PyObject * obj1 = 0 ;
29971 char * kwnames[] = {
29972 (char *) "self",(char *) "which", NULL
29973 };
29974
29975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
29976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29977 if (!SWIG_IsOK(res1)) {
29978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29979 }
29980 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29981 ecode2 = SWIG_AsVal_int(obj1, &val2);
29982 if (!SWIG_IsOK(ecode2)) {
29983 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
29984 }
29985 arg2 = static_cast< int >(val2);
29986 {
29987 PyThreadState* __tstate = wxPyBeginAllowThreads();
29988 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
29989 wxPyEndAllowThreads(__tstate);
29990 if (PyErr_Occurred()) SWIG_fail;
29991 }
29992 {
29993 resultobj = wxPyMake_wxObject(result, (bool)0);
29994 }
29995 return resultobj;
29996 fail:
29997 return NULL;
29998 }
29999
30000
30001 SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30002 PyObject *resultobj = 0;
30003 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30004 wxImageList *arg2 = (wxImageList *) 0 ;
30005 int arg3 ;
30006 void *argp1 = 0 ;
30007 int res1 = 0 ;
30008 void *argp2 = 0 ;
30009 int res2 = 0 ;
30010 int val3 ;
30011 int ecode3 = 0 ;
30012 PyObject * obj0 = 0 ;
30013 PyObject * obj1 = 0 ;
30014 PyObject * obj2 = 0 ;
30015 char * kwnames[] = {
30016 (char *) "self",(char *) "imageList",(char *) "which", NULL
30017 };
30018
30019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30021 if (!SWIG_IsOK(res1)) {
30022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30023 }
30024 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30025 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30026 if (!SWIG_IsOK(res2)) {
30027 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30028 }
30029 arg2 = reinterpret_cast< wxImageList * >(argp2);
30030 ecode3 = SWIG_AsVal_int(obj2, &val3);
30031 if (!SWIG_IsOK(ecode3)) {
30032 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30033 }
30034 arg3 = static_cast< int >(val3);
30035 {
30036 PyThreadState* __tstate = wxPyBeginAllowThreads();
30037 (arg1)->SetImageList(arg2,arg3);
30038 wxPyEndAllowThreads(__tstate);
30039 if (PyErr_Occurred()) SWIG_fail;
30040 }
30041 resultobj = SWIG_Py_Void();
30042 return resultobj;
30043 fail:
30044 return NULL;
30045 }
30046
30047
30048 SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30049 PyObject *resultobj = 0;
30050 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30051 wxImageList *arg2 = (wxImageList *) 0 ;
30052 int arg3 ;
30053 void *argp1 = 0 ;
30054 int res1 = 0 ;
30055 int res2 = 0 ;
30056 int val3 ;
30057 int ecode3 = 0 ;
30058 PyObject * obj0 = 0 ;
30059 PyObject * obj1 = 0 ;
30060 PyObject * obj2 = 0 ;
30061 char * kwnames[] = {
30062 (char *) "self",(char *) "imageList",(char *) "which", NULL
30063 };
30064
30065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30067 if (!SWIG_IsOK(res1)) {
30068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30069 }
30070 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30071 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30072 if (!SWIG_IsOK(res2)) {
30073 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30074 }
30075 ecode3 = SWIG_AsVal_int(obj2, &val3);
30076 if (!SWIG_IsOK(ecode3)) {
30077 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30078 }
30079 arg3 = static_cast< int >(val3);
30080 {
30081 PyThreadState* __tstate = wxPyBeginAllowThreads();
30082 (arg1)->AssignImageList(arg2,arg3);
30083 wxPyEndAllowThreads(__tstate);
30084 if (PyErr_Occurred()) SWIG_fail;
30085 }
30086 resultobj = SWIG_Py_Void();
30087 return resultobj;
30088 fail:
30089 return NULL;
30090 }
30091
30092
30093 SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30094 PyObject *resultobj = 0;
30095 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30096 bool result;
30097 void *argp1 = 0 ;
30098 int res1 = 0 ;
30099 PyObject *swig_obj[1] ;
30100
30101 if (!args) SWIG_fail;
30102 swig_obj[0] = args;
30103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30104 if (!SWIG_IsOK(res1)) {
30105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30106 }
30107 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30108 {
30109 PyThreadState* __tstate = wxPyBeginAllowThreads();
30110 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30111 wxPyEndAllowThreads(__tstate);
30112 if (PyErr_Occurred()) SWIG_fail;
30113 }
30114 {
30115 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30116 }
30117 return resultobj;
30118 fail:
30119 return NULL;
30120 }
30121
30122
30123 SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30124 PyObject *resultobj = 0;
30125 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30126 bool result;
30127 void *argp1 = 0 ;
30128 int res1 = 0 ;
30129 PyObject *swig_obj[1] ;
30130
30131 if (!args) SWIG_fail;
30132 swig_obj[0] = args;
30133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30134 if (!SWIG_IsOK(res1)) {
30135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30136 }
30137 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30138 {
30139 PyThreadState* __tstate = wxPyBeginAllowThreads();
30140 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30141 wxPyEndAllowThreads(__tstate);
30142 if (PyErr_Occurred()) SWIG_fail;
30143 }
30144 {
30145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30146 }
30147 return resultobj;
30148 fail:
30149 return NULL;
30150 }
30151
30152
30153 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30154 PyObject *resultobj = 0;
30155 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30156 long arg2 ;
30157 void *argp1 = 0 ;
30158 int res1 = 0 ;
30159 long val2 ;
30160 int ecode2 = 0 ;
30161 PyObject * obj0 = 0 ;
30162 PyObject * obj1 = 0 ;
30163 char * kwnames[] = {
30164 (char *) "self",(char *) "item", NULL
30165 };
30166
30167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30169 if (!SWIG_IsOK(res1)) {
30170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30171 }
30172 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30173 ecode2 = SWIG_AsVal_long(obj1, &val2);
30174 if (!SWIG_IsOK(ecode2)) {
30175 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30176 }
30177 arg2 = static_cast< long >(val2);
30178 {
30179 PyThreadState* __tstate = wxPyBeginAllowThreads();
30180 (arg1)->RefreshItem(arg2);
30181 wxPyEndAllowThreads(__tstate);
30182 if (PyErr_Occurred()) SWIG_fail;
30183 }
30184 resultobj = SWIG_Py_Void();
30185 return resultobj;
30186 fail:
30187 return NULL;
30188 }
30189
30190
30191 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30192 PyObject *resultobj = 0;
30193 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30194 long arg2 ;
30195 long arg3 ;
30196 void *argp1 = 0 ;
30197 int res1 = 0 ;
30198 long val2 ;
30199 int ecode2 = 0 ;
30200 long val3 ;
30201 int ecode3 = 0 ;
30202 PyObject * obj0 = 0 ;
30203 PyObject * obj1 = 0 ;
30204 PyObject * obj2 = 0 ;
30205 char * kwnames[] = {
30206 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30207 };
30208
30209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30211 if (!SWIG_IsOK(res1)) {
30212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30213 }
30214 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30215 ecode2 = SWIG_AsVal_long(obj1, &val2);
30216 if (!SWIG_IsOK(ecode2)) {
30217 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30218 }
30219 arg2 = static_cast< long >(val2);
30220 ecode3 = SWIG_AsVal_long(obj2, &val3);
30221 if (!SWIG_IsOK(ecode3)) {
30222 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30223 }
30224 arg3 = static_cast< long >(val3);
30225 {
30226 PyThreadState* __tstate = wxPyBeginAllowThreads();
30227 (arg1)->RefreshItems(arg2,arg3);
30228 wxPyEndAllowThreads(__tstate);
30229 if (PyErr_Occurred()) SWIG_fail;
30230 }
30231 resultobj = SWIG_Py_Void();
30232 return resultobj;
30233 fail:
30234 return NULL;
30235 }
30236
30237
30238 SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30239 PyObject *resultobj = 0;
30240 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30241 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30242 bool result;
30243 void *argp1 = 0 ;
30244 int res1 = 0 ;
30245 int val2 ;
30246 int ecode2 = 0 ;
30247 PyObject * obj0 = 0 ;
30248 PyObject * obj1 = 0 ;
30249 char * kwnames[] = {
30250 (char *) "self",(char *) "flag", NULL
30251 };
30252
30253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30255 if (!SWIG_IsOK(res1)) {
30256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30257 }
30258 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30259 if (obj1) {
30260 ecode2 = SWIG_AsVal_int(obj1, &val2);
30261 if (!SWIG_IsOK(ecode2)) {
30262 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30263 }
30264 arg2 = static_cast< int >(val2);
30265 }
30266 {
30267 PyThreadState* __tstate = wxPyBeginAllowThreads();
30268 result = (bool)(arg1)->Arrange(arg2);
30269 wxPyEndAllowThreads(__tstate);
30270 if (PyErr_Occurred()) SWIG_fail;
30271 }
30272 {
30273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30274 }
30275 return resultobj;
30276 fail:
30277 return NULL;
30278 }
30279
30280
30281 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30282 PyObject *resultobj = 0;
30283 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30284 long arg2 ;
30285 bool result;
30286 void *argp1 = 0 ;
30287 int res1 = 0 ;
30288 long val2 ;
30289 int ecode2 = 0 ;
30290 PyObject * obj0 = 0 ;
30291 PyObject * obj1 = 0 ;
30292 char * kwnames[] = {
30293 (char *) "self",(char *) "item", NULL
30294 };
30295
30296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30298 if (!SWIG_IsOK(res1)) {
30299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30300 }
30301 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30302 ecode2 = SWIG_AsVal_long(obj1, &val2);
30303 if (!SWIG_IsOK(ecode2)) {
30304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30305 }
30306 arg2 = static_cast< long >(val2);
30307 {
30308 PyThreadState* __tstate = wxPyBeginAllowThreads();
30309 result = (bool)(arg1)->DeleteItem(arg2);
30310 wxPyEndAllowThreads(__tstate);
30311 if (PyErr_Occurred()) SWIG_fail;
30312 }
30313 {
30314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30315 }
30316 return resultobj;
30317 fail:
30318 return NULL;
30319 }
30320
30321
30322 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30323 PyObject *resultobj = 0;
30324 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30325 bool result;
30326 void *argp1 = 0 ;
30327 int res1 = 0 ;
30328 PyObject *swig_obj[1] ;
30329
30330 if (!args) SWIG_fail;
30331 swig_obj[0] = args;
30332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30333 if (!SWIG_IsOK(res1)) {
30334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30335 }
30336 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30337 {
30338 PyThreadState* __tstate = wxPyBeginAllowThreads();
30339 result = (bool)(arg1)->DeleteAllItems();
30340 wxPyEndAllowThreads(__tstate);
30341 if (PyErr_Occurred()) SWIG_fail;
30342 }
30343 {
30344 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30345 }
30346 return resultobj;
30347 fail:
30348 return NULL;
30349 }
30350
30351
30352 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30353 PyObject *resultobj = 0;
30354 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30355 int arg2 ;
30356 bool result;
30357 void *argp1 = 0 ;
30358 int res1 = 0 ;
30359 int val2 ;
30360 int ecode2 = 0 ;
30361 PyObject * obj0 = 0 ;
30362 PyObject * obj1 = 0 ;
30363 char * kwnames[] = {
30364 (char *) "self",(char *) "col", NULL
30365 };
30366
30367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30369 if (!SWIG_IsOK(res1)) {
30370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30371 }
30372 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30373 ecode2 = SWIG_AsVal_int(obj1, &val2);
30374 if (!SWIG_IsOK(ecode2)) {
30375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30376 }
30377 arg2 = static_cast< int >(val2);
30378 {
30379 PyThreadState* __tstate = wxPyBeginAllowThreads();
30380 result = (bool)(arg1)->DeleteColumn(arg2);
30381 wxPyEndAllowThreads(__tstate);
30382 if (PyErr_Occurred()) SWIG_fail;
30383 }
30384 {
30385 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30386 }
30387 return resultobj;
30388 fail:
30389 return NULL;
30390 }
30391
30392
30393 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30394 PyObject *resultobj = 0;
30395 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30396 bool result;
30397 void *argp1 = 0 ;
30398 int res1 = 0 ;
30399 PyObject *swig_obj[1] ;
30400
30401 if (!args) SWIG_fail;
30402 swig_obj[0] = args;
30403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30404 if (!SWIG_IsOK(res1)) {
30405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30406 }
30407 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30408 {
30409 PyThreadState* __tstate = wxPyBeginAllowThreads();
30410 result = (bool)(arg1)->DeleteAllColumns();
30411 wxPyEndAllowThreads(__tstate);
30412 if (PyErr_Occurred()) SWIG_fail;
30413 }
30414 {
30415 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30416 }
30417 return resultobj;
30418 fail:
30419 return NULL;
30420 }
30421
30422
30423 SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30424 PyObject *resultobj = 0;
30425 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30426 void *argp1 = 0 ;
30427 int res1 = 0 ;
30428 PyObject *swig_obj[1] ;
30429
30430 if (!args) SWIG_fail;
30431 swig_obj[0] = args;
30432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30433 if (!SWIG_IsOK(res1)) {
30434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30435 }
30436 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30437 {
30438 PyThreadState* __tstate = wxPyBeginAllowThreads();
30439 (arg1)->ClearAll();
30440 wxPyEndAllowThreads(__tstate);
30441 if (PyErr_Occurred()) SWIG_fail;
30442 }
30443 resultobj = SWIG_Py_Void();
30444 return resultobj;
30445 fail:
30446 return NULL;
30447 }
30448
30449
30450 SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30451 PyObject *resultobj = 0;
30452 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30453 long arg2 ;
30454 void *argp1 = 0 ;
30455 int res1 = 0 ;
30456 long val2 ;
30457 int ecode2 = 0 ;
30458 PyObject * obj0 = 0 ;
30459 PyObject * obj1 = 0 ;
30460 char * kwnames[] = {
30461 (char *) "self",(char *) "item", NULL
30462 };
30463
30464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30466 if (!SWIG_IsOK(res1)) {
30467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30468 }
30469 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30470 ecode2 = SWIG_AsVal_long(obj1, &val2);
30471 if (!SWIG_IsOK(ecode2)) {
30472 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30473 }
30474 arg2 = static_cast< long >(val2);
30475 {
30476 PyThreadState* __tstate = wxPyBeginAllowThreads();
30477 (arg1)->EditLabel(arg2);
30478 wxPyEndAllowThreads(__tstate);
30479 if (PyErr_Occurred()) SWIG_fail;
30480 }
30481 resultobj = SWIG_Py_Void();
30482 return resultobj;
30483 fail:
30484 return NULL;
30485 }
30486
30487
30488 SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30489 PyObject *resultobj = 0;
30490 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30491 long arg2 ;
30492 bool result;
30493 void *argp1 = 0 ;
30494 int res1 = 0 ;
30495 long val2 ;
30496 int ecode2 = 0 ;
30497 PyObject * obj0 = 0 ;
30498 PyObject * obj1 = 0 ;
30499 char * kwnames[] = {
30500 (char *) "self",(char *) "item", NULL
30501 };
30502
30503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30505 if (!SWIG_IsOK(res1)) {
30506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30507 }
30508 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30509 ecode2 = SWIG_AsVal_long(obj1, &val2);
30510 if (!SWIG_IsOK(ecode2)) {
30511 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30512 }
30513 arg2 = static_cast< long >(val2);
30514 {
30515 PyThreadState* __tstate = wxPyBeginAllowThreads();
30516 result = (bool)(arg1)->EnsureVisible(arg2);
30517 wxPyEndAllowThreads(__tstate);
30518 if (PyErr_Occurred()) SWIG_fail;
30519 }
30520 {
30521 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30522 }
30523 return resultobj;
30524 fail:
30525 return NULL;
30526 }
30527
30528
30529 SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30530 PyObject *resultobj = 0;
30531 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30532 long arg2 ;
30533 wxString *arg3 = 0 ;
30534 bool arg4 = (bool) false ;
30535 long result;
30536 void *argp1 = 0 ;
30537 int res1 = 0 ;
30538 long val2 ;
30539 int ecode2 = 0 ;
30540 bool temp3 = false ;
30541 bool val4 ;
30542 int ecode4 = 0 ;
30543 PyObject * obj0 = 0 ;
30544 PyObject * obj1 = 0 ;
30545 PyObject * obj2 = 0 ;
30546 PyObject * obj3 = 0 ;
30547 char * kwnames[] = {
30548 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30549 };
30550
30551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30553 if (!SWIG_IsOK(res1)) {
30554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30555 }
30556 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30557 ecode2 = SWIG_AsVal_long(obj1, &val2);
30558 if (!SWIG_IsOK(ecode2)) {
30559 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30560 }
30561 arg2 = static_cast< long >(val2);
30562 {
30563 arg3 = wxString_in_helper(obj2);
30564 if (arg3 == NULL) SWIG_fail;
30565 temp3 = true;
30566 }
30567 if (obj3) {
30568 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30569 if (!SWIG_IsOK(ecode4)) {
30570 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
30571 }
30572 arg4 = static_cast< bool >(val4);
30573 }
30574 {
30575 PyThreadState* __tstate = wxPyBeginAllowThreads();
30576 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
30577 wxPyEndAllowThreads(__tstate);
30578 if (PyErr_Occurred()) SWIG_fail;
30579 }
30580 resultobj = SWIG_From_long(static_cast< long >(result));
30581 {
30582 if (temp3)
30583 delete arg3;
30584 }
30585 return resultobj;
30586 fail:
30587 {
30588 if (temp3)
30589 delete arg3;
30590 }
30591 return NULL;
30592 }
30593
30594
30595 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30596 PyObject *resultobj = 0;
30597 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30598 long arg2 ;
30599 long arg3 ;
30600 long result;
30601 void *argp1 = 0 ;
30602 int res1 = 0 ;
30603 long val2 ;
30604 int ecode2 = 0 ;
30605 long val3 ;
30606 int ecode3 = 0 ;
30607 PyObject * obj0 = 0 ;
30608 PyObject * obj1 = 0 ;
30609 PyObject * obj2 = 0 ;
30610 char * kwnames[] = {
30611 (char *) "self",(char *) "start",(char *) "data", NULL
30612 };
30613
30614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30616 if (!SWIG_IsOK(res1)) {
30617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30618 }
30619 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30620 ecode2 = SWIG_AsVal_long(obj1, &val2);
30621 if (!SWIG_IsOK(ecode2)) {
30622 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
30623 }
30624 arg2 = static_cast< long >(val2);
30625 ecode3 = SWIG_AsVal_long(obj2, &val3);
30626 if (!SWIG_IsOK(ecode3)) {
30627 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
30628 }
30629 arg3 = static_cast< long >(val3);
30630 {
30631 PyThreadState* __tstate = wxPyBeginAllowThreads();
30632 result = (long)(arg1)->FindItem(arg2,arg3);
30633 wxPyEndAllowThreads(__tstate);
30634 if (PyErr_Occurred()) SWIG_fail;
30635 }
30636 resultobj = SWIG_From_long(static_cast< long >(result));
30637 return resultobj;
30638 fail:
30639 return NULL;
30640 }
30641
30642
30643 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30644 PyObject *resultobj = 0;
30645 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30646 long arg2 ;
30647 wxPoint *arg3 = 0 ;
30648 int arg4 ;
30649 long result;
30650 void *argp1 = 0 ;
30651 int res1 = 0 ;
30652 long val2 ;
30653 int ecode2 = 0 ;
30654 wxPoint temp3 ;
30655 int val4 ;
30656 int ecode4 = 0 ;
30657 PyObject * obj0 = 0 ;
30658 PyObject * obj1 = 0 ;
30659 PyObject * obj2 = 0 ;
30660 PyObject * obj3 = 0 ;
30661 char * kwnames[] = {
30662 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
30663 };
30664
30665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30667 if (!SWIG_IsOK(res1)) {
30668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30669 }
30670 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30671 ecode2 = SWIG_AsVal_long(obj1, &val2);
30672 if (!SWIG_IsOK(ecode2)) {
30673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
30674 }
30675 arg2 = static_cast< long >(val2);
30676 {
30677 arg3 = &temp3;
30678 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30679 }
30680 ecode4 = SWIG_AsVal_int(obj3, &val4);
30681 if (!SWIG_IsOK(ecode4)) {
30682 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
30683 }
30684 arg4 = static_cast< int >(val4);
30685 {
30686 PyThreadState* __tstate = wxPyBeginAllowThreads();
30687 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
30688 wxPyEndAllowThreads(__tstate);
30689 if (PyErr_Occurred()) SWIG_fail;
30690 }
30691 resultobj = SWIG_From_long(static_cast< long >(result));
30692 return resultobj;
30693 fail:
30694 return NULL;
30695 }
30696
30697
30698 SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30699 PyObject *resultobj = 0;
30700 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30701 wxPoint *arg2 = 0 ;
30702 int *arg3 = 0 ;
30703 long result;
30704 void *argp1 = 0 ;
30705 int res1 = 0 ;
30706 wxPoint temp2 ;
30707 int temp3 ;
30708 int res3 = SWIG_TMPOBJ ;
30709 PyObject * obj0 = 0 ;
30710 PyObject * obj1 = 0 ;
30711 char * kwnames[] = {
30712 (char *) "self",(char *) "point", NULL
30713 };
30714
30715 arg3 = &temp3;
30716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
30717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30718 if (!SWIG_IsOK(res1)) {
30719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30720 }
30721 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30722 {
30723 arg2 = &temp2;
30724 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30725 }
30726 {
30727 PyThreadState* __tstate = wxPyBeginAllowThreads();
30728 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
30729 wxPyEndAllowThreads(__tstate);
30730 if (PyErr_Occurred()) SWIG_fail;
30731 }
30732 resultobj = SWIG_From_long(static_cast< long >(result));
30733 if (SWIG_IsTmpObj(res3)) {
30734 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30735 } else {
30736 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30737 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30738 }
30739 return resultobj;
30740 fail:
30741 return NULL;
30742 }
30743
30744
30745 SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30746 PyObject *resultobj = 0;
30747 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30748 wxPoint *arg2 = 0 ;
30749 int *arg3 = 0 ;
30750 long *arg4 = (long *) 0 ;
30751 long result;
30752 void *argp1 = 0 ;
30753 int res1 = 0 ;
30754 wxPoint temp2 ;
30755 int temp3 ;
30756 int res3 = SWIG_TMPOBJ ;
30757 long temp4 ;
30758 int res4 = SWIG_TMPOBJ ;
30759 PyObject * obj0 = 0 ;
30760 PyObject * obj1 = 0 ;
30761 char * kwnames[] = {
30762 (char *) "self",(char *) "point", NULL
30763 };
30764
30765 arg3 = &temp3;
30766 arg4 = &temp4;
30767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
30768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30769 if (!SWIG_IsOK(res1)) {
30770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30771 }
30772 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30773 {
30774 arg2 = &temp2;
30775 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30776 }
30777 {
30778 PyThreadState* __tstate = wxPyBeginAllowThreads();
30779 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
30780 wxPyEndAllowThreads(__tstate);
30781 if (PyErr_Occurred()) SWIG_fail;
30782 }
30783 resultobj = SWIG_From_long(static_cast< long >(result));
30784 if (SWIG_IsTmpObj(res3)) {
30785 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30786 } else {
30787 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30788 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30789 }
30790 if (SWIG_IsTmpObj(res4)) {
30791 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
30792 } else {
30793 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30794 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
30795 }
30796 return resultobj;
30797 fail:
30798 return NULL;
30799 }
30800
30801
30802 SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30803 PyObject *resultobj = 0;
30804 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30805 wxListItem *arg2 = 0 ;
30806 long result;
30807 void *argp1 = 0 ;
30808 int res1 = 0 ;
30809 void *argp2 = 0 ;
30810 int res2 = 0 ;
30811 PyObject * obj0 = 0 ;
30812 PyObject * obj1 = 0 ;
30813 char * kwnames[] = {
30814 (char *) "self",(char *) "info", NULL
30815 };
30816
30817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
30818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30819 if (!SWIG_IsOK(res1)) {
30820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30821 }
30822 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30823 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
30824 if (!SWIG_IsOK(res2)) {
30825 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30826 }
30827 if (!argp2) {
30828 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30829 }
30830 arg2 = reinterpret_cast< wxListItem * >(argp2);
30831 {
30832 PyThreadState* __tstate = wxPyBeginAllowThreads();
30833 result = (long)(arg1)->InsertItem(*arg2);
30834 wxPyEndAllowThreads(__tstate);
30835 if (PyErr_Occurred()) SWIG_fail;
30836 }
30837 resultobj = SWIG_From_long(static_cast< long >(result));
30838 return resultobj;
30839 fail:
30840 return NULL;
30841 }
30842
30843
30844 SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30845 PyObject *resultobj = 0;
30846 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30847 long arg2 ;
30848 wxString *arg3 = 0 ;
30849 int arg4 = (int) -1 ;
30850 long result;
30851 void *argp1 = 0 ;
30852 int res1 = 0 ;
30853 long val2 ;
30854 int ecode2 = 0 ;
30855 bool temp3 = false ;
30856 int val4 ;
30857 int ecode4 = 0 ;
30858 PyObject * obj0 = 0 ;
30859 PyObject * obj1 = 0 ;
30860 PyObject * obj2 = 0 ;
30861 PyObject * obj3 = 0 ;
30862 char * kwnames[] = {
30863 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
30864 };
30865
30866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30868 if (!SWIG_IsOK(res1)) {
30869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30870 }
30871 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30872 ecode2 = SWIG_AsVal_long(obj1, &val2);
30873 if (!SWIG_IsOK(ecode2)) {
30874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
30875 }
30876 arg2 = static_cast< long >(val2);
30877 {
30878 arg3 = wxString_in_helper(obj2);
30879 if (arg3 == NULL) SWIG_fail;
30880 temp3 = true;
30881 }
30882 if (obj3) {
30883 ecode4 = SWIG_AsVal_int(obj3, &val4);
30884 if (!SWIG_IsOK(ecode4)) {
30885 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
30886 }
30887 arg4 = static_cast< int >(val4);
30888 }
30889 {
30890 PyThreadState* __tstate = wxPyBeginAllowThreads();
30891 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
30892 wxPyEndAllowThreads(__tstate);
30893 if (PyErr_Occurred()) SWIG_fail;
30894 }
30895 resultobj = SWIG_From_long(static_cast< long >(result));
30896 {
30897 if (temp3)
30898 delete arg3;
30899 }
30900 return resultobj;
30901 fail:
30902 {
30903 if (temp3)
30904 delete arg3;
30905 }
30906 return NULL;
30907 }
30908
30909
30910 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30911 PyObject *resultobj = 0;
30912 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30913 long arg2 ;
30914 int arg3 ;
30915 long result;
30916 void *argp1 = 0 ;
30917 int res1 = 0 ;
30918 long val2 ;
30919 int ecode2 = 0 ;
30920 int val3 ;
30921 int ecode3 = 0 ;
30922 PyObject * obj0 = 0 ;
30923 PyObject * obj1 = 0 ;
30924 PyObject * obj2 = 0 ;
30925 char * kwnames[] = {
30926 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
30927 };
30928
30929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30931 if (!SWIG_IsOK(res1)) {
30932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30933 }
30934 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30935 ecode2 = SWIG_AsVal_long(obj1, &val2);
30936 if (!SWIG_IsOK(ecode2)) {
30937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
30938 }
30939 arg2 = static_cast< long >(val2);
30940 ecode3 = SWIG_AsVal_int(obj2, &val3);
30941 if (!SWIG_IsOK(ecode3)) {
30942 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
30943 }
30944 arg3 = static_cast< int >(val3);
30945 {
30946 PyThreadState* __tstate = wxPyBeginAllowThreads();
30947 result = (long)(arg1)->InsertItem(arg2,arg3);
30948 wxPyEndAllowThreads(__tstate);
30949 if (PyErr_Occurred()) SWIG_fail;
30950 }
30951 resultobj = SWIG_From_long(static_cast< long >(result));
30952 return resultobj;
30953 fail:
30954 return NULL;
30955 }
30956
30957
30958 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30959 PyObject *resultobj = 0;
30960 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30961 long arg2 ;
30962 wxString *arg3 = 0 ;
30963 int arg4 ;
30964 long result;
30965 void *argp1 = 0 ;
30966 int res1 = 0 ;
30967 long val2 ;
30968 int ecode2 = 0 ;
30969 bool temp3 = false ;
30970 int val4 ;
30971 int ecode4 = 0 ;
30972 PyObject * obj0 = 0 ;
30973 PyObject * obj1 = 0 ;
30974 PyObject * obj2 = 0 ;
30975 PyObject * obj3 = 0 ;
30976 char * kwnames[] = {
30977 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
30978 };
30979
30980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30982 if (!SWIG_IsOK(res1)) {
30983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30984 }
30985 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30986 ecode2 = SWIG_AsVal_long(obj1, &val2);
30987 if (!SWIG_IsOK(ecode2)) {
30988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
30989 }
30990 arg2 = static_cast< long >(val2);
30991 {
30992 arg3 = wxString_in_helper(obj2);
30993 if (arg3 == NULL) SWIG_fail;
30994 temp3 = true;
30995 }
30996 ecode4 = SWIG_AsVal_int(obj3, &val4);
30997 if (!SWIG_IsOK(ecode4)) {
30998 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
30999 }
31000 arg4 = static_cast< int >(val4);
31001 {
31002 PyThreadState* __tstate = wxPyBeginAllowThreads();
31003 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31004 wxPyEndAllowThreads(__tstate);
31005 if (PyErr_Occurred()) SWIG_fail;
31006 }
31007 resultobj = SWIG_From_long(static_cast< long >(result));
31008 {
31009 if (temp3)
31010 delete arg3;
31011 }
31012 return resultobj;
31013 fail:
31014 {
31015 if (temp3)
31016 delete arg3;
31017 }
31018 return NULL;
31019 }
31020
31021
31022 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31023 PyObject *resultobj = 0;
31024 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31025 long arg2 ;
31026 wxListItem *arg3 = 0 ;
31027 long result;
31028 void *argp1 = 0 ;
31029 int res1 = 0 ;
31030 long val2 ;
31031 int ecode2 = 0 ;
31032 void *argp3 = 0 ;
31033 int res3 = 0 ;
31034 PyObject * obj0 = 0 ;
31035 PyObject * obj1 = 0 ;
31036 PyObject * obj2 = 0 ;
31037 char * kwnames[] = {
31038 (char *) "self",(char *) "col",(char *) "info", NULL
31039 };
31040
31041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31043 if (!SWIG_IsOK(res1)) {
31044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31045 }
31046 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31047 ecode2 = SWIG_AsVal_long(obj1, &val2);
31048 if (!SWIG_IsOK(ecode2)) {
31049 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31050 }
31051 arg2 = static_cast< long >(val2);
31052 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31053 if (!SWIG_IsOK(res3)) {
31054 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31055 }
31056 if (!argp3) {
31057 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31058 }
31059 arg3 = reinterpret_cast< wxListItem * >(argp3);
31060 {
31061 PyThreadState* __tstate = wxPyBeginAllowThreads();
31062 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31063 wxPyEndAllowThreads(__tstate);
31064 if (PyErr_Occurred()) SWIG_fail;
31065 }
31066 resultobj = SWIG_From_long(static_cast< long >(result));
31067 return resultobj;
31068 fail:
31069 return NULL;
31070 }
31071
31072
31073 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31074 PyObject *resultobj = 0;
31075 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31076 long arg2 ;
31077 wxString *arg3 = 0 ;
31078 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31079 int arg5 = (int) -1 ;
31080 long result;
31081 void *argp1 = 0 ;
31082 int res1 = 0 ;
31083 long val2 ;
31084 int ecode2 = 0 ;
31085 bool temp3 = false ;
31086 int val4 ;
31087 int ecode4 = 0 ;
31088 int val5 ;
31089 int ecode5 = 0 ;
31090 PyObject * obj0 = 0 ;
31091 PyObject * obj1 = 0 ;
31092 PyObject * obj2 = 0 ;
31093 PyObject * obj3 = 0 ;
31094 PyObject * obj4 = 0 ;
31095 char * kwnames[] = {
31096 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31097 };
31098
31099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31101 if (!SWIG_IsOK(res1)) {
31102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31103 }
31104 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31105 ecode2 = SWIG_AsVal_long(obj1, &val2);
31106 if (!SWIG_IsOK(ecode2)) {
31107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31108 }
31109 arg2 = static_cast< long >(val2);
31110 {
31111 arg3 = wxString_in_helper(obj2);
31112 if (arg3 == NULL) SWIG_fail;
31113 temp3 = true;
31114 }
31115 if (obj3) {
31116 ecode4 = SWIG_AsVal_int(obj3, &val4);
31117 if (!SWIG_IsOK(ecode4)) {
31118 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31119 }
31120 arg4 = static_cast< int >(val4);
31121 }
31122 if (obj4) {
31123 ecode5 = SWIG_AsVal_int(obj4, &val5);
31124 if (!SWIG_IsOK(ecode5)) {
31125 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31126 }
31127 arg5 = static_cast< int >(val5);
31128 }
31129 {
31130 PyThreadState* __tstate = wxPyBeginAllowThreads();
31131 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31132 wxPyEndAllowThreads(__tstate);
31133 if (PyErr_Occurred()) SWIG_fail;
31134 }
31135 resultobj = SWIG_From_long(static_cast< long >(result));
31136 {
31137 if (temp3)
31138 delete arg3;
31139 }
31140 return resultobj;
31141 fail:
31142 {
31143 if (temp3)
31144 delete arg3;
31145 }
31146 return NULL;
31147 }
31148
31149
31150 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31151 PyObject *resultobj = 0;
31152 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31153 long arg2 ;
31154 void *argp1 = 0 ;
31155 int res1 = 0 ;
31156 long val2 ;
31157 int ecode2 = 0 ;
31158 PyObject * obj0 = 0 ;
31159 PyObject * obj1 = 0 ;
31160 char * kwnames[] = {
31161 (char *) "self",(char *) "count", NULL
31162 };
31163
31164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31166 if (!SWIG_IsOK(res1)) {
31167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31168 }
31169 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31170 ecode2 = SWIG_AsVal_long(obj1, &val2);
31171 if (!SWIG_IsOK(ecode2)) {
31172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31173 }
31174 arg2 = static_cast< long >(val2);
31175 {
31176 PyThreadState* __tstate = wxPyBeginAllowThreads();
31177 (arg1)->SetItemCount(arg2);
31178 wxPyEndAllowThreads(__tstate);
31179 if (PyErr_Occurred()) SWIG_fail;
31180 }
31181 resultobj = SWIG_Py_Void();
31182 return resultobj;
31183 fail:
31184 return NULL;
31185 }
31186
31187
31188 SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31189 PyObject *resultobj = 0;
31190 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31191 int arg2 ;
31192 int arg3 ;
31193 bool result;
31194 void *argp1 = 0 ;
31195 int res1 = 0 ;
31196 int val2 ;
31197 int ecode2 = 0 ;
31198 int val3 ;
31199 int ecode3 = 0 ;
31200 PyObject * obj0 = 0 ;
31201 PyObject * obj1 = 0 ;
31202 PyObject * obj2 = 0 ;
31203 char * kwnames[] = {
31204 (char *) "self",(char *) "dx",(char *) "dy", NULL
31205 };
31206
31207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31209 if (!SWIG_IsOK(res1)) {
31210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31211 }
31212 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31213 ecode2 = SWIG_AsVal_int(obj1, &val2);
31214 if (!SWIG_IsOK(ecode2)) {
31215 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31216 }
31217 arg2 = static_cast< int >(val2);
31218 ecode3 = SWIG_AsVal_int(obj2, &val3);
31219 if (!SWIG_IsOK(ecode3)) {
31220 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31221 }
31222 arg3 = static_cast< int >(val3);
31223 {
31224 PyThreadState* __tstate = wxPyBeginAllowThreads();
31225 result = (bool)(arg1)->ScrollList(arg2,arg3);
31226 wxPyEndAllowThreads(__tstate);
31227 if (PyErr_Occurred()) SWIG_fail;
31228 }
31229 {
31230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31231 }
31232 return resultobj;
31233 fail:
31234 return NULL;
31235 }
31236
31237
31238 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31239 PyObject *resultobj = 0;
31240 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31241 long arg2 ;
31242 wxColour *arg3 = 0 ;
31243 void *argp1 = 0 ;
31244 int res1 = 0 ;
31245 long val2 ;
31246 int ecode2 = 0 ;
31247 wxColour temp3 ;
31248 PyObject * obj0 = 0 ;
31249 PyObject * obj1 = 0 ;
31250 PyObject * obj2 = 0 ;
31251 char * kwnames[] = {
31252 (char *) "self",(char *) "item",(char *) "col", NULL
31253 };
31254
31255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31257 if (!SWIG_IsOK(res1)) {
31258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31259 }
31260 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31261 ecode2 = SWIG_AsVal_long(obj1, &val2);
31262 if (!SWIG_IsOK(ecode2)) {
31263 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31264 }
31265 arg2 = static_cast< long >(val2);
31266 {
31267 arg3 = &temp3;
31268 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31269 }
31270 {
31271 PyThreadState* __tstate = wxPyBeginAllowThreads();
31272 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31273 wxPyEndAllowThreads(__tstate);
31274 if (PyErr_Occurred()) SWIG_fail;
31275 }
31276 resultobj = SWIG_Py_Void();
31277 return resultobj;
31278 fail:
31279 return NULL;
31280 }
31281
31282
31283 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31284 PyObject *resultobj = 0;
31285 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31286 long arg2 ;
31287 wxColour result;
31288 void *argp1 = 0 ;
31289 int res1 = 0 ;
31290 long val2 ;
31291 int ecode2 = 0 ;
31292 PyObject * obj0 = 0 ;
31293 PyObject * obj1 = 0 ;
31294 char * kwnames[] = {
31295 (char *) "self",(char *) "item", NULL
31296 };
31297
31298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31300 if (!SWIG_IsOK(res1)) {
31301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31302 }
31303 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31304 ecode2 = SWIG_AsVal_long(obj1, &val2);
31305 if (!SWIG_IsOK(ecode2)) {
31306 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31307 }
31308 arg2 = static_cast< long >(val2);
31309 {
31310 PyThreadState* __tstate = wxPyBeginAllowThreads();
31311 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31312 wxPyEndAllowThreads(__tstate);
31313 if (PyErr_Occurred()) SWIG_fail;
31314 }
31315 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31316 return resultobj;
31317 fail:
31318 return NULL;
31319 }
31320
31321
31322 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31323 PyObject *resultobj = 0;
31324 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31325 long arg2 ;
31326 wxColour *arg3 = 0 ;
31327 void *argp1 = 0 ;
31328 int res1 = 0 ;
31329 long val2 ;
31330 int ecode2 = 0 ;
31331 wxColour temp3 ;
31332 PyObject * obj0 = 0 ;
31333 PyObject * obj1 = 0 ;
31334 PyObject * obj2 = 0 ;
31335 char * kwnames[] = {
31336 (char *) "self",(char *) "item",(char *) "col", NULL
31337 };
31338
31339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31341 if (!SWIG_IsOK(res1)) {
31342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31343 }
31344 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31345 ecode2 = SWIG_AsVal_long(obj1, &val2);
31346 if (!SWIG_IsOK(ecode2)) {
31347 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31348 }
31349 arg2 = static_cast< long >(val2);
31350 {
31351 arg3 = &temp3;
31352 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31353 }
31354 {
31355 PyThreadState* __tstate = wxPyBeginAllowThreads();
31356 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31357 wxPyEndAllowThreads(__tstate);
31358 if (PyErr_Occurred()) SWIG_fail;
31359 }
31360 resultobj = SWIG_Py_Void();
31361 return resultobj;
31362 fail:
31363 return NULL;
31364 }
31365
31366
31367 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31368 PyObject *resultobj = 0;
31369 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31370 long arg2 ;
31371 wxColour result;
31372 void *argp1 = 0 ;
31373 int res1 = 0 ;
31374 long val2 ;
31375 int ecode2 = 0 ;
31376 PyObject * obj0 = 0 ;
31377 PyObject * obj1 = 0 ;
31378 char * kwnames[] = {
31379 (char *) "self",(char *) "item", NULL
31380 };
31381
31382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31384 if (!SWIG_IsOK(res1)) {
31385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31386 }
31387 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31388 ecode2 = SWIG_AsVal_long(obj1, &val2);
31389 if (!SWIG_IsOK(ecode2)) {
31390 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31391 }
31392 arg2 = static_cast< long >(val2);
31393 {
31394 PyThreadState* __tstate = wxPyBeginAllowThreads();
31395 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31396 wxPyEndAllowThreads(__tstate);
31397 if (PyErr_Occurred()) SWIG_fail;
31398 }
31399 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31400 return resultobj;
31401 fail:
31402 return NULL;
31403 }
31404
31405
31406 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31407 PyObject *resultobj = 0;
31408 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31409 long arg2 ;
31410 wxFont *arg3 = 0 ;
31411 void *argp1 = 0 ;
31412 int res1 = 0 ;
31413 long val2 ;
31414 int ecode2 = 0 ;
31415 void *argp3 = 0 ;
31416 int res3 = 0 ;
31417 PyObject * obj0 = 0 ;
31418 PyObject * obj1 = 0 ;
31419 PyObject * obj2 = 0 ;
31420 char * kwnames[] = {
31421 (char *) "self",(char *) "item",(char *) "f", NULL
31422 };
31423
31424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31426 if (!SWIG_IsOK(res1)) {
31427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31428 }
31429 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31430 ecode2 = SWIG_AsVal_long(obj1, &val2);
31431 if (!SWIG_IsOK(ecode2)) {
31432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31433 }
31434 arg2 = static_cast< long >(val2);
31435 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31436 if (!SWIG_IsOK(res3)) {
31437 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31438 }
31439 if (!argp3) {
31440 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31441 }
31442 arg3 = reinterpret_cast< wxFont * >(argp3);
31443 {
31444 PyThreadState* __tstate = wxPyBeginAllowThreads();
31445 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31446 wxPyEndAllowThreads(__tstate);
31447 if (PyErr_Occurred()) SWIG_fail;
31448 }
31449 resultobj = SWIG_Py_Void();
31450 return resultobj;
31451 fail:
31452 return NULL;
31453 }
31454
31455
31456 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31457 PyObject *resultobj = 0;
31458 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31459 long arg2 ;
31460 wxFont result;
31461 void *argp1 = 0 ;
31462 int res1 = 0 ;
31463 long val2 ;
31464 int ecode2 = 0 ;
31465 PyObject * obj0 = 0 ;
31466 PyObject * obj1 = 0 ;
31467 char * kwnames[] = {
31468 (char *) "self",(char *) "item", NULL
31469 };
31470
31471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31473 if (!SWIG_IsOK(res1)) {
31474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31475 }
31476 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31477 ecode2 = SWIG_AsVal_long(obj1, &val2);
31478 if (!SWIG_IsOK(ecode2)) {
31479 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31480 }
31481 arg2 = static_cast< long >(val2);
31482 {
31483 PyThreadState* __tstate = wxPyBeginAllowThreads();
31484 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31485 wxPyEndAllowThreads(__tstate);
31486 if (PyErr_Occurred()) SWIG_fail;
31487 }
31488 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31489 return resultobj;
31490 fail:
31491 return NULL;
31492 }
31493
31494
31495 SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31496 PyObject *resultobj = 0;
31497 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31498 PyObject *arg2 = (PyObject *) 0 ;
31499 bool result;
31500 void *argp1 = 0 ;
31501 int res1 = 0 ;
31502 PyObject * obj0 = 0 ;
31503 PyObject * obj1 = 0 ;
31504 char * kwnames[] = {
31505 (char *) "self",(char *) "func", NULL
31506 };
31507
31508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31510 if (!SWIG_IsOK(res1)) {
31511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31512 }
31513 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31514 arg2 = obj1;
31515 {
31516 PyThreadState* __tstate = wxPyBeginAllowThreads();
31517 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31518 wxPyEndAllowThreads(__tstate);
31519 if (PyErr_Occurred()) SWIG_fail;
31520 }
31521 {
31522 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31523 }
31524 return resultobj;
31525 fail:
31526 return NULL;
31527 }
31528
31529
31530 SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31531 PyObject *resultobj = 0;
31532 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31533 wxWindow *result = 0 ;
31534 void *argp1 = 0 ;
31535 int res1 = 0 ;
31536 PyObject *swig_obj[1] ;
31537
31538 if (!args) SWIG_fail;
31539 swig_obj[0] = args;
31540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31541 if (!SWIG_IsOK(res1)) {
31542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31543 }
31544 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31545 {
31546 PyThreadState* __tstate = wxPyBeginAllowThreads();
31547 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31548 wxPyEndAllowThreads(__tstate);
31549 if (PyErr_Occurred()) SWIG_fail;
31550 }
31551 {
31552 resultobj = wxPyMake_wxObject(result, 0);
31553 }
31554 return resultobj;
31555 fail:
31556 return NULL;
31557 }
31558
31559
31560 SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31561 PyObject *resultobj = 0;
31562 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
31563 SwigValueWrapper<wxVisualAttributes > result;
31564 int val1 ;
31565 int ecode1 = 0 ;
31566 PyObject * obj0 = 0 ;
31567 char * kwnames[] = {
31568 (char *) "variant", NULL
31569 };
31570
31571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
31572 if (obj0) {
31573 ecode1 = SWIG_AsVal_int(obj0, &val1);
31574 if (!SWIG_IsOK(ecode1)) {
31575 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
31576 }
31577 arg1 = static_cast< wxWindowVariant >(val1);
31578 }
31579 {
31580 if (!wxPyCheckForApp()) SWIG_fail;
31581 PyThreadState* __tstate = wxPyBeginAllowThreads();
31582 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
31583 wxPyEndAllowThreads(__tstate);
31584 if (PyErr_Occurred()) SWIG_fail;
31585 }
31586 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
31587 return resultobj;
31588 fail:
31589 return NULL;
31590 }
31591
31592
31593 SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31594 PyObject *obj;
31595 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31596 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
31597 return SWIG_Py_Void();
31598 }
31599
31600 SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31601 return SWIG_Python_InitShadowInstance(args);
31602 }
31603
31604 SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31605 PyObject *resultobj = 0;
31606 wxWindow *arg1 = (wxWindow *) 0 ;
31607 int arg2 = (int) -1 ;
31608 wxPoint const &arg3_defvalue = wxDefaultPosition ;
31609 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
31610 wxSize const &arg4_defvalue = wxDefaultSize ;
31611 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
31612 long arg5 = (long) wxLC_REPORT ;
31613 wxValidator const &arg6_defvalue = wxDefaultValidator ;
31614 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
31615 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
31616 wxString *arg7 = (wxString *) &arg7_defvalue ;
31617 wxListView *result = 0 ;
31618 void *argp1 = 0 ;
31619 int res1 = 0 ;
31620 int val2 ;
31621 int ecode2 = 0 ;
31622 wxPoint temp3 ;
31623 wxSize temp4 ;
31624 long val5 ;
31625 int ecode5 = 0 ;
31626 void *argp6 = 0 ;
31627 int res6 = 0 ;
31628 bool temp7 = false ;
31629 PyObject * obj0 = 0 ;
31630 PyObject * obj1 = 0 ;
31631 PyObject * obj2 = 0 ;
31632 PyObject * obj3 = 0 ;
31633 PyObject * obj4 = 0 ;
31634 PyObject * obj5 = 0 ;
31635 PyObject * obj6 = 0 ;
31636 char * kwnames[] = {
31637 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31638 };
31639
31640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31642 if (!SWIG_IsOK(res1)) {
31643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
31644 }
31645 arg1 = reinterpret_cast< wxWindow * >(argp1);
31646 if (obj1) {
31647 ecode2 = SWIG_AsVal_int(obj1, &val2);
31648 if (!SWIG_IsOK(ecode2)) {
31649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
31650 }
31651 arg2 = static_cast< int >(val2);
31652 }
31653 if (obj2) {
31654 {
31655 arg3 = &temp3;
31656 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31657 }
31658 }
31659 if (obj3) {
31660 {
31661 arg4 = &temp4;
31662 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
31663 }
31664 }
31665 if (obj4) {
31666 ecode5 = SWIG_AsVal_long(obj4, &val5);
31667 if (!SWIG_IsOK(ecode5)) {
31668 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
31669 }
31670 arg5 = static_cast< long >(val5);
31671 }
31672 if (obj5) {
31673 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
31674 if (!SWIG_IsOK(res6)) {
31675 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31676 }
31677 if (!argp6) {
31678 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31679 }
31680 arg6 = reinterpret_cast< wxValidator * >(argp6);
31681 }
31682 if (obj6) {
31683 {
31684 arg7 = wxString_in_helper(obj6);
31685 if (arg7 == NULL) SWIG_fail;
31686 temp7 = true;
31687 }
31688 }
31689 {
31690 if (!wxPyCheckForApp()) SWIG_fail;
31691 PyThreadState* __tstate = wxPyBeginAllowThreads();
31692 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
31693 wxPyEndAllowThreads(__tstate);
31694 if (PyErr_Occurred()) SWIG_fail;
31695 }
31696 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
31697 {
31698 if (temp7)
31699 delete arg7;
31700 }
31701 return resultobj;
31702 fail:
31703 {
31704 if (temp7)
31705 delete arg7;
31706 }
31707 return NULL;
31708 }
31709
31710
31711 SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31712 PyObject *resultobj = 0;
31713 wxListView *result = 0 ;
31714
31715 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
31716 {
31717 if (!wxPyCheckForApp()) SWIG_fail;
31718 PyThreadState* __tstate = wxPyBeginAllowThreads();
31719 result = (wxListView *)new wxListView();
31720 wxPyEndAllowThreads(__tstate);
31721 if (PyErr_Occurred()) SWIG_fail;
31722 }
31723 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
31724 return resultobj;
31725 fail:
31726 return NULL;
31727 }
31728
31729
31730 SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31731 PyObject *resultobj = 0;
31732 wxListView *arg1 = (wxListView *) 0 ;
31733 wxWindow *arg2 = (wxWindow *) 0 ;
31734 int arg3 = (int) -1 ;
31735 wxPoint const &arg4_defvalue = wxDefaultPosition ;
31736 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
31737 wxSize const &arg5_defvalue = wxDefaultSize ;
31738 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
31739 long arg6 = (long) wxLC_REPORT ;
31740 wxValidator const &arg7_defvalue = wxDefaultValidator ;
31741 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
31742 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
31743 wxString *arg8 = (wxString *) &arg8_defvalue ;
31744 bool result;
31745 void *argp1 = 0 ;
31746 int res1 = 0 ;
31747 void *argp2 = 0 ;
31748 int res2 = 0 ;
31749 int val3 ;
31750 int ecode3 = 0 ;
31751 wxPoint temp4 ;
31752 wxSize temp5 ;
31753 long val6 ;
31754 int ecode6 = 0 ;
31755 void *argp7 = 0 ;
31756 int res7 = 0 ;
31757 bool temp8 = false ;
31758 PyObject * obj0 = 0 ;
31759 PyObject * obj1 = 0 ;
31760 PyObject * obj2 = 0 ;
31761 PyObject * obj3 = 0 ;
31762 PyObject * obj4 = 0 ;
31763 PyObject * obj5 = 0 ;
31764 PyObject * obj6 = 0 ;
31765 PyObject * obj7 = 0 ;
31766 char * kwnames[] = {
31767 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31768 };
31769
31770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31772 if (!SWIG_IsOK(res1)) {
31773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
31774 }
31775 arg1 = reinterpret_cast< wxListView * >(argp1);
31776 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31777 if (!SWIG_IsOK(res2)) {
31778 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
31779 }
31780 arg2 = reinterpret_cast< wxWindow * >(argp2);
31781 if (obj2) {
31782 ecode3 = SWIG_AsVal_int(obj2, &val3);
31783 if (!SWIG_IsOK(ecode3)) {
31784 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
31785 }
31786 arg3 = static_cast< int >(val3);
31787 }
31788 if (obj3) {
31789 {
31790 arg4 = &temp4;
31791 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
31792 }
31793 }
31794 if (obj4) {
31795 {
31796 arg5 = &temp5;
31797 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
31798 }
31799 }
31800 if (obj5) {
31801 ecode6 = SWIG_AsVal_long(obj5, &val6);
31802 if (!SWIG_IsOK(ecode6)) {
31803 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
31804 }
31805 arg6 = static_cast< long >(val6);
31806 }
31807 if (obj6) {
31808 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
31809 if (!SWIG_IsOK(res7)) {
31810 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
31811 }
31812 if (!argp7) {
31813 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
31814 }
31815 arg7 = reinterpret_cast< wxValidator * >(argp7);
31816 }
31817 if (obj7) {
31818 {
31819 arg8 = wxString_in_helper(obj7);
31820 if (arg8 == NULL) SWIG_fail;
31821 temp8 = true;
31822 }
31823 }
31824 {
31825 PyThreadState* __tstate = wxPyBeginAllowThreads();
31826 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
31827 wxPyEndAllowThreads(__tstate);
31828 if (PyErr_Occurred()) SWIG_fail;
31829 }
31830 {
31831 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31832 }
31833 {
31834 if (temp8)
31835 delete arg8;
31836 }
31837 return resultobj;
31838 fail:
31839 {
31840 if (temp8)
31841 delete arg8;
31842 }
31843 return NULL;
31844 }
31845
31846
31847 SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31848 PyObject *resultobj = 0;
31849 wxListView *arg1 = (wxListView *) 0 ;
31850 long arg2 ;
31851 bool arg3 = (bool) true ;
31852 void *argp1 = 0 ;
31853 int res1 = 0 ;
31854 long val2 ;
31855 int ecode2 = 0 ;
31856 bool val3 ;
31857 int ecode3 = 0 ;
31858 PyObject * obj0 = 0 ;
31859 PyObject * obj1 = 0 ;
31860 PyObject * obj2 = 0 ;
31861 char * kwnames[] = {
31862 (char *) "self",(char *) "n",(char *) "on", NULL
31863 };
31864
31865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31867 if (!SWIG_IsOK(res1)) {
31868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
31869 }
31870 arg1 = reinterpret_cast< wxListView * >(argp1);
31871 ecode2 = SWIG_AsVal_long(obj1, &val2);
31872 if (!SWIG_IsOK(ecode2)) {
31873 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
31874 }
31875 arg2 = static_cast< long >(val2);
31876 if (obj2) {
31877 ecode3 = SWIG_AsVal_bool(obj2, &val3);
31878 if (!SWIG_IsOK(ecode3)) {
31879 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
31880 }
31881 arg3 = static_cast< bool >(val3);
31882 }
31883 {
31884 PyThreadState* __tstate = wxPyBeginAllowThreads();
31885 (arg1)->Select(arg2,arg3);
31886 wxPyEndAllowThreads(__tstate);
31887 if (PyErr_Occurred()) SWIG_fail;
31888 }
31889 resultobj = SWIG_Py_Void();
31890 return resultobj;
31891 fail:
31892 return NULL;
31893 }
31894
31895
31896 SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31897 PyObject *resultobj = 0;
31898 wxListView *arg1 = (wxListView *) 0 ;
31899 long arg2 ;
31900 void *argp1 = 0 ;
31901 int res1 = 0 ;
31902 long val2 ;
31903 int ecode2 = 0 ;
31904 PyObject * obj0 = 0 ;
31905 PyObject * obj1 = 0 ;
31906 char * kwnames[] = {
31907 (char *) "self",(char *) "index", NULL
31908 };
31909
31910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
31911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31912 if (!SWIG_IsOK(res1)) {
31913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
31914 }
31915 arg1 = reinterpret_cast< wxListView * >(argp1);
31916 ecode2 = SWIG_AsVal_long(obj1, &val2);
31917 if (!SWIG_IsOK(ecode2)) {
31918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
31919 }
31920 arg2 = static_cast< long >(val2);
31921 {
31922 PyThreadState* __tstate = wxPyBeginAllowThreads();
31923 (arg1)->Focus(arg2);
31924 wxPyEndAllowThreads(__tstate);
31925 if (PyErr_Occurred()) SWIG_fail;
31926 }
31927 resultobj = SWIG_Py_Void();
31928 return resultobj;
31929 fail:
31930 return NULL;
31931 }
31932
31933
31934 SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31935 PyObject *resultobj = 0;
31936 wxListView *arg1 = (wxListView *) 0 ;
31937 long result;
31938 void *argp1 = 0 ;
31939 int res1 = 0 ;
31940 PyObject *swig_obj[1] ;
31941
31942 if (!args) SWIG_fail;
31943 swig_obj[0] = args;
31944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31945 if (!SWIG_IsOK(res1)) {
31946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
31947 }
31948 arg1 = reinterpret_cast< wxListView * >(argp1);
31949 {
31950 PyThreadState* __tstate = wxPyBeginAllowThreads();
31951 result = (long)((wxListView const *)arg1)->GetFocusedItem();
31952 wxPyEndAllowThreads(__tstate);
31953 if (PyErr_Occurred()) SWIG_fail;
31954 }
31955 resultobj = SWIG_From_long(static_cast< long >(result));
31956 return resultobj;
31957 fail:
31958 return NULL;
31959 }
31960
31961
31962 SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31963 PyObject *resultobj = 0;
31964 wxListView *arg1 = (wxListView *) 0 ;
31965 long arg2 ;
31966 long result;
31967 void *argp1 = 0 ;
31968 int res1 = 0 ;
31969 long val2 ;
31970 int ecode2 = 0 ;
31971 PyObject * obj0 = 0 ;
31972 PyObject * obj1 = 0 ;
31973 char * kwnames[] = {
31974 (char *) "self",(char *) "item", NULL
31975 };
31976
31977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
31978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31979 if (!SWIG_IsOK(res1)) {
31980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
31981 }
31982 arg1 = reinterpret_cast< wxListView * >(argp1);
31983 ecode2 = SWIG_AsVal_long(obj1, &val2);
31984 if (!SWIG_IsOK(ecode2)) {
31985 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
31986 }
31987 arg2 = static_cast< long >(val2);
31988 {
31989 PyThreadState* __tstate = wxPyBeginAllowThreads();
31990 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
31991 wxPyEndAllowThreads(__tstate);
31992 if (PyErr_Occurred()) SWIG_fail;
31993 }
31994 resultobj = SWIG_From_long(static_cast< long >(result));
31995 return resultobj;
31996 fail:
31997 return NULL;
31998 }
31999
32000
32001 SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32002 PyObject *resultobj = 0;
32003 wxListView *arg1 = (wxListView *) 0 ;
32004 long result;
32005 void *argp1 = 0 ;
32006 int res1 = 0 ;
32007 PyObject *swig_obj[1] ;
32008
32009 if (!args) SWIG_fail;
32010 swig_obj[0] = args;
32011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32012 if (!SWIG_IsOK(res1)) {
32013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32014 }
32015 arg1 = reinterpret_cast< wxListView * >(argp1);
32016 {
32017 PyThreadState* __tstate = wxPyBeginAllowThreads();
32018 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32019 wxPyEndAllowThreads(__tstate);
32020 if (PyErr_Occurred()) SWIG_fail;
32021 }
32022 resultobj = SWIG_From_long(static_cast< long >(result));
32023 return resultobj;
32024 fail:
32025 return NULL;
32026 }
32027
32028
32029 SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32030 PyObject *resultobj = 0;
32031 wxListView *arg1 = (wxListView *) 0 ;
32032 long arg2 ;
32033 bool result;
32034 void *argp1 = 0 ;
32035 int res1 = 0 ;
32036 long val2 ;
32037 int ecode2 = 0 ;
32038 PyObject * obj0 = 0 ;
32039 PyObject * obj1 = 0 ;
32040 char * kwnames[] = {
32041 (char *) "self",(char *) "index", NULL
32042 };
32043
32044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32046 if (!SWIG_IsOK(res1)) {
32047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32048 }
32049 arg1 = reinterpret_cast< wxListView * >(argp1);
32050 ecode2 = SWIG_AsVal_long(obj1, &val2);
32051 if (!SWIG_IsOK(ecode2)) {
32052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32053 }
32054 arg2 = static_cast< long >(val2);
32055 {
32056 PyThreadState* __tstate = wxPyBeginAllowThreads();
32057 result = (bool)(arg1)->IsSelected(arg2);
32058 wxPyEndAllowThreads(__tstate);
32059 if (PyErr_Occurred()) SWIG_fail;
32060 }
32061 {
32062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32063 }
32064 return resultobj;
32065 fail:
32066 return NULL;
32067 }
32068
32069
32070 SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32071 PyObject *resultobj = 0;
32072 wxListView *arg1 = (wxListView *) 0 ;
32073 int arg2 ;
32074 int arg3 ;
32075 void *argp1 = 0 ;
32076 int res1 = 0 ;
32077 int val2 ;
32078 int ecode2 = 0 ;
32079 int val3 ;
32080 int ecode3 = 0 ;
32081 PyObject * obj0 = 0 ;
32082 PyObject * obj1 = 0 ;
32083 PyObject * obj2 = 0 ;
32084 char * kwnames[] = {
32085 (char *) "self",(char *) "col",(char *) "image", NULL
32086 };
32087
32088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32090 if (!SWIG_IsOK(res1)) {
32091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32092 }
32093 arg1 = reinterpret_cast< wxListView * >(argp1);
32094 ecode2 = SWIG_AsVal_int(obj1, &val2);
32095 if (!SWIG_IsOK(ecode2)) {
32096 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32097 }
32098 arg2 = static_cast< int >(val2);
32099 ecode3 = SWIG_AsVal_int(obj2, &val3);
32100 if (!SWIG_IsOK(ecode3)) {
32101 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32102 }
32103 arg3 = static_cast< int >(val3);
32104 {
32105 PyThreadState* __tstate = wxPyBeginAllowThreads();
32106 (arg1)->SetColumnImage(arg2,arg3);
32107 wxPyEndAllowThreads(__tstate);
32108 if (PyErr_Occurred()) SWIG_fail;
32109 }
32110 resultobj = SWIG_Py_Void();
32111 return resultobj;
32112 fail:
32113 return NULL;
32114 }
32115
32116
32117 SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32118 PyObject *resultobj = 0;
32119 wxListView *arg1 = (wxListView *) 0 ;
32120 int arg2 ;
32121 void *argp1 = 0 ;
32122 int res1 = 0 ;
32123 int val2 ;
32124 int ecode2 = 0 ;
32125 PyObject * obj0 = 0 ;
32126 PyObject * obj1 = 0 ;
32127 char * kwnames[] = {
32128 (char *) "self",(char *) "col", NULL
32129 };
32130
32131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32133 if (!SWIG_IsOK(res1)) {
32134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32135 }
32136 arg1 = reinterpret_cast< wxListView * >(argp1);
32137 ecode2 = SWIG_AsVal_int(obj1, &val2);
32138 if (!SWIG_IsOK(ecode2)) {
32139 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32140 }
32141 arg2 = static_cast< int >(val2);
32142 {
32143 PyThreadState* __tstate = wxPyBeginAllowThreads();
32144 (arg1)->ClearColumnImage(arg2);
32145 wxPyEndAllowThreads(__tstate);
32146 if (PyErr_Occurred()) SWIG_fail;
32147 }
32148 resultobj = SWIG_Py_Void();
32149 return resultobj;
32150 fail:
32151 return NULL;
32152 }
32153
32154
32155 SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32156 PyObject *obj;
32157 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32158 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32159 return SWIG_Py_Void();
32160 }
32161
32162 SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32163 return SWIG_Python_InitShadowInstance(args);
32164 }
32165
32166 SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32167 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32168 return 1;
32169 }
32170
32171
32172 SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32173 PyObject *pyobj = 0;
32174
32175 {
32176 #if wxUSE_UNICODE
32177 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32178 #else
32179 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32180 #endif
32181 }
32182 return pyobj;
32183 }
32184
32185
32186 SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32187 PyObject *resultobj = 0;
32188 wxTreeItemId *result = 0 ;
32189
32190 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32191 {
32192 PyThreadState* __tstate = wxPyBeginAllowThreads();
32193 result = (wxTreeItemId *)new wxTreeItemId();
32194 wxPyEndAllowThreads(__tstate);
32195 if (PyErr_Occurred()) SWIG_fail;
32196 }
32197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32198 return resultobj;
32199 fail:
32200 return NULL;
32201 }
32202
32203
32204 SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32205 PyObject *resultobj = 0;
32206 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32207 void *argp1 = 0 ;
32208 int res1 = 0 ;
32209 PyObject *swig_obj[1] ;
32210
32211 if (!args) SWIG_fail;
32212 swig_obj[0] = args;
32213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32214 if (!SWIG_IsOK(res1)) {
32215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32216 }
32217 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32218 {
32219 PyThreadState* __tstate = wxPyBeginAllowThreads();
32220 delete arg1;
32221
32222 wxPyEndAllowThreads(__tstate);
32223 if (PyErr_Occurred()) SWIG_fail;
32224 }
32225 resultobj = SWIG_Py_Void();
32226 return resultobj;
32227 fail:
32228 return NULL;
32229 }
32230
32231
32232 SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32233 PyObject *resultobj = 0;
32234 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32235 bool result;
32236 void *argp1 = 0 ;
32237 int res1 = 0 ;
32238 PyObject *swig_obj[1] ;
32239
32240 if (!args) SWIG_fail;
32241 swig_obj[0] = args;
32242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32243 if (!SWIG_IsOK(res1)) {
32244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32245 }
32246 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32247 {
32248 PyThreadState* __tstate = wxPyBeginAllowThreads();
32249 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32250 wxPyEndAllowThreads(__tstate);
32251 if (PyErr_Occurred()) SWIG_fail;
32252 }
32253 {
32254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32255 }
32256 return resultobj;
32257 fail:
32258 return NULL;
32259 }
32260
32261
32262 SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32263 PyObject *resultobj = 0;
32264 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32265 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32266 bool result;
32267 void *argp1 = 0 ;
32268 int res1 = 0 ;
32269 void *argp2 = 0 ;
32270 int res2 = 0 ;
32271 PyObject * obj0 = 0 ;
32272 PyObject * obj1 = 0 ;
32273 char * kwnames[] = {
32274 (char *) "self",(char *) "other", NULL
32275 };
32276
32277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32279 if (!SWIG_IsOK(res1)) {
32280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32281 }
32282 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32283 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32284 if (!SWIG_IsOK(res2)) {
32285 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32286 }
32287 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32288 {
32289 PyThreadState* __tstate = wxPyBeginAllowThreads();
32290 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32291 wxPyEndAllowThreads(__tstate);
32292 if (PyErr_Occurred()) SWIG_fail;
32293 }
32294 {
32295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32296 }
32297 return resultobj;
32298 fail:
32299 return NULL;
32300 }
32301
32302
32303 SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32304 PyObject *resultobj = 0;
32305 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32306 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32307 bool result;
32308 void *argp1 = 0 ;
32309 int res1 = 0 ;
32310 void *argp2 = 0 ;
32311 int res2 = 0 ;
32312 PyObject * obj0 = 0 ;
32313 PyObject * obj1 = 0 ;
32314 char * kwnames[] = {
32315 (char *) "self",(char *) "other", NULL
32316 };
32317
32318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32320 if (!SWIG_IsOK(res1)) {
32321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32322 }
32323 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32324 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32325 if (!SWIG_IsOK(res2)) {
32326 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32327 }
32328 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32329 {
32330 PyThreadState* __tstate = wxPyBeginAllowThreads();
32331 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
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_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32345 PyObject *resultobj = 0;
32346 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32347 void *arg2 = (void *) 0 ;
32348 void *argp1 = 0 ;
32349 int res1 = 0 ;
32350 int res2 ;
32351 PyObject *swig_obj[2] ;
32352
32353 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32355 if (!SWIG_IsOK(res1)) {
32356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32357 }
32358 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32359 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32360 if (!SWIG_IsOK(res2)) {
32361 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32362 }
32363 if (arg1) (arg1)->m_pItem = arg2;
32364
32365 resultobj = SWIG_Py_Void();
32366 return resultobj;
32367 fail:
32368 return NULL;
32369 }
32370
32371
32372 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32373 PyObject *resultobj = 0;
32374 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32375 void *result = 0 ;
32376 void *argp1 = 0 ;
32377 int res1 = 0 ;
32378 PyObject *swig_obj[1] ;
32379
32380 if (!args) SWIG_fail;
32381 swig_obj[0] = args;
32382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32383 if (!SWIG_IsOK(res1)) {
32384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32385 }
32386 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32387 result = (void *) ((arg1)->m_pItem);
32388 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32389 return resultobj;
32390 fail:
32391 return NULL;
32392 }
32393
32394
32395 SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32396 PyObject *obj;
32397 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32398 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32399 return SWIG_Py_Void();
32400 }
32401
32402 SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32403 return SWIG_Python_InitShadowInstance(args);
32404 }
32405
32406 SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32407 PyObject *resultobj = 0;
32408 PyObject *arg1 = (PyObject *) NULL ;
32409 wxPyTreeItemData *result = 0 ;
32410 PyObject * obj0 = 0 ;
32411 char * kwnames[] = {
32412 (char *) "obj", NULL
32413 };
32414
32415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32416 if (obj0) {
32417 arg1 = obj0;
32418 }
32419 {
32420 PyThreadState* __tstate = wxPyBeginAllowThreads();
32421 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32422 wxPyEndAllowThreads(__tstate);
32423 if (PyErr_Occurred()) SWIG_fail;
32424 }
32425 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32426 return resultobj;
32427 fail:
32428 return NULL;
32429 }
32430
32431
32432 SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32433 PyObject *resultobj = 0;
32434 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32435 void *argp1 = 0 ;
32436 int res1 = 0 ;
32437 PyObject *swig_obj[1] ;
32438
32439 if (!args) SWIG_fail;
32440 swig_obj[0] = args;
32441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32442 if (!SWIG_IsOK(res1)) {
32443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32444 }
32445 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32446 {
32447 PyThreadState* __tstate = wxPyBeginAllowThreads();
32448 delete arg1;
32449
32450 wxPyEndAllowThreads(__tstate);
32451 if (PyErr_Occurred()) SWIG_fail;
32452 }
32453 resultobj = SWIG_Py_Void();
32454 return resultobj;
32455 fail:
32456 return NULL;
32457 }
32458
32459
32460 SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32461 PyObject *resultobj = 0;
32462 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32463 PyObject *result = 0 ;
32464 void *argp1 = 0 ;
32465 int res1 = 0 ;
32466 PyObject *swig_obj[1] ;
32467
32468 if (!args) SWIG_fail;
32469 swig_obj[0] = args;
32470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32471 if (!SWIG_IsOK(res1)) {
32472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32473 }
32474 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32475 {
32476 PyThreadState* __tstate = wxPyBeginAllowThreads();
32477 result = (PyObject *)(arg1)->GetData();
32478 wxPyEndAllowThreads(__tstate);
32479 if (PyErr_Occurred()) SWIG_fail;
32480 }
32481 resultobj = result;
32482 return resultobj;
32483 fail:
32484 return NULL;
32485 }
32486
32487
32488 SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32489 PyObject *resultobj = 0;
32490 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32491 PyObject *arg2 = (PyObject *) 0 ;
32492 void *argp1 = 0 ;
32493 int res1 = 0 ;
32494 PyObject * obj0 = 0 ;
32495 PyObject * obj1 = 0 ;
32496 char * kwnames[] = {
32497 (char *) "self",(char *) "obj", NULL
32498 };
32499
32500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32502 if (!SWIG_IsOK(res1)) {
32503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32504 }
32505 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32506 arg2 = obj1;
32507 {
32508 PyThreadState* __tstate = wxPyBeginAllowThreads();
32509 (arg1)->SetData(arg2);
32510 wxPyEndAllowThreads(__tstate);
32511 if (PyErr_Occurred()) SWIG_fail;
32512 }
32513 resultobj = SWIG_Py_Void();
32514 return resultobj;
32515 fail:
32516 return NULL;
32517 }
32518
32519
32520 SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32521 PyObject *resultobj = 0;
32522 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32523 wxTreeItemId *result = 0 ;
32524 void *argp1 = 0 ;
32525 int res1 = 0 ;
32526 PyObject *swig_obj[1] ;
32527
32528 if (!args) SWIG_fail;
32529 swig_obj[0] = args;
32530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32531 if (!SWIG_IsOK(res1)) {
32532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32533 }
32534 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32535 {
32536 PyThreadState* __tstate = wxPyBeginAllowThreads();
32537 {
32538 wxTreeItemId const &_result_ref = (arg1)->GetId();
32539 result = (wxTreeItemId *) &_result_ref;
32540 }
32541 wxPyEndAllowThreads(__tstate);
32542 if (PyErr_Occurred()) SWIG_fail;
32543 }
32544 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32545 return resultobj;
32546 fail:
32547 return NULL;
32548 }
32549
32550
32551 SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32552 PyObject *resultobj = 0;
32553 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32554 wxTreeItemId *arg2 = 0 ;
32555 void *argp1 = 0 ;
32556 int res1 = 0 ;
32557 void *argp2 = 0 ;
32558 int res2 = 0 ;
32559 PyObject * obj0 = 0 ;
32560 PyObject * obj1 = 0 ;
32561 char * kwnames[] = {
32562 (char *) "self",(char *) "id", NULL
32563 };
32564
32565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32567 if (!SWIG_IsOK(res1)) {
32568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32569 }
32570 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32571 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32572 if (!SWIG_IsOK(res2)) {
32573 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32574 }
32575 if (!argp2) {
32576 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32577 }
32578 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32579 {
32580 PyThreadState* __tstate = wxPyBeginAllowThreads();
32581 (arg1)->SetId((wxTreeItemId const &)*arg2);
32582 wxPyEndAllowThreads(__tstate);
32583 if (PyErr_Occurred()) SWIG_fail;
32584 }
32585 resultobj = SWIG_Py_Void();
32586 return resultobj;
32587 fail:
32588 return NULL;
32589 }
32590
32591
32592 SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32593 PyObject *resultobj = 0;
32594 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32595 void *argp1 = 0 ;
32596 int res1 = 0 ;
32597 PyObject *swig_obj[1] ;
32598
32599 if (!args) SWIG_fail;
32600 swig_obj[0] = args;
32601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32602 if (!SWIG_IsOK(res1)) {
32603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32604 }
32605 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32606 {
32607 PyThreadState* __tstate = wxPyBeginAllowThreads();
32608 wxPyTreeItemData_Destroy(arg1);
32609 wxPyEndAllowThreads(__tstate);
32610 if (PyErr_Occurred()) SWIG_fail;
32611 }
32612 resultobj = SWIG_Py_Void();
32613 return resultobj;
32614 fail:
32615 return NULL;
32616 }
32617
32618
32619 SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32620 PyObject *obj;
32621 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32622 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
32623 return SWIG_Py_Void();
32624 }
32625
32626 SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32627 return SWIG_Python_InitShadowInstance(args);
32628 }
32629
32630 SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32631 PyObject *resultobj = 0;
32632 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
32633 int arg2 = (int) 0 ;
32634 wxTreeEvent *result = 0 ;
32635 int val1 ;
32636 int ecode1 = 0 ;
32637 int val2 ;
32638 int ecode2 = 0 ;
32639 PyObject * obj0 = 0 ;
32640 PyObject * obj1 = 0 ;
32641 char * kwnames[] = {
32642 (char *) "commandType",(char *) "id", NULL
32643 };
32644
32645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) SWIG_fail;
32646 if (obj0) {
32647 ecode1 = SWIG_AsVal_int(obj0, &val1);
32648 if (!SWIG_IsOK(ecode1)) {
32649 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32650 }
32651 arg1 = static_cast< wxEventType >(val1);
32652 }
32653 if (obj1) {
32654 ecode2 = SWIG_AsVal_int(obj1, &val2);
32655 if (!SWIG_IsOK(ecode2)) {
32656 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
32657 }
32658 arg2 = static_cast< int >(val2);
32659 }
32660 {
32661 PyThreadState* __tstate = wxPyBeginAllowThreads();
32662 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
32663 wxPyEndAllowThreads(__tstate);
32664 if (PyErr_Occurred()) SWIG_fail;
32665 }
32666 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32667 return resultobj;
32668 fail:
32669 return NULL;
32670 }
32671
32672
32673 SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32674 PyObject *resultobj = 0;
32675 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32676 wxTreeItemId result;
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_wxTreeEvent, 0 | 0 );
32684 if (!SWIG_IsOK(res1)) {
32685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32686 }
32687 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32688 {
32689 PyThreadState* __tstate = wxPyBeginAllowThreads();
32690 result = ((wxTreeEvent const *)arg1)->GetItem();
32691 wxPyEndAllowThreads(__tstate);
32692 if (PyErr_Occurred()) SWIG_fail;
32693 }
32694 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32695 return resultobj;
32696 fail:
32697 return NULL;
32698 }
32699
32700
32701 SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32702 PyObject *resultobj = 0;
32703 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32704 wxTreeItemId *arg2 = 0 ;
32705 void *argp1 = 0 ;
32706 int res1 = 0 ;
32707 void *argp2 = 0 ;
32708 int res2 = 0 ;
32709 PyObject * obj0 = 0 ;
32710 PyObject * obj1 = 0 ;
32711 char * kwnames[] = {
32712 (char *) "self",(char *) "item", NULL
32713 };
32714
32715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
32716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32717 if (!SWIG_IsOK(res1)) {
32718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32719 }
32720 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32721 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32722 if (!SWIG_IsOK(res2)) {
32723 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32724 }
32725 if (!argp2) {
32726 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32727 }
32728 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32729 {
32730 PyThreadState* __tstate = wxPyBeginAllowThreads();
32731 (arg1)->SetItem((wxTreeItemId const &)*arg2);
32732 wxPyEndAllowThreads(__tstate);
32733 if (PyErr_Occurred()) SWIG_fail;
32734 }
32735 resultobj = SWIG_Py_Void();
32736 return resultobj;
32737 fail:
32738 return NULL;
32739 }
32740
32741
32742 SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32743 PyObject *resultobj = 0;
32744 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32745 wxTreeItemId result;
32746 void *argp1 = 0 ;
32747 int res1 = 0 ;
32748 PyObject *swig_obj[1] ;
32749
32750 if (!args) SWIG_fail;
32751 swig_obj[0] = args;
32752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32753 if (!SWIG_IsOK(res1)) {
32754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32755 }
32756 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32757 {
32758 PyThreadState* __tstate = wxPyBeginAllowThreads();
32759 result = ((wxTreeEvent const *)arg1)->GetOldItem();
32760 wxPyEndAllowThreads(__tstate);
32761 if (PyErr_Occurred()) SWIG_fail;
32762 }
32763 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32764 return resultobj;
32765 fail:
32766 return NULL;
32767 }
32768
32769
32770 SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32771 PyObject *resultobj = 0;
32772 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32773 wxTreeItemId *arg2 = 0 ;
32774 void *argp1 = 0 ;
32775 int res1 = 0 ;
32776 void *argp2 = 0 ;
32777 int res2 = 0 ;
32778 PyObject * obj0 = 0 ;
32779 PyObject * obj1 = 0 ;
32780 char * kwnames[] = {
32781 (char *) "self",(char *) "item", NULL
32782 };
32783
32784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
32785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32786 if (!SWIG_IsOK(res1)) {
32787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32788 }
32789 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32790 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32791 if (!SWIG_IsOK(res2)) {
32792 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32793 }
32794 if (!argp2) {
32795 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32796 }
32797 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32798 {
32799 PyThreadState* __tstate = wxPyBeginAllowThreads();
32800 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
32801 wxPyEndAllowThreads(__tstate);
32802 if (PyErr_Occurred()) SWIG_fail;
32803 }
32804 resultobj = SWIG_Py_Void();
32805 return resultobj;
32806 fail:
32807 return NULL;
32808 }
32809
32810
32811 SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32812 PyObject *resultobj = 0;
32813 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32814 wxPoint result;
32815 void *argp1 = 0 ;
32816 int res1 = 0 ;
32817 PyObject *swig_obj[1] ;
32818
32819 if (!args) SWIG_fail;
32820 swig_obj[0] = args;
32821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32822 if (!SWIG_IsOK(res1)) {
32823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32824 }
32825 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32826 {
32827 PyThreadState* __tstate = wxPyBeginAllowThreads();
32828 result = ((wxTreeEvent const *)arg1)->GetPoint();
32829 wxPyEndAllowThreads(__tstate);
32830 if (PyErr_Occurred()) SWIG_fail;
32831 }
32832 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
32833 return resultobj;
32834 fail:
32835 return NULL;
32836 }
32837
32838
32839 SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32840 PyObject *resultobj = 0;
32841 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32842 wxPoint *arg2 = 0 ;
32843 void *argp1 = 0 ;
32844 int res1 = 0 ;
32845 wxPoint temp2 ;
32846 PyObject * obj0 = 0 ;
32847 PyObject * obj1 = 0 ;
32848 char * kwnames[] = {
32849 (char *) "self",(char *) "pt", NULL
32850 };
32851
32852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32854 if (!SWIG_IsOK(res1)) {
32855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32856 }
32857 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32858 {
32859 arg2 = &temp2;
32860 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32861 }
32862 {
32863 PyThreadState* __tstate = wxPyBeginAllowThreads();
32864 (arg1)->SetPoint((wxPoint const &)*arg2);
32865 wxPyEndAllowThreads(__tstate);
32866 if (PyErr_Occurred()) SWIG_fail;
32867 }
32868 resultobj = SWIG_Py_Void();
32869 return resultobj;
32870 fail:
32871 return NULL;
32872 }
32873
32874
32875 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32876 PyObject *resultobj = 0;
32877 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32878 wxKeyEvent *result = 0 ;
32879 void *argp1 = 0 ;
32880 int res1 = 0 ;
32881 PyObject *swig_obj[1] ;
32882
32883 if (!args) SWIG_fail;
32884 swig_obj[0] = args;
32885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32886 if (!SWIG_IsOK(res1)) {
32887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32888 }
32889 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32890 {
32891 PyThreadState* __tstate = wxPyBeginAllowThreads();
32892 {
32893 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
32894 result = (wxKeyEvent *) &_result_ref;
32895 }
32896 wxPyEndAllowThreads(__tstate);
32897 if (PyErr_Occurred()) SWIG_fail;
32898 }
32899 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
32900 return resultobj;
32901 fail:
32902 return NULL;
32903 }
32904
32905
32906 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32907 PyObject *resultobj = 0;
32908 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32909 int result;
32910 void *argp1 = 0 ;
32911 int res1 = 0 ;
32912 PyObject *swig_obj[1] ;
32913
32914 if (!args) SWIG_fail;
32915 swig_obj[0] = args;
32916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32917 if (!SWIG_IsOK(res1)) {
32918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32919 }
32920 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32921 {
32922 PyThreadState* __tstate = wxPyBeginAllowThreads();
32923 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
32924 wxPyEndAllowThreads(__tstate);
32925 if (PyErr_Occurred()) SWIG_fail;
32926 }
32927 resultobj = SWIG_From_int(static_cast< int >(result));
32928 return resultobj;
32929 fail:
32930 return NULL;
32931 }
32932
32933
32934 SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32935 PyObject *resultobj = 0;
32936 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32937 wxKeyEvent *arg2 = 0 ;
32938 void *argp1 = 0 ;
32939 int res1 = 0 ;
32940 void *argp2 = 0 ;
32941 int res2 = 0 ;
32942 PyObject * obj0 = 0 ;
32943 PyObject * obj1 = 0 ;
32944 char * kwnames[] = {
32945 (char *) "self",(char *) "evt", NULL
32946 };
32947
32948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
32949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32950 if (!SWIG_IsOK(res1)) {
32951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32952 }
32953 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32954 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
32955 if (!SWIG_IsOK(res2)) {
32956 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
32957 }
32958 if (!argp2) {
32959 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
32960 }
32961 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
32962 {
32963 PyThreadState* __tstate = wxPyBeginAllowThreads();
32964 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
32965 wxPyEndAllowThreads(__tstate);
32966 if (PyErr_Occurred()) SWIG_fail;
32967 }
32968 resultobj = SWIG_Py_Void();
32969 return resultobj;
32970 fail:
32971 return NULL;
32972 }
32973
32974
32975 SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32976 PyObject *resultobj = 0;
32977 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32978 wxString *result = 0 ;
32979 void *argp1 = 0 ;
32980 int res1 = 0 ;
32981 PyObject *swig_obj[1] ;
32982
32983 if (!args) SWIG_fail;
32984 swig_obj[0] = args;
32985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32986 if (!SWIG_IsOK(res1)) {
32987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32988 }
32989 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32990 {
32991 PyThreadState* __tstate = wxPyBeginAllowThreads();
32992 {
32993 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
32994 result = (wxString *) &_result_ref;
32995 }
32996 wxPyEndAllowThreads(__tstate);
32997 if (PyErr_Occurred()) SWIG_fail;
32998 }
32999 {
33000 #if wxUSE_UNICODE
33001 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33002 #else
33003 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33004 #endif
33005 }
33006 return resultobj;
33007 fail:
33008 return NULL;
33009 }
33010
33011
33012 SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33013 PyObject *resultobj = 0;
33014 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33015 wxString *arg2 = 0 ;
33016 void *argp1 = 0 ;
33017 int res1 = 0 ;
33018 bool temp2 = false ;
33019 PyObject * obj0 = 0 ;
33020 PyObject * obj1 = 0 ;
33021 char * kwnames[] = {
33022 (char *) "self",(char *) "label", NULL
33023 };
33024
33025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33027 if (!SWIG_IsOK(res1)) {
33028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33029 }
33030 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33031 {
33032 arg2 = wxString_in_helper(obj1);
33033 if (arg2 == NULL) SWIG_fail;
33034 temp2 = true;
33035 }
33036 {
33037 PyThreadState* __tstate = wxPyBeginAllowThreads();
33038 (arg1)->SetLabel((wxString const &)*arg2);
33039 wxPyEndAllowThreads(__tstate);
33040 if (PyErr_Occurred()) SWIG_fail;
33041 }
33042 resultobj = SWIG_Py_Void();
33043 {
33044 if (temp2)
33045 delete arg2;
33046 }
33047 return resultobj;
33048 fail:
33049 {
33050 if (temp2)
33051 delete arg2;
33052 }
33053 return NULL;
33054 }
33055
33056
33057 SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33058 PyObject *resultobj = 0;
33059 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33060 bool result;
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_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33070 }
33071 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33072 {
33073 PyThreadState* __tstate = wxPyBeginAllowThreads();
33074 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33075 wxPyEndAllowThreads(__tstate);
33076 if (PyErr_Occurred()) SWIG_fail;
33077 }
33078 {
33079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33080 }
33081 return resultobj;
33082 fail:
33083 return NULL;
33084 }
33085
33086
33087 SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33088 PyObject *resultobj = 0;
33089 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33090 bool arg2 ;
33091 void *argp1 = 0 ;
33092 int res1 = 0 ;
33093 bool val2 ;
33094 int ecode2 = 0 ;
33095 PyObject * obj0 = 0 ;
33096 PyObject * obj1 = 0 ;
33097 char * kwnames[] = {
33098 (char *) "self",(char *) "editCancelled", NULL
33099 };
33100
33101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33103 if (!SWIG_IsOK(res1)) {
33104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33105 }
33106 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33107 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33108 if (!SWIG_IsOK(ecode2)) {
33109 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33110 }
33111 arg2 = static_cast< bool >(val2);
33112 {
33113 PyThreadState* __tstate = wxPyBeginAllowThreads();
33114 (arg1)->SetEditCanceled(arg2);
33115 wxPyEndAllowThreads(__tstate);
33116 if (PyErr_Occurred()) SWIG_fail;
33117 }
33118 resultobj = SWIG_Py_Void();
33119 return resultobj;
33120 fail:
33121 return NULL;
33122 }
33123
33124
33125 SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33126 PyObject *resultobj = 0;
33127 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33128 wxString *arg2 = 0 ;
33129 void *argp1 = 0 ;
33130 int res1 = 0 ;
33131 bool temp2 = false ;
33132 PyObject * obj0 = 0 ;
33133 PyObject * obj1 = 0 ;
33134 char * kwnames[] = {
33135 (char *) "self",(char *) "toolTip", NULL
33136 };
33137
33138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33140 if (!SWIG_IsOK(res1)) {
33141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33142 }
33143 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33144 {
33145 arg2 = wxString_in_helper(obj1);
33146 if (arg2 == NULL) SWIG_fail;
33147 temp2 = true;
33148 }
33149 {
33150 PyThreadState* __tstate = wxPyBeginAllowThreads();
33151 (arg1)->SetToolTip((wxString const &)*arg2);
33152 wxPyEndAllowThreads(__tstate);
33153 if (PyErr_Occurred()) SWIG_fail;
33154 }
33155 resultobj = SWIG_Py_Void();
33156 {
33157 if (temp2)
33158 delete arg2;
33159 }
33160 return resultobj;
33161 fail:
33162 {
33163 if (temp2)
33164 delete arg2;
33165 }
33166 return NULL;
33167 }
33168
33169
33170 SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33171 PyObject *resultobj = 0;
33172 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33173 wxString result;
33174 void *argp1 = 0 ;
33175 int res1 = 0 ;
33176 PyObject *swig_obj[1] ;
33177
33178 if (!args) SWIG_fail;
33179 swig_obj[0] = args;
33180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33181 if (!SWIG_IsOK(res1)) {
33182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33183 }
33184 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33185 {
33186 PyThreadState* __tstate = wxPyBeginAllowThreads();
33187 result = (arg1)->GetToolTip();
33188 wxPyEndAllowThreads(__tstate);
33189 if (PyErr_Occurred()) SWIG_fail;
33190 }
33191 {
33192 #if wxUSE_UNICODE
33193 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33194 #else
33195 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33196 #endif
33197 }
33198 return resultobj;
33199 fail:
33200 return NULL;
33201 }
33202
33203
33204 SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33205 PyObject *obj;
33206 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33207 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33208 return SWIG_Py_Void();
33209 }
33210
33211 SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33212 return SWIG_Python_InitShadowInstance(args);
33213 }
33214
33215 SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33216 PyObject *resultobj = 0;
33217 wxWindow *arg1 = (wxWindow *) 0 ;
33218 int arg2 = (int) -1 ;
33219 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33220 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33221 wxSize const &arg4_defvalue = wxDefaultSize ;
33222 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33223 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33224 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33225 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33226 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33227 wxString *arg7 = (wxString *) &arg7_defvalue ;
33228 wxPyTreeCtrl *result = 0 ;
33229 void *argp1 = 0 ;
33230 int res1 = 0 ;
33231 int val2 ;
33232 int ecode2 = 0 ;
33233 wxPoint temp3 ;
33234 wxSize temp4 ;
33235 long val5 ;
33236 int ecode5 = 0 ;
33237 void *argp6 = 0 ;
33238 int res6 = 0 ;
33239 bool temp7 = false ;
33240 PyObject * obj0 = 0 ;
33241 PyObject * obj1 = 0 ;
33242 PyObject * obj2 = 0 ;
33243 PyObject * obj3 = 0 ;
33244 PyObject * obj4 = 0 ;
33245 PyObject * obj5 = 0 ;
33246 PyObject * obj6 = 0 ;
33247 char * kwnames[] = {
33248 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33249 };
33250
33251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33253 if (!SWIG_IsOK(res1)) {
33254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33255 }
33256 arg1 = reinterpret_cast< wxWindow * >(argp1);
33257 if (obj1) {
33258 ecode2 = SWIG_AsVal_int(obj1, &val2);
33259 if (!SWIG_IsOK(ecode2)) {
33260 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33261 }
33262 arg2 = static_cast< int >(val2);
33263 }
33264 if (obj2) {
33265 {
33266 arg3 = &temp3;
33267 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33268 }
33269 }
33270 if (obj3) {
33271 {
33272 arg4 = &temp4;
33273 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
33274 }
33275 }
33276 if (obj4) {
33277 ecode5 = SWIG_AsVal_long(obj4, &val5);
33278 if (!SWIG_IsOK(ecode5)) {
33279 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33280 }
33281 arg5 = static_cast< long >(val5);
33282 }
33283 if (obj5) {
33284 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33285 if (!SWIG_IsOK(res6)) {
33286 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33287 }
33288 if (!argp6) {
33289 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33290 }
33291 arg6 = reinterpret_cast< wxValidator * >(argp6);
33292 }
33293 if (obj6) {
33294 {
33295 arg7 = wxString_in_helper(obj6);
33296 if (arg7 == NULL) SWIG_fail;
33297 temp7 = true;
33298 }
33299 }
33300 {
33301 if (!wxPyCheckForApp()) SWIG_fail;
33302 PyThreadState* __tstate = wxPyBeginAllowThreads();
33303 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33304 wxPyEndAllowThreads(__tstate);
33305 if (PyErr_Occurred()) SWIG_fail;
33306 }
33307 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33308 {
33309 if (temp7)
33310 delete arg7;
33311 }
33312 return resultobj;
33313 fail:
33314 {
33315 if (temp7)
33316 delete arg7;
33317 }
33318 return NULL;
33319 }
33320
33321
33322 SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33323 PyObject *resultobj = 0;
33324 wxPyTreeCtrl *result = 0 ;
33325
33326 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33327 {
33328 if (!wxPyCheckForApp()) SWIG_fail;
33329 PyThreadState* __tstate = wxPyBeginAllowThreads();
33330 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33331 wxPyEndAllowThreads(__tstate);
33332 if (PyErr_Occurred()) SWIG_fail;
33333 }
33334 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33335 return resultobj;
33336 fail:
33337 return NULL;
33338 }
33339
33340
33341 SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33342 PyObject *resultobj = 0;
33343 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33344 wxWindow *arg2 = (wxWindow *) 0 ;
33345 int arg3 = (int) -1 ;
33346 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33347 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33348 wxSize const &arg5_defvalue = wxDefaultSize ;
33349 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33350 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33351 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33352 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33353 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33354 wxString *arg8 = (wxString *) &arg8_defvalue ;
33355 bool result;
33356 void *argp1 = 0 ;
33357 int res1 = 0 ;
33358 void *argp2 = 0 ;
33359 int res2 = 0 ;
33360 int val3 ;
33361 int ecode3 = 0 ;
33362 wxPoint temp4 ;
33363 wxSize temp5 ;
33364 long val6 ;
33365 int ecode6 = 0 ;
33366 void *argp7 = 0 ;
33367 int res7 = 0 ;
33368 bool temp8 = false ;
33369 PyObject * obj0 = 0 ;
33370 PyObject * obj1 = 0 ;
33371 PyObject * obj2 = 0 ;
33372 PyObject * obj3 = 0 ;
33373 PyObject * obj4 = 0 ;
33374 PyObject * obj5 = 0 ;
33375 PyObject * obj6 = 0 ;
33376 PyObject * obj7 = 0 ;
33377 char * kwnames[] = {
33378 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33379 };
33380
33381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33383 if (!SWIG_IsOK(res1)) {
33384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33385 }
33386 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33387 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33388 if (!SWIG_IsOK(res2)) {
33389 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33390 }
33391 arg2 = reinterpret_cast< wxWindow * >(argp2);
33392 if (obj2) {
33393 ecode3 = SWIG_AsVal_int(obj2, &val3);
33394 if (!SWIG_IsOK(ecode3)) {
33395 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33396 }
33397 arg3 = static_cast< int >(val3);
33398 }
33399 if (obj3) {
33400 {
33401 arg4 = &temp4;
33402 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
33403 }
33404 }
33405 if (obj4) {
33406 {
33407 arg5 = &temp5;
33408 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
33409 }
33410 }
33411 if (obj5) {
33412 ecode6 = SWIG_AsVal_long(obj5, &val6);
33413 if (!SWIG_IsOK(ecode6)) {
33414 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33415 }
33416 arg6 = static_cast< long >(val6);
33417 }
33418 if (obj6) {
33419 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33420 if (!SWIG_IsOK(res7)) {
33421 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33422 }
33423 if (!argp7) {
33424 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33425 }
33426 arg7 = reinterpret_cast< wxValidator * >(argp7);
33427 }
33428 if (obj7) {
33429 {
33430 arg8 = wxString_in_helper(obj7);
33431 if (arg8 == NULL) SWIG_fail;
33432 temp8 = true;
33433 }
33434 }
33435 {
33436 PyThreadState* __tstate = wxPyBeginAllowThreads();
33437 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33438 wxPyEndAllowThreads(__tstate);
33439 if (PyErr_Occurred()) SWIG_fail;
33440 }
33441 {
33442 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33443 }
33444 {
33445 if (temp8)
33446 delete arg8;
33447 }
33448 return resultobj;
33449 fail:
33450 {
33451 if (temp8)
33452 delete arg8;
33453 }
33454 return NULL;
33455 }
33456
33457
33458 SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33459 PyObject *resultobj = 0;
33460 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33461 PyObject *arg2 = (PyObject *) 0 ;
33462 PyObject *arg3 = (PyObject *) 0 ;
33463 void *argp1 = 0 ;
33464 int res1 = 0 ;
33465 PyObject * obj0 = 0 ;
33466 PyObject * obj1 = 0 ;
33467 PyObject * obj2 = 0 ;
33468 char * kwnames[] = {
33469 (char *) "self",(char *) "self",(char *) "_class", NULL
33470 };
33471
33472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33474 if (!SWIG_IsOK(res1)) {
33475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33476 }
33477 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33478 arg2 = obj1;
33479 arg3 = obj2;
33480 {
33481 PyThreadState* __tstate = wxPyBeginAllowThreads();
33482 (arg1)->_setCallbackInfo(arg2,arg3);
33483 wxPyEndAllowThreads(__tstate);
33484 if (PyErr_Occurred()) SWIG_fail;
33485 }
33486 resultobj = SWIG_Py_Void();
33487 return resultobj;
33488 fail:
33489 return NULL;
33490 }
33491
33492
33493 SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33494 PyObject *resultobj = 0;
33495 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33496 unsigned int result;
33497 void *argp1 = 0 ;
33498 int res1 = 0 ;
33499 PyObject *swig_obj[1] ;
33500
33501 if (!args) SWIG_fail;
33502 swig_obj[0] = args;
33503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33504 if (!SWIG_IsOK(res1)) {
33505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33506 }
33507 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33508 {
33509 PyThreadState* __tstate = wxPyBeginAllowThreads();
33510 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
33511 wxPyEndAllowThreads(__tstate);
33512 if (PyErr_Occurred()) SWIG_fail;
33513 }
33514 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33515 return resultobj;
33516 fail:
33517 return NULL;
33518 }
33519
33520
33521 SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33522 PyObject *resultobj = 0;
33523 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33524 unsigned int result;
33525 void *argp1 = 0 ;
33526 int res1 = 0 ;
33527 PyObject *swig_obj[1] ;
33528
33529 if (!args) SWIG_fail;
33530 swig_obj[0] = args;
33531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33532 if (!SWIG_IsOK(res1)) {
33533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33534 }
33535 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33536 {
33537 PyThreadState* __tstate = wxPyBeginAllowThreads();
33538 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
33539 wxPyEndAllowThreads(__tstate);
33540 if (PyErr_Occurred()) SWIG_fail;
33541 }
33542 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33543 return resultobj;
33544 fail:
33545 return NULL;
33546 }
33547
33548
33549 SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33550 PyObject *resultobj = 0;
33551 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33552 unsigned int arg2 ;
33553 void *argp1 = 0 ;
33554 int res1 = 0 ;
33555 unsigned int val2 ;
33556 int ecode2 = 0 ;
33557 PyObject * obj0 = 0 ;
33558 PyObject * obj1 = 0 ;
33559 char * kwnames[] = {
33560 (char *) "self",(char *) "indent", NULL
33561 };
33562
33563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
33564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33565 if (!SWIG_IsOK(res1)) {
33566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33567 }
33568 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33569 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33570 if (!SWIG_IsOK(ecode2)) {
33571 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
33572 }
33573 arg2 = static_cast< unsigned int >(val2);
33574 {
33575 PyThreadState* __tstate = wxPyBeginAllowThreads();
33576 (arg1)->SetIndent(arg2);
33577 wxPyEndAllowThreads(__tstate);
33578 if (PyErr_Occurred()) SWIG_fail;
33579 }
33580 resultobj = SWIG_Py_Void();
33581 return resultobj;
33582 fail:
33583 return NULL;
33584 }
33585
33586
33587 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33588 PyObject *resultobj = 0;
33589 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33590 unsigned int result;
33591 void *argp1 = 0 ;
33592 int res1 = 0 ;
33593 PyObject *swig_obj[1] ;
33594
33595 if (!args) SWIG_fail;
33596 swig_obj[0] = args;
33597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33598 if (!SWIG_IsOK(res1)) {
33599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33600 }
33601 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33602 {
33603 PyThreadState* __tstate = wxPyBeginAllowThreads();
33604 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
33605 wxPyEndAllowThreads(__tstate);
33606 if (PyErr_Occurred()) SWIG_fail;
33607 }
33608 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33609 return resultobj;
33610 fail:
33611 return NULL;
33612 }
33613
33614
33615 SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33616 PyObject *resultobj = 0;
33617 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33618 unsigned int arg2 ;
33619 void *argp1 = 0 ;
33620 int res1 = 0 ;
33621 unsigned int val2 ;
33622 int ecode2 = 0 ;
33623 PyObject * obj0 = 0 ;
33624 PyObject * obj1 = 0 ;
33625 char * kwnames[] = {
33626 (char *) "self",(char *) "spacing", NULL
33627 };
33628
33629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
33630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33631 if (!SWIG_IsOK(res1)) {
33632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33633 }
33634 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33635 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33636 if (!SWIG_IsOK(ecode2)) {
33637 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
33638 }
33639 arg2 = static_cast< unsigned int >(val2);
33640 {
33641 PyThreadState* __tstate = wxPyBeginAllowThreads();
33642 (arg1)->SetSpacing(arg2);
33643 wxPyEndAllowThreads(__tstate);
33644 if (PyErr_Occurred()) SWIG_fail;
33645 }
33646 resultobj = SWIG_Py_Void();
33647 return resultobj;
33648 fail:
33649 return NULL;
33650 }
33651
33652
33653 SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33654 PyObject *resultobj = 0;
33655 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33656 wxImageList *result = 0 ;
33657 void *argp1 = 0 ;
33658 int res1 = 0 ;
33659 PyObject *swig_obj[1] ;
33660
33661 if (!args) SWIG_fail;
33662 swig_obj[0] = args;
33663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33664 if (!SWIG_IsOK(res1)) {
33665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33666 }
33667 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33668 {
33669 PyThreadState* __tstate = wxPyBeginAllowThreads();
33670 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
33671 wxPyEndAllowThreads(__tstate);
33672 if (PyErr_Occurred()) SWIG_fail;
33673 }
33674 {
33675 resultobj = wxPyMake_wxObject(result, (bool)0);
33676 }
33677 return resultobj;
33678 fail:
33679 return NULL;
33680 }
33681
33682
33683 SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33684 PyObject *resultobj = 0;
33685 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33686 wxImageList *result = 0 ;
33687 void *argp1 = 0 ;
33688 int res1 = 0 ;
33689 PyObject *swig_obj[1] ;
33690
33691 if (!args) SWIG_fail;
33692 swig_obj[0] = args;
33693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33694 if (!SWIG_IsOK(res1)) {
33695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33696 }
33697 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33698 {
33699 PyThreadState* __tstate = wxPyBeginAllowThreads();
33700 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
33701 wxPyEndAllowThreads(__tstate);
33702 if (PyErr_Occurred()) SWIG_fail;
33703 }
33704 {
33705 resultobj = wxPyMake_wxObject(result, (bool)0);
33706 }
33707 return resultobj;
33708 fail:
33709 return NULL;
33710 }
33711
33712
33713 SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33714 PyObject *resultobj = 0;
33715 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33716 wxImageList *arg2 = (wxImageList *) 0 ;
33717 void *argp1 = 0 ;
33718 int res1 = 0 ;
33719 void *argp2 = 0 ;
33720 int res2 = 0 ;
33721 PyObject * obj0 = 0 ;
33722 PyObject * obj1 = 0 ;
33723 char * kwnames[] = {
33724 (char *) "self",(char *) "imageList", NULL
33725 };
33726
33727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33729 if (!SWIG_IsOK(res1)) {
33730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33731 }
33732 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33733 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33734 if (!SWIG_IsOK(res2)) {
33735 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33736 }
33737 arg2 = reinterpret_cast< wxImageList * >(argp2);
33738 {
33739 PyThreadState* __tstate = wxPyBeginAllowThreads();
33740 (arg1)->SetImageList(arg2);
33741 wxPyEndAllowThreads(__tstate);
33742 if (PyErr_Occurred()) SWIG_fail;
33743 }
33744 resultobj = SWIG_Py_Void();
33745 return resultobj;
33746 fail:
33747 return NULL;
33748 }
33749
33750
33751 SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33752 PyObject *resultobj = 0;
33753 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33754 wxImageList *arg2 = (wxImageList *) 0 ;
33755 void *argp1 = 0 ;
33756 int res1 = 0 ;
33757 void *argp2 = 0 ;
33758 int res2 = 0 ;
33759 PyObject * obj0 = 0 ;
33760 PyObject * obj1 = 0 ;
33761 char * kwnames[] = {
33762 (char *) "self",(char *) "imageList", NULL
33763 };
33764
33765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33767 if (!SWIG_IsOK(res1)) {
33768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33769 }
33770 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33771 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33772 if (!SWIG_IsOK(res2)) {
33773 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33774 }
33775 arg2 = reinterpret_cast< wxImageList * >(argp2);
33776 {
33777 PyThreadState* __tstate = wxPyBeginAllowThreads();
33778 (arg1)->SetStateImageList(arg2);
33779 wxPyEndAllowThreads(__tstate);
33780 if (PyErr_Occurred()) SWIG_fail;
33781 }
33782 resultobj = SWIG_Py_Void();
33783 return resultobj;
33784 fail:
33785 return NULL;
33786 }
33787
33788
33789 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33790 PyObject *resultobj = 0;
33791 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33792 wxImageList *arg2 = (wxImageList *) 0 ;
33793 void *argp1 = 0 ;
33794 int res1 = 0 ;
33795 int res2 = 0 ;
33796 PyObject * obj0 = 0 ;
33797 PyObject * obj1 = 0 ;
33798 char * kwnames[] = {
33799 (char *) "self",(char *) "imageList", NULL
33800 };
33801
33802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33804 if (!SWIG_IsOK(res1)) {
33805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33806 }
33807 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33808 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
33809 if (!SWIG_IsOK(res2)) {
33810 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33811 }
33812 {
33813 PyThreadState* __tstate = wxPyBeginAllowThreads();
33814 (arg1)->AssignImageList(arg2);
33815 wxPyEndAllowThreads(__tstate);
33816 if (PyErr_Occurred()) SWIG_fail;
33817 }
33818 resultobj = SWIG_Py_Void();
33819 return resultobj;
33820 fail:
33821 return NULL;
33822 }
33823
33824
33825 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33826 PyObject *resultobj = 0;
33827 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33828 wxImageList *arg2 = (wxImageList *) 0 ;
33829 void *argp1 = 0 ;
33830 int res1 = 0 ;
33831 int res2 = 0 ;
33832 PyObject * obj0 = 0 ;
33833 PyObject * obj1 = 0 ;
33834 char * kwnames[] = {
33835 (char *) "self",(char *) "imageList", NULL
33836 };
33837
33838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33840 if (!SWIG_IsOK(res1)) {
33841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33842 }
33843 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33844 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
33845 if (!SWIG_IsOK(res2)) {
33846 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33847 }
33848 {
33849 PyThreadState* __tstate = wxPyBeginAllowThreads();
33850 (arg1)->AssignStateImageList(arg2);
33851 wxPyEndAllowThreads(__tstate);
33852 if (PyErr_Occurred()) SWIG_fail;
33853 }
33854 resultobj = SWIG_Py_Void();
33855 return resultobj;
33856 fail:
33857 return NULL;
33858 }
33859
33860
33861 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33862 PyObject *resultobj = 0;
33863 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33864 wxTreeItemId *arg2 = 0 ;
33865 wxString result;
33866 void *argp1 = 0 ;
33867 int res1 = 0 ;
33868 void *argp2 = 0 ;
33869 int res2 = 0 ;
33870 PyObject * obj0 = 0 ;
33871 PyObject * obj1 = 0 ;
33872 char * kwnames[] = {
33873 (char *) "self",(char *) "item", NULL
33874 };
33875
33876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
33877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33878 if (!SWIG_IsOK(res1)) {
33879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33880 }
33881 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33882 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33883 if (!SWIG_IsOK(res2)) {
33884 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33885 }
33886 if (!argp2) {
33887 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33888 }
33889 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33890 {
33891 PyThreadState* __tstate = wxPyBeginAllowThreads();
33892 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
33893 wxPyEndAllowThreads(__tstate);
33894 if (PyErr_Occurred()) SWIG_fail;
33895 }
33896 {
33897 #if wxUSE_UNICODE
33898 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33899 #else
33900 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33901 #endif
33902 }
33903 return resultobj;
33904 fail:
33905 return NULL;
33906 }
33907
33908
33909 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33910 PyObject *resultobj = 0;
33911 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33912 wxTreeItemId *arg2 = 0 ;
33913 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
33914 int result;
33915 void *argp1 = 0 ;
33916 int res1 = 0 ;
33917 void *argp2 = 0 ;
33918 int res2 = 0 ;
33919 int val3 ;
33920 int ecode3 = 0 ;
33921 PyObject * obj0 = 0 ;
33922 PyObject * obj1 = 0 ;
33923 PyObject * obj2 = 0 ;
33924 char * kwnames[] = {
33925 (char *) "self",(char *) "item",(char *) "which", NULL
33926 };
33927
33928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33930 if (!SWIG_IsOK(res1)) {
33931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33932 }
33933 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33934 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33935 if (!SWIG_IsOK(res2)) {
33936 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33937 }
33938 if (!argp2) {
33939 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33940 }
33941 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33942 if (obj2) {
33943 ecode3 = SWIG_AsVal_int(obj2, &val3);
33944 if (!SWIG_IsOK(ecode3)) {
33945 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
33946 }
33947 arg3 = static_cast< wxTreeItemIcon >(val3);
33948 }
33949 {
33950 PyThreadState* __tstate = wxPyBeginAllowThreads();
33951 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
33952 wxPyEndAllowThreads(__tstate);
33953 if (PyErr_Occurred()) SWIG_fail;
33954 }
33955 resultobj = SWIG_From_int(static_cast< int >(result));
33956 return resultobj;
33957 fail:
33958 return NULL;
33959 }
33960
33961
33962 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33963 PyObject *resultobj = 0;
33964 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33965 wxTreeItemId *arg2 = 0 ;
33966 wxPyTreeItemData *result = 0 ;
33967 void *argp1 = 0 ;
33968 int res1 = 0 ;
33969 void *argp2 = 0 ;
33970 int res2 = 0 ;
33971 PyObject * obj0 = 0 ;
33972 PyObject * obj1 = 0 ;
33973 char * kwnames[] = {
33974 (char *) "self",(char *) "item", NULL
33975 };
33976
33977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
33978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33979 if (!SWIG_IsOK(res1)) {
33980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33981 }
33982 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33983 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33984 if (!SWIG_IsOK(res2)) {
33985 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33986 }
33987 if (!argp2) {
33988 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33989 }
33990 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33991 {
33992 PyThreadState* __tstate = wxPyBeginAllowThreads();
33993 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
33994 wxPyEndAllowThreads(__tstate);
33995 if (PyErr_Occurred()) SWIG_fail;
33996 }
33997 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33998 return resultobj;
33999 fail:
34000 return NULL;
34001 }
34002
34003
34004 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34005 PyObject *resultobj = 0;
34006 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34007 wxTreeItemId *arg2 = 0 ;
34008 PyObject *result = 0 ;
34009 void *argp1 = 0 ;
34010 int res1 = 0 ;
34011 void *argp2 = 0 ;
34012 int res2 = 0 ;
34013 PyObject * obj0 = 0 ;
34014 PyObject * obj1 = 0 ;
34015 char * kwnames[] = {
34016 (char *) "self",(char *) "item", NULL
34017 };
34018
34019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34021 if (!SWIG_IsOK(res1)) {
34022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34023 }
34024 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34025 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34026 if (!SWIG_IsOK(res2)) {
34027 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34028 }
34029 if (!argp2) {
34030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34031 }
34032 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34033 {
34034 PyThreadState* __tstate = wxPyBeginAllowThreads();
34035 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34036 wxPyEndAllowThreads(__tstate);
34037 if (PyErr_Occurred()) SWIG_fail;
34038 }
34039 resultobj = result;
34040 return resultobj;
34041 fail:
34042 return NULL;
34043 }
34044
34045
34046 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34047 PyObject *resultobj = 0;
34048 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34049 wxTreeItemId *arg2 = 0 ;
34050 wxColour result;
34051 void *argp1 = 0 ;
34052 int res1 = 0 ;
34053 void *argp2 = 0 ;
34054 int res2 = 0 ;
34055 PyObject * obj0 = 0 ;
34056 PyObject * obj1 = 0 ;
34057 char * kwnames[] = {
34058 (char *) "self",(char *) "item", NULL
34059 };
34060
34061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34063 if (!SWIG_IsOK(res1)) {
34064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34065 }
34066 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34067 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34068 if (!SWIG_IsOK(res2)) {
34069 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34070 }
34071 if (!argp2) {
34072 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34073 }
34074 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34075 {
34076 PyThreadState* __tstate = wxPyBeginAllowThreads();
34077 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34078 wxPyEndAllowThreads(__tstate);
34079 if (PyErr_Occurred()) SWIG_fail;
34080 }
34081 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34082 return resultobj;
34083 fail:
34084 return NULL;
34085 }
34086
34087
34088 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34089 PyObject *resultobj = 0;
34090 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34091 wxTreeItemId *arg2 = 0 ;
34092 wxColour result;
34093 void *argp1 = 0 ;
34094 int res1 = 0 ;
34095 void *argp2 = 0 ;
34096 int res2 = 0 ;
34097 PyObject * obj0 = 0 ;
34098 PyObject * obj1 = 0 ;
34099 char * kwnames[] = {
34100 (char *) "self",(char *) "item", NULL
34101 };
34102
34103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34105 if (!SWIG_IsOK(res1)) {
34106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34107 }
34108 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34109 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34110 if (!SWIG_IsOK(res2)) {
34111 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34112 }
34113 if (!argp2) {
34114 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34115 }
34116 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34117 {
34118 PyThreadState* __tstate = wxPyBeginAllowThreads();
34119 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34120 wxPyEndAllowThreads(__tstate);
34121 if (PyErr_Occurred()) SWIG_fail;
34122 }
34123 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34124 return resultobj;
34125 fail:
34126 return NULL;
34127 }
34128
34129
34130 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34131 PyObject *resultobj = 0;
34132 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34133 wxTreeItemId *arg2 = 0 ;
34134 wxFont result;
34135 void *argp1 = 0 ;
34136 int res1 = 0 ;
34137 void *argp2 = 0 ;
34138 int res2 = 0 ;
34139 PyObject * obj0 = 0 ;
34140 PyObject * obj1 = 0 ;
34141 char * kwnames[] = {
34142 (char *) "self",(char *) "item", NULL
34143 };
34144
34145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34147 if (!SWIG_IsOK(res1)) {
34148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34149 }
34150 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34151 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34152 if (!SWIG_IsOK(res2)) {
34153 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34154 }
34155 if (!argp2) {
34156 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34157 }
34158 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34159 {
34160 PyThreadState* __tstate = wxPyBeginAllowThreads();
34161 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34162 wxPyEndAllowThreads(__tstate);
34163 if (PyErr_Occurred()) SWIG_fail;
34164 }
34165 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34166 return resultobj;
34167 fail:
34168 return NULL;
34169 }
34170
34171
34172 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34173 PyObject *resultobj = 0;
34174 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34175 wxTreeItemId *arg2 = 0 ;
34176 wxString *arg3 = 0 ;
34177 void *argp1 = 0 ;
34178 int res1 = 0 ;
34179 void *argp2 = 0 ;
34180 int res2 = 0 ;
34181 bool temp3 = false ;
34182 PyObject * obj0 = 0 ;
34183 PyObject * obj1 = 0 ;
34184 PyObject * obj2 = 0 ;
34185 char * kwnames[] = {
34186 (char *) "self",(char *) "item",(char *) "text", NULL
34187 };
34188
34189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34191 if (!SWIG_IsOK(res1)) {
34192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34193 }
34194 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34195 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34196 if (!SWIG_IsOK(res2)) {
34197 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34198 }
34199 if (!argp2) {
34200 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34201 }
34202 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34203 {
34204 arg3 = wxString_in_helper(obj2);
34205 if (arg3 == NULL) SWIG_fail;
34206 temp3 = true;
34207 }
34208 {
34209 PyThreadState* __tstate = wxPyBeginAllowThreads();
34210 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34211 wxPyEndAllowThreads(__tstate);
34212 if (PyErr_Occurred()) SWIG_fail;
34213 }
34214 resultobj = SWIG_Py_Void();
34215 {
34216 if (temp3)
34217 delete arg3;
34218 }
34219 return resultobj;
34220 fail:
34221 {
34222 if (temp3)
34223 delete arg3;
34224 }
34225 return NULL;
34226 }
34227
34228
34229 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34230 PyObject *resultobj = 0;
34231 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34232 wxTreeItemId *arg2 = 0 ;
34233 int arg3 ;
34234 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34235 void *argp1 = 0 ;
34236 int res1 = 0 ;
34237 void *argp2 = 0 ;
34238 int res2 = 0 ;
34239 int val3 ;
34240 int ecode3 = 0 ;
34241 int val4 ;
34242 int ecode4 = 0 ;
34243 PyObject * obj0 = 0 ;
34244 PyObject * obj1 = 0 ;
34245 PyObject * obj2 = 0 ;
34246 PyObject * obj3 = 0 ;
34247 char * kwnames[] = {
34248 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34249 };
34250
34251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34253 if (!SWIG_IsOK(res1)) {
34254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34255 }
34256 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34257 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34258 if (!SWIG_IsOK(res2)) {
34259 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34260 }
34261 if (!argp2) {
34262 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34263 }
34264 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34265 ecode3 = SWIG_AsVal_int(obj2, &val3);
34266 if (!SWIG_IsOK(ecode3)) {
34267 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34268 }
34269 arg3 = static_cast< int >(val3);
34270 if (obj3) {
34271 ecode4 = SWIG_AsVal_int(obj3, &val4);
34272 if (!SWIG_IsOK(ecode4)) {
34273 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34274 }
34275 arg4 = static_cast< wxTreeItemIcon >(val4);
34276 }
34277 {
34278 PyThreadState* __tstate = wxPyBeginAllowThreads();
34279 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34280 wxPyEndAllowThreads(__tstate);
34281 if (PyErr_Occurred()) SWIG_fail;
34282 }
34283 resultobj = SWIG_Py_Void();
34284 return resultobj;
34285 fail:
34286 return NULL;
34287 }
34288
34289
34290 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34291 PyObject *resultobj = 0;
34292 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34293 wxTreeItemId *arg2 = 0 ;
34294 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34295 void *argp1 = 0 ;
34296 int res1 = 0 ;
34297 void *argp2 = 0 ;
34298 int res2 = 0 ;
34299 int res3 = 0 ;
34300 PyObject * obj0 = 0 ;
34301 PyObject * obj1 = 0 ;
34302 PyObject * obj2 = 0 ;
34303 char * kwnames[] = {
34304 (char *) "self",(char *) "item",(char *) "data", NULL
34305 };
34306
34307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34309 if (!SWIG_IsOK(res1)) {
34310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34311 }
34312 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34313 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34314 if (!SWIG_IsOK(res2)) {
34315 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34316 }
34317 if (!argp2) {
34318 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34319 }
34320 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34321 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34322 if (!SWIG_IsOK(res3)) {
34323 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34324 }
34325 {
34326 PyThreadState* __tstate = wxPyBeginAllowThreads();
34327 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34328 wxPyEndAllowThreads(__tstate);
34329 if (PyErr_Occurred()) SWIG_fail;
34330 }
34331 resultobj = SWIG_Py_Void();
34332 return resultobj;
34333 fail:
34334 return NULL;
34335 }
34336
34337
34338 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34339 PyObject *resultobj = 0;
34340 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34341 wxTreeItemId *arg2 = 0 ;
34342 PyObject *arg3 = (PyObject *) 0 ;
34343 void *argp1 = 0 ;
34344 int res1 = 0 ;
34345 void *argp2 = 0 ;
34346 int res2 = 0 ;
34347 PyObject * obj0 = 0 ;
34348 PyObject * obj1 = 0 ;
34349 PyObject * obj2 = 0 ;
34350 char * kwnames[] = {
34351 (char *) "self",(char *) "item",(char *) "obj", NULL
34352 };
34353
34354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34356 if (!SWIG_IsOK(res1)) {
34357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34358 }
34359 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34360 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34361 if (!SWIG_IsOK(res2)) {
34362 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34363 }
34364 if (!argp2) {
34365 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34366 }
34367 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34368 arg3 = obj2;
34369 {
34370 PyThreadState* __tstate = wxPyBeginAllowThreads();
34371 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34372 wxPyEndAllowThreads(__tstate);
34373 if (PyErr_Occurred()) SWIG_fail;
34374 }
34375 resultobj = SWIG_Py_Void();
34376 return resultobj;
34377 fail:
34378 return NULL;
34379 }
34380
34381
34382 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34383 PyObject *resultobj = 0;
34384 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34385 wxTreeItemId *arg2 = 0 ;
34386 bool arg3 = (bool) true ;
34387 void *argp1 = 0 ;
34388 int res1 = 0 ;
34389 void *argp2 = 0 ;
34390 int res2 = 0 ;
34391 bool val3 ;
34392 int ecode3 = 0 ;
34393 PyObject * obj0 = 0 ;
34394 PyObject * obj1 = 0 ;
34395 PyObject * obj2 = 0 ;
34396 char * kwnames[] = {
34397 (char *) "self",(char *) "item",(char *) "has", NULL
34398 };
34399
34400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34402 if (!SWIG_IsOK(res1)) {
34403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34404 }
34405 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34406 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34407 if (!SWIG_IsOK(res2)) {
34408 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34409 }
34410 if (!argp2) {
34411 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34412 }
34413 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34414 if (obj2) {
34415 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34416 if (!SWIG_IsOK(ecode3)) {
34417 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34418 }
34419 arg3 = static_cast< bool >(val3);
34420 }
34421 {
34422 PyThreadState* __tstate = wxPyBeginAllowThreads();
34423 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34424 wxPyEndAllowThreads(__tstate);
34425 if (PyErr_Occurred()) SWIG_fail;
34426 }
34427 resultobj = SWIG_Py_Void();
34428 return resultobj;
34429 fail:
34430 return NULL;
34431 }
34432
34433
34434 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34435 PyObject *resultobj = 0;
34436 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34437 wxTreeItemId *arg2 = 0 ;
34438 bool arg3 = (bool) true ;
34439 void *argp1 = 0 ;
34440 int res1 = 0 ;
34441 void *argp2 = 0 ;
34442 int res2 = 0 ;
34443 bool val3 ;
34444 int ecode3 = 0 ;
34445 PyObject * obj0 = 0 ;
34446 PyObject * obj1 = 0 ;
34447 PyObject * obj2 = 0 ;
34448 char * kwnames[] = {
34449 (char *) "self",(char *) "item",(char *) "bold", NULL
34450 };
34451
34452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34454 if (!SWIG_IsOK(res1)) {
34455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34456 }
34457 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34458 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34459 if (!SWIG_IsOK(res2)) {
34460 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34461 }
34462 if (!argp2) {
34463 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34464 }
34465 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34466 if (obj2) {
34467 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34468 if (!SWIG_IsOK(ecode3)) {
34469 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
34470 }
34471 arg3 = static_cast< bool >(val3);
34472 }
34473 {
34474 PyThreadState* __tstate = wxPyBeginAllowThreads();
34475 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
34476 wxPyEndAllowThreads(__tstate);
34477 if (PyErr_Occurred()) SWIG_fail;
34478 }
34479 resultobj = SWIG_Py_Void();
34480 return resultobj;
34481 fail:
34482 return NULL;
34483 }
34484
34485
34486 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34487 PyObject *resultobj = 0;
34488 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34489 wxTreeItemId *arg2 = 0 ;
34490 bool arg3 = (bool) true ;
34491 void *argp1 = 0 ;
34492 int res1 = 0 ;
34493 void *argp2 = 0 ;
34494 int res2 = 0 ;
34495 bool val3 ;
34496 int ecode3 = 0 ;
34497 PyObject * obj0 = 0 ;
34498 PyObject * obj1 = 0 ;
34499 PyObject * obj2 = 0 ;
34500 char * kwnames[] = {
34501 (char *) "self",(char *) "item",(char *) "highlight", NULL
34502 };
34503
34504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34506 if (!SWIG_IsOK(res1)) {
34507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34508 }
34509 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34510 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34511 if (!SWIG_IsOK(res2)) {
34512 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34513 }
34514 if (!argp2) {
34515 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34516 }
34517 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34518 if (obj2) {
34519 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34520 if (!SWIG_IsOK(ecode3)) {
34521 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
34522 }
34523 arg3 = static_cast< bool >(val3);
34524 }
34525 {
34526 PyThreadState* __tstate = wxPyBeginAllowThreads();
34527 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
34528 wxPyEndAllowThreads(__tstate);
34529 if (PyErr_Occurred()) SWIG_fail;
34530 }
34531 resultobj = SWIG_Py_Void();
34532 return resultobj;
34533 fail:
34534 return NULL;
34535 }
34536
34537
34538 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34539 PyObject *resultobj = 0;
34540 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34541 wxTreeItemId *arg2 = 0 ;
34542 wxColour *arg3 = 0 ;
34543 void *argp1 = 0 ;
34544 int res1 = 0 ;
34545 void *argp2 = 0 ;
34546 int res2 = 0 ;
34547 wxColour temp3 ;
34548 PyObject * obj0 = 0 ;
34549 PyObject * obj1 = 0 ;
34550 PyObject * obj2 = 0 ;
34551 char * kwnames[] = {
34552 (char *) "self",(char *) "item",(char *) "col", NULL
34553 };
34554
34555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34557 if (!SWIG_IsOK(res1)) {
34558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34559 }
34560 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34561 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34562 if (!SWIG_IsOK(res2)) {
34563 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34564 }
34565 if (!argp2) {
34566 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34567 }
34568 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34569 {
34570 arg3 = &temp3;
34571 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34572 }
34573 {
34574 PyThreadState* __tstate = wxPyBeginAllowThreads();
34575 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34576 wxPyEndAllowThreads(__tstate);
34577 if (PyErr_Occurred()) SWIG_fail;
34578 }
34579 resultobj = SWIG_Py_Void();
34580 return resultobj;
34581 fail:
34582 return NULL;
34583 }
34584
34585
34586 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34587 PyObject *resultobj = 0;
34588 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34589 wxTreeItemId *arg2 = 0 ;
34590 wxColour *arg3 = 0 ;
34591 void *argp1 = 0 ;
34592 int res1 = 0 ;
34593 void *argp2 = 0 ;
34594 int res2 = 0 ;
34595 wxColour temp3 ;
34596 PyObject * obj0 = 0 ;
34597 PyObject * obj1 = 0 ;
34598 PyObject * obj2 = 0 ;
34599 char * kwnames[] = {
34600 (char *) "self",(char *) "item",(char *) "col", NULL
34601 };
34602
34603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34605 if (!SWIG_IsOK(res1)) {
34606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34607 }
34608 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34609 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34610 if (!SWIG_IsOK(res2)) {
34611 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34612 }
34613 if (!argp2) {
34614 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34615 }
34616 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34617 {
34618 arg3 = &temp3;
34619 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34620 }
34621 {
34622 PyThreadState* __tstate = wxPyBeginAllowThreads();
34623 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34624 wxPyEndAllowThreads(__tstate);
34625 if (PyErr_Occurred()) SWIG_fail;
34626 }
34627 resultobj = SWIG_Py_Void();
34628 return resultobj;
34629 fail:
34630 return NULL;
34631 }
34632
34633
34634 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34635 PyObject *resultobj = 0;
34636 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34637 wxTreeItemId *arg2 = 0 ;
34638 wxFont *arg3 = 0 ;
34639 void *argp1 = 0 ;
34640 int res1 = 0 ;
34641 void *argp2 = 0 ;
34642 int res2 = 0 ;
34643 void *argp3 = 0 ;
34644 int res3 = 0 ;
34645 PyObject * obj0 = 0 ;
34646 PyObject * obj1 = 0 ;
34647 PyObject * obj2 = 0 ;
34648 char * kwnames[] = {
34649 (char *) "self",(char *) "item",(char *) "font", NULL
34650 };
34651
34652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34654 if (!SWIG_IsOK(res1)) {
34655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34656 }
34657 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34658 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34659 if (!SWIG_IsOK(res2)) {
34660 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34661 }
34662 if (!argp2) {
34663 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34664 }
34665 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34666 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
34667 if (!SWIG_IsOK(res3)) {
34668 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34669 }
34670 if (!argp3) {
34671 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34672 }
34673 arg3 = reinterpret_cast< wxFont * >(argp3);
34674 {
34675 PyThreadState* __tstate = wxPyBeginAllowThreads();
34676 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
34677 wxPyEndAllowThreads(__tstate);
34678 if (PyErr_Occurred()) SWIG_fail;
34679 }
34680 resultobj = SWIG_Py_Void();
34681 return resultobj;
34682 fail:
34683 return NULL;
34684 }
34685
34686
34687 SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34688 PyObject *resultobj = 0;
34689 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34690 wxTreeItemId *arg2 = 0 ;
34691 bool result;
34692 void *argp1 = 0 ;
34693 int res1 = 0 ;
34694 void *argp2 = 0 ;
34695 int res2 = 0 ;
34696 PyObject * obj0 = 0 ;
34697 PyObject * obj1 = 0 ;
34698 char * kwnames[] = {
34699 (char *) "self",(char *) "item", NULL
34700 };
34701
34702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
34703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34704 if (!SWIG_IsOK(res1)) {
34705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34706 }
34707 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34708 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34709 if (!SWIG_IsOK(res2)) {
34710 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34711 }
34712 if (!argp2) {
34713 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34714 }
34715 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34716 {
34717 PyThreadState* __tstate = wxPyBeginAllowThreads();
34718 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
34719 wxPyEndAllowThreads(__tstate);
34720 if (PyErr_Occurred()) SWIG_fail;
34721 }
34722 {
34723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34724 }
34725 return resultobj;
34726 fail:
34727 return NULL;
34728 }
34729
34730
34731 SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34732 PyObject *resultobj = 0;
34733 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34734 wxTreeItemId *arg2 = 0 ;
34735 bool result;
34736 void *argp1 = 0 ;
34737 int res1 = 0 ;
34738 void *argp2 = 0 ;
34739 int res2 = 0 ;
34740 PyObject * obj0 = 0 ;
34741 PyObject * obj1 = 0 ;
34742 char * kwnames[] = {
34743 (char *) "self",(char *) "item", NULL
34744 };
34745
34746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
34747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34748 if (!SWIG_IsOK(res1)) {
34749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34750 }
34751 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34752 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34753 if (!SWIG_IsOK(res2)) {
34754 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34755 }
34756 if (!argp2) {
34757 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34758 }
34759 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34760 {
34761 PyThreadState* __tstate = wxPyBeginAllowThreads();
34762 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
34763 wxPyEndAllowThreads(__tstate);
34764 if (PyErr_Occurred()) SWIG_fail;
34765 }
34766 {
34767 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34768 }
34769 return resultobj;
34770 fail:
34771 return NULL;
34772 }
34773
34774
34775 SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34776 PyObject *resultobj = 0;
34777 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34778 wxTreeItemId *arg2 = 0 ;
34779 bool result;
34780 void *argp1 = 0 ;
34781 int res1 = 0 ;
34782 void *argp2 = 0 ;
34783 int res2 = 0 ;
34784 PyObject * obj0 = 0 ;
34785 PyObject * obj1 = 0 ;
34786 char * kwnames[] = {
34787 (char *) "self",(char *) "item", NULL
34788 };
34789
34790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
34791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34792 if (!SWIG_IsOK(res1)) {
34793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34794 }
34795 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34796 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34797 if (!SWIG_IsOK(res2)) {
34798 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34799 }
34800 if (!argp2) {
34801 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34802 }
34803 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34804 {
34805 PyThreadState* __tstate = wxPyBeginAllowThreads();
34806 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
34807 wxPyEndAllowThreads(__tstate);
34808 if (PyErr_Occurred()) SWIG_fail;
34809 }
34810 {
34811 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34812 }
34813 return resultobj;
34814 fail:
34815 return NULL;
34816 }
34817
34818
34819 SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34820 PyObject *resultobj = 0;
34821 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34822 wxTreeItemId *arg2 = 0 ;
34823 bool result;
34824 void *argp1 = 0 ;
34825 int res1 = 0 ;
34826 void *argp2 = 0 ;
34827 int res2 = 0 ;
34828 PyObject * obj0 = 0 ;
34829 PyObject * obj1 = 0 ;
34830 char * kwnames[] = {
34831 (char *) "self",(char *) "item", NULL
34832 };
34833
34834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
34835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34836 if (!SWIG_IsOK(res1)) {
34837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34838 }
34839 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34840 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34841 if (!SWIG_IsOK(res2)) {
34842 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34843 }
34844 if (!argp2) {
34845 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34846 }
34847 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34848 {
34849 PyThreadState* __tstate = wxPyBeginAllowThreads();
34850 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
34851 wxPyEndAllowThreads(__tstate);
34852 if (PyErr_Occurred()) SWIG_fail;
34853 }
34854 {
34855 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34856 }
34857 return resultobj;
34858 fail:
34859 return NULL;
34860 }
34861
34862
34863 SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34864 PyObject *resultobj = 0;
34865 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34866 wxTreeItemId *arg2 = 0 ;
34867 bool result;
34868 void *argp1 = 0 ;
34869 int res1 = 0 ;
34870 void *argp2 = 0 ;
34871 int res2 = 0 ;
34872 PyObject * obj0 = 0 ;
34873 PyObject * obj1 = 0 ;
34874 char * kwnames[] = {
34875 (char *) "self",(char *) "item", NULL
34876 };
34877
34878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
34879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34880 if (!SWIG_IsOK(res1)) {
34881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34882 }
34883 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34884 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34885 if (!SWIG_IsOK(res2)) {
34886 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34887 }
34888 if (!argp2) {
34889 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34890 }
34891 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34892 {
34893 PyThreadState* __tstate = wxPyBeginAllowThreads();
34894 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
34895 wxPyEndAllowThreads(__tstate);
34896 if (PyErr_Occurred()) SWIG_fail;
34897 }
34898 {
34899 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34900 }
34901 return resultobj;
34902 fail:
34903 return NULL;
34904 }
34905
34906
34907 SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34908 PyObject *resultobj = 0;
34909 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34910 wxTreeItemId *arg2 = 0 ;
34911 bool arg3 = (bool) true ;
34912 size_t result;
34913 void *argp1 = 0 ;
34914 int res1 = 0 ;
34915 void *argp2 = 0 ;
34916 int res2 = 0 ;
34917 bool val3 ;
34918 int ecode3 = 0 ;
34919 PyObject * obj0 = 0 ;
34920 PyObject * obj1 = 0 ;
34921 PyObject * obj2 = 0 ;
34922 char * kwnames[] = {
34923 (char *) "self",(char *) "item",(char *) "recursively", NULL
34924 };
34925
34926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34928 if (!SWIG_IsOK(res1)) {
34929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34930 }
34931 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34932 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34933 if (!SWIG_IsOK(res2)) {
34934 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34935 }
34936 if (!argp2) {
34937 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34938 }
34939 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34940 if (obj2) {
34941 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34942 if (!SWIG_IsOK(ecode3)) {
34943 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
34944 }
34945 arg3 = static_cast< bool >(val3);
34946 }
34947 {
34948 PyThreadState* __tstate = wxPyBeginAllowThreads();
34949 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
34950 wxPyEndAllowThreads(__tstate);
34951 if (PyErr_Occurred()) SWIG_fail;
34952 }
34953 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
34954 return resultobj;
34955 fail:
34956 return NULL;
34957 }
34958
34959
34960 SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34961 PyObject *resultobj = 0;
34962 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34963 wxTreeItemId result;
34964 void *argp1 = 0 ;
34965 int res1 = 0 ;
34966 PyObject *swig_obj[1] ;
34967
34968 if (!args) SWIG_fail;
34969 swig_obj[0] = args;
34970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34971 if (!SWIG_IsOK(res1)) {
34972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34973 }
34974 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34975 {
34976 PyThreadState* __tstate = wxPyBeginAllowThreads();
34977 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
34978 wxPyEndAllowThreads(__tstate);
34979 if (PyErr_Occurred()) SWIG_fail;
34980 }
34981 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
34982 return resultobj;
34983 fail:
34984 return NULL;
34985 }
34986
34987
34988 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34989 PyObject *resultobj = 0;
34990 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34991 wxTreeItemId result;
34992 void *argp1 = 0 ;
34993 int res1 = 0 ;
34994 PyObject *swig_obj[1] ;
34995
34996 if (!args) SWIG_fail;
34997 swig_obj[0] = args;
34998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34999 if (!SWIG_IsOK(res1)) {
35000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35001 }
35002 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35003 {
35004 PyThreadState* __tstate = wxPyBeginAllowThreads();
35005 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35006 wxPyEndAllowThreads(__tstate);
35007 if (PyErr_Occurred()) SWIG_fail;
35008 }
35009 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35010 return resultobj;
35011 fail:
35012 return NULL;
35013 }
35014
35015
35016 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35017 PyObject *resultobj = 0;
35018 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35019 PyObject *result = 0 ;
35020 void *argp1 = 0 ;
35021 int res1 = 0 ;
35022 PyObject *swig_obj[1] ;
35023
35024 if (!args) SWIG_fail;
35025 swig_obj[0] = args;
35026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35027 if (!SWIG_IsOK(res1)) {
35028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35029 }
35030 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35031 {
35032 PyThreadState* __tstate = wxPyBeginAllowThreads();
35033 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35034 wxPyEndAllowThreads(__tstate);
35035 if (PyErr_Occurred()) SWIG_fail;
35036 }
35037 resultobj = result;
35038 return resultobj;
35039 fail:
35040 return NULL;
35041 }
35042
35043
35044 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35045 PyObject *resultobj = 0;
35046 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35047 wxTreeItemId *arg2 = 0 ;
35048 wxTreeItemId result;
35049 void *argp1 = 0 ;
35050 int res1 = 0 ;
35051 void *argp2 = 0 ;
35052 int res2 = 0 ;
35053 PyObject * obj0 = 0 ;
35054 PyObject * obj1 = 0 ;
35055 char * kwnames[] = {
35056 (char *) "self",(char *) "item", NULL
35057 };
35058
35059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35061 if (!SWIG_IsOK(res1)) {
35062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35063 }
35064 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35065 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35066 if (!SWIG_IsOK(res2)) {
35067 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35068 }
35069 if (!argp2) {
35070 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35071 }
35072 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35073 {
35074 PyThreadState* __tstate = wxPyBeginAllowThreads();
35075 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35076 wxPyEndAllowThreads(__tstate);
35077 if (PyErr_Occurred()) SWIG_fail;
35078 }
35079 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35080 return resultobj;
35081 fail:
35082 return NULL;
35083 }
35084
35085
35086 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35087 PyObject *resultobj = 0;
35088 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35089 wxTreeItemId *arg2 = 0 ;
35090 PyObject *result = 0 ;
35091 void *argp1 = 0 ;
35092 int res1 = 0 ;
35093 void *argp2 = 0 ;
35094 int res2 = 0 ;
35095 PyObject * obj0 = 0 ;
35096 PyObject * obj1 = 0 ;
35097 char * kwnames[] = {
35098 (char *) "self",(char *) "item", NULL
35099 };
35100
35101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35103 if (!SWIG_IsOK(res1)) {
35104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35105 }
35106 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35107 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35108 if (!SWIG_IsOK(res2)) {
35109 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35110 }
35111 if (!argp2) {
35112 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35113 }
35114 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35115 {
35116 PyThreadState* __tstate = wxPyBeginAllowThreads();
35117 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35118 wxPyEndAllowThreads(__tstate);
35119 if (PyErr_Occurred()) SWIG_fail;
35120 }
35121 resultobj = result;
35122 return resultobj;
35123 fail:
35124 return NULL;
35125 }
35126
35127
35128 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35129 PyObject *resultobj = 0;
35130 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35131 wxTreeItemId *arg2 = 0 ;
35132 void *arg3 = (void *) 0 ;
35133 PyObject *result = 0 ;
35134 void *argp1 = 0 ;
35135 int res1 = 0 ;
35136 void *argp2 = 0 ;
35137 int res2 = 0 ;
35138 int res3 ;
35139 PyObject * obj0 = 0 ;
35140 PyObject * obj1 = 0 ;
35141 PyObject * obj2 = 0 ;
35142 char * kwnames[] = {
35143 (char *) "self",(char *) "item",(char *) "cookie", NULL
35144 };
35145
35146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35148 if (!SWIG_IsOK(res1)) {
35149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35150 }
35151 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35152 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35153 if (!SWIG_IsOK(res2)) {
35154 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35155 }
35156 if (!argp2) {
35157 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35158 }
35159 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35160 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35161 if (!SWIG_IsOK(res3)) {
35162 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35163 }
35164 {
35165 PyThreadState* __tstate = wxPyBeginAllowThreads();
35166 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35167 wxPyEndAllowThreads(__tstate);
35168 if (PyErr_Occurred()) SWIG_fail;
35169 }
35170 resultobj = result;
35171 return resultobj;
35172 fail:
35173 return NULL;
35174 }
35175
35176
35177 SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35178 PyObject *resultobj = 0;
35179 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35180 wxTreeItemId *arg2 = 0 ;
35181 wxTreeItemId result;
35182 void *argp1 = 0 ;
35183 int res1 = 0 ;
35184 void *argp2 = 0 ;
35185 int res2 = 0 ;
35186 PyObject * obj0 = 0 ;
35187 PyObject * obj1 = 0 ;
35188 char * kwnames[] = {
35189 (char *) "self",(char *) "item", NULL
35190 };
35191
35192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35194 if (!SWIG_IsOK(res1)) {
35195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35196 }
35197 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35198 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35199 if (!SWIG_IsOK(res2)) {
35200 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35201 }
35202 if (!argp2) {
35203 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35204 }
35205 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35206 {
35207 PyThreadState* __tstate = wxPyBeginAllowThreads();
35208 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35209 wxPyEndAllowThreads(__tstate);
35210 if (PyErr_Occurred()) SWIG_fail;
35211 }
35212 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35213 return resultobj;
35214 fail:
35215 return NULL;
35216 }
35217
35218
35219 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35220 PyObject *resultobj = 0;
35221 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35222 wxTreeItemId *arg2 = 0 ;
35223 wxTreeItemId result;
35224 void *argp1 = 0 ;
35225 int res1 = 0 ;
35226 void *argp2 = 0 ;
35227 int res2 = 0 ;
35228 PyObject * obj0 = 0 ;
35229 PyObject * obj1 = 0 ;
35230 char * kwnames[] = {
35231 (char *) "self",(char *) "item", NULL
35232 };
35233
35234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35236 if (!SWIG_IsOK(res1)) {
35237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35238 }
35239 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35240 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35241 if (!SWIG_IsOK(res2)) {
35242 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35243 }
35244 if (!argp2) {
35245 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35246 }
35247 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35248 {
35249 PyThreadState* __tstate = wxPyBeginAllowThreads();
35250 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35251 wxPyEndAllowThreads(__tstate);
35252 if (PyErr_Occurred()) SWIG_fail;
35253 }
35254 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35255 return resultobj;
35256 fail:
35257 return NULL;
35258 }
35259
35260
35261 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35262 PyObject *resultobj = 0;
35263 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35264 wxTreeItemId *arg2 = 0 ;
35265 wxTreeItemId result;
35266 void *argp1 = 0 ;
35267 int res1 = 0 ;
35268 void *argp2 = 0 ;
35269 int res2 = 0 ;
35270 PyObject * obj0 = 0 ;
35271 PyObject * obj1 = 0 ;
35272 char * kwnames[] = {
35273 (char *) "self",(char *) "item", NULL
35274 };
35275
35276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35278 if (!SWIG_IsOK(res1)) {
35279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35280 }
35281 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35282 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35283 if (!SWIG_IsOK(res2)) {
35284 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35285 }
35286 if (!argp2) {
35287 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35288 }
35289 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35290 {
35291 PyThreadState* __tstate = wxPyBeginAllowThreads();
35292 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35293 wxPyEndAllowThreads(__tstate);
35294 if (PyErr_Occurred()) SWIG_fail;
35295 }
35296 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35297 return resultobj;
35298 fail:
35299 return NULL;
35300 }
35301
35302
35303 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35304 PyObject *resultobj = 0;
35305 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35306 wxTreeItemId result;
35307 void *argp1 = 0 ;
35308 int res1 = 0 ;
35309 PyObject *swig_obj[1] ;
35310
35311 if (!args) SWIG_fail;
35312 swig_obj[0] = args;
35313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35314 if (!SWIG_IsOK(res1)) {
35315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35316 }
35317 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35318 {
35319 PyThreadState* __tstate = wxPyBeginAllowThreads();
35320 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35321 wxPyEndAllowThreads(__tstate);
35322 if (PyErr_Occurred()) SWIG_fail;
35323 }
35324 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35325 return resultobj;
35326 fail:
35327 return NULL;
35328 }
35329
35330
35331 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35332 PyObject *resultobj = 0;
35333 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35334 wxTreeItemId *arg2 = 0 ;
35335 wxTreeItemId result;
35336 void *argp1 = 0 ;
35337 int res1 = 0 ;
35338 void *argp2 = 0 ;
35339 int res2 = 0 ;
35340 PyObject * obj0 = 0 ;
35341 PyObject * obj1 = 0 ;
35342 char * kwnames[] = {
35343 (char *) "self",(char *) "item", NULL
35344 };
35345
35346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35348 if (!SWIG_IsOK(res1)) {
35349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35350 }
35351 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35352 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35353 if (!SWIG_IsOK(res2)) {
35354 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35355 }
35356 if (!argp2) {
35357 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35358 }
35359 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35360 {
35361 PyThreadState* __tstate = wxPyBeginAllowThreads();
35362 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35363 wxPyEndAllowThreads(__tstate);
35364 if (PyErr_Occurred()) SWIG_fail;
35365 }
35366 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35367 return resultobj;
35368 fail:
35369 return NULL;
35370 }
35371
35372
35373 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35374 PyObject *resultobj = 0;
35375 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35376 wxTreeItemId *arg2 = 0 ;
35377 wxTreeItemId result;
35378 void *argp1 = 0 ;
35379 int res1 = 0 ;
35380 void *argp2 = 0 ;
35381 int res2 = 0 ;
35382 PyObject * obj0 = 0 ;
35383 PyObject * obj1 = 0 ;
35384 char * kwnames[] = {
35385 (char *) "self",(char *) "item", NULL
35386 };
35387
35388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35390 if (!SWIG_IsOK(res1)) {
35391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35392 }
35393 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35394 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35395 if (!SWIG_IsOK(res2)) {
35396 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35397 }
35398 if (!argp2) {
35399 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35400 }
35401 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35402 {
35403 PyThreadState* __tstate = wxPyBeginAllowThreads();
35404 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35405 wxPyEndAllowThreads(__tstate);
35406 if (PyErr_Occurred()) SWIG_fail;
35407 }
35408 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35409 return resultobj;
35410 fail:
35411 return NULL;
35412 }
35413
35414
35415 SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35416 PyObject *resultobj = 0;
35417 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35418 wxString *arg2 = 0 ;
35419 int arg3 = (int) -1 ;
35420 int arg4 = (int) -1 ;
35421 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35422 wxTreeItemId result;
35423 void *argp1 = 0 ;
35424 int res1 = 0 ;
35425 bool temp2 = false ;
35426 int val3 ;
35427 int ecode3 = 0 ;
35428 int val4 ;
35429 int ecode4 = 0 ;
35430 int res5 = 0 ;
35431 PyObject * obj0 = 0 ;
35432 PyObject * obj1 = 0 ;
35433 PyObject * obj2 = 0 ;
35434 PyObject * obj3 = 0 ;
35435 PyObject * obj4 = 0 ;
35436 char * kwnames[] = {
35437 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35438 };
35439
35440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35442 if (!SWIG_IsOK(res1)) {
35443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35444 }
35445 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35446 {
35447 arg2 = wxString_in_helper(obj1);
35448 if (arg2 == NULL) SWIG_fail;
35449 temp2 = true;
35450 }
35451 if (obj2) {
35452 ecode3 = SWIG_AsVal_int(obj2, &val3);
35453 if (!SWIG_IsOK(ecode3)) {
35454 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35455 }
35456 arg3 = static_cast< int >(val3);
35457 }
35458 if (obj3) {
35459 ecode4 = SWIG_AsVal_int(obj3, &val4);
35460 if (!SWIG_IsOK(ecode4)) {
35461 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
35462 }
35463 arg4 = static_cast< int >(val4);
35464 }
35465 if (obj4) {
35466 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35467 if (!SWIG_IsOK(res5)) {
35468 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
35469 }
35470 }
35471 {
35472 PyThreadState* __tstate = wxPyBeginAllowThreads();
35473 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
35474 wxPyEndAllowThreads(__tstate);
35475 if (PyErr_Occurred()) SWIG_fail;
35476 }
35477 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35478 {
35479 if (temp2)
35480 delete arg2;
35481 }
35482 return resultobj;
35483 fail:
35484 {
35485 if (temp2)
35486 delete arg2;
35487 }
35488 return NULL;
35489 }
35490
35491
35492 SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35493 PyObject *resultobj = 0;
35494 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35495 wxTreeItemId *arg2 = 0 ;
35496 wxString *arg3 = 0 ;
35497 int arg4 = (int) -1 ;
35498 int arg5 = (int) -1 ;
35499 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35500 wxTreeItemId result;
35501 void *argp1 = 0 ;
35502 int res1 = 0 ;
35503 void *argp2 = 0 ;
35504 int res2 = 0 ;
35505 bool temp3 = false ;
35506 int val4 ;
35507 int ecode4 = 0 ;
35508 int val5 ;
35509 int ecode5 = 0 ;
35510 int res6 = 0 ;
35511 PyObject * obj0 = 0 ;
35512 PyObject * obj1 = 0 ;
35513 PyObject * obj2 = 0 ;
35514 PyObject * obj3 = 0 ;
35515 PyObject * obj4 = 0 ;
35516 PyObject * obj5 = 0 ;
35517 char * kwnames[] = {
35518 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35519 };
35520
35521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35523 if (!SWIG_IsOK(res1)) {
35524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35525 }
35526 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35527 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35528 if (!SWIG_IsOK(res2)) {
35529 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35530 }
35531 if (!argp2) {
35532 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35533 }
35534 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35535 {
35536 arg3 = wxString_in_helper(obj2);
35537 if (arg3 == NULL) SWIG_fail;
35538 temp3 = true;
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_PrependItem" "', expected argument " "4"" of type '" "int""'");
35544 }
35545 arg4 = static_cast< int >(val4);
35546 }
35547 if (obj4) {
35548 ecode5 = SWIG_AsVal_int(obj4, &val5);
35549 if (!SWIG_IsOK(ecode5)) {
35550 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
35551 }
35552 arg5 = static_cast< int >(val5);
35553 }
35554 if (obj5) {
35555 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35556 if (!SWIG_IsOK(res6)) {
35557 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
35558 }
35559 }
35560 {
35561 PyThreadState* __tstate = wxPyBeginAllowThreads();
35562 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35563 wxPyEndAllowThreads(__tstate);
35564 if (PyErr_Occurred()) SWIG_fail;
35565 }
35566 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35567 {
35568 if (temp3)
35569 delete arg3;
35570 }
35571 return resultobj;
35572 fail:
35573 {
35574 if (temp3)
35575 delete arg3;
35576 }
35577 return NULL;
35578 }
35579
35580
35581 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35582 PyObject *resultobj = 0;
35583 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35584 wxTreeItemId *arg2 = 0 ;
35585 wxTreeItemId *arg3 = 0 ;
35586 wxString *arg4 = 0 ;
35587 int arg5 = (int) -1 ;
35588 int arg6 = (int) -1 ;
35589 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35590 wxTreeItemId result;
35591 void *argp1 = 0 ;
35592 int res1 = 0 ;
35593 void *argp2 = 0 ;
35594 int res2 = 0 ;
35595 void *argp3 = 0 ;
35596 int res3 = 0 ;
35597 bool temp4 = false ;
35598 int val5 ;
35599 int ecode5 = 0 ;
35600 int val6 ;
35601 int ecode6 = 0 ;
35602 int res7 = 0 ;
35603 PyObject * obj0 = 0 ;
35604 PyObject * obj1 = 0 ;
35605 PyObject * obj2 = 0 ;
35606 PyObject * obj3 = 0 ;
35607 PyObject * obj4 = 0 ;
35608 PyObject * obj5 = 0 ;
35609 PyObject * obj6 = 0 ;
35610 char * kwnames[] = {
35611 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35612 };
35613
35614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35616 if (!SWIG_IsOK(res1)) {
35617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35618 }
35619 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35620 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35621 if (!SWIG_IsOK(res2)) {
35622 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35623 }
35624 if (!argp2) {
35625 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35626 }
35627 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35628 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35629 if (!SWIG_IsOK(res3)) {
35630 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35631 }
35632 if (!argp3) {
35633 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35634 }
35635 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
35636 {
35637 arg4 = wxString_in_helper(obj3);
35638 if (arg4 == NULL) SWIG_fail;
35639 temp4 = true;
35640 }
35641 if (obj4) {
35642 ecode5 = SWIG_AsVal_int(obj4, &val5);
35643 if (!SWIG_IsOK(ecode5)) {
35644 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
35645 }
35646 arg5 = static_cast< int >(val5);
35647 }
35648 if (obj5) {
35649 ecode6 = SWIG_AsVal_int(obj5, &val6);
35650 if (!SWIG_IsOK(ecode6)) {
35651 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
35652 }
35653 arg6 = static_cast< int >(val6);
35654 }
35655 if (obj6) {
35656 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35657 if (!SWIG_IsOK(res7)) {
35658 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
35659 }
35660 }
35661 {
35662 PyThreadState* __tstate = wxPyBeginAllowThreads();
35663 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35664 wxPyEndAllowThreads(__tstate);
35665 if (PyErr_Occurred()) SWIG_fail;
35666 }
35667 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35668 {
35669 if (temp4)
35670 delete arg4;
35671 }
35672 return resultobj;
35673 fail:
35674 {
35675 if (temp4)
35676 delete arg4;
35677 }
35678 return NULL;
35679 }
35680
35681
35682 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35683 PyObject *resultobj = 0;
35684 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35685 wxTreeItemId *arg2 = 0 ;
35686 size_t arg3 ;
35687 wxString *arg4 = 0 ;
35688 int arg5 = (int) -1 ;
35689 int arg6 = (int) -1 ;
35690 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35691 wxTreeItemId result;
35692 void *argp1 = 0 ;
35693 int res1 = 0 ;
35694 void *argp2 = 0 ;
35695 int res2 = 0 ;
35696 size_t val3 ;
35697 int ecode3 = 0 ;
35698 bool temp4 = false ;
35699 int val5 ;
35700 int ecode5 = 0 ;
35701 int val6 ;
35702 int ecode6 = 0 ;
35703 int res7 = 0 ;
35704 PyObject * obj0 = 0 ;
35705 PyObject * obj1 = 0 ;
35706 PyObject * obj2 = 0 ;
35707 PyObject * obj3 = 0 ;
35708 PyObject * obj4 = 0 ;
35709 PyObject * obj5 = 0 ;
35710 PyObject * obj6 = 0 ;
35711 char * kwnames[] = {
35712 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35713 };
35714
35715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35717 if (!SWIG_IsOK(res1)) {
35718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35719 }
35720 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35721 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35722 if (!SWIG_IsOK(res2)) {
35723 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35724 }
35725 if (!argp2) {
35726 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35727 }
35728 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35729 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
35730 if (!SWIG_IsOK(ecode3)) {
35731 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
35732 }
35733 arg3 = static_cast< size_t >(val3);
35734 {
35735 arg4 = wxString_in_helper(obj3);
35736 if (arg4 == NULL) SWIG_fail;
35737 temp4 = true;
35738 }
35739 if (obj4) {
35740 ecode5 = SWIG_AsVal_int(obj4, &val5);
35741 if (!SWIG_IsOK(ecode5)) {
35742 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
35743 }
35744 arg5 = static_cast< int >(val5);
35745 }
35746 if (obj5) {
35747 ecode6 = SWIG_AsVal_int(obj5, &val6);
35748 if (!SWIG_IsOK(ecode6)) {
35749 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
35750 }
35751 arg6 = static_cast< int >(val6);
35752 }
35753 if (obj6) {
35754 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35755 if (!SWIG_IsOK(res7)) {
35756 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
35757 }
35758 }
35759 {
35760 PyThreadState* __tstate = wxPyBeginAllowThreads();
35761 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35762 wxPyEndAllowThreads(__tstate);
35763 if (PyErr_Occurred()) SWIG_fail;
35764 }
35765 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35766 {
35767 if (temp4)
35768 delete arg4;
35769 }
35770 return resultobj;
35771 fail:
35772 {
35773 if (temp4)
35774 delete arg4;
35775 }
35776 return NULL;
35777 }
35778
35779
35780 SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35781 PyObject *resultobj = 0;
35782 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35783 wxTreeItemId *arg2 = 0 ;
35784 wxString *arg3 = 0 ;
35785 int arg4 = (int) -1 ;
35786 int arg5 = (int) -1 ;
35787 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35788 wxTreeItemId result;
35789 void *argp1 = 0 ;
35790 int res1 = 0 ;
35791 void *argp2 = 0 ;
35792 int res2 = 0 ;
35793 bool temp3 = false ;
35794 int val4 ;
35795 int ecode4 = 0 ;
35796 int val5 ;
35797 int ecode5 = 0 ;
35798 int res6 = 0 ;
35799 PyObject * obj0 = 0 ;
35800 PyObject * obj1 = 0 ;
35801 PyObject * obj2 = 0 ;
35802 PyObject * obj3 = 0 ;
35803 PyObject * obj4 = 0 ;
35804 PyObject * obj5 = 0 ;
35805 char * kwnames[] = {
35806 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35807 };
35808
35809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35811 if (!SWIG_IsOK(res1)) {
35812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35813 }
35814 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35815 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35816 if (!SWIG_IsOK(res2)) {
35817 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35818 }
35819 if (!argp2) {
35820 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35821 }
35822 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35823 {
35824 arg3 = wxString_in_helper(obj2);
35825 if (arg3 == NULL) SWIG_fail;
35826 temp3 = true;
35827 }
35828 if (obj3) {
35829 ecode4 = SWIG_AsVal_int(obj3, &val4);
35830 if (!SWIG_IsOK(ecode4)) {
35831 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
35832 }
35833 arg4 = static_cast< int >(val4);
35834 }
35835 if (obj4) {
35836 ecode5 = SWIG_AsVal_int(obj4, &val5);
35837 if (!SWIG_IsOK(ecode5)) {
35838 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
35839 }
35840 arg5 = static_cast< int >(val5);
35841 }
35842 if (obj5) {
35843 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35844 if (!SWIG_IsOK(res6)) {
35845 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
35846 }
35847 }
35848 {
35849 PyThreadState* __tstate = wxPyBeginAllowThreads();
35850 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35851 wxPyEndAllowThreads(__tstate);
35852 if (PyErr_Occurred()) SWIG_fail;
35853 }
35854 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35855 {
35856 if (temp3)
35857 delete arg3;
35858 }
35859 return resultobj;
35860 fail:
35861 {
35862 if (temp3)
35863 delete arg3;
35864 }
35865 return NULL;
35866 }
35867
35868
35869 SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35870 PyObject *resultobj = 0;
35871 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35872 wxTreeItemId *arg2 = 0 ;
35873 void *argp1 = 0 ;
35874 int res1 = 0 ;
35875 void *argp2 = 0 ;
35876 int res2 = 0 ;
35877 PyObject * obj0 = 0 ;
35878 PyObject * obj1 = 0 ;
35879 char * kwnames[] = {
35880 (char *) "self",(char *) "item", NULL
35881 };
35882
35883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
35884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35885 if (!SWIG_IsOK(res1)) {
35886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35887 }
35888 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35889 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35890 if (!SWIG_IsOK(res2)) {
35891 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35892 }
35893 if (!argp2) {
35894 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35895 }
35896 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35897 {
35898 PyThreadState* __tstate = wxPyBeginAllowThreads();
35899 (arg1)->Delete((wxTreeItemId const &)*arg2);
35900 wxPyEndAllowThreads(__tstate);
35901 if (PyErr_Occurred()) SWIG_fail;
35902 }
35903 resultobj = SWIG_Py_Void();
35904 return resultobj;
35905 fail:
35906 return NULL;
35907 }
35908
35909
35910 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35911 PyObject *resultobj = 0;
35912 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35913 wxTreeItemId *arg2 = 0 ;
35914 void *argp1 = 0 ;
35915 int res1 = 0 ;
35916 void *argp2 = 0 ;
35917 int res2 = 0 ;
35918 PyObject * obj0 = 0 ;
35919 PyObject * obj1 = 0 ;
35920 char * kwnames[] = {
35921 (char *) "self",(char *) "item", NULL
35922 };
35923
35924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35926 if (!SWIG_IsOK(res1)) {
35927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35928 }
35929 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35930 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35931 if (!SWIG_IsOK(res2)) {
35932 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35933 }
35934 if (!argp2) {
35935 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35936 }
35937 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35938 {
35939 PyThreadState* __tstate = wxPyBeginAllowThreads();
35940 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
35941 wxPyEndAllowThreads(__tstate);
35942 if (PyErr_Occurred()) SWIG_fail;
35943 }
35944 resultobj = SWIG_Py_Void();
35945 return resultobj;
35946 fail:
35947 return NULL;
35948 }
35949
35950
35951 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35952 PyObject *resultobj = 0;
35953 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35954 void *argp1 = 0 ;
35955 int res1 = 0 ;
35956 PyObject *swig_obj[1] ;
35957
35958 if (!args) SWIG_fail;
35959 swig_obj[0] = args;
35960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35961 if (!SWIG_IsOK(res1)) {
35962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35963 }
35964 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35965 {
35966 PyThreadState* __tstate = wxPyBeginAllowThreads();
35967 (arg1)->DeleteAllItems();
35968 wxPyEndAllowThreads(__tstate);
35969 if (PyErr_Occurred()) SWIG_fail;
35970 }
35971 resultobj = SWIG_Py_Void();
35972 return resultobj;
35973 fail:
35974 return NULL;
35975 }
35976
35977
35978 SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35979 PyObject *resultobj = 0;
35980 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35981 wxTreeItemId *arg2 = 0 ;
35982 void *argp1 = 0 ;
35983 int res1 = 0 ;
35984 void *argp2 = 0 ;
35985 int res2 = 0 ;
35986 PyObject * obj0 = 0 ;
35987 PyObject * obj1 = 0 ;
35988 char * kwnames[] = {
35989 (char *) "self",(char *) "item", NULL
35990 };
35991
35992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
35993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35994 if (!SWIG_IsOK(res1)) {
35995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35996 }
35997 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35998 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35999 if (!SWIG_IsOK(res2)) {
36000 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36001 }
36002 if (!argp2) {
36003 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36004 }
36005 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36006 {
36007 PyThreadState* __tstate = wxPyBeginAllowThreads();
36008 (arg1)->Expand((wxTreeItemId const &)*arg2);
36009 wxPyEndAllowThreads(__tstate);
36010 if (PyErr_Occurred()) SWIG_fail;
36011 }
36012 resultobj = SWIG_Py_Void();
36013 return resultobj;
36014 fail:
36015 return NULL;
36016 }
36017
36018
36019 SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36020 PyObject *resultobj = 0;
36021 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36022 wxTreeItemId *arg2 = 0 ;
36023 void *argp1 = 0 ;
36024 int res1 = 0 ;
36025 void *argp2 = 0 ;
36026 int res2 = 0 ;
36027 PyObject * obj0 = 0 ;
36028 PyObject * obj1 = 0 ;
36029 char * kwnames[] = {
36030 (char *) "self",(char *) "item", NULL
36031 };
36032
36033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36035 if (!SWIG_IsOK(res1)) {
36036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36037 }
36038 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36039 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36040 if (!SWIG_IsOK(res2)) {
36041 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36042 }
36043 if (!argp2) {
36044 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36045 }
36046 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36047 {
36048 PyThreadState* __tstate = wxPyBeginAllowThreads();
36049 (arg1)->Collapse((wxTreeItemId const &)*arg2);
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_CollapseAndReset(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_CollapseAndReset",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_CollapseAndReset" "', 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_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36083 }
36084 if (!argp2) {
36085 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36086 }
36087 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36088 {
36089 PyThreadState* __tstate = wxPyBeginAllowThreads();
36090 (arg1)->CollapseAndReset((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_Toggle(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_Toggle",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_Toggle" "', 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_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36124 }
36125 if (!argp2) {
36126 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36127 }
36128 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36129 {
36130 PyThreadState* __tstate = wxPyBeginAllowThreads();
36131 (arg1)->Toggle((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_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36143 PyObject *resultobj = 0;
36144 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36145 void *argp1 = 0 ;
36146 int res1 = 0 ;
36147 PyObject *swig_obj[1] ;
36148
36149 if (!args) SWIG_fail;
36150 swig_obj[0] = args;
36151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36152 if (!SWIG_IsOK(res1)) {
36153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36154 }
36155 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36156 {
36157 PyThreadState* __tstate = wxPyBeginAllowThreads();
36158 (arg1)->Unselect();
36159 wxPyEndAllowThreads(__tstate);
36160 if (PyErr_Occurred()) SWIG_fail;
36161 }
36162 resultobj = SWIG_Py_Void();
36163 return resultobj;
36164 fail:
36165 return NULL;
36166 }
36167
36168
36169 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36170 PyObject *resultobj = 0;
36171 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36172 wxTreeItemId *arg2 = 0 ;
36173 void *argp1 = 0 ;
36174 int res1 = 0 ;
36175 void *argp2 = 0 ;
36176 int res2 = 0 ;
36177 PyObject * obj0 = 0 ;
36178 PyObject * obj1 = 0 ;
36179 char * kwnames[] = {
36180 (char *) "self",(char *) "item", NULL
36181 };
36182
36183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36185 if (!SWIG_IsOK(res1)) {
36186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36187 }
36188 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36189 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36190 if (!SWIG_IsOK(res2)) {
36191 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36192 }
36193 if (!argp2) {
36194 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36195 }
36196 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36197 {
36198 PyThreadState* __tstate = wxPyBeginAllowThreads();
36199 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36200 wxPyEndAllowThreads(__tstate);
36201 if (PyErr_Occurred()) SWIG_fail;
36202 }
36203 resultobj = SWIG_Py_Void();
36204 return resultobj;
36205 fail:
36206 return NULL;
36207 }
36208
36209
36210 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36211 PyObject *resultobj = 0;
36212 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36213 void *argp1 = 0 ;
36214 int res1 = 0 ;
36215 PyObject *swig_obj[1] ;
36216
36217 if (!args) SWIG_fail;
36218 swig_obj[0] = args;
36219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36220 if (!SWIG_IsOK(res1)) {
36221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36222 }
36223 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36224 {
36225 PyThreadState* __tstate = wxPyBeginAllowThreads();
36226 (arg1)->UnselectAll();
36227 wxPyEndAllowThreads(__tstate);
36228 if (PyErr_Occurred()) SWIG_fail;
36229 }
36230 resultobj = SWIG_Py_Void();
36231 return resultobj;
36232 fail:
36233 return NULL;
36234 }
36235
36236
36237 SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36238 PyObject *resultobj = 0;
36239 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36240 wxTreeItemId *arg2 = 0 ;
36241 bool arg3 = (bool) true ;
36242 void *argp1 = 0 ;
36243 int res1 = 0 ;
36244 void *argp2 = 0 ;
36245 int res2 = 0 ;
36246 bool val3 ;
36247 int ecode3 = 0 ;
36248 PyObject * obj0 = 0 ;
36249 PyObject * obj1 = 0 ;
36250 PyObject * obj2 = 0 ;
36251 char * kwnames[] = {
36252 (char *) "self",(char *) "item",(char *) "select", NULL
36253 };
36254
36255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36257 if (!SWIG_IsOK(res1)) {
36258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36259 }
36260 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36261 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36262 if (!SWIG_IsOK(res2)) {
36263 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36264 }
36265 if (!argp2) {
36266 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36267 }
36268 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36269 if (obj2) {
36270 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36271 if (!SWIG_IsOK(ecode3)) {
36272 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36273 }
36274 arg3 = static_cast< bool >(val3);
36275 }
36276 {
36277 PyThreadState* __tstate = wxPyBeginAllowThreads();
36278 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36279 wxPyEndAllowThreads(__tstate);
36280 if (PyErr_Occurred()) SWIG_fail;
36281 }
36282 resultobj = SWIG_Py_Void();
36283 return resultobj;
36284 fail:
36285 return NULL;
36286 }
36287
36288
36289 SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36290 PyObject *resultobj = 0;
36291 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36292 wxTreeItemId *arg2 = 0 ;
36293 void *argp1 = 0 ;
36294 int res1 = 0 ;
36295 void *argp2 = 0 ;
36296 int res2 = 0 ;
36297 PyObject * obj0 = 0 ;
36298 PyObject * obj1 = 0 ;
36299 char * kwnames[] = {
36300 (char *) "self",(char *) "item", NULL
36301 };
36302
36303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36305 if (!SWIG_IsOK(res1)) {
36306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36307 }
36308 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36309 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36310 if (!SWIG_IsOK(res2)) {
36311 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36312 }
36313 if (!argp2) {
36314 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36315 }
36316 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36317 {
36318 PyThreadState* __tstate = wxPyBeginAllowThreads();
36319 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36320 wxPyEndAllowThreads(__tstate);
36321 if (PyErr_Occurred()) SWIG_fail;
36322 }
36323 resultobj = SWIG_Py_Void();
36324 return resultobj;
36325 fail:
36326 return NULL;
36327 }
36328
36329
36330 SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36331 PyObject *resultobj = 0;
36332 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36333 wxTreeItemId *arg2 = 0 ;
36334 void *argp1 = 0 ;
36335 int res1 = 0 ;
36336 void *argp2 = 0 ;
36337 int res2 = 0 ;
36338 PyObject * obj0 = 0 ;
36339 PyObject * obj1 = 0 ;
36340 char * kwnames[] = {
36341 (char *) "self",(char *) "item", NULL
36342 };
36343
36344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36346 if (!SWIG_IsOK(res1)) {
36347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36348 }
36349 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36350 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36351 if (!SWIG_IsOK(res2)) {
36352 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36353 }
36354 if (!argp2) {
36355 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36356 }
36357 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36358 {
36359 PyThreadState* __tstate = wxPyBeginAllowThreads();
36360 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
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_ScrollTo(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_ScrollTo",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_ScrollTo" "', 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_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36394 }
36395 if (!argp2) {
36396 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36397 }
36398 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36399 {
36400 PyThreadState* __tstate = wxPyBeginAllowThreads();
36401 (arg1)->ScrollTo((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_EditLabel(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_EditLabel",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_EditLabel" "', 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_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36435 }
36436 if (!argp2) {
36437 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36438 }
36439 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36440 {
36441 PyThreadState* __tstate = wxPyBeginAllowThreads();
36442 (arg1)->EditLabel((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_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36454 PyObject *resultobj = 0;
36455 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36456 wxTextCtrl *result = 0 ;
36457 void *argp1 = 0 ;
36458 int res1 = 0 ;
36459 PyObject *swig_obj[1] ;
36460
36461 if (!args) SWIG_fail;
36462 swig_obj[0] = args;
36463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36464 if (!SWIG_IsOK(res1)) {
36465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36466 }
36467 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36468 {
36469 PyThreadState* __tstate = wxPyBeginAllowThreads();
36470 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
36471 wxPyEndAllowThreads(__tstate);
36472 if (PyErr_Occurred()) SWIG_fail;
36473 }
36474 {
36475 resultobj = wxPyMake_wxObject(result, 0);
36476 }
36477 return resultobj;
36478 fail:
36479 return NULL;
36480 }
36481
36482
36483 SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36484 PyObject *resultobj = 0;
36485 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36486 wxTreeItemId *arg2 = 0 ;
36487 void *argp1 = 0 ;
36488 int res1 = 0 ;
36489 void *argp2 = 0 ;
36490 int res2 = 0 ;
36491 PyObject * obj0 = 0 ;
36492 PyObject * obj1 = 0 ;
36493 char * kwnames[] = {
36494 (char *) "self",(char *) "item", NULL
36495 };
36496
36497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36499 if (!SWIG_IsOK(res1)) {
36500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36501 }
36502 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36503 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36504 if (!SWIG_IsOK(res2)) {
36505 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36506 }
36507 if (!argp2) {
36508 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36509 }
36510 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36511 {
36512 PyThreadState* __tstate = wxPyBeginAllowThreads();
36513 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
36514 wxPyEndAllowThreads(__tstate);
36515 if (PyErr_Occurred()) SWIG_fail;
36516 }
36517 resultobj = SWIG_Py_Void();
36518 return resultobj;
36519 fail:
36520 return NULL;
36521 }
36522
36523
36524 SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36525 PyObject *resultobj = 0;
36526 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36527 wxPoint *arg2 = 0 ;
36528 int *arg3 = 0 ;
36529 wxTreeItemId result;
36530 void *argp1 = 0 ;
36531 int res1 = 0 ;
36532 wxPoint temp2 ;
36533 int temp3 ;
36534 int res3 = SWIG_TMPOBJ ;
36535 PyObject * obj0 = 0 ;
36536 PyObject * obj1 = 0 ;
36537 char * kwnames[] = {
36538 (char *) "self",(char *) "point", NULL
36539 };
36540
36541 arg3 = &temp3;
36542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
36543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36544 if (!SWIG_IsOK(res1)) {
36545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36546 }
36547 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36548 {
36549 arg2 = &temp2;
36550 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36551 }
36552 {
36553 PyThreadState* __tstate = wxPyBeginAllowThreads();
36554 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
36555 wxPyEndAllowThreads(__tstate);
36556 if (PyErr_Occurred()) SWIG_fail;
36557 }
36558 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36559 if (SWIG_IsTmpObj(res3)) {
36560 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
36561 } else {
36562 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
36563 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
36564 }
36565 return resultobj;
36566 fail:
36567 return NULL;
36568 }
36569
36570
36571 SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36572 PyObject *resultobj = 0;
36573 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36574 wxTreeItemId *arg2 = 0 ;
36575 bool arg3 = (bool) false ;
36576 PyObject *result = 0 ;
36577 void *argp1 = 0 ;
36578 int res1 = 0 ;
36579 void *argp2 = 0 ;
36580 int res2 = 0 ;
36581 bool val3 ;
36582 int ecode3 = 0 ;
36583 PyObject * obj0 = 0 ;
36584 PyObject * obj1 = 0 ;
36585 PyObject * obj2 = 0 ;
36586 char * kwnames[] = {
36587 (char *) "self",(char *) "item",(char *) "textOnly", NULL
36588 };
36589
36590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36592 if (!SWIG_IsOK(res1)) {
36593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36594 }
36595 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36596 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36597 if (!SWIG_IsOK(res2)) {
36598 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36599 }
36600 if (!argp2) {
36601 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36602 }
36603 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36604 if (obj2) {
36605 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36606 if (!SWIG_IsOK(ecode3)) {
36607 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
36608 }
36609 arg3 = static_cast< bool >(val3);
36610 }
36611 {
36612 PyThreadState* __tstate = wxPyBeginAllowThreads();
36613 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
36614 wxPyEndAllowThreads(__tstate);
36615 if (PyErr_Occurred()) SWIG_fail;
36616 }
36617 resultobj = result;
36618 return resultobj;
36619 fail:
36620 return NULL;
36621 }
36622
36623
36624 SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36625 PyObject *resultobj = 0;
36626 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
36627 SwigValueWrapper<wxVisualAttributes > result;
36628 int val1 ;
36629 int ecode1 = 0 ;
36630 PyObject * obj0 = 0 ;
36631 char * kwnames[] = {
36632 (char *) "variant", NULL
36633 };
36634
36635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
36636 if (obj0) {
36637 ecode1 = SWIG_AsVal_int(obj0, &val1);
36638 if (!SWIG_IsOK(ecode1)) {
36639 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
36640 }
36641 arg1 = static_cast< wxWindowVariant >(val1);
36642 }
36643 {
36644 if (!wxPyCheckForApp()) SWIG_fail;
36645 PyThreadState* __tstate = wxPyBeginAllowThreads();
36646 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
36647 wxPyEndAllowThreads(__tstate);
36648 if (PyErr_Occurred()) SWIG_fail;
36649 }
36650 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
36651 return resultobj;
36652 fail:
36653 return NULL;
36654 }
36655
36656
36657 SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36658 PyObject *resultobj = 0;
36659 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36660 bool arg2 ;
36661 void *argp1 = 0 ;
36662 int res1 = 0 ;
36663 bool val2 ;
36664 int ecode2 = 0 ;
36665 PyObject * obj0 = 0 ;
36666 PyObject * obj1 = 0 ;
36667 char * kwnames[] = {
36668 (char *) "self",(char *) "q", NULL
36669 };
36670
36671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
36672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36673 if (!SWIG_IsOK(res1)) {
36674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36675 }
36676 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36677 ecode2 = SWIG_AsVal_bool(obj1, &val2);
36678 if (!SWIG_IsOK(ecode2)) {
36679 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
36680 }
36681 arg2 = static_cast< bool >(val2);
36682 {
36683 PyThreadState* __tstate = wxPyBeginAllowThreads();
36684 (arg1)->SetQuickBestSize(arg2);
36685 wxPyEndAllowThreads(__tstate);
36686 if (PyErr_Occurred()) SWIG_fail;
36687 }
36688 resultobj = SWIG_Py_Void();
36689 return resultobj;
36690 fail:
36691 return NULL;
36692 }
36693
36694
36695 SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36696 PyObject *resultobj = 0;
36697 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36698 bool result;
36699 void *argp1 = 0 ;
36700 int res1 = 0 ;
36701 PyObject *swig_obj[1] ;
36702
36703 if (!args) SWIG_fail;
36704 swig_obj[0] = args;
36705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36706 if (!SWIG_IsOK(res1)) {
36707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36708 }
36709 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36710 {
36711 PyThreadState* __tstate = wxPyBeginAllowThreads();
36712 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
36713 wxPyEndAllowThreads(__tstate);
36714 if (PyErr_Occurred()) SWIG_fail;
36715 }
36716 {
36717 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36718 }
36719 return resultobj;
36720 fail:
36721 return NULL;
36722 }
36723
36724
36725 SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36726 PyObject *obj;
36727 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
36728 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
36729 return SWIG_Py_Void();
36730 }
36731
36732 SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36733 return SWIG_Python_InitShadowInstance(args);
36734 }
36735
36736 SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
36737 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
36738 return 1;
36739 }
36740
36741
36742 SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
36743 PyObject *pyobj = 0;
36744
36745 {
36746 #if wxUSE_UNICODE
36747 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
36748 #else
36749 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
36750 #endif
36751 }
36752 return pyobj;
36753 }
36754
36755
36756 SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36757 PyObject *resultobj = 0;
36758 wxWindow *arg1 = (wxWindow *) 0 ;
36759 int arg2 = (int) (int)-1 ;
36760 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
36761 wxString *arg3 = (wxString *) &arg3_defvalue ;
36762 wxPoint const &arg4_defvalue = wxDefaultPosition ;
36763 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
36764 wxSize const &arg5_defvalue = wxDefaultSize ;
36765 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
36766 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
36767 wxString const &arg7_defvalue = wxPyEmptyString ;
36768 wxString *arg7 = (wxString *) &arg7_defvalue ;
36769 int arg8 = (int) 0 ;
36770 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
36771 wxString *arg9 = (wxString *) &arg9_defvalue ;
36772 wxGenericDirCtrl *result = 0 ;
36773 void *argp1 = 0 ;
36774 int res1 = 0 ;
36775 int val2 ;
36776 int ecode2 = 0 ;
36777 bool temp3 = false ;
36778 wxPoint temp4 ;
36779 wxSize temp5 ;
36780 long val6 ;
36781 int ecode6 = 0 ;
36782 bool temp7 = false ;
36783 int val8 ;
36784 int ecode8 = 0 ;
36785 bool temp9 = false ;
36786 PyObject * obj0 = 0 ;
36787 PyObject * obj1 = 0 ;
36788 PyObject * obj2 = 0 ;
36789 PyObject * obj3 = 0 ;
36790 PyObject * obj4 = 0 ;
36791 PyObject * obj5 = 0 ;
36792 PyObject * obj6 = 0 ;
36793 PyObject * obj7 = 0 ;
36794 PyObject * obj8 = 0 ;
36795 char * kwnames[] = {
36796 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
36797 };
36798
36799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
36800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36801 if (!SWIG_IsOK(res1)) {
36802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
36803 }
36804 arg1 = reinterpret_cast< wxWindow * >(argp1);
36805 if (obj1) {
36806 ecode2 = SWIG_AsVal_int(obj1, &val2);
36807 if (!SWIG_IsOK(ecode2)) {
36808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
36809 }
36810 arg2 = static_cast< int >(val2);
36811 }
36812 if (obj2) {
36813 {
36814 arg3 = wxString_in_helper(obj2);
36815 if (arg3 == NULL) SWIG_fail;
36816 temp3 = true;
36817 }
36818 }
36819 if (obj3) {
36820 {
36821 arg4 = &temp4;
36822 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36823 }
36824 }
36825 if (obj4) {
36826 {
36827 arg5 = &temp5;
36828 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36829 }
36830 }
36831 if (obj5) {
36832 ecode6 = SWIG_AsVal_long(obj5, &val6);
36833 if (!SWIG_IsOK(ecode6)) {
36834 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
36835 }
36836 arg6 = static_cast< long >(val6);
36837 }
36838 if (obj6) {
36839 {
36840 arg7 = wxString_in_helper(obj6);
36841 if (arg7 == NULL) SWIG_fail;
36842 temp7 = true;
36843 }
36844 }
36845 if (obj7) {
36846 ecode8 = SWIG_AsVal_int(obj7, &val8);
36847 if (!SWIG_IsOK(ecode8)) {
36848 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
36849 }
36850 arg8 = static_cast< int >(val8);
36851 }
36852 if (obj8) {
36853 {
36854 arg9 = wxString_in_helper(obj8);
36855 if (arg9 == NULL) SWIG_fail;
36856 temp9 = true;
36857 }
36858 }
36859 {
36860 if (!wxPyCheckForApp()) SWIG_fail;
36861 PyThreadState* __tstate = wxPyBeginAllowThreads();
36862 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
36863 wxPyEndAllowThreads(__tstate);
36864 if (PyErr_Occurred()) SWIG_fail;
36865 }
36866 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
36867 {
36868 if (temp3)
36869 delete arg3;
36870 }
36871 {
36872 if (temp7)
36873 delete arg7;
36874 }
36875 {
36876 if (temp9)
36877 delete arg9;
36878 }
36879 return resultobj;
36880 fail:
36881 {
36882 if (temp3)
36883 delete arg3;
36884 }
36885 {
36886 if (temp7)
36887 delete arg7;
36888 }
36889 {
36890 if (temp9)
36891 delete arg9;
36892 }
36893 return NULL;
36894 }
36895
36896
36897 SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36898 PyObject *resultobj = 0;
36899 wxGenericDirCtrl *result = 0 ;
36900
36901 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
36902 {
36903 if (!wxPyCheckForApp()) SWIG_fail;
36904 PyThreadState* __tstate = wxPyBeginAllowThreads();
36905 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
36906 wxPyEndAllowThreads(__tstate);
36907 if (PyErr_Occurred()) SWIG_fail;
36908 }
36909 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
36910 return resultobj;
36911 fail:
36912 return NULL;
36913 }
36914
36915
36916 SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36917 PyObject *resultobj = 0;
36918 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36919 wxWindow *arg2 = (wxWindow *) 0 ;
36920 int arg3 = (int) (int)-1 ;
36921 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
36922 wxString *arg4 = (wxString *) &arg4_defvalue ;
36923 wxPoint const &arg5_defvalue = wxDefaultPosition ;
36924 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
36925 wxSize const &arg6_defvalue = wxDefaultSize ;
36926 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
36927 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
36928 wxString const &arg8_defvalue = wxPyEmptyString ;
36929 wxString *arg8 = (wxString *) &arg8_defvalue ;
36930 int arg9 = (int) 0 ;
36931 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
36932 wxString *arg10 = (wxString *) &arg10_defvalue ;
36933 bool result;
36934 void *argp1 = 0 ;
36935 int res1 = 0 ;
36936 void *argp2 = 0 ;
36937 int res2 = 0 ;
36938 int val3 ;
36939 int ecode3 = 0 ;
36940 bool temp4 = false ;
36941 wxPoint temp5 ;
36942 wxSize temp6 ;
36943 long val7 ;
36944 int ecode7 = 0 ;
36945 bool temp8 = false ;
36946 int val9 ;
36947 int ecode9 = 0 ;
36948 bool temp10 = false ;
36949 PyObject * obj0 = 0 ;
36950 PyObject * obj1 = 0 ;
36951 PyObject * obj2 = 0 ;
36952 PyObject * obj3 = 0 ;
36953 PyObject * obj4 = 0 ;
36954 PyObject * obj5 = 0 ;
36955 PyObject * obj6 = 0 ;
36956 PyObject * obj7 = 0 ;
36957 PyObject * obj8 = 0 ;
36958 PyObject * obj9 = 0 ;
36959 char * kwnames[] = {
36960 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
36961 };
36962
36963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
36964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
36965 if (!SWIG_IsOK(res1)) {
36966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
36967 }
36968 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
36969 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
36970 if (!SWIG_IsOK(res2)) {
36971 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
36972 }
36973 arg2 = reinterpret_cast< wxWindow * >(argp2);
36974 if (obj2) {
36975 ecode3 = SWIG_AsVal_int(obj2, &val3);
36976 if (!SWIG_IsOK(ecode3)) {
36977 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
36978 }
36979 arg3 = static_cast< int >(val3);
36980 }
36981 if (obj3) {
36982 {
36983 arg4 = wxString_in_helper(obj3);
36984 if (arg4 == NULL) SWIG_fail;
36985 temp4 = true;
36986 }
36987 }
36988 if (obj4) {
36989 {
36990 arg5 = &temp5;
36991 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36992 }
36993 }
36994 if (obj5) {
36995 {
36996 arg6 = &temp6;
36997 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
36998 }
36999 }
37000 if (obj6) {
37001 ecode7 = SWIG_AsVal_long(obj6, &val7);
37002 if (!SWIG_IsOK(ecode7)) {
37003 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37004 }
37005 arg7 = static_cast< long >(val7);
37006 }
37007 if (obj7) {
37008 {
37009 arg8 = wxString_in_helper(obj7);
37010 if (arg8 == NULL) SWIG_fail;
37011 temp8 = true;
37012 }
37013 }
37014 if (obj8) {
37015 ecode9 = SWIG_AsVal_int(obj8, &val9);
37016 if (!SWIG_IsOK(ecode9)) {
37017 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37018 }
37019 arg9 = static_cast< int >(val9);
37020 }
37021 if (obj9) {
37022 {
37023 arg10 = wxString_in_helper(obj9);
37024 if (arg10 == NULL) SWIG_fail;
37025 temp10 = true;
37026 }
37027 }
37028 {
37029 PyThreadState* __tstate = wxPyBeginAllowThreads();
37030 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37031 wxPyEndAllowThreads(__tstate);
37032 if (PyErr_Occurred()) SWIG_fail;
37033 }
37034 {
37035 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37036 }
37037 {
37038 if (temp4)
37039 delete arg4;
37040 }
37041 {
37042 if (temp8)
37043 delete arg8;
37044 }
37045 {
37046 if (temp10)
37047 delete arg10;
37048 }
37049 return resultobj;
37050 fail:
37051 {
37052 if (temp4)
37053 delete arg4;
37054 }
37055 {
37056 if (temp8)
37057 delete arg8;
37058 }
37059 {
37060 if (temp10)
37061 delete arg10;
37062 }
37063 return NULL;
37064 }
37065
37066
37067 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37068 PyObject *resultobj = 0;
37069 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37070 wxString *arg2 = 0 ;
37071 bool result;
37072 void *argp1 = 0 ;
37073 int res1 = 0 ;
37074 bool temp2 = false ;
37075 PyObject * obj0 = 0 ;
37076 PyObject * obj1 = 0 ;
37077 char * kwnames[] = {
37078 (char *) "self",(char *) "path", NULL
37079 };
37080
37081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37083 if (!SWIG_IsOK(res1)) {
37084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37085 }
37086 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37087 {
37088 arg2 = wxString_in_helper(obj1);
37089 if (arg2 == NULL) SWIG_fail;
37090 temp2 = true;
37091 }
37092 {
37093 PyThreadState* __tstate = wxPyBeginAllowThreads();
37094 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37095 wxPyEndAllowThreads(__tstate);
37096 if (PyErr_Occurred()) SWIG_fail;
37097 }
37098 {
37099 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37100 }
37101 {
37102 if (temp2)
37103 delete arg2;
37104 }
37105 return resultobj;
37106 fail:
37107 {
37108 if (temp2)
37109 delete arg2;
37110 }
37111 return NULL;
37112 }
37113
37114
37115 SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37116 PyObject *resultobj = 0;
37117 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37118 wxString *arg2 = 0 ;
37119 bool result;
37120 void *argp1 = 0 ;
37121 int res1 = 0 ;
37122 bool temp2 = false ;
37123 PyObject * obj0 = 0 ;
37124 PyObject * obj1 = 0 ;
37125 char * kwnames[] = {
37126 (char *) "self",(char *) "path", NULL
37127 };
37128
37129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
37130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37131 if (!SWIG_IsOK(res1)) {
37132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37133 }
37134 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37135 {
37136 arg2 = wxString_in_helper(obj1);
37137 if (arg2 == NULL) SWIG_fail;
37138 temp2 = true;
37139 }
37140 {
37141 PyThreadState* __tstate = wxPyBeginAllowThreads();
37142 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
37143 wxPyEndAllowThreads(__tstate);
37144 if (PyErr_Occurred()) SWIG_fail;
37145 }
37146 {
37147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37148 }
37149 {
37150 if (temp2)
37151 delete arg2;
37152 }
37153 return resultobj;
37154 fail:
37155 {
37156 if (temp2)
37157 delete arg2;
37158 }
37159 return NULL;
37160 }
37161
37162
37163 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37164 PyObject *resultobj = 0;
37165 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37166 wxString result;
37167 void *argp1 = 0 ;
37168 int res1 = 0 ;
37169 PyObject *swig_obj[1] ;
37170
37171 if (!args) SWIG_fail;
37172 swig_obj[0] = args;
37173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37174 if (!SWIG_IsOK(res1)) {
37175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37176 }
37177 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37178 {
37179 PyThreadState* __tstate = wxPyBeginAllowThreads();
37180 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37181 wxPyEndAllowThreads(__tstate);
37182 if (PyErr_Occurred()) SWIG_fail;
37183 }
37184 {
37185 #if wxUSE_UNICODE
37186 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37187 #else
37188 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37189 #endif
37190 }
37191 return resultobj;
37192 fail:
37193 return NULL;
37194 }
37195
37196
37197 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37198 PyObject *resultobj = 0;
37199 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37200 wxString *arg2 = 0 ;
37201 void *argp1 = 0 ;
37202 int res1 = 0 ;
37203 bool temp2 = false ;
37204 PyObject * obj0 = 0 ;
37205 PyObject * obj1 = 0 ;
37206 char * kwnames[] = {
37207 (char *) "self",(char *) "path", NULL
37208 };
37209
37210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37212 if (!SWIG_IsOK(res1)) {
37213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37214 }
37215 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37216 {
37217 arg2 = wxString_in_helper(obj1);
37218 if (arg2 == NULL) SWIG_fail;
37219 temp2 = true;
37220 }
37221 {
37222 PyThreadState* __tstate = wxPyBeginAllowThreads();
37223 (arg1)->SetDefaultPath((wxString const &)*arg2);
37224 wxPyEndAllowThreads(__tstate);
37225 if (PyErr_Occurred()) SWIG_fail;
37226 }
37227 resultobj = SWIG_Py_Void();
37228 {
37229 if (temp2)
37230 delete arg2;
37231 }
37232 return resultobj;
37233 fail:
37234 {
37235 if (temp2)
37236 delete arg2;
37237 }
37238 return NULL;
37239 }
37240
37241
37242 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37243 PyObject *resultobj = 0;
37244 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37245 wxString result;
37246 void *argp1 = 0 ;
37247 int res1 = 0 ;
37248 PyObject *swig_obj[1] ;
37249
37250 if (!args) SWIG_fail;
37251 swig_obj[0] = args;
37252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37253 if (!SWIG_IsOK(res1)) {
37254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37255 }
37256 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37257 {
37258 PyThreadState* __tstate = wxPyBeginAllowThreads();
37259 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37260 wxPyEndAllowThreads(__tstate);
37261 if (PyErr_Occurred()) SWIG_fail;
37262 }
37263 {
37264 #if wxUSE_UNICODE
37265 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37266 #else
37267 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37268 #endif
37269 }
37270 return resultobj;
37271 fail:
37272 return NULL;
37273 }
37274
37275
37276 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37277 PyObject *resultobj = 0;
37278 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37279 wxString result;
37280 void *argp1 = 0 ;
37281 int res1 = 0 ;
37282 PyObject *swig_obj[1] ;
37283
37284 if (!args) SWIG_fail;
37285 swig_obj[0] = args;
37286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37287 if (!SWIG_IsOK(res1)) {
37288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37289 }
37290 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37291 {
37292 PyThreadState* __tstate = wxPyBeginAllowThreads();
37293 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37294 wxPyEndAllowThreads(__tstate);
37295 if (PyErr_Occurred()) SWIG_fail;
37296 }
37297 {
37298 #if wxUSE_UNICODE
37299 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37300 #else
37301 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37302 #endif
37303 }
37304 return resultobj;
37305 fail:
37306 return NULL;
37307 }
37308
37309
37310 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37311 PyObject *resultobj = 0;
37312 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37313 wxString *arg2 = 0 ;
37314 void *argp1 = 0 ;
37315 int res1 = 0 ;
37316 bool temp2 = false ;
37317 PyObject * obj0 = 0 ;
37318 PyObject * obj1 = 0 ;
37319 char * kwnames[] = {
37320 (char *) "self",(char *) "path", NULL
37321 };
37322
37323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37325 if (!SWIG_IsOK(res1)) {
37326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37327 }
37328 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37329 {
37330 arg2 = wxString_in_helper(obj1);
37331 if (arg2 == NULL) SWIG_fail;
37332 temp2 = true;
37333 }
37334 {
37335 PyThreadState* __tstate = wxPyBeginAllowThreads();
37336 (arg1)->SetPath((wxString const &)*arg2);
37337 wxPyEndAllowThreads(__tstate);
37338 if (PyErr_Occurred()) SWIG_fail;
37339 }
37340 resultobj = SWIG_Py_Void();
37341 {
37342 if (temp2)
37343 delete arg2;
37344 }
37345 return resultobj;
37346 fail:
37347 {
37348 if (temp2)
37349 delete arg2;
37350 }
37351 return NULL;
37352 }
37353
37354
37355 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37356 PyObject *resultobj = 0;
37357 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37358 bool arg2 ;
37359 void *argp1 = 0 ;
37360 int res1 = 0 ;
37361 bool val2 ;
37362 int ecode2 = 0 ;
37363 PyObject * obj0 = 0 ;
37364 PyObject * obj1 = 0 ;
37365 char * kwnames[] = {
37366 (char *) "self",(char *) "show", NULL
37367 };
37368
37369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37371 if (!SWIG_IsOK(res1)) {
37372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37373 }
37374 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37375 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37376 if (!SWIG_IsOK(ecode2)) {
37377 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
37378 }
37379 arg2 = static_cast< bool >(val2);
37380 {
37381 PyThreadState* __tstate = wxPyBeginAllowThreads();
37382 (arg1)->ShowHidden(arg2);
37383 wxPyEndAllowThreads(__tstate);
37384 if (PyErr_Occurred()) SWIG_fail;
37385 }
37386 resultobj = SWIG_Py_Void();
37387 return resultobj;
37388 fail:
37389 return NULL;
37390 }
37391
37392
37393 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37394 PyObject *resultobj = 0;
37395 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37396 bool result;
37397 void *argp1 = 0 ;
37398 int res1 = 0 ;
37399 PyObject *swig_obj[1] ;
37400
37401 if (!args) SWIG_fail;
37402 swig_obj[0] = args;
37403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37404 if (!SWIG_IsOK(res1)) {
37405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37406 }
37407 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37408 {
37409 PyThreadState* __tstate = wxPyBeginAllowThreads();
37410 result = (bool)(arg1)->GetShowHidden();
37411 wxPyEndAllowThreads(__tstate);
37412 if (PyErr_Occurred()) SWIG_fail;
37413 }
37414 {
37415 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37416 }
37417 return resultobj;
37418 fail:
37419 return NULL;
37420 }
37421
37422
37423 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37424 PyObject *resultobj = 0;
37425 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37426 wxString result;
37427 void *argp1 = 0 ;
37428 int res1 = 0 ;
37429 PyObject *swig_obj[1] ;
37430
37431 if (!args) SWIG_fail;
37432 swig_obj[0] = args;
37433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37434 if (!SWIG_IsOK(res1)) {
37435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37436 }
37437 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37438 {
37439 PyThreadState* __tstate = wxPyBeginAllowThreads();
37440 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
37441 wxPyEndAllowThreads(__tstate);
37442 if (PyErr_Occurred()) SWIG_fail;
37443 }
37444 {
37445 #if wxUSE_UNICODE
37446 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37447 #else
37448 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37449 #endif
37450 }
37451 return resultobj;
37452 fail:
37453 return NULL;
37454 }
37455
37456
37457 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37458 PyObject *resultobj = 0;
37459 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37460 wxString *arg2 = 0 ;
37461 void *argp1 = 0 ;
37462 int res1 = 0 ;
37463 bool temp2 = false ;
37464 PyObject * obj0 = 0 ;
37465 PyObject * obj1 = 0 ;
37466 char * kwnames[] = {
37467 (char *) "self",(char *) "filter", NULL
37468 };
37469
37470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
37471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37472 if (!SWIG_IsOK(res1)) {
37473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37474 }
37475 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37476 {
37477 arg2 = wxString_in_helper(obj1);
37478 if (arg2 == NULL) SWIG_fail;
37479 temp2 = true;
37480 }
37481 {
37482 PyThreadState* __tstate = wxPyBeginAllowThreads();
37483 (arg1)->SetFilter((wxString const &)*arg2);
37484 wxPyEndAllowThreads(__tstate);
37485 if (PyErr_Occurred()) SWIG_fail;
37486 }
37487 resultobj = SWIG_Py_Void();
37488 {
37489 if (temp2)
37490 delete arg2;
37491 }
37492 return resultobj;
37493 fail:
37494 {
37495 if (temp2)
37496 delete arg2;
37497 }
37498 return NULL;
37499 }
37500
37501
37502 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37503 PyObject *resultobj = 0;
37504 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37505 int result;
37506 void *argp1 = 0 ;
37507 int res1 = 0 ;
37508 PyObject *swig_obj[1] ;
37509
37510 if (!args) SWIG_fail;
37511 swig_obj[0] = args;
37512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37513 if (!SWIG_IsOK(res1)) {
37514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37515 }
37516 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37517 {
37518 PyThreadState* __tstate = wxPyBeginAllowThreads();
37519 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
37520 wxPyEndAllowThreads(__tstate);
37521 if (PyErr_Occurred()) SWIG_fail;
37522 }
37523 resultobj = SWIG_From_int(static_cast< int >(result));
37524 return resultobj;
37525 fail:
37526 return NULL;
37527 }
37528
37529
37530 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37531 PyObject *resultobj = 0;
37532 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37533 int arg2 ;
37534 void *argp1 = 0 ;
37535 int res1 = 0 ;
37536 int val2 ;
37537 int ecode2 = 0 ;
37538 PyObject * obj0 = 0 ;
37539 PyObject * obj1 = 0 ;
37540 char * kwnames[] = {
37541 (char *) "self",(char *) "n", NULL
37542 };
37543
37544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
37545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37546 if (!SWIG_IsOK(res1)) {
37547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37548 }
37549 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37550 ecode2 = SWIG_AsVal_int(obj1, &val2);
37551 if (!SWIG_IsOK(ecode2)) {
37552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
37553 }
37554 arg2 = static_cast< int >(val2);
37555 {
37556 PyThreadState* __tstate = wxPyBeginAllowThreads();
37557 (arg1)->SetFilterIndex(arg2);
37558 wxPyEndAllowThreads(__tstate);
37559 if (PyErr_Occurred()) SWIG_fail;
37560 }
37561 resultobj = SWIG_Py_Void();
37562 return resultobj;
37563 fail:
37564 return NULL;
37565 }
37566
37567
37568 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37569 PyObject *resultobj = 0;
37570 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37571 wxTreeItemId result;
37572 void *argp1 = 0 ;
37573 int res1 = 0 ;
37574 PyObject *swig_obj[1] ;
37575
37576 if (!args) SWIG_fail;
37577 swig_obj[0] = args;
37578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37579 if (!SWIG_IsOK(res1)) {
37580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37581 }
37582 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37583 {
37584 PyThreadState* __tstate = wxPyBeginAllowThreads();
37585 result = (arg1)->GetRootId();
37586 wxPyEndAllowThreads(__tstate);
37587 if (PyErr_Occurred()) SWIG_fail;
37588 }
37589 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37590 return resultobj;
37591 fail:
37592 return NULL;
37593 }
37594
37595
37596 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37597 PyObject *resultobj = 0;
37598 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37599 wxPyTreeCtrl *result = 0 ;
37600 void *argp1 = 0 ;
37601 int res1 = 0 ;
37602 PyObject *swig_obj[1] ;
37603
37604 if (!args) SWIG_fail;
37605 swig_obj[0] = args;
37606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37607 if (!SWIG_IsOK(res1)) {
37608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37609 }
37610 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37611 {
37612 PyThreadState* __tstate = wxPyBeginAllowThreads();
37613 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
37614 wxPyEndAllowThreads(__tstate);
37615 if (PyErr_Occurred()) SWIG_fail;
37616 }
37617 {
37618 resultobj = wxPyMake_wxObject(result, 0);
37619 }
37620 return resultobj;
37621 fail:
37622 return NULL;
37623 }
37624
37625
37626 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37627 PyObject *resultobj = 0;
37628 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37629 wxDirFilterListCtrl *result = 0 ;
37630 void *argp1 = 0 ;
37631 int res1 = 0 ;
37632 PyObject *swig_obj[1] ;
37633
37634 if (!args) SWIG_fail;
37635 swig_obj[0] = args;
37636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37637 if (!SWIG_IsOK(res1)) {
37638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37639 }
37640 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37641 {
37642 PyThreadState* __tstate = wxPyBeginAllowThreads();
37643 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
37644 wxPyEndAllowThreads(__tstate);
37645 if (PyErr_Occurred()) SWIG_fail;
37646 }
37647 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37648 return resultobj;
37649 fail:
37650 return NULL;
37651 }
37652
37653
37654 SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37655 PyObject *resultobj = 0;
37656 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37657 wxTreeItemId arg2 ;
37658 wxString *arg3 = 0 ;
37659 bool *arg4 = 0 ;
37660 wxTreeItemId result;
37661 void *argp1 = 0 ;
37662 int res1 = 0 ;
37663 void *argp2 ;
37664 int res2 = 0 ;
37665 bool temp3 = false ;
37666 bool temp4 ;
37667 int res4 = SWIG_TMPOBJ ;
37668 PyObject * obj0 = 0 ;
37669 PyObject * obj1 = 0 ;
37670 PyObject * obj2 = 0 ;
37671 char * kwnames[] = {
37672 (char *) "self",(char *) "parentId",(char *) "path", NULL
37673 };
37674
37675 arg4 = &temp4;
37676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37678 if (!SWIG_IsOK(res1)) {
37679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37680 }
37681 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37682 {
37683 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37684 if (!SWIG_IsOK(res2)) {
37685 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
37686 }
37687 if (!argp2) {
37688 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
37689 } else {
37690 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
37691 arg2 = *temp;
37692 if (SWIG_IsNewObj(res2)) delete temp;
37693 }
37694 }
37695 {
37696 arg3 = wxString_in_helper(obj2);
37697 if (arg3 == NULL) SWIG_fail;
37698 temp3 = true;
37699 }
37700 {
37701 PyThreadState* __tstate = wxPyBeginAllowThreads();
37702 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
37703 wxPyEndAllowThreads(__tstate);
37704 if (PyErr_Occurred()) SWIG_fail;
37705 }
37706 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37707 if (SWIG_IsTmpObj(res4)) {
37708 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
37709 } else {
37710 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37711 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
37712 }
37713 {
37714 if (temp3)
37715 delete arg3;
37716 }
37717 return resultobj;
37718 fail:
37719 {
37720 if (temp3)
37721 delete arg3;
37722 }
37723 return NULL;
37724 }
37725
37726
37727 SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37728 PyObject *resultobj = 0;
37729 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37730 void *argp1 = 0 ;
37731 int res1 = 0 ;
37732 PyObject *swig_obj[1] ;
37733
37734 if (!args) SWIG_fail;
37735 swig_obj[0] = args;
37736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37737 if (!SWIG_IsOK(res1)) {
37738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37739 }
37740 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37741 {
37742 PyThreadState* __tstate = wxPyBeginAllowThreads();
37743 (arg1)->DoResize();
37744 wxPyEndAllowThreads(__tstate);
37745 if (PyErr_Occurred()) SWIG_fail;
37746 }
37747 resultobj = SWIG_Py_Void();
37748 return resultobj;
37749 fail:
37750 return NULL;
37751 }
37752
37753
37754 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37755 PyObject *resultobj = 0;
37756 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37757 void *argp1 = 0 ;
37758 int res1 = 0 ;
37759 PyObject *swig_obj[1] ;
37760
37761 if (!args) SWIG_fail;
37762 swig_obj[0] = args;
37763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37764 if (!SWIG_IsOK(res1)) {
37765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37766 }
37767 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37768 {
37769 PyThreadState* __tstate = wxPyBeginAllowThreads();
37770 (arg1)->ReCreateTree();
37771 wxPyEndAllowThreads(__tstate);
37772 if (PyErr_Occurred()) SWIG_fail;
37773 }
37774 resultobj = SWIG_Py_Void();
37775 return resultobj;
37776 fail:
37777 return NULL;
37778 }
37779
37780
37781 SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37782 PyObject *obj;
37783 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37784 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
37785 return SWIG_Py_Void();
37786 }
37787
37788 SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37789 return SWIG_Python_InitShadowInstance(args);
37790 }
37791
37792 SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37793 PyObject *resultobj = 0;
37794 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37795 int arg2 = (int) (int)-1 ;
37796 wxPoint const &arg3_defvalue = wxDefaultPosition ;
37797 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
37798 wxSize const &arg4_defvalue = wxDefaultSize ;
37799 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
37800 long arg5 = (long) 0 ;
37801 wxDirFilterListCtrl *result = 0 ;
37802 void *argp1 = 0 ;
37803 int res1 = 0 ;
37804 int val2 ;
37805 int ecode2 = 0 ;
37806 wxPoint temp3 ;
37807 wxSize temp4 ;
37808 long val5 ;
37809 int ecode5 = 0 ;
37810 PyObject * obj0 = 0 ;
37811 PyObject * obj1 = 0 ;
37812 PyObject * obj2 = 0 ;
37813 PyObject * obj3 = 0 ;
37814 PyObject * obj4 = 0 ;
37815 char * kwnames[] = {
37816 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
37817 };
37818
37819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37821 if (!SWIG_IsOK(res1)) {
37822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37823 }
37824 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37825 if (obj1) {
37826 ecode2 = SWIG_AsVal_int(obj1, &val2);
37827 if (!SWIG_IsOK(ecode2)) {
37828 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
37829 }
37830 arg2 = static_cast< int >(val2);
37831 }
37832 if (obj2) {
37833 {
37834 arg3 = &temp3;
37835 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37836 }
37837 }
37838 if (obj3) {
37839 {
37840 arg4 = &temp4;
37841 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
37842 }
37843 }
37844 if (obj4) {
37845 ecode5 = SWIG_AsVal_long(obj4, &val5);
37846 if (!SWIG_IsOK(ecode5)) {
37847 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
37848 }
37849 arg5 = static_cast< long >(val5);
37850 }
37851 {
37852 if (!wxPyCheckForApp()) SWIG_fail;
37853 PyThreadState* __tstate = wxPyBeginAllowThreads();
37854 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
37855 wxPyEndAllowThreads(__tstate);
37856 if (PyErr_Occurred()) SWIG_fail;
37857 }
37858 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
37859 return resultobj;
37860 fail:
37861 return NULL;
37862 }
37863
37864
37865 SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37866 PyObject *resultobj = 0;
37867 wxDirFilterListCtrl *result = 0 ;
37868
37869 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
37870 {
37871 if (!wxPyCheckForApp()) SWIG_fail;
37872 PyThreadState* __tstate = wxPyBeginAllowThreads();
37873 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
37874 wxPyEndAllowThreads(__tstate);
37875 if (PyErr_Occurred()) SWIG_fail;
37876 }
37877 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
37878 return resultobj;
37879 fail:
37880 return NULL;
37881 }
37882
37883
37884 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37885 PyObject *resultobj = 0;
37886 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
37887 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
37888 int arg3 = (int) (int)-1 ;
37889 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37890 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37891 wxSize const &arg5_defvalue = wxDefaultSize ;
37892 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37893 long arg6 = (long) 0 ;
37894 bool result;
37895 void *argp1 = 0 ;
37896 int res1 = 0 ;
37897 void *argp2 = 0 ;
37898 int res2 = 0 ;
37899 int val3 ;
37900 int ecode3 = 0 ;
37901 wxPoint temp4 ;
37902 wxSize temp5 ;
37903 long val6 ;
37904 int ecode6 = 0 ;
37905 PyObject * obj0 = 0 ;
37906 PyObject * obj1 = 0 ;
37907 PyObject * obj2 = 0 ;
37908 PyObject * obj3 = 0 ;
37909 PyObject * obj4 = 0 ;
37910 PyObject * obj5 = 0 ;
37911 char * kwnames[] = {
37912 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
37913 };
37914
37915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37917 if (!SWIG_IsOK(res1)) {
37918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
37919 }
37920 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
37921 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37922 if (!SWIG_IsOK(res2)) {
37923 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
37924 }
37925 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
37926 if (obj2) {
37927 ecode3 = SWIG_AsVal_int(obj2, &val3);
37928 if (!SWIG_IsOK(ecode3)) {
37929 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37930 }
37931 arg3 = static_cast< int >(val3);
37932 }
37933 if (obj3) {
37934 {
37935 arg4 = &temp4;
37936 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37937 }
37938 }
37939 if (obj4) {
37940 {
37941 arg5 = &temp5;
37942 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
37943 }
37944 }
37945 if (obj5) {
37946 ecode6 = SWIG_AsVal_long(obj5, &val6);
37947 if (!SWIG_IsOK(ecode6)) {
37948 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
37949 }
37950 arg6 = static_cast< long >(val6);
37951 }
37952 {
37953 PyThreadState* __tstate = wxPyBeginAllowThreads();
37954 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
37955 wxPyEndAllowThreads(__tstate);
37956 if (PyErr_Occurred()) SWIG_fail;
37957 }
37958 {
37959 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37960 }
37961 return resultobj;
37962 fail:
37963 return NULL;
37964 }
37965
37966
37967 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37968 PyObject *resultobj = 0;
37969 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
37970 wxString *arg2 = 0 ;
37971 int arg3 ;
37972 void *argp1 = 0 ;
37973 int res1 = 0 ;
37974 bool temp2 = false ;
37975 int val3 ;
37976 int ecode3 = 0 ;
37977 PyObject * obj0 = 0 ;
37978 PyObject * obj1 = 0 ;
37979 PyObject * obj2 = 0 ;
37980 char * kwnames[] = {
37981 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
37982 };
37983
37984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37986 if (!SWIG_IsOK(res1)) {
37987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
37988 }
37989 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
37990 {
37991 arg2 = wxString_in_helper(obj1);
37992 if (arg2 == NULL) SWIG_fail;
37993 temp2 = true;
37994 }
37995 ecode3 = SWIG_AsVal_int(obj2, &val3);
37996 if (!SWIG_IsOK(ecode3)) {
37997 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
37998 }
37999 arg3 = static_cast< int >(val3);
38000 {
38001 PyThreadState* __tstate = wxPyBeginAllowThreads();
38002 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38003 wxPyEndAllowThreads(__tstate);
38004 if (PyErr_Occurred()) SWIG_fail;
38005 }
38006 resultobj = SWIG_Py_Void();
38007 {
38008 if (temp2)
38009 delete arg2;
38010 }
38011 return resultobj;
38012 fail:
38013 {
38014 if (temp2)
38015 delete arg2;
38016 }
38017 return NULL;
38018 }
38019
38020
38021 SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38022 PyObject *obj;
38023 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38024 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38025 return SWIG_Py_Void();
38026 }
38027
38028 SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38029 return SWIG_Python_InitShadowInstance(args);
38030 }
38031
38032 SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38033 PyObject *resultobj = 0;
38034 wxWindow *arg1 = (wxWindow *) 0 ;
38035 int arg2 = (int) (int)-1 ;
38036 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38037 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38038 wxSize const &arg4_defvalue = wxDefaultSize ;
38039 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38040 long arg5 = (long) 0 ;
38041 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38042 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38043 wxString const &arg7_defvalue = wxPyControlNameStr ;
38044 wxString *arg7 = (wxString *) &arg7_defvalue ;
38045 wxPyControl *result = 0 ;
38046 void *argp1 = 0 ;
38047 int res1 = 0 ;
38048 int val2 ;
38049 int ecode2 = 0 ;
38050 wxPoint temp3 ;
38051 wxSize temp4 ;
38052 long val5 ;
38053 int ecode5 = 0 ;
38054 void *argp6 = 0 ;
38055 int res6 = 0 ;
38056 bool temp7 = false ;
38057 PyObject * obj0 = 0 ;
38058 PyObject * obj1 = 0 ;
38059 PyObject * obj2 = 0 ;
38060 PyObject * obj3 = 0 ;
38061 PyObject * obj4 = 0 ;
38062 PyObject * obj5 = 0 ;
38063 PyObject * obj6 = 0 ;
38064 char * kwnames[] = {
38065 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38066 };
38067
38068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38070 if (!SWIG_IsOK(res1)) {
38071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38072 }
38073 arg1 = reinterpret_cast< wxWindow * >(argp1);
38074 if (obj1) {
38075 ecode2 = SWIG_AsVal_int(obj1, &val2);
38076 if (!SWIG_IsOK(ecode2)) {
38077 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38078 }
38079 arg2 = static_cast< int >(val2);
38080 }
38081 if (obj2) {
38082 {
38083 arg3 = &temp3;
38084 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38085 }
38086 }
38087 if (obj3) {
38088 {
38089 arg4 = &temp4;
38090 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38091 }
38092 }
38093 if (obj4) {
38094 ecode5 = SWIG_AsVal_long(obj4, &val5);
38095 if (!SWIG_IsOK(ecode5)) {
38096 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38097 }
38098 arg5 = static_cast< long >(val5);
38099 }
38100 if (obj5) {
38101 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38102 if (!SWIG_IsOK(res6)) {
38103 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38104 }
38105 if (!argp6) {
38106 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38107 }
38108 arg6 = reinterpret_cast< wxValidator * >(argp6);
38109 }
38110 if (obj6) {
38111 {
38112 arg7 = wxString_in_helper(obj6);
38113 if (arg7 == NULL) SWIG_fail;
38114 temp7 = true;
38115 }
38116 }
38117 {
38118 if (!wxPyCheckForApp()) SWIG_fail;
38119 PyThreadState* __tstate = wxPyBeginAllowThreads();
38120 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38121 wxPyEndAllowThreads(__tstate);
38122 if (PyErr_Occurred()) SWIG_fail;
38123 }
38124 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38125 {
38126 if (temp7)
38127 delete arg7;
38128 }
38129 return resultobj;
38130 fail:
38131 {
38132 if (temp7)
38133 delete arg7;
38134 }
38135 return NULL;
38136 }
38137
38138
38139 SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38140 PyObject *resultobj = 0;
38141 wxPyControl *result = 0 ;
38142
38143 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38144 {
38145 if (!wxPyCheckForApp()) SWIG_fail;
38146 PyThreadState* __tstate = wxPyBeginAllowThreads();
38147 result = (wxPyControl *)new wxPyControl();
38148 wxPyEndAllowThreads(__tstate);
38149 if (PyErr_Occurred()) SWIG_fail;
38150 }
38151 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38152 return resultobj;
38153 fail:
38154 return NULL;
38155 }
38156
38157
38158 SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38159 PyObject *resultobj = 0;
38160 wxPyControl *arg1 = (wxPyControl *) 0 ;
38161 PyObject *arg2 = (PyObject *) 0 ;
38162 PyObject *arg3 = (PyObject *) 0 ;
38163 void *argp1 = 0 ;
38164 int res1 = 0 ;
38165 PyObject * obj0 = 0 ;
38166 PyObject * obj1 = 0 ;
38167 PyObject * obj2 = 0 ;
38168 char * kwnames[] = {
38169 (char *) "self",(char *) "self",(char *) "_class", NULL
38170 };
38171
38172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38174 if (!SWIG_IsOK(res1)) {
38175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38176 }
38177 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38178 arg2 = obj1;
38179 arg3 = obj2;
38180 {
38181 PyThreadState* __tstate = wxPyBeginAllowThreads();
38182 (arg1)->_setCallbackInfo(arg2,arg3);
38183 wxPyEndAllowThreads(__tstate);
38184 if (PyErr_Occurred()) SWIG_fail;
38185 }
38186 resultobj = SWIG_Py_Void();
38187 return resultobj;
38188 fail:
38189 return NULL;
38190 }
38191
38192
38193 SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38194 PyObject *resultobj = 0;
38195 wxPyControl *arg1 = (wxPyControl *) 0 ;
38196 wxSize *arg2 = 0 ;
38197 void *argp1 = 0 ;
38198 int res1 = 0 ;
38199 wxSize temp2 ;
38200 PyObject * obj0 = 0 ;
38201 PyObject * obj1 = 0 ;
38202 char * kwnames[] = {
38203 (char *) "self",(char *) "size", NULL
38204 };
38205
38206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
38207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38208 if (!SWIG_IsOK(res1)) {
38209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38210 }
38211 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38212 {
38213 arg2 = &temp2;
38214 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
38215 }
38216 {
38217 PyThreadState* __tstate = wxPyBeginAllowThreads();
38218 (arg1)->SetBestSize((wxSize const &)*arg2);
38219 wxPyEndAllowThreads(__tstate);
38220 if (PyErr_Occurred()) SWIG_fail;
38221 }
38222 resultobj = SWIG_Py_Void();
38223 return resultobj;
38224 fail:
38225 return NULL;
38226 }
38227
38228
38229 SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38230 PyObject *resultobj = 0;
38231 wxPyControl *arg1 = (wxPyControl *) 0 ;
38232 wxDC *arg2 = (wxDC *) 0 ;
38233 bool result;
38234 void *argp1 = 0 ;
38235 int res1 = 0 ;
38236 void *argp2 = 0 ;
38237 int res2 = 0 ;
38238 PyObject * obj0 = 0 ;
38239 PyObject * obj1 = 0 ;
38240 char * kwnames[] = {
38241 (char *) "self",(char *) "dc", NULL
38242 };
38243
38244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38246 if (!SWIG_IsOK(res1)) {
38247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38248 }
38249 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38250 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38251 if (!SWIG_IsOK(res2)) {
38252 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38253 }
38254 arg2 = reinterpret_cast< wxDC * >(argp2);
38255 {
38256 PyThreadState* __tstate = wxPyBeginAllowThreads();
38257 result = (bool)(arg1)->DoEraseBackground(arg2);
38258 wxPyEndAllowThreads(__tstate);
38259 if (PyErr_Occurred()) SWIG_fail;
38260 }
38261 {
38262 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38263 }
38264 return resultobj;
38265 fail:
38266 return NULL;
38267 }
38268
38269
38270 SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38271 PyObject *resultobj = 0;
38272 wxPyControl *arg1 = (wxPyControl *) 0 ;
38273 int arg2 ;
38274 int arg3 ;
38275 int arg4 ;
38276 int arg5 ;
38277 void *argp1 = 0 ;
38278 int res1 = 0 ;
38279 int val2 ;
38280 int ecode2 = 0 ;
38281 int val3 ;
38282 int ecode3 = 0 ;
38283 int val4 ;
38284 int ecode4 = 0 ;
38285 int val5 ;
38286 int ecode5 = 0 ;
38287 PyObject * obj0 = 0 ;
38288 PyObject * obj1 = 0 ;
38289 PyObject * obj2 = 0 ;
38290 PyObject * obj3 = 0 ;
38291 PyObject * obj4 = 0 ;
38292 char * kwnames[] = {
38293 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38294 };
38295
38296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38298 if (!SWIG_IsOK(res1)) {
38299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38300 }
38301 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38302 ecode2 = SWIG_AsVal_int(obj1, &val2);
38303 if (!SWIG_IsOK(ecode2)) {
38304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38305 }
38306 arg2 = static_cast< int >(val2);
38307 ecode3 = SWIG_AsVal_int(obj2, &val3);
38308 if (!SWIG_IsOK(ecode3)) {
38309 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38310 }
38311 arg3 = static_cast< int >(val3);
38312 ecode4 = SWIG_AsVal_int(obj3, &val4);
38313 if (!SWIG_IsOK(ecode4)) {
38314 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38315 }
38316 arg4 = static_cast< int >(val4);
38317 ecode5 = SWIG_AsVal_int(obj4, &val5);
38318 if (!SWIG_IsOK(ecode5)) {
38319 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38320 }
38321 arg5 = static_cast< int >(val5);
38322 {
38323 PyThreadState* __tstate = wxPyBeginAllowThreads();
38324 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38325 wxPyEndAllowThreads(__tstate);
38326 if (PyErr_Occurred()) SWIG_fail;
38327 }
38328 resultobj = SWIG_Py_Void();
38329 return resultobj;
38330 fail:
38331 return NULL;
38332 }
38333
38334
38335 SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38336 PyObject *resultobj = 0;
38337 wxPyControl *arg1 = (wxPyControl *) 0 ;
38338 int arg2 ;
38339 int arg3 ;
38340 int arg4 ;
38341 int arg5 ;
38342 int arg6 = (int) wxSIZE_AUTO ;
38343 void *argp1 = 0 ;
38344 int res1 = 0 ;
38345 int val2 ;
38346 int ecode2 = 0 ;
38347 int val3 ;
38348 int ecode3 = 0 ;
38349 int val4 ;
38350 int ecode4 = 0 ;
38351 int val5 ;
38352 int ecode5 = 0 ;
38353 int val6 ;
38354 int ecode6 = 0 ;
38355 PyObject * obj0 = 0 ;
38356 PyObject * obj1 = 0 ;
38357 PyObject * obj2 = 0 ;
38358 PyObject * obj3 = 0 ;
38359 PyObject * obj4 = 0 ;
38360 PyObject * obj5 = 0 ;
38361 char * kwnames[] = {
38362 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38363 };
38364
38365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38367 if (!SWIG_IsOK(res1)) {
38368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38369 }
38370 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38371 ecode2 = SWIG_AsVal_int(obj1, &val2);
38372 if (!SWIG_IsOK(ecode2)) {
38373 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38374 }
38375 arg2 = static_cast< int >(val2);
38376 ecode3 = SWIG_AsVal_int(obj2, &val3);
38377 if (!SWIG_IsOK(ecode3)) {
38378 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38379 }
38380 arg3 = static_cast< int >(val3);
38381 ecode4 = SWIG_AsVal_int(obj3, &val4);
38382 if (!SWIG_IsOK(ecode4)) {
38383 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
38384 }
38385 arg4 = static_cast< int >(val4);
38386 ecode5 = SWIG_AsVal_int(obj4, &val5);
38387 if (!SWIG_IsOK(ecode5)) {
38388 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
38389 }
38390 arg5 = static_cast< int >(val5);
38391 if (obj5) {
38392 ecode6 = SWIG_AsVal_int(obj5, &val6);
38393 if (!SWIG_IsOK(ecode6)) {
38394 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
38395 }
38396 arg6 = static_cast< int >(val6);
38397 }
38398 {
38399 PyThreadState* __tstate = wxPyBeginAllowThreads();
38400 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
38401 wxPyEndAllowThreads(__tstate);
38402 if (PyErr_Occurred()) SWIG_fail;
38403 }
38404 resultobj = SWIG_Py_Void();
38405 return resultobj;
38406 fail:
38407 return NULL;
38408 }
38409
38410
38411 SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38412 PyObject *resultobj = 0;
38413 wxPyControl *arg1 = (wxPyControl *) 0 ;
38414 int arg2 ;
38415 int arg3 ;
38416 void *argp1 = 0 ;
38417 int res1 = 0 ;
38418 int val2 ;
38419 int ecode2 = 0 ;
38420 int val3 ;
38421 int ecode3 = 0 ;
38422 PyObject * obj0 = 0 ;
38423 PyObject * obj1 = 0 ;
38424 PyObject * obj2 = 0 ;
38425 char * kwnames[] = {
38426 (char *) "self",(char *) "width",(char *) "height", NULL
38427 };
38428
38429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38431 if (!SWIG_IsOK(res1)) {
38432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38433 }
38434 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38435 ecode2 = SWIG_AsVal_int(obj1, &val2);
38436 if (!SWIG_IsOK(ecode2)) {
38437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
38438 }
38439 arg2 = static_cast< int >(val2);
38440 ecode3 = SWIG_AsVal_int(obj2, &val3);
38441 if (!SWIG_IsOK(ecode3)) {
38442 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
38443 }
38444 arg3 = static_cast< int >(val3);
38445 {
38446 PyThreadState* __tstate = wxPyBeginAllowThreads();
38447 (arg1)->DoSetClientSize(arg2,arg3);
38448 wxPyEndAllowThreads(__tstate);
38449 if (PyErr_Occurred()) SWIG_fail;
38450 }
38451 resultobj = SWIG_Py_Void();
38452 return resultobj;
38453 fail:
38454 return NULL;
38455 }
38456
38457
38458 SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38459 PyObject *resultobj = 0;
38460 wxPyControl *arg1 = (wxPyControl *) 0 ;
38461 int arg2 ;
38462 int arg3 ;
38463 void *argp1 = 0 ;
38464 int res1 = 0 ;
38465 int val2 ;
38466 int ecode2 = 0 ;
38467 int val3 ;
38468 int ecode3 = 0 ;
38469 PyObject * obj0 = 0 ;
38470 PyObject * obj1 = 0 ;
38471 PyObject * obj2 = 0 ;
38472 char * kwnames[] = {
38473 (char *) "self",(char *) "x",(char *) "y", NULL
38474 };
38475
38476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38478 if (!SWIG_IsOK(res1)) {
38479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38480 }
38481 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38482 ecode2 = SWIG_AsVal_int(obj1, &val2);
38483 if (!SWIG_IsOK(ecode2)) {
38484 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
38485 }
38486 arg2 = static_cast< int >(val2);
38487 ecode3 = SWIG_AsVal_int(obj2, &val3);
38488 if (!SWIG_IsOK(ecode3)) {
38489 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
38490 }
38491 arg3 = static_cast< int >(val3);
38492 {
38493 PyThreadState* __tstate = wxPyBeginAllowThreads();
38494 (arg1)->DoSetVirtualSize(arg2,arg3);
38495 wxPyEndAllowThreads(__tstate);
38496 if (PyErr_Occurred()) SWIG_fail;
38497 }
38498 resultobj = SWIG_Py_Void();
38499 return resultobj;
38500 fail:
38501 return NULL;
38502 }
38503
38504
38505 SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38506 PyObject *resultobj = 0;
38507 wxPyControl *arg1 = (wxPyControl *) 0 ;
38508 int *arg2 = (int *) 0 ;
38509 int *arg3 = (int *) 0 ;
38510 void *argp1 = 0 ;
38511 int res1 = 0 ;
38512 int temp2 ;
38513 int res2 = SWIG_TMPOBJ ;
38514 int temp3 ;
38515 int res3 = SWIG_TMPOBJ ;
38516 PyObject *swig_obj[1] ;
38517
38518 arg2 = &temp2;
38519 arg3 = &temp3;
38520 if (!args) SWIG_fail;
38521 swig_obj[0] = args;
38522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38523 if (!SWIG_IsOK(res1)) {
38524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38525 }
38526 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38527 {
38528 PyThreadState* __tstate = wxPyBeginAllowThreads();
38529 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
38530 wxPyEndAllowThreads(__tstate);
38531 if (PyErr_Occurred()) SWIG_fail;
38532 }
38533 resultobj = SWIG_Py_Void();
38534 if (SWIG_IsTmpObj(res2)) {
38535 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38536 } else {
38537 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38538 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38539 }
38540 if (SWIG_IsTmpObj(res3)) {
38541 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38542 } else {
38543 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38544 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38545 }
38546 return resultobj;
38547 fail:
38548 return NULL;
38549 }
38550
38551
38552 SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38553 PyObject *resultobj = 0;
38554 wxPyControl *arg1 = (wxPyControl *) 0 ;
38555 int *arg2 = (int *) 0 ;
38556 int *arg3 = (int *) 0 ;
38557 void *argp1 = 0 ;
38558 int res1 = 0 ;
38559 int temp2 ;
38560 int res2 = SWIG_TMPOBJ ;
38561 int temp3 ;
38562 int res3 = SWIG_TMPOBJ ;
38563 PyObject *swig_obj[1] ;
38564
38565 arg2 = &temp2;
38566 arg3 = &temp3;
38567 if (!args) SWIG_fail;
38568 swig_obj[0] = args;
38569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38570 if (!SWIG_IsOK(res1)) {
38571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38572 }
38573 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38574 {
38575 PyThreadState* __tstate = wxPyBeginAllowThreads();
38576 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
38577 wxPyEndAllowThreads(__tstate);
38578 if (PyErr_Occurred()) SWIG_fail;
38579 }
38580 resultobj = SWIG_Py_Void();
38581 if (SWIG_IsTmpObj(res2)) {
38582 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38583 } else {
38584 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38585 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38586 }
38587 if (SWIG_IsTmpObj(res3)) {
38588 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38589 } else {
38590 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38591 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38592 }
38593 return resultobj;
38594 fail:
38595 return NULL;
38596 }
38597
38598
38599 SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38600 PyObject *resultobj = 0;
38601 wxPyControl *arg1 = (wxPyControl *) 0 ;
38602 int *arg2 = (int *) 0 ;
38603 int *arg3 = (int *) 0 ;
38604 void *argp1 = 0 ;
38605 int res1 = 0 ;
38606 int temp2 ;
38607 int res2 = SWIG_TMPOBJ ;
38608 int temp3 ;
38609 int res3 = SWIG_TMPOBJ ;
38610 PyObject *swig_obj[1] ;
38611
38612 arg2 = &temp2;
38613 arg3 = &temp3;
38614 if (!args) SWIG_fail;
38615 swig_obj[0] = args;
38616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38617 if (!SWIG_IsOK(res1)) {
38618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38619 }
38620 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38621 {
38622 PyThreadState* __tstate = wxPyBeginAllowThreads();
38623 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
38624 wxPyEndAllowThreads(__tstate);
38625 if (PyErr_Occurred()) SWIG_fail;
38626 }
38627 resultobj = SWIG_Py_Void();
38628 if (SWIG_IsTmpObj(res2)) {
38629 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38630 } else {
38631 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38632 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38633 }
38634 if (SWIG_IsTmpObj(res3)) {
38635 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38636 } else {
38637 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38638 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38639 }
38640 return resultobj;
38641 fail:
38642 return NULL;
38643 }
38644
38645
38646 SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38647 PyObject *resultobj = 0;
38648 wxPyControl *arg1 = (wxPyControl *) 0 ;
38649 wxSize result;
38650 void *argp1 = 0 ;
38651 int res1 = 0 ;
38652 PyObject *swig_obj[1] ;
38653
38654 if (!args) SWIG_fail;
38655 swig_obj[0] = args;
38656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38657 if (!SWIG_IsOK(res1)) {
38658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38659 }
38660 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38661 {
38662 PyThreadState* __tstate = wxPyBeginAllowThreads();
38663 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
38664 wxPyEndAllowThreads(__tstate);
38665 if (PyErr_Occurred()) SWIG_fail;
38666 }
38667 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
38668 return resultobj;
38669 fail:
38670 return NULL;
38671 }
38672
38673
38674 SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38675 PyObject *resultobj = 0;
38676 wxPyControl *arg1 = (wxPyControl *) 0 ;
38677 wxSize result;
38678 void *argp1 = 0 ;
38679 int res1 = 0 ;
38680 PyObject *swig_obj[1] ;
38681
38682 if (!args) SWIG_fail;
38683 swig_obj[0] = args;
38684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38685 if (!SWIG_IsOK(res1)) {
38686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38687 }
38688 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38689 {
38690 PyThreadState* __tstate = wxPyBeginAllowThreads();
38691 result = ((wxPyControl const *)arg1)->DoGetBestSize();
38692 wxPyEndAllowThreads(__tstate);
38693 if (PyErr_Occurred()) SWIG_fail;
38694 }
38695 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
38696 return resultobj;
38697 fail:
38698 return NULL;
38699 }
38700
38701
38702 SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38703 PyObject *resultobj = 0;
38704 wxPyControl *arg1 = (wxPyControl *) 0 ;
38705 SwigValueWrapper<wxVisualAttributes > result;
38706 void *argp1 = 0 ;
38707 int res1 = 0 ;
38708 PyObject *swig_obj[1] ;
38709
38710 if (!args) SWIG_fail;
38711 swig_obj[0] = args;
38712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38713 if (!SWIG_IsOK(res1)) {
38714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
38715 }
38716 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38717 {
38718 PyThreadState* __tstate = wxPyBeginAllowThreads();
38719 result = (arg1)->GetDefaultAttributes();
38720 wxPyEndAllowThreads(__tstate);
38721 if (PyErr_Occurred()) SWIG_fail;
38722 }
38723 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
38724 return resultobj;
38725 fail:
38726 return NULL;
38727 }
38728
38729
38730 SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38731 PyObject *resultobj = 0;
38732 wxPyControl *arg1 = (wxPyControl *) 0 ;
38733 void *argp1 = 0 ;
38734 int res1 = 0 ;
38735 PyObject *swig_obj[1] ;
38736
38737 if (!args) SWIG_fail;
38738 swig_obj[0] = args;
38739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38740 if (!SWIG_IsOK(res1)) {
38741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
38742 }
38743 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38744 {
38745 PyThreadState* __tstate = wxPyBeginAllowThreads();
38746 (arg1)->OnInternalIdle();
38747 wxPyEndAllowThreads(__tstate);
38748 if (PyErr_Occurred()) SWIG_fail;
38749 }
38750 resultobj = SWIG_Py_Void();
38751 return resultobj;
38752 fail:
38753 return NULL;
38754 }
38755
38756
38757 SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38758 PyObject *obj;
38759 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38760 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
38761 return SWIG_Py_Void();
38762 }
38763
38764 SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38765 return SWIG_Python_InitShadowInstance(args);
38766 }
38767
38768 SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38769 PyObject *resultobj = 0;
38770 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
38771 int arg2 = (int) 0 ;
38772 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38773 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38774 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
38775 wxHelpEvent *result = 0 ;
38776 int val1 ;
38777 int ecode1 = 0 ;
38778 int val2 ;
38779 int ecode2 = 0 ;
38780 wxPoint temp3 ;
38781 int val4 ;
38782 int ecode4 = 0 ;
38783 PyObject * obj0 = 0 ;
38784 PyObject * obj1 = 0 ;
38785 PyObject * obj2 = 0 ;
38786 PyObject * obj3 = 0 ;
38787 char * kwnames[] = {
38788 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
38789 };
38790
38791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38792 if (obj0) {
38793 ecode1 = SWIG_AsVal_int(obj0, &val1);
38794 if (!SWIG_IsOK(ecode1)) {
38795 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
38796 }
38797 arg1 = static_cast< wxEventType >(val1);
38798 }
38799 if (obj1) {
38800 ecode2 = SWIG_AsVal_int(obj1, &val2);
38801 if (!SWIG_IsOK(ecode2)) {
38802 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
38803 }
38804 arg2 = static_cast< int >(val2);
38805 }
38806 if (obj2) {
38807 {
38808 arg3 = &temp3;
38809 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38810 }
38811 }
38812 if (obj3) {
38813 ecode4 = SWIG_AsVal_int(obj3, &val4);
38814 if (!SWIG_IsOK(ecode4)) {
38815 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
38816 }
38817 arg4 = static_cast< wxHelpEvent::Origin >(val4);
38818 }
38819 {
38820 PyThreadState* __tstate = wxPyBeginAllowThreads();
38821 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
38822 wxPyEndAllowThreads(__tstate);
38823 if (PyErr_Occurred()) SWIG_fail;
38824 }
38825 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
38826 return resultobj;
38827 fail:
38828 return NULL;
38829 }
38830
38831
38832 SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38833 PyObject *resultobj = 0;
38834 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38835 wxPoint result;
38836 void *argp1 = 0 ;
38837 int res1 = 0 ;
38838 PyObject *swig_obj[1] ;
38839
38840 if (!args) SWIG_fail;
38841 swig_obj[0] = args;
38842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38843 if (!SWIG_IsOK(res1)) {
38844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38845 }
38846 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38847 {
38848 PyThreadState* __tstate = wxPyBeginAllowThreads();
38849 result = ((wxHelpEvent const *)arg1)->GetPosition();
38850 wxPyEndAllowThreads(__tstate);
38851 if (PyErr_Occurred()) SWIG_fail;
38852 }
38853 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
38854 return resultobj;
38855 fail:
38856 return NULL;
38857 }
38858
38859
38860 SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38861 PyObject *resultobj = 0;
38862 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38863 wxPoint *arg2 = 0 ;
38864 void *argp1 = 0 ;
38865 int res1 = 0 ;
38866 wxPoint temp2 ;
38867 PyObject * obj0 = 0 ;
38868 PyObject * obj1 = 0 ;
38869 char * kwnames[] = {
38870 (char *) "self",(char *) "pos", NULL
38871 };
38872
38873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
38874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38875 if (!SWIG_IsOK(res1)) {
38876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
38877 }
38878 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38879 {
38880 arg2 = &temp2;
38881 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
38882 }
38883 {
38884 PyThreadState* __tstate = wxPyBeginAllowThreads();
38885 (arg1)->SetPosition((wxPoint const &)*arg2);
38886 wxPyEndAllowThreads(__tstate);
38887 if (PyErr_Occurred()) SWIG_fail;
38888 }
38889 resultobj = SWIG_Py_Void();
38890 return resultobj;
38891 fail:
38892 return NULL;
38893 }
38894
38895
38896 SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38897 PyObject *resultobj = 0;
38898 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38899 wxString *result = 0 ;
38900 void *argp1 = 0 ;
38901 int res1 = 0 ;
38902 PyObject *swig_obj[1] ;
38903
38904 if (!args) SWIG_fail;
38905 swig_obj[0] = args;
38906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38907 if (!SWIG_IsOK(res1)) {
38908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38909 }
38910 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38911 {
38912 PyThreadState* __tstate = wxPyBeginAllowThreads();
38913 {
38914 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
38915 result = (wxString *) &_result_ref;
38916 }
38917 wxPyEndAllowThreads(__tstate);
38918 if (PyErr_Occurred()) SWIG_fail;
38919 }
38920 {
38921 #if wxUSE_UNICODE
38922 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
38923 #else
38924 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
38925 #endif
38926 }
38927 return resultobj;
38928 fail:
38929 return NULL;
38930 }
38931
38932
38933 SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38934 PyObject *resultobj = 0;
38935 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38936 wxString *arg2 = 0 ;
38937 void *argp1 = 0 ;
38938 int res1 = 0 ;
38939 bool temp2 = false ;
38940 PyObject * obj0 = 0 ;
38941 PyObject * obj1 = 0 ;
38942 char * kwnames[] = {
38943 (char *) "self",(char *) "link", NULL
38944 };
38945
38946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
38947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38948 if (!SWIG_IsOK(res1)) {
38949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
38950 }
38951 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38952 {
38953 arg2 = wxString_in_helper(obj1);
38954 if (arg2 == NULL) SWIG_fail;
38955 temp2 = true;
38956 }
38957 {
38958 PyThreadState* __tstate = wxPyBeginAllowThreads();
38959 (arg1)->SetLink((wxString const &)*arg2);
38960 wxPyEndAllowThreads(__tstate);
38961 if (PyErr_Occurred()) SWIG_fail;
38962 }
38963 resultobj = SWIG_Py_Void();
38964 {
38965 if (temp2)
38966 delete arg2;
38967 }
38968 return resultobj;
38969 fail:
38970 {
38971 if (temp2)
38972 delete arg2;
38973 }
38974 return NULL;
38975 }
38976
38977
38978 SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38979 PyObject *resultobj = 0;
38980 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38981 wxString *result = 0 ;
38982 void *argp1 = 0 ;
38983 int res1 = 0 ;
38984 PyObject *swig_obj[1] ;
38985
38986 if (!args) SWIG_fail;
38987 swig_obj[0] = args;
38988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38989 if (!SWIG_IsOK(res1)) {
38990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38991 }
38992 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38993 {
38994 PyThreadState* __tstate = wxPyBeginAllowThreads();
38995 {
38996 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
38997 result = (wxString *) &_result_ref;
38998 }
38999 wxPyEndAllowThreads(__tstate);
39000 if (PyErr_Occurred()) SWIG_fail;
39001 }
39002 {
39003 #if wxUSE_UNICODE
39004 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39005 #else
39006 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39007 #endif
39008 }
39009 return resultobj;
39010 fail:
39011 return NULL;
39012 }
39013
39014
39015 SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39016 PyObject *resultobj = 0;
39017 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39018 wxString *arg2 = 0 ;
39019 void *argp1 = 0 ;
39020 int res1 = 0 ;
39021 bool temp2 = false ;
39022 PyObject * obj0 = 0 ;
39023 PyObject * obj1 = 0 ;
39024 char * kwnames[] = {
39025 (char *) "self",(char *) "target", NULL
39026 };
39027
39028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39030 if (!SWIG_IsOK(res1)) {
39031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39032 }
39033 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39034 {
39035 arg2 = wxString_in_helper(obj1);
39036 if (arg2 == NULL) SWIG_fail;
39037 temp2 = true;
39038 }
39039 {
39040 PyThreadState* __tstate = wxPyBeginAllowThreads();
39041 (arg1)->SetTarget((wxString const &)*arg2);
39042 wxPyEndAllowThreads(__tstate);
39043 if (PyErr_Occurred()) SWIG_fail;
39044 }
39045 resultobj = SWIG_Py_Void();
39046 {
39047 if (temp2)
39048 delete arg2;
39049 }
39050 return resultobj;
39051 fail:
39052 {
39053 if (temp2)
39054 delete arg2;
39055 }
39056 return NULL;
39057 }
39058
39059
39060 SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39061 PyObject *resultobj = 0;
39062 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39063 wxHelpEvent::Origin result;
39064 void *argp1 = 0 ;
39065 int res1 = 0 ;
39066 PyObject *swig_obj[1] ;
39067
39068 if (!args) SWIG_fail;
39069 swig_obj[0] = args;
39070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39071 if (!SWIG_IsOK(res1)) {
39072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39073 }
39074 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39075 {
39076 PyThreadState* __tstate = wxPyBeginAllowThreads();
39077 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39078 wxPyEndAllowThreads(__tstate);
39079 if (PyErr_Occurred()) SWIG_fail;
39080 }
39081 resultobj = SWIG_From_int(static_cast< int >(result));
39082 return resultobj;
39083 fail:
39084 return NULL;
39085 }
39086
39087
39088 SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39089 PyObject *resultobj = 0;
39090 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39091 wxHelpEvent::Origin arg2 ;
39092 void *argp1 = 0 ;
39093 int res1 = 0 ;
39094 int val2 ;
39095 int ecode2 = 0 ;
39096 PyObject * obj0 = 0 ;
39097 PyObject * obj1 = 0 ;
39098 char * kwnames[] = {
39099 (char *) "self",(char *) "origin", NULL
39100 };
39101
39102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39104 if (!SWIG_IsOK(res1)) {
39105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39106 }
39107 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39108 ecode2 = SWIG_AsVal_int(obj1, &val2);
39109 if (!SWIG_IsOK(ecode2)) {
39110 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39111 }
39112 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39113 {
39114 PyThreadState* __tstate = wxPyBeginAllowThreads();
39115 (arg1)->SetOrigin(arg2);
39116 wxPyEndAllowThreads(__tstate);
39117 if (PyErr_Occurred()) SWIG_fail;
39118 }
39119 resultobj = SWIG_Py_Void();
39120 return resultobj;
39121 fail:
39122 return NULL;
39123 }
39124
39125
39126 SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39127 PyObject *obj;
39128 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39129 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39130 return SWIG_Py_Void();
39131 }
39132
39133 SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39134 return SWIG_Python_InitShadowInstance(args);
39135 }
39136
39137 SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39138 PyObject *resultobj = 0;
39139 wxWindow *arg1 = (wxWindow *) NULL ;
39140 bool arg2 = (bool) true ;
39141 wxContextHelp *result = 0 ;
39142 void *argp1 = 0 ;
39143 int res1 = 0 ;
39144 bool val2 ;
39145 int ecode2 = 0 ;
39146 PyObject * obj0 = 0 ;
39147 PyObject * obj1 = 0 ;
39148 char * kwnames[] = {
39149 (char *) "window",(char *) "doNow", NULL
39150 };
39151
39152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39153 if (obj0) {
39154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39155 if (!SWIG_IsOK(res1)) {
39156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
39157 }
39158 arg1 = reinterpret_cast< wxWindow * >(argp1);
39159 }
39160 if (obj1) {
39161 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39162 if (!SWIG_IsOK(ecode2)) {
39163 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39164 }
39165 arg2 = static_cast< bool >(val2);
39166 }
39167 {
39168 if (!wxPyCheckForApp()) SWIG_fail;
39169 PyThreadState* __tstate = wxPyBeginAllowThreads();
39170 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39171 wxPyEndAllowThreads(__tstate);
39172 if (PyErr_Occurred()) SWIG_fail;
39173 }
39174 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39175 return resultobj;
39176 fail:
39177 return NULL;
39178 }
39179
39180
39181 SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39182 PyObject *resultobj = 0;
39183 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39184 void *argp1 = 0 ;
39185 int res1 = 0 ;
39186 PyObject *swig_obj[1] ;
39187
39188 if (!args) SWIG_fail;
39189 swig_obj[0] = args;
39190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39191 if (!SWIG_IsOK(res1)) {
39192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39193 }
39194 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39195 {
39196 PyThreadState* __tstate = wxPyBeginAllowThreads();
39197 delete arg1;
39198
39199 wxPyEndAllowThreads(__tstate);
39200 if (PyErr_Occurred()) SWIG_fail;
39201 }
39202 resultobj = SWIG_Py_Void();
39203 return resultobj;
39204 fail:
39205 return NULL;
39206 }
39207
39208
39209 SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39210 PyObject *resultobj = 0;
39211 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39212 wxWindow *arg2 = (wxWindow *) NULL ;
39213 bool result;
39214 void *argp1 = 0 ;
39215 int res1 = 0 ;
39216 void *argp2 = 0 ;
39217 int res2 = 0 ;
39218 PyObject * obj0 = 0 ;
39219 PyObject * obj1 = 0 ;
39220 char * kwnames[] = {
39221 (char *) "self",(char *) "window", NULL
39222 };
39223
39224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39226 if (!SWIG_IsOK(res1)) {
39227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39228 }
39229 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39230 if (obj1) {
39231 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39232 if (!SWIG_IsOK(res2)) {
39233 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39234 }
39235 arg2 = reinterpret_cast< wxWindow * >(argp2);
39236 }
39237 {
39238 PyThreadState* __tstate = wxPyBeginAllowThreads();
39239 result = (bool)(arg1)->BeginContextHelp(arg2);
39240 wxPyEndAllowThreads(__tstate);
39241 if (PyErr_Occurred()) SWIG_fail;
39242 }
39243 {
39244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39245 }
39246 return resultobj;
39247 fail:
39248 return NULL;
39249 }
39250
39251
39252 SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39253 PyObject *resultobj = 0;
39254 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39255 bool result;
39256 void *argp1 = 0 ;
39257 int res1 = 0 ;
39258 PyObject *swig_obj[1] ;
39259
39260 if (!args) SWIG_fail;
39261 swig_obj[0] = args;
39262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39263 if (!SWIG_IsOK(res1)) {
39264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39265 }
39266 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39267 {
39268 PyThreadState* __tstate = wxPyBeginAllowThreads();
39269 result = (bool)(arg1)->EndContextHelp();
39270 wxPyEndAllowThreads(__tstate);
39271 if (PyErr_Occurred()) SWIG_fail;
39272 }
39273 {
39274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39275 }
39276 return resultobj;
39277 fail:
39278 return NULL;
39279 }
39280
39281
39282 SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39283 PyObject *obj;
39284 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39285 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39286 return SWIG_Py_Void();
39287 }
39288
39289 SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39290 return SWIG_Python_InitShadowInstance(args);
39291 }
39292
39293 SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39294 PyObject *resultobj = 0;
39295 wxWindow *arg1 = (wxWindow *) 0 ;
39296 int arg2 = (int) wxID_CONTEXT_HELP ;
39297 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39298 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39299 wxSize const &arg4_defvalue = wxDefaultSize ;
39300 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39301 long arg5 = (long) wxBU_AUTODRAW ;
39302 wxContextHelpButton *result = 0 ;
39303 void *argp1 = 0 ;
39304 int res1 = 0 ;
39305 int val2 ;
39306 int ecode2 = 0 ;
39307 wxPoint temp3 ;
39308 wxSize temp4 ;
39309 long val5 ;
39310 int ecode5 = 0 ;
39311 PyObject * obj0 = 0 ;
39312 PyObject * obj1 = 0 ;
39313 PyObject * obj2 = 0 ;
39314 PyObject * obj3 = 0 ;
39315 PyObject * obj4 = 0 ;
39316 char * kwnames[] = {
39317 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39318 };
39319
39320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39322 if (!SWIG_IsOK(res1)) {
39323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39324 }
39325 arg1 = reinterpret_cast< wxWindow * >(argp1);
39326 if (obj1) {
39327 ecode2 = SWIG_AsVal_int(obj1, &val2);
39328 if (!SWIG_IsOK(ecode2)) {
39329 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39330 }
39331 arg2 = static_cast< int >(val2);
39332 }
39333 if (obj2) {
39334 {
39335 arg3 = &temp3;
39336 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39337 }
39338 }
39339 if (obj3) {
39340 {
39341 arg4 = &temp4;
39342 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
39343 }
39344 }
39345 if (obj4) {
39346 ecode5 = SWIG_AsVal_long(obj4, &val5);
39347 if (!SWIG_IsOK(ecode5)) {
39348 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39349 }
39350 arg5 = static_cast< long >(val5);
39351 }
39352 {
39353 if (!wxPyCheckForApp()) SWIG_fail;
39354 PyThreadState* __tstate = wxPyBeginAllowThreads();
39355 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39356 wxPyEndAllowThreads(__tstate);
39357 if (PyErr_Occurred()) SWIG_fail;
39358 }
39359 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39360 return resultobj;
39361 fail:
39362 return NULL;
39363 }
39364
39365
39366 SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39367 PyObject *obj;
39368 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39369 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39370 return SWIG_Py_Void();
39371 }
39372
39373 SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39374 return SWIG_Python_InitShadowInstance(args);
39375 }
39376
39377 SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39378 PyObject *resultobj = 0;
39379 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39380 void *argp1 = 0 ;
39381 int res1 = 0 ;
39382 PyObject *swig_obj[1] ;
39383
39384 if (!args) SWIG_fail;
39385 swig_obj[0] = args;
39386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39387 if (!SWIG_IsOK(res1)) {
39388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39389 }
39390 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39391 {
39392 PyThreadState* __tstate = wxPyBeginAllowThreads();
39393 delete arg1;
39394
39395 wxPyEndAllowThreads(__tstate);
39396 if (PyErr_Occurred()) SWIG_fail;
39397 }
39398 resultobj = SWIG_Py_Void();
39399 return resultobj;
39400 fail:
39401 return NULL;
39402 }
39403
39404
39405 SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39406 PyObject *resultobj = 0;
39407 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39408 wxHelpProvider *result = 0 ;
39409 int res1 = 0 ;
39410 PyObject * obj0 = 0 ;
39411 char * kwnames[] = {
39412 (char *) "helpProvider", NULL
39413 };
39414
39415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
39416 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39417 if (!SWIG_IsOK(res1)) {
39418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39419 }
39420 {
39421 PyThreadState* __tstate = wxPyBeginAllowThreads();
39422 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
39423 wxPyEndAllowThreads(__tstate);
39424 if (PyErr_Occurred()) SWIG_fail;
39425 }
39426 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
39427 return resultobj;
39428 fail:
39429 return NULL;
39430 }
39431
39432
39433 SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39434 PyObject *resultobj = 0;
39435 wxHelpProvider *result = 0 ;
39436
39437 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
39438 {
39439 PyThreadState* __tstate = wxPyBeginAllowThreads();
39440 result = (wxHelpProvider *)wxHelpProvider::Get();
39441 wxPyEndAllowThreads(__tstate);
39442 if (PyErr_Occurred()) SWIG_fail;
39443 }
39444 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39445 return resultobj;
39446 fail:
39447 return NULL;
39448 }
39449
39450
39451 SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39452 PyObject *resultobj = 0;
39453 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39454 wxWindow *arg2 = (wxWindow *) 0 ;
39455 wxString result;
39456 void *argp1 = 0 ;
39457 int res1 = 0 ;
39458 void *argp2 = 0 ;
39459 int res2 = 0 ;
39460 PyObject * obj0 = 0 ;
39461 PyObject * obj1 = 0 ;
39462 char * kwnames[] = {
39463 (char *) "self",(char *) "window", NULL
39464 };
39465
39466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39468 if (!SWIG_IsOK(res1)) {
39469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39470 }
39471 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39472 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39473 if (!SWIG_IsOK(res2)) {
39474 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
39475 }
39476 arg2 = reinterpret_cast< wxWindow * >(argp2);
39477 {
39478 PyThreadState* __tstate = wxPyBeginAllowThreads();
39479 result = (arg1)->GetHelp((wxWindow const *)arg2);
39480 wxPyEndAllowThreads(__tstate);
39481 if (PyErr_Occurred()) SWIG_fail;
39482 }
39483 {
39484 #if wxUSE_UNICODE
39485 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
39486 #else
39487 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
39488 #endif
39489 }
39490 return resultobj;
39491 fail:
39492 return NULL;
39493 }
39494
39495
39496 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39497 PyObject *resultobj = 0;
39498 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39499 wxWindow *arg2 = (wxWindow *) 0 ;
39500 bool result;
39501 void *argp1 = 0 ;
39502 int res1 = 0 ;
39503 void *argp2 = 0 ;
39504 int res2 = 0 ;
39505 PyObject * obj0 = 0 ;
39506 PyObject * obj1 = 0 ;
39507 char * kwnames[] = {
39508 (char *) "self",(char *) "window", NULL
39509 };
39510
39511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39513 if (!SWIG_IsOK(res1)) {
39514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39515 }
39516 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39517 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39518 if (!SWIG_IsOK(res2)) {
39519 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39520 }
39521 arg2 = reinterpret_cast< wxWindow * >(argp2);
39522 {
39523 PyThreadState* __tstate = wxPyBeginAllowThreads();
39524 result = (bool)(arg1)->ShowHelp(arg2);
39525 wxPyEndAllowThreads(__tstate);
39526 if (PyErr_Occurred()) SWIG_fail;
39527 }
39528 {
39529 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39530 }
39531 return resultobj;
39532 fail:
39533 return NULL;
39534 }
39535
39536
39537 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39538 PyObject *resultobj = 0;
39539 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39540 wxWindow *arg2 = (wxWindow *) 0 ;
39541 wxString *arg3 = 0 ;
39542 void *argp1 = 0 ;
39543 int res1 = 0 ;
39544 void *argp2 = 0 ;
39545 int res2 = 0 ;
39546 bool temp3 = false ;
39547 PyObject * obj0 = 0 ;
39548 PyObject * obj1 = 0 ;
39549 PyObject * obj2 = 0 ;
39550 char * kwnames[] = {
39551 (char *) "self",(char *) "window",(char *) "text", NULL
39552 };
39553
39554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39556 if (!SWIG_IsOK(res1)) {
39557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39558 }
39559 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39560 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39561 if (!SWIG_IsOK(res2)) {
39562 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39563 }
39564 arg2 = reinterpret_cast< wxWindow * >(argp2);
39565 {
39566 arg3 = wxString_in_helper(obj2);
39567 if (arg3 == NULL) SWIG_fail;
39568 temp3 = true;
39569 }
39570 {
39571 PyThreadState* __tstate = wxPyBeginAllowThreads();
39572 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39573 wxPyEndAllowThreads(__tstate);
39574 if (PyErr_Occurred()) SWIG_fail;
39575 }
39576 resultobj = SWIG_Py_Void();
39577 {
39578 if (temp3)
39579 delete arg3;
39580 }
39581 return resultobj;
39582 fail:
39583 {
39584 if (temp3)
39585 delete arg3;
39586 }
39587 return NULL;
39588 }
39589
39590
39591 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39592 PyObject *resultobj = 0;
39593 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39594 int arg2 ;
39595 wxString *arg3 = 0 ;
39596 void *argp1 = 0 ;
39597 int res1 = 0 ;
39598 int val2 ;
39599 int ecode2 = 0 ;
39600 bool temp3 = false ;
39601 PyObject * obj0 = 0 ;
39602 PyObject * obj1 = 0 ;
39603 PyObject * obj2 = 0 ;
39604 char * kwnames[] = {
39605 (char *) "self",(char *) "id",(char *) "text", NULL
39606 };
39607
39608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39610 if (!SWIG_IsOK(res1)) {
39611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39612 }
39613 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39614 ecode2 = SWIG_AsVal_int(obj1, &val2);
39615 if (!SWIG_IsOK(ecode2)) {
39616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
39617 }
39618 arg2 = static_cast< int >(val2);
39619 {
39620 arg3 = wxString_in_helper(obj2);
39621 if (arg3 == NULL) SWIG_fail;
39622 temp3 = true;
39623 }
39624 {
39625 PyThreadState* __tstate = wxPyBeginAllowThreads();
39626 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39627 wxPyEndAllowThreads(__tstate);
39628 if (PyErr_Occurred()) SWIG_fail;
39629 }
39630 resultobj = SWIG_Py_Void();
39631 {
39632 if (temp3)
39633 delete arg3;
39634 }
39635 return resultobj;
39636 fail:
39637 {
39638 if (temp3)
39639 delete arg3;
39640 }
39641 return NULL;
39642 }
39643
39644
39645 SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39646 PyObject *resultobj = 0;
39647 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39648 wxWindow *arg2 = (wxWindow *) 0 ;
39649 void *argp1 = 0 ;
39650 int res1 = 0 ;
39651 void *argp2 = 0 ;
39652 int res2 = 0 ;
39653 PyObject * obj0 = 0 ;
39654 PyObject * obj1 = 0 ;
39655 char * kwnames[] = {
39656 (char *) "self",(char *) "window", NULL
39657 };
39658
39659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39661 if (!SWIG_IsOK(res1)) {
39662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39663 }
39664 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39665 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39666 if (!SWIG_IsOK(res2)) {
39667 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39668 }
39669 arg2 = reinterpret_cast< wxWindow * >(argp2);
39670 {
39671 PyThreadState* __tstate = wxPyBeginAllowThreads();
39672 (arg1)->RemoveHelp(arg2);
39673 wxPyEndAllowThreads(__tstate);
39674 if (PyErr_Occurred()) SWIG_fail;
39675 }
39676 resultobj = SWIG_Py_Void();
39677 return resultobj;
39678 fail:
39679 return NULL;
39680 }
39681
39682
39683 SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39684 PyObject *resultobj = 0;
39685 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39686 void *argp1 = 0 ;
39687 int res1 = 0 ;
39688 PyObject *swig_obj[1] ;
39689
39690 if (!args) SWIG_fail;
39691 swig_obj[0] = args;
39692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39693 if (!SWIG_IsOK(res1)) {
39694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39695 }
39696 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39697 {
39698 PyThreadState* __tstate = wxPyBeginAllowThreads();
39699 wxHelpProvider_Destroy(arg1);
39700 wxPyEndAllowThreads(__tstate);
39701 if (PyErr_Occurred()) SWIG_fail;
39702 }
39703 resultobj = SWIG_Py_Void();
39704 return resultobj;
39705 fail:
39706 return NULL;
39707 }
39708
39709
39710 SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39711 PyObject *obj;
39712 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39713 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
39714 return SWIG_Py_Void();
39715 }
39716
39717 SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39718 PyObject *resultobj = 0;
39719 wxSimpleHelpProvider *result = 0 ;
39720
39721 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
39722 {
39723 PyThreadState* __tstate = wxPyBeginAllowThreads();
39724 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
39725 wxPyEndAllowThreads(__tstate);
39726 if (PyErr_Occurred()) SWIG_fail;
39727 }
39728 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
39729 return resultobj;
39730 fail:
39731 return NULL;
39732 }
39733
39734
39735 SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39736 PyObject *obj;
39737 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39738 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
39739 return SWIG_Py_Void();
39740 }
39741
39742 SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39743 return SWIG_Python_InitShadowInstance(args);
39744 }
39745
39746 SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39747 PyObject *resultobj = 0;
39748 wxBitmap *arg1 = 0 ;
39749 wxCursor const &arg2_defvalue = wxNullCursor ;
39750 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39751 wxGenericDragImage *result = 0 ;
39752 void *argp1 = 0 ;
39753 int res1 = 0 ;
39754 void *argp2 = 0 ;
39755 int res2 = 0 ;
39756 PyObject * obj0 = 0 ;
39757 PyObject * obj1 = 0 ;
39758 char * kwnames[] = {
39759 (char *) "image",(char *) "cursor", NULL
39760 };
39761
39762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
39763 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
39764 if (!SWIG_IsOK(res1)) {
39765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
39766 }
39767 if (!argp1) {
39768 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
39769 }
39770 arg1 = reinterpret_cast< wxBitmap * >(argp1);
39771 if (obj1) {
39772 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39773 if (!SWIG_IsOK(res2)) {
39774 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
39775 }
39776 if (!argp2) {
39777 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
39778 }
39779 arg2 = reinterpret_cast< wxCursor * >(argp2);
39780 }
39781 {
39782 if (!wxPyCheckForApp()) SWIG_fail;
39783 PyThreadState* __tstate = wxPyBeginAllowThreads();
39784 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
39785 wxPyEndAllowThreads(__tstate);
39786 if (PyErr_Occurred()) SWIG_fail;
39787 }
39788 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
39789 return resultobj;
39790 fail:
39791 return NULL;
39792 }
39793
39794
39795 SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39796 PyObject *resultobj = 0;
39797 wxIcon *arg1 = 0 ;
39798 wxCursor const &arg2_defvalue = wxNullCursor ;
39799 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39800 wxGenericDragImage *result = 0 ;
39801 void *argp1 = 0 ;
39802 int res1 = 0 ;
39803 void *argp2 = 0 ;
39804 int res2 = 0 ;
39805 PyObject * obj0 = 0 ;
39806 PyObject * obj1 = 0 ;
39807 char * kwnames[] = {
39808 (char *) "image",(char *) "cursor", NULL
39809 };
39810
39811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
39812 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
39813 if (!SWIG_IsOK(res1)) {
39814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
39815 }
39816 if (!argp1) {
39817 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
39818 }
39819 arg1 = reinterpret_cast< wxIcon * >(argp1);
39820 if (obj1) {
39821 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39822 if (!SWIG_IsOK(res2)) {
39823 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
39824 }
39825 if (!argp2) {
39826 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
39827 }
39828 arg2 = reinterpret_cast< wxCursor * >(argp2);
39829 }
39830 {
39831 if (!wxPyCheckForApp()) SWIG_fail;
39832 PyThreadState* __tstate = wxPyBeginAllowThreads();
39833 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
39834 wxPyEndAllowThreads(__tstate);
39835 if (PyErr_Occurred()) SWIG_fail;
39836 }
39837 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39838 return resultobj;
39839 fail:
39840 return NULL;
39841 }
39842
39843
39844 SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39845 PyObject *resultobj = 0;
39846 wxString *arg1 = 0 ;
39847 wxCursor const &arg2_defvalue = wxNullCursor ;
39848 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39849 wxGenericDragImage *result = 0 ;
39850 bool temp1 = false ;
39851 void *argp2 = 0 ;
39852 int res2 = 0 ;
39853 PyObject * obj0 = 0 ;
39854 PyObject * obj1 = 0 ;
39855 char * kwnames[] = {
39856 (char *) "str",(char *) "cursor", NULL
39857 };
39858
39859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
39860 {
39861 arg1 = wxString_in_helper(obj0);
39862 if (arg1 == NULL) SWIG_fail;
39863 temp1 = true;
39864 }
39865 if (obj1) {
39866 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39867 if (!SWIG_IsOK(res2)) {
39868 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
39869 }
39870 if (!argp2) {
39871 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
39872 }
39873 arg2 = reinterpret_cast< wxCursor * >(argp2);
39874 }
39875 {
39876 if (!wxPyCheckForApp()) SWIG_fail;
39877 PyThreadState* __tstate = wxPyBeginAllowThreads();
39878 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
39879 wxPyEndAllowThreads(__tstate);
39880 if (PyErr_Occurred()) SWIG_fail;
39881 }
39882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39883 {
39884 if (temp1)
39885 delete arg1;
39886 }
39887 return resultobj;
39888 fail:
39889 {
39890 if (temp1)
39891 delete arg1;
39892 }
39893 return NULL;
39894 }
39895
39896
39897 SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39898 PyObject *resultobj = 0;
39899 wxPyTreeCtrl *arg1 = 0 ;
39900 wxTreeItemId *arg2 = 0 ;
39901 wxGenericDragImage *result = 0 ;
39902 void *argp1 = 0 ;
39903 int res1 = 0 ;
39904 void *argp2 = 0 ;
39905 int res2 = 0 ;
39906 PyObject * obj0 = 0 ;
39907 PyObject * obj1 = 0 ;
39908 char * kwnames[] = {
39909 (char *) "treeCtrl",(char *) "id", NULL
39910 };
39911
39912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
39913 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
39914 if (!SWIG_IsOK(res1)) {
39915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
39916 }
39917 if (!argp1) {
39918 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
39919 }
39920 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
39921 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
39922 if (!SWIG_IsOK(res2)) {
39923 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
39924 }
39925 if (!argp2) {
39926 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
39927 }
39928 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
39929 {
39930 if (!wxPyCheckForApp()) SWIG_fail;
39931 PyThreadState* __tstate = wxPyBeginAllowThreads();
39932 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
39933 wxPyEndAllowThreads(__tstate);
39934 if (PyErr_Occurred()) SWIG_fail;
39935 }
39936 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39937 return resultobj;
39938 fail:
39939 return NULL;
39940 }
39941
39942
39943 SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39944 PyObject *resultobj = 0;
39945 wxPyListCtrl *arg1 = 0 ;
39946 long arg2 ;
39947 wxGenericDragImage *result = 0 ;
39948 void *argp1 = 0 ;
39949 int res1 = 0 ;
39950 long val2 ;
39951 int ecode2 = 0 ;
39952 PyObject * obj0 = 0 ;
39953 PyObject * obj1 = 0 ;
39954 char * kwnames[] = {
39955 (char *) "listCtrl",(char *) "id", NULL
39956 };
39957
39958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
39959 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
39960 if (!SWIG_IsOK(res1)) {
39961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
39962 }
39963 if (!argp1) {
39964 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
39965 }
39966 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
39967 ecode2 = SWIG_AsVal_long(obj1, &val2);
39968 if (!SWIG_IsOK(ecode2)) {
39969 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
39970 }
39971 arg2 = static_cast< long >(val2);
39972 {
39973 if (!wxPyCheckForApp()) SWIG_fail;
39974 PyThreadState* __tstate = wxPyBeginAllowThreads();
39975 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
39976 wxPyEndAllowThreads(__tstate);
39977 if (PyErr_Occurred()) SWIG_fail;
39978 }
39979 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39980 return resultobj;
39981 fail:
39982 return NULL;
39983 }
39984
39985
39986 SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39987 PyObject *resultobj = 0;
39988 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39989 void *argp1 = 0 ;
39990 int res1 = 0 ;
39991 PyObject *swig_obj[1] ;
39992
39993 if (!args) SWIG_fail;
39994 swig_obj[0] = args;
39995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
39996 if (!SWIG_IsOK(res1)) {
39997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
39998 }
39999 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40000 {
40001 PyThreadState* __tstate = wxPyBeginAllowThreads();
40002 delete arg1;
40003
40004 wxPyEndAllowThreads(__tstate);
40005 if (PyErr_Occurred()) SWIG_fail;
40006 }
40007 resultobj = SWIG_Py_Void();
40008 return resultobj;
40009 fail:
40010 return NULL;
40011 }
40012
40013
40014 SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40015 PyObject *resultobj = 0;
40016 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40017 wxBitmap *arg2 = (wxBitmap *) 0 ;
40018 void *argp1 = 0 ;
40019 int res1 = 0 ;
40020 void *argp2 = 0 ;
40021 int res2 = 0 ;
40022 PyObject * obj0 = 0 ;
40023 PyObject * obj1 = 0 ;
40024 char * kwnames[] = {
40025 (char *) "self",(char *) "bitmap", NULL
40026 };
40027
40028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40030 if (!SWIG_IsOK(res1)) {
40031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40032 }
40033 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40034 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40035 if (!SWIG_IsOK(res2)) {
40036 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40037 }
40038 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40039 {
40040 PyThreadState* __tstate = wxPyBeginAllowThreads();
40041 (arg1)->SetBackingBitmap(arg2);
40042 wxPyEndAllowThreads(__tstate);
40043 if (PyErr_Occurred()) SWIG_fail;
40044 }
40045 resultobj = SWIG_Py_Void();
40046 return resultobj;
40047 fail:
40048 return NULL;
40049 }
40050
40051
40052 SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40053 PyObject *resultobj = 0;
40054 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40055 wxPoint *arg2 = 0 ;
40056 wxWindow *arg3 = (wxWindow *) 0 ;
40057 bool arg4 = (bool) false ;
40058 wxRect *arg5 = (wxRect *) NULL ;
40059 bool result;
40060 void *argp1 = 0 ;
40061 int res1 = 0 ;
40062 wxPoint temp2 ;
40063 void *argp3 = 0 ;
40064 int res3 = 0 ;
40065 bool val4 ;
40066 int ecode4 = 0 ;
40067 void *argp5 = 0 ;
40068 int res5 = 0 ;
40069 PyObject * obj0 = 0 ;
40070 PyObject * obj1 = 0 ;
40071 PyObject * obj2 = 0 ;
40072 PyObject * obj3 = 0 ;
40073 PyObject * obj4 = 0 ;
40074 char * kwnames[] = {
40075 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40076 };
40077
40078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40080 if (!SWIG_IsOK(res1)) {
40081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40082 }
40083 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40084 {
40085 arg2 = &temp2;
40086 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40087 }
40088 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40089 if (!SWIG_IsOK(res3)) {
40090 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40091 }
40092 arg3 = reinterpret_cast< wxWindow * >(argp3);
40093 if (obj3) {
40094 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40095 if (!SWIG_IsOK(ecode4)) {
40096 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40097 }
40098 arg4 = static_cast< bool >(val4);
40099 }
40100 if (obj4) {
40101 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40102 if (!SWIG_IsOK(res5)) {
40103 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
40104 }
40105 arg5 = reinterpret_cast< wxRect * >(argp5);
40106 }
40107 {
40108 PyThreadState* __tstate = wxPyBeginAllowThreads();
40109 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40110 wxPyEndAllowThreads(__tstate);
40111 if (PyErr_Occurred()) SWIG_fail;
40112 }
40113 {
40114 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40115 }
40116 return resultobj;
40117 fail:
40118 return NULL;
40119 }
40120
40121
40122 SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40123 PyObject *resultobj = 0;
40124 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40125 wxPoint *arg2 = 0 ;
40126 wxWindow *arg3 = (wxWindow *) 0 ;
40127 wxWindow *arg4 = (wxWindow *) 0 ;
40128 bool result;
40129 void *argp1 = 0 ;
40130 int res1 = 0 ;
40131 wxPoint temp2 ;
40132 void *argp3 = 0 ;
40133 int res3 = 0 ;
40134 void *argp4 = 0 ;
40135 int res4 = 0 ;
40136 PyObject * obj0 = 0 ;
40137 PyObject * obj1 = 0 ;
40138 PyObject * obj2 = 0 ;
40139 PyObject * obj3 = 0 ;
40140 char * kwnames[] = {
40141 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40142 };
40143
40144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40146 if (!SWIG_IsOK(res1)) {
40147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40148 }
40149 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40150 {
40151 arg2 = &temp2;
40152 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40153 }
40154 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40155 if (!SWIG_IsOK(res3)) {
40156 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40157 }
40158 arg3 = reinterpret_cast< wxWindow * >(argp3);
40159 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40160 if (!SWIG_IsOK(res4)) {
40161 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40162 }
40163 arg4 = reinterpret_cast< wxWindow * >(argp4);
40164 {
40165 PyThreadState* __tstate = wxPyBeginAllowThreads();
40166 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40167 wxPyEndAllowThreads(__tstate);
40168 if (PyErr_Occurred()) SWIG_fail;
40169 }
40170 {
40171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40172 }
40173 return resultobj;
40174 fail:
40175 return NULL;
40176 }
40177
40178
40179 SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40180 PyObject *resultobj = 0;
40181 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40182 bool result;
40183 void *argp1 = 0 ;
40184 int res1 = 0 ;
40185 PyObject *swig_obj[1] ;
40186
40187 if (!args) SWIG_fail;
40188 swig_obj[0] = args;
40189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40190 if (!SWIG_IsOK(res1)) {
40191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40192 }
40193 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40194 {
40195 PyThreadState* __tstate = wxPyBeginAllowThreads();
40196 result = (bool)(arg1)->EndDrag();
40197 wxPyEndAllowThreads(__tstate);
40198 if (PyErr_Occurred()) SWIG_fail;
40199 }
40200 {
40201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40202 }
40203 return resultobj;
40204 fail:
40205 return NULL;
40206 }
40207
40208
40209 SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40210 PyObject *resultobj = 0;
40211 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40212 wxPoint *arg2 = 0 ;
40213 bool result;
40214 void *argp1 = 0 ;
40215 int res1 = 0 ;
40216 wxPoint temp2 ;
40217 PyObject * obj0 = 0 ;
40218 PyObject * obj1 = 0 ;
40219 char * kwnames[] = {
40220 (char *) "self",(char *) "pt", NULL
40221 };
40222
40223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40225 if (!SWIG_IsOK(res1)) {
40226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40227 }
40228 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40229 {
40230 arg2 = &temp2;
40231 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40232 }
40233 {
40234 PyThreadState* __tstate = wxPyBeginAllowThreads();
40235 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40236 wxPyEndAllowThreads(__tstate);
40237 if (PyErr_Occurred()) SWIG_fail;
40238 }
40239 {
40240 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40241 }
40242 return resultobj;
40243 fail:
40244 return NULL;
40245 }
40246
40247
40248 SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40249 PyObject *resultobj = 0;
40250 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40251 bool result;
40252 void *argp1 = 0 ;
40253 int res1 = 0 ;
40254 PyObject *swig_obj[1] ;
40255
40256 if (!args) SWIG_fail;
40257 swig_obj[0] = args;
40258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40259 if (!SWIG_IsOK(res1)) {
40260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40261 }
40262 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40263 {
40264 PyThreadState* __tstate = wxPyBeginAllowThreads();
40265 result = (bool)(arg1)->Show();
40266 wxPyEndAllowThreads(__tstate);
40267 if (PyErr_Occurred()) SWIG_fail;
40268 }
40269 {
40270 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40271 }
40272 return resultobj;
40273 fail:
40274 return NULL;
40275 }
40276
40277
40278 SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40279 PyObject *resultobj = 0;
40280 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40281 bool result;
40282 void *argp1 = 0 ;
40283 int res1 = 0 ;
40284 PyObject *swig_obj[1] ;
40285
40286 if (!args) SWIG_fail;
40287 swig_obj[0] = args;
40288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40289 if (!SWIG_IsOK(res1)) {
40290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40291 }
40292 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40293 {
40294 PyThreadState* __tstate = wxPyBeginAllowThreads();
40295 result = (bool)(arg1)->Hide();
40296 wxPyEndAllowThreads(__tstate);
40297 if (PyErr_Occurred()) SWIG_fail;
40298 }
40299 {
40300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40301 }
40302 return resultobj;
40303 fail:
40304 return NULL;
40305 }
40306
40307
40308 SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40309 PyObject *resultobj = 0;
40310 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40311 wxPoint *arg2 = 0 ;
40312 wxRect result;
40313 void *argp1 = 0 ;
40314 int res1 = 0 ;
40315 wxPoint temp2 ;
40316 PyObject * obj0 = 0 ;
40317 PyObject * obj1 = 0 ;
40318 char * kwnames[] = {
40319 (char *) "self",(char *) "pos", NULL
40320 };
40321
40322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
40323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40324 if (!SWIG_IsOK(res1)) {
40325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40326 }
40327 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40328 {
40329 arg2 = &temp2;
40330 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40331 }
40332 {
40333 PyThreadState* __tstate = wxPyBeginAllowThreads();
40334 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
40335 wxPyEndAllowThreads(__tstate);
40336 if (PyErr_Occurred()) SWIG_fail;
40337 }
40338 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
40339 return resultobj;
40340 fail:
40341 return NULL;
40342 }
40343
40344
40345 SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40346 PyObject *resultobj = 0;
40347 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40348 wxDC *arg2 = 0 ;
40349 wxPoint *arg3 = 0 ;
40350 bool result;
40351 void *argp1 = 0 ;
40352 int res1 = 0 ;
40353 void *argp2 = 0 ;
40354 int res2 = 0 ;
40355 wxPoint temp3 ;
40356 PyObject * obj0 = 0 ;
40357 PyObject * obj1 = 0 ;
40358 PyObject * obj2 = 0 ;
40359 char * kwnames[] = {
40360 (char *) "self",(char *) "dc",(char *) "pos", NULL
40361 };
40362
40363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40365 if (!SWIG_IsOK(res1)) {
40366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40367 }
40368 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40369 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40370 if (!SWIG_IsOK(res2)) {
40371 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40372 }
40373 if (!argp2) {
40374 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40375 }
40376 arg2 = reinterpret_cast< wxDC * >(argp2);
40377 {
40378 arg3 = &temp3;
40379 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40380 }
40381 {
40382 PyThreadState* __tstate = wxPyBeginAllowThreads();
40383 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
40384 wxPyEndAllowThreads(__tstate);
40385 if (PyErr_Occurred()) SWIG_fail;
40386 }
40387 {
40388 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40389 }
40390 return resultobj;
40391 fail:
40392 return NULL;
40393 }
40394
40395
40396 SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40397 PyObject *resultobj = 0;
40398 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40399 wxDC *arg2 = 0 ;
40400 wxMemoryDC *arg3 = 0 ;
40401 wxRect *arg4 = 0 ;
40402 wxRect *arg5 = 0 ;
40403 bool result;
40404 void *argp1 = 0 ;
40405 int res1 = 0 ;
40406 void *argp2 = 0 ;
40407 int res2 = 0 ;
40408 void *argp3 = 0 ;
40409 int res3 = 0 ;
40410 wxRect temp4 ;
40411 wxRect temp5 ;
40412 PyObject * obj0 = 0 ;
40413 PyObject * obj1 = 0 ;
40414 PyObject * obj2 = 0 ;
40415 PyObject * obj3 = 0 ;
40416 PyObject * obj4 = 0 ;
40417 char * kwnames[] = {
40418 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
40419 };
40420
40421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40423 if (!SWIG_IsOK(res1)) {
40424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40425 }
40426 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40427 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40428 if (!SWIG_IsOK(res2)) {
40429 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40430 }
40431 if (!argp2) {
40432 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40433 }
40434 arg2 = reinterpret_cast< wxDC * >(argp2);
40435 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
40436 if (!SWIG_IsOK(res3)) {
40437 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40438 }
40439 if (!argp3) {
40440 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40441 }
40442 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
40443 {
40444 arg4 = &temp4;
40445 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
40446 }
40447 {
40448 arg5 = &temp5;
40449 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
40450 }
40451 {
40452 PyThreadState* __tstate = wxPyBeginAllowThreads();
40453 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
40454 wxPyEndAllowThreads(__tstate);
40455 if (PyErr_Occurred()) SWIG_fail;
40456 }
40457 {
40458 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40459 }
40460 return resultobj;
40461 fail:
40462 return NULL;
40463 }
40464
40465
40466 SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40467 PyObject *resultobj = 0;
40468 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40469 wxPoint *arg2 = 0 ;
40470 wxPoint *arg3 = 0 ;
40471 bool arg4 ;
40472 bool arg5 ;
40473 bool result;
40474 void *argp1 = 0 ;
40475 int res1 = 0 ;
40476 wxPoint temp2 ;
40477 wxPoint temp3 ;
40478 bool val4 ;
40479 int ecode4 = 0 ;
40480 bool val5 ;
40481 int ecode5 = 0 ;
40482 PyObject * obj0 = 0 ;
40483 PyObject * obj1 = 0 ;
40484 PyObject * obj2 = 0 ;
40485 PyObject * obj3 = 0 ;
40486 PyObject * obj4 = 0 ;
40487 char * kwnames[] = {
40488 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
40489 };
40490
40491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40493 if (!SWIG_IsOK(res1)) {
40494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40495 }
40496 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40497 {
40498 arg2 = &temp2;
40499 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40500 }
40501 {
40502 arg3 = &temp3;
40503 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40504 }
40505 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40506 if (!SWIG_IsOK(ecode4)) {
40507 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
40508 }
40509 arg4 = static_cast< bool >(val4);
40510 ecode5 = SWIG_AsVal_bool(obj4, &val5);
40511 if (!SWIG_IsOK(ecode5)) {
40512 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
40513 }
40514 arg5 = static_cast< bool >(val5);
40515 {
40516 PyThreadState* __tstate = wxPyBeginAllowThreads();
40517 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
40518 wxPyEndAllowThreads(__tstate);
40519 if (PyErr_Occurred()) SWIG_fail;
40520 }
40521 {
40522 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40523 }
40524 return resultobj;
40525 fail:
40526 return NULL;
40527 }
40528
40529
40530 SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40531 PyObject *obj;
40532 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40533 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
40534 return SWIG_Py_Void();
40535 }
40536
40537 SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40538 return SWIG_Python_InitShadowInstance(args);
40539 }
40540
40541 SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
40542 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
40543 return 1;
40544 }
40545
40546
40547 SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
40548 PyObject *pyobj = 0;
40549
40550 {
40551 #if wxUSE_UNICODE
40552 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40553 #else
40554 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40555 #endif
40556 }
40557 return pyobj;
40558 }
40559
40560
40561 SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40562 PyObject *resultobj = 0;
40563 wxWindow *arg1 = (wxWindow *) 0 ;
40564 int arg2 = (int) -1 ;
40565 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
40566 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
40567 wxPoint const &arg4_defvalue = wxDefaultPosition ;
40568 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
40569 wxSize const &arg5_defvalue = wxDefaultSize ;
40570 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
40571 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40572 wxValidator const &arg7_defvalue = wxDefaultValidator ;
40573 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
40574 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
40575 wxString *arg8 = (wxString *) &arg8_defvalue ;
40576 wxDatePickerCtrl *result = 0 ;
40577 void *argp1 = 0 ;
40578 int res1 = 0 ;
40579 int val2 ;
40580 int ecode2 = 0 ;
40581 void *argp3 = 0 ;
40582 int res3 = 0 ;
40583 wxPoint temp4 ;
40584 wxSize temp5 ;
40585 long val6 ;
40586 int ecode6 = 0 ;
40587 void *argp7 = 0 ;
40588 int res7 = 0 ;
40589 bool temp8 = false ;
40590 PyObject * obj0 = 0 ;
40591 PyObject * obj1 = 0 ;
40592 PyObject * obj2 = 0 ;
40593 PyObject * obj3 = 0 ;
40594 PyObject * obj4 = 0 ;
40595 PyObject * obj5 = 0 ;
40596 PyObject * obj6 = 0 ;
40597 PyObject * obj7 = 0 ;
40598 char * kwnames[] = {
40599 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40600 };
40601
40602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
40603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40604 if (!SWIG_IsOK(res1)) {
40605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
40606 }
40607 arg1 = reinterpret_cast< wxWindow * >(argp1);
40608 if (obj1) {
40609 ecode2 = SWIG_AsVal_int(obj1, &val2);
40610 if (!SWIG_IsOK(ecode2)) {
40611 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
40612 }
40613 arg2 = static_cast< int >(val2);
40614 }
40615 if (obj2) {
40616 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
40617 if (!SWIG_IsOK(res3)) {
40618 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40619 }
40620 if (!argp3) {
40621 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40622 }
40623 arg3 = reinterpret_cast< wxDateTime * >(argp3);
40624 }
40625 if (obj3) {
40626 {
40627 arg4 = &temp4;
40628 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
40629 }
40630 }
40631 if (obj4) {
40632 {
40633 arg5 = &temp5;
40634 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
40635 }
40636 }
40637 if (obj5) {
40638 ecode6 = SWIG_AsVal_long(obj5, &val6);
40639 if (!SWIG_IsOK(ecode6)) {
40640 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
40641 }
40642 arg6 = static_cast< long >(val6);
40643 }
40644 if (obj6) {
40645 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
40646 if (!SWIG_IsOK(res7)) {
40647 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
40648 }
40649 if (!argp7) {
40650 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
40651 }
40652 arg7 = reinterpret_cast< wxValidator * >(argp7);
40653 }
40654 if (obj7) {
40655 {
40656 arg8 = wxString_in_helper(obj7);
40657 if (arg8 == NULL) SWIG_fail;
40658 temp8 = true;
40659 }
40660 }
40661 {
40662 if (!wxPyCheckForApp()) SWIG_fail;
40663 PyThreadState* __tstate = wxPyBeginAllowThreads();
40664 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
40665 wxPyEndAllowThreads(__tstate);
40666 if (PyErr_Occurred()) SWIG_fail;
40667 }
40668 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
40669 {
40670 if (temp8)
40671 delete arg8;
40672 }
40673 return resultobj;
40674 fail:
40675 {
40676 if (temp8)
40677 delete arg8;
40678 }
40679 return NULL;
40680 }
40681
40682
40683 SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40684 PyObject *resultobj = 0;
40685 wxDatePickerCtrl *result = 0 ;
40686
40687 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
40688 {
40689 if (!wxPyCheckForApp()) SWIG_fail;
40690 PyThreadState* __tstate = wxPyBeginAllowThreads();
40691 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
40692 wxPyEndAllowThreads(__tstate);
40693 if (PyErr_Occurred()) SWIG_fail;
40694 }
40695 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
40696 return resultobj;
40697 fail:
40698 return NULL;
40699 }
40700
40701
40702 SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40703 PyObject *resultobj = 0;
40704 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40705 wxWindow *arg2 = (wxWindow *) 0 ;
40706 int arg3 = (int) -1 ;
40707 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
40708 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
40709 wxPoint const &arg5_defvalue = wxDefaultPosition ;
40710 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
40711 wxSize const &arg6_defvalue = wxDefaultSize ;
40712 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
40713 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40714 wxValidator const &arg8_defvalue = wxDefaultValidator ;
40715 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
40716 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
40717 wxString *arg9 = (wxString *) &arg9_defvalue ;
40718 bool result;
40719 void *argp1 = 0 ;
40720 int res1 = 0 ;
40721 void *argp2 = 0 ;
40722 int res2 = 0 ;
40723 int val3 ;
40724 int ecode3 = 0 ;
40725 void *argp4 = 0 ;
40726 int res4 = 0 ;
40727 wxPoint temp5 ;
40728 wxSize temp6 ;
40729 long val7 ;
40730 int ecode7 = 0 ;
40731 void *argp8 = 0 ;
40732 int res8 = 0 ;
40733 bool temp9 = false ;
40734 PyObject * obj0 = 0 ;
40735 PyObject * obj1 = 0 ;
40736 PyObject * obj2 = 0 ;
40737 PyObject * obj3 = 0 ;
40738 PyObject * obj4 = 0 ;
40739 PyObject * obj5 = 0 ;
40740 PyObject * obj6 = 0 ;
40741 PyObject * obj7 = 0 ;
40742 PyObject * obj8 = 0 ;
40743 char * kwnames[] = {
40744 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40745 };
40746
40747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
40748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40749 if (!SWIG_IsOK(res1)) {
40750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40751 }
40752 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40753 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40754 if (!SWIG_IsOK(res2)) {
40755 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
40756 }
40757 arg2 = reinterpret_cast< wxWindow * >(argp2);
40758 if (obj2) {
40759 ecode3 = SWIG_AsVal_int(obj2, &val3);
40760 if (!SWIG_IsOK(ecode3)) {
40761 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
40762 }
40763 arg3 = static_cast< int >(val3);
40764 }
40765 if (obj3) {
40766 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
40767 if (!SWIG_IsOK(res4)) {
40768 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
40769 }
40770 if (!argp4) {
40771 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
40772 }
40773 arg4 = reinterpret_cast< wxDateTime * >(argp4);
40774 }
40775 if (obj4) {
40776 {
40777 arg5 = &temp5;
40778 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
40779 }
40780 }
40781 if (obj5) {
40782 {
40783 arg6 = &temp6;
40784 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
40785 }
40786 }
40787 if (obj6) {
40788 ecode7 = SWIG_AsVal_long(obj6, &val7);
40789 if (!SWIG_IsOK(ecode7)) {
40790 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
40791 }
40792 arg7 = static_cast< long >(val7);
40793 }
40794 if (obj7) {
40795 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
40796 if (!SWIG_IsOK(res8)) {
40797 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
40798 }
40799 if (!argp8) {
40800 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
40801 }
40802 arg8 = reinterpret_cast< wxValidator * >(argp8);
40803 }
40804 if (obj8) {
40805 {
40806 arg9 = wxString_in_helper(obj8);
40807 if (arg9 == NULL) SWIG_fail;
40808 temp9 = true;
40809 }
40810 }
40811 {
40812 PyThreadState* __tstate = wxPyBeginAllowThreads();
40813 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
40814 wxPyEndAllowThreads(__tstate);
40815 if (PyErr_Occurred()) SWIG_fail;
40816 }
40817 {
40818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40819 }
40820 {
40821 if (temp9)
40822 delete arg9;
40823 }
40824 return resultobj;
40825 fail:
40826 {
40827 if (temp9)
40828 delete arg9;
40829 }
40830 return NULL;
40831 }
40832
40833
40834 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40835 PyObject *resultobj = 0;
40836 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40837 wxDateTime *arg2 = 0 ;
40838 void *argp1 = 0 ;
40839 int res1 = 0 ;
40840 void *argp2 = 0 ;
40841 int res2 = 0 ;
40842 PyObject * obj0 = 0 ;
40843 PyObject * obj1 = 0 ;
40844 char * kwnames[] = {
40845 (char *) "self",(char *) "dt", NULL
40846 };
40847
40848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
40849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40850 if (!SWIG_IsOK(res1)) {
40851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40852 }
40853 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40854 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
40855 if (!SWIG_IsOK(res2)) {
40856 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40857 }
40858 if (!argp2) {
40859 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40860 }
40861 arg2 = reinterpret_cast< wxDateTime * >(argp2);
40862 {
40863 PyThreadState* __tstate = wxPyBeginAllowThreads();
40864 (arg1)->SetValue((wxDateTime const &)*arg2);
40865 wxPyEndAllowThreads(__tstate);
40866 if (PyErr_Occurred()) SWIG_fail;
40867 }
40868 resultobj = SWIG_Py_Void();
40869 return resultobj;
40870 fail:
40871 return NULL;
40872 }
40873
40874
40875 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40876 PyObject *resultobj = 0;
40877 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40878 wxDateTime result;
40879 void *argp1 = 0 ;
40880 int res1 = 0 ;
40881 PyObject *swig_obj[1] ;
40882
40883 if (!args) SWIG_fail;
40884 swig_obj[0] = args;
40885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40886 if (!SWIG_IsOK(res1)) {
40887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
40888 }
40889 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40890 {
40891 PyThreadState* __tstate = wxPyBeginAllowThreads();
40892 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
40893 wxPyEndAllowThreads(__tstate);
40894 if (PyErr_Occurred()) SWIG_fail;
40895 }
40896 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40897 return resultobj;
40898 fail:
40899 return NULL;
40900 }
40901
40902
40903 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40904 PyObject *resultobj = 0;
40905 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40906 wxDateTime *arg2 = 0 ;
40907 wxDateTime *arg3 = 0 ;
40908 void *argp1 = 0 ;
40909 int res1 = 0 ;
40910 void *argp2 = 0 ;
40911 int res2 = 0 ;
40912 void *argp3 = 0 ;
40913 int res3 = 0 ;
40914 PyObject * obj0 = 0 ;
40915 PyObject * obj1 = 0 ;
40916 PyObject * obj2 = 0 ;
40917 char * kwnames[] = {
40918 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
40919 };
40920
40921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40923 if (!SWIG_IsOK(res1)) {
40924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40925 }
40926 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40927 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
40928 if (!SWIG_IsOK(res2)) {
40929 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40930 }
40931 if (!argp2) {
40932 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40933 }
40934 arg2 = reinterpret_cast< wxDateTime * >(argp2);
40935 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
40936 if (!SWIG_IsOK(res3)) {
40937 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40938 }
40939 if (!argp3) {
40940 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40941 }
40942 arg3 = reinterpret_cast< wxDateTime * >(argp3);
40943 {
40944 PyThreadState* __tstate = wxPyBeginAllowThreads();
40945 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
40946 wxPyEndAllowThreads(__tstate);
40947 if (PyErr_Occurred()) SWIG_fail;
40948 }
40949 resultobj = SWIG_Py_Void();
40950 return resultobj;
40951 fail:
40952 return NULL;
40953 }
40954
40955
40956 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40957 PyObject *resultobj = 0;
40958 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40959 wxDateTime result;
40960 void *argp1 = 0 ;
40961 int res1 = 0 ;
40962 PyObject *swig_obj[1] ;
40963
40964 if (!args) SWIG_fail;
40965 swig_obj[0] = args;
40966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40967 if (!SWIG_IsOK(res1)) {
40968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40969 }
40970 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40971 {
40972 PyThreadState* __tstate = wxPyBeginAllowThreads();
40973 result = wxDatePickerCtrl_GetLowerLimit(arg1);
40974 wxPyEndAllowThreads(__tstate);
40975 if (PyErr_Occurred()) SWIG_fail;
40976 }
40977 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40978 return resultobj;
40979 fail:
40980 return NULL;
40981 }
40982
40983
40984 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40985 PyObject *resultobj = 0;
40986 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40987 wxDateTime result;
40988 void *argp1 = 0 ;
40989 int res1 = 0 ;
40990 PyObject *swig_obj[1] ;
40991
40992 if (!args) SWIG_fail;
40993 swig_obj[0] = args;
40994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40995 if (!SWIG_IsOK(res1)) {
40996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40997 }
40998 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40999 {
41000 PyThreadState* __tstate = wxPyBeginAllowThreads();
41001 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41002 wxPyEndAllowThreads(__tstate);
41003 if (PyErr_Occurred()) SWIG_fail;
41004 }
41005 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41006 return resultobj;
41007 fail:
41008 return NULL;
41009 }
41010
41011
41012 SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41013 PyObject *obj;
41014 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41015 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41016 return SWIG_Py_Void();
41017 }
41018
41019 SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41020 return SWIG_Python_InitShadowInstance(args);
41021 }
41022
41023 SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41024 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41025 return 1;
41026 }
41027
41028
41029 SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41030 PyObject *pyobj = 0;
41031
41032 {
41033 #if wxUSE_UNICODE
41034 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41035 #else
41036 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41037 #endif
41038 }
41039 return pyobj;
41040 }
41041
41042
41043 SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41044 PyObject *resultobj = 0;
41045 wxWindow *arg1 = (wxWindow *) 0 ;
41046 int arg2 ;
41047 wxString *arg3 = 0 ;
41048 wxString *arg4 = 0 ;
41049 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41050 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41051 wxSize const &arg6_defvalue = wxDefaultSize ;
41052 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41053 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41054 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41055 wxString *arg8 = (wxString *) &arg8_defvalue ;
41056 wxHyperlinkCtrl *result = 0 ;
41057 void *argp1 = 0 ;
41058 int res1 = 0 ;
41059 int val2 ;
41060 int ecode2 = 0 ;
41061 bool temp3 = false ;
41062 bool temp4 = false ;
41063 wxPoint temp5 ;
41064 wxSize temp6 ;
41065 long val7 ;
41066 int ecode7 = 0 ;
41067 bool temp8 = false ;
41068 PyObject * obj0 = 0 ;
41069 PyObject * obj1 = 0 ;
41070 PyObject * obj2 = 0 ;
41071 PyObject * obj3 = 0 ;
41072 PyObject * obj4 = 0 ;
41073 PyObject * obj5 = 0 ;
41074 PyObject * obj6 = 0 ;
41075 PyObject * obj7 = 0 ;
41076 char * kwnames[] = {
41077 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41078 };
41079
41080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41082 if (!SWIG_IsOK(res1)) {
41083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41084 }
41085 arg1 = reinterpret_cast< wxWindow * >(argp1);
41086 ecode2 = SWIG_AsVal_int(obj1, &val2);
41087 if (!SWIG_IsOK(ecode2)) {
41088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
41089 }
41090 arg2 = static_cast< int >(val2);
41091 {
41092 arg3 = wxString_in_helper(obj2);
41093 if (arg3 == NULL) SWIG_fail;
41094 temp3 = true;
41095 }
41096 {
41097 arg4 = wxString_in_helper(obj3);
41098 if (arg4 == NULL) SWIG_fail;
41099 temp4 = true;
41100 }
41101 if (obj4) {
41102 {
41103 arg5 = &temp5;
41104 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41105 }
41106 }
41107 if (obj5) {
41108 {
41109 arg6 = &temp6;
41110 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41111 }
41112 }
41113 if (obj6) {
41114 ecode7 = SWIG_AsVal_long(obj6, &val7);
41115 if (!SWIG_IsOK(ecode7)) {
41116 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
41117 }
41118 arg7 = static_cast< long >(val7);
41119 }
41120 if (obj7) {
41121 {
41122 arg8 = wxString_in_helper(obj7);
41123 if (arg8 == NULL) SWIG_fail;
41124 temp8 = true;
41125 }
41126 }
41127 {
41128 if (!wxPyCheckForApp()) SWIG_fail;
41129 PyThreadState* __tstate = wxPyBeginAllowThreads();
41130 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
41131 wxPyEndAllowThreads(__tstate);
41132 if (PyErr_Occurred()) SWIG_fail;
41133 }
41134 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
41135 {
41136 if (temp3)
41137 delete arg3;
41138 }
41139 {
41140 if (temp4)
41141 delete arg4;
41142 }
41143 {
41144 if (temp8)
41145 delete arg8;
41146 }
41147 return resultobj;
41148 fail:
41149 {
41150 if (temp3)
41151 delete arg3;
41152 }
41153 {
41154 if (temp4)
41155 delete arg4;
41156 }
41157 {
41158 if (temp8)
41159 delete arg8;
41160 }
41161 return NULL;
41162 }
41163
41164
41165 SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41166 PyObject *resultobj = 0;
41167 wxHyperlinkCtrl *result = 0 ;
41168
41169 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
41170 {
41171 if (!wxPyCheckForApp()) SWIG_fail;
41172 PyThreadState* __tstate = wxPyBeginAllowThreads();
41173 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
41174 wxPyEndAllowThreads(__tstate);
41175 if (PyErr_Occurred()) SWIG_fail;
41176 }
41177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
41178 return resultobj;
41179 fail:
41180 return NULL;
41181 }
41182
41183
41184 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41185 PyObject *resultobj = 0;
41186 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41187 wxWindow *arg2 = (wxWindow *) 0 ;
41188 int arg3 ;
41189 wxString *arg4 = 0 ;
41190 wxString *arg5 = 0 ;
41191 wxPoint const &arg6_defvalue = wxDefaultPosition ;
41192 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
41193 wxSize const &arg7_defvalue = wxDefaultSize ;
41194 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
41195 long arg8 = (long) wxHL_DEFAULT_STYLE ;
41196 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
41197 wxString *arg9 = (wxString *) &arg9_defvalue ;
41198 bool result;
41199 void *argp1 = 0 ;
41200 int res1 = 0 ;
41201 void *argp2 = 0 ;
41202 int res2 = 0 ;
41203 int val3 ;
41204 int ecode3 = 0 ;
41205 bool temp4 = false ;
41206 bool temp5 = false ;
41207 wxPoint temp6 ;
41208 wxSize temp7 ;
41209 long val8 ;
41210 int ecode8 = 0 ;
41211 bool temp9 = false ;
41212 PyObject * obj0 = 0 ;
41213 PyObject * obj1 = 0 ;
41214 PyObject * obj2 = 0 ;
41215 PyObject * obj3 = 0 ;
41216 PyObject * obj4 = 0 ;
41217 PyObject * obj5 = 0 ;
41218 PyObject * obj6 = 0 ;
41219 PyObject * obj7 = 0 ;
41220 PyObject * obj8 = 0 ;
41221 char * kwnames[] = {
41222 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41223 };
41224
41225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41227 if (!SWIG_IsOK(res1)) {
41228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41229 }
41230 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41231 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41232 if (!SWIG_IsOK(res2)) {
41233 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41234 }
41235 arg2 = reinterpret_cast< wxWindow * >(argp2);
41236 ecode3 = SWIG_AsVal_int(obj2, &val3);
41237 if (!SWIG_IsOK(ecode3)) {
41238 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41239 }
41240 arg3 = static_cast< int >(val3);
41241 {
41242 arg4 = wxString_in_helper(obj3);
41243 if (arg4 == NULL) SWIG_fail;
41244 temp4 = true;
41245 }
41246 {
41247 arg5 = wxString_in_helper(obj4);
41248 if (arg5 == NULL) SWIG_fail;
41249 temp5 = true;
41250 }
41251 if (obj5) {
41252 {
41253 arg6 = &temp6;
41254 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
41255 }
41256 }
41257 if (obj6) {
41258 {
41259 arg7 = &temp7;
41260 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
41261 }
41262 }
41263 if (obj7) {
41264 ecode8 = SWIG_AsVal_long(obj7, &val8);
41265 if (!SWIG_IsOK(ecode8)) {
41266 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
41267 }
41268 arg8 = static_cast< long >(val8);
41269 }
41270 if (obj8) {
41271 {
41272 arg9 = wxString_in_helper(obj8);
41273 if (arg9 == NULL) SWIG_fail;
41274 temp9 = true;
41275 }
41276 }
41277 {
41278 PyThreadState* __tstate = wxPyBeginAllowThreads();
41279 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
41280 wxPyEndAllowThreads(__tstate);
41281 if (PyErr_Occurred()) SWIG_fail;
41282 }
41283 {
41284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41285 }
41286 {
41287 if (temp4)
41288 delete arg4;
41289 }
41290 {
41291 if (temp5)
41292 delete arg5;
41293 }
41294 {
41295 if (temp9)
41296 delete arg9;
41297 }
41298 return resultobj;
41299 fail:
41300 {
41301 if (temp4)
41302 delete arg4;
41303 }
41304 {
41305 if (temp5)
41306 delete arg5;
41307 }
41308 {
41309 if (temp9)
41310 delete arg9;
41311 }
41312 return NULL;
41313 }
41314
41315
41316 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41317 PyObject *resultobj = 0;
41318 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41319 wxColour result;
41320 void *argp1 = 0 ;
41321 int res1 = 0 ;
41322 PyObject *swig_obj[1] ;
41323
41324 if (!args) SWIG_fail;
41325 swig_obj[0] = args;
41326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41327 if (!SWIG_IsOK(res1)) {
41328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41329 }
41330 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41331 {
41332 PyThreadState* __tstate = wxPyBeginAllowThreads();
41333 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
41334 wxPyEndAllowThreads(__tstate);
41335 if (PyErr_Occurred()) SWIG_fail;
41336 }
41337 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41338 return resultobj;
41339 fail:
41340 return NULL;
41341 }
41342
41343
41344 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41345 PyObject *resultobj = 0;
41346 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41347 wxColour *arg2 = 0 ;
41348 void *argp1 = 0 ;
41349 int res1 = 0 ;
41350 wxColour temp2 ;
41351 PyObject * obj0 = 0 ;
41352 PyObject * obj1 = 0 ;
41353 char * kwnames[] = {
41354 (char *) "self",(char *) "colour", NULL
41355 };
41356
41357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
41358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41359 if (!SWIG_IsOK(res1)) {
41360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41361 }
41362 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41363 {
41364 arg2 = &temp2;
41365 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41366 }
41367 {
41368 PyThreadState* __tstate = wxPyBeginAllowThreads();
41369 (arg1)->SetHoverColour((wxColour const &)*arg2);
41370 wxPyEndAllowThreads(__tstate);
41371 if (PyErr_Occurred()) SWIG_fail;
41372 }
41373 resultobj = SWIG_Py_Void();
41374 return resultobj;
41375 fail:
41376 return NULL;
41377 }
41378
41379
41380 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41381 PyObject *resultobj = 0;
41382 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41383 wxColour result;
41384 void *argp1 = 0 ;
41385 int res1 = 0 ;
41386 PyObject *swig_obj[1] ;
41387
41388 if (!args) SWIG_fail;
41389 swig_obj[0] = args;
41390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41391 if (!SWIG_IsOK(res1)) {
41392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41393 }
41394 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41395 {
41396 PyThreadState* __tstate = wxPyBeginAllowThreads();
41397 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
41398 wxPyEndAllowThreads(__tstate);
41399 if (PyErr_Occurred()) SWIG_fail;
41400 }
41401 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41402 return resultobj;
41403 fail:
41404 return NULL;
41405 }
41406
41407
41408 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41409 PyObject *resultobj = 0;
41410 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41411 wxColour *arg2 = 0 ;
41412 void *argp1 = 0 ;
41413 int res1 = 0 ;
41414 wxColour temp2 ;
41415 PyObject * obj0 = 0 ;
41416 PyObject * obj1 = 0 ;
41417 char * kwnames[] = {
41418 (char *) "self",(char *) "colour", NULL
41419 };
41420
41421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
41422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41423 if (!SWIG_IsOK(res1)) {
41424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41425 }
41426 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41427 {
41428 arg2 = &temp2;
41429 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41430 }
41431 {
41432 PyThreadState* __tstate = wxPyBeginAllowThreads();
41433 (arg1)->SetNormalColour((wxColour const &)*arg2);
41434 wxPyEndAllowThreads(__tstate);
41435 if (PyErr_Occurred()) SWIG_fail;
41436 }
41437 resultobj = SWIG_Py_Void();
41438 return resultobj;
41439 fail:
41440 return NULL;
41441 }
41442
41443
41444 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41445 PyObject *resultobj = 0;
41446 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41447 wxColour result;
41448 void *argp1 = 0 ;
41449 int res1 = 0 ;
41450 PyObject *swig_obj[1] ;
41451
41452 if (!args) SWIG_fail;
41453 swig_obj[0] = args;
41454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41455 if (!SWIG_IsOK(res1)) {
41456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41457 }
41458 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41459 {
41460 PyThreadState* __tstate = wxPyBeginAllowThreads();
41461 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
41462 wxPyEndAllowThreads(__tstate);
41463 if (PyErr_Occurred()) SWIG_fail;
41464 }
41465 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41466 return resultobj;
41467 fail:
41468 return NULL;
41469 }
41470
41471
41472 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41473 PyObject *resultobj = 0;
41474 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41475 wxColour *arg2 = 0 ;
41476 void *argp1 = 0 ;
41477 int res1 = 0 ;
41478 wxColour temp2 ;
41479 PyObject * obj0 = 0 ;
41480 PyObject * obj1 = 0 ;
41481 char * kwnames[] = {
41482 (char *) "self",(char *) "colour", NULL
41483 };
41484
41485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
41486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41487 if (!SWIG_IsOK(res1)) {
41488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41489 }
41490 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41491 {
41492 arg2 = &temp2;
41493 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41494 }
41495 {
41496 PyThreadState* __tstate = wxPyBeginAllowThreads();
41497 (arg1)->SetVisitedColour((wxColour const &)*arg2);
41498 wxPyEndAllowThreads(__tstate);
41499 if (PyErr_Occurred()) SWIG_fail;
41500 }
41501 resultobj = SWIG_Py_Void();
41502 return resultobj;
41503 fail:
41504 return NULL;
41505 }
41506
41507
41508 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41509 PyObject *resultobj = 0;
41510 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41511 wxString result;
41512 void *argp1 = 0 ;
41513 int res1 = 0 ;
41514 PyObject *swig_obj[1] ;
41515
41516 if (!args) SWIG_fail;
41517 swig_obj[0] = args;
41518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41519 if (!SWIG_IsOK(res1)) {
41520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41521 }
41522 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41523 {
41524 PyThreadState* __tstate = wxPyBeginAllowThreads();
41525 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
41526 wxPyEndAllowThreads(__tstate);
41527 if (PyErr_Occurred()) SWIG_fail;
41528 }
41529 {
41530 #if wxUSE_UNICODE
41531 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
41532 #else
41533 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
41534 #endif
41535 }
41536 return resultobj;
41537 fail:
41538 return NULL;
41539 }
41540
41541
41542 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41543 PyObject *resultobj = 0;
41544 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41545 wxString *arg2 = 0 ;
41546 void *argp1 = 0 ;
41547 int res1 = 0 ;
41548 bool temp2 = false ;
41549 PyObject * obj0 = 0 ;
41550 PyObject * obj1 = 0 ;
41551 char * kwnames[] = {
41552 (char *) "self",(char *) "url", NULL
41553 };
41554
41555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
41556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41557 if (!SWIG_IsOK(res1)) {
41558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41559 }
41560 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41561 {
41562 arg2 = wxString_in_helper(obj1);
41563 if (arg2 == NULL) SWIG_fail;
41564 temp2 = true;
41565 }
41566 {
41567 PyThreadState* __tstate = wxPyBeginAllowThreads();
41568 (arg1)->SetURL((wxString const &)*arg2);
41569 wxPyEndAllowThreads(__tstate);
41570 if (PyErr_Occurred()) SWIG_fail;
41571 }
41572 resultobj = SWIG_Py_Void();
41573 {
41574 if (temp2)
41575 delete arg2;
41576 }
41577 return resultobj;
41578 fail:
41579 {
41580 if (temp2)
41581 delete arg2;
41582 }
41583 return NULL;
41584 }
41585
41586
41587 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41588 PyObject *resultobj = 0;
41589 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41590 bool arg2 = (bool) true ;
41591 void *argp1 = 0 ;
41592 int res1 = 0 ;
41593 bool val2 ;
41594 int ecode2 = 0 ;
41595 PyObject * obj0 = 0 ;
41596 PyObject * obj1 = 0 ;
41597 char * kwnames[] = {
41598 (char *) "self",(char *) "visited", NULL
41599 };
41600
41601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
41602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41603 if (!SWIG_IsOK(res1)) {
41604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41605 }
41606 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41607 if (obj1) {
41608 ecode2 = SWIG_AsVal_bool(obj1, &val2);
41609 if (!SWIG_IsOK(ecode2)) {
41610 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
41611 }
41612 arg2 = static_cast< bool >(val2);
41613 }
41614 {
41615 PyThreadState* __tstate = wxPyBeginAllowThreads();
41616 (arg1)->SetVisited(arg2);
41617 wxPyEndAllowThreads(__tstate);
41618 if (PyErr_Occurred()) SWIG_fail;
41619 }
41620 resultobj = SWIG_Py_Void();
41621 return resultobj;
41622 fail:
41623 return NULL;
41624 }
41625
41626
41627 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41628 PyObject *resultobj = 0;
41629 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41630 bool result;
41631 void *argp1 = 0 ;
41632 int res1 = 0 ;
41633 PyObject *swig_obj[1] ;
41634
41635 if (!args) SWIG_fail;
41636 swig_obj[0] = args;
41637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41638 if (!SWIG_IsOK(res1)) {
41639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41640 }
41641 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41642 {
41643 PyThreadState* __tstate = wxPyBeginAllowThreads();
41644 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
41645 wxPyEndAllowThreads(__tstate);
41646 if (PyErr_Occurred()) SWIG_fail;
41647 }
41648 {
41649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41650 }
41651 return resultobj;
41652 fail:
41653 return NULL;
41654 }
41655
41656
41657 SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41658 PyObject *obj;
41659 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41660 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
41661 return SWIG_Py_Void();
41662 }
41663
41664 SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41665 return SWIG_Python_InitShadowInstance(args);
41666 }
41667
41668 SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41669 PyObject *resultobj = 0;
41670 wxObject *arg1 = (wxObject *) 0 ;
41671 int arg2 ;
41672 wxString *arg3 = 0 ;
41673 wxHyperlinkEvent *result = 0 ;
41674 void *argp1 = 0 ;
41675 int res1 = 0 ;
41676 int val2 ;
41677 int ecode2 = 0 ;
41678 bool temp3 = false ;
41679 PyObject * obj0 = 0 ;
41680 PyObject * obj1 = 0 ;
41681 PyObject * obj2 = 0 ;
41682 char * kwnames[] = {
41683 (char *) "generator",(char *) "id",(char *) "url", NULL
41684 };
41685
41686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
41688 if (!SWIG_IsOK(res1)) {
41689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
41690 }
41691 arg1 = reinterpret_cast< wxObject * >(argp1);
41692 ecode2 = SWIG_AsVal_int(obj1, &val2);
41693 if (!SWIG_IsOK(ecode2)) {
41694 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
41695 }
41696 arg2 = static_cast< int >(val2);
41697 {
41698 arg3 = wxString_in_helper(obj2);
41699 if (arg3 == NULL) SWIG_fail;
41700 temp3 = true;
41701 }
41702 {
41703 PyThreadState* __tstate = wxPyBeginAllowThreads();
41704 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
41705 wxPyEndAllowThreads(__tstate);
41706 if (PyErr_Occurred()) SWIG_fail;
41707 }
41708 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
41709 {
41710 if (temp3)
41711 delete arg3;
41712 }
41713 return resultobj;
41714 fail:
41715 {
41716 if (temp3)
41717 delete arg3;
41718 }
41719 return NULL;
41720 }
41721
41722
41723 SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41724 PyObject *resultobj = 0;
41725 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
41726 wxString result;
41727 void *argp1 = 0 ;
41728 int res1 = 0 ;
41729 PyObject *swig_obj[1] ;
41730
41731 if (!args) SWIG_fail;
41732 swig_obj[0] = args;
41733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
41734 if (!SWIG_IsOK(res1)) {
41735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
41736 }
41737 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
41738 {
41739 PyThreadState* __tstate = wxPyBeginAllowThreads();
41740 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
41741 wxPyEndAllowThreads(__tstate);
41742 if (PyErr_Occurred()) SWIG_fail;
41743 }
41744 {
41745 #if wxUSE_UNICODE
41746 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
41747 #else
41748 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
41749 #endif
41750 }
41751 return resultobj;
41752 fail:
41753 return NULL;
41754 }
41755
41756
41757 SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41758 PyObject *resultobj = 0;
41759 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
41760 wxString *arg2 = 0 ;
41761 void *argp1 = 0 ;
41762 int res1 = 0 ;
41763 bool temp2 = false ;
41764 PyObject * obj0 = 0 ;
41765 PyObject * obj1 = 0 ;
41766 char * kwnames[] = {
41767 (char *) "self",(char *) "url", NULL
41768 };
41769
41770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
41771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
41772 if (!SWIG_IsOK(res1)) {
41773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
41774 }
41775 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
41776 {
41777 arg2 = wxString_in_helper(obj1);
41778 if (arg2 == NULL) SWIG_fail;
41779 temp2 = true;
41780 }
41781 {
41782 PyThreadState* __tstate = wxPyBeginAllowThreads();
41783 (arg1)->SetURL((wxString const &)*arg2);
41784 wxPyEndAllowThreads(__tstate);
41785 if (PyErr_Occurred()) SWIG_fail;
41786 }
41787 resultobj = SWIG_Py_Void();
41788 {
41789 if (temp2)
41790 delete arg2;
41791 }
41792 return resultobj;
41793 fail:
41794 {
41795 if (temp2)
41796 delete arg2;
41797 }
41798 return NULL;
41799 }
41800
41801
41802 SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41803 PyObject *obj;
41804 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41805 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
41806 return SWIG_Py_Void();
41807 }
41808
41809 SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41810 return SWIG_Python_InitShadowInstance(args);
41811 }
41812
41813 static PyMethodDef SwigMethods[] = {
41814 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
41815 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
41816 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41817 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
41818 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
41819 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41820 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
41821 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
41822 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
41823 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
41824 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41825 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
41826 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
41827 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
41828 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
41829 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
41830 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
41831 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
41832 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41833 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41834 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
41835 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
41836 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
41837 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
41838 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
41839 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
41840 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
41841 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
41842 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41843 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
41844 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
41845 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41846 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
41847 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
41848 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
41849 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
41850 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41851 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
41852 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
41853 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
41854 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
41855 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41856 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
41857 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41858 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
41859 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
41860 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
41861 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
41862 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41863 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
41864 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41865 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
41866 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
41867 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
41868 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
41869 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
41870 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
41871 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
41872 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
41873 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
41874 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41875 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
41876 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
41877 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
41878 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
41879 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
41880 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
41881 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
41882 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
41883 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
41884 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
41885 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
41886 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
41887 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
41888 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41889 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
41890 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
41891 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
41892 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
41893 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41894 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41895 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
41896 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41897 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
41898 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
41899 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41900 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
41901 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
41902 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
41903 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41904 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
41905 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
41906 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
41907 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
41908 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41909 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41910 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
41911 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
41912 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
41913 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
41914 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41915 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
41916 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
41917 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41918 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
41919 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
41920 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
41921 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
41922 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41923 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
41924 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41925 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
41926 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
41927 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41928 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
41929 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41930 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
41931 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41932 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
41933 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41934 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
41935 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
41936 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
41937 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
41938 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41939 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
41940 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
41941 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
41942 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41943 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41944 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
41945 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
41946 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
41947 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41948 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
41949 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
41950 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
41951 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41952 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41953 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
41954 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41955 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41956 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41957 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41958 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41959 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
41960 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
41961 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
41962 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
41963 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41964 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
41965 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
41966 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
41967 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
41968 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
41969 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
41970 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
41971 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
41972 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41973 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41974 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
41975 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
41976 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
41977 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
41978 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
41979 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
41980 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
41981 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
41982 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
41983 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
41984 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
41985 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
41986 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
41987 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
41988 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
41989 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
41990 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
41991 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
41992 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
41993 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
41994 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
41995 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
41996 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
41997 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
41998 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
41999 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
42000 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
42001 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42002 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
42003 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42004 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
42005 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42006 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
42007 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
42008 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
42009 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
42010 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
42011 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
42012 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
42013 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
42014 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
42015 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
42016 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
42017 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
42018 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
42019 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
42020 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
42021 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
42022 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
42023 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
42024 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
42025 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
42026 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
42027 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
42028 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
42029 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
42030 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
42031 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42032 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
42033 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42034 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
42035 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
42036 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
42037 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
42038 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
42039 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
42040 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
42041 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
42042 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
42043 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
42044 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
42045 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
42046 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
42047 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
42048 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
42049 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
42050 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42051 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
42052 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
42053 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
42054 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
42055 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42056 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
42057 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
42058 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42059 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
42060 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
42061 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
42062 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
42063 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
42064 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
42065 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
42066 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42067 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
42068 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
42069 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
42070 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
42071 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
42072 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42073 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42074 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
42075 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
42076 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
42077 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
42078 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42079 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
42080 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
42081 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
42082 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42083 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
42084 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
42085 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
42086 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
42087 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42088 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
42089 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
42090 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42091 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
42092 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42093 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
42094 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42095 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
42096 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
42097 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
42098 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
42099 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42100 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42101 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
42102 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
42103 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42104 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
42105 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42106 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
42107 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
42108 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
42109 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
42110 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42111 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42112 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
42113 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
42114 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42115 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
42116 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
42117 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
42118 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
42119 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
42120 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
42121 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
42122 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
42123 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
42124 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
42125 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
42126 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
42127 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
42128 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42129 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
42130 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
42131 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
42132 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
42133 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42134 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
42135 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42136 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42137 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
42138 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
42139 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
42140 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
42141 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42142 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
42143 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42144 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
42145 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
42146 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
42147 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
42148 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
42149 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
42150 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
42151 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
42152 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
42153 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
42154 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
42155 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
42156 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
42157 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
42158 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
42159 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
42160 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
42161 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
42162 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42163 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42164 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
42165 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
42166 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
42167 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
42168 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42169 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42170 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
42171 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42172 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
42173 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
42174 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
42175 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
42176 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
42177 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
42178 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
42179 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
42180 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42181 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42182 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
42183 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
42184 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
42185 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
42186 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
42187 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
42188 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
42189 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
42190 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
42191 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
42192 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
42193 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
42194 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
42195 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
42196 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
42197 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
42198 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
42199 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
42200 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42201 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42202 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
42203 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42204 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
42205 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42206 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
42207 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42208 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
42209 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42210 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
42211 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
42212 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
42213 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
42214 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42215 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
42216 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
42217 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
42218 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
42219 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42220 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
42221 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
42222 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42223 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
42224 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
42225 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
42226 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
42227 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42228 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
42229 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
42230 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
42231 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42232 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
42233 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
42234 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
42235 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
42236 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42237 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
42238 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
42239 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
42240 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42241 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
42242 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
42243 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
42244 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
42245 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42246 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
42247 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
42248 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
42249 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
42250 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
42251 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
42252 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
42253 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
42254 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
42255 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42256 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
42257 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
42258 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
42259 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
42260 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42261 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
42262 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
42263 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
42264 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
42265 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42266 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
42267 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
42268 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
42269 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
42270 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
42271 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
42272 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
42273 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
42274 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
42275 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
42276 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
42277 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
42278 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
42279 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
42280 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
42281 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
42282 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
42283 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
42284 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
42285 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
42286 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
42287 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
42288 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42289 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42290 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
42291 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
42292 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
42293 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
42294 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
42295 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
42296 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
42297 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
42298 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
42299 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
42300 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
42301 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
42302 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
42303 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
42304 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
42305 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
42306 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
42307 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
42308 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
42309 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
42310 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
42311 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
42312 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
42313 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
42314 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
42315 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
42316 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
42317 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
42318 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
42319 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
42320 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42321 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42322 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42323 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42324 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
42325 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
42326 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
42327 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
42328 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
42329 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
42330 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
42331 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
42332 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
42333 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
42334 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
42335 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
42336 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
42337 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
42338 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
42339 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42340 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
42341 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
42342 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
42343 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
42344 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
42345 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
42346 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42347 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42348 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
42349 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
42350 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
42351 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
42352 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42353 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42354 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
42355 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
42356 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
42357 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
42358 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
42359 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
42360 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
42361 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
42362 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
42363 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
42364 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
42365 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
42366 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
42367 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
42368 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
42369 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
42370 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
42371 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
42372 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
42373 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
42374 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
42375 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
42376 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
42377 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
42378 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
42379 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42380 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42381 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
42382 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
42383 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
42384 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
42385 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
42386 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
42387 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
42388 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
42389 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
42390 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
42391 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
42392 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
42393 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
42394 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
42395 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
42396 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
42397 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
42398 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
42399 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
42400 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
42401 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
42402 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
42403 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
42404 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
42405 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
42406 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
42407 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
42408 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
42409 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
42410 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
42411 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
42412 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
42413 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
42414 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
42415 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
42416 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
42417 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
42418 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42419 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
42420 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
42421 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
42422 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
42423 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
42424 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
42425 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
42426 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
42427 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
42428 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
42429 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
42430 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
42431 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
42432 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
42433 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
42434 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
42435 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
42436 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
42437 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
42438 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
42439 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
42440 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
42441 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
42442 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
42443 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
42444 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
42445 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
42446 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42447 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
42448 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42449 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
42450 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
42451 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
42452 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
42453 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
42454 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
42455 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
42456 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
42457 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
42458 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
42459 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
42460 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
42461 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
42462 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
42463 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
42464 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
42465 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
42466 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
42467 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
42468 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42469 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
42470 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42471 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
42472 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
42473 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
42474 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
42475 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
42476 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
42477 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42478 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
42479 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
42480 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
42481 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42482 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42483 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42484 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
42485 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
42486 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
42487 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
42488 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
42489 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
42490 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
42491 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
42492 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
42493 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
42494 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
42495 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
42496 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
42497 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
42498 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
42499 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
42500 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
42501 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
42502 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
42503 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
42504 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
42505 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
42506 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
42507 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
42508 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
42509 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42510 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42511 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42512 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42513 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
42514 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
42515 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
42516 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
42517 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42518 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
42519 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
42520 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
42521 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
42522 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42523 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
42524 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
42525 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
42526 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
42527 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
42528 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
42529 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
42530 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
42531 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
42532 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
42533 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
42534 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
42535 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
42536 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
42537 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
42538 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
42539 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
42540 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
42541 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
42542 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
42543 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
42544 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
42545 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
42546 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
42547 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
42548 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
42549 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
42550 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
42551 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42552 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
42553 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
42554 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
42555 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
42556 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
42557 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
42558 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
42559 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
42560 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42561 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
42562 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
42563 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
42564 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
42565 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
42566 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
42567 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
42568 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
42569 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42570 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
42571 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42572 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
42573 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
42574 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
42575 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
42576 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
42577 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
42578 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
42579 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
42580 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42581 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42582 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42583 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42584 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
42585 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
42586 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
42587 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
42588 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42589 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42590 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
42591 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
42592 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
42593 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
42594 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
42595 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
42596 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
42597 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
42598 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42599 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42600 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
42601 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
42602 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
42603 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
42604 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
42605 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
42606 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
42607 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
42608 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
42609 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
42610 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
42611 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
42612 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
42613 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
42614 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
42615 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
42616 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
42617 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
42618 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
42619 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
42620 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
42621 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
42622 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
42623 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
42624 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
42625 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
42626 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
42627 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
42628 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
42629 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
42630 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
42631 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
42632 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
42633 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
42634 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
42635 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42636 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
42637 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
42638 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
42639 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
42640 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
42641 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
42642 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
42643 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42644 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
42645 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
42646 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
42647 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
42648 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42649 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
42650 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42651 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
42652 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
42653 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
42654 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
42655 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
42656 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
42657 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
42658 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
42659 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
42660 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
42661 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
42662 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
42663 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
42664 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
42665 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
42666 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
42667 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
42668 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
42669 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
42670 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
42671 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
42672 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42673 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
42674 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42675 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
42676 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
42677 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
42678 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
42679 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
42680 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
42681 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
42682 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
42683 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
42684 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
42685 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
42686 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
42687 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
42688 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
42689 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
42690 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
42691 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
42692 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
42693 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
42694 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
42695 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
42696 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42697 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
42698 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42699 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
42700 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
42701 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
42702 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
42703 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
42704 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
42705 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
42706 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
42707 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42708 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
42709 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42710 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
42711 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
42712 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
42713 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
42714 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
42715 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
42716 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
42717 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
42718 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
42719 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42720 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42721 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42722 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
42723 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42724 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
42725 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
42726 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
42727 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
42728 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
42729 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
42730 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
42731 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
42732 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
42733 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
42734 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
42735 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
42736 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
42737 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
42738 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
42739 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
42740 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
42741 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
42742 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
42743 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
42744 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
42745 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
42746 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
42747 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
42748 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42749 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
42750 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42751 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42752 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
42753 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
42754 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
42755 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
42756 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
42757 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
42758 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42759 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
42760 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42761 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
42762 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
42763 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
42764 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
42765 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
42766 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
42767 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
42768 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
42769 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
42770 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
42771 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
42772 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
42773 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42774 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
42775 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
42776 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
42777 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
42778 { NULL, NULL, 0, NULL }
42779 };
42780
42781
42782 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
42783
42784 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
42785 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
42786 }
42787 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
42788 return (void *)((wxEvent *) ((wxMenuEvent *) x));
42789 }
42790 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
42791 return (void *)((wxEvent *) ((wxCloseEvent *) x));
42792 }
42793 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
42794 return (void *)((wxEvent *) ((wxMouseEvent *) x));
42795 }
42796 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
42797 return (void *)((wxEvent *) ((wxEraseEvent *) x));
42798 }
42799 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
42800 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
42801 }
42802 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
42803 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
42804 }
42805 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
42806 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
42807 }
42808 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
42809 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
42810 }
42811 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
42812 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
42813 }
42814 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
42815 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
42816 }
42817 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
42818 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
42819 }
42820 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
42821 return (void *)((wxEvent *) ((wxPyEvent *) x));
42822 }
42823 static void *_p_wxListEventTo_p_wxEvent(void *x) {
42824 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
42825 }
42826 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
42827 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42828 }
42829 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
42830 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42831 }
42832 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
42833 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42834 }
42835 static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
42836 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42837 }
42838 static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
42839 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42840 }
42841 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
42842 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
42843 }
42844 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
42845 return (void *)((wxEvent *) ((wxIdleEvent *) x));
42846 }
42847 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
42848 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
42849 }
42850 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
42851 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
42852 }
42853 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
42854 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
42855 }
42856 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
42857 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
42858 }
42859 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
42860 return (void *)((wxEvent *) ((wxActivateEvent *) x));
42861 }
42862 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
42863 return (void *)((wxEvent *) ((wxSizeEvent *) x));
42864 }
42865 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
42866 return (void *)((wxEvent *) ((wxMoveEvent *) x));
42867 }
42868 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
42869 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
42870 }
42871 static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
42872 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
42873 }
42874 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
42875 return (void *)((wxEvent *) ((wxPaintEvent *) x));
42876 }
42877 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
42878 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
42879 }
42880 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
42881 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
42882 }
42883 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
42884 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
42885 }
42886 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
42887 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
42888 }
42889 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
42890 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
42891 }
42892 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
42893 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
42894 }
42895 static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
42896 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
42897 }
42898 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
42899 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
42900 }
42901 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
42902 return (void *)((wxEvent *) ((wxFocusEvent *) x));
42903 }
42904 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
42905 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
42906 }
42907 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
42908 return (void *)((wxEvent *) ((wxShowEvent *) x));
42909 }
42910 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
42911 return (void *)((wxEvent *) ((wxCommandEvent *) x));
42912 }
42913 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
42914 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
42915 }
42916 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
42917 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42918 }
42919 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
42920 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
42921 }
42922 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
42923 return (void *)((wxEvent *) ((wxKeyEvent *) x));
42924 }
42925 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
42926 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
42927 }
42928 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
42929 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
42930 }
42931 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
42932 return (void *)((wxItemContainer *) ((wxComboBox *) x));
42933 }
42934 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
42935 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42936 }
42937 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
42938 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
42939 }
42940 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
42941 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
42942 }
42943 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
42944 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
42945 }
42946 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
42947 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42948 }
42949 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
42950 return (void *)((wxPyListCtrl *) ((wxListView *) x));
42951 }
42952 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
42953 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
42954 }
42955 static void *_p_wxToolBarTo_p_wxControl(void *x) {
42956 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
42957 }
42958 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
42959 return (void *)((wxControl *) ((wxToggleButton *) x));
42960 }
42961 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
42962 return (void *)((wxControl *) ((wxRadioButton *) x));
42963 }
42964 static void *_p_wxToolbookTo_p_wxControl(void *x) {
42965 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
42966 }
42967 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
42968 return (void *)((wxControl *) ((wxToolBarBase *) x));
42969 }
42970 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
42971 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42972 }
42973 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
42974 return (void *)((wxControl *) ((wxPyListCtrl *) x));
42975 }
42976 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
42977 return (void *)((wxControl *) ((wxComboBox *) x));
42978 }
42979 static void *_p_wxPyControlTo_p_wxControl(void *x) {
42980 return (void *)((wxControl *) ((wxPyControl *) x));
42981 }
42982 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
42983 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
42984 }
42985 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
42986 return (void *)((wxControl *) ((wxScrollBar *) x));
42987 }
42988 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
42989 return (void *)((wxControl *) ((wxControlWithItems *) x));
42990 }
42991 static void *_p_wxGaugeTo_p_wxControl(void *x) {
42992 return (void *)((wxControl *) ((wxGauge *) x));
42993 }
42994 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
42995 return (void *)((wxControl *) ((wxStaticLine *) x));
42996 }
42997 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
42998 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
42999 }
43000 static void *_p_wxListbookTo_p_wxControl(void *x) {
43001 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
43002 }
43003 static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
43004 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
43005 }
43006 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
43007 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
43008 }
43009 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
43010 return (void *)((wxControl *) ((wxCheckBox *) x));
43011 }
43012 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
43013 return (void *)((wxControl *) ((wxRadioBox *) x));
43014 }
43015 static void *_p_wxChoiceTo_p_wxControl(void *x) {
43016 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
43017 }
43018 static void *_p_wxListBoxTo_p_wxControl(void *x) {
43019 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
43020 }
43021 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
43022 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
43023 }
43024 static void *_p_wxListViewTo_p_wxControl(void *x) {
43025 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
43026 }
43027 static void *_p_wxNotebookTo_p_wxControl(void *x) {
43028 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
43029 }
43030 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
43031 return (void *)((wxControl *) ((wxStaticBitmap *) x));
43032 }
43033 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
43034 return (void *)((wxControl *) ((wxSpinCtrl *) x));
43035 }
43036 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
43037 return (void *)((wxControl *) ((wxStaticText *) x));
43038 }
43039 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
43040 return (void *)((wxControl *) ((wxStaticBox *) x));
43041 }
43042 static void *_p_wxSliderTo_p_wxControl(void *x) {
43043 return (void *)((wxControl *) ((wxSlider *) x));
43044 }
43045 static void *_p_wxTreebookTo_p_wxControl(void *x) {
43046 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
43047 }
43048 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
43049 return (void *)((wxControl *) ((wxSpinButton *) x));
43050 }
43051 static void *_p_wxButtonTo_p_wxControl(void *x) {
43052 return (void *)((wxControl *) ((wxButton *) x));
43053 }
43054 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
43055 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
43056 }
43057 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
43058 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
43059 }
43060 static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
43061 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
43062 }
43063 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
43064 return (void *)((wxControl *) ((wxTextCtrl *) x));
43065 }
43066 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
43067 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
43068 }
43069 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
43070 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
43071 }
43072 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
43073 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
43074 }
43075 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
43076 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
43077 }
43078 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
43079 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
43080 }
43081 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
43082 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
43083 }
43084 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
43085 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
43086 }
43087 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
43088 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
43089 }
43090 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
43091 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
43092 }
43093 static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
43094 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
43095 }
43096 static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
43097 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
43098 }
43099 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
43100 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
43101 }
43102 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
43103 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
43104 }
43105 static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
43106 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
43107 }
43108 static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
43109 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
43110 }
43111 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
43112 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
43113 }
43114 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
43115 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
43116 }
43117 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
43118 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
43119 }
43120 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
43121 return (void *)((wxEvtHandler *) ((wxValidator *) x));
43122 }
43123 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
43124 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
43125 }
43126 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
43127 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
43128 }
43129 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
43130 return (void *)((wxEvtHandler *) ((wxMenu *) x));
43131 }
43132 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
43133 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
43134 }
43135 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
43136 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
43137 }
43138 static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
43139 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
43140 }
43141 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
43142 return (void *)((wxEvtHandler *) ((wxWindow *) x));
43143 }
43144 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
43145 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
43146 }
43147 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
43148 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
43149 }
43150 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
43151 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
43152 }
43153 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
43154 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
43155 }
43156 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
43157 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
43158 }
43159 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
43160 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
43161 }
43162 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
43163 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
43164 }
43165 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
43166 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
43167 }
43168 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
43169 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
43170 }
43171 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
43172 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
43173 }
43174 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
43175 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
43176 }
43177 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
43178 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
43179 }
43180 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
43181 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
43182 }
43183 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
43184 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
43185 }
43186 static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
43187 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
43188 }
43189 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
43190 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
43191 }
43192 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
43193 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
43194 }
43195 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
43196 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
43197 }
43198 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
43199 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
43200 }
43201 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
43202 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
43203 }
43204 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
43205 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
43206 }
43207 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
43208 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
43209 }
43210 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
43211 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
43212 }
43213 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
43214 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
43215 }
43216 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
43217 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
43218 }
43219 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
43220 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
43221 }
43222 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
43223 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
43224 }
43225 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
43226 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
43227 }
43228 static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
43229 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
43230 }
43231 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
43232 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
43233 }
43234 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
43235 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
43236 }
43237 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
43238 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
43239 }
43240 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
43241 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
43242 }
43243 static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
43244 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
43245 }
43246 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
43247 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
43248 }
43249 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
43250 return (void *)((wxListBox *) ((wxCheckListBox *) x));
43251 }
43252 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
43253 return (void *)((wxButton *) ((wxBitmapButton *) x));
43254 }
43255 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
43256 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
43257 }
43258 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
43259 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
43260 }
43261 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
43262 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
43263 }
43264 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
43265 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
43266 }
43267 static void *_p_wxToolbookTo_p_wxObject(void *x) {
43268 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
43269 }
43270 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
43271 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
43272 }
43273 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
43274 return (void *)((wxObject *) ((wxSizerItem *) x));
43275 }
43276 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
43277 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
43278 }
43279 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
43280 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
43281 }
43282 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
43283 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
43284 }
43285 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
43286 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
43287 }
43288 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
43289 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
43290 }
43291 static void *_p_wxSizerTo_p_wxObject(void *x) {
43292 return (void *)((wxObject *) ((wxSizer *) x));
43293 }
43294 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
43295 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
43296 }
43297 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
43298 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
43299 }
43300 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
43301 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
43302 }
43303 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
43304 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
43305 }
43306 static void *_p_wxEventTo_p_wxObject(void *x) {
43307 return (void *)((wxObject *) ((wxEvent *) x));
43308 }
43309 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
43310 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
43311 }
43312 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
43313 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
43314 }
43315 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
43316 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
43317 }
43318 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
43319 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
43320 }
43321 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
43322 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
43323 }
43324 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
43325 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
43326 }
43327 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
43328 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
43329 }
43330 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
43331 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
43332 }
43333 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
43334 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
43335 }
43336 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
43337 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
43338 }
43339 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
43340 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
43341 }
43342 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
43343 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
43344 }
43345 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
43346 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
43347 }
43348 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
43349 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
43350 }
43351 static void *_p_wxControlTo_p_wxObject(void *x) {
43352 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
43353 }
43354 static void *_p_wxPyControlTo_p_wxObject(void *x) {
43355 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
43356 }
43357 static void *_p_wxGaugeTo_p_wxObject(void *x) {
43358 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
43359 }
43360 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
43361 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
43362 }
43363 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
43364 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
43365 }
43366 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
43367 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
43368 }
43369 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
43370 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
43371 }
43372 static void *_p_wxChoiceTo_p_wxObject(void *x) {
43373 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
43374 }
43375 static void *_p_wxFSFileTo_p_wxObject(void *x) {
43376 return (void *)((wxObject *) ((wxFSFile *) x));
43377 }
43378 static void *_p_wxPySizerTo_p_wxObject(void *x) {
43379 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
43380 }
43381 static void *_p_wxTreebookTo_p_wxObject(void *x) {
43382 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
43383 }
43384 static void *_p_wxListViewTo_p_wxObject(void *x) {
43385 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
43386 }
43387 static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
43388 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
43389 }
43390 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
43391 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
43392 }
43393 static void *_p_wxNotebookTo_p_wxObject(void *x) {
43394 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
43395 }
43396 static void *_p_wxPyEventTo_p_wxObject(void *x) {
43397 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
43398 }
43399 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
43400 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
43401 }
43402 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
43403 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
43404 }
43405 static void *_p_wxListbookTo_p_wxObject(void *x) {
43406 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
43407 }
43408 static void *_p_wxShowEventTo_p_wxObject(void *x) {
43409 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
43410 }
43411 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
43412 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
43413 }
43414 static void *_p_wxSliderTo_p_wxObject(void *x) {
43415 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
43416 }
43417 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
43418 return (void *)((wxObject *) ((wxMenuItem *) x));
43419 }
43420 static void *_p_wxDateEventTo_p_wxObject(void *x) {
43421 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
43422 }
43423 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
43424 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
43425 }
43426 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
43427 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
43428 }
43429 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
43430 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
43431 }
43432 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
43433 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
43434 }
43435 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
43436 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
43437 }
43438 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
43439 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
43440 }
43441 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
43442 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
43443 }
43444 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
43445 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
43446 }
43447 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
43448 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
43449 }
43450 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
43451 return (void *)((wxObject *) ((wxContextHelp *) x));
43452 }
43453 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
43454 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
43455 }
43456 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
43457 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
43458 }
43459 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
43460 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
43461 }
43462 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
43463 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
43464 }
43465 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
43466 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
43467 }
43468 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
43469 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
43470 }
43471 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
43472 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
43473 }
43474 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
43475 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
43476 }
43477 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
43478 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
43479 }
43480 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
43481 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
43482 }
43483 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
43484 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
43485 }
43486 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
43487 return (void *)((wxObject *) ((wxImageHandler *) x));
43488 }
43489 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
43490 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
43491 }
43492 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
43493 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
43494 }
43495 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
43496 return (void *)((wxObject *) ((wxEvtHandler *) x));
43497 }
43498 static void *_p_wxListEventTo_p_wxObject(void *x) {
43499 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
43500 }
43501 static void *_p_wxListBoxTo_p_wxObject(void *x) {
43502 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
43503 }
43504 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
43505 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
43506 }
43507 static void *_p_wxButtonTo_p_wxObject(void *x) {
43508 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
43509 }
43510 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
43511 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
43512 }
43513 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
43514 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
43515 }
43516 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
43517 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
43518 }
43519 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
43520 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
43521 }
43522 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
43523 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
43524 }
43525 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
43526 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
43527 }
43528 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
43529 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
43530 }
43531 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
43532 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
43533 }
43534 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
43535 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
43536 }
43537 static void *_p_wxListItemTo_p_wxObject(void *x) {
43538 return (void *)((wxObject *) ((wxListItem *) x));
43539 }
43540 static void *_p_wxImageTo_p_wxObject(void *x) {
43541 return (void *)((wxObject *) ((wxImage *) x));
43542 }
43543 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
43544 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
43545 }
43546 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
43547 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
43548 }
43549 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
43550 return (void *)((wxObject *) ((wxGenericDragImage *) x));
43551 }
43552 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
43553 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
43554 }
43555 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
43556 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
43557 }
43558 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
43559 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
43560 }
43561 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
43562 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
43563 }
43564 static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
43565 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
43566 }
43567 static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
43568 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
43569 }
43570 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
43571 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
43572 }
43573 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
43574 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
43575 }
43576 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
43577 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
43578 }
43579 static void *_p_wxWindowTo_p_wxObject(void *x) {
43580 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
43581 }
43582 static void *_p_wxMenuTo_p_wxObject(void *x) {
43583 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
43584 }
43585 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
43586 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
43587 }
43588 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
43589 return (void *)((wxObject *) ((wxFileSystem *) x));
43590 }
43591 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
43592 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
43593 }
43594 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
43595 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
43596 }
43597 static void *_p_wxPyAppTo_p_wxObject(void *x) {
43598 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
43599 }
43600 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
43601 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
43602 }
43603 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
43604 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
43605 }
43606 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
43607 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
43608 }
43609 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
43610 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
43611 }
43612 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
43613 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
43614 }
43615 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
43616 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
43617 }
43618 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
43619 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
43620 }
43621 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
43622 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
43623 }
43624 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
43625 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
43626 }
43627 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
43628 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
43629 }
43630 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
43631 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
43632 }
43633 static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
43634 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
43635 }
43636 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
43637 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
43638 }
43639 static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
43640 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
43641 }
43642 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
43643 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
43644 }
43645 static void *_p_wxToolBarTo_p_wxObject(void *x) {
43646 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
43647 }
43648 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
43649 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
43650 }
43651 static void *_p_wxValidatorTo_p_wxObject(void *x) {
43652 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
43653 }
43654 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
43655 return (void *)((wxWindow *) ((wxMenuBar *) x));
43656 }
43657 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
43658 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
43659 }
43660 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
43661 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
43662 }
43663 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
43664 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
43665 }
43666 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
43667 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
43668 }
43669 static void *_p_wxToolbookTo_p_wxWindow(void *x) {
43670 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
43671 }
43672 static void *_p_wxControlTo_p_wxWindow(void *x) {
43673 return (void *)((wxWindow *) ((wxControl *) x));
43674 }
43675 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
43676 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
43677 }
43678 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
43679 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
43680 }
43681 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
43682 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
43683 }
43684 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
43685 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
43686 }
43687 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
43688 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
43689 }
43690 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
43691 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
43692 }
43693 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
43694 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
43695 }
43696 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
43697 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
43698 }
43699 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
43700 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
43701 }
43702 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
43703 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
43704 }
43705 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
43706 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
43707 }
43708 static void *_p_wxListbookTo_p_wxWindow(void *x) {
43709 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
43710 }
43711 static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
43712 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
43713 }
43714 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
43715 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
43716 }
43717 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
43718 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
43719 }
43720 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
43721 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
43722 }
43723 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
43724 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
43725 }
43726 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
43727 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
43728 }
43729 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
43730 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
43731 }
43732 static void *_p_wxListViewTo_p_wxWindow(void *x) {
43733 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
43734 }
43735 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
43736 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
43737 }
43738 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
43739 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
43740 }
43741 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
43742 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
43743 }
43744 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
43745 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
43746 }
43747 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
43748 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
43749 }
43750 static void *_p_wxSliderTo_p_wxWindow(void *x) {
43751 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
43752 }
43753 static void *_p_wxTreebookTo_p_wxWindow(void *x) {
43754 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
43755 }
43756 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
43757 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
43758 }
43759 static void *_p_wxButtonTo_p_wxWindow(void *x) {
43760 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
43761 }
43762 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
43763 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
43764 }
43765 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
43766 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
43767 }
43768 static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
43769 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
43770 }
43771 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
43772 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
43773 }
43774 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
43775 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
43776 }
43777 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
43778 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
43779 }
43780 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
43781 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
43782 }
43783 static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
43784 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
43785 }
43786 static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
43787 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
43788 }
43789 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
43790 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
43791 }
43792 static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
43793 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
43794 }
43795 static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
43796 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
43797 }
43798 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
43799 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
43800 }
43801 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
43802 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
43803 }
43804 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
43805 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
43806 }
43807 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
43808 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
43809 }
43810 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
43811 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
43812 }
43813 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
43814 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
43815 }
43816 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
43817 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
43818 }
43819 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
43820 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
43821 }
43822 static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
43823 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
43824 }
43825 static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
43826 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
43827 }
43828 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
43829 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
43830 }
43831 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
43832 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
43833 }
43834 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
43835 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
43836 }
43837 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
43838 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
43839 }
43840 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
43841 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
43842 }
43843 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
43844 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
43845 }
43846 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
43847 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
43848 }
43849 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
43850 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
43851 }
43852 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
43853 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
43854 }
43855 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
43856 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
43857 }
43858 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
43859 return (void *)((wxControlWithItems *) ((wxChoice *) x));
43860 }
43861 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
43862 return (void *)((wxControlWithItems *) ((wxListBox *) x));
43863 }
43864 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
43865 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
43866 }
43867 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
43868 return (void *)((wxValidator *) ((wxPyValidator *) x));
43869 }
43870 static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
43871 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
43872 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};
43873 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
43874 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
43875 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
43876 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
43877 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
43878 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
43879 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
43880 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
43881 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
43882 static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
43883 static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
43884 static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
43885 static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
43886 static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
43887 static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
43888 static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
43889 static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
43890 static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
43891 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
43892 static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
43893 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
43894 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
43895 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
43896 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
43897 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
43898 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
43899 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
43900 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
43901 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
43902 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
43903 static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
43904 static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
43905 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
43906 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
43907 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
43908 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
43909 static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
43910 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
43911 static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
43912 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
43913 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
43914 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
43915 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
43916 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
43917 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
43918 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
43919 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
43920 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
43921 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
43922 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
43923 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
43924 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
43925 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
43926 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
43927 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
43928 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
43929 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
43930 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
43931 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
43932 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
43933 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
43934 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
43935 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
43936 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
43937 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
43938 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
43939 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
43940 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
43941 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
43942 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
43943 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
43944 static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
43945 static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
43946 static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
43947 static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
43948 static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
43949 static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
43950 static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
43951 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
43952 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
43953 static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
43954 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
43955 static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
43956 static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
43957 static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
43958 static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
43959 static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
43960 static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
43961 static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
43962 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
43963 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
43964 static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
43965 static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
43966 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
43967 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
43968 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
43969 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
43970 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
43971 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
43972 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
43973 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
43974 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
43975 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
43976 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
43977 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
43978 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
43979 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
43980 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
43981 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
43982 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
43983 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
43984 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
43985 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
43986 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
43987 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
43988 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
43989 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
43990 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
43991 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
43992 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
43993 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
43994 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
43995 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
43996 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
43997 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
43998 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
43999 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
44000 static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
44001 static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
44002 static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
44003 static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
44004 static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
44005 static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
44006 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
44007 static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
44008 static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
44009 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
44010 static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
44011 static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
44012 static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
44013 static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
44014 static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
44015 static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
44016 static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
44017 static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
44018 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
44019 static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
44020 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
44021 static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
44022 static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
44023 static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
44024 static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
44025 static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
44026 static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
44027 static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
44028 static swig_type_info _swigt__p_wxTreeCtrl = {"_p_wxTreeCtrl", "wxTreeCtrl *", 0, 0, (void*)0, 0};
44029 static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
44030 static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
44031 static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
44032 static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
44033 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
44034 static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
44035 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
44036
44037 static swig_type_info *swig_type_initial[] = {
44038 &_swigt__p_bool,
44039 &_swigt__p_char,
44040 &_swigt__p_form_ops_t,
44041 &_swigt__p_int,
44042 &_swigt__p_long,
44043 &_swigt__p_unsigned_char,
44044 &_swigt__p_unsigned_int,
44045 &_swigt__p_unsigned_long,
44046 &_swigt__p_void,
44047 &_swigt__p_wxANIHandler,
44048 &_swigt__p_wxAcceleratorTable,
44049 &_swigt__p_wxActivateEvent,
44050 &_swigt__p_wxArrayInt,
44051 &_swigt__p_wxArrayString,
44052 &_swigt__p_wxBMPHandler,
44053 &_swigt__p_wxBitmap,
44054 &_swigt__p_wxBitmapButton,
44055 &_swigt__p_wxBookCtrlBase,
44056 &_swigt__p_wxBookCtrlBaseEvent,
44057 &_swigt__p_wxBoxSizer,
44058 &_swigt__p_wxButton,
44059 &_swigt__p_wxCURHandler,
44060 &_swigt__p_wxCheckBox,
44061 &_swigt__p_wxCheckListBox,
44062 &_swigt__p_wxChildFocusEvent,
44063 &_swigt__p_wxChoice,
44064 &_swigt__p_wxChoicebook,
44065 &_swigt__p_wxChoicebookEvent,
44066 &_swigt__p_wxClipboardTextEvent,
44067 &_swigt__p_wxCloseEvent,
44068 &_swigt__p_wxColour,
44069 &_swigt__p_wxComboBox,
44070 &_swigt__p_wxCommandEvent,
44071 &_swigt__p_wxContextHelp,
44072 &_swigt__p_wxContextHelpButton,
44073 &_swigt__p_wxContextMenuEvent,
44074 &_swigt__p_wxControl,
44075 &_swigt__p_wxControlWithItems,
44076 &_swigt__p_wxCursor,
44077 &_swigt__p_wxDC,
44078 &_swigt__p_wxDateEvent,
44079 &_swigt__p_wxDatePickerCtrl,
44080 &_swigt__p_wxDateTime,
44081 &_swigt__p_wxDirFilterListCtrl,
44082 &_swigt__p_wxDisplayChangedEvent,
44083 &_swigt__p_wxDropFilesEvent,
44084 &_swigt__p_wxDuplexMode,
44085 &_swigt__p_wxEraseEvent,
44086 &_swigt__p_wxEvent,
44087 &_swigt__p_wxEvtHandler,
44088 &_swigt__p_wxFSFile,
44089 &_swigt__p_wxFileSystem,
44090 &_swigt__p_wxFlexGridSizer,
44091 &_swigt__p_wxFocusEvent,
44092 &_swigt__p_wxFont,
44093 &_swigt__p_wxGBSizerItem,
44094 &_swigt__p_wxGIFHandler,
44095 &_swigt__p_wxGauge,
44096 &_swigt__p_wxGenericDirCtrl,
44097 &_swigt__p_wxGenericDragImage,
44098 &_swigt__p_wxGridBagSizer,
44099 &_swigt__p_wxGridSizer,
44100 &_swigt__p_wxHelpEvent,
44101 &_swigt__p_wxHelpProvider,
44102 &_swigt__p_wxHyperlinkCtrl,
44103 &_swigt__p_wxHyperlinkEvent,
44104 &_swigt__p_wxICOHandler,
44105 &_swigt__p_wxIcon,
44106 &_swigt__p_wxIconizeEvent,
44107 &_swigt__p_wxIdleEvent,
44108 &_swigt__p_wxImage,
44109 &_swigt__p_wxImageHandler,
44110 &_swigt__p_wxImageList,
44111 &_swigt__p_wxIndividualLayoutConstraint,
44112 &_swigt__p_wxInitDialogEvent,
44113 &_swigt__p_wxItemContainer,
44114 &_swigt__p_wxJPEGHandler,
44115 &_swigt__p_wxKeyEvent,
44116 &_swigt__p_wxLayoutConstraints,
44117 &_swigt__p_wxListBox,
44118 &_swigt__p_wxListEvent,
44119 &_swigt__p_wxListItem,
44120 &_swigt__p_wxListItemAttr,
44121 &_swigt__p_wxListView,
44122 &_swigt__p_wxListbook,
44123 &_swigt__p_wxListbookEvent,
44124 &_swigt__p_wxMaximizeEvent,
44125 &_swigt__p_wxMemoryDC,
44126 &_swigt__p_wxMenu,
44127 &_swigt__p_wxMenuBar,
44128 &_swigt__p_wxMenuEvent,
44129 &_swigt__p_wxMenuItem,
44130 &_swigt__p_wxMouseCaptureChangedEvent,
44131 &_swigt__p_wxMouseEvent,
44132 &_swigt__p_wxMoveEvent,
44133 &_swigt__p_wxNavigationKeyEvent,
44134 &_swigt__p_wxNcPaintEvent,
44135 &_swigt__p_wxNotebook,
44136 &_swigt__p_wxNotebookEvent,
44137 &_swigt__p_wxNotifyEvent,
44138 &_swigt__p_wxObject,
44139 &_swigt__p_wxPCXHandler,
44140 &_swigt__p_wxPNGHandler,
44141 &_swigt__p_wxPNMHandler,
44142 &_swigt__p_wxPaintEvent,
44143 &_swigt__p_wxPaletteChangedEvent,
44144 &_swigt__p_wxPaperSize,
44145 &_swigt__p_wxPoint,
44146 &_swigt__p_wxPyApp,
44147 &_swigt__p_wxPyCommandEvent,
44148 &_swigt__p_wxPyControl,
44149 &_swigt__p_wxPyEvent,
44150 &_swigt__p_wxPyImageHandler,
44151 &_swigt__p_wxPyListCtrl,
44152 &_swigt__p_wxPySizer,
44153 &_swigt__p_wxPyTreeCtrl,
44154 &_swigt__p_wxPyTreeItemData,
44155 &_swigt__p_wxPyValidator,
44156 &_swigt__p_wxQueryNewPaletteEvent,
44157 &_swigt__p_wxRadioBox,
44158 &_swigt__p_wxRadioButton,
44159 &_swigt__p_wxRect,
44160 &_swigt__p_wxScrollBar,
44161 &_swigt__p_wxScrollEvent,
44162 &_swigt__p_wxScrollWinEvent,
44163 &_swigt__p_wxSetCursorEvent,
44164 &_swigt__p_wxShowEvent,
44165 &_swigt__p_wxSimpleHelpProvider,
44166 &_swigt__p_wxSize,
44167 &_swigt__p_wxSizeEvent,
44168 &_swigt__p_wxSizer,
44169 &_swigt__p_wxSizerItem,
44170 &_swigt__p_wxSlider,
44171 &_swigt__p_wxSpinButton,
44172 &_swigt__p_wxSpinCtrl,
44173 &_swigt__p_wxSpinEvent,
44174 &_swigt__p_wxStaticBitmap,
44175 &_swigt__p_wxStaticBox,
44176 &_swigt__p_wxStaticBoxSizer,
44177 &_swigt__p_wxStaticLine,
44178 &_swigt__p_wxStaticText,
44179 &_swigt__p_wxStdDialogButtonSizer,
44180 &_swigt__p_wxString,
44181 &_swigt__p_wxSysColourChangedEvent,
44182 &_swigt__p_wxTIFFHandler,
44183 &_swigt__p_wxTextAttr,
44184 &_swigt__p_wxTextCtrl,
44185 &_swigt__p_wxTextUrlEvent,
44186 &_swigt__p_wxToggleButton,
44187 &_swigt__p_wxToolBar,
44188 &_swigt__p_wxToolBarBase,
44189 &_swigt__p_wxToolBarToolBase,
44190 &_swigt__p_wxToolbook,
44191 &_swigt__p_wxToolbookEvent,
44192 &_swigt__p_wxTreeCtrl,
44193 &_swigt__p_wxTreeEvent,
44194 &_swigt__p_wxTreeItemId,
44195 &_swigt__p_wxTreebook,
44196 &_swigt__p_wxTreebookEvent,
44197 &_swigt__p_wxUpdateUIEvent,
44198 &_swigt__p_wxValidator,
44199 &_swigt__p_wxVisualAttributes,
44200 &_swigt__p_wxWindow,
44201 &_swigt__p_wxWindowCreateEvent,
44202 &_swigt__p_wxWindowDestroyEvent,
44203 &_swigt__p_wxXPMHandler,
44204 };
44205
44206 static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
44207 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
44208 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
44209 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
44210 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
44211 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
44212 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
44213 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
44214 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
44215 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
44216 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
44217 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
44218 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}};
44219 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}};
44220 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}};
44221 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}};
44222 static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
44223 static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
44224 static swig_cast_info _swigc__p_wxChoice[] = { {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0}, {&_swigt__p_wxChoice, 0, 0, 0},{0, 0, 0, 0}};
44225 static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
44226 static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
44227 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
44228 static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
44229 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
44230 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
44231 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
44232 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
44233 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
44234 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
44235 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
44236 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
44237 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
44238 static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}};
44239 static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
44240 static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
44241 static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxControl, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControl, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxControl, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxControl, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxControl, 0, 0},{0, 0, 0, 0}};
44242 static swig_cast_info _swigc__p_wxControlWithItems[] = { {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxControlWithItems, 0, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0},{0, 0, 0, 0}};
44243 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
44244 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
44245 static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
44246 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
44247 static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
44248 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
44249 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
44250 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
44251 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
44252 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
44253 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
44254 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
44255 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
44256 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
44257 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
44258 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
44259 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
44260 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
44261 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
44262 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
44263 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
44264 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
44265 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
44266 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
44267 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
44268 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
44269 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
44270 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
44271 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
44272 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
44273 static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}};
44274 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
44275 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
44276 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
44277 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
44278 static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
44279 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
44280 static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
44281 static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
44282 static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
44283 static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
44284 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}};
44285 static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
44286 static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
44287 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
44288 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
44289 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}};
44290 static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
44291 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}};
44292 static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
44293 static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
44294 static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
44295 static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
44296 static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
44297 static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
44298 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
44299 static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
44300 static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
44301 static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
44302 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}};
44303 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
44304 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
44305 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
44306 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
44307 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
44308 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
44309 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
44310 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
44311 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
44312 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
44313 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
44314 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
44315 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
44316 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
44317 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
44318 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
44319 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
44320 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
44321 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
44322 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
44323 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
44324 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
44325 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
44326 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
44327 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
44328 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
44329 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
44330 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
44331 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
44332 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
44333 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelp, _p_wxContextHelpTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxListItem, _p_wxListItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDragImage, _p_wxGenericDragImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarToolBase, _p_wxToolBarToolBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
44334 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
44335 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
44336 static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
44337 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}};
44338 static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
44339 static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
44340 static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
44341 static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
44342 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
44343 static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
44344 static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
44345 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
44346 static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
44347 static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
44348 static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
44349 static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
44350 static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
44351 static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
44352 static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
44353 static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
44354 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
44355 static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
44356 static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
44357 static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
44358 static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
44359 static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
44360 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}};
44361 static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
44362 static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
44363 static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
44364 static swig_cast_info _swigc__p_wxTreeCtrl[] = { {&_swigt__p_wxTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
44365 static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
44366 static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
44367 static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
44368 static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
44369 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}};
44370 static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
44371 static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxWindow, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
44372
44373 static swig_cast_info *swig_cast_initial[] = {
44374 _swigc__p_bool,
44375 _swigc__p_char,
44376 _swigc__p_form_ops_t,
44377 _swigc__p_int,
44378 _swigc__p_long,
44379 _swigc__p_unsigned_char,
44380 _swigc__p_unsigned_int,
44381 _swigc__p_unsigned_long,
44382 _swigc__p_void,
44383 _swigc__p_wxANIHandler,
44384 _swigc__p_wxAcceleratorTable,
44385 _swigc__p_wxActivateEvent,
44386 _swigc__p_wxArrayInt,
44387 _swigc__p_wxArrayString,
44388 _swigc__p_wxBMPHandler,
44389 _swigc__p_wxBitmap,
44390 _swigc__p_wxBitmapButton,
44391 _swigc__p_wxBookCtrlBase,
44392 _swigc__p_wxBookCtrlBaseEvent,
44393 _swigc__p_wxBoxSizer,
44394 _swigc__p_wxButton,
44395 _swigc__p_wxCURHandler,
44396 _swigc__p_wxCheckBox,
44397 _swigc__p_wxCheckListBox,
44398 _swigc__p_wxChildFocusEvent,
44399 _swigc__p_wxChoice,
44400 _swigc__p_wxChoicebook,
44401 _swigc__p_wxChoicebookEvent,
44402 _swigc__p_wxClipboardTextEvent,
44403 _swigc__p_wxCloseEvent,
44404 _swigc__p_wxColour,
44405 _swigc__p_wxComboBox,
44406 _swigc__p_wxCommandEvent,
44407 _swigc__p_wxContextHelp,
44408 _swigc__p_wxContextHelpButton,
44409 _swigc__p_wxContextMenuEvent,
44410 _swigc__p_wxControl,
44411 _swigc__p_wxControlWithItems,
44412 _swigc__p_wxCursor,
44413 _swigc__p_wxDC,
44414 _swigc__p_wxDateEvent,
44415 _swigc__p_wxDatePickerCtrl,
44416 _swigc__p_wxDateTime,
44417 _swigc__p_wxDirFilterListCtrl,
44418 _swigc__p_wxDisplayChangedEvent,
44419 _swigc__p_wxDropFilesEvent,
44420 _swigc__p_wxDuplexMode,
44421 _swigc__p_wxEraseEvent,
44422 _swigc__p_wxEvent,
44423 _swigc__p_wxEvtHandler,
44424 _swigc__p_wxFSFile,
44425 _swigc__p_wxFileSystem,
44426 _swigc__p_wxFlexGridSizer,
44427 _swigc__p_wxFocusEvent,
44428 _swigc__p_wxFont,
44429 _swigc__p_wxGBSizerItem,
44430 _swigc__p_wxGIFHandler,
44431 _swigc__p_wxGauge,
44432 _swigc__p_wxGenericDirCtrl,
44433 _swigc__p_wxGenericDragImage,
44434 _swigc__p_wxGridBagSizer,
44435 _swigc__p_wxGridSizer,
44436 _swigc__p_wxHelpEvent,
44437 _swigc__p_wxHelpProvider,
44438 _swigc__p_wxHyperlinkCtrl,
44439 _swigc__p_wxHyperlinkEvent,
44440 _swigc__p_wxICOHandler,
44441 _swigc__p_wxIcon,
44442 _swigc__p_wxIconizeEvent,
44443 _swigc__p_wxIdleEvent,
44444 _swigc__p_wxImage,
44445 _swigc__p_wxImageHandler,
44446 _swigc__p_wxImageList,
44447 _swigc__p_wxIndividualLayoutConstraint,
44448 _swigc__p_wxInitDialogEvent,
44449 _swigc__p_wxItemContainer,
44450 _swigc__p_wxJPEGHandler,
44451 _swigc__p_wxKeyEvent,
44452 _swigc__p_wxLayoutConstraints,
44453 _swigc__p_wxListBox,
44454 _swigc__p_wxListEvent,
44455 _swigc__p_wxListItem,
44456 _swigc__p_wxListItemAttr,
44457 _swigc__p_wxListView,
44458 _swigc__p_wxListbook,
44459 _swigc__p_wxListbookEvent,
44460 _swigc__p_wxMaximizeEvent,
44461 _swigc__p_wxMemoryDC,
44462 _swigc__p_wxMenu,
44463 _swigc__p_wxMenuBar,
44464 _swigc__p_wxMenuEvent,
44465 _swigc__p_wxMenuItem,
44466 _swigc__p_wxMouseCaptureChangedEvent,
44467 _swigc__p_wxMouseEvent,
44468 _swigc__p_wxMoveEvent,
44469 _swigc__p_wxNavigationKeyEvent,
44470 _swigc__p_wxNcPaintEvent,
44471 _swigc__p_wxNotebook,
44472 _swigc__p_wxNotebookEvent,
44473 _swigc__p_wxNotifyEvent,
44474 _swigc__p_wxObject,
44475 _swigc__p_wxPCXHandler,
44476 _swigc__p_wxPNGHandler,
44477 _swigc__p_wxPNMHandler,
44478 _swigc__p_wxPaintEvent,
44479 _swigc__p_wxPaletteChangedEvent,
44480 _swigc__p_wxPaperSize,
44481 _swigc__p_wxPoint,
44482 _swigc__p_wxPyApp,
44483 _swigc__p_wxPyCommandEvent,
44484 _swigc__p_wxPyControl,
44485 _swigc__p_wxPyEvent,
44486 _swigc__p_wxPyImageHandler,
44487 _swigc__p_wxPyListCtrl,
44488 _swigc__p_wxPySizer,
44489 _swigc__p_wxPyTreeCtrl,
44490 _swigc__p_wxPyTreeItemData,
44491 _swigc__p_wxPyValidator,
44492 _swigc__p_wxQueryNewPaletteEvent,
44493 _swigc__p_wxRadioBox,
44494 _swigc__p_wxRadioButton,
44495 _swigc__p_wxRect,
44496 _swigc__p_wxScrollBar,
44497 _swigc__p_wxScrollEvent,
44498 _swigc__p_wxScrollWinEvent,
44499 _swigc__p_wxSetCursorEvent,
44500 _swigc__p_wxShowEvent,
44501 _swigc__p_wxSimpleHelpProvider,
44502 _swigc__p_wxSize,
44503 _swigc__p_wxSizeEvent,
44504 _swigc__p_wxSizer,
44505 _swigc__p_wxSizerItem,
44506 _swigc__p_wxSlider,
44507 _swigc__p_wxSpinButton,
44508 _swigc__p_wxSpinCtrl,
44509 _swigc__p_wxSpinEvent,
44510 _swigc__p_wxStaticBitmap,
44511 _swigc__p_wxStaticBox,
44512 _swigc__p_wxStaticBoxSizer,
44513 _swigc__p_wxStaticLine,
44514 _swigc__p_wxStaticText,
44515 _swigc__p_wxStdDialogButtonSizer,
44516 _swigc__p_wxString,
44517 _swigc__p_wxSysColourChangedEvent,
44518 _swigc__p_wxTIFFHandler,
44519 _swigc__p_wxTextAttr,
44520 _swigc__p_wxTextCtrl,
44521 _swigc__p_wxTextUrlEvent,
44522 _swigc__p_wxToggleButton,
44523 _swigc__p_wxToolBar,
44524 _swigc__p_wxToolBarBase,
44525 _swigc__p_wxToolBarToolBase,
44526 _swigc__p_wxToolbook,
44527 _swigc__p_wxToolbookEvent,
44528 _swigc__p_wxTreeCtrl,
44529 _swigc__p_wxTreeEvent,
44530 _swigc__p_wxTreeItemId,
44531 _swigc__p_wxTreebook,
44532 _swigc__p_wxTreebookEvent,
44533 _swigc__p_wxUpdateUIEvent,
44534 _swigc__p_wxValidator,
44535 _swigc__p_wxVisualAttributes,
44536 _swigc__p_wxWindow,
44537 _swigc__p_wxWindowCreateEvent,
44538 _swigc__p_wxWindowDestroyEvent,
44539 _swigc__p_wxXPMHandler,
44540 };
44541
44542
44543 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
44544
44545 static swig_const_info swig_const_table[] = {
44546 {0, 0, 0, 0.0, 0, 0}};
44547
44548 #ifdef __cplusplus
44549 }
44550 #endif
44551 /* -----------------------------------------------------------------------------
44552 * Type initialization:
44553 * This problem is tough by the requirement that no dynamic
44554 * memory is used. Also, since swig_type_info structures store pointers to
44555 * swig_cast_info structures and swig_cast_info structures store pointers back
44556 * to swig_type_info structures, we need some lookup code at initialization.
44557 * The idea is that swig generates all the structures that are needed.
44558 * The runtime then collects these partially filled structures.
44559 * The SWIG_InitializeModule function takes these initial arrays out of
44560 * swig_module, and does all the lookup, filling in the swig_module.types
44561 * array with the correct data and linking the correct swig_cast_info
44562 * structures together.
44563 *
44564 * The generated swig_type_info structures are assigned staticly to an initial
44565 * array. We just loop though that array, and handle each type individually.
44566 * First we lookup if this type has been already loaded, and if so, use the
44567 * loaded structure instead of the generated one. Then we have to fill in the
44568 * cast linked list. The cast data is initially stored in something like a
44569 * two-dimensional array. Each row corresponds to a type (there are the same
44570 * number of rows as there are in the swig_type_initial array). Each entry in
44571 * a column is one of the swig_cast_info structures for that type.
44572 * The cast_initial array is actually an array of arrays, because each row has
44573 * a variable number of columns. So to actually build the cast linked list,
44574 * we find the array of casts associated with the type, and loop through it
44575 * adding the casts to the list. The one last trick we need to do is making
44576 * sure the type pointer in the swig_cast_info struct is correct.
44577 *
44578 * First off, we lookup the cast->type name to see if it is already loaded.
44579 * There are three cases to handle:
44580 * 1) If the cast->type has already been loaded AND the type we are adding
44581 * casting info to has not been loaded (it is in this module), THEN we
44582 * replace the cast->type pointer with the type pointer that has already
44583 * been loaded.
44584 * 2) If BOTH types (the one we are adding casting info to, and the
44585 * cast->type) are loaded, THEN the cast info has already been loaded by
44586 * the previous module so we just ignore it.
44587 * 3) Finally, if cast->type has not already been loaded, then we add that
44588 * swig_cast_info to the linked list (because the cast->type) pointer will
44589 * be correct.
44590 * ----------------------------------------------------------------------------- */
44591
44592 #ifdef __cplusplus
44593 extern "C" {
44594 #if 0
44595 } /* c-mode */
44596 #endif
44597 #endif
44598
44599 #if 0
44600 #define SWIGRUNTIME_DEBUG
44601 #endif
44602
44603 SWIGRUNTIME void
44604 SWIG_InitializeModule(void *clientdata) {
44605 size_t i;
44606 swig_module_info *module_head;
44607 static int init_run = 0;
44608
44609 clientdata = clientdata;
44610
44611 if (init_run) return;
44612 init_run = 1;
44613
44614 /* Initialize the swig_module */
44615 swig_module.type_initial = swig_type_initial;
44616 swig_module.cast_initial = swig_cast_initial;
44617
44618 /* Try and load any already created modules */
44619 module_head = SWIG_GetModule(clientdata);
44620 if (module_head) {
44621 swig_module.next = module_head->next;
44622 module_head->next = &swig_module;
44623 } else {
44624 /* This is the first module loaded */
44625 swig_module.next = &swig_module;
44626 SWIG_SetModule(clientdata, &swig_module);
44627 }
44628
44629 /* Now work on filling in swig_module.types */
44630 #ifdef SWIGRUNTIME_DEBUG
44631 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
44632 #endif
44633 for (i = 0; i < swig_module.size; ++i) {
44634 swig_type_info *type = 0;
44635 swig_type_info *ret;
44636 swig_cast_info *cast;
44637
44638 #ifdef SWIGRUNTIME_DEBUG
44639 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
44640 #endif
44641
44642 /* if there is another module already loaded */
44643 if (swig_module.next != &swig_module) {
44644 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
44645 }
44646 if (type) {
44647 /* Overwrite clientdata field */
44648 #ifdef SWIGRUNTIME_DEBUG
44649 printf("SWIG_InitializeModule: found type %s\n", type->name);
44650 #endif
44651 if (swig_module.type_initial[i]->clientdata) {
44652 type->clientdata = swig_module.type_initial[i]->clientdata;
44653 #ifdef SWIGRUNTIME_DEBUG
44654 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
44655 #endif
44656 }
44657 } else {
44658 type = swig_module.type_initial[i];
44659 }
44660
44661 /* Insert casting types */
44662 cast = swig_module.cast_initial[i];
44663 while (cast->type) {
44664 /* Don't need to add information already in the list */
44665 ret = 0;
44666 #ifdef SWIGRUNTIME_DEBUG
44667 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
44668 #endif
44669 if (swig_module.next != &swig_module) {
44670 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
44671 #ifdef SWIGRUNTIME_DEBUG
44672 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
44673 #endif
44674 }
44675 if (ret) {
44676 if (type == swig_module.type_initial[i]) {
44677 #ifdef SWIGRUNTIME_DEBUG
44678 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
44679 #endif
44680 cast->type = ret;
44681 ret = 0;
44682 } else {
44683 /* Check for casting already in the list */
44684 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
44685 #ifdef SWIGRUNTIME_DEBUG
44686 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
44687 #endif
44688 if (!ocast) ret = 0;
44689 }
44690 }
44691
44692 if (!ret) {
44693 #ifdef SWIGRUNTIME_DEBUG
44694 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
44695 #endif
44696 if (type->cast) {
44697 type->cast->prev = cast;
44698 cast->next = type->cast;
44699 }
44700 type->cast = cast;
44701 }
44702 cast++;
44703 }
44704 /* Set entry in modules->types array equal to the type */
44705 swig_module.types[i] = type;
44706 }
44707 swig_module.types[i] = 0;
44708
44709 #ifdef SWIGRUNTIME_DEBUG
44710 printf("**** SWIG_InitializeModule: Cast List ******\n");
44711 for (i = 0; i < swig_module.size; ++i) {
44712 int j = 0;
44713 swig_cast_info *cast = swig_module.cast_initial[i];
44714 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
44715 while (cast->type) {
44716 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
44717 cast++;
44718 ++j;
44719 }
44720 printf("---- Total casts: %d\n",j);
44721 }
44722 printf("**** SWIG_InitializeModule: Cast List ******\n");
44723 #endif
44724 }
44725
44726 /* This function will propagate the clientdata field of type to
44727 * any new swig_type_info structures that have been added into the list
44728 * of equivalent types. It is like calling
44729 * SWIG_TypeClientData(type, clientdata) a second time.
44730 */
44731 SWIGRUNTIME void
44732 SWIG_PropagateClientData(void) {
44733 size_t i;
44734 swig_cast_info *equiv;
44735 static int init_run = 0;
44736
44737 if (init_run) return;
44738 init_run = 1;
44739
44740 for (i = 0; i < swig_module.size; i++) {
44741 if (swig_module.types[i]->clientdata) {
44742 equiv = swig_module.types[i]->cast;
44743 while (equiv) {
44744 if (!equiv->converter) {
44745 if (equiv->type && !equiv->type->clientdata)
44746 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
44747 }
44748 equiv = equiv->next;
44749 }
44750 }
44751 }
44752 }
44753
44754 #ifdef __cplusplus
44755 #if 0
44756 {
44757 /* c-mode */
44758 #endif
44759 }
44760 #endif
44761
44762
44763
44764 #ifdef __cplusplus
44765 extern "C" {
44766 #endif
44767
44768 /* Python-specific SWIG API */
44769 #define SWIG_newvarlink() SWIG_Python_newvarlink()
44770 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
44771 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
44772
44773 /* -----------------------------------------------------------------------------
44774 * global variable support code.
44775 * ----------------------------------------------------------------------------- */
44776
44777 typedef struct swig_globalvar {
44778 char *name; /* Name of global variable */
44779 PyObject *(*get_attr)(void); /* Return the current value */
44780 int (*set_attr)(PyObject *); /* Set the value */
44781 struct swig_globalvar *next;
44782 } swig_globalvar;
44783
44784 typedef struct swig_varlinkobject {
44785 PyObject_HEAD
44786 swig_globalvar *vars;
44787 } swig_varlinkobject;
44788
44789 SWIGINTERN PyObject *
44790 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
44791 return PyString_FromString("<Swig global variables>");
44792 }
44793
44794 SWIGINTERN PyObject *
44795 swig_varlink_str(swig_varlinkobject *v) {
44796 PyObject *str = PyString_FromString("(");
44797 swig_globalvar *var;
44798 for (var = v->vars; var; var=var->next) {
44799 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
44800 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
44801 }
44802 PyString_ConcatAndDel(&str,PyString_FromString(")"));
44803 return str;
44804 }
44805
44806 SWIGINTERN int
44807 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
44808 PyObject *str = swig_varlink_str(v);
44809 fprintf(fp,"Swig global variables ");
44810 fprintf(fp,"%s\n", PyString_AsString(str));
44811 Py_DECREF(str);
44812 return 0;
44813 }
44814
44815 SWIGINTERN void
44816 swig_varlink_dealloc(swig_varlinkobject *v) {
44817 swig_globalvar *var = v->vars;
44818 while (var) {
44819 swig_globalvar *n = var->next;
44820 free(var->name);
44821 free(var);
44822 var = n;
44823 }
44824 }
44825
44826 SWIGINTERN PyObject *
44827 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
44828 PyObject *res = NULL;
44829 swig_globalvar *var = v->vars;
44830 while (var) {
44831 if (strcmp(var->name,n) == 0) {
44832 res = (*var->get_attr)();
44833 break;
44834 }
44835 var = var->next;
44836 }
44837 if (res == NULL && !PyErr_Occurred()) {
44838 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
44839 }
44840 return res;
44841 }
44842
44843 SWIGINTERN int
44844 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
44845 int res = 1;
44846 swig_globalvar *var = v->vars;
44847 while (var) {
44848 if (strcmp(var->name,n) == 0) {
44849 res = (*var->set_attr)(p);
44850 break;
44851 }
44852 var = var->next;
44853 }
44854 if (res == 1 && !PyErr_Occurred()) {
44855 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
44856 }
44857 return res;
44858 }
44859
44860 SWIGINTERN PyTypeObject*
44861 swig_varlink_type(void) {
44862 static char varlink__doc__[] = "Swig var link object";
44863 static PyTypeObject varlink_type;
44864 static int type_init = 0;
44865 if (!type_init) {
44866 const PyTypeObject tmp
44867 = {
44868 PyObject_HEAD_INIT(NULL)
44869 0, /* Number of items in variable part (ob_size) */
44870 (char *)"swigvarlink", /* Type name (tp_name) */
44871 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
44872 0, /* Itemsize (tp_itemsize) */
44873 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
44874 (printfunc) swig_varlink_print, /* Print (tp_print) */
44875 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
44876 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
44877 0, /* tp_compare */
44878 (reprfunc) swig_varlink_repr, /* tp_repr */
44879 0, /* tp_as_number */
44880 0, /* tp_as_sequence */
44881 0, /* tp_as_mapping */
44882 0, /* tp_hash */
44883 0, /* tp_call */
44884 (reprfunc)swig_varlink_str, /* tp_str */
44885 0, /* tp_getattro */
44886 0, /* tp_setattro */
44887 0, /* tp_as_buffer */
44888 0, /* tp_flags */
44889 varlink__doc__, /* tp_doc */
44890 0, /* tp_traverse */
44891 0, /* tp_clear */
44892 0, /* tp_richcompare */
44893 0, /* tp_weaklistoffset */
44894 #if PY_VERSION_HEX >= 0x02020000
44895 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
44896 #endif
44897 #if PY_VERSION_HEX >= 0x02030000
44898 0, /* tp_del */
44899 #endif
44900 #ifdef COUNT_ALLOCS
44901 0,0,0,0 /* tp_alloc -> tp_next */
44902 #endif
44903 };
44904 varlink_type = tmp;
44905 varlink_type.ob_type = &PyType_Type;
44906 type_init = 1;
44907 }
44908 return &varlink_type;
44909 }
44910
44911 /* Create a variable linking object for use later */
44912 SWIGINTERN PyObject *
44913 SWIG_Python_newvarlink(void) {
44914 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
44915 if (result) {
44916 result->vars = 0;
44917 }
44918 return ((PyObject*) result);
44919 }
44920
44921 SWIGINTERN void
44922 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
44923 swig_varlinkobject *v = (swig_varlinkobject *) p;
44924 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
44925 if (gv) {
44926 size_t size = strlen(name)+1;
44927 gv->name = (char *)malloc(size);
44928 if (gv->name) {
44929 strncpy(gv->name,name,size);
44930 gv->get_attr = get_attr;
44931 gv->set_attr = set_attr;
44932 gv->next = v->vars;
44933 }
44934 }
44935 v->vars = gv;
44936 }
44937
44938 SWIGINTERN PyObject *
44939 SWIG_globals() {
44940 static PyObject *_SWIG_globals = 0;
44941 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
44942 return _SWIG_globals;
44943 }
44944
44945 /* -----------------------------------------------------------------------------
44946 * constants/methods manipulation
44947 * ----------------------------------------------------------------------------- */
44948
44949 /* Install Constants */
44950 SWIGINTERN void
44951 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
44952 PyObject *obj = 0;
44953 size_t i;
44954 for (i = 0; constants[i].type; ++i) {
44955 switch(constants[i].type) {
44956 case SWIG_PY_POINTER:
44957 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
44958 break;
44959 case SWIG_PY_BINARY:
44960 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
44961 break;
44962 default:
44963 obj = 0;
44964 break;
44965 }
44966 if (obj) {
44967 PyDict_SetItemString(d, constants[i].name, obj);
44968 Py_DECREF(obj);
44969 }
44970 }
44971 }
44972
44973 /* -----------------------------------------------------------------------------*/
44974 /* Fix SwigMethods to carry the callback ptrs when needed */
44975 /* -----------------------------------------------------------------------------*/
44976
44977 SWIGINTERN void
44978 SWIG_Python_FixMethods(PyMethodDef *methods,
44979 swig_const_info *const_table,
44980 swig_type_info **types,
44981 swig_type_info **types_initial) {
44982 size_t i;
44983 for (i = 0; methods[i].ml_name; ++i) {
44984 char *c = methods[i].ml_doc;
44985 if (c && (c = strstr(c, "swig_ptr: "))) {
44986 int j;
44987 swig_const_info *ci = 0;
44988 char *name = c + 10;
44989 for (j = 0; const_table[j].type; ++j) {
44990 if (strncmp(const_table[j].name, name,
44991 strlen(const_table[j].name)) == 0) {
44992 ci = &(const_table[j]);
44993 break;
44994 }
44995 }
44996 if (ci) {
44997 size_t shift = (ci->ptype) - types;
44998 swig_type_info *ty = types_initial[shift];
44999 size_t ldoc = (c - methods[i].ml_doc);
45000 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
45001 char *ndoc = (char*)malloc(ldoc + lptr + 10);
45002 if (ndoc) {
45003 char *buff = ndoc;
45004 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
45005 if (ptr) {
45006 strncpy(buff, methods[i].ml_doc, ldoc);
45007 buff += ldoc;
45008 strncpy(buff, "swig_ptr: ", 10);
45009 buff += 10;
45010 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
45011 methods[i].ml_doc = ndoc;
45012 }
45013 }
45014 }
45015 }
45016 }
45017 }
45018
45019 #ifdef __cplusplus
45020 }
45021 #endif
45022
45023 /* -----------------------------------------------------------------------------*
45024 * Partial Init method
45025 * -----------------------------------------------------------------------------*/
45026
45027 #ifdef __cplusplus
45028 extern "C"
45029 #endif
45030 SWIGEXPORT void SWIG_init(void) {
45031 PyObject *m, *d;
45032
45033 /* Fix SwigMethods to carry the callback ptrs when needed */
45034 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
45035
45036 m = Py_InitModule((char *) SWIG_name, SwigMethods);
45037 d = PyModule_GetDict(m);
45038
45039 SWIG_InitializeModule(0);
45040 SWIG_InstallConstants(d,swig_const_table);
45041
45042
45043 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
45044 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
45045 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
45046 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
45047 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
45048 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
45049 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
45050 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
45051 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
45052 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
45053 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
45054 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
45055 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
45056 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
45057 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
45058 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
45059 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
45060 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
45061 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
45062 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
45063 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
45064 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
45065 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
45066 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
45067 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
45068 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
45069 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
45070 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
45071 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
45072 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
45073 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
45074 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
45075 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
45076 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
45077 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
45078 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
45079 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
45080 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
45081 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
45082 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
45083 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
45084 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
45085 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
45086 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
45087 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
45088 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
45089 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
45090 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
45091 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
45092 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
45093 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
45094 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
45095 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
45096 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
45097 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
45098 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
45099 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
45100 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
45101 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
45102 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
45103 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
45104 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
45105 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
45106 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
45107 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
45108 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
45109 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
45110 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
45111 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
45112 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
45113 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
45114 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
45115 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
45116 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
45117 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
45118 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
45119 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
45120 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
45121 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
45122 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
45123 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
45124 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
45125 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
45126 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
45127 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
45128 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
45129 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
45130 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
45131 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
45132 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
45133 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
45134 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
45135 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
45136 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
45137 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
45138 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
45139 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
45140 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
45141 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
45142 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
45143 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
45144 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
45145 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
45146 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
45147 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
45148 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
45149 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
45150 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
45151 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
45152 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
45153 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
45154 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
45155 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
45156 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
45157 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
45158 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
45159 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
45160 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
45161 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
45162 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
45163 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
45164 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
45165 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
45166 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
45167 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
45168 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
45169 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
45170 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
45171 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
45172 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
45173 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
45174 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
45175 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
45176 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
45177 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
45178 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
45179 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
45180 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
45181 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
45182 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
45183 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
45184 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
45185 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
45186 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
45187 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
45188 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
45189 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
45190 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
45191 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
45192 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
45193 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
45194 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
45195 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
45196 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
45197 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
45198 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
45199 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
45200 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
45201 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
45202 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
45203 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
45204 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
45205 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
45206 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
45207 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
45208 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
45209 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
45210 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
45211 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
45212 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
45213 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
45214 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
45215 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
45216 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
45217 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
45218 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
45219 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
45220 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
45221 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
45222 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
45223 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
45224 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
45225 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
45226 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
45227 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
45228 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
45229 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
45230 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
45231 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
45232 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
45233 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
45234 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
45235 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
45236 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
45237 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
45238 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
45239 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
45240 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
45241 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
45242 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
45243 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
45244 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
45245 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
45246 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
45247 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
45248 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
45249 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
45250 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
45251 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
45252 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
45253 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
45254 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
45255 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
45256 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
45257 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
45258 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
45259 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
45260 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
45261 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
45262 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
45263 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
45264 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
45265 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
45266 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
45267 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
45268 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
45269 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
45270 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
45271 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
45272 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
45273 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
45274 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
45275 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
45276 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
45277 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
45278 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
45279 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
45280 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
45281 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
45282 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
45283 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
45284 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
45285 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
45286 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
45287 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
45288 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
45289 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
45290 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
45291 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
45292
45293 // Map renamed classes back to their common name for OOR
45294 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
45295
45296 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
45297 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
45298 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
45299 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
45300 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
45301 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
45302 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
45303 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
45304 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
45305 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
45306 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
45307 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
45308 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
45309 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
45310 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
45311 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
45312 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
45313 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
45314 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
45315 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
45316 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
45317 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
45318 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
45319 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
45320 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
45321 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
45322 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
45323 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
45324 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
45325 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
45326 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
45327 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
45328 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
45329 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
45330 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
45331 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
45332 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
45333 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
45334 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
45335 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
45336 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
45337 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
45338 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
45339 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
45340 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
45341 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
45342 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
45343 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
45344 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
45345 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
45346 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
45347 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
45348 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
45349 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
45350 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
45351
45352 // Map renamed classes back to their common name for OOR
45353 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
45354 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
45355
45356 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
45357 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
45358 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
45359 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
45360 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
45361 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
45362 SWIG_Python_SetConstant(d, "FRAME_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxFRAME_EX_CONTEXTHELP)));
45363 SWIG_Python_SetConstant(d, "DIALOG_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxDIALOG_EX_CONTEXTHELP)));
45364 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
45365 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
45366 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
45367 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
45368 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
45369
45370 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
45371
45372 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
45373 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
45374 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
45375 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
45376 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
45377 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
45378 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
45379 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
45380 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
45381 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
45382 }
45383