]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_controls_wrap.cpp
fcd14a4c12aaa32c6a78ad04e53b3ed753de27f2
[wxWidgets.git] / wxPython / src / msw / _controls_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_bool swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_form_ops_t swig_types[2]
2469 #define SWIGTYPE_p_int swig_types[3]
2470 #define SWIGTYPE_p_long swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_void swig_types[8]
2475 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2476 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478 #define SWIGTYPE_p_wxArrayInt swig_types[12]
2479 #define SWIGTYPE_p_wxArrayString swig_types[13]
2480 #define SWIGTYPE_p_wxBMPHandler swig_types[14]
2481 #define SWIGTYPE_p_wxBitmap swig_types[15]
2482 #define SWIGTYPE_p_wxBitmapButton swig_types[16]
2483 #define SWIGTYPE_p_wxBookCtrlBase swig_types[17]
2484 #define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18]
2485 #define SWIGTYPE_p_wxBoxSizer swig_types[19]
2486 #define SWIGTYPE_p_wxButton swig_types[20]
2487 #define SWIGTYPE_p_wxCURHandler swig_types[21]
2488 #define SWIGTYPE_p_wxCheckBox swig_types[22]
2489 #define SWIGTYPE_p_wxCheckListBox swig_types[23]
2490 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491 #define SWIGTYPE_p_wxChoice swig_types[25]
2492 #define SWIGTYPE_p_wxChoicebook swig_types[26]
2493 #define SWIGTYPE_p_wxChoicebookEvent swig_types[27]
2494 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[28]
2495 #define SWIGTYPE_p_wxCloseEvent swig_types[29]
2496 #define SWIGTYPE_p_wxColour swig_types[30]
2497 #define SWIGTYPE_p_wxColourPickerCtrl swig_types[31]
2498 #define SWIGTYPE_p_wxColourPickerEvent swig_types[32]
2499 #define SWIGTYPE_p_wxComboBox swig_types[33]
2500 #define SWIGTYPE_p_wxCommandEvent swig_types[34]
2501 #define SWIGTYPE_p_wxContextHelp swig_types[35]
2502 #define SWIGTYPE_p_wxContextHelpButton swig_types[36]
2503 #define SWIGTYPE_p_wxContextMenuEvent swig_types[37]
2504 #define SWIGTYPE_p_wxControl swig_types[38]
2505 #define SWIGTYPE_p_wxControlWithItems swig_types[39]
2506 #define SWIGTYPE_p_wxCursor swig_types[40]
2507 #define SWIGTYPE_p_wxDC swig_types[41]
2508 #define SWIGTYPE_p_wxDateEvent swig_types[42]
2509 #define SWIGTYPE_p_wxDatePickerCtrl swig_types[43]
2510 #define SWIGTYPE_p_wxDateTime swig_types[44]
2511 #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[45]
2512 #define SWIGTYPE_p_wxDirPickerCtrl swig_types[46]
2513 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[47]
2514 #define SWIGTYPE_p_wxDropFilesEvent swig_types[48]
2515 #define SWIGTYPE_p_wxDuplexMode swig_types[49]
2516 #define SWIGTYPE_p_wxEraseEvent swig_types[50]
2517 #define SWIGTYPE_p_wxEvent swig_types[51]
2518 #define SWIGTYPE_p_wxEvtHandler swig_types[52]
2519 #define SWIGTYPE_p_wxFSFile swig_types[53]
2520 #define SWIGTYPE_p_wxFileDirPickerEvent swig_types[54]
2521 #define SWIGTYPE_p_wxFilePickerCtrl swig_types[55]
2522 #define SWIGTYPE_p_wxFileSystem swig_types[56]
2523 #define SWIGTYPE_p_wxFlexGridSizer swig_types[57]
2524 #define SWIGTYPE_p_wxFocusEvent swig_types[58]
2525 #define SWIGTYPE_p_wxFont swig_types[59]
2526 #define SWIGTYPE_p_wxFontPickerCtrl swig_types[60]
2527 #define SWIGTYPE_p_wxFontPickerEvent swig_types[61]
2528 #define SWIGTYPE_p_wxGBSizerItem swig_types[62]
2529 #define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530 #define SWIGTYPE_p_wxGauge swig_types[64]
2531 #define SWIGTYPE_p_wxGenericDirCtrl swig_types[65]
2532 #define SWIGTYPE_p_wxGenericDragImage swig_types[66]
2533 #define SWIGTYPE_p_wxGridBagSizer swig_types[67]
2534 #define SWIGTYPE_p_wxGridSizer swig_types[68]
2535 #define SWIGTYPE_p_wxHelpEvent swig_types[69]
2536 #define SWIGTYPE_p_wxHelpProvider swig_types[70]
2537 #define SWIGTYPE_p_wxHyperlinkCtrl swig_types[71]
2538 #define SWIGTYPE_p_wxHyperlinkEvent swig_types[72]
2539 #define SWIGTYPE_p_wxICOHandler swig_types[73]
2540 #define SWIGTYPE_p_wxIcon swig_types[74]
2541 #define SWIGTYPE_p_wxIconizeEvent swig_types[75]
2542 #define SWIGTYPE_p_wxIdleEvent swig_types[76]
2543 #define SWIGTYPE_p_wxImage swig_types[77]
2544 #define SWIGTYPE_p_wxImageHandler swig_types[78]
2545 #define SWIGTYPE_p_wxImageList swig_types[79]
2546 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[80]
2547 #define SWIGTYPE_p_wxInitDialogEvent swig_types[81]
2548 #define SWIGTYPE_p_wxItemContainer swig_types[82]
2549 #define SWIGTYPE_p_wxJPEGHandler swig_types[83]
2550 #define SWIGTYPE_p_wxKeyEvent swig_types[84]
2551 #define SWIGTYPE_p_wxLayoutConstraints swig_types[85]
2552 #define SWIGTYPE_p_wxListBox swig_types[86]
2553 #define SWIGTYPE_p_wxListEvent swig_types[87]
2554 #define SWIGTYPE_p_wxListItem swig_types[88]
2555 #define SWIGTYPE_p_wxListItemAttr swig_types[89]
2556 #define SWIGTYPE_p_wxListView swig_types[90]
2557 #define SWIGTYPE_p_wxListbook swig_types[91]
2558 #define SWIGTYPE_p_wxListbookEvent swig_types[92]
2559 #define SWIGTYPE_p_wxMaximizeEvent swig_types[93]
2560 #define SWIGTYPE_p_wxMemoryDC swig_types[94]
2561 #define SWIGTYPE_p_wxMenu swig_types[95]
2562 #define SWIGTYPE_p_wxMenuBar swig_types[96]
2563 #define SWIGTYPE_p_wxMenuEvent swig_types[97]
2564 #define SWIGTYPE_p_wxMenuItem swig_types[98]
2565 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[99]
2566 #define SWIGTYPE_p_wxMouseEvent swig_types[100]
2567 #define SWIGTYPE_p_wxMoveEvent swig_types[101]
2568 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[102]
2569 #define SWIGTYPE_p_wxNcPaintEvent swig_types[103]
2570 #define SWIGTYPE_p_wxNotebook swig_types[104]
2571 #define SWIGTYPE_p_wxNotebookEvent swig_types[105]
2572 #define SWIGTYPE_p_wxNotifyEvent swig_types[106]
2573 #define SWIGTYPE_p_wxObject swig_types[107]
2574 #define SWIGTYPE_p_wxPCXHandler swig_types[108]
2575 #define SWIGTYPE_p_wxPNGHandler swig_types[109]
2576 #define SWIGTYPE_p_wxPNMHandler swig_types[110]
2577 #define SWIGTYPE_p_wxPaintEvent swig_types[111]
2578 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[112]
2579 #define SWIGTYPE_p_wxPaperSize swig_types[113]
2580 #define SWIGTYPE_p_wxPickerBase swig_types[114]
2581 #define SWIGTYPE_p_wxPoint swig_types[115]
2582 #define SWIGTYPE_p_wxPyApp swig_types[116]
2583 #define SWIGTYPE_p_wxPyCommandEvent swig_types[117]
2584 #define SWIGTYPE_p_wxPyControl swig_types[118]
2585 #define SWIGTYPE_p_wxPyEvent swig_types[119]
2586 #define SWIGTYPE_p_wxPyImageHandler swig_types[120]
2587 #define SWIGTYPE_p_wxPyListCtrl swig_types[121]
2588 #define SWIGTYPE_p_wxPySizer swig_types[122]
2589 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[123]
2590 #define SWIGTYPE_p_wxPyTreeItemData swig_types[124]
2591 #define SWIGTYPE_p_wxPyValidator swig_types[125]
2592 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[126]
2593 #define SWIGTYPE_p_wxRadioBox swig_types[127]
2594 #define SWIGTYPE_p_wxRadioButton swig_types[128]
2595 #define SWIGTYPE_p_wxRect swig_types[129]
2596 #define SWIGTYPE_p_wxScrollBar swig_types[130]
2597 #define SWIGTYPE_p_wxScrollEvent swig_types[131]
2598 #define SWIGTYPE_p_wxScrollWinEvent swig_types[132]
2599 #define SWIGTYPE_p_wxSetCursorEvent swig_types[133]
2600 #define SWIGTYPE_p_wxShowEvent swig_types[134]
2601 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[135]
2602 #define SWIGTYPE_p_wxSize swig_types[136]
2603 #define SWIGTYPE_p_wxSizeEvent swig_types[137]
2604 #define SWIGTYPE_p_wxSizer swig_types[138]
2605 #define SWIGTYPE_p_wxSizerItem swig_types[139]
2606 #define SWIGTYPE_p_wxSlider swig_types[140]
2607 #define SWIGTYPE_p_wxSpinButton swig_types[141]
2608 #define SWIGTYPE_p_wxSpinCtrl swig_types[142]
2609 #define SWIGTYPE_p_wxSpinEvent swig_types[143]
2610 #define SWIGTYPE_p_wxStaticBitmap swig_types[144]
2611 #define SWIGTYPE_p_wxStaticBox swig_types[145]
2612 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[146]
2613 #define SWIGTYPE_p_wxStaticLine swig_types[147]
2614 #define SWIGTYPE_p_wxStaticText swig_types[148]
2615 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[149]
2616 #define SWIGTYPE_p_wxString swig_types[150]
2617 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[151]
2618 #define SWIGTYPE_p_wxTIFFHandler swig_types[152]
2619 #define SWIGTYPE_p_wxTextAttr swig_types[153]
2620 #define SWIGTYPE_p_wxTextCtrl swig_types[154]
2621 #define SWIGTYPE_p_wxTextUrlEvent swig_types[155]
2622 #define SWIGTYPE_p_wxToggleButton swig_types[156]
2623 #define SWIGTYPE_p_wxToolBar swig_types[157]
2624 #define SWIGTYPE_p_wxToolBarBase swig_types[158]
2625 #define SWIGTYPE_p_wxToolBarToolBase swig_types[159]
2626 #define SWIGTYPE_p_wxToolbook swig_types[160]
2627 #define SWIGTYPE_p_wxToolbookEvent swig_types[161]
2628 #define SWIGTYPE_p_wxTreeEvent swig_types[162]
2629 #define SWIGTYPE_p_wxTreeItemId swig_types[163]
2630 #define SWIGTYPE_p_wxTreebook swig_types[164]
2631 #define SWIGTYPE_p_wxTreebookEvent swig_types[165]
2632 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[166]
2633 #define SWIGTYPE_p_wxValidator swig_types[167]
2634 #define SWIGTYPE_p_wxVisualAttributes swig_types[168]
2635 #define SWIGTYPE_p_wxWindow swig_types[169]
2636 #define SWIGTYPE_p_wxWindowBase swig_types[170]
2637 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[171]
2638 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[172]
2639 #define SWIGTYPE_p_wxXPMHandler swig_types[173]
2640 static swig_type_info *swig_types[175];
2641 static swig_module_info swig_module = {swig_types, 174, 0, 0, 0, 0};
2642 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2643 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2644
2645 /* -------- TYPES TABLE (END) -------- */
2646
2647 #if (PY_VERSION_HEX <= 0x02000000)
2648 # if !defined(SWIG_PYTHON_CLASSIC)
2649 # error "This python version requires to use swig with the '-classic' option"
2650 # endif
2651 #endif
2652 #if (PY_VERSION_HEX <= 0x02020000)
2653 # error "This python version requires to use swig with the '-nomodern' option"
2654 #endif
2655 #if (PY_VERSION_HEX <= 0x02020000)
2656 # error "This python version requires to use swig with the '-nomodernargs' option"
2657 #endif
2658 #ifndef METH_O
2659 # error "This python version requires to use swig with the '-nofastunpack' option"
2660 #endif
2661
2662 /*-----------------------------------------------
2663 @(target):= _controls_.so
2664 ------------------------------------------------*/
2665 #define SWIG_init init_controls_
2666
2667 #define SWIG_name "_controls_"
2668
2669 #define SWIGVERSION 0x010329
2670
2671
2672 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2673 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2674
2675
2676 #include <stdexcept>
2677
2678
2679 namespace swig {
2680 class PyObject_ptr {
2681 protected:
2682 PyObject *_obj;
2683
2684 public:
2685 PyObject_ptr() :_obj(0)
2686 {
2687 }
2688
2689 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2690 {
2691 Py_XINCREF(_obj);
2692 }
2693
2694 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2695 {
2696 if (initial_ref) Py_XINCREF(_obj);
2697 }
2698
2699 PyObject_ptr & operator=(const PyObject_ptr& item)
2700 {
2701 Py_XINCREF(item._obj);
2702 Py_XDECREF(_obj);
2703 _obj = item._obj;
2704 return *this;
2705 }
2706
2707 ~PyObject_ptr()
2708 {
2709 Py_XDECREF(_obj);
2710 }
2711
2712 operator PyObject *() const
2713 {
2714 return _obj;
2715 }
2716
2717 PyObject *operator->() const
2718 {
2719 return _obj;
2720 }
2721 };
2722 }
2723
2724
2725 namespace swig {
2726 struct PyObject_var : PyObject_ptr {
2727 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2728
2729 PyObject_var & operator = (PyObject* obj)
2730 {
2731 Py_XDECREF(_obj);
2732 _obj = obj;
2733 return *this;
2734 }
2735 };
2736 }
2737
2738
2739 #include "wx/wxPython/wxPython.h"
2740 #include "wx/wxPython/pyclasses.h"
2741
2742 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2743 static const wxString wxPyEmptyString(wxEmptyString);
2744 static const wxString wxPyControlNameStr(wxControlNameStr);
2745
2746 const wxArrayString wxPyEmptyStringArray;
2747
2748 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2749
2750 #define SWIG_From_long PyInt_FromLong
2751
2752
2753 SWIGINTERNINLINE PyObject *
2754 SWIG_From_int (int value)
2755 {
2756 return SWIG_From_long (value);
2757 }
2758
2759
2760 #include <limits.h>
2761 #ifndef LLONG_MIN
2762 # define LLONG_MIN LONG_LONG_MIN
2763 #endif
2764 #ifndef LLONG_MAX
2765 # define LLONG_MAX LONG_LONG_MAX
2766 #endif
2767 #ifndef ULLONG_MAX
2768 # define ULLONG_MAX ULONG_LONG_MAX
2769 #endif
2770
2771
2772 SWIGINTERN int
2773 SWIG_AsVal_long (PyObject* obj, long* val)
2774 {
2775 if (PyNumber_Check(obj)) {
2776 if (val) *val = PyInt_AsLong(obj);
2777 return SWIG_OK;
2778 }
2779 return SWIG_TypeError;
2780 }
2781
2782
2783 SWIGINTERN int
2784 SWIG_AsVal_int (PyObject * obj, int *val)
2785 {
2786 long v;
2787 int res = SWIG_AsVal_long (obj, &v);
2788 if (SWIG_IsOK(res)) {
2789 if ((v < INT_MIN || v > INT_MAX)) {
2790 return SWIG_OverflowError;
2791 } else {
2792 if (val) *val = static_cast< int >(v);
2793 }
2794 }
2795 return res;
2796 }
2797
2798 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
2799
2800 SWIGINTERN int
2801 SWIG_AsVal_bool (PyObject *obj, bool *val)
2802 {
2803 if (obj == Py_True) {
2804 if (val) *val = true;
2805 return SWIG_OK;
2806 } else if (obj == Py_False) {
2807 if (val) *val = false;
2808 return SWIG_OK;
2809 } else {
2810 long v = 0;
2811 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2812 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2813 return res;
2814 }
2815 }
2816
2817 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2818 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2819 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2820 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2821 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2822 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2823
2824 #include <wx/checklst.h>
2825
2826 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
2827 SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
2828 if (clientData)
2829 {
2830 wxPyClientData* data = new wxPyClientData(clientData);
2831 self->Insert(item, pos, data);
2832 }
2833 else
2834 self->Insert(item, pos);
2835 }
2836
2837 SWIGINTERN int
2838 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2839 {
2840 long v = 0;
2841 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2842 return SWIG_TypeError;
2843 }
2844 else if (val)
2845 *val = (unsigned long)v;
2846 return SWIG_OK;
2847 }
2848
2849
2850 SWIGINTERN int
2851 SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2852 {
2853 unsigned long v;
2854 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2855 if (SWIG_IsOK(res)) {
2856 if ((v > UINT_MAX)) {
2857 return SWIG_OverflowError;
2858 } else {
2859 if (val) *val = static_cast< unsigned int >(v);
2860 }
2861 }
2862 return res;
2863 }
2864
2865 SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
2866 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2867 wxArrayInt lst;
2868 self->GetSelections(lst);
2869 PyObject *tup = PyTuple_New(lst.GetCount());
2870 for (size_t i=0; i<lst.GetCount(); i++)
2871 {
2872 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2873 }
2874 wxPyEndBlockThreads(blocked);
2875 return tup;
2876 }
2877 SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
2878 #ifdef __WXMSW__
2879 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2880 self->GetItem(item)->SetTextColour(c);
2881 #endif
2882 }
2883 SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
2884 #ifdef __WXMSW__
2885 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2886 self->GetItem(item)->SetBackgroundColour(c);
2887 #endif
2888 }
2889 SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
2890 #ifdef __WXMSW__
2891 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2892 self->GetItem(item)->SetFont(f);
2893 #endif
2894 }
2895 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
2896 SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
2897 self->AppendText(text);
2898 }
2899 SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
2900 return self->GetValue().Mid(from, to - from);
2901 }
2902 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2903 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2904 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2905 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2906 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2907
2908 SWIGINTERNINLINE PyObject*
2909 SWIG_From_unsigned_SS_long (unsigned long value)
2910 {
2911 return (value > LONG_MAX) ?
2912 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2913 }
2914
2915
2916 SWIGINTERNINLINE PyObject *
2917 SWIG_From_size_t (size_t value)
2918 {
2919 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2920 }
2921
2922
2923 SWIGINTERNINLINE PyObject *
2924 SWIG_From_unsigned_SS_int (unsigned int value)
2925 {
2926 return SWIG_From_unsigned_SS_long (value);
2927 }
2928
2929
2930 #include <wx/slider.h>
2931
2932
2933 static const wxString wxPySliderNameStr(wxSliderNameStr);
2934 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2935
2936 #if !wxUSE_TOGGLEBTN
2937 // implement dummy items for platforms that don't have this class
2938
2939 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2940
2941 class wxToggleButton : public wxControl
2942 {
2943 public:
2944 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2945 const wxPoint&, const wxSize&, long,
2946 const wxValidator&, const wxString&)
2947 { wxPyRaiseNotImplemented(); }
2948
2949 wxToggleButton()
2950 { wxPyRaiseNotImplemented(); }
2951 };
2952 #endif
2953
2954 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
2955
2956 SWIGINTERNINLINE int
2957 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
2958 {
2959 unsigned long v;
2960 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2961 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2962 return res;
2963 }
2964
2965 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
2966 SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
2967 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2968 if (udata) {
2969 Py_INCREF(udata->m_obj);
2970 return udata->m_obj;
2971 } else {
2972 Py_INCREF(Py_None);
2973 return Py_None;
2974 }
2975 }
2976 SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
2977 self->SetClientData(new wxPyUserData(clientData));
2978 }
2979 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){
2980 wxPyUserData* udata = NULL;
2981 if (clientData && clientData != Py_None)
2982 udata = new wxPyUserData(clientData);
2983 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2984 shortHelp, longHelp, udata);
2985 }
2986 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){
2987 wxPyUserData* udata = NULL;
2988 if (clientData && clientData != Py_None)
2989 udata = new wxPyUserData(clientData);
2990 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2991 shortHelp, longHelp, udata);
2992 }
2993 SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
2994 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2995 if (udata) {
2996 Py_INCREF(udata->m_obj);
2997 return udata->m_obj;
2998 } else {
2999 Py_INCREF(Py_None);
3000 return Py_None;
3001 }
3002 }
3003 SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
3004 self->SetToolClientData(id, new wxPyUserData(clientData));
3005 }
3006
3007 #include <wx/listctrl.h>
3008
3009 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
3010 SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
3011 // Python aware sorting function for wxPyListCtrl
3012 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3013 int retval = 0;
3014 PyObject* func = (PyObject*)funcPtr;
3015 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3016
3017 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3018 PyObject* result = PyEval_CallObject(func, args);
3019 Py_DECREF(args);
3020 if (result) {
3021 retval = PyInt_AsLong(result);
3022 Py_DECREF(result);
3023 }
3024
3025 wxPyEndBlockThreads(blocked);
3026 return retval;
3027 }
3028
3029 // C++ Version of a Python aware class
3030 class wxPyListCtrl : public wxListCtrl {
3031 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
3032 public:
3033 wxPyListCtrl() : wxListCtrl() {}
3034 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3035 const wxPoint& pos,
3036 const wxSize& size,
3037 long style,
3038 const wxValidator& validator,
3039 const wxString& name) :
3040 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3041
3042 bool Create(wxWindow* parent, wxWindowID id,
3043 const wxPoint& pos,
3044 const wxSize& size,
3045 long style,
3046 const wxValidator& validator,
3047 const wxString& name) {
3048 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3049 }
3050
3051 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
3052 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3053
3054 // use the virtual version to avoid a confusing assert in the base class
3055 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
3056 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
3057
3058 PYPRIVATE;
3059 };
3060
3061 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3062
3063 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
3064 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
3065 IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
3066 IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3067
3068
3069 SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
3070 wxListItem item;
3071 item.SetMask( wxLIST_MASK_STATE |
3072 wxLIST_MASK_TEXT |
3073 wxLIST_MASK_IMAGE |
3074 wxLIST_MASK_DATA |
3075 wxLIST_SET_ITEM |
3076 wxLIST_MASK_WIDTH |
3077 wxLIST_MASK_FORMAT
3078 );
3079 if (self->GetColumn(col, item))
3080 return new wxListItem(item);
3081 else
3082 return NULL;
3083 }
3084 SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
3085 wxListItem* info = new wxListItem;
3086 info->m_itemId = itemId;
3087 info->m_col = col;
3088 info->m_mask = 0xFFFF;
3089 self->GetItem(*info);
3090 return info;
3091 }
3092 SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
3093 wxPoint pos;
3094 self->GetItemPosition(item, pos);
3095 return pos;
3096 }
3097 SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
3098 wxRect rect;
3099 self->GetItemRect(item, rect, code);
3100 return rect;
3101 }
3102 SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
3103 if (!PyCallable_Check(func))
3104 return false;
3105 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3106 }
3107 SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
3108
3109 return self;
3110
3111
3112
3113 }
3114
3115 #include <wx/treectrl.h>
3116 #include "wx/wxPython/pytree.h"
3117
3118 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
3119 SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3120 SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3121 SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
3122
3123 static wxTreeItemId wxNullTreeItemId;
3124
3125 // C++ version of Python aware wxTreeCtrl
3126 class wxPyTreeCtrl : public wxTreeCtrl {
3127 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
3128 public:
3129 wxPyTreeCtrl() : wxTreeCtrl() {}
3130 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3131 const wxPoint& pos,
3132 const wxSize& size,
3133 long style,
3134 const wxValidator& validator,
3135 const wxString& name) :
3136 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3137
3138 bool Create(wxWindow *parent, wxWindowID id,
3139 const wxPoint& pos,
3140 const wxSize& size,
3141 long style,
3142 const wxValidator& validator,
3143 const wxString& name) {
3144 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3145 }
3146
3147
3148 int OnCompareItems(const wxTreeItemId& item1,
3149 const wxTreeItemId& item2) {
3150 int rval = 0;
3151 bool found;
3152 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3153 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
3154 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3155 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
3156 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3157 Py_DECREF(o1);
3158 Py_DECREF(o2);
3159 }
3160 wxPyEndBlockThreads(blocked);
3161 if (! found)
3162 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3163 return rval;
3164 }
3165 PYPRIVATE;
3166 };
3167
3168 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3169
3170
3171 SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3172 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3173 if (data == NULL) {
3174 data = new wxPyTreeItemData();
3175 data->SetId(item); // set the id
3176 self->SetItemData(item, data);
3177 }
3178 return data;
3179 }
3180 SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
3181 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3182 if (data == NULL) {
3183 data = new wxPyTreeItemData();
3184 data->SetId(item); // set the id
3185 self->SetItemData(item, data);
3186 }
3187 return data->GetData();
3188 }
3189 SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
3190 data->SetId(item); // set the id
3191 self->SetItemData(item, data);
3192 }
3193 SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
3194 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3195 if (data == NULL) {
3196 data = new wxPyTreeItemData(obj);
3197 data->SetId(item); // set the id
3198 self->SetItemData(item, data);
3199 } else
3200 data->SetData(obj);
3201 }
3202 SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
3203 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3204 PyObject* rval = PyList_New(0);
3205 wxArrayTreeItemIds array;
3206 size_t num, x;
3207 num = self->GetSelections(array);
3208 for (x=0; x < num; x++) {
3209 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
3210 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
3211 PyList_Append(rval, item);
3212 Py_DECREF(item);
3213 }
3214 wxPyEndBlockThreads(blocked);
3215 return rval;
3216 }
3217 SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
3218 void* cookie = 0;
3219 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
3220 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3221 PyObject* tup = PyTuple_New(2);
3222 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3223 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3224 wxPyEndBlockThreads(blocked);
3225 return tup;
3226 }
3227 SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
3228 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
3229 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3230 PyObject* tup = PyTuple_New(2);
3231 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
3232 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3233 wxPyEndBlockThreads(blocked);
3234 return tup;
3235 }
3236 SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
3237 wxRect rect;
3238 if (self->GetBoundingRect(item, rect, textOnly)) {
3239 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3240 wxRect* r = new wxRect(rect);
3241 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
3242 wxPyEndBlockThreads(blocked);
3243 return val;
3244 }
3245 else
3246 RETURN_NONE();
3247 }
3248 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
3249
3250 SWIGINTERNINLINE PyObject*
3251 SWIG_From_bool (bool value)
3252 {
3253 return PyBool_FromLong(value ? 1 : 0);
3254 }
3255
3256 // C++ version of Python aware wxControl
3257 class wxPyControl : public wxControl
3258 {
3259 DECLARE_DYNAMIC_CLASS(wxPyControl)
3260 public:
3261 wxPyControl() : wxControl() {}
3262 wxPyControl(wxWindow* parent, const wxWindowID id,
3263 const wxPoint& pos = wxDefaultPosition,
3264 const wxSize& size = wxDefaultSize,
3265 long style = 0,
3266 const wxValidator& validator=wxDefaultValidator,
3267 const wxString& name = wxPyControlNameStr)
3268 : wxControl(parent, id, pos, size, style, validator, name) {}
3269
3270 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
3271
3272 bool DoEraseBackground(wxDC* dc) {
3273 #ifdef __WXMSW__
3274 return wxWindow::DoEraseBackground(dc->GetHDC());
3275 #else
3276 dc->SetBackground(wxBrush(GetBackgroundColour()));
3277 dc->Clear();
3278 return true;
3279 #endif
3280 }
3281
3282 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3283 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3284 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3285 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3286
3287 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3288 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3289 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3290
3291 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3292 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3293
3294 DEC_PYCALLBACK__(InitDialog);
3295 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3296 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3297 DEC_PYCALLBACK_BOOL_(Validate);
3298
3299 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3300 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3301 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3302
3303 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3304 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3305
3306 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
3307 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
3308
3309 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3310
3311 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3312
3313 PYPRIVATE;
3314 };
3315
3316 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3317
3318 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3319 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3320 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3321 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3322
3323 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3324 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3325 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3326
3327 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3328 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3329
3330 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3331 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3332 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3333 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3334
3335 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3336 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3337 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3338
3339 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3340 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3341
3342 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
3343 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
3344
3345 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
3346
3347 IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3348
3349
3350
3351 SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
3352
3353 #include <wx/generic/dragimgg.h>
3354
3355 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
3356 SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
3357 wxDateTime rv;
3358 self->GetRange(&rv, NULL);
3359 return rv;
3360 }
3361 SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
3362 wxDateTime rv;
3363 self->GetRange(NULL, &rv);
3364 return rv;
3365 }
3366 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
3367 static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr);
3368 static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr);
3369 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
3370 static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr);
3371 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
3372 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
3373 static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr);
3374 #ifdef __cplusplus
3375 extern "C" {
3376 #endif
3377 SWIGINTERN int ButtonNameStr_set(PyObject *) {
3378 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3379 return 1;
3380 }
3381
3382
3383 SWIGINTERN PyObject *ButtonNameStr_get(void) {
3384 PyObject *pyobj = 0;
3385
3386 {
3387 #if wxUSE_UNICODE
3388 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3389 #else
3390 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
3391 #endif
3392 }
3393 return pyobj;
3394 }
3395
3396
3397 SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3398 PyObject *resultobj = 0;
3399 wxWindow *arg1 = (wxWindow *) 0 ;
3400 int arg2 = (int) -1 ;
3401 wxString const &arg3_defvalue = wxPyEmptyString ;
3402 wxString *arg3 = (wxString *) &arg3_defvalue ;
3403 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3404 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3405 wxSize const &arg5_defvalue = wxDefaultSize ;
3406 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3407 long arg6 = (long) 0 ;
3408 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3409 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3410 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3411 wxString *arg8 = (wxString *) &arg8_defvalue ;
3412 wxButton *result = 0 ;
3413 void *argp1 = 0 ;
3414 int res1 = 0 ;
3415 int val2 ;
3416 int ecode2 = 0 ;
3417 bool temp3 = false ;
3418 wxPoint temp4 ;
3419 wxSize temp5 ;
3420 long val6 ;
3421 int ecode6 = 0 ;
3422 void *argp7 = 0 ;
3423 int res7 = 0 ;
3424 bool temp8 = false ;
3425 PyObject * obj0 = 0 ;
3426 PyObject * obj1 = 0 ;
3427 PyObject * obj2 = 0 ;
3428 PyObject * obj3 = 0 ;
3429 PyObject * obj4 = 0 ;
3430 PyObject * obj5 = 0 ;
3431 PyObject * obj6 = 0 ;
3432 PyObject * obj7 = 0 ;
3433 char * kwnames[] = {
3434 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3435 };
3436
3437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3439 if (!SWIG_IsOK(res1)) {
3440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3441 }
3442 arg1 = reinterpret_cast< wxWindow * >(argp1);
3443 if (obj1) {
3444 ecode2 = SWIG_AsVal_int(obj1, &val2);
3445 if (!SWIG_IsOK(ecode2)) {
3446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3447 }
3448 arg2 = static_cast< int >(val2);
3449 }
3450 if (obj2) {
3451 {
3452 arg3 = wxString_in_helper(obj2);
3453 if (arg3 == NULL) SWIG_fail;
3454 temp3 = true;
3455 }
3456 }
3457 if (obj3) {
3458 {
3459 arg4 = &temp4;
3460 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3461 }
3462 }
3463 if (obj4) {
3464 {
3465 arg5 = &temp5;
3466 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3467 }
3468 }
3469 if (obj5) {
3470 ecode6 = SWIG_AsVal_long(obj5, &val6);
3471 if (!SWIG_IsOK(ecode6)) {
3472 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3473 }
3474 arg6 = static_cast< long >(val6);
3475 }
3476 if (obj6) {
3477 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3478 if (!SWIG_IsOK(res7)) {
3479 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3480 }
3481 if (!argp7) {
3482 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
3483 }
3484 arg7 = reinterpret_cast< wxValidator * >(argp7);
3485 }
3486 if (obj7) {
3487 {
3488 arg8 = wxString_in_helper(obj7);
3489 if (arg8 == NULL) SWIG_fail;
3490 temp8 = true;
3491 }
3492 }
3493 {
3494 if (!wxPyCheckForApp()) SWIG_fail;
3495 PyThreadState* __tstate = wxPyBeginAllowThreads();
3496 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3497 wxPyEndAllowThreads(__tstate);
3498 if (PyErr_Occurred()) SWIG_fail;
3499 }
3500 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3501 {
3502 if (temp3)
3503 delete arg3;
3504 }
3505 {
3506 if (temp8)
3507 delete arg8;
3508 }
3509 return resultobj;
3510 fail:
3511 {
3512 if (temp3)
3513 delete arg3;
3514 }
3515 {
3516 if (temp8)
3517 delete arg8;
3518 }
3519 return NULL;
3520 }
3521
3522
3523 SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3524 PyObject *resultobj = 0;
3525 wxButton *result = 0 ;
3526
3527 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3528 {
3529 if (!wxPyCheckForApp()) SWIG_fail;
3530 PyThreadState* __tstate = wxPyBeginAllowThreads();
3531 result = (wxButton *)new wxButton();
3532 wxPyEndAllowThreads(__tstate);
3533 if (PyErr_Occurred()) SWIG_fail;
3534 }
3535 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3536 return resultobj;
3537 fail:
3538 return NULL;
3539 }
3540
3541
3542 SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3543 PyObject *resultobj = 0;
3544 wxButton *arg1 = (wxButton *) 0 ;
3545 wxWindow *arg2 = (wxWindow *) 0 ;
3546 int arg3 = (int) -1 ;
3547 wxString const &arg4_defvalue = wxPyEmptyString ;
3548 wxString *arg4 = (wxString *) &arg4_defvalue ;
3549 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3550 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3551 wxSize const &arg6_defvalue = wxDefaultSize ;
3552 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3553 long arg7 = (long) 0 ;
3554 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3555 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3556 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3557 wxString *arg9 = (wxString *) &arg9_defvalue ;
3558 bool result;
3559 void *argp1 = 0 ;
3560 int res1 = 0 ;
3561 void *argp2 = 0 ;
3562 int res2 = 0 ;
3563 int val3 ;
3564 int ecode3 = 0 ;
3565 bool temp4 = false ;
3566 wxPoint temp5 ;
3567 wxSize temp6 ;
3568 long val7 ;
3569 int ecode7 = 0 ;
3570 void *argp8 = 0 ;
3571 int res8 = 0 ;
3572 bool temp9 = false ;
3573 PyObject * obj0 = 0 ;
3574 PyObject * obj1 = 0 ;
3575 PyObject * obj2 = 0 ;
3576 PyObject * obj3 = 0 ;
3577 PyObject * obj4 = 0 ;
3578 PyObject * obj5 = 0 ;
3579 PyObject * obj6 = 0 ;
3580 PyObject * obj7 = 0 ;
3581 PyObject * obj8 = 0 ;
3582 char * kwnames[] = {
3583 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3584 };
3585
3586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3588 if (!SWIG_IsOK(res1)) {
3589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3590 }
3591 arg1 = reinterpret_cast< wxButton * >(argp1);
3592 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3593 if (!SWIG_IsOK(res2)) {
3594 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3595 }
3596 arg2 = reinterpret_cast< wxWindow * >(argp2);
3597 if (obj2) {
3598 ecode3 = SWIG_AsVal_int(obj2, &val3);
3599 if (!SWIG_IsOK(ecode3)) {
3600 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3601 }
3602 arg3 = static_cast< int >(val3);
3603 }
3604 if (obj3) {
3605 {
3606 arg4 = wxString_in_helper(obj3);
3607 if (arg4 == NULL) SWIG_fail;
3608 temp4 = true;
3609 }
3610 }
3611 if (obj4) {
3612 {
3613 arg5 = &temp5;
3614 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3615 }
3616 }
3617 if (obj5) {
3618 {
3619 arg6 = &temp6;
3620 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3621 }
3622 }
3623 if (obj6) {
3624 ecode7 = SWIG_AsVal_long(obj6, &val7);
3625 if (!SWIG_IsOK(ecode7)) {
3626 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3627 }
3628 arg7 = static_cast< long >(val7);
3629 }
3630 if (obj7) {
3631 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3632 if (!SWIG_IsOK(res8)) {
3633 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3634 }
3635 if (!argp8) {
3636 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
3637 }
3638 arg8 = reinterpret_cast< wxValidator * >(argp8);
3639 }
3640 if (obj8) {
3641 {
3642 arg9 = wxString_in_helper(obj8);
3643 if (arg9 == NULL) SWIG_fail;
3644 temp9 = true;
3645 }
3646 }
3647 {
3648 PyThreadState* __tstate = wxPyBeginAllowThreads();
3649 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3650 wxPyEndAllowThreads(__tstate);
3651 if (PyErr_Occurred()) SWIG_fail;
3652 }
3653 {
3654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3655 }
3656 {
3657 if (temp4)
3658 delete arg4;
3659 }
3660 {
3661 if (temp9)
3662 delete arg9;
3663 }
3664 return resultobj;
3665 fail:
3666 {
3667 if (temp4)
3668 delete arg4;
3669 }
3670 {
3671 if (temp9)
3672 delete arg9;
3673 }
3674 return NULL;
3675 }
3676
3677
3678 SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3679 PyObject *resultobj = 0;
3680 wxButton *arg1 = (wxButton *) 0 ;
3681 void *argp1 = 0 ;
3682 int res1 = 0 ;
3683 PyObject *swig_obj[1] ;
3684
3685 if (!args) SWIG_fail;
3686 swig_obj[0] = args;
3687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3688 if (!SWIG_IsOK(res1)) {
3689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3690 }
3691 arg1 = reinterpret_cast< wxButton * >(argp1);
3692 {
3693 PyThreadState* __tstate = wxPyBeginAllowThreads();
3694 (arg1)->SetDefault();
3695 wxPyEndAllowThreads(__tstate);
3696 if (PyErr_Occurred()) SWIG_fail;
3697 }
3698 resultobj = SWIG_Py_Void();
3699 return resultobj;
3700 fail:
3701 return NULL;
3702 }
3703
3704
3705 SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3706 PyObject *resultobj = 0;
3707 wxSize result;
3708
3709 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3710 {
3711 PyThreadState* __tstate = wxPyBeginAllowThreads();
3712 result = wxButton::GetDefaultSize();
3713 wxPyEndAllowThreads(__tstate);
3714 if (PyErr_Occurred()) SWIG_fail;
3715 }
3716 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3717 return resultobj;
3718 fail:
3719 return NULL;
3720 }
3721
3722
3723 SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3724 PyObject *resultobj = 0;
3725 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3726 SwigValueWrapper<wxVisualAttributes > result;
3727 int val1 ;
3728 int ecode1 = 0 ;
3729 PyObject * obj0 = 0 ;
3730 char * kwnames[] = {
3731 (char *) "variant", NULL
3732 };
3733
3734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3735 if (obj0) {
3736 ecode1 = SWIG_AsVal_int(obj0, &val1);
3737 if (!SWIG_IsOK(ecode1)) {
3738 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3739 }
3740 arg1 = static_cast< wxWindowVariant >(val1);
3741 }
3742 {
3743 if (!wxPyCheckForApp()) SWIG_fail;
3744 PyThreadState* __tstate = wxPyBeginAllowThreads();
3745 result = wxButton::GetClassDefaultAttributes(arg1);
3746 wxPyEndAllowThreads(__tstate);
3747 if (PyErr_Occurred()) SWIG_fail;
3748 }
3749 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3750 return resultobj;
3751 fail:
3752 return NULL;
3753 }
3754
3755
3756 SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3757 PyObject *obj;
3758 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3759 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3760 return SWIG_Py_Void();
3761 }
3762
3763 SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3764 return SWIG_Python_InitShadowInstance(args);
3765 }
3766
3767 SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3768 PyObject *resultobj = 0;
3769 wxWindow *arg1 = (wxWindow *) 0 ;
3770 int arg2 = (int) -1 ;
3771 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3772 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3773 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3774 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3775 wxSize const &arg5_defvalue = wxDefaultSize ;
3776 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3777 long arg6 = (long) wxBU_AUTODRAW ;
3778 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3779 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3780 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3781 wxString *arg8 = (wxString *) &arg8_defvalue ;
3782 wxBitmapButton *result = 0 ;
3783 void *argp1 = 0 ;
3784 int res1 = 0 ;
3785 int val2 ;
3786 int ecode2 = 0 ;
3787 void *argp3 = 0 ;
3788 int res3 = 0 ;
3789 wxPoint temp4 ;
3790 wxSize temp5 ;
3791 long val6 ;
3792 int ecode6 = 0 ;
3793 void *argp7 = 0 ;
3794 int res7 = 0 ;
3795 bool temp8 = false ;
3796 PyObject * obj0 = 0 ;
3797 PyObject * obj1 = 0 ;
3798 PyObject * obj2 = 0 ;
3799 PyObject * obj3 = 0 ;
3800 PyObject * obj4 = 0 ;
3801 PyObject * obj5 = 0 ;
3802 PyObject * obj6 = 0 ;
3803 PyObject * obj7 = 0 ;
3804 char * kwnames[] = {
3805 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3806 };
3807
3808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3810 if (!SWIG_IsOK(res1)) {
3811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3812 }
3813 arg1 = reinterpret_cast< wxWindow * >(argp1);
3814 if (obj1) {
3815 ecode2 = SWIG_AsVal_int(obj1, &val2);
3816 if (!SWIG_IsOK(ecode2)) {
3817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3818 }
3819 arg2 = static_cast< int >(val2);
3820 }
3821 if (obj2) {
3822 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3823 if (!SWIG_IsOK(res3)) {
3824 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3825 }
3826 if (!argp3) {
3827 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3828 }
3829 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3830 }
3831 if (obj3) {
3832 {
3833 arg4 = &temp4;
3834 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3835 }
3836 }
3837 if (obj4) {
3838 {
3839 arg5 = &temp5;
3840 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3841 }
3842 }
3843 if (obj5) {
3844 ecode6 = SWIG_AsVal_long(obj5, &val6);
3845 if (!SWIG_IsOK(ecode6)) {
3846 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3847 }
3848 arg6 = static_cast< long >(val6);
3849 }
3850 if (obj6) {
3851 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3852 if (!SWIG_IsOK(res7)) {
3853 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3854 }
3855 if (!argp7) {
3856 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
3857 }
3858 arg7 = reinterpret_cast< wxValidator * >(argp7);
3859 }
3860 if (obj7) {
3861 {
3862 arg8 = wxString_in_helper(obj7);
3863 if (arg8 == NULL) SWIG_fail;
3864 temp8 = true;
3865 }
3866 }
3867 {
3868 if (!wxPyCheckForApp()) SWIG_fail;
3869 PyThreadState* __tstate = wxPyBeginAllowThreads();
3870 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3871 wxPyEndAllowThreads(__tstate);
3872 if (PyErr_Occurred()) SWIG_fail;
3873 }
3874 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3875 {
3876 if (temp8)
3877 delete arg8;
3878 }
3879 return resultobj;
3880 fail:
3881 {
3882 if (temp8)
3883 delete arg8;
3884 }
3885 return NULL;
3886 }
3887
3888
3889 SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3890 PyObject *resultobj = 0;
3891 wxBitmapButton *result = 0 ;
3892
3893 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3894 {
3895 if (!wxPyCheckForApp()) SWIG_fail;
3896 PyThreadState* __tstate = wxPyBeginAllowThreads();
3897 result = (wxBitmapButton *)new wxBitmapButton();
3898 wxPyEndAllowThreads(__tstate);
3899 if (PyErr_Occurred()) SWIG_fail;
3900 }
3901 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3902 return resultobj;
3903 fail:
3904 return NULL;
3905 }
3906
3907
3908 SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3909 PyObject *resultobj = 0;
3910 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3911 wxWindow *arg2 = (wxWindow *) 0 ;
3912 int arg3 = (int) -1 ;
3913 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3914 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3915 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3916 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3917 wxSize const &arg6_defvalue = wxDefaultSize ;
3918 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3919 long arg7 = (long) wxBU_AUTODRAW ;
3920 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3921 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3922 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3923 wxString *arg9 = (wxString *) &arg9_defvalue ;
3924 bool result;
3925 void *argp1 = 0 ;
3926 int res1 = 0 ;
3927 void *argp2 = 0 ;
3928 int res2 = 0 ;
3929 int val3 ;
3930 int ecode3 = 0 ;
3931 void *argp4 = 0 ;
3932 int res4 = 0 ;
3933 wxPoint temp5 ;
3934 wxSize temp6 ;
3935 long val7 ;
3936 int ecode7 = 0 ;
3937 void *argp8 = 0 ;
3938 int res8 = 0 ;
3939 bool temp9 = false ;
3940 PyObject * obj0 = 0 ;
3941 PyObject * obj1 = 0 ;
3942 PyObject * obj2 = 0 ;
3943 PyObject * obj3 = 0 ;
3944 PyObject * obj4 = 0 ;
3945 PyObject * obj5 = 0 ;
3946 PyObject * obj6 = 0 ;
3947 PyObject * obj7 = 0 ;
3948 PyObject * obj8 = 0 ;
3949 char * kwnames[] = {
3950 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3951 };
3952
3953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3955 if (!SWIG_IsOK(res1)) {
3956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3957 }
3958 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3959 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3960 if (!SWIG_IsOK(res2)) {
3961 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3962 }
3963 arg2 = reinterpret_cast< wxWindow * >(argp2);
3964 if (obj2) {
3965 ecode3 = SWIG_AsVal_int(obj2, &val3);
3966 if (!SWIG_IsOK(ecode3)) {
3967 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3968 }
3969 arg3 = static_cast< int >(val3);
3970 }
3971 if (obj3) {
3972 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3973 if (!SWIG_IsOK(res4)) {
3974 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3975 }
3976 if (!argp4) {
3977 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
3978 }
3979 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3980 }
3981 if (obj4) {
3982 {
3983 arg5 = &temp5;
3984 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3985 }
3986 }
3987 if (obj5) {
3988 {
3989 arg6 = &temp6;
3990 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3991 }
3992 }
3993 if (obj6) {
3994 ecode7 = SWIG_AsVal_long(obj6, &val7);
3995 if (!SWIG_IsOK(ecode7)) {
3996 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
3997 }
3998 arg7 = static_cast< long >(val7);
3999 }
4000 if (obj7) {
4001 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4002 if (!SWIG_IsOK(res8)) {
4003 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4004 }
4005 if (!argp8) {
4006 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4007 }
4008 arg8 = reinterpret_cast< wxValidator * >(argp8);
4009 }
4010 if (obj8) {
4011 {
4012 arg9 = wxString_in_helper(obj8);
4013 if (arg9 == NULL) SWIG_fail;
4014 temp9 = true;
4015 }
4016 }
4017 {
4018 PyThreadState* __tstate = wxPyBeginAllowThreads();
4019 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4020 wxPyEndAllowThreads(__tstate);
4021 if (PyErr_Occurred()) SWIG_fail;
4022 }
4023 {
4024 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4025 }
4026 {
4027 if (temp9)
4028 delete arg9;
4029 }
4030 return resultobj;
4031 fail:
4032 {
4033 if (temp9)
4034 delete arg9;
4035 }
4036 return NULL;
4037 }
4038
4039
4040 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4041 PyObject *resultobj = 0;
4042 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4043 wxBitmap result;
4044 void *argp1 = 0 ;
4045 int res1 = 0 ;
4046 PyObject *swig_obj[1] ;
4047
4048 if (!args) SWIG_fail;
4049 swig_obj[0] = args;
4050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4051 if (!SWIG_IsOK(res1)) {
4052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4053 }
4054 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4055 {
4056 PyThreadState* __tstate = wxPyBeginAllowThreads();
4057 result = (arg1)->GetBitmapLabel();
4058 wxPyEndAllowThreads(__tstate);
4059 if (PyErr_Occurred()) SWIG_fail;
4060 }
4061 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4062 return resultobj;
4063 fail:
4064 return NULL;
4065 }
4066
4067
4068 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4069 PyObject *resultobj = 0;
4070 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4071 wxBitmap result;
4072 void *argp1 = 0 ;
4073 int res1 = 0 ;
4074 PyObject *swig_obj[1] ;
4075
4076 if (!args) SWIG_fail;
4077 swig_obj[0] = args;
4078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4079 if (!SWIG_IsOK(res1)) {
4080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4081 }
4082 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4083 {
4084 PyThreadState* __tstate = wxPyBeginAllowThreads();
4085 result = (arg1)->GetBitmapDisabled();
4086 wxPyEndAllowThreads(__tstate);
4087 if (PyErr_Occurred()) SWIG_fail;
4088 }
4089 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4090 return resultobj;
4091 fail:
4092 return NULL;
4093 }
4094
4095
4096 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4097 PyObject *resultobj = 0;
4098 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4099 wxBitmap result;
4100 void *argp1 = 0 ;
4101 int res1 = 0 ;
4102 PyObject *swig_obj[1] ;
4103
4104 if (!args) SWIG_fail;
4105 swig_obj[0] = args;
4106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4107 if (!SWIG_IsOK(res1)) {
4108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4109 }
4110 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4111 {
4112 PyThreadState* __tstate = wxPyBeginAllowThreads();
4113 result = (arg1)->GetBitmapFocus();
4114 wxPyEndAllowThreads(__tstate);
4115 if (PyErr_Occurred()) SWIG_fail;
4116 }
4117 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4118 return resultobj;
4119 fail:
4120 return NULL;
4121 }
4122
4123
4124 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4125 PyObject *resultobj = 0;
4126 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4127 wxBitmap result;
4128 void *argp1 = 0 ;
4129 int res1 = 0 ;
4130 PyObject *swig_obj[1] ;
4131
4132 if (!args) SWIG_fail;
4133 swig_obj[0] = args;
4134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4135 if (!SWIG_IsOK(res1)) {
4136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4137 }
4138 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4139 {
4140 PyThreadState* __tstate = wxPyBeginAllowThreads();
4141 result = (arg1)->GetBitmapSelected();
4142 wxPyEndAllowThreads(__tstate);
4143 if (PyErr_Occurred()) SWIG_fail;
4144 }
4145 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4146 return resultobj;
4147 fail:
4148 return NULL;
4149 }
4150
4151
4152 SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4153 PyObject *resultobj = 0;
4154 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4155 wxBitmap result;
4156 void *argp1 = 0 ;
4157 int res1 = 0 ;
4158 PyObject *swig_obj[1] ;
4159
4160 if (!args) SWIG_fail;
4161 swig_obj[0] = args;
4162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4163 if (!SWIG_IsOK(res1)) {
4164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4165 }
4166 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4167 {
4168 PyThreadState* __tstate = wxPyBeginAllowThreads();
4169 result = (arg1)->GetBitmapHover();
4170 wxPyEndAllowThreads(__tstate);
4171 if (PyErr_Occurred()) SWIG_fail;
4172 }
4173 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4174 return resultobj;
4175 fail:
4176 return NULL;
4177 }
4178
4179
4180 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4181 PyObject *resultobj = 0;
4182 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4183 wxBitmap *arg2 = 0 ;
4184 void *argp1 = 0 ;
4185 int res1 = 0 ;
4186 void *argp2 = 0 ;
4187 int res2 = 0 ;
4188 PyObject * obj0 = 0 ;
4189 PyObject * obj1 = 0 ;
4190 char * kwnames[] = {
4191 (char *) "self",(char *) "bitmap", NULL
4192 };
4193
4194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4196 if (!SWIG_IsOK(res1)) {
4197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4198 }
4199 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4200 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4201 if (!SWIG_IsOK(res2)) {
4202 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4203 }
4204 if (!argp2) {
4205 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4206 }
4207 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4208 {
4209 PyThreadState* __tstate = wxPyBeginAllowThreads();
4210 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4211 wxPyEndAllowThreads(__tstate);
4212 if (PyErr_Occurred()) SWIG_fail;
4213 }
4214 resultobj = SWIG_Py_Void();
4215 return resultobj;
4216 fail:
4217 return NULL;
4218 }
4219
4220
4221 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4222 PyObject *resultobj = 0;
4223 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4224 wxBitmap *arg2 = 0 ;
4225 void *argp1 = 0 ;
4226 int res1 = 0 ;
4227 void *argp2 = 0 ;
4228 int res2 = 0 ;
4229 PyObject * obj0 = 0 ;
4230 PyObject * obj1 = 0 ;
4231 char * kwnames[] = {
4232 (char *) "self",(char *) "bitmap", NULL
4233 };
4234
4235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4237 if (!SWIG_IsOK(res1)) {
4238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4239 }
4240 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4241 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4242 if (!SWIG_IsOK(res2)) {
4243 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4244 }
4245 if (!argp2) {
4246 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4247 }
4248 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4249 {
4250 PyThreadState* __tstate = wxPyBeginAllowThreads();
4251 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4252 wxPyEndAllowThreads(__tstate);
4253 if (PyErr_Occurred()) SWIG_fail;
4254 }
4255 resultobj = SWIG_Py_Void();
4256 return resultobj;
4257 fail:
4258 return NULL;
4259 }
4260
4261
4262 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4263 PyObject *resultobj = 0;
4264 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4265 wxBitmap *arg2 = 0 ;
4266 void *argp1 = 0 ;
4267 int res1 = 0 ;
4268 void *argp2 = 0 ;
4269 int res2 = 0 ;
4270 PyObject * obj0 = 0 ;
4271 PyObject * obj1 = 0 ;
4272 char * kwnames[] = {
4273 (char *) "self",(char *) "bitmap", NULL
4274 };
4275
4276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4278 if (!SWIG_IsOK(res1)) {
4279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4280 }
4281 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4282 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4283 if (!SWIG_IsOK(res2)) {
4284 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4285 }
4286 if (!argp2) {
4287 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4288 }
4289 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4290 {
4291 PyThreadState* __tstate = wxPyBeginAllowThreads();
4292 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4293 wxPyEndAllowThreads(__tstate);
4294 if (PyErr_Occurred()) SWIG_fail;
4295 }
4296 resultobj = SWIG_Py_Void();
4297 return resultobj;
4298 fail:
4299 return NULL;
4300 }
4301
4302
4303 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4304 PyObject *resultobj = 0;
4305 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4306 wxBitmap *arg2 = 0 ;
4307 void *argp1 = 0 ;
4308 int res1 = 0 ;
4309 void *argp2 = 0 ;
4310 int res2 = 0 ;
4311 PyObject * obj0 = 0 ;
4312 PyObject * obj1 = 0 ;
4313 char * kwnames[] = {
4314 (char *) "self",(char *) "bitmap", NULL
4315 };
4316
4317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4319 if (!SWIG_IsOK(res1)) {
4320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4321 }
4322 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4323 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4324 if (!SWIG_IsOK(res2)) {
4325 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4326 }
4327 if (!argp2) {
4328 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4329 }
4330 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4331 {
4332 PyThreadState* __tstate = wxPyBeginAllowThreads();
4333 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4334 wxPyEndAllowThreads(__tstate);
4335 if (PyErr_Occurred()) SWIG_fail;
4336 }
4337 resultobj = SWIG_Py_Void();
4338 return resultobj;
4339 fail:
4340 return NULL;
4341 }
4342
4343
4344 SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4345 PyObject *resultobj = 0;
4346 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4347 wxBitmap *arg2 = 0 ;
4348 void *argp1 = 0 ;
4349 int res1 = 0 ;
4350 void *argp2 = 0 ;
4351 int res2 = 0 ;
4352 PyObject * obj0 = 0 ;
4353 PyObject * obj1 = 0 ;
4354 char * kwnames[] = {
4355 (char *) "self",(char *) "hover", NULL
4356 };
4357
4358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4360 if (!SWIG_IsOK(res1)) {
4361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4362 }
4363 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4364 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4365 if (!SWIG_IsOK(res2)) {
4366 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4367 }
4368 if (!argp2) {
4369 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4370 }
4371 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4372 {
4373 PyThreadState* __tstate = wxPyBeginAllowThreads();
4374 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4375 wxPyEndAllowThreads(__tstate);
4376 if (PyErr_Occurred()) SWIG_fail;
4377 }
4378 resultobj = SWIG_Py_Void();
4379 return resultobj;
4380 fail:
4381 return NULL;
4382 }
4383
4384
4385 SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4386 PyObject *resultobj = 0;
4387 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4388 int arg2 ;
4389 int arg3 ;
4390 void *argp1 = 0 ;
4391 int res1 = 0 ;
4392 int val2 ;
4393 int ecode2 = 0 ;
4394 int val3 ;
4395 int ecode3 = 0 ;
4396 PyObject * obj0 = 0 ;
4397 PyObject * obj1 = 0 ;
4398 PyObject * obj2 = 0 ;
4399 char * kwnames[] = {
4400 (char *) "self",(char *) "x",(char *) "y", NULL
4401 };
4402
4403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4405 if (!SWIG_IsOK(res1)) {
4406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4407 }
4408 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4409 ecode2 = SWIG_AsVal_int(obj1, &val2);
4410 if (!SWIG_IsOK(ecode2)) {
4411 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4412 }
4413 arg2 = static_cast< int >(val2);
4414 ecode3 = SWIG_AsVal_int(obj2, &val3);
4415 if (!SWIG_IsOK(ecode3)) {
4416 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4417 }
4418 arg3 = static_cast< int >(val3);
4419 {
4420 PyThreadState* __tstate = wxPyBeginAllowThreads();
4421 (arg1)->SetMargins(arg2,arg3);
4422 wxPyEndAllowThreads(__tstate);
4423 if (PyErr_Occurred()) SWIG_fail;
4424 }
4425 resultobj = SWIG_Py_Void();
4426 return resultobj;
4427 fail:
4428 return NULL;
4429 }
4430
4431
4432 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4433 PyObject *resultobj = 0;
4434 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4435 int result;
4436 void *argp1 = 0 ;
4437 int res1 = 0 ;
4438 PyObject *swig_obj[1] ;
4439
4440 if (!args) SWIG_fail;
4441 swig_obj[0] = args;
4442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4443 if (!SWIG_IsOK(res1)) {
4444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4445 }
4446 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4447 {
4448 PyThreadState* __tstate = wxPyBeginAllowThreads();
4449 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4450 wxPyEndAllowThreads(__tstate);
4451 if (PyErr_Occurred()) SWIG_fail;
4452 }
4453 resultobj = SWIG_From_int(static_cast< int >(result));
4454 return resultobj;
4455 fail:
4456 return NULL;
4457 }
4458
4459
4460 SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4461 PyObject *resultobj = 0;
4462 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4463 int result;
4464 void *argp1 = 0 ;
4465 int res1 = 0 ;
4466 PyObject *swig_obj[1] ;
4467
4468 if (!args) SWIG_fail;
4469 swig_obj[0] = args;
4470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4471 if (!SWIG_IsOK(res1)) {
4472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4473 }
4474 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4475 {
4476 PyThreadState* __tstate = wxPyBeginAllowThreads();
4477 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4478 wxPyEndAllowThreads(__tstate);
4479 if (PyErr_Occurred()) SWIG_fail;
4480 }
4481 resultobj = SWIG_From_int(static_cast< int >(result));
4482 return resultobj;
4483 fail:
4484 return NULL;
4485 }
4486
4487
4488 SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4489 PyObject *obj;
4490 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4491 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4492 return SWIG_Py_Void();
4493 }
4494
4495 SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4496 return SWIG_Python_InitShadowInstance(args);
4497 }
4498
4499 SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4500 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4501 return 1;
4502 }
4503
4504
4505 SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4506 PyObject *pyobj = 0;
4507
4508 {
4509 #if wxUSE_UNICODE
4510 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4511 #else
4512 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4513 #endif
4514 }
4515 return pyobj;
4516 }
4517
4518
4519 SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4520 PyObject *resultobj = 0;
4521 wxWindow *arg1 = (wxWindow *) 0 ;
4522 int arg2 = (int) -1 ;
4523 wxString const &arg3_defvalue = wxPyEmptyString ;
4524 wxString *arg3 = (wxString *) &arg3_defvalue ;
4525 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4526 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4527 wxSize const &arg5_defvalue = wxDefaultSize ;
4528 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4529 long arg6 = (long) 0 ;
4530 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4531 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4532 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4533 wxString *arg8 = (wxString *) &arg8_defvalue ;
4534 wxCheckBox *result = 0 ;
4535 void *argp1 = 0 ;
4536 int res1 = 0 ;
4537 int val2 ;
4538 int ecode2 = 0 ;
4539 bool temp3 = false ;
4540 wxPoint temp4 ;
4541 wxSize temp5 ;
4542 long val6 ;
4543 int ecode6 = 0 ;
4544 void *argp7 = 0 ;
4545 int res7 = 0 ;
4546 bool temp8 = false ;
4547 PyObject * obj0 = 0 ;
4548 PyObject * obj1 = 0 ;
4549 PyObject * obj2 = 0 ;
4550 PyObject * obj3 = 0 ;
4551 PyObject * obj4 = 0 ;
4552 PyObject * obj5 = 0 ;
4553 PyObject * obj6 = 0 ;
4554 PyObject * obj7 = 0 ;
4555 char * kwnames[] = {
4556 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4557 };
4558
4559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4561 if (!SWIG_IsOK(res1)) {
4562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4563 }
4564 arg1 = reinterpret_cast< wxWindow * >(argp1);
4565 if (obj1) {
4566 ecode2 = SWIG_AsVal_int(obj1, &val2);
4567 if (!SWIG_IsOK(ecode2)) {
4568 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4569 }
4570 arg2 = static_cast< int >(val2);
4571 }
4572 if (obj2) {
4573 {
4574 arg3 = wxString_in_helper(obj2);
4575 if (arg3 == NULL) SWIG_fail;
4576 temp3 = true;
4577 }
4578 }
4579 if (obj3) {
4580 {
4581 arg4 = &temp4;
4582 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4583 }
4584 }
4585 if (obj4) {
4586 {
4587 arg5 = &temp5;
4588 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4589 }
4590 }
4591 if (obj5) {
4592 ecode6 = SWIG_AsVal_long(obj5, &val6);
4593 if (!SWIG_IsOK(ecode6)) {
4594 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4595 }
4596 arg6 = static_cast< long >(val6);
4597 }
4598 if (obj6) {
4599 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4600 if (!SWIG_IsOK(res7)) {
4601 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4602 }
4603 if (!argp7) {
4604 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4605 }
4606 arg7 = reinterpret_cast< wxValidator * >(argp7);
4607 }
4608 if (obj7) {
4609 {
4610 arg8 = wxString_in_helper(obj7);
4611 if (arg8 == NULL) SWIG_fail;
4612 temp8 = true;
4613 }
4614 }
4615 {
4616 if (!wxPyCheckForApp()) SWIG_fail;
4617 PyThreadState* __tstate = wxPyBeginAllowThreads();
4618 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4619 wxPyEndAllowThreads(__tstate);
4620 if (PyErr_Occurred()) SWIG_fail;
4621 }
4622 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4623 {
4624 if (temp3)
4625 delete arg3;
4626 }
4627 {
4628 if (temp8)
4629 delete arg8;
4630 }
4631 return resultobj;
4632 fail:
4633 {
4634 if (temp3)
4635 delete arg3;
4636 }
4637 {
4638 if (temp8)
4639 delete arg8;
4640 }
4641 return NULL;
4642 }
4643
4644
4645 SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4646 PyObject *resultobj = 0;
4647 wxCheckBox *result = 0 ;
4648
4649 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4650 {
4651 if (!wxPyCheckForApp()) SWIG_fail;
4652 PyThreadState* __tstate = wxPyBeginAllowThreads();
4653 result = (wxCheckBox *)new wxCheckBox();
4654 wxPyEndAllowThreads(__tstate);
4655 if (PyErr_Occurred()) SWIG_fail;
4656 }
4657 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4658 return resultobj;
4659 fail:
4660 return NULL;
4661 }
4662
4663
4664 SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4665 PyObject *resultobj = 0;
4666 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4667 wxWindow *arg2 = (wxWindow *) 0 ;
4668 int arg3 = (int) -1 ;
4669 wxString const &arg4_defvalue = wxPyEmptyString ;
4670 wxString *arg4 = (wxString *) &arg4_defvalue ;
4671 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4672 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4673 wxSize const &arg6_defvalue = wxDefaultSize ;
4674 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4675 long arg7 = (long) 0 ;
4676 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4677 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4678 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4679 wxString *arg9 = (wxString *) &arg9_defvalue ;
4680 bool result;
4681 void *argp1 = 0 ;
4682 int res1 = 0 ;
4683 void *argp2 = 0 ;
4684 int res2 = 0 ;
4685 int val3 ;
4686 int ecode3 = 0 ;
4687 bool temp4 = false ;
4688 wxPoint temp5 ;
4689 wxSize temp6 ;
4690 long val7 ;
4691 int ecode7 = 0 ;
4692 void *argp8 = 0 ;
4693 int res8 = 0 ;
4694 bool temp9 = false ;
4695 PyObject * obj0 = 0 ;
4696 PyObject * obj1 = 0 ;
4697 PyObject * obj2 = 0 ;
4698 PyObject * obj3 = 0 ;
4699 PyObject * obj4 = 0 ;
4700 PyObject * obj5 = 0 ;
4701 PyObject * obj6 = 0 ;
4702 PyObject * obj7 = 0 ;
4703 PyObject * obj8 = 0 ;
4704 char * kwnames[] = {
4705 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4706 };
4707
4708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4710 if (!SWIG_IsOK(res1)) {
4711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4712 }
4713 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4714 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4715 if (!SWIG_IsOK(res2)) {
4716 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4717 }
4718 arg2 = reinterpret_cast< wxWindow * >(argp2);
4719 if (obj2) {
4720 ecode3 = SWIG_AsVal_int(obj2, &val3);
4721 if (!SWIG_IsOK(ecode3)) {
4722 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4723 }
4724 arg3 = static_cast< int >(val3);
4725 }
4726 if (obj3) {
4727 {
4728 arg4 = wxString_in_helper(obj3);
4729 if (arg4 == NULL) SWIG_fail;
4730 temp4 = true;
4731 }
4732 }
4733 if (obj4) {
4734 {
4735 arg5 = &temp5;
4736 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4737 }
4738 }
4739 if (obj5) {
4740 {
4741 arg6 = &temp6;
4742 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4743 }
4744 }
4745 if (obj6) {
4746 ecode7 = SWIG_AsVal_long(obj6, &val7);
4747 if (!SWIG_IsOK(ecode7)) {
4748 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4749 }
4750 arg7 = static_cast< long >(val7);
4751 }
4752 if (obj7) {
4753 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4754 if (!SWIG_IsOK(res8)) {
4755 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4756 }
4757 if (!argp8) {
4758 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4759 }
4760 arg8 = reinterpret_cast< wxValidator * >(argp8);
4761 }
4762 if (obj8) {
4763 {
4764 arg9 = wxString_in_helper(obj8);
4765 if (arg9 == NULL) SWIG_fail;
4766 temp9 = true;
4767 }
4768 }
4769 {
4770 PyThreadState* __tstate = wxPyBeginAllowThreads();
4771 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4772 wxPyEndAllowThreads(__tstate);
4773 if (PyErr_Occurred()) SWIG_fail;
4774 }
4775 {
4776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4777 }
4778 {
4779 if (temp4)
4780 delete arg4;
4781 }
4782 {
4783 if (temp9)
4784 delete arg9;
4785 }
4786 return resultobj;
4787 fail:
4788 {
4789 if (temp4)
4790 delete arg4;
4791 }
4792 {
4793 if (temp9)
4794 delete arg9;
4795 }
4796 return NULL;
4797 }
4798
4799
4800 SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4801 PyObject *resultobj = 0;
4802 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4803 bool result;
4804 void *argp1 = 0 ;
4805 int res1 = 0 ;
4806 PyObject *swig_obj[1] ;
4807
4808 if (!args) SWIG_fail;
4809 swig_obj[0] = args;
4810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4811 if (!SWIG_IsOK(res1)) {
4812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4813 }
4814 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4815 {
4816 PyThreadState* __tstate = wxPyBeginAllowThreads();
4817 result = (bool)(arg1)->GetValue();
4818 wxPyEndAllowThreads(__tstate);
4819 if (PyErr_Occurred()) SWIG_fail;
4820 }
4821 {
4822 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4823 }
4824 return resultobj;
4825 fail:
4826 return NULL;
4827 }
4828
4829
4830 SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4831 PyObject *resultobj = 0;
4832 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4833 bool result;
4834 void *argp1 = 0 ;
4835 int res1 = 0 ;
4836 PyObject *swig_obj[1] ;
4837
4838 if (!args) SWIG_fail;
4839 swig_obj[0] = args;
4840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4841 if (!SWIG_IsOK(res1)) {
4842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4843 }
4844 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4845 {
4846 PyThreadState* __tstate = wxPyBeginAllowThreads();
4847 result = (bool)(arg1)->IsChecked();
4848 wxPyEndAllowThreads(__tstate);
4849 if (PyErr_Occurred()) SWIG_fail;
4850 }
4851 {
4852 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4853 }
4854 return resultobj;
4855 fail:
4856 return NULL;
4857 }
4858
4859
4860 SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4861 PyObject *resultobj = 0;
4862 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4863 bool arg2 ;
4864 void *argp1 = 0 ;
4865 int res1 = 0 ;
4866 bool val2 ;
4867 int ecode2 = 0 ;
4868 PyObject * obj0 = 0 ;
4869 PyObject * obj1 = 0 ;
4870 char * kwnames[] = {
4871 (char *) "self",(char *) "state", NULL
4872 };
4873
4874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4876 if (!SWIG_IsOK(res1)) {
4877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4878 }
4879 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4880 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4881 if (!SWIG_IsOK(ecode2)) {
4882 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4883 }
4884 arg2 = static_cast< bool >(val2);
4885 {
4886 PyThreadState* __tstate = wxPyBeginAllowThreads();
4887 (arg1)->SetValue(arg2);
4888 wxPyEndAllowThreads(__tstate);
4889 if (PyErr_Occurred()) SWIG_fail;
4890 }
4891 resultobj = SWIG_Py_Void();
4892 return resultobj;
4893 fail:
4894 return NULL;
4895 }
4896
4897
4898 SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4899 PyObject *resultobj = 0;
4900 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4901 wxCheckBoxState result;
4902 void *argp1 = 0 ;
4903 int res1 = 0 ;
4904 PyObject *swig_obj[1] ;
4905
4906 if (!args) SWIG_fail;
4907 swig_obj[0] = args;
4908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4909 if (!SWIG_IsOK(res1)) {
4910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4911 }
4912 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4913 {
4914 PyThreadState* __tstate = wxPyBeginAllowThreads();
4915 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4916 wxPyEndAllowThreads(__tstate);
4917 if (PyErr_Occurred()) SWIG_fail;
4918 }
4919 resultobj = SWIG_From_int(static_cast< int >(result));
4920 return resultobj;
4921 fail:
4922 return NULL;
4923 }
4924
4925
4926 SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4927 PyObject *resultobj = 0;
4928 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4929 wxCheckBoxState arg2 ;
4930 void *argp1 = 0 ;
4931 int res1 = 0 ;
4932 int val2 ;
4933 int ecode2 = 0 ;
4934 PyObject * obj0 = 0 ;
4935 PyObject * obj1 = 0 ;
4936 char * kwnames[] = {
4937 (char *) "self",(char *) "state", NULL
4938 };
4939
4940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4942 if (!SWIG_IsOK(res1)) {
4943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4944 }
4945 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4946 ecode2 = SWIG_AsVal_int(obj1, &val2);
4947 if (!SWIG_IsOK(ecode2)) {
4948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4949 }
4950 arg2 = static_cast< wxCheckBoxState >(val2);
4951 {
4952 PyThreadState* __tstate = wxPyBeginAllowThreads();
4953 (arg1)->Set3StateValue(arg2);
4954 wxPyEndAllowThreads(__tstate);
4955 if (PyErr_Occurred()) SWIG_fail;
4956 }
4957 resultobj = SWIG_Py_Void();
4958 return resultobj;
4959 fail:
4960 return NULL;
4961 }
4962
4963
4964 SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4965 PyObject *resultobj = 0;
4966 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4967 bool result;
4968 void *argp1 = 0 ;
4969 int res1 = 0 ;
4970 PyObject *swig_obj[1] ;
4971
4972 if (!args) SWIG_fail;
4973 swig_obj[0] = args;
4974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4975 if (!SWIG_IsOK(res1)) {
4976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4977 }
4978 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4979 {
4980 PyThreadState* __tstate = wxPyBeginAllowThreads();
4981 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4982 wxPyEndAllowThreads(__tstate);
4983 if (PyErr_Occurred()) SWIG_fail;
4984 }
4985 {
4986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4987 }
4988 return resultobj;
4989 fail:
4990 return NULL;
4991 }
4992
4993
4994 SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4995 PyObject *resultobj = 0;
4996 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4997 bool result;
4998 void *argp1 = 0 ;
4999 int res1 = 0 ;
5000 PyObject *swig_obj[1] ;
5001
5002 if (!args) SWIG_fail;
5003 swig_obj[0] = args;
5004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5005 if (!SWIG_IsOK(res1)) {
5006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5007 }
5008 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5009 {
5010 PyThreadState* __tstate = wxPyBeginAllowThreads();
5011 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
5012 wxPyEndAllowThreads(__tstate);
5013 if (PyErr_Occurred()) SWIG_fail;
5014 }
5015 {
5016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5017 }
5018 return resultobj;
5019 fail:
5020 return NULL;
5021 }
5022
5023
5024 SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5025 PyObject *resultobj = 0;
5026 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5027 SwigValueWrapper<wxVisualAttributes > result;
5028 int val1 ;
5029 int ecode1 = 0 ;
5030 PyObject * obj0 = 0 ;
5031 char * kwnames[] = {
5032 (char *) "variant", NULL
5033 };
5034
5035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5036 if (obj0) {
5037 ecode1 = SWIG_AsVal_int(obj0, &val1);
5038 if (!SWIG_IsOK(ecode1)) {
5039 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5040 }
5041 arg1 = static_cast< wxWindowVariant >(val1);
5042 }
5043 {
5044 if (!wxPyCheckForApp()) SWIG_fail;
5045 PyThreadState* __tstate = wxPyBeginAllowThreads();
5046 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5047 wxPyEndAllowThreads(__tstate);
5048 if (PyErr_Occurred()) SWIG_fail;
5049 }
5050 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5051 return resultobj;
5052 fail:
5053 return NULL;
5054 }
5055
5056
5057 SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5058 PyObject *obj;
5059 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5060 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5061 return SWIG_Py_Void();
5062 }
5063
5064 SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5065 return SWIG_Python_InitShadowInstance(args);
5066 }
5067
5068 SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5069 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5070 return 1;
5071 }
5072
5073
5074 SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5075 PyObject *pyobj = 0;
5076
5077 {
5078 #if wxUSE_UNICODE
5079 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5080 #else
5081 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5082 #endif
5083 }
5084 return pyobj;
5085 }
5086
5087
5088 SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5089 PyObject *resultobj = 0;
5090 wxWindow *arg1 = (wxWindow *) 0 ;
5091 int arg2 = (int) -1 ;
5092 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5093 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5094 wxSize const &arg4_defvalue = wxDefaultSize ;
5095 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5096 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5097 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5098 long arg6 = (long) 0 ;
5099 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5100 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5101 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5102 wxString *arg8 = (wxString *) &arg8_defvalue ;
5103 wxChoice *result = 0 ;
5104 void *argp1 = 0 ;
5105 int res1 = 0 ;
5106 int val2 ;
5107 int ecode2 = 0 ;
5108 wxPoint temp3 ;
5109 wxSize temp4 ;
5110 bool temp5 = false ;
5111 long val6 ;
5112 int ecode6 = 0 ;
5113 void *argp7 = 0 ;
5114 int res7 = 0 ;
5115 bool temp8 = false ;
5116 PyObject * obj0 = 0 ;
5117 PyObject * obj1 = 0 ;
5118 PyObject * obj2 = 0 ;
5119 PyObject * obj3 = 0 ;
5120 PyObject * obj4 = 0 ;
5121 PyObject * obj5 = 0 ;
5122 PyObject * obj6 = 0 ;
5123 PyObject * obj7 = 0 ;
5124 char * kwnames[] = {
5125 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5126 };
5127
5128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5130 if (!SWIG_IsOK(res1)) {
5131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5132 }
5133 arg1 = reinterpret_cast< wxWindow * >(argp1);
5134 if (obj1) {
5135 ecode2 = SWIG_AsVal_int(obj1, &val2);
5136 if (!SWIG_IsOK(ecode2)) {
5137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5138 }
5139 arg2 = static_cast< int >(val2);
5140 }
5141 if (obj2) {
5142 {
5143 arg3 = &temp3;
5144 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5145 }
5146 }
5147 if (obj3) {
5148 {
5149 arg4 = &temp4;
5150 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5151 }
5152 }
5153 if (obj4) {
5154 {
5155 if (! PySequence_Check(obj4)) {
5156 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5157 SWIG_fail;
5158 }
5159 arg5 = new wxArrayString;
5160 temp5 = true;
5161 int i, len=PySequence_Length(obj4);
5162 for (i=0; i<len; i++) {
5163 PyObject* item = PySequence_GetItem(obj4, i);
5164 wxString* s = wxString_in_helper(item);
5165 if (PyErr_Occurred()) SWIG_fail;
5166 arg5->Add(*s);
5167 delete s;
5168 Py_DECREF(item);
5169 }
5170 }
5171 }
5172 if (obj5) {
5173 ecode6 = SWIG_AsVal_long(obj5, &val6);
5174 if (!SWIG_IsOK(ecode6)) {
5175 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5176 }
5177 arg6 = static_cast< long >(val6);
5178 }
5179 if (obj6) {
5180 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5181 if (!SWIG_IsOK(res7)) {
5182 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5183 }
5184 if (!argp7) {
5185 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5186 }
5187 arg7 = reinterpret_cast< wxValidator * >(argp7);
5188 }
5189 if (obj7) {
5190 {
5191 arg8 = wxString_in_helper(obj7);
5192 if (arg8 == NULL) SWIG_fail;
5193 temp8 = true;
5194 }
5195 }
5196 {
5197 if (!wxPyCheckForApp()) SWIG_fail;
5198 PyThreadState* __tstate = wxPyBeginAllowThreads();
5199 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5200 wxPyEndAllowThreads(__tstate);
5201 if (PyErr_Occurred()) SWIG_fail;
5202 }
5203 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5204 {
5205 if (temp5) delete arg5;
5206 }
5207 {
5208 if (temp8)
5209 delete arg8;
5210 }
5211 return resultobj;
5212 fail:
5213 {
5214 if (temp5) delete arg5;
5215 }
5216 {
5217 if (temp8)
5218 delete arg8;
5219 }
5220 return NULL;
5221 }
5222
5223
5224 SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5225 PyObject *resultobj = 0;
5226 wxChoice *result = 0 ;
5227
5228 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5229 {
5230 if (!wxPyCheckForApp()) SWIG_fail;
5231 PyThreadState* __tstate = wxPyBeginAllowThreads();
5232 result = (wxChoice *)new wxChoice();
5233 wxPyEndAllowThreads(__tstate);
5234 if (PyErr_Occurred()) SWIG_fail;
5235 }
5236 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5237 return resultobj;
5238 fail:
5239 return NULL;
5240 }
5241
5242
5243 SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5244 PyObject *resultobj = 0;
5245 wxChoice *arg1 = (wxChoice *) 0 ;
5246 wxWindow *arg2 = (wxWindow *) 0 ;
5247 int arg3 = (int) -1 ;
5248 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5249 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5250 wxSize const &arg5_defvalue = wxDefaultSize ;
5251 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5252 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5253 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5254 long arg7 = (long) 0 ;
5255 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5256 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5257 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5258 wxString *arg9 = (wxString *) &arg9_defvalue ;
5259 bool result;
5260 void *argp1 = 0 ;
5261 int res1 = 0 ;
5262 void *argp2 = 0 ;
5263 int res2 = 0 ;
5264 int val3 ;
5265 int ecode3 = 0 ;
5266 wxPoint temp4 ;
5267 wxSize temp5 ;
5268 bool temp6 = false ;
5269 long val7 ;
5270 int ecode7 = 0 ;
5271 void *argp8 = 0 ;
5272 int res8 = 0 ;
5273 bool temp9 = false ;
5274 PyObject * obj0 = 0 ;
5275 PyObject * obj1 = 0 ;
5276 PyObject * obj2 = 0 ;
5277 PyObject * obj3 = 0 ;
5278 PyObject * obj4 = 0 ;
5279 PyObject * obj5 = 0 ;
5280 PyObject * obj6 = 0 ;
5281 PyObject * obj7 = 0 ;
5282 PyObject * obj8 = 0 ;
5283 char * kwnames[] = {
5284 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5285 };
5286
5287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5289 if (!SWIG_IsOK(res1)) {
5290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5291 }
5292 arg1 = reinterpret_cast< wxChoice * >(argp1);
5293 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5294 if (!SWIG_IsOK(res2)) {
5295 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5296 }
5297 arg2 = reinterpret_cast< wxWindow * >(argp2);
5298 if (obj2) {
5299 ecode3 = SWIG_AsVal_int(obj2, &val3);
5300 if (!SWIG_IsOK(ecode3)) {
5301 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5302 }
5303 arg3 = static_cast< int >(val3);
5304 }
5305 if (obj3) {
5306 {
5307 arg4 = &temp4;
5308 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5309 }
5310 }
5311 if (obj4) {
5312 {
5313 arg5 = &temp5;
5314 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5315 }
5316 }
5317 if (obj5) {
5318 {
5319 if (! PySequence_Check(obj5)) {
5320 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5321 SWIG_fail;
5322 }
5323 arg6 = new wxArrayString;
5324 temp6 = true;
5325 int i, len=PySequence_Length(obj5);
5326 for (i=0; i<len; i++) {
5327 PyObject* item = PySequence_GetItem(obj5, i);
5328 wxString* s = wxString_in_helper(item);
5329 if (PyErr_Occurred()) SWIG_fail;
5330 arg6->Add(*s);
5331 delete s;
5332 Py_DECREF(item);
5333 }
5334 }
5335 }
5336 if (obj6) {
5337 ecode7 = SWIG_AsVal_long(obj6, &val7);
5338 if (!SWIG_IsOK(ecode7)) {
5339 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5340 }
5341 arg7 = static_cast< long >(val7);
5342 }
5343 if (obj7) {
5344 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5345 if (!SWIG_IsOK(res8)) {
5346 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5347 }
5348 if (!argp8) {
5349 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5350 }
5351 arg8 = reinterpret_cast< wxValidator * >(argp8);
5352 }
5353 if (obj8) {
5354 {
5355 arg9 = wxString_in_helper(obj8);
5356 if (arg9 == NULL) SWIG_fail;
5357 temp9 = true;
5358 }
5359 }
5360 {
5361 PyThreadState* __tstate = wxPyBeginAllowThreads();
5362 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5363 wxPyEndAllowThreads(__tstate);
5364 if (PyErr_Occurred()) SWIG_fail;
5365 }
5366 {
5367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5368 }
5369 {
5370 if (temp6) delete arg6;
5371 }
5372 {
5373 if (temp9)
5374 delete arg9;
5375 }
5376 return resultobj;
5377 fail:
5378 {
5379 if (temp6) delete arg6;
5380 }
5381 {
5382 if (temp9)
5383 delete arg9;
5384 }
5385 return NULL;
5386 }
5387
5388
5389 SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5390 PyObject *resultobj = 0;
5391 wxChoice *arg1 = (wxChoice *) 0 ;
5392 int result;
5393 void *argp1 = 0 ;
5394 int res1 = 0 ;
5395 PyObject *swig_obj[1] ;
5396
5397 if (!args) SWIG_fail;
5398 swig_obj[0] = args;
5399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5400 if (!SWIG_IsOK(res1)) {
5401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5402 }
5403 arg1 = reinterpret_cast< wxChoice * >(argp1);
5404 {
5405 PyThreadState* __tstate = wxPyBeginAllowThreads();
5406 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5407 wxPyEndAllowThreads(__tstate);
5408 if (PyErr_Occurred()) SWIG_fail;
5409 }
5410 resultobj = SWIG_From_int(static_cast< int >(result));
5411 return resultobj;
5412 fail:
5413 return NULL;
5414 }
5415
5416
5417 SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5418 PyObject *resultobj = 0;
5419 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5420 SwigValueWrapper<wxVisualAttributes > result;
5421 int val1 ;
5422 int ecode1 = 0 ;
5423 PyObject * obj0 = 0 ;
5424 char * kwnames[] = {
5425 (char *) "variant", NULL
5426 };
5427
5428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5429 if (obj0) {
5430 ecode1 = SWIG_AsVal_int(obj0, &val1);
5431 if (!SWIG_IsOK(ecode1)) {
5432 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5433 }
5434 arg1 = static_cast< wxWindowVariant >(val1);
5435 }
5436 {
5437 if (!wxPyCheckForApp()) SWIG_fail;
5438 PyThreadState* __tstate = wxPyBeginAllowThreads();
5439 result = wxChoice::GetClassDefaultAttributes(arg1);
5440 wxPyEndAllowThreads(__tstate);
5441 if (PyErr_Occurred()) SWIG_fail;
5442 }
5443 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5444 return resultobj;
5445 fail:
5446 return NULL;
5447 }
5448
5449
5450 SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5451 PyObject *obj;
5452 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5453 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5454 return SWIG_Py_Void();
5455 }
5456
5457 SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5458 return SWIG_Python_InitShadowInstance(args);
5459 }
5460
5461 SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5462 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5463 return 1;
5464 }
5465
5466
5467 SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5468 PyObject *pyobj = 0;
5469
5470 {
5471 #if wxUSE_UNICODE
5472 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5473 #else
5474 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
5475 #endif
5476 }
5477 return pyobj;
5478 }
5479
5480
5481 SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5482 PyObject *resultobj = 0;
5483 wxWindow *arg1 = (wxWindow *) 0 ;
5484 int arg2 = (int) -1 ;
5485 wxString const &arg3_defvalue = wxPyEmptyString ;
5486 wxString *arg3 = (wxString *) &arg3_defvalue ;
5487 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5488 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5489 wxSize const &arg5_defvalue = wxDefaultSize ;
5490 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5491 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5492 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5493 long arg7 = (long) 0 ;
5494 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5495 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5496 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5497 wxString *arg9 = (wxString *) &arg9_defvalue ;
5498 wxComboBox *result = 0 ;
5499 void *argp1 = 0 ;
5500 int res1 = 0 ;
5501 int val2 ;
5502 int ecode2 = 0 ;
5503 bool temp3 = false ;
5504 wxPoint temp4 ;
5505 wxSize temp5 ;
5506 bool temp6 = false ;
5507 long val7 ;
5508 int ecode7 = 0 ;
5509 void *argp8 = 0 ;
5510 int res8 = 0 ;
5511 bool temp9 = false ;
5512 PyObject * obj0 = 0 ;
5513 PyObject * obj1 = 0 ;
5514 PyObject * obj2 = 0 ;
5515 PyObject * obj3 = 0 ;
5516 PyObject * obj4 = 0 ;
5517 PyObject * obj5 = 0 ;
5518 PyObject * obj6 = 0 ;
5519 PyObject * obj7 = 0 ;
5520 PyObject * obj8 = 0 ;
5521 char * kwnames[] = {
5522 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5523 };
5524
5525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5527 if (!SWIG_IsOK(res1)) {
5528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5529 }
5530 arg1 = reinterpret_cast< wxWindow * >(argp1);
5531 if (obj1) {
5532 ecode2 = SWIG_AsVal_int(obj1, &val2);
5533 if (!SWIG_IsOK(ecode2)) {
5534 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5535 }
5536 arg2 = static_cast< int >(val2);
5537 }
5538 if (obj2) {
5539 {
5540 arg3 = wxString_in_helper(obj2);
5541 if (arg3 == NULL) SWIG_fail;
5542 temp3 = true;
5543 }
5544 }
5545 if (obj3) {
5546 {
5547 arg4 = &temp4;
5548 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5549 }
5550 }
5551 if (obj4) {
5552 {
5553 arg5 = &temp5;
5554 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5555 }
5556 }
5557 if (obj5) {
5558 {
5559 if (! PySequence_Check(obj5)) {
5560 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5561 SWIG_fail;
5562 }
5563 arg6 = new wxArrayString;
5564 temp6 = true;
5565 int i, len=PySequence_Length(obj5);
5566 for (i=0; i<len; i++) {
5567 PyObject* item = PySequence_GetItem(obj5, i);
5568 wxString* s = wxString_in_helper(item);
5569 if (PyErr_Occurred()) SWIG_fail;
5570 arg6->Add(*s);
5571 delete s;
5572 Py_DECREF(item);
5573 }
5574 }
5575 }
5576 if (obj6) {
5577 ecode7 = SWIG_AsVal_long(obj6, &val7);
5578 if (!SWIG_IsOK(ecode7)) {
5579 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5580 }
5581 arg7 = static_cast< long >(val7);
5582 }
5583 if (obj7) {
5584 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5585 if (!SWIG_IsOK(res8)) {
5586 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5587 }
5588 if (!argp8) {
5589 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5590 }
5591 arg8 = reinterpret_cast< wxValidator * >(argp8);
5592 }
5593 if (obj8) {
5594 {
5595 arg9 = wxString_in_helper(obj8);
5596 if (arg9 == NULL) SWIG_fail;
5597 temp9 = true;
5598 }
5599 }
5600 {
5601 if (!wxPyCheckForApp()) SWIG_fail;
5602 PyThreadState* __tstate = wxPyBeginAllowThreads();
5603 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);
5604 wxPyEndAllowThreads(__tstate);
5605 if (PyErr_Occurred()) SWIG_fail;
5606 }
5607 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5608 {
5609 if (temp3)
5610 delete arg3;
5611 }
5612 {
5613 if (temp6) delete arg6;
5614 }
5615 {
5616 if (temp9)
5617 delete arg9;
5618 }
5619 return resultobj;
5620 fail:
5621 {
5622 if (temp3)
5623 delete arg3;
5624 }
5625 {
5626 if (temp6) delete arg6;
5627 }
5628 {
5629 if (temp9)
5630 delete arg9;
5631 }
5632 return NULL;
5633 }
5634
5635
5636 SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5637 PyObject *resultobj = 0;
5638 wxComboBox *result = 0 ;
5639
5640 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5641 {
5642 if (!wxPyCheckForApp()) SWIG_fail;
5643 PyThreadState* __tstate = wxPyBeginAllowThreads();
5644 result = (wxComboBox *)new wxComboBox();
5645 wxPyEndAllowThreads(__tstate);
5646 if (PyErr_Occurred()) SWIG_fail;
5647 }
5648 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5649 return resultobj;
5650 fail:
5651 return NULL;
5652 }
5653
5654
5655 SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5656 PyObject *resultobj = 0;
5657 wxComboBox *arg1 = (wxComboBox *) 0 ;
5658 wxWindow *arg2 = (wxWindow *) 0 ;
5659 int arg3 = (int) -1 ;
5660 wxString const &arg4_defvalue = wxPyEmptyString ;
5661 wxString *arg4 = (wxString *) &arg4_defvalue ;
5662 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5663 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5664 wxSize const &arg6_defvalue = wxDefaultSize ;
5665 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5666 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5667 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5668 long arg8 = (long) 0 ;
5669 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5670 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5671 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5672 wxString *arg10 = (wxString *) &arg10_defvalue ;
5673 bool result;
5674 void *argp1 = 0 ;
5675 int res1 = 0 ;
5676 void *argp2 = 0 ;
5677 int res2 = 0 ;
5678 int val3 ;
5679 int ecode3 = 0 ;
5680 bool temp4 = false ;
5681 wxPoint temp5 ;
5682 wxSize temp6 ;
5683 bool temp7 = false ;
5684 long val8 ;
5685 int ecode8 = 0 ;
5686 void *argp9 = 0 ;
5687 int res9 = 0 ;
5688 bool temp10 = false ;
5689 PyObject * obj0 = 0 ;
5690 PyObject * obj1 = 0 ;
5691 PyObject * obj2 = 0 ;
5692 PyObject * obj3 = 0 ;
5693 PyObject * obj4 = 0 ;
5694 PyObject * obj5 = 0 ;
5695 PyObject * obj6 = 0 ;
5696 PyObject * obj7 = 0 ;
5697 PyObject * obj8 = 0 ;
5698 PyObject * obj9 = 0 ;
5699 char * kwnames[] = {
5700 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5701 };
5702
5703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5705 if (!SWIG_IsOK(res1)) {
5706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5707 }
5708 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5709 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5710 if (!SWIG_IsOK(res2)) {
5711 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5712 }
5713 arg2 = reinterpret_cast< wxWindow * >(argp2);
5714 if (obj2) {
5715 ecode3 = SWIG_AsVal_int(obj2, &val3);
5716 if (!SWIG_IsOK(ecode3)) {
5717 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5718 }
5719 arg3 = static_cast< int >(val3);
5720 }
5721 if (obj3) {
5722 {
5723 arg4 = wxString_in_helper(obj3);
5724 if (arg4 == NULL) SWIG_fail;
5725 temp4 = true;
5726 }
5727 }
5728 if (obj4) {
5729 {
5730 arg5 = &temp5;
5731 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5732 }
5733 }
5734 if (obj5) {
5735 {
5736 arg6 = &temp6;
5737 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5738 }
5739 }
5740 if (obj6) {
5741 {
5742 if (! PySequence_Check(obj6)) {
5743 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5744 SWIG_fail;
5745 }
5746 arg7 = new wxArrayString;
5747 temp7 = true;
5748 int i, len=PySequence_Length(obj6);
5749 for (i=0; i<len; i++) {
5750 PyObject* item = PySequence_GetItem(obj6, i);
5751 wxString* s = wxString_in_helper(item);
5752 if (PyErr_Occurred()) SWIG_fail;
5753 arg7->Add(*s);
5754 delete s;
5755 Py_DECREF(item);
5756 }
5757 }
5758 }
5759 if (obj7) {
5760 ecode8 = SWIG_AsVal_long(obj7, &val8);
5761 if (!SWIG_IsOK(ecode8)) {
5762 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5763 }
5764 arg8 = static_cast< long >(val8);
5765 }
5766 if (obj8) {
5767 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5768 if (!SWIG_IsOK(res9)) {
5769 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5770 }
5771 if (!argp9) {
5772 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
5773 }
5774 arg9 = reinterpret_cast< wxValidator * >(argp9);
5775 }
5776 if (obj9) {
5777 {
5778 arg10 = wxString_in_helper(obj9);
5779 if (arg10 == NULL) SWIG_fail;
5780 temp10 = true;
5781 }
5782 }
5783 {
5784 PyThreadState* __tstate = wxPyBeginAllowThreads();
5785 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);
5786 wxPyEndAllowThreads(__tstate);
5787 if (PyErr_Occurred()) SWIG_fail;
5788 }
5789 {
5790 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5791 }
5792 {
5793 if (temp4)
5794 delete arg4;
5795 }
5796 {
5797 if (temp7) delete arg7;
5798 }
5799 {
5800 if (temp10)
5801 delete arg10;
5802 }
5803 return resultobj;
5804 fail:
5805 {
5806 if (temp4)
5807 delete arg4;
5808 }
5809 {
5810 if (temp7) delete arg7;
5811 }
5812 {
5813 if (temp10)
5814 delete arg10;
5815 }
5816 return NULL;
5817 }
5818
5819
5820 SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5821 PyObject *resultobj = 0;
5822 wxComboBox *arg1 = (wxComboBox *) 0 ;
5823 wxString result;
5824 void *argp1 = 0 ;
5825 int res1 = 0 ;
5826 PyObject *swig_obj[1] ;
5827
5828 if (!args) SWIG_fail;
5829 swig_obj[0] = args;
5830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5831 if (!SWIG_IsOK(res1)) {
5832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5833 }
5834 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5835 {
5836 PyThreadState* __tstate = wxPyBeginAllowThreads();
5837 result = ((wxComboBox const *)arg1)->GetValue();
5838 wxPyEndAllowThreads(__tstate);
5839 if (PyErr_Occurred()) SWIG_fail;
5840 }
5841 {
5842 #if wxUSE_UNICODE
5843 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5844 #else
5845 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5846 #endif
5847 }
5848 return resultobj;
5849 fail:
5850 return NULL;
5851 }
5852
5853
5854 SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5855 PyObject *resultobj = 0;
5856 wxComboBox *arg1 = (wxComboBox *) 0 ;
5857 wxString *arg2 = 0 ;
5858 void *argp1 = 0 ;
5859 int res1 = 0 ;
5860 bool temp2 = false ;
5861 PyObject * obj0 = 0 ;
5862 PyObject * obj1 = 0 ;
5863 char * kwnames[] = {
5864 (char *) "self",(char *) "value", NULL
5865 };
5866
5867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5869 if (!SWIG_IsOK(res1)) {
5870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5871 }
5872 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5873 {
5874 arg2 = wxString_in_helper(obj1);
5875 if (arg2 == NULL) SWIG_fail;
5876 temp2 = true;
5877 }
5878 {
5879 PyThreadState* __tstate = wxPyBeginAllowThreads();
5880 (arg1)->SetValue((wxString const &)*arg2);
5881 wxPyEndAllowThreads(__tstate);
5882 if (PyErr_Occurred()) SWIG_fail;
5883 }
5884 resultobj = SWIG_Py_Void();
5885 {
5886 if (temp2)
5887 delete arg2;
5888 }
5889 return resultobj;
5890 fail:
5891 {
5892 if (temp2)
5893 delete arg2;
5894 }
5895 return NULL;
5896 }
5897
5898
5899 SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5900 PyObject *resultobj = 0;
5901 wxComboBox *arg1 = (wxComboBox *) 0 ;
5902 void *argp1 = 0 ;
5903 int res1 = 0 ;
5904 PyObject *swig_obj[1] ;
5905
5906 if (!args) SWIG_fail;
5907 swig_obj[0] = args;
5908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5909 if (!SWIG_IsOK(res1)) {
5910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5911 }
5912 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5913 {
5914 PyThreadState* __tstate = wxPyBeginAllowThreads();
5915 (arg1)->Copy();
5916 wxPyEndAllowThreads(__tstate);
5917 if (PyErr_Occurred()) SWIG_fail;
5918 }
5919 resultobj = SWIG_Py_Void();
5920 return resultobj;
5921 fail:
5922 return NULL;
5923 }
5924
5925
5926 SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5927 PyObject *resultobj = 0;
5928 wxComboBox *arg1 = (wxComboBox *) 0 ;
5929 void *argp1 = 0 ;
5930 int res1 = 0 ;
5931 PyObject *swig_obj[1] ;
5932
5933 if (!args) SWIG_fail;
5934 swig_obj[0] = args;
5935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5936 if (!SWIG_IsOK(res1)) {
5937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5938 }
5939 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5940 {
5941 PyThreadState* __tstate = wxPyBeginAllowThreads();
5942 (arg1)->Cut();
5943 wxPyEndAllowThreads(__tstate);
5944 if (PyErr_Occurred()) SWIG_fail;
5945 }
5946 resultobj = SWIG_Py_Void();
5947 return resultobj;
5948 fail:
5949 return NULL;
5950 }
5951
5952
5953 SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5954 PyObject *resultobj = 0;
5955 wxComboBox *arg1 = (wxComboBox *) 0 ;
5956 void *argp1 = 0 ;
5957 int res1 = 0 ;
5958 PyObject *swig_obj[1] ;
5959
5960 if (!args) SWIG_fail;
5961 swig_obj[0] = args;
5962 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5963 if (!SWIG_IsOK(res1)) {
5964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5965 }
5966 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5967 {
5968 PyThreadState* __tstate = wxPyBeginAllowThreads();
5969 (arg1)->Paste();
5970 wxPyEndAllowThreads(__tstate);
5971 if (PyErr_Occurred()) SWIG_fail;
5972 }
5973 resultobj = SWIG_Py_Void();
5974 return resultobj;
5975 fail:
5976 return NULL;
5977 }
5978
5979
5980 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5981 PyObject *resultobj = 0;
5982 wxComboBox *arg1 = (wxComboBox *) 0 ;
5983 long arg2 ;
5984 void *argp1 = 0 ;
5985 int res1 = 0 ;
5986 long val2 ;
5987 int ecode2 = 0 ;
5988 PyObject * obj0 = 0 ;
5989 PyObject * obj1 = 0 ;
5990 char * kwnames[] = {
5991 (char *) "self",(char *) "pos", NULL
5992 };
5993
5994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5996 if (!SWIG_IsOK(res1)) {
5997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
5998 }
5999 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6000 ecode2 = SWIG_AsVal_long(obj1, &val2);
6001 if (!SWIG_IsOK(ecode2)) {
6002 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
6003 }
6004 arg2 = static_cast< long >(val2);
6005 {
6006 PyThreadState* __tstate = wxPyBeginAllowThreads();
6007 (arg1)->SetInsertionPoint(arg2);
6008 wxPyEndAllowThreads(__tstate);
6009 if (PyErr_Occurred()) SWIG_fail;
6010 }
6011 resultobj = SWIG_Py_Void();
6012 return resultobj;
6013 fail:
6014 return NULL;
6015 }
6016
6017
6018 SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6019 PyObject *resultobj = 0;
6020 wxComboBox *arg1 = (wxComboBox *) 0 ;
6021 long result;
6022 void *argp1 = 0 ;
6023 int res1 = 0 ;
6024 PyObject *swig_obj[1] ;
6025
6026 if (!args) SWIG_fail;
6027 swig_obj[0] = args;
6028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6029 if (!SWIG_IsOK(res1)) {
6030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6031 }
6032 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6033 {
6034 PyThreadState* __tstate = wxPyBeginAllowThreads();
6035 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6036 wxPyEndAllowThreads(__tstate);
6037 if (PyErr_Occurred()) SWIG_fail;
6038 }
6039 resultobj = SWIG_From_long(static_cast< long >(result));
6040 return resultobj;
6041 fail:
6042 return NULL;
6043 }
6044
6045
6046 SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6047 PyObject *resultobj = 0;
6048 wxComboBox *arg1 = (wxComboBox *) 0 ;
6049 long result;
6050 void *argp1 = 0 ;
6051 int res1 = 0 ;
6052 PyObject *swig_obj[1] ;
6053
6054 if (!args) SWIG_fail;
6055 swig_obj[0] = args;
6056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6057 if (!SWIG_IsOK(res1)) {
6058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6059 }
6060 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6061 {
6062 PyThreadState* __tstate = wxPyBeginAllowThreads();
6063 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6064 wxPyEndAllowThreads(__tstate);
6065 if (PyErr_Occurred()) SWIG_fail;
6066 }
6067 resultobj = SWIG_From_long(static_cast< long >(result));
6068 return resultobj;
6069 fail:
6070 return NULL;
6071 }
6072
6073
6074 SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6075 PyObject *resultobj = 0;
6076 wxComboBox *arg1 = (wxComboBox *) 0 ;
6077 long arg2 ;
6078 long arg3 ;
6079 wxString *arg4 = 0 ;
6080 void *argp1 = 0 ;
6081 int res1 = 0 ;
6082 long val2 ;
6083 int ecode2 = 0 ;
6084 long val3 ;
6085 int ecode3 = 0 ;
6086 bool temp4 = false ;
6087 PyObject * obj0 = 0 ;
6088 PyObject * obj1 = 0 ;
6089 PyObject * obj2 = 0 ;
6090 PyObject * obj3 = 0 ;
6091 char * kwnames[] = {
6092 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
6093 };
6094
6095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6097 if (!SWIG_IsOK(res1)) {
6098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6099 }
6100 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6101 ecode2 = SWIG_AsVal_long(obj1, &val2);
6102 if (!SWIG_IsOK(ecode2)) {
6103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6104 }
6105 arg2 = static_cast< long >(val2);
6106 ecode3 = SWIG_AsVal_long(obj2, &val3);
6107 if (!SWIG_IsOK(ecode3)) {
6108 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6109 }
6110 arg3 = static_cast< long >(val3);
6111 {
6112 arg4 = wxString_in_helper(obj3);
6113 if (arg4 == NULL) SWIG_fail;
6114 temp4 = true;
6115 }
6116 {
6117 PyThreadState* __tstate = wxPyBeginAllowThreads();
6118 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6119 wxPyEndAllowThreads(__tstate);
6120 if (PyErr_Occurred()) SWIG_fail;
6121 }
6122 resultobj = SWIG_Py_Void();
6123 {
6124 if (temp4)
6125 delete arg4;
6126 }
6127 return resultobj;
6128 fail:
6129 {
6130 if (temp4)
6131 delete arg4;
6132 }
6133 return NULL;
6134 }
6135
6136
6137 SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6138 PyObject *resultobj = 0;
6139 wxComboBox *arg1 = (wxComboBox *) 0 ;
6140 long arg2 ;
6141 long arg3 ;
6142 void *argp1 = 0 ;
6143 int res1 = 0 ;
6144 long val2 ;
6145 int ecode2 = 0 ;
6146 long val3 ;
6147 int ecode3 = 0 ;
6148 PyObject * obj0 = 0 ;
6149 PyObject * obj1 = 0 ;
6150 PyObject * obj2 = 0 ;
6151 char * kwnames[] = {
6152 (char *) "self",(char *) "from",(char *) "to", NULL
6153 };
6154
6155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6157 if (!SWIG_IsOK(res1)) {
6158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6159 }
6160 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6161 ecode2 = SWIG_AsVal_long(obj1, &val2);
6162 if (!SWIG_IsOK(ecode2)) {
6163 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6164 }
6165 arg2 = static_cast< long >(val2);
6166 ecode3 = SWIG_AsVal_long(obj2, &val3);
6167 if (!SWIG_IsOK(ecode3)) {
6168 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6169 }
6170 arg3 = static_cast< long >(val3);
6171 {
6172 PyThreadState* __tstate = wxPyBeginAllowThreads();
6173 (arg1)->SetSelection(arg2,arg3);
6174 wxPyEndAllowThreads(__tstate);
6175 if (PyErr_Occurred()) SWIG_fail;
6176 }
6177 resultobj = SWIG_Py_Void();
6178 return resultobj;
6179 fail:
6180 return NULL;
6181 }
6182
6183
6184 SWIGINTERN PyObject *_wrap_ComboBox_GetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6185 PyObject *resultobj = 0;
6186 wxComboBox *arg1 = (wxComboBox *) 0 ;
6187 long *arg2 = (long *) 0 ;
6188 long *arg3 = (long *) 0 ;
6189 void *argp1 = 0 ;
6190 int res1 = 0 ;
6191 long temp2 ;
6192 int res2 = SWIG_TMPOBJ ;
6193 long temp3 ;
6194 int res3 = SWIG_TMPOBJ ;
6195 PyObject *swig_obj[1] ;
6196
6197 arg2 = &temp2;
6198 arg3 = &temp3;
6199 if (!args) SWIG_fail;
6200 swig_obj[0] = args;
6201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6202 if (!SWIG_IsOK(res1)) {
6203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6204 }
6205 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6206 {
6207 PyThreadState* __tstate = wxPyBeginAllowThreads();
6208 (arg1)->GetSelection(arg2,arg3);
6209 wxPyEndAllowThreads(__tstate);
6210 if (PyErr_Occurred()) SWIG_fail;
6211 }
6212 resultobj = SWIG_Py_Void();
6213 if (SWIG_IsTmpObj(res2)) {
6214 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
6215 } else {
6216 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6217 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
6218 }
6219 if (SWIG_IsTmpObj(res3)) {
6220 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
6221 } else {
6222 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
6223 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
6224 }
6225 return resultobj;
6226 fail:
6227 return NULL;
6228 }
6229
6230
6231 SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6232 PyObject *resultobj = 0;
6233 wxComboBox *arg1 = (wxComboBox *) 0 ;
6234 int result;
6235 void *argp1 = 0 ;
6236 int res1 = 0 ;
6237 PyObject *swig_obj[1] ;
6238
6239 if (!args) SWIG_fail;
6240 swig_obj[0] = args;
6241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6242 if (!SWIG_IsOK(res1)) {
6243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6244 }
6245 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6246 {
6247 PyThreadState* __tstate = wxPyBeginAllowThreads();
6248 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6249 wxPyEndAllowThreads(__tstate);
6250 if (PyErr_Occurred()) SWIG_fail;
6251 }
6252 resultobj = SWIG_From_int(static_cast< int >(result));
6253 return resultobj;
6254 fail:
6255 return NULL;
6256 }
6257
6258
6259 SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6260 PyObject *resultobj = 0;
6261 wxComboBox *arg1 = (wxComboBox *) 0 ;
6262 wxString *arg2 = 0 ;
6263 bool result;
6264 void *argp1 = 0 ;
6265 int res1 = 0 ;
6266 bool temp2 = false ;
6267 PyObject * obj0 = 0 ;
6268 PyObject * obj1 = 0 ;
6269 char * kwnames[] = {
6270 (char *) "self",(char *) "string", NULL
6271 };
6272
6273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6275 if (!SWIG_IsOK(res1)) {
6276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6277 }
6278 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6279 {
6280 arg2 = wxString_in_helper(obj1);
6281 if (arg2 == NULL) SWIG_fail;
6282 temp2 = true;
6283 }
6284 {
6285 PyThreadState* __tstate = wxPyBeginAllowThreads();
6286 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6287 wxPyEndAllowThreads(__tstate);
6288 if (PyErr_Occurred()) SWIG_fail;
6289 }
6290 {
6291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6292 }
6293 {
6294 if (temp2)
6295 delete arg2;
6296 }
6297 return resultobj;
6298 fail:
6299 {
6300 if (temp2)
6301 delete arg2;
6302 }
6303 return NULL;
6304 }
6305
6306
6307 SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6308 PyObject *resultobj = 0;
6309 wxComboBox *arg1 = (wxComboBox *) 0 ;
6310 int arg2 ;
6311 wxString *arg3 = 0 ;
6312 void *argp1 = 0 ;
6313 int res1 = 0 ;
6314 int val2 ;
6315 int ecode2 = 0 ;
6316 bool temp3 = false ;
6317 PyObject * obj0 = 0 ;
6318 PyObject * obj1 = 0 ;
6319 PyObject * obj2 = 0 ;
6320 char * kwnames[] = {
6321 (char *) "self",(char *) "n",(char *) "string", NULL
6322 };
6323
6324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6326 if (!SWIG_IsOK(res1)) {
6327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'");
6328 }
6329 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6330 ecode2 = SWIG_AsVal_int(obj1, &val2);
6331 if (!SWIG_IsOK(ecode2)) {
6332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'");
6333 }
6334 arg2 = static_cast< int >(val2);
6335 {
6336 arg3 = wxString_in_helper(obj2);
6337 if (arg3 == NULL) SWIG_fail;
6338 temp3 = true;
6339 }
6340 {
6341 PyThreadState* __tstate = wxPyBeginAllowThreads();
6342 (arg1)->SetString(arg2,(wxString const &)*arg3);
6343 wxPyEndAllowThreads(__tstate);
6344 if (PyErr_Occurred()) SWIG_fail;
6345 }
6346 resultobj = SWIG_Py_Void();
6347 {
6348 if (temp3)
6349 delete arg3;
6350 }
6351 return resultobj;
6352 fail:
6353 {
6354 if (temp3)
6355 delete arg3;
6356 }
6357 return NULL;
6358 }
6359
6360
6361 SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6362 PyObject *resultobj = 0;
6363 wxComboBox *arg1 = (wxComboBox *) 0 ;
6364 bool arg2 ;
6365 void *argp1 = 0 ;
6366 int res1 = 0 ;
6367 bool val2 ;
6368 int ecode2 = 0 ;
6369 PyObject * obj0 = 0 ;
6370 PyObject * obj1 = 0 ;
6371 char * kwnames[] = {
6372 (char *) "self",(char *) "editable", NULL
6373 };
6374
6375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) 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_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6379 }
6380 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6381 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6382 if (!SWIG_IsOK(ecode2)) {
6383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6384 }
6385 arg2 = static_cast< bool >(val2);
6386 {
6387 PyThreadState* __tstate = wxPyBeginAllowThreads();
6388 (arg1)->SetEditable(arg2);
6389 wxPyEndAllowThreads(__tstate);
6390 if (PyErr_Occurred()) SWIG_fail;
6391 }
6392 resultobj = SWIG_Py_Void();
6393 return resultobj;
6394 fail:
6395 return NULL;
6396 }
6397
6398
6399 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6400 PyObject *resultobj = 0;
6401 wxComboBox *arg1 = (wxComboBox *) 0 ;
6402 void *argp1 = 0 ;
6403 int res1 = 0 ;
6404 PyObject *swig_obj[1] ;
6405
6406 if (!args) SWIG_fail;
6407 swig_obj[0] = args;
6408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6409 if (!SWIG_IsOK(res1)) {
6410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6411 }
6412 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6413 {
6414 PyThreadState* __tstate = wxPyBeginAllowThreads();
6415 (arg1)->SetInsertionPointEnd();
6416 wxPyEndAllowThreads(__tstate);
6417 if (PyErr_Occurred()) SWIG_fail;
6418 }
6419 resultobj = SWIG_Py_Void();
6420 return resultobj;
6421 fail:
6422 return NULL;
6423 }
6424
6425
6426 SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6427 PyObject *resultobj = 0;
6428 wxComboBox *arg1 = (wxComboBox *) 0 ;
6429 long arg2 ;
6430 long arg3 ;
6431 void *argp1 = 0 ;
6432 int res1 = 0 ;
6433 long val2 ;
6434 int ecode2 = 0 ;
6435 long val3 ;
6436 int ecode3 = 0 ;
6437 PyObject * obj0 = 0 ;
6438 PyObject * obj1 = 0 ;
6439 PyObject * obj2 = 0 ;
6440 char * kwnames[] = {
6441 (char *) "self",(char *) "from",(char *) "to", NULL
6442 };
6443
6444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6446 if (!SWIG_IsOK(res1)) {
6447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6448 }
6449 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6450 ecode2 = SWIG_AsVal_long(obj1, &val2);
6451 if (!SWIG_IsOK(ecode2)) {
6452 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6453 }
6454 arg2 = static_cast< long >(val2);
6455 ecode3 = SWIG_AsVal_long(obj2, &val3);
6456 if (!SWIG_IsOK(ecode3)) {
6457 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6458 }
6459 arg3 = static_cast< long >(val3);
6460 {
6461 PyThreadState* __tstate = wxPyBeginAllowThreads();
6462 (arg1)->Remove(arg2,arg3);
6463 wxPyEndAllowThreads(__tstate);
6464 if (PyErr_Occurred()) SWIG_fail;
6465 }
6466 resultobj = SWIG_Py_Void();
6467 return resultobj;
6468 fail:
6469 return NULL;
6470 }
6471
6472
6473 SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6474 PyObject *resultobj = 0;
6475 wxComboBox *arg1 = (wxComboBox *) 0 ;
6476 bool result;
6477 void *argp1 = 0 ;
6478 int res1 = 0 ;
6479 PyObject *swig_obj[1] ;
6480
6481 if (!args) SWIG_fail;
6482 swig_obj[0] = args;
6483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6484 if (!SWIG_IsOK(res1)) {
6485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6486 }
6487 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6488 {
6489 PyThreadState* __tstate = wxPyBeginAllowThreads();
6490 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6491 wxPyEndAllowThreads(__tstate);
6492 if (PyErr_Occurred()) SWIG_fail;
6493 }
6494 {
6495 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6496 }
6497 return resultobj;
6498 fail:
6499 return NULL;
6500 }
6501
6502
6503 SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6504 PyObject *resultobj = 0;
6505 wxComboBox *arg1 = (wxComboBox *) 0 ;
6506 void *argp1 = 0 ;
6507 int res1 = 0 ;
6508 PyObject *swig_obj[1] ;
6509
6510 if (!args) SWIG_fail;
6511 swig_obj[0] = args;
6512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6513 if (!SWIG_IsOK(res1)) {
6514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6515 }
6516 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6517 {
6518 PyThreadState* __tstate = wxPyBeginAllowThreads();
6519 (arg1)->Undo();
6520 wxPyEndAllowThreads(__tstate);
6521 if (PyErr_Occurred()) SWIG_fail;
6522 }
6523 resultobj = SWIG_Py_Void();
6524 return resultobj;
6525 fail:
6526 return NULL;
6527 }
6528
6529
6530 SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6531 PyObject *resultobj = 0;
6532 wxComboBox *arg1 = (wxComboBox *) 0 ;
6533 void *argp1 = 0 ;
6534 int res1 = 0 ;
6535 PyObject *swig_obj[1] ;
6536
6537 if (!args) SWIG_fail;
6538 swig_obj[0] = args;
6539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6540 if (!SWIG_IsOK(res1)) {
6541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6542 }
6543 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6544 {
6545 PyThreadState* __tstate = wxPyBeginAllowThreads();
6546 (arg1)->Redo();
6547 wxPyEndAllowThreads(__tstate);
6548 if (PyErr_Occurred()) SWIG_fail;
6549 }
6550 resultobj = SWIG_Py_Void();
6551 return resultobj;
6552 fail:
6553 return NULL;
6554 }
6555
6556
6557 SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6558 PyObject *resultobj = 0;
6559 wxComboBox *arg1 = (wxComboBox *) 0 ;
6560 void *argp1 = 0 ;
6561 int res1 = 0 ;
6562 PyObject *swig_obj[1] ;
6563
6564 if (!args) SWIG_fail;
6565 swig_obj[0] = args;
6566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6567 if (!SWIG_IsOK(res1)) {
6568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6569 }
6570 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6571 {
6572 PyThreadState* __tstate = wxPyBeginAllowThreads();
6573 (arg1)->SelectAll();
6574 wxPyEndAllowThreads(__tstate);
6575 if (PyErr_Occurred()) SWIG_fail;
6576 }
6577 resultobj = SWIG_Py_Void();
6578 return resultobj;
6579 fail:
6580 return NULL;
6581 }
6582
6583
6584 SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6585 PyObject *resultobj = 0;
6586 wxComboBox *arg1 = (wxComboBox *) 0 ;
6587 bool result;
6588 void *argp1 = 0 ;
6589 int res1 = 0 ;
6590 PyObject *swig_obj[1] ;
6591
6592 if (!args) SWIG_fail;
6593 swig_obj[0] = args;
6594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6595 if (!SWIG_IsOK(res1)) {
6596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6597 }
6598 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6599 {
6600 PyThreadState* __tstate = wxPyBeginAllowThreads();
6601 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6602 wxPyEndAllowThreads(__tstate);
6603 if (PyErr_Occurred()) SWIG_fail;
6604 }
6605 {
6606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6607 }
6608 return resultobj;
6609 fail:
6610 return NULL;
6611 }
6612
6613
6614 SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6615 PyObject *resultobj = 0;
6616 wxComboBox *arg1 = (wxComboBox *) 0 ;
6617 bool result;
6618 void *argp1 = 0 ;
6619 int res1 = 0 ;
6620 PyObject *swig_obj[1] ;
6621
6622 if (!args) SWIG_fail;
6623 swig_obj[0] = args;
6624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6625 if (!SWIG_IsOK(res1)) {
6626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6627 }
6628 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6629 {
6630 PyThreadState* __tstate = wxPyBeginAllowThreads();
6631 result = (bool)((wxComboBox const *)arg1)->CanCut();
6632 wxPyEndAllowThreads(__tstate);
6633 if (PyErr_Occurred()) SWIG_fail;
6634 }
6635 {
6636 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6637 }
6638 return resultobj;
6639 fail:
6640 return NULL;
6641 }
6642
6643
6644 SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6645 PyObject *resultobj = 0;
6646 wxComboBox *arg1 = (wxComboBox *) 0 ;
6647 bool result;
6648 void *argp1 = 0 ;
6649 int res1 = 0 ;
6650 PyObject *swig_obj[1] ;
6651
6652 if (!args) SWIG_fail;
6653 swig_obj[0] = args;
6654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6655 if (!SWIG_IsOK(res1)) {
6656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6657 }
6658 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6659 {
6660 PyThreadState* __tstate = wxPyBeginAllowThreads();
6661 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6662 wxPyEndAllowThreads(__tstate);
6663 if (PyErr_Occurred()) SWIG_fail;
6664 }
6665 {
6666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6667 }
6668 return resultobj;
6669 fail:
6670 return NULL;
6671 }
6672
6673
6674 SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6675 PyObject *resultobj = 0;
6676 wxComboBox *arg1 = (wxComboBox *) 0 ;
6677 bool result;
6678 void *argp1 = 0 ;
6679 int res1 = 0 ;
6680 PyObject *swig_obj[1] ;
6681
6682 if (!args) SWIG_fail;
6683 swig_obj[0] = args;
6684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6685 if (!SWIG_IsOK(res1)) {
6686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6687 }
6688 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6689 {
6690 PyThreadState* __tstate = wxPyBeginAllowThreads();
6691 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6692 wxPyEndAllowThreads(__tstate);
6693 if (PyErr_Occurred()) SWIG_fail;
6694 }
6695 {
6696 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6697 }
6698 return resultobj;
6699 fail:
6700 return NULL;
6701 }
6702
6703
6704 SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6705 PyObject *resultobj = 0;
6706 wxComboBox *arg1 = (wxComboBox *) 0 ;
6707 bool result;
6708 void *argp1 = 0 ;
6709 int res1 = 0 ;
6710 PyObject *swig_obj[1] ;
6711
6712 if (!args) SWIG_fail;
6713 swig_obj[0] = args;
6714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6715 if (!SWIG_IsOK(res1)) {
6716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6717 }
6718 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6719 {
6720 PyThreadState* __tstate = wxPyBeginAllowThreads();
6721 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6722 wxPyEndAllowThreads(__tstate);
6723 if (PyErr_Occurred()) SWIG_fail;
6724 }
6725 {
6726 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6727 }
6728 return resultobj;
6729 fail:
6730 return NULL;
6731 }
6732
6733
6734 SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6735 PyObject *resultobj = 0;
6736 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6737 SwigValueWrapper<wxVisualAttributes > result;
6738 int val1 ;
6739 int ecode1 = 0 ;
6740 PyObject * obj0 = 0 ;
6741 char * kwnames[] = {
6742 (char *) "variant", NULL
6743 };
6744
6745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6746 if (obj0) {
6747 ecode1 = SWIG_AsVal_int(obj0, &val1);
6748 if (!SWIG_IsOK(ecode1)) {
6749 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6750 }
6751 arg1 = static_cast< wxWindowVariant >(val1);
6752 }
6753 {
6754 if (!wxPyCheckForApp()) SWIG_fail;
6755 PyThreadState* __tstate = wxPyBeginAllowThreads();
6756 result = wxComboBox::GetClassDefaultAttributes(arg1);
6757 wxPyEndAllowThreads(__tstate);
6758 if (PyErr_Occurred()) SWIG_fail;
6759 }
6760 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6761 return resultobj;
6762 fail:
6763 return NULL;
6764 }
6765
6766
6767 SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6768 PyObject *obj;
6769 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6770 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6771 return SWIG_Py_Void();
6772 }
6773
6774 SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6775 return SWIG_Python_InitShadowInstance(args);
6776 }
6777
6778 SWIGINTERN int GaugeNameStr_set(PyObject *) {
6779 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6780 return 1;
6781 }
6782
6783
6784 SWIGINTERN PyObject *GaugeNameStr_get(void) {
6785 PyObject *pyobj = 0;
6786
6787 {
6788 #if wxUSE_UNICODE
6789 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6790 #else
6791 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6792 #endif
6793 }
6794 return pyobj;
6795 }
6796
6797
6798 SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6799 PyObject *resultobj = 0;
6800 wxWindow *arg1 = (wxWindow *) 0 ;
6801 int arg2 = (int) -1 ;
6802 int arg3 = (int) 100 ;
6803 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6804 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6805 wxSize const &arg5_defvalue = wxDefaultSize ;
6806 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6807 long arg6 = (long) wxGA_HORIZONTAL ;
6808 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6809 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6810 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6811 wxString *arg8 = (wxString *) &arg8_defvalue ;
6812 wxGauge *result = 0 ;
6813 void *argp1 = 0 ;
6814 int res1 = 0 ;
6815 int val2 ;
6816 int ecode2 = 0 ;
6817 int val3 ;
6818 int ecode3 = 0 ;
6819 wxPoint temp4 ;
6820 wxSize temp5 ;
6821 long val6 ;
6822 int ecode6 = 0 ;
6823 void *argp7 = 0 ;
6824 int res7 = 0 ;
6825 bool temp8 = false ;
6826 PyObject * obj0 = 0 ;
6827 PyObject * obj1 = 0 ;
6828 PyObject * obj2 = 0 ;
6829 PyObject * obj3 = 0 ;
6830 PyObject * obj4 = 0 ;
6831 PyObject * obj5 = 0 ;
6832 PyObject * obj6 = 0 ;
6833 PyObject * obj7 = 0 ;
6834 char * kwnames[] = {
6835 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6836 };
6837
6838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6840 if (!SWIG_IsOK(res1)) {
6841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6842 }
6843 arg1 = reinterpret_cast< wxWindow * >(argp1);
6844 if (obj1) {
6845 ecode2 = SWIG_AsVal_int(obj1, &val2);
6846 if (!SWIG_IsOK(ecode2)) {
6847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6848 }
6849 arg2 = static_cast< int >(val2);
6850 }
6851 if (obj2) {
6852 ecode3 = SWIG_AsVal_int(obj2, &val3);
6853 if (!SWIG_IsOK(ecode3)) {
6854 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6855 }
6856 arg3 = static_cast< int >(val3);
6857 }
6858 if (obj3) {
6859 {
6860 arg4 = &temp4;
6861 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6862 }
6863 }
6864 if (obj4) {
6865 {
6866 arg5 = &temp5;
6867 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6868 }
6869 }
6870 if (obj5) {
6871 ecode6 = SWIG_AsVal_long(obj5, &val6);
6872 if (!SWIG_IsOK(ecode6)) {
6873 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6874 }
6875 arg6 = static_cast< long >(val6);
6876 }
6877 if (obj6) {
6878 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6879 if (!SWIG_IsOK(res7)) {
6880 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6881 }
6882 if (!argp7) {
6883 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6884 }
6885 arg7 = reinterpret_cast< wxValidator * >(argp7);
6886 }
6887 if (obj7) {
6888 {
6889 arg8 = wxString_in_helper(obj7);
6890 if (arg8 == NULL) SWIG_fail;
6891 temp8 = true;
6892 }
6893 }
6894 {
6895 if (!wxPyCheckForApp()) SWIG_fail;
6896 PyThreadState* __tstate = wxPyBeginAllowThreads();
6897 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6898 wxPyEndAllowThreads(__tstate);
6899 if (PyErr_Occurred()) SWIG_fail;
6900 }
6901 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6902 {
6903 if (temp8)
6904 delete arg8;
6905 }
6906 return resultobj;
6907 fail:
6908 {
6909 if (temp8)
6910 delete arg8;
6911 }
6912 return NULL;
6913 }
6914
6915
6916 SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6917 PyObject *resultobj = 0;
6918 wxGauge *result = 0 ;
6919
6920 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6921 {
6922 if (!wxPyCheckForApp()) SWIG_fail;
6923 PyThreadState* __tstate = wxPyBeginAllowThreads();
6924 result = (wxGauge *)new wxGauge();
6925 wxPyEndAllowThreads(__tstate);
6926 if (PyErr_Occurred()) SWIG_fail;
6927 }
6928 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6929 return resultobj;
6930 fail:
6931 return NULL;
6932 }
6933
6934
6935 SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6936 PyObject *resultobj = 0;
6937 wxGauge *arg1 = (wxGauge *) 0 ;
6938 wxWindow *arg2 = (wxWindow *) 0 ;
6939 int arg3 = (int) -1 ;
6940 int arg4 = (int) 100 ;
6941 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6942 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6943 wxSize const &arg6_defvalue = wxDefaultSize ;
6944 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6945 long arg7 = (long) wxGA_HORIZONTAL ;
6946 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6947 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6948 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6949 wxString *arg9 = (wxString *) &arg9_defvalue ;
6950 bool result;
6951 void *argp1 = 0 ;
6952 int res1 = 0 ;
6953 void *argp2 = 0 ;
6954 int res2 = 0 ;
6955 int val3 ;
6956 int ecode3 = 0 ;
6957 int val4 ;
6958 int ecode4 = 0 ;
6959 wxPoint temp5 ;
6960 wxSize temp6 ;
6961 long val7 ;
6962 int ecode7 = 0 ;
6963 void *argp8 = 0 ;
6964 int res8 = 0 ;
6965 bool temp9 = false ;
6966 PyObject * obj0 = 0 ;
6967 PyObject * obj1 = 0 ;
6968 PyObject * obj2 = 0 ;
6969 PyObject * obj3 = 0 ;
6970 PyObject * obj4 = 0 ;
6971 PyObject * obj5 = 0 ;
6972 PyObject * obj6 = 0 ;
6973 PyObject * obj7 = 0 ;
6974 PyObject * obj8 = 0 ;
6975 char * kwnames[] = {
6976 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6977 };
6978
6979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6981 if (!SWIG_IsOK(res1)) {
6982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6983 }
6984 arg1 = reinterpret_cast< wxGauge * >(argp1);
6985 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6986 if (!SWIG_IsOK(res2)) {
6987 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6988 }
6989 arg2 = reinterpret_cast< wxWindow * >(argp2);
6990 if (obj2) {
6991 ecode3 = SWIG_AsVal_int(obj2, &val3);
6992 if (!SWIG_IsOK(ecode3)) {
6993 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6994 }
6995 arg3 = static_cast< int >(val3);
6996 }
6997 if (obj3) {
6998 ecode4 = SWIG_AsVal_int(obj3, &val4);
6999 if (!SWIG_IsOK(ecode4)) {
7000 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
7001 }
7002 arg4 = static_cast< int >(val4);
7003 }
7004 if (obj4) {
7005 {
7006 arg5 = &temp5;
7007 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7008 }
7009 }
7010 if (obj5) {
7011 {
7012 arg6 = &temp6;
7013 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7014 }
7015 }
7016 if (obj6) {
7017 ecode7 = SWIG_AsVal_long(obj6, &val7);
7018 if (!SWIG_IsOK(ecode7)) {
7019 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
7020 }
7021 arg7 = static_cast< long >(val7);
7022 }
7023 if (obj7) {
7024 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
7025 if (!SWIG_IsOK(res8)) {
7026 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7027 }
7028 if (!argp8) {
7029 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
7030 }
7031 arg8 = reinterpret_cast< wxValidator * >(argp8);
7032 }
7033 if (obj8) {
7034 {
7035 arg9 = wxString_in_helper(obj8);
7036 if (arg9 == NULL) SWIG_fail;
7037 temp9 = true;
7038 }
7039 }
7040 {
7041 PyThreadState* __tstate = wxPyBeginAllowThreads();
7042 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7043 wxPyEndAllowThreads(__tstate);
7044 if (PyErr_Occurred()) SWIG_fail;
7045 }
7046 {
7047 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7048 }
7049 {
7050 if (temp9)
7051 delete arg9;
7052 }
7053 return resultobj;
7054 fail:
7055 {
7056 if (temp9)
7057 delete arg9;
7058 }
7059 return NULL;
7060 }
7061
7062
7063 SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7064 PyObject *resultobj = 0;
7065 wxGauge *arg1 = (wxGauge *) 0 ;
7066 int arg2 ;
7067 void *argp1 = 0 ;
7068 int res1 = 0 ;
7069 int val2 ;
7070 int ecode2 = 0 ;
7071 PyObject * obj0 = 0 ;
7072 PyObject * obj1 = 0 ;
7073 char * kwnames[] = {
7074 (char *) "self",(char *) "range", NULL
7075 };
7076
7077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7079 if (!SWIG_IsOK(res1)) {
7080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7081 }
7082 arg1 = reinterpret_cast< wxGauge * >(argp1);
7083 ecode2 = SWIG_AsVal_int(obj1, &val2);
7084 if (!SWIG_IsOK(ecode2)) {
7085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7086 }
7087 arg2 = static_cast< int >(val2);
7088 {
7089 PyThreadState* __tstate = wxPyBeginAllowThreads();
7090 (arg1)->SetRange(arg2);
7091 wxPyEndAllowThreads(__tstate);
7092 if (PyErr_Occurred()) SWIG_fail;
7093 }
7094 resultobj = SWIG_Py_Void();
7095 return resultobj;
7096 fail:
7097 return NULL;
7098 }
7099
7100
7101 SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7102 PyObject *resultobj = 0;
7103 wxGauge *arg1 = (wxGauge *) 0 ;
7104 int result;
7105 void *argp1 = 0 ;
7106 int res1 = 0 ;
7107 PyObject *swig_obj[1] ;
7108
7109 if (!args) SWIG_fail;
7110 swig_obj[0] = args;
7111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7112 if (!SWIG_IsOK(res1)) {
7113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7114 }
7115 arg1 = reinterpret_cast< wxGauge * >(argp1);
7116 {
7117 PyThreadState* __tstate = wxPyBeginAllowThreads();
7118 result = (int)((wxGauge const *)arg1)->GetRange();
7119 wxPyEndAllowThreads(__tstate);
7120 if (PyErr_Occurred()) SWIG_fail;
7121 }
7122 resultobj = SWIG_From_int(static_cast< int >(result));
7123 return resultobj;
7124 fail:
7125 return NULL;
7126 }
7127
7128
7129 SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7130 PyObject *resultobj = 0;
7131 wxGauge *arg1 = (wxGauge *) 0 ;
7132 int arg2 ;
7133 void *argp1 = 0 ;
7134 int res1 = 0 ;
7135 int val2 ;
7136 int ecode2 = 0 ;
7137 PyObject * obj0 = 0 ;
7138 PyObject * obj1 = 0 ;
7139 char * kwnames[] = {
7140 (char *) "self",(char *) "pos", NULL
7141 };
7142
7143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7145 if (!SWIG_IsOK(res1)) {
7146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7147 }
7148 arg1 = reinterpret_cast< wxGauge * >(argp1);
7149 ecode2 = SWIG_AsVal_int(obj1, &val2);
7150 if (!SWIG_IsOK(ecode2)) {
7151 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7152 }
7153 arg2 = static_cast< int >(val2);
7154 {
7155 PyThreadState* __tstate = wxPyBeginAllowThreads();
7156 (arg1)->SetValue(arg2);
7157 wxPyEndAllowThreads(__tstate);
7158 if (PyErr_Occurred()) SWIG_fail;
7159 }
7160 resultobj = SWIG_Py_Void();
7161 return resultobj;
7162 fail:
7163 return NULL;
7164 }
7165
7166
7167 SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7168 PyObject *resultobj = 0;
7169 wxGauge *arg1 = (wxGauge *) 0 ;
7170 int result;
7171 void *argp1 = 0 ;
7172 int res1 = 0 ;
7173 PyObject *swig_obj[1] ;
7174
7175 if (!args) SWIG_fail;
7176 swig_obj[0] = args;
7177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7178 if (!SWIG_IsOK(res1)) {
7179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7180 }
7181 arg1 = reinterpret_cast< wxGauge * >(argp1);
7182 {
7183 PyThreadState* __tstate = wxPyBeginAllowThreads();
7184 result = (int)((wxGauge const *)arg1)->GetValue();
7185 wxPyEndAllowThreads(__tstate);
7186 if (PyErr_Occurred()) SWIG_fail;
7187 }
7188 resultobj = SWIG_From_int(static_cast< int >(result));
7189 return resultobj;
7190 fail:
7191 return NULL;
7192 }
7193
7194
7195 SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7196 PyObject *resultobj = 0;
7197 wxGauge *arg1 = (wxGauge *) 0 ;
7198 bool result;
7199 void *argp1 = 0 ;
7200 int res1 = 0 ;
7201 PyObject *swig_obj[1] ;
7202
7203 if (!args) SWIG_fail;
7204 swig_obj[0] = args;
7205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7206 if (!SWIG_IsOK(res1)) {
7207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7208 }
7209 arg1 = reinterpret_cast< wxGauge * >(argp1);
7210 {
7211 PyThreadState* __tstate = wxPyBeginAllowThreads();
7212 result = (bool)((wxGauge const *)arg1)->IsVertical();
7213 wxPyEndAllowThreads(__tstate);
7214 if (PyErr_Occurred()) SWIG_fail;
7215 }
7216 {
7217 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7218 }
7219 return resultobj;
7220 fail:
7221 return NULL;
7222 }
7223
7224
7225 SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7226 PyObject *resultobj = 0;
7227 wxGauge *arg1 = (wxGauge *) 0 ;
7228 int arg2 ;
7229 void *argp1 = 0 ;
7230 int res1 = 0 ;
7231 int val2 ;
7232 int ecode2 = 0 ;
7233 PyObject * obj0 = 0 ;
7234 PyObject * obj1 = 0 ;
7235 char * kwnames[] = {
7236 (char *) "self",(char *) "w", NULL
7237 };
7238
7239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7241 if (!SWIG_IsOK(res1)) {
7242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7243 }
7244 arg1 = reinterpret_cast< wxGauge * >(argp1);
7245 ecode2 = SWIG_AsVal_int(obj1, &val2);
7246 if (!SWIG_IsOK(ecode2)) {
7247 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7248 }
7249 arg2 = static_cast< int >(val2);
7250 {
7251 PyThreadState* __tstate = wxPyBeginAllowThreads();
7252 (arg1)->SetShadowWidth(arg2);
7253 wxPyEndAllowThreads(__tstate);
7254 if (PyErr_Occurred()) SWIG_fail;
7255 }
7256 resultobj = SWIG_Py_Void();
7257 return resultobj;
7258 fail:
7259 return NULL;
7260 }
7261
7262
7263 SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7264 PyObject *resultobj = 0;
7265 wxGauge *arg1 = (wxGauge *) 0 ;
7266 int result;
7267 void *argp1 = 0 ;
7268 int res1 = 0 ;
7269 PyObject *swig_obj[1] ;
7270
7271 if (!args) SWIG_fail;
7272 swig_obj[0] = args;
7273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7274 if (!SWIG_IsOK(res1)) {
7275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7276 }
7277 arg1 = reinterpret_cast< wxGauge * >(argp1);
7278 {
7279 PyThreadState* __tstate = wxPyBeginAllowThreads();
7280 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7281 wxPyEndAllowThreads(__tstate);
7282 if (PyErr_Occurred()) SWIG_fail;
7283 }
7284 resultobj = SWIG_From_int(static_cast< int >(result));
7285 return resultobj;
7286 fail:
7287 return NULL;
7288 }
7289
7290
7291 SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7292 PyObject *resultobj = 0;
7293 wxGauge *arg1 = (wxGauge *) 0 ;
7294 int arg2 ;
7295 void *argp1 = 0 ;
7296 int res1 = 0 ;
7297 int val2 ;
7298 int ecode2 = 0 ;
7299 PyObject * obj0 = 0 ;
7300 PyObject * obj1 = 0 ;
7301 char * kwnames[] = {
7302 (char *) "self",(char *) "w", NULL
7303 };
7304
7305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7307 if (!SWIG_IsOK(res1)) {
7308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7309 }
7310 arg1 = reinterpret_cast< wxGauge * >(argp1);
7311 ecode2 = SWIG_AsVal_int(obj1, &val2);
7312 if (!SWIG_IsOK(ecode2)) {
7313 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7314 }
7315 arg2 = static_cast< int >(val2);
7316 {
7317 PyThreadState* __tstate = wxPyBeginAllowThreads();
7318 (arg1)->SetBezelFace(arg2);
7319 wxPyEndAllowThreads(__tstate);
7320 if (PyErr_Occurred()) SWIG_fail;
7321 }
7322 resultobj = SWIG_Py_Void();
7323 return resultobj;
7324 fail:
7325 return NULL;
7326 }
7327
7328
7329 SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7330 PyObject *resultobj = 0;
7331 wxGauge *arg1 = (wxGauge *) 0 ;
7332 int result;
7333 void *argp1 = 0 ;
7334 int res1 = 0 ;
7335 PyObject *swig_obj[1] ;
7336
7337 if (!args) SWIG_fail;
7338 swig_obj[0] = args;
7339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7340 if (!SWIG_IsOK(res1)) {
7341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7342 }
7343 arg1 = reinterpret_cast< wxGauge * >(argp1);
7344 {
7345 PyThreadState* __tstate = wxPyBeginAllowThreads();
7346 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7347 wxPyEndAllowThreads(__tstate);
7348 if (PyErr_Occurred()) SWIG_fail;
7349 }
7350 resultobj = SWIG_From_int(static_cast< int >(result));
7351 return resultobj;
7352 fail:
7353 return NULL;
7354 }
7355
7356
7357 SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7358 PyObject *resultobj = 0;
7359 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7360 SwigValueWrapper<wxVisualAttributes > result;
7361 int val1 ;
7362 int ecode1 = 0 ;
7363 PyObject * obj0 = 0 ;
7364 char * kwnames[] = {
7365 (char *) "variant", NULL
7366 };
7367
7368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7369 if (obj0) {
7370 ecode1 = SWIG_AsVal_int(obj0, &val1);
7371 if (!SWIG_IsOK(ecode1)) {
7372 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7373 }
7374 arg1 = static_cast< wxWindowVariant >(val1);
7375 }
7376 {
7377 if (!wxPyCheckForApp()) SWIG_fail;
7378 PyThreadState* __tstate = wxPyBeginAllowThreads();
7379 result = wxGauge::GetClassDefaultAttributes(arg1);
7380 wxPyEndAllowThreads(__tstate);
7381 if (PyErr_Occurred()) SWIG_fail;
7382 }
7383 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7384 return resultobj;
7385 fail:
7386 return NULL;
7387 }
7388
7389
7390 SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7391 PyObject *obj;
7392 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7393 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7394 return SWIG_Py_Void();
7395 }
7396
7397 SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7398 return SWIG_Python_InitShadowInstance(args);
7399 }
7400
7401 SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7402 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7403 return 1;
7404 }
7405
7406
7407 SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7408 PyObject *pyobj = 0;
7409
7410 {
7411 #if wxUSE_UNICODE
7412 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7413 #else
7414 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7415 #endif
7416 }
7417 return pyobj;
7418 }
7419
7420
7421 SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7422 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7423 return 1;
7424 }
7425
7426
7427 SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7428 PyObject *pyobj = 0;
7429
7430 {
7431 #if wxUSE_UNICODE
7432 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7433 #else
7434 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7435 #endif
7436 }
7437 return pyobj;
7438 }
7439
7440
7441 SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7442 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7443 return 1;
7444 }
7445
7446
7447 SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7448 PyObject *pyobj = 0;
7449
7450 {
7451 #if wxUSE_UNICODE
7452 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7453 #else
7454 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7455 #endif
7456 }
7457 return pyobj;
7458 }
7459
7460
7461 SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7462 PyObject *resultobj = 0;
7463 wxWindow *arg1 = (wxWindow *) 0 ;
7464 int arg2 = (int) -1 ;
7465 wxString const &arg3_defvalue = wxPyEmptyString ;
7466 wxString *arg3 = (wxString *) &arg3_defvalue ;
7467 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7468 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7469 wxSize const &arg5_defvalue = wxDefaultSize ;
7470 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7471 long arg6 = (long) 0 ;
7472 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7473 wxString *arg7 = (wxString *) &arg7_defvalue ;
7474 wxStaticBox *result = 0 ;
7475 void *argp1 = 0 ;
7476 int res1 = 0 ;
7477 int val2 ;
7478 int ecode2 = 0 ;
7479 bool temp3 = false ;
7480 wxPoint temp4 ;
7481 wxSize temp5 ;
7482 long val6 ;
7483 int ecode6 = 0 ;
7484 bool temp7 = false ;
7485 PyObject * obj0 = 0 ;
7486 PyObject * obj1 = 0 ;
7487 PyObject * obj2 = 0 ;
7488 PyObject * obj3 = 0 ;
7489 PyObject * obj4 = 0 ;
7490 PyObject * obj5 = 0 ;
7491 PyObject * obj6 = 0 ;
7492 char * kwnames[] = {
7493 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7494 };
7495
7496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7498 if (!SWIG_IsOK(res1)) {
7499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7500 }
7501 arg1 = reinterpret_cast< wxWindow * >(argp1);
7502 if (obj1) {
7503 ecode2 = SWIG_AsVal_int(obj1, &val2);
7504 if (!SWIG_IsOK(ecode2)) {
7505 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7506 }
7507 arg2 = static_cast< int >(val2);
7508 }
7509 if (obj2) {
7510 {
7511 arg3 = wxString_in_helper(obj2);
7512 if (arg3 == NULL) SWIG_fail;
7513 temp3 = true;
7514 }
7515 }
7516 if (obj3) {
7517 {
7518 arg4 = &temp4;
7519 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7520 }
7521 }
7522 if (obj4) {
7523 {
7524 arg5 = &temp5;
7525 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7526 }
7527 }
7528 if (obj5) {
7529 ecode6 = SWIG_AsVal_long(obj5, &val6);
7530 if (!SWIG_IsOK(ecode6)) {
7531 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7532 }
7533 arg6 = static_cast< long >(val6);
7534 }
7535 if (obj6) {
7536 {
7537 arg7 = wxString_in_helper(obj6);
7538 if (arg7 == NULL) SWIG_fail;
7539 temp7 = true;
7540 }
7541 }
7542 {
7543 if (!wxPyCheckForApp()) SWIG_fail;
7544 PyThreadState* __tstate = wxPyBeginAllowThreads();
7545 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7546 wxPyEndAllowThreads(__tstate);
7547 if (PyErr_Occurred()) SWIG_fail;
7548 }
7549 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7550 {
7551 if (temp3)
7552 delete arg3;
7553 }
7554 {
7555 if (temp7)
7556 delete arg7;
7557 }
7558 return resultobj;
7559 fail:
7560 {
7561 if (temp3)
7562 delete arg3;
7563 }
7564 {
7565 if (temp7)
7566 delete arg7;
7567 }
7568 return NULL;
7569 }
7570
7571
7572 SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7573 PyObject *resultobj = 0;
7574 wxStaticBox *result = 0 ;
7575
7576 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7577 {
7578 if (!wxPyCheckForApp()) SWIG_fail;
7579 PyThreadState* __tstate = wxPyBeginAllowThreads();
7580 result = (wxStaticBox *)new wxStaticBox();
7581 wxPyEndAllowThreads(__tstate);
7582 if (PyErr_Occurred()) SWIG_fail;
7583 }
7584 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7585 return resultobj;
7586 fail:
7587 return NULL;
7588 }
7589
7590
7591 SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7592 PyObject *resultobj = 0;
7593 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7594 wxWindow *arg2 = (wxWindow *) 0 ;
7595 int arg3 = (int) -1 ;
7596 wxString const &arg4_defvalue = wxPyEmptyString ;
7597 wxString *arg4 = (wxString *) &arg4_defvalue ;
7598 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7599 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7600 wxSize const &arg6_defvalue = wxDefaultSize ;
7601 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7602 long arg7 = (long) 0 ;
7603 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7604 wxString *arg8 = (wxString *) &arg8_defvalue ;
7605 bool result;
7606 void *argp1 = 0 ;
7607 int res1 = 0 ;
7608 void *argp2 = 0 ;
7609 int res2 = 0 ;
7610 int val3 ;
7611 int ecode3 = 0 ;
7612 bool temp4 = false ;
7613 wxPoint temp5 ;
7614 wxSize temp6 ;
7615 long val7 ;
7616 int ecode7 = 0 ;
7617 bool temp8 = false ;
7618 PyObject * obj0 = 0 ;
7619 PyObject * obj1 = 0 ;
7620 PyObject * obj2 = 0 ;
7621 PyObject * obj3 = 0 ;
7622 PyObject * obj4 = 0 ;
7623 PyObject * obj5 = 0 ;
7624 PyObject * obj6 = 0 ;
7625 PyObject * obj7 = 0 ;
7626 char * kwnames[] = {
7627 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7628 };
7629
7630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7632 if (!SWIG_IsOK(res1)) {
7633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7634 }
7635 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7636 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7637 if (!SWIG_IsOK(res2)) {
7638 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7639 }
7640 arg2 = reinterpret_cast< wxWindow * >(argp2);
7641 if (obj2) {
7642 ecode3 = SWIG_AsVal_int(obj2, &val3);
7643 if (!SWIG_IsOK(ecode3)) {
7644 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7645 }
7646 arg3 = static_cast< int >(val3);
7647 }
7648 if (obj3) {
7649 {
7650 arg4 = wxString_in_helper(obj3);
7651 if (arg4 == NULL) SWIG_fail;
7652 temp4 = true;
7653 }
7654 }
7655 if (obj4) {
7656 {
7657 arg5 = &temp5;
7658 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7659 }
7660 }
7661 if (obj5) {
7662 {
7663 arg6 = &temp6;
7664 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7665 }
7666 }
7667 if (obj6) {
7668 ecode7 = SWIG_AsVal_long(obj6, &val7);
7669 if (!SWIG_IsOK(ecode7)) {
7670 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7671 }
7672 arg7 = static_cast< long >(val7);
7673 }
7674 if (obj7) {
7675 {
7676 arg8 = wxString_in_helper(obj7);
7677 if (arg8 == NULL) SWIG_fail;
7678 temp8 = true;
7679 }
7680 }
7681 {
7682 PyThreadState* __tstate = wxPyBeginAllowThreads();
7683 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7684 wxPyEndAllowThreads(__tstate);
7685 if (PyErr_Occurred()) SWIG_fail;
7686 }
7687 {
7688 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7689 }
7690 {
7691 if (temp4)
7692 delete arg4;
7693 }
7694 {
7695 if (temp8)
7696 delete arg8;
7697 }
7698 return resultobj;
7699 fail:
7700 {
7701 if (temp4)
7702 delete arg4;
7703 }
7704 {
7705 if (temp8)
7706 delete arg8;
7707 }
7708 return NULL;
7709 }
7710
7711
7712 SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7713 PyObject *resultobj = 0;
7714 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7715 SwigValueWrapper<wxVisualAttributes > result;
7716 int val1 ;
7717 int ecode1 = 0 ;
7718 PyObject * obj0 = 0 ;
7719 char * kwnames[] = {
7720 (char *) "variant", NULL
7721 };
7722
7723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7724 if (obj0) {
7725 ecode1 = SWIG_AsVal_int(obj0, &val1);
7726 if (!SWIG_IsOK(ecode1)) {
7727 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7728 }
7729 arg1 = static_cast< wxWindowVariant >(val1);
7730 }
7731 {
7732 if (!wxPyCheckForApp()) SWIG_fail;
7733 PyThreadState* __tstate = wxPyBeginAllowThreads();
7734 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7735 wxPyEndAllowThreads(__tstate);
7736 if (PyErr_Occurred()) SWIG_fail;
7737 }
7738 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7739 return resultobj;
7740 fail:
7741 return NULL;
7742 }
7743
7744
7745 SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7746 PyObject *obj;
7747 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7748 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7749 return SWIG_Py_Void();
7750 }
7751
7752 SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7753 return SWIG_Python_InitShadowInstance(args);
7754 }
7755
7756 SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7757 PyObject *resultobj = 0;
7758 wxWindow *arg1 = (wxWindow *) 0 ;
7759 int arg2 = (int) -1 ;
7760 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7761 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7762 wxSize const &arg4_defvalue = wxDefaultSize ;
7763 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7764 long arg5 = (long) wxLI_HORIZONTAL ;
7765 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7766 wxString *arg6 = (wxString *) &arg6_defvalue ;
7767 wxStaticLine *result = 0 ;
7768 void *argp1 = 0 ;
7769 int res1 = 0 ;
7770 int val2 ;
7771 int ecode2 = 0 ;
7772 wxPoint temp3 ;
7773 wxSize temp4 ;
7774 long val5 ;
7775 int ecode5 = 0 ;
7776 bool temp6 = false ;
7777 PyObject * obj0 = 0 ;
7778 PyObject * obj1 = 0 ;
7779 PyObject * obj2 = 0 ;
7780 PyObject * obj3 = 0 ;
7781 PyObject * obj4 = 0 ;
7782 PyObject * obj5 = 0 ;
7783 char * kwnames[] = {
7784 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7785 };
7786
7787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7789 if (!SWIG_IsOK(res1)) {
7790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7791 }
7792 arg1 = reinterpret_cast< wxWindow * >(argp1);
7793 if (obj1) {
7794 ecode2 = SWIG_AsVal_int(obj1, &val2);
7795 if (!SWIG_IsOK(ecode2)) {
7796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7797 }
7798 arg2 = static_cast< int >(val2);
7799 }
7800 if (obj2) {
7801 {
7802 arg3 = &temp3;
7803 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7804 }
7805 }
7806 if (obj3) {
7807 {
7808 arg4 = &temp4;
7809 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7810 }
7811 }
7812 if (obj4) {
7813 ecode5 = SWIG_AsVal_long(obj4, &val5);
7814 if (!SWIG_IsOK(ecode5)) {
7815 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7816 }
7817 arg5 = static_cast< long >(val5);
7818 }
7819 if (obj5) {
7820 {
7821 arg6 = wxString_in_helper(obj5);
7822 if (arg6 == NULL) SWIG_fail;
7823 temp6 = true;
7824 }
7825 }
7826 {
7827 if (!wxPyCheckForApp()) SWIG_fail;
7828 PyThreadState* __tstate = wxPyBeginAllowThreads();
7829 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7830 wxPyEndAllowThreads(__tstate);
7831 if (PyErr_Occurred()) SWIG_fail;
7832 }
7833 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7834 {
7835 if (temp6)
7836 delete arg6;
7837 }
7838 return resultobj;
7839 fail:
7840 {
7841 if (temp6)
7842 delete arg6;
7843 }
7844 return NULL;
7845 }
7846
7847
7848 SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7849 PyObject *resultobj = 0;
7850 wxStaticLine *result = 0 ;
7851
7852 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7853 {
7854 if (!wxPyCheckForApp()) SWIG_fail;
7855 PyThreadState* __tstate = wxPyBeginAllowThreads();
7856 result = (wxStaticLine *)new wxStaticLine();
7857 wxPyEndAllowThreads(__tstate);
7858 if (PyErr_Occurred()) SWIG_fail;
7859 }
7860 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7861 return resultobj;
7862 fail:
7863 return NULL;
7864 }
7865
7866
7867 SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7868 PyObject *resultobj = 0;
7869 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7870 wxWindow *arg2 = (wxWindow *) 0 ;
7871 int arg3 = (int) -1 ;
7872 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7873 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7874 wxSize const &arg5_defvalue = wxDefaultSize ;
7875 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7876 long arg6 = (long) wxLI_HORIZONTAL ;
7877 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7878 wxString *arg7 = (wxString *) &arg7_defvalue ;
7879 bool result;
7880 void *argp1 = 0 ;
7881 int res1 = 0 ;
7882 void *argp2 = 0 ;
7883 int res2 = 0 ;
7884 int val3 ;
7885 int ecode3 = 0 ;
7886 wxPoint temp4 ;
7887 wxSize temp5 ;
7888 long val6 ;
7889 int ecode6 = 0 ;
7890 bool temp7 = false ;
7891 PyObject * obj0 = 0 ;
7892 PyObject * obj1 = 0 ;
7893 PyObject * obj2 = 0 ;
7894 PyObject * obj3 = 0 ;
7895 PyObject * obj4 = 0 ;
7896 PyObject * obj5 = 0 ;
7897 PyObject * obj6 = 0 ;
7898 char * kwnames[] = {
7899 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7900 };
7901
7902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7904 if (!SWIG_IsOK(res1)) {
7905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7906 }
7907 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7908 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7909 if (!SWIG_IsOK(res2)) {
7910 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7911 }
7912 arg2 = reinterpret_cast< wxWindow * >(argp2);
7913 if (obj2) {
7914 ecode3 = SWIG_AsVal_int(obj2, &val3);
7915 if (!SWIG_IsOK(ecode3)) {
7916 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7917 }
7918 arg3 = static_cast< int >(val3);
7919 }
7920 if (obj3) {
7921 {
7922 arg4 = &temp4;
7923 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7924 }
7925 }
7926 if (obj4) {
7927 {
7928 arg5 = &temp5;
7929 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7930 }
7931 }
7932 if (obj5) {
7933 ecode6 = SWIG_AsVal_long(obj5, &val6);
7934 if (!SWIG_IsOK(ecode6)) {
7935 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7936 }
7937 arg6 = static_cast< long >(val6);
7938 }
7939 if (obj6) {
7940 {
7941 arg7 = wxString_in_helper(obj6);
7942 if (arg7 == NULL) SWIG_fail;
7943 temp7 = true;
7944 }
7945 }
7946 {
7947 PyThreadState* __tstate = wxPyBeginAllowThreads();
7948 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7949 wxPyEndAllowThreads(__tstate);
7950 if (PyErr_Occurred()) SWIG_fail;
7951 }
7952 {
7953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7954 }
7955 {
7956 if (temp7)
7957 delete arg7;
7958 }
7959 return resultobj;
7960 fail:
7961 {
7962 if (temp7)
7963 delete arg7;
7964 }
7965 return NULL;
7966 }
7967
7968
7969 SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7970 PyObject *resultobj = 0;
7971 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7972 bool result;
7973 void *argp1 = 0 ;
7974 int res1 = 0 ;
7975 PyObject *swig_obj[1] ;
7976
7977 if (!args) SWIG_fail;
7978 swig_obj[0] = args;
7979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7980 if (!SWIG_IsOK(res1)) {
7981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7982 }
7983 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7984 {
7985 PyThreadState* __tstate = wxPyBeginAllowThreads();
7986 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7987 wxPyEndAllowThreads(__tstate);
7988 if (PyErr_Occurred()) SWIG_fail;
7989 }
7990 {
7991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7992 }
7993 return resultobj;
7994 fail:
7995 return NULL;
7996 }
7997
7998
7999 SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8000 PyObject *resultobj = 0;
8001 int result;
8002
8003 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
8004 {
8005 PyThreadState* __tstate = wxPyBeginAllowThreads();
8006 result = (int)wxStaticLine::GetDefaultSize();
8007 wxPyEndAllowThreads(__tstate);
8008 if (PyErr_Occurred()) SWIG_fail;
8009 }
8010 resultobj = SWIG_From_int(static_cast< int >(result));
8011 return resultobj;
8012 fail:
8013 return NULL;
8014 }
8015
8016
8017 SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8018 PyObject *resultobj = 0;
8019 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8020 SwigValueWrapper<wxVisualAttributes > result;
8021 int val1 ;
8022 int ecode1 = 0 ;
8023 PyObject * obj0 = 0 ;
8024 char * kwnames[] = {
8025 (char *) "variant", NULL
8026 };
8027
8028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8029 if (obj0) {
8030 ecode1 = SWIG_AsVal_int(obj0, &val1);
8031 if (!SWIG_IsOK(ecode1)) {
8032 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8033 }
8034 arg1 = static_cast< wxWindowVariant >(val1);
8035 }
8036 {
8037 if (!wxPyCheckForApp()) SWIG_fail;
8038 PyThreadState* __tstate = wxPyBeginAllowThreads();
8039 result = wxStaticLine::GetClassDefaultAttributes(arg1);
8040 wxPyEndAllowThreads(__tstate);
8041 if (PyErr_Occurred()) SWIG_fail;
8042 }
8043 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8044 return resultobj;
8045 fail:
8046 return NULL;
8047 }
8048
8049
8050 SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8051 PyObject *obj;
8052 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8053 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8054 return SWIG_Py_Void();
8055 }
8056
8057 SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8058 return SWIG_Python_InitShadowInstance(args);
8059 }
8060
8061 SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8062 PyObject *resultobj = 0;
8063 wxWindow *arg1 = (wxWindow *) 0 ;
8064 int arg2 = (int) -1 ;
8065 wxString const &arg3_defvalue = wxPyEmptyString ;
8066 wxString *arg3 = (wxString *) &arg3_defvalue ;
8067 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8068 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8069 wxSize const &arg5_defvalue = wxDefaultSize ;
8070 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8071 long arg6 = (long) 0 ;
8072 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8073 wxString *arg7 = (wxString *) &arg7_defvalue ;
8074 wxStaticText *result = 0 ;
8075 void *argp1 = 0 ;
8076 int res1 = 0 ;
8077 int val2 ;
8078 int ecode2 = 0 ;
8079 bool temp3 = false ;
8080 wxPoint temp4 ;
8081 wxSize temp5 ;
8082 long val6 ;
8083 int ecode6 = 0 ;
8084 bool temp7 = false ;
8085 PyObject * obj0 = 0 ;
8086 PyObject * obj1 = 0 ;
8087 PyObject * obj2 = 0 ;
8088 PyObject * obj3 = 0 ;
8089 PyObject * obj4 = 0 ;
8090 PyObject * obj5 = 0 ;
8091 PyObject * obj6 = 0 ;
8092 char * kwnames[] = {
8093 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8094 };
8095
8096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8098 if (!SWIG_IsOK(res1)) {
8099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8100 }
8101 arg1 = reinterpret_cast< wxWindow * >(argp1);
8102 if (obj1) {
8103 ecode2 = SWIG_AsVal_int(obj1, &val2);
8104 if (!SWIG_IsOK(ecode2)) {
8105 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8106 }
8107 arg2 = static_cast< int >(val2);
8108 }
8109 if (obj2) {
8110 {
8111 arg3 = wxString_in_helper(obj2);
8112 if (arg3 == NULL) SWIG_fail;
8113 temp3 = true;
8114 }
8115 }
8116 if (obj3) {
8117 {
8118 arg4 = &temp4;
8119 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8120 }
8121 }
8122 if (obj4) {
8123 {
8124 arg5 = &temp5;
8125 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8126 }
8127 }
8128 if (obj5) {
8129 ecode6 = SWIG_AsVal_long(obj5, &val6);
8130 if (!SWIG_IsOK(ecode6)) {
8131 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8132 }
8133 arg6 = static_cast< long >(val6);
8134 }
8135 if (obj6) {
8136 {
8137 arg7 = wxString_in_helper(obj6);
8138 if (arg7 == NULL) SWIG_fail;
8139 temp7 = true;
8140 }
8141 }
8142 {
8143 if (!wxPyCheckForApp()) SWIG_fail;
8144 PyThreadState* __tstate = wxPyBeginAllowThreads();
8145 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8146 wxPyEndAllowThreads(__tstate);
8147 if (PyErr_Occurred()) SWIG_fail;
8148 }
8149 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8150 {
8151 if (temp3)
8152 delete arg3;
8153 }
8154 {
8155 if (temp7)
8156 delete arg7;
8157 }
8158 return resultobj;
8159 fail:
8160 {
8161 if (temp3)
8162 delete arg3;
8163 }
8164 {
8165 if (temp7)
8166 delete arg7;
8167 }
8168 return NULL;
8169 }
8170
8171
8172 SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8173 PyObject *resultobj = 0;
8174 wxStaticText *result = 0 ;
8175
8176 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8177 {
8178 if (!wxPyCheckForApp()) SWIG_fail;
8179 PyThreadState* __tstate = wxPyBeginAllowThreads();
8180 result = (wxStaticText *)new wxStaticText();
8181 wxPyEndAllowThreads(__tstate);
8182 if (PyErr_Occurred()) SWIG_fail;
8183 }
8184 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8185 return resultobj;
8186 fail:
8187 return NULL;
8188 }
8189
8190
8191 SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8192 PyObject *resultobj = 0;
8193 wxStaticText *arg1 = (wxStaticText *) 0 ;
8194 wxWindow *arg2 = (wxWindow *) 0 ;
8195 int arg3 = (int) -1 ;
8196 wxString const &arg4_defvalue = wxPyEmptyString ;
8197 wxString *arg4 = (wxString *) &arg4_defvalue ;
8198 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8199 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8200 wxSize const &arg6_defvalue = wxDefaultSize ;
8201 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8202 long arg7 = (long) 0 ;
8203 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8204 wxString *arg8 = (wxString *) &arg8_defvalue ;
8205 bool result;
8206 void *argp1 = 0 ;
8207 int res1 = 0 ;
8208 void *argp2 = 0 ;
8209 int res2 = 0 ;
8210 int val3 ;
8211 int ecode3 = 0 ;
8212 bool temp4 = false ;
8213 wxPoint temp5 ;
8214 wxSize temp6 ;
8215 long val7 ;
8216 int ecode7 = 0 ;
8217 bool temp8 = false ;
8218 PyObject * obj0 = 0 ;
8219 PyObject * obj1 = 0 ;
8220 PyObject * obj2 = 0 ;
8221 PyObject * obj3 = 0 ;
8222 PyObject * obj4 = 0 ;
8223 PyObject * obj5 = 0 ;
8224 PyObject * obj6 = 0 ;
8225 PyObject * obj7 = 0 ;
8226 char * kwnames[] = {
8227 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8228 };
8229
8230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8232 if (!SWIG_IsOK(res1)) {
8233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8234 }
8235 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8236 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8237 if (!SWIG_IsOK(res2)) {
8238 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8239 }
8240 arg2 = reinterpret_cast< wxWindow * >(argp2);
8241 if (obj2) {
8242 ecode3 = SWIG_AsVal_int(obj2, &val3);
8243 if (!SWIG_IsOK(ecode3)) {
8244 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8245 }
8246 arg3 = static_cast< int >(val3);
8247 }
8248 if (obj3) {
8249 {
8250 arg4 = wxString_in_helper(obj3);
8251 if (arg4 == NULL) SWIG_fail;
8252 temp4 = true;
8253 }
8254 }
8255 if (obj4) {
8256 {
8257 arg5 = &temp5;
8258 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8259 }
8260 }
8261 if (obj5) {
8262 {
8263 arg6 = &temp6;
8264 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8265 }
8266 }
8267 if (obj6) {
8268 ecode7 = SWIG_AsVal_long(obj6, &val7);
8269 if (!SWIG_IsOK(ecode7)) {
8270 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8271 }
8272 arg7 = static_cast< long >(val7);
8273 }
8274 if (obj7) {
8275 {
8276 arg8 = wxString_in_helper(obj7);
8277 if (arg8 == NULL) SWIG_fail;
8278 temp8 = true;
8279 }
8280 }
8281 {
8282 PyThreadState* __tstate = wxPyBeginAllowThreads();
8283 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8284 wxPyEndAllowThreads(__tstate);
8285 if (PyErr_Occurred()) SWIG_fail;
8286 }
8287 {
8288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8289 }
8290 {
8291 if (temp4)
8292 delete arg4;
8293 }
8294 {
8295 if (temp8)
8296 delete arg8;
8297 }
8298 return resultobj;
8299 fail:
8300 {
8301 if (temp4)
8302 delete arg4;
8303 }
8304 {
8305 if (temp8)
8306 delete arg8;
8307 }
8308 return NULL;
8309 }
8310
8311
8312 SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8313 PyObject *resultobj = 0;
8314 wxStaticText *arg1 = (wxStaticText *) 0 ;
8315 int arg2 ;
8316 void *argp1 = 0 ;
8317 int res1 = 0 ;
8318 int val2 ;
8319 int ecode2 = 0 ;
8320 PyObject * obj0 = 0 ;
8321 PyObject * obj1 = 0 ;
8322 char * kwnames[] = {
8323 (char *) "self",(char *) "width", NULL
8324 };
8325
8326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8328 if (!SWIG_IsOK(res1)) {
8329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8330 }
8331 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8332 ecode2 = SWIG_AsVal_int(obj1, &val2);
8333 if (!SWIG_IsOK(ecode2)) {
8334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8335 }
8336 arg2 = static_cast< int >(val2);
8337 {
8338 PyThreadState* __tstate = wxPyBeginAllowThreads();
8339 (arg1)->Wrap(arg2);
8340 wxPyEndAllowThreads(__tstate);
8341 if (PyErr_Occurred()) SWIG_fail;
8342 }
8343 resultobj = SWIG_Py_Void();
8344 return resultobj;
8345 fail:
8346 return NULL;
8347 }
8348
8349
8350 SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8351 PyObject *resultobj = 0;
8352 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8353 SwigValueWrapper<wxVisualAttributes > result;
8354 int val1 ;
8355 int ecode1 = 0 ;
8356 PyObject * obj0 = 0 ;
8357 char * kwnames[] = {
8358 (char *) "variant", NULL
8359 };
8360
8361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8362 if (obj0) {
8363 ecode1 = SWIG_AsVal_int(obj0, &val1);
8364 if (!SWIG_IsOK(ecode1)) {
8365 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8366 }
8367 arg1 = static_cast< wxWindowVariant >(val1);
8368 }
8369 {
8370 if (!wxPyCheckForApp()) SWIG_fail;
8371 PyThreadState* __tstate = wxPyBeginAllowThreads();
8372 result = wxStaticText::GetClassDefaultAttributes(arg1);
8373 wxPyEndAllowThreads(__tstate);
8374 if (PyErr_Occurred()) SWIG_fail;
8375 }
8376 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8377 return resultobj;
8378 fail:
8379 return NULL;
8380 }
8381
8382
8383 SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8384 PyObject *obj;
8385 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8386 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8387 return SWIG_Py_Void();
8388 }
8389
8390 SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8391 return SWIG_Python_InitShadowInstance(args);
8392 }
8393
8394 SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8395 PyObject *resultobj = 0;
8396 wxWindow *arg1 = (wxWindow *) 0 ;
8397 int arg2 = (int) -1 ;
8398 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8399 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8400 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8401 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8402 wxSize const &arg5_defvalue = wxDefaultSize ;
8403 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8404 long arg6 = (long) 0 ;
8405 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8406 wxString *arg7 = (wxString *) &arg7_defvalue ;
8407 wxStaticBitmap *result = 0 ;
8408 void *argp1 = 0 ;
8409 int res1 = 0 ;
8410 int val2 ;
8411 int ecode2 = 0 ;
8412 void *argp3 = 0 ;
8413 int res3 = 0 ;
8414 wxPoint temp4 ;
8415 wxSize temp5 ;
8416 long val6 ;
8417 int ecode6 = 0 ;
8418 bool temp7 = false ;
8419 PyObject * obj0 = 0 ;
8420 PyObject * obj1 = 0 ;
8421 PyObject * obj2 = 0 ;
8422 PyObject * obj3 = 0 ;
8423 PyObject * obj4 = 0 ;
8424 PyObject * obj5 = 0 ;
8425 PyObject * obj6 = 0 ;
8426 char * kwnames[] = {
8427 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8428 };
8429
8430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8432 if (!SWIG_IsOK(res1)) {
8433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8434 }
8435 arg1 = reinterpret_cast< wxWindow * >(argp1);
8436 if (obj1) {
8437 ecode2 = SWIG_AsVal_int(obj1, &val2);
8438 if (!SWIG_IsOK(ecode2)) {
8439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8440 }
8441 arg2 = static_cast< int >(val2);
8442 }
8443 if (obj2) {
8444 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8445 if (!SWIG_IsOK(res3)) {
8446 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8447 }
8448 if (!argp3) {
8449 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8450 }
8451 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8452 }
8453 if (obj3) {
8454 {
8455 arg4 = &temp4;
8456 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8457 }
8458 }
8459 if (obj4) {
8460 {
8461 arg5 = &temp5;
8462 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8463 }
8464 }
8465 if (obj5) {
8466 ecode6 = SWIG_AsVal_long(obj5, &val6);
8467 if (!SWIG_IsOK(ecode6)) {
8468 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8469 }
8470 arg6 = static_cast< long >(val6);
8471 }
8472 if (obj6) {
8473 {
8474 arg7 = wxString_in_helper(obj6);
8475 if (arg7 == NULL) SWIG_fail;
8476 temp7 = true;
8477 }
8478 }
8479 {
8480 if (!wxPyCheckForApp()) SWIG_fail;
8481 PyThreadState* __tstate = wxPyBeginAllowThreads();
8482 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8483 wxPyEndAllowThreads(__tstate);
8484 if (PyErr_Occurred()) SWIG_fail;
8485 }
8486 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8487 {
8488 if (temp7)
8489 delete arg7;
8490 }
8491 return resultobj;
8492 fail:
8493 {
8494 if (temp7)
8495 delete arg7;
8496 }
8497 return NULL;
8498 }
8499
8500
8501 SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8502 PyObject *resultobj = 0;
8503 wxStaticBitmap *result = 0 ;
8504
8505 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8506 {
8507 if (!wxPyCheckForApp()) SWIG_fail;
8508 PyThreadState* __tstate = wxPyBeginAllowThreads();
8509 result = (wxStaticBitmap *)new wxStaticBitmap();
8510 wxPyEndAllowThreads(__tstate);
8511 if (PyErr_Occurred()) SWIG_fail;
8512 }
8513 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8514 return resultobj;
8515 fail:
8516 return NULL;
8517 }
8518
8519
8520 SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8521 PyObject *resultobj = 0;
8522 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8523 wxWindow *arg2 = (wxWindow *) 0 ;
8524 int arg3 = (int) -1 ;
8525 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8526 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8527 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8528 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8529 wxSize const &arg6_defvalue = wxDefaultSize ;
8530 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8531 long arg7 = (long) 0 ;
8532 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8533 wxString *arg8 = (wxString *) &arg8_defvalue ;
8534 bool result;
8535 void *argp1 = 0 ;
8536 int res1 = 0 ;
8537 void *argp2 = 0 ;
8538 int res2 = 0 ;
8539 int val3 ;
8540 int ecode3 = 0 ;
8541 void *argp4 = 0 ;
8542 int res4 = 0 ;
8543 wxPoint temp5 ;
8544 wxSize temp6 ;
8545 long val7 ;
8546 int ecode7 = 0 ;
8547 bool temp8 = false ;
8548 PyObject * obj0 = 0 ;
8549 PyObject * obj1 = 0 ;
8550 PyObject * obj2 = 0 ;
8551 PyObject * obj3 = 0 ;
8552 PyObject * obj4 = 0 ;
8553 PyObject * obj5 = 0 ;
8554 PyObject * obj6 = 0 ;
8555 PyObject * obj7 = 0 ;
8556 char * kwnames[] = {
8557 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8558 };
8559
8560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8562 if (!SWIG_IsOK(res1)) {
8563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8564 }
8565 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8566 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8567 if (!SWIG_IsOK(res2)) {
8568 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8569 }
8570 arg2 = reinterpret_cast< wxWindow * >(argp2);
8571 if (obj2) {
8572 ecode3 = SWIG_AsVal_int(obj2, &val3);
8573 if (!SWIG_IsOK(ecode3)) {
8574 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8575 }
8576 arg3 = static_cast< int >(val3);
8577 }
8578 if (obj3) {
8579 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8580 if (!SWIG_IsOK(res4)) {
8581 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8582 }
8583 if (!argp4) {
8584 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8585 }
8586 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8587 }
8588 if (obj4) {
8589 {
8590 arg5 = &temp5;
8591 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8592 }
8593 }
8594 if (obj5) {
8595 {
8596 arg6 = &temp6;
8597 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8598 }
8599 }
8600 if (obj6) {
8601 ecode7 = SWIG_AsVal_long(obj6, &val7);
8602 if (!SWIG_IsOK(ecode7)) {
8603 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8604 }
8605 arg7 = static_cast< long >(val7);
8606 }
8607 if (obj7) {
8608 {
8609 arg8 = wxString_in_helper(obj7);
8610 if (arg8 == NULL) SWIG_fail;
8611 temp8 = true;
8612 }
8613 }
8614 {
8615 PyThreadState* __tstate = wxPyBeginAllowThreads();
8616 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8617 wxPyEndAllowThreads(__tstate);
8618 if (PyErr_Occurred()) SWIG_fail;
8619 }
8620 {
8621 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8622 }
8623 {
8624 if (temp8)
8625 delete arg8;
8626 }
8627 return resultobj;
8628 fail:
8629 {
8630 if (temp8)
8631 delete arg8;
8632 }
8633 return NULL;
8634 }
8635
8636
8637 SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8638 PyObject *resultobj = 0;
8639 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8640 wxBitmap result;
8641 void *argp1 = 0 ;
8642 int res1 = 0 ;
8643 PyObject *swig_obj[1] ;
8644
8645 if (!args) SWIG_fail;
8646 swig_obj[0] = args;
8647 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8648 if (!SWIG_IsOK(res1)) {
8649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8650 }
8651 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8652 {
8653 PyThreadState* __tstate = wxPyBeginAllowThreads();
8654 result = (arg1)->GetBitmap();
8655 wxPyEndAllowThreads(__tstate);
8656 if (PyErr_Occurred()) SWIG_fail;
8657 }
8658 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8659 return resultobj;
8660 fail:
8661 return NULL;
8662 }
8663
8664
8665 SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8666 PyObject *resultobj = 0;
8667 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8668 wxBitmap *arg2 = 0 ;
8669 void *argp1 = 0 ;
8670 int res1 = 0 ;
8671 void *argp2 = 0 ;
8672 int res2 = 0 ;
8673 PyObject * obj0 = 0 ;
8674 PyObject * obj1 = 0 ;
8675 char * kwnames[] = {
8676 (char *) "self",(char *) "bitmap", NULL
8677 };
8678
8679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8681 if (!SWIG_IsOK(res1)) {
8682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8683 }
8684 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8685 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8686 if (!SWIG_IsOK(res2)) {
8687 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8688 }
8689 if (!argp2) {
8690 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8691 }
8692 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8693 {
8694 PyThreadState* __tstate = wxPyBeginAllowThreads();
8695 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8696 wxPyEndAllowThreads(__tstate);
8697 if (PyErr_Occurred()) SWIG_fail;
8698 }
8699 resultobj = SWIG_Py_Void();
8700 return resultobj;
8701 fail:
8702 return NULL;
8703 }
8704
8705
8706 SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8707 PyObject *resultobj = 0;
8708 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8709 wxIcon *arg2 = 0 ;
8710 void *argp1 = 0 ;
8711 int res1 = 0 ;
8712 void *argp2 = 0 ;
8713 int res2 = 0 ;
8714 PyObject * obj0 = 0 ;
8715 PyObject * obj1 = 0 ;
8716 char * kwnames[] = {
8717 (char *) "self",(char *) "icon", NULL
8718 };
8719
8720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8722 if (!SWIG_IsOK(res1)) {
8723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8724 }
8725 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8726 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8727 if (!SWIG_IsOK(res2)) {
8728 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8729 }
8730 if (!argp2) {
8731 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8732 }
8733 arg2 = reinterpret_cast< wxIcon * >(argp2);
8734 {
8735 PyThreadState* __tstate = wxPyBeginAllowThreads();
8736 (arg1)->SetIcon((wxIcon const &)*arg2);
8737 wxPyEndAllowThreads(__tstate);
8738 if (PyErr_Occurred()) SWIG_fail;
8739 }
8740 resultobj = SWIG_Py_Void();
8741 return resultobj;
8742 fail:
8743 return NULL;
8744 }
8745
8746
8747 SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8748 PyObject *resultobj = 0;
8749 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8750 SwigValueWrapper<wxVisualAttributes > result;
8751 int val1 ;
8752 int ecode1 = 0 ;
8753 PyObject * obj0 = 0 ;
8754 char * kwnames[] = {
8755 (char *) "variant", NULL
8756 };
8757
8758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8759 if (obj0) {
8760 ecode1 = SWIG_AsVal_int(obj0, &val1);
8761 if (!SWIG_IsOK(ecode1)) {
8762 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8763 }
8764 arg1 = static_cast< wxWindowVariant >(val1);
8765 }
8766 {
8767 if (!wxPyCheckForApp()) SWIG_fail;
8768 PyThreadState* __tstate = wxPyBeginAllowThreads();
8769 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8770 wxPyEndAllowThreads(__tstate);
8771 if (PyErr_Occurred()) SWIG_fail;
8772 }
8773 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8774 return resultobj;
8775 fail:
8776 return NULL;
8777 }
8778
8779
8780 SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8781 PyObject *obj;
8782 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8783 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8784 return SWIG_Py_Void();
8785 }
8786
8787 SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8788 return SWIG_Python_InitShadowInstance(args);
8789 }
8790
8791 SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8792 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8793 return 1;
8794 }
8795
8796
8797 SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8798 PyObject *pyobj = 0;
8799
8800 {
8801 #if wxUSE_UNICODE
8802 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8803 #else
8804 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8805 #endif
8806 }
8807 return pyobj;
8808 }
8809
8810
8811 SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8812 PyObject *resultobj = 0;
8813 wxWindow *arg1 = (wxWindow *) 0 ;
8814 int arg2 = (int) -1 ;
8815 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8816 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8817 wxSize const &arg4_defvalue = wxDefaultSize ;
8818 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8819 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8820 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8821 long arg6 = (long) 0 ;
8822 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8823 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8824 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8825 wxString *arg8 = (wxString *) &arg8_defvalue ;
8826 wxListBox *result = 0 ;
8827 void *argp1 = 0 ;
8828 int res1 = 0 ;
8829 int val2 ;
8830 int ecode2 = 0 ;
8831 wxPoint temp3 ;
8832 wxSize temp4 ;
8833 bool temp5 = false ;
8834 long val6 ;
8835 int ecode6 = 0 ;
8836 void *argp7 = 0 ;
8837 int res7 = 0 ;
8838 bool temp8 = false ;
8839 PyObject * obj0 = 0 ;
8840 PyObject * obj1 = 0 ;
8841 PyObject * obj2 = 0 ;
8842 PyObject * obj3 = 0 ;
8843 PyObject * obj4 = 0 ;
8844 PyObject * obj5 = 0 ;
8845 PyObject * obj6 = 0 ;
8846 PyObject * obj7 = 0 ;
8847 char * kwnames[] = {
8848 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8849 };
8850
8851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8853 if (!SWIG_IsOK(res1)) {
8854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8855 }
8856 arg1 = reinterpret_cast< wxWindow * >(argp1);
8857 if (obj1) {
8858 ecode2 = SWIG_AsVal_int(obj1, &val2);
8859 if (!SWIG_IsOK(ecode2)) {
8860 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8861 }
8862 arg2 = static_cast< int >(val2);
8863 }
8864 if (obj2) {
8865 {
8866 arg3 = &temp3;
8867 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
8868 }
8869 }
8870 if (obj3) {
8871 {
8872 arg4 = &temp4;
8873 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
8874 }
8875 }
8876 if (obj4) {
8877 {
8878 if (! PySequence_Check(obj4)) {
8879 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8880 SWIG_fail;
8881 }
8882 arg5 = new wxArrayString;
8883 temp5 = true;
8884 int i, len=PySequence_Length(obj4);
8885 for (i=0; i<len; i++) {
8886 PyObject* item = PySequence_GetItem(obj4, i);
8887 wxString* s = wxString_in_helper(item);
8888 if (PyErr_Occurred()) SWIG_fail;
8889 arg5->Add(*s);
8890 delete s;
8891 Py_DECREF(item);
8892 }
8893 }
8894 }
8895 if (obj5) {
8896 ecode6 = SWIG_AsVal_long(obj5, &val6);
8897 if (!SWIG_IsOK(ecode6)) {
8898 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8899 }
8900 arg6 = static_cast< long >(val6);
8901 }
8902 if (obj6) {
8903 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8904 if (!SWIG_IsOK(res7)) {
8905 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8906 }
8907 if (!argp7) {
8908 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8909 }
8910 arg7 = reinterpret_cast< wxValidator * >(argp7);
8911 }
8912 if (obj7) {
8913 {
8914 arg8 = wxString_in_helper(obj7);
8915 if (arg8 == NULL) SWIG_fail;
8916 temp8 = true;
8917 }
8918 }
8919 {
8920 if (!wxPyCheckForApp()) SWIG_fail;
8921 PyThreadState* __tstate = wxPyBeginAllowThreads();
8922 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8923 wxPyEndAllowThreads(__tstate);
8924 if (PyErr_Occurred()) SWIG_fail;
8925 }
8926 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8927 {
8928 if (temp5) delete arg5;
8929 }
8930 {
8931 if (temp8)
8932 delete arg8;
8933 }
8934 return resultobj;
8935 fail:
8936 {
8937 if (temp5) delete arg5;
8938 }
8939 {
8940 if (temp8)
8941 delete arg8;
8942 }
8943 return NULL;
8944 }
8945
8946
8947 SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8948 PyObject *resultobj = 0;
8949 wxListBox *result = 0 ;
8950
8951 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8952 {
8953 if (!wxPyCheckForApp()) SWIG_fail;
8954 PyThreadState* __tstate = wxPyBeginAllowThreads();
8955 result = (wxListBox *)new wxListBox();
8956 wxPyEndAllowThreads(__tstate);
8957 if (PyErr_Occurred()) SWIG_fail;
8958 }
8959 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8960 return resultobj;
8961 fail:
8962 return NULL;
8963 }
8964
8965
8966 SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8967 PyObject *resultobj = 0;
8968 wxListBox *arg1 = (wxListBox *) 0 ;
8969 wxWindow *arg2 = (wxWindow *) 0 ;
8970 int arg3 = (int) -1 ;
8971 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8972 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8973 wxSize const &arg5_defvalue = wxDefaultSize ;
8974 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8975 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8976 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8977 long arg7 = (long) 0 ;
8978 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8979 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8980 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8981 wxString *arg9 = (wxString *) &arg9_defvalue ;
8982 bool result;
8983 void *argp1 = 0 ;
8984 int res1 = 0 ;
8985 void *argp2 = 0 ;
8986 int res2 = 0 ;
8987 int val3 ;
8988 int ecode3 = 0 ;
8989 wxPoint temp4 ;
8990 wxSize temp5 ;
8991 bool temp6 = false ;
8992 long val7 ;
8993 int ecode7 = 0 ;
8994 void *argp8 = 0 ;
8995 int res8 = 0 ;
8996 bool temp9 = false ;
8997 PyObject * obj0 = 0 ;
8998 PyObject * obj1 = 0 ;
8999 PyObject * obj2 = 0 ;
9000 PyObject * obj3 = 0 ;
9001 PyObject * obj4 = 0 ;
9002 PyObject * obj5 = 0 ;
9003 PyObject * obj6 = 0 ;
9004 PyObject * obj7 = 0 ;
9005 PyObject * obj8 = 0 ;
9006 char * kwnames[] = {
9007 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9008 };
9009
9010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
9011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9012 if (!SWIG_IsOK(res1)) {
9013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
9014 }
9015 arg1 = reinterpret_cast< wxListBox * >(argp1);
9016 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
9017 if (!SWIG_IsOK(res2)) {
9018 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
9019 }
9020 arg2 = reinterpret_cast< wxWindow * >(argp2);
9021 if (obj2) {
9022 ecode3 = SWIG_AsVal_int(obj2, &val3);
9023 if (!SWIG_IsOK(ecode3)) {
9024 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
9025 }
9026 arg3 = static_cast< int >(val3);
9027 }
9028 if (obj3) {
9029 {
9030 arg4 = &temp4;
9031 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
9032 }
9033 }
9034 if (obj4) {
9035 {
9036 arg5 = &temp5;
9037 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
9038 }
9039 }
9040 if (obj5) {
9041 {
9042 if (! PySequence_Check(obj5)) {
9043 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9044 SWIG_fail;
9045 }
9046 arg6 = new wxArrayString;
9047 temp6 = true;
9048 int i, len=PySequence_Length(obj5);
9049 for (i=0; i<len; i++) {
9050 PyObject* item = PySequence_GetItem(obj5, i);
9051 wxString* s = wxString_in_helper(item);
9052 if (PyErr_Occurred()) SWIG_fail;
9053 arg6->Add(*s);
9054 delete s;
9055 Py_DECREF(item);
9056 }
9057 }
9058 }
9059 if (obj6) {
9060 ecode7 = SWIG_AsVal_long(obj6, &val7);
9061 if (!SWIG_IsOK(ecode7)) {
9062 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9063 }
9064 arg7 = static_cast< long >(val7);
9065 }
9066 if (obj7) {
9067 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9068 if (!SWIG_IsOK(res8)) {
9069 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9070 }
9071 if (!argp8) {
9072 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9073 }
9074 arg8 = reinterpret_cast< wxValidator * >(argp8);
9075 }
9076 if (obj8) {
9077 {
9078 arg9 = wxString_in_helper(obj8);
9079 if (arg9 == NULL) SWIG_fail;
9080 temp9 = true;
9081 }
9082 }
9083 {
9084 PyThreadState* __tstate = wxPyBeginAllowThreads();
9085 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9086 wxPyEndAllowThreads(__tstate);
9087 if (PyErr_Occurred()) SWIG_fail;
9088 }
9089 {
9090 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9091 }
9092 {
9093 if (temp6) delete arg6;
9094 }
9095 {
9096 if (temp9)
9097 delete arg9;
9098 }
9099 return resultobj;
9100 fail:
9101 {
9102 if (temp6) delete arg6;
9103 }
9104 {
9105 if (temp9)
9106 delete arg9;
9107 }
9108 return NULL;
9109 }
9110
9111
9112 SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9113 PyObject *resultobj = 0;
9114 wxListBox *arg1 = (wxListBox *) 0 ;
9115 wxString *arg2 = 0 ;
9116 int arg3 ;
9117 PyObject *arg4 = (PyObject *) NULL ;
9118 void *argp1 = 0 ;
9119 int res1 = 0 ;
9120 bool temp2 = false ;
9121 int val3 ;
9122 int ecode3 = 0 ;
9123 PyObject * obj0 = 0 ;
9124 PyObject * obj1 = 0 ;
9125 PyObject * obj2 = 0 ;
9126 PyObject * obj3 = 0 ;
9127 char * kwnames[] = {
9128 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9129 };
9130
9131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9133 if (!SWIG_IsOK(res1)) {
9134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9135 }
9136 arg1 = reinterpret_cast< wxListBox * >(argp1);
9137 {
9138 arg2 = wxString_in_helper(obj1);
9139 if (arg2 == NULL) SWIG_fail;
9140 temp2 = true;
9141 }
9142 ecode3 = SWIG_AsVal_int(obj2, &val3);
9143 if (!SWIG_IsOK(ecode3)) {
9144 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9145 }
9146 arg3 = static_cast< int >(val3);
9147 if (obj3) {
9148 arg4 = obj3;
9149 }
9150 {
9151 PyThreadState* __tstate = wxPyBeginAllowThreads();
9152 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9153 wxPyEndAllowThreads(__tstate);
9154 if (PyErr_Occurred()) SWIG_fail;
9155 }
9156 resultobj = SWIG_Py_Void();
9157 {
9158 if (temp2)
9159 delete arg2;
9160 }
9161 return resultobj;
9162 fail:
9163 {
9164 if (temp2)
9165 delete arg2;
9166 }
9167 return NULL;
9168 }
9169
9170
9171 SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9172 PyObject *resultobj = 0;
9173 wxListBox *arg1 = (wxListBox *) 0 ;
9174 wxArrayString *arg2 = 0 ;
9175 unsigned int arg3 ;
9176 void *argp1 = 0 ;
9177 int res1 = 0 ;
9178 bool temp2 = false ;
9179 unsigned int val3 ;
9180 int ecode3 = 0 ;
9181 PyObject * obj0 = 0 ;
9182 PyObject * obj1 = 0 ;
9183 PyObject * obj2 = 0 ;
9184 char * kwnames[] = {
9185 (char *) "self",(char *) "items",(char *) "pos", NULL
9186 };
9187
9188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9190 if (!SWIG_IsOK(res1)) {
9191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9192 }
9193 arg1 = reinterpret_cast< wxListBox * >(argp1);
9194 {
9195 if (! PySequence_Check(obj1)) {
9196 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9197 SWIG_fail;
9198 }
9199 arg2 = new wxArrayString;
9200 temp2 = true;
9201 int i, len=PySequence_Length(obj1);
9202 for (i=0; i<len; i++) {
9203 PyObject* item = PySequence_GetItem(obj1, i);
9204 wxString* s = wxString_in_helper(item);
9205 if (PyErr_Occurred()) SWIG_fail;
9206 arg2->Add(*s);
9207 delete s;
9208 Py_DECREF(item);
9209 }
9210 }
9211 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
9212 if (!SWIG_IsOK(ecode3)) {
9213 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
9214 }
9215 arg3 = static_cast< unsigned int >(val3);
9216 {
9217 PyThreadState* __tstate = wxPyBeginAllowThreads();
9218 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9219 wxPyEndAllowThreads(__tstate);
9220 if (PyErr_Occurred()) SWIG_fail;
9221 }
9222 resultobj = SWIG_Py_Void();
9223 {
9224 if (temp2) delete arg2;
9225 }
9226 return resultobj;
9227 fail:
9228 {
9229 if (temp2) delete arg2;
9230 }
9231 return NULL;
9232 }
9233
9234
9235 SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9236 PyObject *resultobj = 0;
9237 wxListBox *arg1 = (wxListBox *) 0 ;
9238 wxArrayString *arg2 = 0 ;
9239 void *argp1 = 0 ;
9240 int res1 = 0 ;
9241 bool temp2 = false ;
9242 PyObject * obj0 = 0 ;
9243 PyObject * obj1 = 0 ;
9244 char * kwnames[] = {
9245 (char *) "self",(char *) "items", NULL
9246 };
9247
9248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9250 if (!SWIG_IsOK(res1)) {
9251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9252 }
9253 arg1 = reinterpret_cast< wxListBox * >(argp1);
9254 {
9255 if (! PySequence_Check(obj1)) {
9256 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9257 SWIG_fail;
9258 }
9259 arg2 = new wxArrayString;
9260 temp2 = true;
9261 int i, len=PySequence_Length(obj1);
9262 for (i=0; i<len; i++) {
9263 PyObject* item = PySequence_GetItem(obj1, i);
9264 wxString* s = wxString_in_helper(item);
9265 if (PyErr_Occurred()) SWIG_fail;
9266 arg2->Add(*s);
9267 delete s;
9268 Py_DECREF(item);
9269 }
9270 }
9271 {
9272 PyThreadState* __tstate = wxPyBeginAllowThreads();
9273 (arg1)->Set((wxArrayString const &)*arg2);
9274 wxPyEndAllowThreads(__tstate);
9275 if (PyErr_Occurred()) SWIG_fail;
9276 }
9277 resultobj = SWIG_Py_Void();
9278 {
9279 if (temp2) delete arg2;
9280 }
9281 return resultobj;
9282 fail:
9283 {
9284 if (temp2) delete arg2;
9285 }
9286 return NULL;
9287 }
9288
9289
9290 SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9291 PyObject *resultobj = 0;
9292 wxListBox *arg1 = (wxListBox *) 0 ;
9293 int arg2 ;
9294 bool result;
9295 void *argp1 = 0 ;
9296 int res1 = 0 ;
9297 int val2 ;
9298 int ecode2 = 0 ;
9299 PyObject * obj0 = 0 ;
9300 PyObject * obj1 = 0 ;
9301 char * kwnames[] = {
9302 (char *) "self",(char *) "n", NULL
9303 };
9304
9305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9307 if (!SWIG_IsOK(res1)) {
9308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9309 }
9310 arg1 = reinterpret_cast< wxListBox * >(argp1);
9311 ecode2 = SWIG_AsVal_int(obj1, &val2);
9312 if (!SWIG_IsOK(ecode2)) {
9313 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9314 }
9315 arg2 = static_cast< int >(val2);
9316 {
9317 PyThreadState* __tstate = wxPyBeginAllowThreads();
9318 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9319 wxPyEndAllowThreads(__tstate);
9320 if (PyErr_Occurred()) SWIG_fail;
9321 }
9322 {
9323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9324 }
9325 return resultobj;
9326 fail:
9327 return NULL;
9328 }
9329
9330
9331 SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9332 PyObject *resultobj = 0;
9333 wxListBox *arg1 = (wxListBox *) 0 ;
9334 int arg2 ;
9335 bool arg3 = (bool) true ;
9336 void *argp1 = 0 ;
9337 int res1 = 0 ;
9338 int val2 ;
9339 int ecode2 = 0 ;
9340 bool val3 ;
9341 int ecode3 = 0 ;
9342 PyObject * obj0 = 0 ;
9343 PyObject * obj1 = 0 ;
9344 PyObject * obj2 = 0 ;
9345 char * kwnames[] = {
9346 (char *) "self",(char *) "n",(char *) "select", NULL
9347 };
9348
9349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9351 if (!SWIG_IsOK(res1)) {
9352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9353 }
9354 arg1 = reinterpret_cast< wxListBox * >(argp1);
9355 ecode2 = SWIG_AsVal_int(obj1, &val2);
9356 if (!SWIG_IsOK(ecode2)) {
9357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9358 }
9359 arg2 = static_cast< int >(val2);
9360 if (obj2) {
9361 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9362 if (!SWIG_IsOK(ecode3)) {
9363 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9364 }
9365 arg3 = static_cast< bool >(val3);
9366 }
9367 {
9368 PyThreadState* __tstate = wxPyBeginAllowThreads();
9369 (arg1)->SetSelection(arg2,arg3);
9370 wxPyEndAllowThreads(__tstate);
9371 if (PyErr_Occurred()) SWIG_fail;
9372 }
9373 resultobj = SWIG_Py_Void();
9374 return resultobj;
9375 fail:
9376 return NULL;
9377 }
9378
9379
9380 SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9381 PyObject *resultobj = 0;
9382 wxListBox *arg1 = (wxListBox *) 0 ;
9383 int arg2 ;
9384 void *argp1 = 0 ;
9385 int res1 = 0 ;
9386 int val2 ;
9387 int ecode2 = 0 ;
9388 PyObject * obj0 = 0 ;
9389 PyObject * obj1 = 0 ;
9390 char * kwnames[] = {
9391 (char *) "self",(char *) "n", NULL
9392 };
9393
9394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9396 if (!SWIG_IsOK(res1)) {
9397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9398 }
9399 arg1 = reinterpret_cast< wxListBox * >(argp1);
9400 ecode2 = SWIG_AsVal_int(obj1, &val2);
9401 if (!SWIG_IsOK(ecode2)) {
9402 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9403 }
9404 arg2 = static_cast< int >(val2);
9405 {
9406 PyThreadState* __tstate = wxPyBeginAllowThreads();
9407 (arg1)->Select(arg2);
9408 wxPyEndAllowThreads(__tstate);
9409 if (PyErr_Occurred()) SWIG_fail;
9410 }
9411 resultobj = SWIG_Py_Void();
9412 return resultobj;
9413 fail:
9414 return NULL;
9415 }
9416
9417
9418 SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9419 PyObject *resultobj = 0;
9420 wxListBox *arg1 = (wxListBox *) 0 ;
9421 int arg2 ;
9422 void *argp1 = 0 ;
9423 int res1 = 0 ;
9424 int val2 ;
9425 int ecode2 = 0 ;
9426 PyObject * obj0 = 0 ;
9427 PyObject * obj1 = 0 ;
9428 char * kwnames[] = {
9429 (char *) "self",(char *) "n", NULL
9430 };
9431
9432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9434 if (!SWIG_IsOK(res1)) {
9435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9436 }
9437 arg1 = reinterpret_cast< wxListBox * >(argp1);
9438 ecode2 = SWIG_AsVal_int(obj1, &val2);
9439 if (!SWIG_IsOK(ecode2)) {
9440 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9441 }
9442 arg2 = static_cast< int >(val2);
9443 {
9444 PyThreadState* __tstate = wxPyBeginAllowThreads();
9445 (arg1)->Deselect(arg2);
9446 wxPyEndAllowThreads(__tstate);
9447 if (PyErr_Occurred()) SWIG_fail;
9448 }
9449 resultobj = SWIG_Py_Void();
9450 return resultobj;
9451 fail:
9452 return NULL;
9453 }
9454
9455
9456 SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9457 PyObject *resultobj = 0;
9458 wxListBox *arg1 = (wxListBox *) 0 ;
9459 int arg2 = (int) -1 ;
9460 void *argp1 = 0 ;
9461 int res1 = 0 ;
9462 int val2 ;
9463 int ecode2 = 0 ;
9464 PyObject * obj0 = 0 ;
9465 PyObject * obj1 = 0 ;
9466 char * kwnames[] = {
9467 (char *) "self",(char *) "itemToLeaveSelected", NULL
9468 };
9469
9470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9472 if (!SWIG_IsOK(res1)) {
9473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9474 }
9475 arg1 = reinterpret_cast< wxListBox * >(argp1);
9476 if (obj1) {
9477 ecode2 = SWIG_AsVal_int(obj1, &val2);
9478 if (!SWIG_IsOK(ecode2)) {
9479 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9480 }
9481 arg2 = static_cast< int >(val2);
9482 }
9483 {
9484 PyThreadState* __tstate = wxPyBeginAllowThreads();
9485 (arg1)->DeselectAll(arg2);
9486 wxPyEndAllowThreads(__tstate);
9487 if (PyErr_Occurred()) SWIG_fail;
9488 }
9489 resultobj = SWIG_Py_Void();
9490 return resultobj;
9491 fail:
9492 return NULL;
9493 }
9494
9495
9496 SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9497 PyObject *resultobj = 0;
9498 wxListBox *arg1 = (wxListBox *) 0 ;
9499 wxString *arg2 = 0 ;
9500 bool arg3 = (bool) true ;
9501 bool result;
9502 void *argp1 = 0 ;
9503 int res1 = 0 ;
9504 bool temp2 = false ;
9505 bool val3 ;
9506 int ecode3 = 0 ;
9507 PyObject * obj0 = 0 ;
9508 PyObject * obj1 = 0 ;
9509 PyObject * obj2 = 0 ;
9510 char * kwnames[] = {
9511 (char *) "self",(char *) "s",(char *) "select", NULL
9512 };
9513
9514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9516 if (!SWIG_IsOK(res1)) {
9517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9518 }
9519 arg1 = reinterpret_cast< wxListBox * >(argp1);
9520 {
9521 arg2 = wxString_in_helper(obj1);
9522 if (arg2 == NULL) SWIG_fail;
9523 temp2 = true;
9524 }
9525 if (obj2) {
9526 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9527 if (!SWIG_IsOK(ecode3)) {
9528 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9529 }
9530 arg3 = static_cast< bool >(val3);
9531 }
9532 {
9533 PyThreadState* __tstate = wxPyBeginAllowThreads();
9534 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9535 wxPyEndAllowThreads(__tstate);
9536 if (PyErr_Occurred()) SWIG_fail;
9537 }
9538 {
9539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9540 }
9541 {
9542 if (temp2)
9543 delete arg2;
9544 }
9545 return resultobj;
9546 fail:
9547 {
9548 if (temp2)
9549 delete arg2;
9550 }
9551 return NULL;
9552 }
9553
9554
9555 SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9556 PyObject *resultobj = 0;
9557 wxListBox *arg1 = (wxListBox *) 0 ;
9558 PyObject *result = 0 ;
9559 void *argp1 = 0 ;
9560 int res1 = 0 ;
9561 PyObject *swig_obj[1] ;
9562
9563 if (!args) SWIG_fail;
9564 swig_obj[0] = args;
9565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9566 if (!SWIG_IsOK(res1)) {
9567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9568 }
9569 arg1 = reinterpret_cast< wxListBox * >(argp1);
9570 {
9571 PyThreadState* __tstate = wxPyBeginAllowThreads();
9572 result = (PyObject *)wxListBox_GetSelections(arg1);
9573 wxPyEndAllowThreads(__tstate);
9574 if (PyErr_Occurred()) SWIG_fail;
9575 }
9576 resultobj = result;
9577 return resultobj;
9578 fail:
9579 return NULL;
9580 }
9581
9582
9583 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9584 PyObject *resultobj = 0;
9585 wxListBox *arg1 = (wxListBox *) 0 ;
9586 int arg2 ;
9587 void *argp1 = 0 ;
9588 int res1 = 0 ;
9589 int val2 ;
9590 int ecode2 = 0 ;
9591 PyObject * obj0 = 0 ;
9592 PyObject * obj1 = 0 ;
9593 char * kwnames[] = {
9594 (char *) "self",(char *) "n", NULL
9595 };
9596
9597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9599 if (!SWIG_IsOK(res1)) {
9600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9601 }
9602 arg1 = reinterpret_cast< wxListBox * >(argp1);
9603 ecode2 = SWIG_AsVal_int(obj1, &val2);
9604 if (!SWIG_IsOK(ecode2)) {
9605 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9606 }
9607 arg2 = static_cast< int >(val2);
9608 {
9609 PyThreadState* __tstate = wxPyBeginAllowThreads();
9610 (arg1)->SetFirstItem(arg2);
9611 wxPyEndAllowThreads(__tstate);
9612 if (PyErr_Occurred()) SWIG_fail;
9613 }
9614 resultobj = SWIG_Py_Void();
9615 return resultobj;
9616 fail:
9617 return NULL;
9618 }
9619
9620
9621 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9622 PyObject *resultobj = 0;
9623 wxListBox *arg1 = (wxListBox *) 0 ;
9624 wxString *arg2 = 0 ;
9625 void *argp1 = 0 ;
9626 int res1 = 0 ;
9627 bool temp2 = false ;
9628 PyObject * obj0 = 0 ;
9629 PyObject * obj1 = 0 ;
9630 char * kwnames[] = {
9631 (char *) "self",(char *) "s", NULL
9632 };
9633
9634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9636 if (!SWIG_IsOK(res1)) {
9637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9638 }
9639 arg1 = reinterpret_cast< wxListBox * >(argp1);
9640 {
9641 arg2 = wxString_in_helper(obj1);
9642 if (arg2 == NULL) SWIG_fail;
9643 temp2 = true;
9644 }
9645 {
9646 PyThreadState* __tstate = wxPyBeginAllowThreads();
9647 (arg1)->SetFirstItem((wxString const &)*arg2);
9648 wxPyEndAllowThreads(__tstate);
9649 if (PyErr_Occurred()) SWIG_fail;
9650 }
9651 resultobj = SWIG_Py_Void();
9652 {
9653 if (temp2)
9654 delete arg2;
9655 }
9656 return resultobj;
9657 fail:
9658 {
9659 if (temp2)
9660 delete arg2;
9661 }
9662 return NULL;
9663 }
9664
9665
9666 SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9667 PyObject *resultobj = 0;
9668 wxListBox *arg1 = (wxListBox *) 0 ;
9669 int arg2 ;
9670 void *argp1 = 0 ;
9671 int res1 = 0 ;
9672 int val2 ;
9673 int ecode2 = 0 ;
9674 PyObject * obj0 = 0 ;
9675 PyObject * obj1 = 0 ;
9676 char * kwnames[] = {
9677 (char *) "self",(char *) "n", NULL
9678 };
9679
9680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9682 if (!SWIG_IsOK(res1)) {
9683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9684 }
9685 arg1 = reinterpret_cast< wxListBox * >(argp1);
9686 ecode2 = SWIG_AsVal_int(obj1, &val2);
9687 if (!SWIG_IsOK(ecode2)) {
9688 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9689 }
9690 arg2 = static_cast< int >(val2);
9691 {
9692 PyThreadState* __tstate = wxPyBeginAllowThreads();
9693 (arg1)->EnsureVisible(arg2);
9694 wxPyEndAllowThreads(__tstate);
9695 if (PyErr_Occurred()) SWIG_fail;
9696 }
9697 resultobj = SWIG_Py_Void();
9698 return resultobj;
9699 fail:
9700 return NULL;
9701 }
9702
9703
9704 SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9705 PyObject *resultobj = 0;
9706 wxListBox *arg1 = (wxListBox *) 0 ;
9707 wxString *arg2 = 0 ;
9708 void *argp1 = 0 ;
9709 int res1 = 0 ;
9710 bool temp2 = false ;
9711 PyObject * obj0 = 0 ;
9712 PyObject * obj1 = 0 ;
9713 char * kwnames[] = {
9714 (char *) "self",(char *) "s", NULL
9715 };
9716
9717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9719 if (!SWIG_IsOK(res1)) {
9720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9721 }
9722 arg1 = reinterpret_cast< wxListBox * >(argp1);
9723 {
9724 arg2 = wxString_in_helper(obj1);
9725 if (arg2 == NULL) SWIG_fail;
9726 temp2 = true;
9727 }
9728 {
9729 PyThreadState* __tstate = wxPyBeginAllowThreads();
9730 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9731 wxPyEndAllowThreads(__tstate);
9732 if (PyErr_Occurred()) SWIG_fail;
9733 }
9734 resultobj = SWIG_Py_Void();
9735 {
9736 if (temp2)
9737 delete arg2;
9738 }
9739 return resultobj;
9740 fail:
9741 {
9742 if (temp2)
9743 delete arg2;
9744 }
9745 return NULL;
9746 }
9747
9748
9749 SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9750 PyObject *resultobj = 0;
9751 wxListBox *arg1 = (wxListBox *) 0 ;
9752 bool result;
9753 void *argp1 = 0 ;
9754 int res1 = 0 ;
9755 PyObject *swig_obj[1] ;
9756
9757 if (!args) SWIG_fail;
9758 swig_obj[0] = args;
9759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9760 if (!SWIG_IsOK(res1)) {
9761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9762 }
9763 arg1 = reinterpret_cast< wxListBox * >(argp1);
9764 {
9765 PyThreadState* __tstate = wxPyBeginAllowThreads();
9766 result = (bool)((wxListBox const *)arg1)->IsSorted();
9767 wxPyEndAllowThreads(__tstate);
9768 if (PyErr_Occurred()) SWIG_fail;
9769 }
9770 {
9771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9772 }
9773 return resultobj;
9774 fail:
9775 return NULL;
9776 }
9777
9778
9779 SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9780 PyObject *resultobj = 0;
9781 wxListBox *arg1 = (wxListBox *) 0 ;
9782 wxPoint *arg2 = 0 ;
9783 int result;
9784 void *argp1 = 0 ;
9785 int res1 = 0 ;
9786 wxPoint temp2 ;
9787 PyObject * obj0 = 0 ;
9788 PyObject * obj1 = 0 ;
9789 char * kwnames[] = {
9790 (char *) "self",(char *) "pt", NULL
9791 };
9792
9793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9795 if (!SWIG_IsOK(res1)) {
9796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9797 }
9798 arg1 = reinterpret_cast< wxListBox * >(argp1);
9799 {
9800 arg2 = &temp2;
9801 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9802 }
9803 {
9804 PyThreadState* __tstate = wxPyBeginAllowThreads();
9805 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9806 wxPyEndAllowThreads(__tstate);
9807 if (PyErr_Occurred()) SWIG_fail;
9808 }
9809 resultobj = SWIG_From_int(static_cast< int >(result));
9810 return resultobj;
9811 fail:
9812 return NULL;
9813 }
9814
9815
9816 SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9817 PyObject *resultobj = 0;
9818 wxListBox *arg1 = (wxListBox *) 0 ;
9819 int arg2 ;
9820 wxColour *arg3 = 0 ;
9821 void *argp1 = 0 ;
9822 int res1 = 0 ;
9823 int val2 ;
9824 int ecode2 = 0 ;
9825 wxColour temp3 ;
9826 PyObject * obj0 = 0 ;
9827 PyObject * obj1 = 0 ;
9828 PyObject * obj2 = 0 ;
9829 char * kwnames[] = {
9830 (char *) "self",(char *) "item",(char *) "c", NULL
9831 };
9832
9833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9835 if (!SWIG_IsOK(res1)) {
9836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9837 }
9838 arg1 = reinterpret_cast< wxListBox * >(argp1);
9839 ecode2 = SWIG_AsVal_int(obj1, &val2);
9840 if (!SWIG_IsOK(ecode2)) {
9841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9842 }
9843 arg2 = static_cast< int >(val2);
9844 {
9845 arg3 = &temp3;
9846 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9847 }
9848 {
9849 PyThreadState* __tstate = wxPyBeginAllowThreads();
9850 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9851 wxPyEndAllowThreads(__tstate);
9852 if (PyErr_Occurred()) SWIG_fail;
9853 }
9854 resultobj = SWIG_Py_Void();
9855 return resultobj;
9856 fail:
9857 return NULL;
9858 }
9859
9860
9861 SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9862 PyObject *resultobj = 0;
9863 wxListBox *arg1 = (wxListBox *) 0 ;
9864 int arg2 ;
9865 wxColour *arg3 = 0 ;
9866 void *argp1 = 0 ;
9867 int res1 = 0 ;
9868 int val2 ;
9869 int ecode2 = 0 ;
9870 wxColour temp3 ;
9871 PyObject * obj0 = 0 ;
9872 PyObject * obj1 = 0 ;
9873 PyObject * obj2 = 0 ;
9874 char * kwnames[] = {
9875 (char *) "self",(char *) "item",(char *) "c", NULL
9876 };
9877
9878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9880 if (!SWIG_IsOK(res1)) {
9881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9882 }
9883 arg1 = reinterpret_cast< wxListBox * >(argp1);
9884 ecode2 = SWIG_AsVal_int(obj1, &val2);
9885 if (!SWIG_IsOK(ecode2)) {
9886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9887 }
9888 arg2 = static_cast< int >(val2);
9889 {
9890 arg3 = &temp3;
9891 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9892 }
9893 {
9894 PyThreadState* __tstate = wxPyBeginAllowThreads();
9895 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9896 wxPyEndAllowThreads(__tstate);
9897 if (PyErr_Occurred()) SWIG_fail;
9898 }
9899 resultobj = SWIG_Py_Void();
9900 return resultobj;
9901 fail:
9902 return NULL;
9903 }
9904
9905
9906 SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9907 PyObject *resultobj = 0;
9908 wxListBox *arg1 = (wxListBox *) 0 ;
9909 int arg2 ;
9910 wxFont *arg3 = 0 ;
9911 void *argp1 = 0 ;
9912 int res1 = 0 ;
9913 int val2 ;
9914 int ecode2 = 0 ;
9915 void *argp3 = 0 ;
9916 int res3 = 0 ;
9917 PyObject * obj0 = 0 ;
9918 PyObject * obj1 = 0 ;
9919 PyObject * obj2 = 0 ;
9920 char * kwnames[] = {
9921 (char *) "self",(char *) "item",(char *) "f", NULL
9922 };
9923
9924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9926 if (!SWIG_IsOK(res1)) {
9927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9928 }
9929 arg1 = reinterpret_cast< wxListBox * >(argp1);
9930 ecode2 = SWIG_AsVal_int(obj1, &val2);
9931 if (!SWIG_IsOK(ecode2)) {
9932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9933 }
9934 arg2 = static_cast< int >(val2);
9935 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9936 if (!SWIG_IsOK(res3)) {
9937 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9938 }
9939 if (!argp3) {
9940 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9941 }
9942 arg3 = reinterpret_cast< wxFont * >(argp3);
9943 {
9944 PyThreadState* __tstate = wxPyBeginAllowThreads();
9945 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9946 wxPyEndAllowThreads(__tstate);
9947 if (PyErr_Occurred()) SWIG_fail;
9948 }
9949 resultobj = SWIG_Py_Void();
9950 return resultobj;
9951 fail:
9952 return NULL;
9953 }
9954
9955
9956 SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9957 PyObject *resultobj = 0;
9958 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9959 SwigValueWrapper<wxVisualAttributes > result;
9960 int val1 ;
9961 int ecode1 = 0 ;
9962 PyObject * obj0 = 0 ;
9963 char * kwnames[] = {
9964 (char *) "variant", NULL
9965 };
9966
9967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9968 if (obj0) {
9969 ecode1 = SWIG_AsVal_int(obj0, &val1);
9970 if (!SWIG_IsOK(ecode1)) {
9971 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9972 }
9973 arg1 = static_cast< wxWindowVariant >(val1);
9974 }
9975 {
9976 if (!wxPyCheckForApp()) SWIG_fail;
9977 PyThreadState* __tstate = wxPyBeginAllowThreads();
9978 result = wxListBox::GetClassDefaultAttributes(arg1);
9979 wxPyEndAllowThreads(__tstate);
9980 if (PyErr_Occurred()) SWIG_fail;
9981 }
9982 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9983 return resultobj;
9984 fail:
9985 return NULL;
9986 }
9987
9988
9989 SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9990 PyObject *obj;
9991 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9992 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9993 return SWIG_Py_Void();
9994 }
9995
9996 SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9997 return SWIG_Python_InitShadowInstance(args);
9998 }
9999
10000 SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10001 PyObject *resultobj = 0;
10002 wxWindow *arg1 = (wxWindow *) 0 ;
10003 int arg2 = (int) -1 ;
10004 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10005 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10006 wxSize const &arg4_defvalue = wxDefaultSize ;
10007 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10008 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
10009 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
10010 long arg6 = (long) 0 ;
10011 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10012 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10013 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
10014 wxString *arg8 = (wxString *) &arg8_defvalue ;
10015 wxCheckListBox *result = 0 ;
10016 void *argp1 = 0 ;
10017 int res1 = 0 ;
10018 int val2 ;
10019 int ecode2 = 0 ;
10020 wxPoint temp3 ;
10021 wxSize temp4 ;
10022 bool temp5 = false ;
10023 long val6 ;
10024 int ecode6 = 0 ;
10025 void *argp7 = 0 ;
10026 int res7 = 0 ;
10027 bool temp8 = false ;
10028 PyObject * obj0 = 0 ;
10029 PyObject * obj1 = 0 ;
10030 PyObject * obj2 = 0 ;
10031 PyObject * obj3 = 0 ;
10032 PyObject * obj4 = 0 ;
10033 PyObject * obj5 = 0 ;
10034 PyObject * obj6 = 0 ;
10035 PyObject * obj7 = 0 ;
10036 char * kwnames[] = {
10037 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10038 };
10039
10040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
10041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
10042 if (!SWIG_IsOK(res1)) {
10043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
10044 }
10045 arg1 = reinterpret_cast< wxWindow * >(argp1);
10046 if (obj1) {
10047 ecode2 = SWIG_AsVal_int(obj1, &val2);
10048 if (!SWIG_IsOK(ecode2)) {
10049 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10050 }
10051 arg2 = static_cast< int >(val2);
10052 }
10053 if (obj2) {
10054 {
10055 arg3 = &temp3;
10056 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10057 }
10058 }
10059 if (obj3) {
10060 {
10061 arg4 = &temp4;
10062 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10063 }
10064 }
10065 if (obj4) {
10066 {
10067 if (! PySequence_Check(obj4)) {
10068 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10069 SWIG_fail;
10070 }
10071 arg5 = new wxArrayString;
10072 temp5 = true;
10073 int i, len=PySequence_Length(obj4);
10074 for (i=0; i<len; i++) {
10075 PyObject* item = PySequence_GetItem(obj4, i);
10076 wxString* s = wxString_in_helper(item);
10077 if (PyErr_Occurred()) SWIG_fail;
10078 arg5->Add(*s);
10079 delete s;
10080 Py_DECREF(item);
10081 }
10082 }
10083 }
10084 if (obj5) {
10085 ecode6 = SWIG_AsVal_long(obj5, &val6);
10086 if (!SWIG_IsOK(ecode6)) {
10087 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10088 }
10089 arg6 = static_cast< long >(val6);
10090 }
10091 if (obj6) {
10092 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10093 if (!SWIG_IsOK(res7)) {
10094 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10095 }
10096 if (!argp7) {
10097 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10098 }
10099 arg7 = reinterpret_cast< wxValidator * >(argp7);
10100 }
10101 if (obj7) {
10102 {
10103 arg8 = wxString_in_helper(obj7);
10104 if (arg8 == NULL) SWIG_fail;
10105 temp8 = true;
10106 }
10107 }
10108 {
10109 if (!wxPyCheckForApp()) SWIG_fail;
10110 PyThreadState* __tstate = wxPyBeginAllowThreads();
10111 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10112 wxPyEndAllowThreads(__tstate);
10113 if (PyErr_Occurred()) SWIG_fail;
10114 }
10115 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10116 {
10117 if (temp5) delete arg5;
10118 }
10119 {
10120 if (temp8)
10121 delete arg8;
10122 }
10123 return resultobj;
10124 fail:
10125 {
10126 if (temp5) delete arg5;
10127 }
10128 {
10129 if (temp8)
10130 delete arg8;
10131 }
10132 return NULL;
10133 }
10134
10135
10136 SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10137 PyObject *resultobj = 0;
10138 wxCheckListBox *result = 0 ;
10139
10140 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10141 {
10142 if (!wxPyCheckForApp()) SWIG_fail;
10143 PyThreadState* __tstate = wxPyBeginAllowThreads();
10144 result = (wxCheckListBox *)new wxCheckListBox();
10145 wxPyEndAllowThreads(__tstate);
10146 if (PyErr_Occurred()) SWIG_fail;
10147 }
10148 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10149 return resultobj;
10150 fail:
10151 return NULL;
10152 }
10153
10154
10155 SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10156 PyObject *resultobj = 0;
10157 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10158 wxWindow *arg2 = (wxWindow *) 0 ;
10159 int arg3 = (int) -1 ;
10160 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10161 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10162 wxSize const &arg5_defvalue = wxDefaultSize ;
10163 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10164 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10165 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10166 long arg7 = (long) 0 ;
10167 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10168 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10169 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10170 wxString *arg9 = (wxString *) &arg9_defvalue ;
10171 bool result;
10172 void *argp1 = 0 ;
10173 int res1 = 0 ;
10174 void *argp2 = 0 ;
10175 int res2 = 0 ;
10176 int val3 ;
10177 int ecode3 = 0 ;
10178 wxPoint temp4 ;
10179 wxSize temp5 ;
10180 bool temp6 = false ;
10181 long val7 ;
10182 int ecode7 = 0 ;
10183 void *argp8 = 0 ;
10184 int res8 = 0 ;
10185 bool temp9 = false ;
10186 PyObject * obj0 = 0 ;
10187 PyObject * obj1 = 0 ;
10188 PyObject * obj2 = 0 ;
10189 PyObject * obj3 = 0 ;
10190 PyObject * obj4 = 0 ;
10191 PyObject * obj5 = 0 ;
10192 PyObject * obj6 = 0 ;
10193 PyObject * obj7 = 0 ;
10194 PyObject * obj8 = 0 ;
10195 char * kwnames[] = {
10196 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10197 };
10198
10199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10201 if (!SWIG_IsOK(res1)) {
10202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10203 }
10204 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10205 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10206 if (!SWIG_IsOK(res2)) {
10207 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10208 }
10209 arg2 = reinterpret_cast< wxWindow * >(argp2);
10210 if (obj2) {
10211 ecode3 = SWIG_AsVal_int(obj2, &val3);
10212 if (!SWIG_IsOK(ecode3)) {
10213 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10214 }
10215 arg3 = static_cast< int >(val3);
10216 }
10217 if (obj3) {
10218 {
10219 arg4 = &temp4;
10220 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10221 }
10222 }
10223 if (obj4) {
10224 {
10225 arg5 = &temp5;
10226 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10227 }
10228 }
10229 if (obj5) {
10230 {
10231 if (! PySequence_Check(obj5)) {
10232 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10233 SWIG_fail;
10234 }
10235 arg6 = new wxArrayString;
10236 temp6 = true;
10237 int i, len=PySequence_Length(obj5);
10238 for (i=0; i<len; i++) {
10239 PyObject* item = PySequence_GetItem(obj5, i);
10240 wxString* s = wxString_in_helper(item);
10241 if (PyErr_Occurred()) SWIG_fail;
10242 arg6->Add(*s);
10243 delete s;
10244 Py_DECREF(item);
10245 }
10246 }
10247 }
10248 if (obj6) {
10249 ecode7 = SWIG_AsVal_long(obj6, &val7);
10250 if (!SWIG_IsOK(ecode7)) {
10251 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10252 }
10253 arg7 = static_cast< long >(val7);
10254 }
10255 if (obj7) {
10256 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10257 if (!SWIG_IsOK(res8)) {
10258 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10259 }
10260 if (!argp8) {
10261 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10262 }
10263 arg8 = reinterpret_cast< wxValidator * >(argp8);
10264 }
10265 if (obj8) {
10266 {
10267 arg9 = wxString_in_helper(obj8);
10268 if (arg9 == NULL) SWIG_fail;
10269 temp9 = true;
10270 }
10271 }
10272 {
10273 PyThreadState* __tstate = wxPyBeginAllowThreads();
10274 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10275 wxPyEndAllowThreads(__tstate);
10276 if (PyErr_Occurred()) SWIG_fail;
10277 }
10278 {
10279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10280 }
10281 {
10282 if (temp6) delete arg6;
10283 }
10284 {
10285 if (temp9)
10286 delete arg9;
10287 }
10288 return resultobj;
10289 fail:
10290 {
10291 if (temp6) delete arg6;
10292 }
10293 {
10294 if (temp9)
10295 delete arg9;
10296 }
10297 return NULL;
10298 }
10299
10300
10301 SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10302 PyObject *resultobj = 0;
10303 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10304 unsigned int arg2 ;
10305 bool result;
10306 void *argp1 = 0 ;
10307 int res1 = 0 ;
10308 unsigned int val2 ;
10309 int ecode2 = 0 ;
10310 PyObject * obj0 = 0 ;
10311 PyObject * obj1 = 0 ;
10312 char * kwnames[] = {
10313 (char *) "self",(char *) "index", NULL
10314 };
10315
10316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10318 if (!SWIG_IsOK(res1)) {
10319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10320 }
10321 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10322 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10323 if (!SWIG_IsOK(ecode2)) {
10324 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
10325 }
10326 arg2 = static_cast< unsigned int >(val2);
10327 {
10328 PyThreadState* __tstate = wxPyBeginAllowThreads();
10329 result = (bool)(arg1)->IsChecked(arg2);
10330 wxPyEndAllowThreads(__tstate);
10331 if (PyErr_Occurred()) SWIG_fail;
10332 }
10333 {
10334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10335 }
10336 return resultobj;
10337 fail:
10338 return NULL;
10339 }
10340
10341
10342 SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10343 PyObject *resultobj = 0;
10344 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10345 unsigned int arg2 ;
10346 int arg3 = (int) true ;
10347 void *argp1 = 0 ;
10348 int res1 = 0 ;
10349 unsigned int val2 ;
10350 int ecode2 = 0 ;
10351 int val3 ;
10352 int ecode3 = 0 ;
10353 PyObject * obj0 = 0 ;
10354 PyObject * obj1 = 0 ;
10355 PyObject * obj2 = 0 ;
10356 char * kwnames[] = {
10357 (char *) "self",(char *) "index",(char *) "check", NULL
10358 };
10359
10360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10362 if (!SWIG_IsOK(res1)) {
10363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10364 }
10365 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10366 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10367 if (!SWIG_IsOK(ecode2)) {
10368 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
10369 }
10370 arg2 = static_cast< unsigned int >(val2);
10371 if (obj2) {
10372 ecode3 = SWIG_AsVal_int(obj2, &val3);
10373 if (!SWIG_IsOK(ecode3)) {
10374 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10375 }
10376 arg3 = static_cast< int >(val3);
10377 }
10378 {
10379 PyThreadState* __tstate = wxPyBeginAllowThreads();
10380 (arg1)->Check(arg2,arg3);
10381 wxPyEndAllowThreads(__tstate);
10382 if (PyErr_Occurred()) SWIG_fail;
10383 }
10384 resultobj = SWIG_Py_Void();
10385 return resultobj;
10386 fail:
10387 return NULL;
10388 }
10389
10390
10391 SWIGINTERN PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10392 PyObject *resultobj = 0;
10393 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10394 int result;
10395 void *argp1 = 0 ;
10396 int res1 = 0 ;
10397 PyObject *swig_obj[1] ;
10398
10399 if (!args) SWIG_fail;
10400 swig_obj[0] = args;
10401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10402 if (!SWIG_IsOK(res1)) {
10403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_GetItemHeight" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10404 }
10405 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10406 {
10407 PyThreadState* __tstate = wxPyBeginAllowThreads();
10408 result = (int)(arg1)->GetItemHeight();
10409 wxPyEndAllowThreads(__tstate);
10410 if (PyErr_Occurred()) SWIG_fail;
10411 }
10412 resultobj = SWIG_From_int(static_cast< int >(result));
10413 return resultobj;
10414 fail:
10415 return NULL;
10416 }
10417
10418
10419 SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10420 PyObject *obj;
10421 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10422 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10423 return SWIG_Py_Void();
10424 }
10425
10426 SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10427 return SWIG_Python_InitShadowInstance(args);
10428 }
10429
10430 SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10431 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10432 return 1;
10433 }
10434
10435
10436 SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10437 PyObject *pyobj = 0;
10438
10439 {
10440 #if wxUSE_UNICODE
10441 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10442 #else
10443 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10444 #endif
10445 }
10446 return pyobj;
10447 }
10448
10449
10450 SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10451 PyObject *resultobj = 0;
10452 wxColour const &arg1_defvalue = wxNullColour ;
10453 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10454 wxColour const &arg2_defvalue = wxNullColour ;
10455 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10456 wxFont const &arg3_defvalue = wxNullFont ;
10457 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10458 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10459 wxTextAttr *result = 0 ;
10460 wxColour temp1 ;
10461 wxColour temp2 ;
10462 void *argp3 = 0 ;
10463 int res3 = 0 ;
10464 int val4 ;
10465 int ecode4 = 0 ;
10466 PyObject * obj0 = 0 ;
10467 PyObject * obj1 = 0 ;
10468 PyObject * obj2 = 0 ;
10469 PyObject * obj3 = 0 ;
10470 char * kwnames[] = {
10471 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10472 };
10473
10474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10475 if (obj0) {
10476 {
10477 arg1 = &temp1;
10478 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
10479 }
10480 }
10481 if (obj1) {
10482 {
10483 arg2 = &temp2;
10484 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10485 }
10486 }
10487 if (obj2) {
10488 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10489 if (!SWIG_IsOK(res3)) {
10490 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10491 }
10492 if (!argp3) {
10493 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10494 }
10495 arg3 = reinterpret_cast< wxFont * >(argp3);
10496 }
10497 if (obj3) {
10498 ecode4 = SWIG_AsVal_int(obj3, &val4);
10499 if (!SWIG_IsOK(ecode4)) {
10500 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10501 }
10502 arg4 = static_cast< wxTextAttrAlignment >(val4);
10503 }
10504 {
10505 PyThreadState* __tstate = wxPyBeginAllowThreads();
10506 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10507 wxPyEndAllowThreads(__tstate);
10508 if (PyErr_Occurred()) SWIG_fail;
10509 }
10510 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10511 return resultobj;
10512 fail:
10513 return NULL;
10514 }
10515
10516
10517 SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10518 PyObject *resultobj = 0;
10519 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10520 void *argp1 = 0 ;
10521 int res1 = 0 ;
10522 PyObject *swig_obj[1] ;
10523
10524 if (!args) SWIG_fail;
10525 swig_obj[0] = args;
10526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10527 if (!SWIG_IsOK(res1)) {
10528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10529 }
10530 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10531 {
10532 PyThreadState* __tstate = wxPyBeginAllowThreads();
10533 delete arg1;
10534
10535 wxPyEndAllowThreads(__tstate);
10536 if (PyErr_Occurred()) SWIG_fail;
10537 }
10538 resultobj = SWIG_Py_Void();
10539 return resultobj;
10540 fail:
10541 return NULL;
10542 }
10543
10544
10545 SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10546 PyObject *resultobj = 0;
10547 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10548 void *argp1 = 0 ;
10549 int res1 = 0 ;
10550 PyObject *swig_obj[1] ;
10551
10552 if (!args) SWIG_fail;
10553 swig_obj[0] = args;
10554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10555 if (!SWIG_IsOK(res1)) {
10556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10557 }
10558 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10559 {
10560 PyThreadState* __tstate = wxPyBeginAllowThreads();
10561 (arg1)->Init();
10562 wxPyEndAllowThreads(__tstate);
10563 if (PyErr_Occurred()) SWIG_fail;
10564 }
10565 resultobj = SWIG_Py_Void();
10566 return resultobj;
10567 fail:
10568 return NULL;
10569 }
10570
10571
10572 SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10573 PyObject *resultobj = 0;
10574 wxTextAttr *arg1 = 0 ;
10575 wxTextAttr *arg2 = 0 ;
10576 wxTextAttr result;
10577 void *argp1 = 0 ;
10578 int res1 = 0 ;
10579 void *argp2 = 0 ;
10580 int res2 = 0 ;
10581 PyObject * obj0 = 0 ;
10582 PyObject * obj1 = 0 ;
10583 char * kwnames[] = {
10584 (char *) "base",(char *) "overlay", NULL
10585 };
10586
10587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10588 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10589 if (!SWIG_IsOK(res1)) {
10590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10591 }
10592 if (!argp1) {
10593 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10594 }
10595 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10596 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10597 if (!SWIG_IsOK(res2)) {
10598 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10599 }
10600 if (!argp2) {
10601 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10602 }
10603 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10604 {
10605 PyThreadState* __tstate = wxPyBeginAllowThreads();
10606 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10607 wxPyEndAllowThreads(__tstate);
10608 if (PyErr_Occurred()) SWIG_fail;
10609 }
10610 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10611 return resultobj;
10612 fail:
10613 return NULL;
10614 }
10615
10616
10617 SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10618 PyObject *resultobj = 0;
10619 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10620 wxColour *arg2 = 0 ;
10621 void *argp1 = 0 ;
10622 int res1 = 0 ;
10623 wxColour temp2 ;
10624 PyObject * obj0 = 0 ;
10625 PyObject * obj1 = 0 ;
10626 char * kwnames[] = {
10627 (char *) "self",(char *) "colText", NULL
10628 };
10629
10630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10632 if (!SWIG_IsOK(res1)) {
10633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10634 }
10635 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10636 {
10637 arg2 = &temp2;
10638 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10639 }
10640 {
10641 PyThreadState* __tstate = wxPyBeginAllowThreads();
10642 (arg1)->SetTextColour((wxColour const &)*arg2);
10643 wxPyEndAllowThreads(__tstate);
10644 if (PyErr_Occurred()) SWIG_fail;
10645 }
10646 resultobj = SWIG_Py_Void();
10647 return resultobj;
10648 fail:
10649 return NULL;
10650 }
10651
10652
10653 SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10654 PyObject *resultobj = 0;
10655 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10656 wxColour *arg2 = 0 ;
10657 void *argp1 = 0 ;
10658 int res1 = 0 ;
10659 wxColour temp2 ;
10660 PyObject * obj0 = 0 ;
10661 PyObject * obj1 = 0 ;
10662 char * kwnames[] = {
10663 (char *) "self",(char *) "colBack", NULL
10664 };
10665
10666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10668 if (!SWIG_IsOK(res1)) {
10669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10670 }
10671 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10672 {
10673 arg2 = &temp2;
10674 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10675 }
10676 {
10677 PyThreadState* __tstate = wxPyBeginAllowThreads();
10678 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10679 wxPyEndAllowThreads(__tstate);
10680 if (PyErr_Occurred()) SWIG_fail;
10681 }
10682 resultobj = SWIG_Py_Void();
10683 return resultobj;
10684 fail:
10685 return NULL;
10686 }
10687
10688
10689 SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10690 PyObject *resultobj = 0;
10691 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10692 wxFont *arg2 = 0 ;
10693 long arg3 = (long) wxTEXT_ATTR_FONT ;
10694 void *argp1 = 0 ;
10695 int res1 = 0 ;
10696 void *argp2 = 0 ;
10697 int res2 = 0 ;
10698 long val3 ;
10699 int ecode3 = 0 ;
10700 PyObject * obj0 = 0 ;
10701 PyObject * obj1 = 0 ;
10702 PyObject * obj2 = 0 ;
10703 char * kwnames[] = {
10704 (char *) "self",(char *) "font",(char *) "flags", NULL
10705 };
10706
10707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10709 if (!SWIG_IsOK(res1)) {
10710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10711 }
10712 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10713 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10714 if (!SWIG_IsOK(res2)) {
10715 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10716 }
10717 if (!argp2) {
10718 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10719 }
10720 arg2 = reinterpret_cast< wxFont * >(argp2);
10721 if (obj2) {
10722 ecode3 = SWIG_AsVal_long(obj2, &val3);
10723 if (!SWIG_IsOK(ecode3)) {
10724 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10725 }
10726 arg3 = static_cast< long >(val3);
10727 }
10728 {
10729 PyThreadState* __tstate = wxPyBeginAllowThreads();
10730 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10731 wxPyEndAllowThreads(__tstate);
10732 if (PyErr_Occurred()) SWIG_fail;
10733 }
10734 resultobj = SWIG_Py_Void();
10735 return resultobj;
10736 fail:
10737 return NULL;
10738 }
10739
10740
10741 SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10742 PyObject *resultobj = 0;
10743 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10744 wxTextAttrAlignment arg2 ;
10745 void *argp1 = 0 ;
10746 int res1 = 0 ;
10747 int val2 ;
10748 int ecode2 = 0 ;
10749 PyObject * obj0 = 0 ;
10750 PyObject * obj1 = 0 ;
10751 char * kwnames[] = {
10752 (char *) "self",(char *) "alignment", NULL
10753 };
10754
10755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10757 if (!SWIG_IsOK(res1)) {
10758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10759 }
10760 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10761 ecode2 = SWIG_AsVal_int(obj1, &val2);
10762 if (!SWIG_IsOK(ecode2)) {
10763 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10764 }
10765 arg2 = static_cast< wxTextAttrAlignment >(val2);
10766 {
10767 PyThreadState* __tstate = wxPyBeginAllowThreads();
10768 (arg1)->SetAlignment(arg2);
10769 wxPyEndAllowThreads(__tstate);
10770 if (PyErr_Occurred()) SWIG_fail;
10771 }
10772 resultobj = SWIG_Py_Void();
10773 return resultobj;
10774 fail:
10775 return NULL;
10776 }
10777
10778
10779 SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10780 PyObject *resultobj = 0;
10781 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10782 wxArrayInt *arg2 = 0 ;
10783 void *argp1 = 0 ;
10784 int res1 = 0 ;
10785 bool temp2 = false ;
10786 PyObject * obj0 = 0 ;
10787 PyObject * obj1 = 0 ;
10788 char * kwnames[] = {
10789 (char *) "self",(char *) "tabs", NULL
10790 };
10791
10792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10794 if (!SWIG_IsOK(res1)) {
10795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10796 }
10797 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10798 {
10799 if (! PySequence_Check(obj1)) {
10800 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10801 SWIG_fail;
10802 }
10803 arg2 = new wxArrayInt;
10804 temp2 = true;
10805 int i, len=PySequence_Length(obj1);
10806 for (i=0; i<len; i++) {
10807 PyObject* item = PySequence_GetItem(obj1, i);
10808 PyObject* number = PyNumber_Int(item);
10809 arg2->Add(PyInt_AS_LONG(number));
10810 Py_DECREF(item);
10811 Py_DECREF(number);
10812 }
10813 }
10814 {
10815 PyThreadState* __tstate = wxPyBeginAllowThreads();
10816 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10817 wxPyEndAllowThreads(__tstate);
10818 if (PyErr_Occurred()) SWIG_fail;
10819 }
10820 resultobj = SWIG_Py_Void();
10821 {
10822 if (temp2) delete arg2;
10823 }
10824 return resultobj;
10825 fail:
10826 {
10827 if (temp2) delete arg2;
10828 }
10829 return NULL;
10830 }
10831
10832
10833 SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10834 PyObject *resultobj = 0;
10835 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10836 int arg2 ;
10837 int arg3 = (int) 0 ;
10838 void *argp1 = 0 ;
10839 int res1 = 0 ;
10840 int val2 ;
10841 int ecode2 = 0 ;
10842 int val3 ;
10843 int ecode3 = 0 ;
10844 PyObject * obj0 = 0 ;
10845 PyObject * obj1 = 0 ;
10846 PyObject * obj2 = 0 ;
10847 char * kwnames[] = {
10848 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10849 };
10850
10851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10853 if (!SWIG_IsOK(res1)) {
10854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10855 }
10856 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10857 ecode2 = SWIG_AsVal_int(obj1, &val2);
10858 if (!SWIG_IsOK(ecode2)) {
10859 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10860 }
10861 arg2 = static_cast< int >(val2);
10862 if (obj2) {
10863 ecode3 = SWIG_AsVal_int(obj2, &val3);
10864 if (!SWIG_IsOK(ecode3)) {
10865 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10866 }
10867 arg3 = static_cast< int >(val3);
10868 }
10869 {
10870 PyThreadState* __tstate = wxPyBeginAllowThreads();
10871 (arg1)->SetLeftIndent(arg2,arg3);
10872 wxPyEndAllowThreads(__tstate);
10873 if (PyErr_Occurred()) SWIG_fail;
10874 }
10875 resultobj = SWIG_Py_Void();
10876 return resultobj;
10877 fail:
10878 return NULL;
10879 }
10880
10881
10882 SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10883 PyObject *resultobj = 0;
10884 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10885 int arg2 ;
10886 void *argp1 = 0 ;
10887 int res1 = 0 ;
10888 int val2 ;
10889 int ecode2 = 0 ;
10890 PyObject * obj0 = 0 ;
10891 PyObject * obj1 = 0 ;
10892 char * kwnames[] = {
10893 (char *) "self",(char *) "indent", NULL
10894 };
10895
10896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10898 if (!SWIG_IsOK(res1)) {
10899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10900 }
10901 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10902 ecode2 = SWIG_AsVal_int(obj1, &val2);
10903 if (!SWIG_IsOK(ecode2)) {
10904 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10905 }
10906 arg2 = static_cast< int >(val2);
10907 {
10908 PyThreadState* __tstate = wxPyBeginAllowThreads();
10909 (arg1)->SetRightIndent(arg2);
10910 wxPyEndAllowThreads(__tstate);
10911 if (PyErr_Occurred()) SWIG_fail;
10912 }
10913 resultobj = SWIG_Py_Void();
10914 return resultobj;
10915 fail:
10916 return NULL;
10917 }
10918
10919
10920 SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10921 PyObject *resultobj = 0;
10922 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10923 long arg2 ;
10924 void *argp1 = 0 ;
10925 int res1 = 0 ;
10926 long val2 ;
10927 int ecode2 = 0 ;
10928 PyObject * obj0 = 0 ;
10929 PyObject * obj1 = 0 ;
10930 char * kwnames[] = {
10931 (char *) "self",(char *) "flags", NULL
10932 };
10933
10934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10936 if (!SWIG_IsOK(res1)) {
10937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10938 }
10939 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10940 ecode2 = SWIG_AsVal_long(obj1, &val2);
10941 if (!SWIG_IsOK(ecode2)) {
10942 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10943 }
10944 arg2 = static_cast< long >(val2);
10945 {
10946 PyThreadState* __tstate = wxPyBeginAllowThreads();
10947 (arg1)->SetFlags(arg2);
10948 wxPyEndAllowThreads(__tstate);
10949 if (PyErr_Occurred()) SWIG_fail;
10950 }
10951 resultobj = SWIG_Py_Void();
10952 return resultobj;
10953 fail:
10954 return NULL;
10955 }
10956
10957
10958 SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10959 PyObject *resultobj = 0;
10960 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10961 bool result;
10962 void *argp1 = 0 ;
10963 int res1 = 0 ;
10964 PyObject *swig_obj[1] ;
10965
10966 if (!args) SWIG_fail;
10967 swig_obj[0] = args;
10968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10969 if (!SWIG_IsOK(res1)) {
10970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10971 }
10972 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10973 {
10974 PyThreadState* __tstate = wxPyBeginAllowThreads();
10975 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10976 wxPyEndAllowThreads(__tstate);
10977 if (PyErr_Occurred()) SWIG_fail;
10978 }
10979 {
10980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10981 }
10982 return resultobj;
10983 fail:
10984 return NULL;
10985 }
10986
10987
10988 SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10989 PyObject *resultobj = 0;
10990 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10991 bool result;
10992 void *argp1 = 0 ;
10993 int res1 = 0 ;
10994 PyObject *swig_obj[1] ;
10995
10996 if (!args) SWIG_fail;
10997 swig_obj[0] = args;
10998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10999 if (!SWIG_IsOK(res1)) {
11000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11001 }
11002 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11003 {
11004 PyThreadState* __tstate = wxPyBeginAllowThreads();
11005 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
11006 wxPyEndAllowThreads(__tstate);
11007 if (PyErr_Occurred()) SWIG_fail;
11008 }
11009 {
11010 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11011 }
11012 return resultobj;
11013 fail:
11014 return NULL;
11015 }
11016
11017
11018 SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11019 PyObject *resultobj = 0;
11020 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11021 bool result;
11022 void *argp1 = 0 ;
11023 int res1 = 0 ;
11024 PyObject *swig_obj[1] ;
11025
11026 if (!args) SWIG_fail;
11027 swig_obj[0] = args;
11028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11029 if (!SWIG_IsOK(res1)) {
11030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11031 }
11032 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11033 {
11034 PyThreadState* __tstate = wxPyBeginAllowThreads();
11035 result = (bool)((wxTextAttr const *)arg1)->HasFont();
11036 wxPyEndAllowThreads(__tstate);
11037 if (PyErr_Occurred()) SWIG_fail;
11038 }
11039 {
11040 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11041 }
11042 return resultobj;
11043 fail:
11044 return NULL;
11045 }
11046
11047
11048 SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11049 PyObject *resultobj = 0;
11050 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11051 bool result;
11052 void *argp1 = 0 ;
11053 int res1 = 0 ;
11054 PyObject *swig_obj[1] ;
11055
11056 if (!args) SWIG_fail;
11057 swig_obj[0] = args;
11058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11059 if (!SWIG_IsOK(res1)) {
11060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11061 }
11062 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11063 {
11064 PyThreadState* __tstate = wxPyBeginAllowThreads();
11065 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
11066 wxPyEndAllowThreads(__tstate);
11067 if (PyErr_Occurred()) SWIG_fail;
11068 }
11069 {
11070 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11071 }
11072 return resultobj;
11073 fail:
11074 return NULL;
11075 }
11076
11077
11078 SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11079 PyObject *resultobj = 0;
11080 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11081 bool result;
11082 void *argp1 = 0 ;
11083 int res1 = 0 ;
11084 PyObject *swig_obj[1] ;
11085
11086 if (!args) SWIG_fail;
11087 swig_obj[0] = args;
11088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11089 if (!SWIG_IsOK(res1)) {
11090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11091 }
11092 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11093 {
11094 PyThreadState* __tstate = wxPyBeginAllowThreads();
11095 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11096 wxPyEndAllowThreads(__tstate);
11097 if (PyErr_Occurred()) SWIG_fail;
11098 }
11099 {
11100 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11101 }
11102 return resultobj;
11103 fail:
11104 return NULL;
11105 }
11106
11107
11108 SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11109 PyObject *resultobj = 0;
11110 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11111 bool result;
11112 void *argp1 = 0 ;
11113 int res1 = 0 ;
11114 PyObject *swig_obj[1] ;
11115
11116 if (!args) SWIG_fail;
11117 swig_obj[0] = args;
11118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11119 if (!SWIG_IsOK(res1)) {
11120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11121 }
11122 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11123 {
11124 PyThreadState* __tstate = wxPyBeginAllowThreads();
11125 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11126 wxPyEndAllowThreads(__tstate);
11127 if (PyErr_Occurred()) SWIG_fail;
11128 }
11129 {
11130 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11131 }
11132 return resultobj;
11133 fail:
11134 return NULL;
11135 }
11136
11137
11138 SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11139 PyObject *resultobj = 0;
11140 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11141 bool result;
11142 void *argp1 = 0 ;
11143 int res1 = 0 ;
11144 PyObject *swig_obj[1] ;
11145
11146 if (!args) SWIG_fail;
11147 swig_obj[0] = args;
11148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11149 if (!SWIG_IsOK(res1)) {
11150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11151 }
11152 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11153 {
11154 PyThreadState* __tstate = wxPyBeginAllowThreads();
11155 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11156 wxPyEndAllowThreads(__tstate);
11157 if (PyErr_Occurred()) SWIG_fail;
11158 }
11159 {
11160 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11161 }
11162 return resultobj;
11163 fail:
11164 return NULL;
11165 }
11166
11167
11168 SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11169 PyObject *resultobj = 0;
11170 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11171 long arg2 ;
11172 bool result;
11173 void *argp1 = 0 ;
11174 int res1 = 0 ;
11175 long val2 ;
11176 int ecode2 = 0 ;
11177 PyObject * obj0 = 0 ;
11178 PyObject * obj1 = 0 ;
11179 char * kwnames[] = {
11180 (char *) "self",(char *) "flag", NULL
11181 };
11182
11183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11185 if (!SWIG_IsOK(res1)) {
11186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11187 }
11188 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11189 ecode2 = SWIG_AsVal_long(obj1, &val2);
11190 if (!SWIG_IsOK(ecode2)) {
11191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11192 }
11193 arg2 = static_cast< long >(val2);
11194 {
11195 PyThreadState* __tstate = wxPyBeginAllowThreads();
11196 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11197 wxPyEndAllowThreads(__tstate);
11198 if (PyErr_Occurred()) SWIG_fail;
11199 }
11200 {
11201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11202 }
11203 return resultobj;
11204 fail:
11205 return NULL;
11206 }
11207
11208
11209 SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11210 PyObject *resultobj = 0;
11211 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11212 wxColour *result = 0 ;
11213 void *argp1 = 0 ;
11214 int res1 = 0 ;
11215 PyObject *swig_obj[1] ;
11216
11217 if (!args) SWIG_fail;
11218 swig_obj[0] = args;
11219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11220 if (!SWIG_IsOK(res1)) {
11221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11222 }
11223 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11224 {
11225 PyThreadState* __tstate = wxPyBeginAllowThreads();
11226 {
11227 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11228 result = (wxColour *) &_result_ref;
11229 }
11230 wxPyEndAllowThreads(__tstate);
11231 if (PyErr_Occurred()) SWIG_fail;
11232 }
11233 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11234 return resultobj;
11235 fail:
11236 return NULL;
11237 }
11238
11239
11240 SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11241 PyObject *resultobj = 0;
11242 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11243 wxColour *result = 0 ;
11244 void *argp1 = 0 ;
11245 int res1 = 0 ;
11246 PyObject *swig_obj[1] ;
11247
11248 if (!args) SWIG_fail;
11249 swig_obj[0] = args;
11250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11251 if (!SWIG_IsOK(res1)) {
11252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11253 }
11254 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11255 {
11256 PyThreadState* __tstate = wxPyBeginAllowThreads();
11257 {
11258 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11259 result = (wxColour *) &_result_ref;
11260 }
11261 wxPyEndAllowThreads(__tstate);
11262 if (PyErr_Occurred()) SWIG_fail;
11263 }
11264 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11265 return resultobj;
11266 fail:
11267 return NULL;
11268 }
11269
11270
11271 SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11272 PyObject *resultobj = 0;
11273 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11274 wxFont *result = 0 ;
11275 void *argp1 = 0 ;
11276 int res1 = 0 ;
11277 PyObject *swig_obj[1] ;
11278
11279 if (!args) SWIG_fail;
11280 swig_obj[0] = args;
11281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11282 if (!SWIG_IsOK(res1)) {
11283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11284 }
11285 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11286 {
11287 PyThreadState* __tstate = wxPyBeginAllowThreads();
11288 {
11289 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11290 result = (wxFont *) &_result_ref;
11291 }
11292 wxPyEndAllowThreads(__tstate);
11293 if (PyErr_Occurred()) SWIG_fail;
11294 }
11295 {
11296 wxFont* resultptr = new wxFont(*result);
11297 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11298 }
11299 return resultobj;
11300 fail:
11301 return NULL;
11302 }
11303
11304
11305 SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11306 PyObject *resultobj = 0;
11307 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11308 wxTextAttrAlignment result;
11309 void *argp1 = 0 ;
11310 int res1 = 0 ;
11311 PyObject *swig_obj[1] ;
11312
11313 if (!args) SWIG_fail;
11314 swig_obj[0] = args;
11315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11316 if (!SWIG_IsOK(res1)) {
11317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11318 }
11319 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11320 {
11321 PyThreadState* __tstate = wxPyBeginAllowThreads();
11322 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11323 wxPyEndAllowThreads(__tstate);
11324 if (PyErr_Occurred()) SWIG_fail;
11325 }
11326 resultobj = SWIG_From_int(static_cast< int >(result));
11327 return resultobj;
11328 fail:
11329 return NULL;
11330 }
11331
11332
11333 SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11334 PyObject *resultobj = 0;
11335 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11336 wxArrayInt *result = 0 ;
11337 void *argp1 = 0 ;
11338 int res1 = 0 ;
11339 PyObject *swig_obj[1] ;
11340
11341 if (!args) SWIG_fail;
11342 swig_obj[0] = args;
11343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11344 if (!SWIG_IsOK(res1)) {
11345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11346 }
11347 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11348 {
11349 PyThreadState* __tstate = wxPyBeginAllowThreads();
11350 {
11351 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11352 result = (wxArrayInt *) &_result_ref;
11353 }
11354 wxPyEndAllowThreads(__tstate);
11355 if (PyErr_Occurred()) SWIG_fail;
11356 }
11357 {
11358 resultobj = PyList_New(0);
11359 size_t idx;
11360 for (idx = 0; idx < result->GetCount(); idx += 1) {
11361 PyObject* val = PyInt_FromLong( result->Item(idx) );
11362 PyList_Append(resultobj, val);
11363 Py_DECREF(val);
11364 }
11365 }
11366 return resultobj;
11367 fail:
11368 return NULL;
11369 }
11370
11371
11372 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11373 PyObject *resultobj = 0;
11374 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11375 long result;
11376 void *argp1 = 0 ;
11377 int res1 = 0 ;
11378 PyObject *swig_obj[1] ;
11379
11380 if (!args) SWIG_fail;
11381 swig_obj[0] = args;
11382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11383 if (!SWIG_IsOK(res1)) {
11384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11385 }
11386 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11387 {
11388 PyThreadState* __tstate = wxPyBeginAllowThreads();
11389 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11390 wxPyEndAllowThreads(__tstate);
11391 if (PyErr_Occurred()) SWIG_fail;
11392 }
11393 resultobj = SWIG_From_long(static_cast< long >(result));
11394 return resultobj;
11395 fail:
11396 return NULL;
11397 }
11398
11399
11400 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11401 PyObject *resultobj = 0;
11402 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11403 long result;
11404 void *argp1 = 0 ;
11405 int res1 = 0 ;
11406 PyObject *swig_obj[1] ;
11407
11408 if (!args) SWIG_fail;
11409 swig_obj[0] = args;
11410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11411 if (!SWIG_IsOK(res1)) {
11412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11413 }
11414 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11415 {
11416 PyThreadState* __tstate = wxPyBeginAllowThreads();
11417 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11418 wxPyEndAllowThreads(__tstate);
11419 if (PyErr_Occurred()) SWIG_fail;
11420 }
11421 resultobj = SWIG_From_long(static_cast< long >(result));
11422 return resultobj;
11423 fail:
11424 return NULL;
11425 }
11426
11427
11428 SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11429 PyObject *resultobj = 0;
11430 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11431 long result;
11432 void *argp1 = 0 ;
11433 int res1 = 0 ;
11434 PyObject *swig_obj[1] ;
11435
11436 if (!args) SWIG_fail;
11437 swig_obj[0] = args;
11438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11439 if (!SWIG_IsOK(res1)) {
11440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11441 }
11442 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11443 {
11444 PyThreadState* __tstate = wxPyBeginAllowThreads();
11445 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11446 wxPyEndAllowThreads(__tstate);
11447 if (PyErr_Occurred()) SWIG_fail;
11448 }
11449 resultobj = SWIG_From_long(static_cast< long >(result));
11450 return resultobj;
11451 fail:
11452 return NULL;
11453 }
11454
11455
11456 SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11457 PyObject *resultobj = 0;
11458 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11459 long result;
11460 void *argp1 = 0 ;
11461 int res1 = 0 ;
11462 PyObject *swig_obj[1] ;
11463
11464 if (!args) SWIG_fail;
11465 swig_obj[0] = args;
11466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11467 if (!SWIG_IsOK(res1)) {
11468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11469 }
11470 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11471 {
11472 PyThreadState* __tstate = wxPyBeginAllowThreads();
11473 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11474 wxPyEndAllowThreads(__tstate);
11475 if (PyErr_Occurred()) SWIG_fail;
11476 }
11477 resultobj = SWIG_From_long(static_cast< long >(result));
11478 return resultobj;
11479 fail:
11480 return NULL;
11481 }
11482
11483
11484 SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11485 PyObject *resultobj = 0;
11486 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11487 bool result;
11488 void *argp1 = 0 ;
11489 int res1 = 0 ;
11490 PyObject *swig_obj[1] ;
11491
11492 if (!args) SWIG_fail;
11493 swig_obj[0] = args;
11494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11495 if (!SWIG_IsOK(res1)) {
11496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11497 }
11498 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11499 {
11500 PyThreadState* __tstate = wxPyBeginAllowThreads();
11501 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11502 wxPyEndAllowThreads(__tstate);
11503 if (PyErr_Occurred()) SWIG_fail;
11504 }
11505 {
11506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11507 }
11508 return resultobj;
11509 fail:
11510 return NULL;
11511 }
11512
11513
11514 SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11515 PyObject *resultobj = 0;
11516 wxTextAttr *arg1 = 0 ;
11517 wxTextAttr *arg2 = 0 ;
11518 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11519 wxTextAttr result;
11520 void *argp1 = 0 ;
11521 int res1 = 0 ;
11522 void *argp2 = 0 ;
11523 int res2 = 0 ;
11524 void *argp3 = 0 ;
11525 int res3 = 0 ;
11526 PyObject * obj0 = 0 ;
11527 PyObject * obj1 = 0 ;
11528 PyObject * obj2 = 0 ;
11529 char * kwnames[] = {
11530 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11531 };
11532
11533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11534 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11535 if (!SWIG_IsOK(res1)) {
11536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11537 }
11538 if (!argp1) {
11539 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11540 }
11541 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11542 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11543 if (!SWIG_IsOK(res2)) {
11544 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11545 }
11546 if (!argp2) {
11547 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11548 }
11549 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11550 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11551 if (!SWIG_IsOK(res3)) {
11552 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11553 }
11554 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11555 {
11556 PyThreadState* __tstate = wxPyBeginAllowThreads();
11557 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11558 wxPyEndAllowThreads(__tstate);
11559 if (PyErr_Occurred()) SWIG_fail;
11560 }
11561 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11562 return resultobj;
11563 fail:
11564 return NULL;
11565 }
11566
11567
11568 SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11569 PyObject *obj;
11570 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11571 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11572 return SWIG_Py_Void();
11573 }
11574
11575 SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11576 return SWIG_Python_InitShadowInstance(args);
11577 }
11578
11579 SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11580 PyObject *resultobj = 0;
11581 wxWindow *arg1 = (wxWindow *) 0 ;
11582 int arg2 = (int) -1 ;
11583 wxString const &arg3_defvalue = wxPyEmptyString ;
11584 wxString *arg3 = (wxString *) &arg3_defvalue ;
11585 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11586 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11587 wxSize const &arg5_defvalue = wxDefaultSize ;
11588 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11589 long arg6 = (long) 0 ;
11590 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11591 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11592 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11593 wxString *arg8 = (wxString *) &arg8_defvalue ;
11594 wxTextCtrl *result = 0 ;
11595 void *argp1 = 0 ;
11596 int res1 = 0 ;
11597 int val2 ;
11598 int ecode2 = 0 ;
11599 bool temp3 = false ;
11600 wxPoint temp4 ;
11601 wxSize temp5 ;
11602 long val6 ;
11603 int ecode6 = 0 ;
11604 void *argp7 = 0 ;
11605 int res7 = 0 ;
11606 bool temp8 = false ;
11607 PyObject * obj0 = 0 ;
11608 PyObject * obj1 = 0 ;
11609 PyObject * obj2 = 0 ;
11610 PyObject * obj3 = 0 ;
11611 PyObject * obj4 = 0 ;
11612 PyObject * obj5 = 0 ;
11613 PyObject * obj6 = 0 ;
11614 PyObject * obj7 = 0 ;
11615 char * kwnames[] = {
11616 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11617 };
11618
11619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11621 if (!SWIG_IsOK(res1)) {
11622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11623 }
11624 arg1 = reinterpret_cast< wxWindow * >(argp1);
11625 if (obj1) {
11626 ecode2 = SWIG_AsVal_int(obj1, &val2);
11627 if (!SWIG_IsOK(ecode2)) {
11628 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11629 }
11630 arg2 = static_cast< int >(val2);
11631 }
11632 if (obj2) {
11633 {
11634 arg3 = wxString_in_helper(obj2);
11635 if (arg3 == NULL) SWIG_fail;
11636 temp3 = true;
11637 }
11638 }
11639 if (obj3) {
11640 {
11641 arg4 = &temp4;
11642 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11643 }
11644 }
11645 if (obj4) {
11646 {
11647 arg5 = &temp5;
11648 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11649 }
11650 }
11651 if (obj5) {
11652 ecode6 = SWIG_AsVal_long(obj5, &val6);
11653 if (!SWIG_IsOK(ecode6)) {
11654 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11655 }
11656 arg6 = static_cast< long >(val6);
11657 }
11658 if (obj6) {
11659 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11660 if (!SWIG_IsOK(res7)) {
11661 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11662 }
11663 if (!argp7) {
11664 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11665 }
11666 arg7 = reinterpret_cast< wxValidator * >(argp7);
11667 }
11668 if (obj7) {
11669 {
11670 arg8 = wxString_in_helper(obj7);
11671 if (arg8 == NULL) SWIG_fail;
11672 temp8 = true;
11673 }
11674 }
11675 {
11676 if (!wxPyCheckForApp()) SWIG_fail;
11677 PyThreadState* __tstate = wxPyBeginAllowThreads();
11678 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11679 wxPyEndAllowThreads(__tstate);
11680 if (PyErr_Occurred()) SWIG_fail;
11681 }
11682 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11683 {
11684 if (temp3)
11685 delete arg3;
11686 }
11687 {
11688 if (temp8)
11689 delete arg8;
11690 }
11691 return resultobj;
11692 fail:
11693 {
11694 if (temp3)
11695 delete arg3;
11696 }
11697 {
11698 if (temp8)
11699 delete arg8;
11700 }
11701 return NULL;
11702 }
11703
11704
11705 SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11706 PyObject *resultobj = 0;
11707 wxTextCtrl *result = 0 ;
11708
11709 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11710 {
11711 if (!wxPyCheckForApp()) SWIG_fail;
11712 PyThreadState* __tstate = wxPyBeginAllowThreads();
11713 result = (wxTextCtrl *)new wxTextCtrl();
11714 wxPyEndAllowThreads(__tstate);
11715 if (PyErr_Occurred()) SWIG_fail;
11716 }
11717 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11718 return resultobj;
11719 fail:
11720 return NULL;
11721 }
11722
11723
11724 SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11725 PyObject *resultobj = 0;
11726 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11727 wxWindow *arg2 = (wxWindow *) 0 ;
11728 int arg3 = (int) -1 ;
11729 wxString const &arg4_defvalue = wxPyEmptyString ;
11730 wxString *arg4 = (wxString *) &arg4_defvalue ;
11731 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11732 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11733 wxSize const &arg6_defvalue = wxDefaultSize ;
11734 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11735 long arg7 = (long) 0 ;
11736 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11737 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11738 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11739 wxString *arg9 = (wxString *) &arg9_defvalue ;
11740 bool result;
11741 void *argp1 = 0 ;
11742 int res1 = 0 ;
11743 void *argp2 = 0 ;
11744 int res2 = 0 ;
11745 int val3 ;
11746 int ecode3 = 0 ;
11747 bool temp4 = false ;
11748 wxPoint temp5 ;
11749 wxSize temp6 ;
11750 long val7 ;
11751 int ecode7 = 0 ;
11752 void *argp8 = 0 ;
11753 int res8 = 0 ;
11754 bool temp9 = false ;
11755 PyObject * obj0 = 0 ;
11756 PyObject * obj1 = 0 ;
11757 PyObject * obj2 = 0 ;
11758 PyObject * obj3 = 0 ;
11759 PyObject * obj4 = 0 ;
11760 PyObject * obj5 = 0 ;
11761 PyObject * obj6 = 0 ;
11762 PyObject * obj7 = 0 ;
11763 PyObject * obj8 = 0 ;
11764 char * kwnames[] = {
11765 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11766 };
11767
11768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11770 if (!SWIG_IsOK(res1)) {
11771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11772 }
11773 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11774 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11775 if (!SWIG_IsOK(res2)) {
11776 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11777 }
11778 arg2 = reinterpret_cast< wxWindow * >(argp2);
11779 if (obj2) {
11780 ecode3 = SWIG_AsVal_int(obj2, &val3);
11781 if (!SWIG_IsOK(ecode3)) {
11782 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11783 }
11784 arg3 = static_cast< int >(val3);
11785 }
11786 if (obj3) {
11787 {
11788 arg4 = wxString_in_helper(obj3);
11789 if (arg4 == NULL) SWIG_fail;
11790 temp4 = true;
11791 }
11792 }
11793 if (obj4) {
11794 {
11795 arg5 = &temp5;
11796 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11797 }
11798 }
11799 if (obj5) {
11800 {
11801 arg6 = &temp6;
11802 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11803 }
11804 }
11805 if (obj6) {
11806 ecode7 = SWIG_AsVal_long(obj6, &val7);
11807 if (!SWIG_IsOK(ecode7)) {
11808 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11809 }
11810 arg7 = static_cast< long >(val7);
11811 }
11812 if (obj7) {
11813 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11814 if (!SWIG_IsOK(res8)) {
11815 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11816 }
11817 if (!argp8) {
11818 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11819 }
11820 arg8 = reinterpret_cast< wxValidator * >(argp8);
11821 }
11822 if (obj8) {
11823 {
11824 arg9 = wxString_in_helper(obj8);
11825 if (arg9 == NULL) SWIG_fail;
11826 temp9 = true;
11827 }
11828 }
11829 {
11830 PyThreadState* __tstate = wxPyBeginAllowThreads();
11831 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11832 wxPyEndAllowThreads(__tstate);
11833 if (PyErr_Occurred()) SWIG_fail;
11834 }
11835 {
11836 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11837 }
11838 {
11839 if (temp4)
11840 delete arg4;
11841 }
11842 {
11843 if (temp9)
11844 delete arg9;
11845 }
11846 return resultobj;
11847 fail:
11848 {
11849 if (temp4)
11850 delete arg4;
11851 }
11852 {
11853 if (temp9)
11854 delete arg9;
11855 }
11856 return NULL;
11857 }
11858
11859
11860 SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11861 PyObject *resultobj = 0;
11862 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11863 wxString result;
11864 void *argp1 = 0 ;
11865 int res1 = 0 ;
11866 PyObject *swig_obj[1] ;
11867
11868 if (!args) SWIG_fail;
11869 swig_obj[0] = args;
11870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11871 if (!SWIG_IsOK(res1)) {
11872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11873 }
11874 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11875 {
11876 PyThreadState* __tstate = wxPyBeginAllowThreads();
11877 result = ((wxTextCtrl const *)arg1)->GetValue();
11878 wxPyEndAllowThreads(__tstate);
11879 if (PyErr_Occurred()) SWIG_fail;
11880 }
11881 {
11882 #if wxUSE_UNICODE
11883 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11884 #else
11885 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11886 #endif
11887 }
11888 return resultobj;
11889 fail:
11890 return NULL;
11891 }
11892
11893
11894 SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11895 PyObject *resultobj = 0;
11896 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11897 wxString *arg2 = 0 ;
11898 void *argp1 = 0 ;
11899 int res1 = 0 ;
11900 bool temp2 = false ;
11901 PyObject * obj0 = 0 ;
11902 PyObject * obj1 = 0 ;
11903 char * kwnames[] = {
11904 (char *) "self",(char *) "value", NULL
11905 };
11906
11907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11909 if (!SWIG_IsOK(res1)) {
11910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11911 }
11912 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11913 {
11914 arg2 = wxString_in_helper(obj1);
11915 if (arg2 == NULL) SWIG_fail;
11916 temp2 = true;
11917 }
11918 {
11919 PyThreadState* __tstate = wxPyBeginAllowThreads();
11920 (arg1)->SetValue((wxString const &)*arg2);
11921 wxPyEndAllowThreads(__tstate);
11922 if (PyErr_Occurred()) SWIG_fail;
11923 }
11924 resultobj = SWIG_Py_Void();
11925 {
11926 if (temp2)
11927 delete arg2;
11928 }
11929 return resultobj;
11930 fail:
11931 {
11932 if (temp2)
11933 delete arg2;
11934 }
11935 return NULL;
11936 }
11937
11938
11939 SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11940 PyObject *resultobj = 0;
11941 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11942 long arg2 ;
11943 long arg3 ;
11944 wxString result;
11945 void *argp1 = 0 ;
11946 int res1 = 0 ;
11947 long val2 ;
11948 int ecode2 = 0 ;
11949 long val3 ;
11950 int ecode3 = 0 ;
11951 PyObject * obj0 = 0 ;
11952 PyObject * obj1 = 0 ;
11953 PyObject * obj2 = 0 ;
11954 char * kwnames[] = {
11955 (char *) "self",(char *) "from",(char *) "to", NULL
11956 };
11957
11958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11960 if (!SWIG_IsOK(res1)) {
11961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11962 }
11963 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11964 ecode2 = SWIG_AsVal_long(obj1, &val2);
11965 if (!SWIG_IsOK(ecode2)) {
11966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11967 }
11968 arg2 = static_cast< long >(val2);
11969 ecode3 = SWIG_AsVal_long(obj2, &val3);
11970 if (!SWIG_IsOK(ecode3)) {
11971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
11972 }
11973 arg3 = static_cast< long >(val3);
11974 {
11975 PyThreadState* __tstate = wxPyBeginAllowThreads();
11976 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
11977 wxPyEndAllowThreads(__tstate);
11978 if (PyErr_Occurred()) SWIG_fail;
11979 }
11980 {
11981 #if wxUSE_UNICODE
11982 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11983 #else
11984 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11985 #endif
11986 }
11987 return resultobj;
11988 fail:
11989 return NULL;
11990 }
11991
11992
11993 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11994 PyObject *resultobj = 0;
11995 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11996 long arg2 ;
11997 int result;
11998 void *argp1 = 0 ;
11999 int res1 = 0 ;
12000 long val2 ;
12001 int ecode2 = 0 ;
12002 PyObject * obj0 = 0 ;
12003 PyObject * obj1 = 0 ;
12004 char * kwnames[] = {
12005 (char *) "self",(char *) "lineNo", NULL
12006 };
12007
12008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
12009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12010 if (!SWIG_IsOK(res1)) {
12011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12012 }
12013 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12014 ecode2 = SWIG_AsVal_long(obj1, &val2);
12015 if (!SWIG_IsOK(ecode2)) {
12016 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
12017 }
12018 arg2 = static_cast< long >(val2);
12019 {
12020 PyThreadState* __tstate = wxPyBeginAllowThreads();
12021 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
12022 wxPyEndAllowThreads(__tstate);
12023 if (PyErr_Occurred()) SWIG_fail;
12024 }
12025 resultobj = SWIG_From_int(static_cast< int >(result));
12026 return resultobj;
12027 fail:
12028 return NULL;
12029 }
12030
12031
12032 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12033 PyObject *resultobj = 0;
12034 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12035 long arg2 ;
12036 wxString result;
12037 void *argp1 = 0 ;
12038 int res1 = 0 ;
12039 long val2 ;
12040 int ecode2 = 0 ;
12041 PyObject * obj0 = 0 ;
12042 PyObject * obj1 = 0 ;
12043 char * kwnames[] = {
12044 (char *) "self",(char *) "lineNo", NULL
12045 };
12046
12047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12049 if (!SWIG_IsOK(res1)) {
12050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12051 }
12052 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12053 ecode2 = SWIG_AsVal_long(obj1, &val2);
12054 if (!SWIG_IsOK(ecode2)) {
12055 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12056 }
12057 arg2 = static_cast< long >(val2);
12058 {
12059 PyThreadState* __tstate = wxPyBeginAllowThreads();
12060 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12061 wxPyEndAllowThreads(__tstate);
12062 if (PyErr_Occurred()) SWIG_fail;
12063 }
12064 {
12065 #if wxUSE_UNICODE
12066 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12067 #else
12068 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12069 #endif
12070 }
12071 return resultobj;
12072 fail:
12073 return NULL;
12074 }
12075
12076
12077 SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12078 PyObject *resultobj = 0;
12079 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12080 int result;
12081 void *argp1 = 0 ;
12082 int res1 = 0 ;
12083 PyObject *swig_obj[1] ;
12084
12085 if (!args) SWIG_fail;
12086 swig_obj[0] = args;
12087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12088 if (!SWIG_IsOK(res1)) {
12089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12090 }
12091 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12092 {
12093 PyThreadState* __tstate = wxPyBeginAllowThreads();
12094 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12095 wxPyEndAllowThreads(__tstate);
12096 if (PyErr_Occurred()) SWIG_fail;
12097 }
12098 resultobj = SWIG_From_int(static_cast< int >(result));
12099 return resultobj;
12100 fail:
12101 return NULL;
12102 }
12103
12104
12105 SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12106 PyObject *resultobj = 0;
12107 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12108 bool result;
12109 void *argp1 = 0 ;
12110 int res1 = 0 ;
12111 PyObject *swig_obj[1] ;
12112
12113 if (!args) SWIG_fail;
12114 swig_obj[0] = args;
12115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12116 if (!SWIG_IsOK(res1)) {
12117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12118 }
12119 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12120 {
12121 PyThreadState* __tstate = wxPyBeginAllowThreads();
12122 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12123 wxPyEndAllowThreads(__tstate);
12124 if (PyErr_Occurred()) SWIG_fail;
12125 }
12126 {
12127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12128 }
12129 return resultobj;
12130 fail:
12131 return NULL;
12132 }
12133
12134
12135 SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12136 PyObject *resultobj = 0;
12137 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12138 bool result;
12139 void *argp1 = 0 ;
12140 int res1 = 0 ;
12141 PyObject *swig_obj[1] ;
12142
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_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12148 }
12149 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12150 {
12151 PyThreadState* __tstate = wxPyBeginAllowThreads();
12152 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12153 wxPyEndAllowThreads(__tstate);
12154 if (PyErr_Occurred()) SWIG_fail;
12155 }
12156 {
12157 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12158 }
12159 return resultobj;
12160 fail:
12161 return NULL;
12162 }
12163
12164
12165 SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12166 PyObject *resultobj = 0;
12167 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12168 bool result;
12169 void *argp1 = 0 ;
12170 int res1 = 0 ;
12171 PyObject *swig_obj[1] ;
12172
12173 if (!args) SWIG_fail;
12174 swig_obj[0] = args;
12175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12176 if (!SWIG_IsOK(res1)) {
12177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12178 }
12179 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12180 {
12181 PyThreadState* __tstate = wxPyBeginAllowThreads();
12182 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12183 wxPyEndAllowThreads(__tstate);
12184 if (PyErr_Occurred()) SWIG_fail;
12185 }
12186 {
12187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12188 }
12189 return resultobj;
12190 fail:
12191 return NULL;
12192 }
12193
12194
12195 SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12196 PyObject *resultobj = 0;
12197 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12198 bool result;
12199 void *argp1 = 0 ;
12200 int res1 = 0 ;
12201 PyObject *swig_obj[1] ;
12202
12203 if (!args) SWIG_fail;
12204 swig_obj[0] = args;
12205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12206 if (!SWIG_IsOK(res1)) {
12207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12208 }
12209 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12210 {
12211 PyThreadState* __tstate = wxPyBeginAllowThreads();
12212 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12213 wxPyEndAllowThreads(__tstate);
12214 if (PyErr_Occurred()) SWIG_fail;
12215 }
12216 {
12217 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12218 }
12219 return resultobj;
12220 fail:
12221 return NULL;
12222 }
12223
12224
12225 SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12226 PyObject *resultobj = 0;
12227 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12228 long *arg2 = (long *) 0 ;
12229 long *arg3 = (long *) 0 ;
12230 void *argp1 = 0 ;
12231 int res1 = 0 ;
12232 long temp2 ;
12233 int res2 = SWIG_TMPOBJ ;
12234 long temp3 ;
12235 int res3 = SWIG_TMPOBJ ;
12236 PyObject *swig_obj[1] ;
12237
12238 arg2 = &temp2;
12239 arg3 = &temp3;
12240 if (!args) SWIG_fail;
12241 swig_obj[0] = args;
12242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12243 if (!SWIG_IsOK(res1)) {
12244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12245 }
12246 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12247 {
12248 PyThreadState* __tstate = wxPyBeginAllowThreads();
12249 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12250 wxPyEndAllowThreads(__tstate);
12251 if (PyErr_Occurred()) SWIG_fail;
12252 }
12253 resultobj = SWIG_Py_Void();
12254 if (SWIG_IsTmpObj(res2)) {
12255 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12256 } else {
12257 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12258 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12259 }
12260 if (SWIG_IsTmpObj(res3)) {
12261 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12262 } else {
12263 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12264 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12265 }
12266 return resultobj;
12267 fail:
12268 return NULL;
12269 }
12270
12271
12272 SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12273 PyObject *resultobj = 0;
12274 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12275 wxString result;
12276 void *argp1 = 0 ;
12277 int res1 = 0 ;
12278 PyObject *swig_obj[1] ;
12279
12280 if (!args) SWIG_fail;
12281 swig_obj[0] = args;
12282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12283 if (!SWIG_IsOK(res1)) {
12284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12285 }
12286 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12287 {
12288 PyThreadState* __tstate = wxPyBeginAllowThreads();
12289 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12290 wxPyEndAllowThreads(__tstate);
12291 if (PyErr_Occurred()) SWIG_fail;
12292 }
12293 {
12294 #if wxUSE_UNICODE
12295 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12296 #else
12297 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12298 #endif
12299 }
12300 return resultobj;
12301 fail:
12302 return NULL;
12303 }
12304
12305
12306 SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12307 PyObject *resultobj = 0;
12308 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12309 void *argp1 = 0 ;
12310 int res1 = 0 ;
12311 PyObject *swig_obj[1] ;
12312
12313 if (!args) SWIG_fail;
12314 swig_obj[0] = args;
12315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12316 if (!SWIG_IsOK(res1)) {
12317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12318 }
12319 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12320 {
12321 PyThreadState* __tstate = wxPyBeginAllowThreads();
12322 (arg1)->Clear();
12323 wxPyEndAllowThreads(__tstate);
12324 if (PyErr_Occurred()) SWIG_fail;
12325 }
12326 resultobj = SWIG_Py_Void();
12327 return resultobj;
12328 fail:
12329 return NULL;
12330 }
12331
12332
12333 SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12334 PyObject *resultobj = 0;
12335 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12336 long arg2 ;
12337 long arg3 ;
12338 wxString *arg4 = 0 ;
12339 void *argp1 = 0 ;
12340 int res1 = 0 ;
12341 long val2 ;
12342 int ecode2 = 0 ;
12343 long val3 ;
12344 int ecode3 = 0 ;
12345 bool temp4 = false ;
12346 PyObject * obj0 = 0 ;
12347 PyObject * obj1 = 0 ;
12348 PyObject * obj2 = 0 ;
12349 PyObject * obj3 = 0 ;
12350 char * kwnames[] = {
12351 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
12352 };
12353
12354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12356 if (!SWIG_IsOK(res1)) {
12357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12358 }
12359 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12360 ecode2 = SWIG_AsVal_long(obj1, &val2);
12361 if (!SWIG_IsOK(ecode2)) {
12362 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12363 }
12364 arg2 = static_cast< long >(val2);
12365 ecode3 = SWIG_AsVal_long(obj2, &val3);
12366 if (!SWIG_IsOK(ecode3)) {
12367 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12368 }
12369 arg3 = static_cast< long >(val3);
12370 {
12371 arg4 = wxString_in_helper(obj3);
12372 if (arg4 == NULL) SWIG_fail;
12373 temp4 = true;
12374 }
12375 {
12376 PyThreadState* __tstate = wxPyBeginAllowThreads();
12377 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12378 wxPyEndAllowThreads(__tstate);
12379 if (PyErr_Occurred()) SWIG_fail;
12380 }
12381 resultobj = SWIG_Py_Void();
12382 {
12383 if (temp4)
12384 delete arg4;
12385 }
12386 return resultobj;
12387 fail:
12388 {
12389 if (temp4)
12390 delete arg4;
12391 }
12392 return NULL;
12393 }
12394
12395
12396 SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12397 PyObject *resultobj = 0;
12398 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12399 long arg2 ;
12400 long arg3 ;
12401 void *argp1 = 0 ;
12402 int res1 = 0 ;
12403 long val2 ;
12404 int ecode2 = 0 ;
12405 long val3 ;
12406 int ecode3 = 0 ;
12407 PyObject * obj0 = 0 ;
12408 PyObject * obj1 = 0 ;
12409 PyObject * obj2 = 0 ;
12410 char * kwnames[] = {
12411 (char *) "self",(char *) "from",(char *) "to", NULL
12412 };
12413
12414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12416 if (!SWIG_IsOK(res1)) {
12417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12418 }
12419 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12420 ecode2 = SWIG_AsVal_long(obj1, &val2);
12421 if (!SWIG_IsOK(ecode2)) {
12422 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12423 }
12424 arg2 = static_cast< long >(val2);
12425 ecode3 = SWIG_AsVal_long(obj2, &val3);
12426 if (!SWIG_IsOK(ecode3)) {
12427 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12428 }
12429 arg3 = static_cast< long >(val3);
12430 {
12431 PyThreadState* __tstate = wxPyBeginAllowThreads();
12432 (arg1)->Remove(arg2,arg3);
12433 wxPyEndAllowThreads(__tstate);
12434 if (PyErr_Occurred()) SWIG_fail;
12435 }
12436 resultobj = SWIG_Py_Void();
12437 return resultobj;
12438 fail:
12439 return NULL;
12440 }
12441
12442
12443 SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12444 PyObject *resultobj = 0;
12445 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12446 wxString *arg2 = 0 ;
12447 bool result;
12448 void *argp1 = 0 ;
12449 int res1 = 0 ;
12450 bool temp2 = false ;
12451 PyObject * obj0 = 0 ;
12452 PyObject * obj1 = 0 ;
12453 char * kwnames[] = {
12454 (char *) "self",(char *) "file", NULL
12455 };
12456
12457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) SWIG_fail;
12458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12459 if (!SWIG_IsOK(res1)) {
12460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12461 }
12462 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12463 {
12464 arg2 = wxString_in_helper(obj1);
12465 if (arg2 == NULL) SWIG_fail;
12466 temp2 = true;
12467 }
12468 {
12469 PyThreadState* __tstate = wxPyBeginAllowThreads();
12470 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
12471 wxPyEndAllowThreads(__tstate);
12472 if (PyErr_Occurred()) SWIG_fail;
12473 }
12474 {
12475 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12476 }
12477 {
12478 if (temp2)
12479 delete arg2;
12480 }
12481 return resultobj;
12482 fail:
12483 {
12484 if (temp2)
12485 delete arg2;
12486 }
12487 return NULL;
12488 }
12489
12490
12491 SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12492 PyObject *resultobj = 0;
12493 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12494 wxString const &arg2_defvalue = wxPyEmptyString ;
12495 wxString *arg2 = (wxString *) &arg2_defvalue ;
12496 bool result;
12497 void *argp1 = 0 ;
12498 int res1 = 0 ;
12499 bool temp2 = false ;
12500 PyObject * obj0 = 0 ;
12501 PyObject * obj1 = 0 ;
12502 char * kwnames[] = {
12503 (char *) "self",(char *) "file", NULL
12504 };
12505
12506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) SWIG_fail;
12507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12508 if (!SWIG_IsOK(res1)) {
12509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12510 }
12511 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12512 if (obj1) {
12513 {
12514 arg2 = wxString_in_helper(obj1);
12515 if (arg2 == NULL) SWIG_fail;
12516 temp2 = true;
12517 }
12518 }
12519 {
12520 PyThreadState* __tstate = wxPyBeginAllowThreads();
12521 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
12522 wxPyEndAllowThreads(__tstate);
12523 if (PyErr_Occurred()) SWIG_fail;
12524 }
12525 {
12526 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12527 }
12528 {
12529 if (temp2)
12530 delete arg2;
12531 }
12532 return resultobj;
12533 fail:
12534 {
12535 if (temp2)
12536 delete arg2;
12537 }
12538 return NULL;
12539 }
12540
12541
12542 SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12543 PyObject *resultobj = 0;
12544 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12545 void *argp1 = 0 ;
12546 int res1 = 0 ;
12547 PyObject *swig_obj[1] ;
12548
12549 if (!args) SWIG_fail;
12550 swig_obj[0] = args;
12551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12552 if (!SWIG_IsOK(res1)) {
12553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12554 }
12555 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12556 {
12557 PyThreadState* __tstate = wxPyBeginAllowThreads();
12558 (arg1)->MarkDirty();
12559 wxPyEndAllowThreads(__tstate);
12560 if (PyErr_Occurred()) SWIG_fail;
12561 }
12562 resultobj = SWIG_Py_Void();
12563 return resultobj;
12564 fail:
12565 return NULL;
12566 }
12567
12568
12569 SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12570 PyObject *resultobj = 0;
12571 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12572 void *argp1 = 0 ;
12573 int res1 = 0 ;
12574 PyObject *swig_obj[1] ;
12575
12576 if (!args) SWIG_fail;
12577 swig_obj[0] = args;
12578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12579 if (!SWIG_IsOK(res1)) {
12580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12581 }
12582 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12583 {
12584 PyThreadState* __tstate = wxPyBeginAllowThreads();
12585 (arg1)->DiscardEdits();
12586 wxPyEndAllowThreads(__tstate);
12587 if (PyErr_Occurred()) SWIG_fail;
12588 }
12589 resultobj = SWIG_Py_Void();
12590 return resultobj;
12591 fail:
12592 return NULL;
12593 }
12594
12595
12596 SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12597 PyObject *resultobj = 0;
12598 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12599 bool arg2 ;
12600 void *argp1 = 0 ;
12601 int res1 = 0 ;
12602 bool val2 ;
12603 int ecode2 = 0 ;
12604 PyObject * obj0 = 0 ;
12605 PyObject * obj1 = 0 ;
12606 char * kwnames[] = {
12607 (char *) "self",(char *) "modified", NULL
12608 };
12609
12610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12612 if (!SWIG_IsOK(res1)) {
12613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12614 }
12615 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12616 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12617 if (!SWIG_IsOK(ecode2)) {
12618 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12619 }
12620 arg2 = static_cast< bool >(val2);
12621 {
12622 PyThreadState* __tstate = wxPyBeginAllowThreads();
12623 (arg1)->SetModified(arg2);
12624 wxPyEndAllowThreads(__tstate);
12625 if (PyErr_Occurred()) SWIG_fail;
12626 }
12627 resultobj = SWIG_Py_Void();
12628 return resultobj;
12629 fail:
12630 return NULL;
12631 }
12632
12633
12634 SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12635 PyObject *resultobj = 0;
12636 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12637 unsigned long arg2 ;
12638 void *argp1 = 0 ;
12639 int res1 = 0 ;
12640 unsigned long val2 ;
12641 int ecode2 = 0 ;
12642 PyObject * obj0 = 0 ;
12643 PyObject * obj1 = 0 ;
12644 char * kwnames[] = {
12645 (char *) "self",(char *) "len", NULL
12646 };
12647
12648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12650 if (!SWIG_IsOK(res1)) {
12651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12652 }
12653 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12654 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12655 if (!SWIG_IsOK(ecode2)) {
12656 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12657 }
12658 arg2 = static_cast< unsigned long >(val2);
12659 {
12660 PyThreadState* __tstate = wxPyBeginAllowThreads();
12661 (arg1)->SetMaxLength(arg2);
12662 wxPyEndAllowThreads(__tstate);
12663 if (PyErr_Occurred()) SWIG_fail;
12664 }
12665 resultobj = SWIG_Py_Void();
12666 return resultobj;
12667 fail:
12668 return NULL;
12669 }
12670
12671
12672 SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12673 PyObject *resultobj = 0;
12674 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12675 wxString *arg2 = 0 ;
12676 void *argp1 = 0 ;
12677 int res1 = 0 ;
12678 bool temp2 = false ;
12679 PyObject * obj0 = 0 ;
12680 PyObject * obj1 = 0 ;
12681 char * kwnames[] = {
12682 (char *) "self",(char *) "text", NULL
12683 };
12684
12685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12687 if (!SWIG_IsOK(res1)) {
12688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12689 }
12690 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12691 {
12692 arg2 = wxString_in_helper(obj1);
12693 if (arg2 == NULL) SWIG_fail;
12694 temp2 = true;
12695 }
12696 {
12697 PyThreadState* __tstate = wxPyBeginAllowThreads();
12698 (arg1)->WriteText((wxString const &)*arg2);
12699 wxPyEndAllowThreads(__tstate);
12700 if (PyErr_Occurred()) SWIG_fail;
12701 }
12702 resultobj = SWIG_Py_Void();
12703 {
12704 if (temp2)
12705 delete arg2;
12706 }
12707 return resultobj;
12708 fail:
12709 {
12710 if (temp2)
12711 delete arg2;
12712 }
12713 return NULL;
12714 }
12715
12716
12717 SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12718 PyObject *resultobj = 0;
12719 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12720 wxString *arg2 = 0 ;
12721 void *argp1 = 0 ;
12722 int res1 = 0 ;
12723 bool temp2 = false ;
12724 PyObject * obj0 = 0 ;
12725 PyObject * obj1 = 0 ;
12726 char * kwnames[] = {
12727 (char *) "self",(char *) "text", NULL
12728 };
12729
12730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12732 if (!SWIG_IsOK(res1)) {
12733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12734 }
12735 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12736 {
12737 arg2 = wxString_in_helper(obj1);
12738 if (arg2 == NULL) SWIG_fail;
12739 temp2 = true;
12740 }
12741 {
12742 PyThreadState* __tstate = wxPyBeginAllowThreads();
12743 (arg1)->AppendText((wxString const &)*arg2);
12744 wxPyEndAllowThreads(__tstate);
12745 if (PyErr_Occurred()) SWIG_fail;
12746 }
12747 resultobj = SWIG_Py_Void();
12748 {
12749 if (temp2)
12750 delete arg2;
12751 }
12752 return resultobj;
12753 fail:
12754 {
12755 if (temp2)
12756 delete arg2;
12757 }
12758 return NULL;
12759 }
12760
12761
12762 SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12763 PyObject *resultobj = 0;
12764 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12765 wxKeyEvent *arg2 = 0 ;
12766 bool result;
12767 void *argp1 = 0 ;
12768 int res1 = 0 ;
12769 void *argp2 = 0 ;
12770 int res2 = 0 ;
12771 PyObject * obj0 = 0 ;
12772 PyObject * obj1 = 0 ;
12773 char * kwnames[] = {
12774 (char *) "self",(char *) "event", NULL
12775 };
12776
12777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12779 if (!SWIG_IsOK(res1)) {
12780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12781 }
12782 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12783 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12784 if (!SWIG_IsOK(res2)) {
12785 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12786 }
12787 if (!argp2) {
12788 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12789 }
12790 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12791 {
12792 PyThreadState* __tstate = wxPyBeginAllowThreads();
12793 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12794 wxPyEndAllowThreads(__tstate);
12795 if (PyErr_Occurred()) SWIG_fail;
12796 }
12797 {
12798 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12799 }
12800 return resultobj;
12801 fail:
12802 return NULL;
12803 }
12804
12805
12806 SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12807 PyObject *resultobj = 0;
12808 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12809 long arg2 ;
12810 long arg3 ;
12811 wxTextAttr *arg4 = 0 ;
12812 bool result;
12813 void *argp1 = 0 ;
12814 int res1 = 0 ;
12815 long val2 ;
12816 int ecode2 = 0 ;
12817 long val3 ;
12818 int ecode3 = 0 ;
12819 void *argp4 = 0 ;
12820 int res4 = 0 ;
12821 PyObject * obj0 = 0 ;
12822 PyObject * obj1 = 0 ;
12823 PyObject * obj2 = 0 ;
12824 PyObject * obj3 = 0 ;
12825 char * kwnames[] = {
12826 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12827 };
12828
12829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12831 if (!SWIG_IsOK(res1)) {
12832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12833 }
12834 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12835 ecode2 = SWIG_AsVal_long(obj1, &val2);
12836 if (!SWIG_IsOK(ecode2)) {
12837 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12838 }
12839 arg2 = static_cast< long >(val2);
12840 ecode3 = SWIG_AsVal_long(obj2, &val3);
12841 if (!SWIG_IsOK(ecode3)) {
12842 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12843 }
12844 arg3 = static_cast< long >(val3);
12845 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12846 if (!SWIG_IsOK(res4)) {
12847 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12848 }
12849 if (!argp4) {
12850 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12851 }
12852 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12853 {
12854 PyThreadState* __tstate = wxPyBeginAllowThreads();
12855 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12856 wxPyEndAllowThreads(__tstate);
12857 if (PyErr_Occurred()) SWIG_fail;
12858 }
12859 {
12860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12861 }
12862 return resultobj;
12863 fail:
12864 return NULL;
12865 }
12866
12867
12868 SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12869 PyObject *resultobj = 0;
12870 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12871 long arg2 ;
12872 wxTextAttr *arg3 = 0 ;
12873 bool result;
12874 void *argp1 = 0 ;
12875 int res1 = 0 ;
12876 long val2 ;
12877 int ecode2 = 0 ;
12878 void *argp3 = 0 ;
12879 int res3 = 0 ;
12880 PyObject * obj0 = 0 ;
12881 PyObject * obj1 = 0 ;
12882 PyObject * obj2 = 0 ;
12883 char * kwnames[] = {
12884 (char *) "self",(char *) "position",(char *) "style", NULL
12885 };
12886
12887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12889 if (!SWIG_IsOK(res1)) {
12890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12891 }
12892 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12893 ecode2 = SWIG_AsVal_long(obj1, &val2);
12894 if (!SWIG_IsOK(ecode2)) {
12895 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12896 }
12897 arg2 = static_cast< long >(val2);
12898 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12899 if (!SWIG_IsOK(res3)) {
12900 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12901 }
12902 if (!argp3) {
12903 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12904 }
12905 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12906 {
12907 PyThreadState* __tstate = wxPyBeginAllowThreads();
12908 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12909 wxPyEndAllowThreads(__tstate);
12910 if (PyErr_Occurred()) SWIG_fail;
12911 }
12912 {
12913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12914 }
12915 return resultobj;
12916 fail:
12917 return NULL;
12918 }
12919
12920
12921 SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12922 PyObject *resultobj = 0;
12923 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12924 wxTextAttr *arg2 = 0 ;
12925 bool result;
12926 void *argp1 = 0 ;
12927 int res1 = 0 ;
12928 void *argp2 = 0 ;
12929 int res2 = 0 ;
12930 PyObject * obj0 = 0 ;
12931 PyObject * obj1 = 0 ;
12932 char * kwnames[] = {
12933 (char *) "self",(char *) "style", NULL
12934 };
12935
12936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12938 if (!SWIG_IsOK(res1)) {
12939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12940 }
12941 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12942 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12943 if (!SWIG_IsOK(res2)) {
12944 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12945 }
12946 if (!argp2) {
12947 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12948 }
12949 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12950 {
12951 PyThreadState* __tstate = wxPyBeginAllowThreads();
12952 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
12953 wxPyEndAllowThreads(__tstate);
12954 if (PyErr_Occurred()) SWIG_fail;
12955 }
12956 {
12957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12958 }
12959 return resultobj;
12960 fail:
12961 return NULL;
12962 }
12963
12964
12965 SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12966 PyObject *resultobj = 0;
12967 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12968 wxTextAttr *result = 0 ;
12969 void *argp1 = 0 ;
12970 int res1 = 0 ;
12971 PyObject *swig_obj[1] ;
12972
12973 if (!args) SWIG_fail;
12974 swig_obj[0] = args;
12975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12976 if (!SWIG_IsOK(res1)) {
12977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12978 }
12979 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12980 {
12981 PyThreadState* __tstate = wxPyBeginAllowThreads();
12982 {
12983 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
12984 result = (wxTextAttr *) &_result_ref;
12985 }
12986 wxPyEndAllowThreads(__tstate);
12987 if (PyErr_Occurred()) SWIG_fail;
12988 }
12989 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
12990 return resultobj;
12991 fail:
12992 return NULL;
12993 }
12994
12995
12996 SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12997 PyObject *resultobj = 0;
12998 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12999 long arg2 ;
13000 long arg3 ;
13001 long result;
13002 void *argp1 = 0 ;
13003 int res1 = 0 ;
13004 long val2 ;
13005 int ecode2 = 0 ;
13006 long val3 ;
13007 int ecode3 = 0 ;
13008 PyObject * obj0 = 0 ;
13009 PyObject * obj1 = 0 ;
13010 PyObject * obj2 = 0 ;
13011 char * kwnames[] = {
13012 (char *) "self",(char *) "x",(char *) "y", NULL
13013 };
13014
13015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13017 if (!SWIG_IsOK(res1)) {
13018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13019 }
13020 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13021 ecode2 = SWIG_AsVal_long(obj1, &val2);
13022 if (!SWIG_IsOK(ecode2)) {
13023 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
13024 }
13025 arg2 = static_cast< long >(val2);
13026 ecode3 = SWIG_AsVal_long(obj2, &val3);
13027 if (!SWIG_IsOK(ecode3)) {
13028 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
13029 }
13030 arg3 = static_cast< long >(val3);
13031 {
13032 PyThreadState* __tstate = wxPyBeginAllowThreads();
13033 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
13034 wxPyEndAllowThreads(__tstate);
13035 if (PyErr_Occurred()) SWIG_fail;
13036 }
13037 resultobj = SWIG_From_long(static_cast< long >(result));
13038 return resultobj;
13039 fail:
13040 return NULL;
13041 }
13042
13043
13044 SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13045 PyObject *resultobj = 0;
13046 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13047 long arg2 ;
13048 long *arg3 = (long *) 0 ;
13049 long *arg4 = (long *) 0 ;
13050 void *argp1 = 0 ;
13051 int res1 = 0 ;
13052 long val2 ;
13053 int ecode2 = 0 ;
13054 long temp3 ;
13055 int res3 = SWIG_TMPOBJ ;
13056 long temp4 ;
13057 int res4 = SWIG_TMPOBJ ;
13058 PyObject * obj0 = 0 ;
13059 PyObject * obj1 = 0 ;
13060 char * kwnames[] = {
13061 (char *) "self",(char *) "pos", NULL
13062 };
13063
13064 arg3 = &temp3;
13065 arg4 = &temp4;
13066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
13067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13068 if (!SWIG_IsOK(res1)) {
13069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13070 }
13071 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13072 ecode2 = SWIG_AsVal_long(obj1, &val2);
13073 if (!SWIG_IsOK(ecode2)) {
13074 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13075 }
13076 arg2 = static_cast< long >(val2);
13077 {
13078 PyThreadState* __tstate = wxPyBeginAllowThreads();
13079 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13080 wxPyEndAllowThreads(__tstate);
13081 if (PyErr_Occurred()) SWIG_fail;
13082 }
13083 resultobj = SWIG_Py_Void();
13084 if (SWIG_IsTmpObj(res3)) {
13085 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13086 } else {
13087 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13088 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13089 }
13090 if (SWIG_IsTmpObj(res4)) {
13091 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13092 } else {
13093 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13094 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13095 }
13096 return resultobj;
13097 fail:
13098 return NULL;
13099 }
13100
13101
13102 SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13103 PyObject *resultobj = 0;
13104 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13105 long arg2 ;
13106 void *argp1 = 0 ;
13107 int res1 = 0 ;
13108 long val2 ;
13109 int ecode2 = 0 ;
13110 PyObject * obj0 = 0 ;
13111 PyObject * obj1 = 0 ;
13112 char * kwnames[] = {
13113 (char *) "self",(char *) "pos", NULL
13114 };
13115
13116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13118 if (!SWIG_IsOK(res1)) {
13119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13120 }
13121 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13122 ecode2 = SWIG_AsVal_long(obj1, &val2);
13123 if (!SWIG_IsOK(ecode2)) {
13124 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13125 }
13126 arg2 = static_cast< long >(val2);
13127 {
13128 PyThreadState* __tstate = wxPyBeginAllowThreads();
13129 (arg1)->ShowPosition(arg2);
13130 wxPyEndAllowThreads(__tstate);
13131 if (PyErr_Occurred()) SWIG_fail;
13132 }
13133 resultobj = SWIG_Py_Void();
13134 return resultobj;
13135 fail:
13136 return NULL;
13137 }
13138
13139
13140 SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13141 PyObject *resultobj = 0;
13142 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13143 wxPoint *arg2 = 0 ;
13144 long *arg3 = (long *) 0 ;
13145 long *arg4 = (long *) 0 ;
13146 wxTextCtrlHitTestResult result;
13147 void *argp1 = 0 ;
13148 int res1 = 0 ;
13149 wxPoint temp2 ;
13150 long temp3 ;
13151 int res3 = SWIG_TMPOBJ ;
13152 long temp4 ;
13153 int res4 = SWIG_TMPOBJ ;
13154 PyObject * obj0 = 0 ;
13155 PyObject * obj1 = 0 ;
13156 char * kwnames[] = {
13157 (char *) "self",(char *) "pt", NULL
13158 };
13159
13160 arg3 = &temp3;
13161 arg4 = &temp4;
13162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13164 if (!SWIG_IsOK(res1)) {
13165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13166 }
13167 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13168 {
13169 arg2 = &temp2;
13170 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13171 }
13172 {
13173 PyThreadState* __tstate = wxPyBeginAllowThreads();
13174 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13175 wxPyEndAllowThreads(__tstate);
13176 if (PyErr_Occurred()) SWIG_fail;
13177 }
13178 resultobj = SWIG_From_int(static_cast< int >(result));
13179 if (SWIG_IsTmpObj(res3)) {
13180 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13181 } else {
13182 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13183 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13184 }
13185 if (SWIG_IsTmpObj(res4)) {
13186 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13187 } else {
13188 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13189 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13190 }
13191 return resultobj;
13192 fail:
13193 return NULL;
13194 }
13195
13196
13197 SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13198 PyObject *resultobj = 0;
13199 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13200 wxPoint *arg2 = 0 ;
13201 long *arg3 = (long *) 0 ;
13202 wxTextCtrlHitTestResult result;
13203 void *argp1 = 0 ;
13204 int res1 = 0 ;
13205 wxPoint temp2 ;
13206 long temp3 ;
13207 int res3 = SWIG_TMPOBJ ;
13208 PyObject * obj0 = 0 ;
13209 PyObject * obj1 = 0 ;
13210 char * kwnames[] = {
13211 (char *) "self",(char *) "pt", NULL
13212 };
13213
13214 arg3 = &temp3;
13215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13217 if (!SWIG_IsOK(res1)) {
13218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13219 }
13220 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13221 {
13222 arg2 = &temp2;
13223 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13224 }
13225 {
13226 PyThreadState* __tstate = wxPyBeginAllowThreads();
13227 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13228 wxPyEndAllowThreads(__tstate);
13229 if (PyErr_Occurred()) SWIG_fail;
13230 }
13231 resultobj = SWIG_From_int(static_cast< int >(result));
13232 if (SWIG_IsTmpObj(res3)) {
13233 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13234 } else {
13235 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13236 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13237 }
13238 return resultobj;
13239 fail:
13240 return NULL;
13241 }
13242
13243
13244 SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13245 PyObject *resultobj = 0;
13246 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13247 void *argp1 = 0 ;
13248 int res1 = 0 ;
13249 PyObject *swig_obj[1] ;
13250
13251 if (!args) SWIG_fail;
13252 swig_obj[0] = args;
13253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13254 if (!SWIG_IsOK(res1)) {
13255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13256 }
13257 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13258 {
13259 PyThreadState* __tstate = wxPyBeginAllowThreads();
13260 (arg1)->Copy();
13261 wxPyEndAllowThreads(__tstate);
13262 if (PyErr_Occurred()) SWIG_fail;
13263 }
13264 resultobj = SWIG_Py_Void();
13265 return resultobj;
13266 fail:
13267 return NULL;
13268 }
13269
13270
13271 SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13272 PyObject *resultobj = 0;
13273 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13274 void *argp1 = 0 ;
13275 int res1 = 0 ;
13276 PyObject *swig_obj[1] ;
13277
13278 if (!args) SWIG_fail;
13279 swig_obj[0] = args;
13280 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13281 if (!SWIG_IsOK(res1)) {
13282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13283 }
13284 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13285 {
13286 PyThreadState* __tstate = wxPyBeginAllowThreads();
13287 (arg1)->Cut();
13288 wxPyEndAllowThreads(__tstate);
13289 if (PyErr_Occurred()) SWIG_fail;
13290 }
13291 resultobj = SWIG_Py_Void();
13292 return resultobj;
13293 fail:
13294 return NULL;
13295 }
13296
13297
13298 SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13299 PyObject *resultobj = 0;
13300 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13301 void *argp1 = 0 ;
13302 int res1 = 0 ;
13303 PyObject *swig_obj[1] ;
13304
13305 if (!args) SWIG_fail;
13306 swig_obj[0] = args;
13307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13308 if (!SWIG_IsOK(res1)) {
13309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13310 }
13311 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13312 {
13313 PyThreadState* __tstate = wxPyBeginAllowThreads();
13314 (arg1)->Paste();
13315 wxPyEndAllowThreads(__tstate);
13316 if (PyErr_Occurred()) SWIG_fail;
13317 }
13318 resultobj = SWIG_Py_Void();
13319 return resultobj;
13320 fail:
13321 return NULL;
13322 }
13323
13324
13325 SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13326 PyObject *resultobj = 0;
13327 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13328 bool result;
13329 void *argp1 = 0 ;
13330 int res1 = 0 ;
13331 PyObject *swig_obj[1] ;
13332
13333 if (!args) SWIG_fail;
13334 swig_obj[0] = args;
13335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13336 if (!SWIG_IsOK(res1)) {
13337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13338 }
13339 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13340 {
13341 PyThreadState* __tstate = wxPyBeginAllowThreads();
13342 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13343 wxPyEndAllowThreads(__tstate);
13344 if (PyErr_Occurred()) SWIG_fail;
13345 }
13346 {
13347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13348 }
13349 return resultobj;
13350 fail:
13351 return NULL;
13352 }
13353
13354
13355 SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13356 PyObject *resultobj = 0;
13357 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13358 bool result;
13359 void *argp1 = 0 ;
13360 int res1 = 0 ;
13361 PyObject *swig_obj[1] ;
13362
13363 if (!args) SWIG_fail;
13364 swig_obj[0] = args;
13365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13366 if (!SWIG_IsOK(res1)) {
13367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13368 }
13369 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13370 {
13371 PyThreadState* __tstate = wxPyBeginAllowThreads();
13372 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13373 wxPyEndAllowThreads(__tstate);
13374 if (PyErr_Occurred()) SWIG_fail;
13375 }
13376 {
13377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13378 }
13379 return resultobj;
13380 fail:
13381 return NULL;
13382 }
13383
13384
13385 SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13386 PyObject *resultobj = 0;
13387 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13388 bool result;
13389 void *argp1 = 0 ;
13390 int res1 = 0 ;
13391 PyObject *swig_obj[1] ;
13392
13393 if (!args) SWIG_fail;
13394 swig_obj[0] = args;
13395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13396 if (!SWIG_IsOK(res1)) {
13397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13398 }
13399 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13400 {
13401 PyThreadState* __tstate = wxPyBeginAllowThreads();
13402 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13403 wxPyEndAllowThreads(__tstate);
13404 if (PyErr_Occurred()) SWIG_fail;
13405 }
13406 {
13407 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13408 }
13409 return resultobj;
13410 fail:
13411 return NULL;
13412 }
13413
13414
13415 SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13416 PyObject *resultobj = 0;
13417 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13418 void *argp1 = 0 ;
13419 int res1 = 0 ;
13420 PyObject *swig_obj[1] ;
13421
13422 if (!args) SWIG_fail;
13423 swig_obj[0] = args;
13424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13425 if (!SWIG_IsOK(res1)) {
13426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13427 }
13428 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13429 {
13430 PyThreadState* __tstate = wxPyBeginAllowThreads();
13431 (arg1)->Undo();
13432 wxPyEndAllowThreads(__tstate);
13433 if (PyErr_Occurred()) SWIG_fail;
13434 }
13435 resultobj = SWIG_Py_Void();
13436 return resultobj;
13437 fail:
13438 return NULL;
13439 }
13440
13441
13442 SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13443 PyObject *resultobj = 0;
13444 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13445 void *argp1 = 0 ;
13446 int res1 = 0 ;
13447 PyObject *swig_obj[1] ;
13448
13449 if (!args) SWIG_fail;
13450 swig_obj[0] = args;
13451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13452 if (!SWIG_IsOK(res1)) {
13453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13454 }
13455 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13456 {
13457 PyThreadState* __tstate = wxPyBeginAllowThreads();
13458 (arg1)->Redo();
13459 wxPyEndAllowThreads(__tstate);
13460 if (PyErr_Occurred()) SWIG_fail;
13461 }
13462 resultobj = SWIG_Py_Void();
13463 return resultobj;
13464 fail:
13465 return NULL;
13466 }
13467
13468
13469 SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13470 PyObject *resultobj = 0;
13471 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13472 bool result;
13473 void *argp1 = 0 ;
13474 int res1 = 0 ;
13475 PyObject *swig_obj[1] ;
13476
13477 if (!args) SWIG_fail;
13478 swig_obj[0] = args;
13479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13480 if (!SWIG_IsOK(res1)) {
13481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13482 }
13483 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13484 {
13485 PyThreadState* __tstate = wxPyBeginAllowThreads();
13486 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13487 wxPyEndAllowThreads(__tstate);
13488 if (PyErr_Occurred()) SWIG_fail;
13489 }
13490 {
13491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13492 }
13493 return resultobj;
13494 fail:
13495 return NULL;
13496 }
13497
13498
13499 SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13500 PyObject *resultobj = 0;
13501 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13502 bool result;
13503 void *argp1 = 0 ;
13504 int res1 = 0 ;
13505 PyObject *swig_obj[1] ;
13506
13507 if (!args) SWIG_fail;
13508 swig_obj[0] = args;
13509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13510 if (!SWIG_IsOK(res1)) {
13511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13512 }
13513 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13514 {
13515 PyThreadState* __tstate = wxPyBeginAllowThreads();
13516 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13517 wxPyEndAllowThreads(__tstate);
13518 if (PyErr_Occurred()) SWIG_fail;
13519 }
13520 {
13521 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13522 }
13523 return resultobj;
13524 fail:
13525 return NULL;
13526 }
13527
13528
13529 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13530 PyObject *resultobj = 0;
13531 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13532 long arg2 ;
13533 void *argp1 = 0 ;
13534 int res1 = 0 ;
13535 long val2 ;
13536 int ecode2 = 0 ;
13537 PyObject * obj0 = 0 ;
13538 PyObject * obj1 = 0 ;
13539 char * kwnames[] = {
13540 (char *) "self",(char *) "pos", NULL
13541 };
13542
13543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13545 if (!SWIG_IsOK(res1)) {
13546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13547 }
13548 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13549 ecode2 = SWIG_AsVal_long(obj1, &val2);
13550 if (!SWIG_IsOK(ecode2)) {
13551 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13552 }
13553 arg2 = static_cast< long >(val2);
13554 {
13555 PyThreadState* __tstate = wxPyBeginAllowThreads();
13556 (arg1)->SetInsertionPoint(arg2);
13557 wxPyEndAllowThreads(__tstate);
13558 if (PyErr_Occurred()) SWIG_fail;
13559 }
13560 resultobj = SWIG_Py_Void();
13561 return resultobj;
13562 fail:
13563 return NULL;
13564 }
13565
13566
13567 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13568 PyObject *resultobj = 0;
13569 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13570 void *argp1 = 0 ;
13571 int res1 = 0 ;
13572 PyObject *swig_obj[1] ;
13573
13574 if (!args) SWIG_fail;
13575 swig_obj[0] = args;
13576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13577 if (!SWIG_IsOK(res1)) {
13578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13579 }
13580 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13581 {
13582 PyThreadState* __tstate = wxPyBeginAllowThreads();
13583 (arg1)->SetInsertionPointEnd();
13584 wxPyEndAllowThreads(__tstate);
13585 if (PyErr_Occurred()) SWIG_fail;
13586 }
13587 resultobj = SWIG_Py_Void();
13588 return resultobj;
13589 fail:
13590 return NULL;
13591 }
13592
13593
13594 SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13595 PyObject *resultobj = 0;
13596 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13597 long result;
13598 void *argp1 = 0 ;
13599 int res1 = 0 ;
13600 PyObject *swig_obj[1] ;
13601
13602 if (!args) SWIG_fail;
13603 swig_obj[0] = args;
13604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13605 if (!SWIG_IsOK(res1)) {
13606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13607 }
13608 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13609 {
13610 PyThreadState* __tstate = wxPyBeginAllowThreads();
13611 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13612 wxPyEndAllowThreads(__tstate);
13613 if (PyErr_Occurred()) SWIG_fail;
13614 }
13615 resultobj = SWIG_From_long(static_cast< long >(result));
13616 return resultobj;
13617 fail:
13618 return NULL;
13619 }
13620
13621
13622 SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13623 PyObject *resultobj = 0;
13624 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13625 long result;
13626 void *argp1 = 0 ;
13627 int res1 = 0 ;
13628 PyObject *swig_obj[1] ;
13629
13630 if (!args) SWIG_fail;
13631 swig_obj[0] = args;
13632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13633 if (!SWIG_IsOK(res1)) {
13634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13635 }
13636 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13637 {
13638 PyThreadState* __tstate = wxPyBeginAllowThreads();
13639 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13640 wxPyEndAllowThreads(__tstate);
13641 if (PyErr_Occurred()) SWIG_fail;
13642 }
13643 resultobj = SWIG_From_long(static_cast< long >(result));
13644 return resultobj;
13645 fail:
13646 return NULL;
13647 }
13648
13649
13650 SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13651 PyObject *resultobj = 0;
13652 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13653 long arg2 ;
13654 long arg3 ;
13655 void *argp1 = 0 ;
13656 int res1 = 0 ;
13657 long val2 ;
13658 int ecode2 = 0 ;
13659 long val3 ;
13660 int ecode3 = 0 ;
13661 PyObject * obj0 = 0 ;
13662 PyObject * obj1 = 0 ;
13663 PyObject * obj2 = 0 ;
13664 char * kwnames[] = {
13665 (char *) "self",(char *) "from",(char *) "to", NULL
13666 };
13667
13668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13670 if (!SWIG_IsOK(res1)) {
13671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13672 }
13673 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13674 ecode2 = SWIG_AsVal_long(obj1, &val2);
13675 if (!SWIG_IsOK(ecode2)) {
13676 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13677 }
13678 arg2 = static_cast< long >(val2);
13679 ecode3 = SWIG_AsVal_long(obj2, &val3);
13680 if (!SWIG_IsOK(ecode3)) {
13681 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13682 }
13683 arg3 = static_cast< long >(val3);
13684 {
13685 PyThreadState* __tstate = wxPyBeginAllowThreads();
13686 (arg1)->SetSelection(arg2,arg3);
13687 wxPyEndAllowThreads(__tstate);
13688 if (PyErr_Occurred()) SWIG_fail;
13689 }
13690 resultobj = SWIG_Py_Void();
13691 return resultobj;
13692 fail:
13693 return NULL;
13694 }
13695
13696
13697 SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13698 PyObject *resultobj = 0;
13699 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13700 void *argp1 = 0 ;
13701 int res1 = 0 ;
13702 PyObject *swig_obj[1] ;
13703
13704 if (!args) SWIG_fail;
13705 swig_obj[0] = args;
13706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13707 if (!SWIG_IsOK(res1)) {
13708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13709 }
13710 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13711 {
13712 PyThreadState* __tstate = wxPyBeginAllowThreads();
13713 (arg1)->SelectAll();
13714 wxPyEndAllowThreads(__tstate);
13715 if (PyErr_Occurred()) SWIG_fail;
13716 }
13717 resultobj = SWIG_Py_Void();
13718 return resultobj;
13719 fail:
13720 return NULL;
13721 }
13722
13723
13724 SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13725 PyObject *resultobj = 0;
13726 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13727 bool arg2 ;
13728 void *argp1 = 0 ;
13729 int res1 = 0 ;
13730 bool val2 ;
13731 int ecode2 = 0 ;
13732 PyObject * obj0 = 0 ;
13733 PyObject * obj1 = 0 ;
13734 char * kwnames[] = {
13735 (char *) "self",(char *) "editable", NULL
13736 };
13737
13738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13740 if (!SWIG_IsOK(res1)) {
13741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13742 }
13743 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13744 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13745 if (!SWIG_IsOK(ecode2)) {
13746 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13747 }
13748 arg2 = static_cast< bool >(val2);
13749 {
13750 PyThreadState* __tstate = wxPyBeginAllowThreads();
13751 (arg1)->SetEditable(arg2);
13752 wxPyEndAllowThreads(__tstate);
13753 if (PyErr_Occurred()) SWIG_fail;
13754 }
13755 resultobj = SWIG_Py_Void();
13756 return resultobj;
13757 fail:
13758 return NULL;
13759 }
13760
13761
13762 SWIGINTERN PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13763 PyObject *resultobj = 0;
13764 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13765 bool arg2 = (bool) true ;
13766 bool result;
13767 void *argp1 = 0 ;
13768 int res1 = 0 ;
13769 bool val2 ;
13770 int ecode2 = 0 ;
13771 PyObject * obj0 = 0 ;
13772 PyObject * obj1 = 0 ;
13773 char * kwnames[] = {
13774 (char *) "self",(char *) "show", NULL
13775 };
13776
13777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) SWIG_fail;
13778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13779 if (!SWIG_IsOK(res1)) {
13780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13781 }
13782 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13783 if (obj1) {
13784 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13785 if (!SWIG_IsOK(ecode2)) {
13786 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowNativeCaret" "', expected argument " "2"" of type '" "bool""'");
13787 }
13788 arg2 = static_cast< bool >(val2);
13789 }
13790 {
13791 PyThreadState* __tstate = wxPyBeginAllowThreads();
13792 result = (bool)(arg1)->ShowNativeCaret(arg2);
13793 wxPyEndAllowThreads(__tstate);
13794 if (PyErr_Occurred()) SWIG_fail;
13795 }
13796 {
13797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13798 }
13799 return resultobj;
13800 fail:
13801 return NULL;
13802 }
13803
13804
13805 SWIGINTERN PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13806 PyObject *resultobj = 0;
13807 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13808 bool result;
13809 void *argp1 = 0 ;
13810 int res1 = 0 ;
13811 PyObject *swig_obj[1] ;
13812
13813 if (!args) SWIG_fail;
13814 swig_obj[0] = args;
13815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13816 if (!SWIG_IsOK(res1)) {
13817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HideNativeCaret" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13818 }
13819 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13820 {
13821 PyThreadState* __tstate = wxPyBeginAllowThreads();
13822 result = (bool)(arg1)->HideNativeCaret();
13823 wxPyEndAllowThreads(__tstate);
13824 if (PyErr_Occurred()) SWIG_fail;
13825 }
13826 {
13827 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13828 }
13829 return resultobj;
13830 fail:
13831 return NULL;
13832 }
13833
13834
13835 SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13836 PyObject *resultobj = 0;
13837 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13838 wxString *arg2 = 0 ;
13839 void *argp1 = 0 ;
13840 int res1 = 0 ;
13841 bool temp2 = false ;
13842 PyObject * obj0 = 0 ;
13843 PyObject * obj1 = 0 ;
13844 char * kwnames[] = {
13845 (char *) "self",(char *) "text", NULL
13846 };
13847
13848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13850 if (!SWIG_IsOK(res1)) {
13851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13852 }
13853 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13854 {
13855 arg2 = wxString_in_helper(obj1);
13856 if (arg2 == NULL) SWIG_fail;
13857 temp2 = true;
13858 }
13859 {
13860 PyThreadState* __tstate = wxPyBeginAllowThreads();
13861 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13862 wxPyEndAllowThreads(__tstate);
13863 if (PyErr_Occurred()) SWIG_fail;
13864 }
13865 resultobj = SWIG_Py_Void();
13866 {
13867 if (temp2)
13868 delete arg2;
13869 }
13870 return resultobj;
13871 fail:
13872 {
13873 if (temp2)
13874 delete arg2;
13875 }
13876 return NULL;
13877 }
13878
13879
13880 SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13881 PyObject *resultobj = 0;
13882 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13883 long arg2 ;
13884 long arg3 ;
13885 wxString result;
13886 void *argp1 = 0 ;
13887 int res1 = 0 ;
13888 long val2 ;
13889 int ecode2 = 0 ;
13890 long val3 ;
13891 int ecode3 = 0 ;
13892 PyObject * obj0 = 0 ;
13893 PyObject * obj1 = 0 ;
13894 PyObject * obj2 = 0 ;
13895 char * kwnames[] = {
13896 (char *) "self",(char *) "from",(char *) "to", NULL
13897 };
13898
13899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13901 if (!SWIG_IsOK(res1)) {
13902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13903 }
13904 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13905 ecode2 = SWIG_AsVal_long(obj1, &val2);
13906 if (!SWIG_IsOK(ecode2)) {
13907 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13908 }
13909 arg2 = static_cast< long >(val2);
13910 ecode3 = SWIG_AsVal_long(obj2, &val3);
13911 if (!SWIG_IsOK(ecode3)) {
13912 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13913 }
13914 arg3 = static_cast< long >(val3);
13915 {
13916 PyThreadState* __tstate = wxPyBeginAllowThreads();
13917 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13918 wxPyEndAllowThreads(__tstate);
13919 if (PyErr_Occurred()) SWIG_fail;
13920 }
13921 {
13922 #if wxUSE_UNICODE
13923 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13924 #else
13925 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13926 #endif
13927 }
13928 return resultobj;
13929 fail:
13930 return NULL;
13931 }
13932
13933
13934 SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13935 PyObject *resultobj = 0;
13936 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13937 SwigValueWrapper<wxVisualAttributes > result;
13938 int val1 ;
13939 int ecode1 = 0 ;
13940 PyObject * obj0 = 0 ;
13941 char * kwnames[] = {
13942 (char *) "variant", NULL
13943 };
13944
13945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13946 if (obj0) {
13947 ecode1 = SWIG_AsVal_int(obj0, &val1);
13948 if (!SWIG_IsOK(ecode1)) {
13949 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13950 }
13951 arg1 = static_cast< wxWindowVariant >(val1);
13952 }
13953 {
13954 if (!wxPyCheckForApp()) SWIG_fail;
13955 PyThreadState* __tstate = wxPyBeginAllowThreads();
13956 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13957 wxPyEndAllowThreads(__tstate);
13958 if (PyErr_Occurred()) SWIG_fail;
13959 }
13960 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13961 return resultobj;
13962 fail:
13963 return NULL;
13964 }
13965
13966
13967 SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13968 PyObject *obj;
13969 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13970 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13971 return SWIG_Py_Void();
13972 }
13973
13974 SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13975 return SWIG_Python_InitShadowInstance(args);
13976 }
13977
13978 SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13979 PyObject *resultobj = 0;
13980 int arg1 ;
13981 wxMouseEvent *arg2 = 0 ;
13982 long arg3 ;
13983 long arg4 ;
13984 wxTextUrlEvent *result = 0 ;
13985 int val1 ;
13986 int ecode1 = 0 ;
13987 void *argp2 = 0 ;
13988 int res2 = 0 ;
13989 long val3 ;
13990 int ecode3 = 0 ;
13991 long val4 ;
13992 int ecode4 = 0 ;
13993 PyObject * obj0 = 0 ;
13994 PyObject * obj1 = 0 ;
13995 PyObject * obj2 = 0 ;
13996 PyObject * obj3 = 0 ;
13997 char * kwnames[] = {
13998 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
13999 };
14000
14001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14002 ecode1 = SWIG_AsVal_int(obj0, &val1);
14003 if (!SWIG_IsOK(ecode1)) {
14004 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
14005 }
14006 arg1 = static_cast< int >(val1);
14007 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
14008 if (!SWIG_IsOK(res2)) {
14009 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14010 }
14011 if (!argp2) {
14012 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14013 }
14014 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
14015 ecode3 = SWIG_AsVal_long(obj2, &val3);
14016 if (!SWIG_IsOK(ecode3)) {
14017 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
14018 }
14019 arg3 = static_cast< long >(val3);
14020 ecode4 = SWIG_AsVal_long(obj3, &val4);
14021 if (!SWIG_IsOK(ecode4)) {
14022 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
14023 }
14024 arg4 = static_cast< long >(val4);
14025 {
14026 PyThreadState* __tstate = wxPyBeginAllowThreads();
14027 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
14028 wxPyEndAllowThreads(__tstate);
14029 if (PyErr_Occurred()) SWIG_fail;
14030 }
14031 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
14032 return resultobj;
14033 fail:
14034 return NULL;
14035 }
14036
14037
14038 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14039 PyObject *resultobj = 0;
14040 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14041 wxMouseEvent *result = 0 ;
14042 void *argp1 = 0 ;
14043 int res1 = 0 ;
14044 PyObject *swig_obj[1] ;
14045
14046 if (!args) SWIG_fail;
14047 swig_obj[0] = args;
14048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14049 if (!SWIG_IsOK(res1)) {
14050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
14051 }
14052 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14053 {
14054 PyThreadState* __tstate = wxPyBeginAllowThreads();
14055 {
14056 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
14057 result = (wxMouseEvent *) &_result_ref;
14058 }
14059 wxPyEndAllowThreads(__tstate);
14060 if (PyErr_Occurred()) SWIG_fail;
14061 }
14062 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
14063 return resultobj;
14064 fail:
14065 return NULL;
14066 }
14067
14068
14069 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14070 PyObject *resultobj = 0;
14071 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14072 long result;
14073 void *argp1 = 0 ;
14074 int res1 = 0 ;
14075 PyObject *swig_obj[1] ;
14076
14077 if (!args) SWIG_fail;
14078 swig_obj[0] = args;
14079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14080 if (!SWIG_IsOK(res1)) {
14081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14082 }
14083 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14084 {
14085 PyThreadState* __tstate = wxPyBeginAllowThreads();
14086 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14087 wxPyEndAllowThreads(__tstate);
14088 if (PyErr_Occurred()) SWIG_fail;
14089 }
14090 resultobj = SWIG_From_long(static_cast< long >(result));
14091 return resultobj;
14092 fail:
14093 return NULL;
14094 }
14095
14096
14097 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14098 PyObject *resultobj = 0;
14099 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14100 long result;
14101 void *argp1 = 0 ;
14102 int res1 = 0 ;
14103 PyObject *swig_obj[1] ;
14104
14105 if (!args) SWIG_fail;
14106 swig_obj[0] = args;
14107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14108 if (!SWIG_IsOK(res1)) {
14109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14110 }
14111 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14112 {
14113 PyThreadState* __tstate = wxPyBeginAllowThreads();
14114 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14115 wxPyEndAllowThreads(__tstate);
14116 if (PyErr_Occurred()) SWIG_fail;
14117 }
14118 resultobj = SWIG_From_long(static_cast< long >(result));
14119 return resultobj;
14120 fail:
14121 return NULL;
14122 }
14123
14124
14125 SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14126 PyObject *obj;
14127 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14128 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14129 return SWIG_Py_Void();
14130 }
14131
14132 SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14133 return SWIG_Python_InitShadowInstance(args);
14134 }
14135
14136 SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14137 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14138 return 1;
14139 }
14140
14141
14142 SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14143 PyObject *pyobj = 0;
14144
14145 {
14146 #if wxUSE_UNICODE
14147 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14148 #else
14149 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14150 #endif
14151 }
14152 return pyobj;
14153 }
14154
14155
14156 SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14157 PyObject *resultobj = 0;
14158 wxWindow *arg1 = (wxWindow *) 0 ;
14159 int arg2 = (int) -1 ;
14160 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14161 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14162 wxSize const &arg4_defvalue = wxDefaultSize ;
14163 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14164 long arg5 = (long) wxSB_HORIZONTAL ;
14165 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14166 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14167 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14168 wxString *arg7 = (wxString *) &arg7_defvalue ;
14169 wxScrollBar *result = 0 ;
14170 void *argp1 = 0 ;
14171 int res1 = 0 ;
14172 int val2 ;
14173 int ecode2 = 0 ;
14174 wxPoint temp3 ;
14175 wxSize temp4 ;
14176 long val5 ;
14177 int ecode5 = 0 ;
14178 void *argp6 = 0 ;
14179 int res6 = 0 ;
14180 bool temp7 = false ;
14181 PyObject * obj0 = 0 ;
14182 PyObject * obj1 = 0 ;
14183 PyObject * obj2 = 0 ;
14184 PyObject * obj3 = 0 ;
14185 PyObject * obj4 = 0 ;
14186 PyObject * obj5 = 0 ;
14187 PyObject * obj6 = 0 ;
14188 char * kwnames[] = {
14189 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14190 };
14191
14192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14194 if (!SWIG_IsOK(res1)) {
14195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14196 }
14197 arg1 = reinterpret_cast< wxWindow * >(argp1);
14198 if (obj1) {
14199 ecode2 = SWIG_AsVal_int(obj1, &val2);
14200 if (!SWIG_IsOK(ecode2)) {
14201 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14202 }
14203 arg2 = static_cast< int >(val2);
14204 }
14205 if (obj2) {
14206 {
14207 arg3 = &temp3;
14208 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14209 }
14210 }
14211 if (obj3) {
14212 {
14213 arg4 = &temp4;
14214 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14215 }
14216 }
14217 if (obj4) {
14218 ecode5 = SWIG_AsVal_long(obj4, &val5);
14219 if (!SWIG_IsOK(ecode5)) {
14220 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14221 }
14222 arg5 = static_cast< long >(val5);
14223 }
14224 if (obj5) {
14225 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14226 if (!SWIG_IsOK(res6)) {
14227 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14228 }
14229 if (!argp6) {
14230 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14231 }
14232 arg6 = reinterpret_cast< wxValidator * >(argp6);
14233 }
14234 if (obj6) {
14235 {
14236 arg7 = wxString_in_helper(obj6);
14237 if (arg7 == NULL) SWIG_fail;
14238 temp7 = true;
14239 }
14240 }
14241 {
14242 if (!wxPyCheckForApp()) SWIG_fail;
14243 PyThreadState* __tstate = wxPyBeginAllowThreads();
14244 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14245 wxPyEndAllowThreads(__tstate);
14246 if (PyErr_Occurred()) SWIG_fail;
14247 }
14248 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14249 {
14250 if (temp7)
14251 delete arg7;
14252 }
14253 return resultobj;
14254 fail:
14255 {
14256 if (temp7)
14257 delete arg7;
14258 }
14259 return NULL;
14260 }
14261
14262
14263 SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14264 PyObject *resultobj = 0;
14265 wxScrollBar *result = 0 ;
14266
14267 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14268 {
14269 if (!wxPyCheckForApp()) SWIG_fail;
14270 PyThreadState* __tstate = wxPyBeginAllowThreads();
14271 result = (wxScrollBar *)new wxScrollBar();
14272 wxPyEndAllowThreads(__tstate);
14273 if (PyErr_Occurred()) SWIG_fail;
14274 }
14275 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14276 return resultobj;
14277 fail:
14278 return NULL;
14279 }
14280
14281
14282 SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14283 PyObject *resultobj = 0;
14284 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14285 wxWindow *arg2 = (wxWindow *) 0 ;
14286 int arg3 = (int) -1 ;
14287 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14288 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14289 wxSize const &arg5_defvalue = wxDefaultSize ;
14290 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14291 long arg6 = (long) wxSB_HORIZONTAL ;
14292 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14293 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14294 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14295 wxString *arg8 = (wxString *) &arg8_defvalue ;
14296 bool result;
14297 void *argp1 = 0 ;
14298 int res1 = 0 ;
14299 void *argp2 = 0 ;
14300 int res2 = 0 ;
14301 int val3 ;
14302 int ecode3 = 0 ;
14303 wxPoint temp4 ;
14304 wxSize temp5 ;
14305 long val6 ;
14306 int ecode6 = 0 ;
14307 void *argp7 = 0 ;
14308 int res7 = 0 ;
14309 bool temp8 = false ;
14310 PyObject * obj0 = 0 ;
14311 PyObject * obj1 = 0 ;
14312 PyObject * obj2 = 0 ;
14313 PyObject * obj3 = 0 ;
14314 PyObject * obj4 = 0 ;
14315 PyObject * obj5 = 0 ;
14316 PyObject * obj6 = 0 ;
14317 PyObject * obj7 = 0 ;
14318 char * kwnames[] = {
14319 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14320 };
14321
14322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14324 if (!SWIG_IsOK(res1)) {
14325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14326 }
14327 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14328 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14329 if (!SWIG_IsOK(res2)) {
14330 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14331 }
14332 arg2 = reinterpret_cast< wxWindow * >(argp2);
14333 if (obj2) {
14334 ecode3 = SWIG_AsVal_int(obj2, &val3);
14335 if (!SWIG_IsOK(ecode3)) {
14336 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14337 }
14338 arg3 = static_cast< int >(val3);
14339 }
14340 if (obj3) {
14341 {
14342 arg4 = &temp4;
14343 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14344 }
14345 }
14346 if (obj4) {
14347 {
14348 arg5 = &temp5;
14349 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14350 }
14351 }
14352 if (obj5) {
14353 ecode6 = SWIG_AsVal_long(obj5, &val6);
14354 if (!SWIG_IsOK(ecode6)) {
14355 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14356 }
14357 arg6 = static_cast< long >(val6);
14358 }
14359 if (obj6) {
14360 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14361 if (!SWIG_IsOK(res7)) {
14362 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14363 }
14364 if (!argp7) {
14365 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14366 }
14367 arg7 = reinterpret_cast< wxValidator * >(argp7);
14368 }
14369 if (obj7) {
14370 {
14371 arg8 = wxString_in_helper(obj7);
14372 if (arg8 == NULL) SWIG_fail;
14373 temp8 = true;
14374 }
14375 }
14376 {
14377 PyThreadState* __tstate = wxPyBeginAllowThreads();
14378 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14379 wxPyEndAllowThreads(__tstate);
14380 if (PyErr_Occurred()) SWIG_fail;
14381 }
14382 {
14383 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14384 }
14385 {
14386 if (temp8)
14387 delete arg8;
14388 }
14389 return resultobj;
14390 fail:
14391 {
14392 if (temp8)
14393 delete arg8;
14394 }
14395 return NULL;
14396 }
14397
14398
14399 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14400 PyObject *resultobj = 0;
14401 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14402 int result;
14403 void *argp1 = 0 ;
14404 int res1 = 0 ;
14405 PyObject *swig_obj[1] ;
14406
14407 if (!args) SWIG_fail;
14408 swig_obj[0] = args;
14409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14410 if (!SWIG_IsOK(res1)) {
14411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14412 }
14413 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14414 {
14415 PyThreadState* __tstate = wxPyBeginAllowThreads();
14416 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14417 wxPyEndAllowThreads(__tstate);
14418 if (PyErr_Occurred()) SWIG_fail;
14419 }
14420 resultobj = SWIG_From_int(static_cast< int >(result));
14421 return resultobj;
14422 fail:
14423 return NULL;
14424 }
14425
14426
14427 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14428 PyObject *resultobj = 0;
14429 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14430 int result;
14431 void *argp1 = 0 ;
14432 int res1 = 0 ;
14433 PyObject *swig_obj[1] ;
14434
14435 if (!args) SWIG_fail;
14436 swig_obj[0] = args;
14437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14438 if (!SWIG_IsOK(res1)) {
14439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14440 }
14441 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14442 {
14443 PyThreadState* __tstate = wxPyBeginAllowThreads();
14444 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14445 wxPyEndAllowThreads(__tstate);
14446 if (PyErr_Occurred()) SWIG_fail;
14447 }
14448 resultobj = SWIG_From_int(static_cast< int >(result));
14449 return resultobj;
14450 fail:
14451 return NULL;
14452 }
14453
14454
14455 SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14456 PyObject *resultobj = 0;
14457 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14458 int result;
14459 void *argp1 = 0 ;
14460 int res1 = 0 ;
14461 PyObject *swig_obj[1] ;
14462
14463 if (!args) SWIG_fail;
14464 swig_obj[0] = args;
14465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14466 if (!SWIG_IsOK(res1)) {
14467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14468 }
14469 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14470 {
14471 PyThreadState* __tstate = wxPyBeginAllowThreads();
14472 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14473 wxPyEndAllowThreads(__tstate);
14474 if (PyErr_Occurred()) SWIG_fail;
14475 }
14476 resultobj = SWIG_From_int(static_cast< int >(result));
14477 return resultobj;
14478 fail:
14479 return NULL;
14480 }
14481
14482
14483 SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14484 PyObject *resultobj = 0;
14485 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14486 int result;
14487 void *argp1 = 0 ;
14488 int res1 = 0 ;
14489 PyObject *swig_obj[1] ;
14490
14491 if (!args) SWIG_fail;
14492 swig_obj[0] = args;
14493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14494 if (!SWIG_IsOK(res1)) {
14495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14496 }
14497 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14498 {
14499 PyThreadState* __tstate = wxPyBeginAllowThreads();
14500 result = (int)((wxScrollBar const *)arg1)->GetRange();
14501 wxPyEndAllowThreads(__tstate);
14502 if (PyErr_Occurred()) SWIG_fail;
14503 }
14504 resultobj = SWIG_From_int(static_cast< int >(result));
14505 return resultobj;
14506 fail:
14507 return NULL;
14508 }
14509
14510
14511 SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14512 PyObject *resultobj = 0;
14513 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14514 bool result;
14515 void *argp1 = 0 ;
14516 int res1 = 0 ;
14517 PyObject *swig_obj[1] ;
14518
14519 if (!args) SWIG_fail;
14520 swig_obj[0] = args;
14521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14522 if (!SWIG_IsOK(res1)) {
14523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14524 }
14525 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14526 {
14527 PyThreadState* __tstate = wxPyBeginAllowThreads();
14528 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14529 wxPyEndAllowThreads(__tstate);
14530 if (PyErr_Occurred()) SWIG_fail;
14531 }
14532 {
14533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14534 }
14535 return resultobj;
14536 fail:
14537 return NULL;
14538 }
14539
14540
14541 SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14542 PyObject *resultobj = 0;
14543 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14544 int arg2 ;
14545 void *argp1 = 0 ;
14546 int res1 = 0 ;
14547 int val2 ;
14548 int ecode2 = 0 ;
14549 PyObject * obj0 = 0 ;
14550 PyObject * obj1 = 0 ;
14551 char * kwnames[] = {
14552 (char *) "self",(char *) "viewStart", NULL
14553 };
14554
14555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14557 if (!SWIG_IsOK(res1)) {
14558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14559 }
14560 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14561 ecode2 = SWIG_AsVal_int(obj1, &val2);
14562 if (!SWIG_IsOK(ecode2)) {
14563 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14564 }
14565 arg2 = static_cast< int >(val2);
14566 {
14567 PyThreadState* __tstate = wxPyBeginAllowThreads();
14568 (arg1)->SetThumbPosition(arg2);
14569 wxPyEndAllowThreads(__tstate);
14570 if (PyErr_Occurred()) SWIG_fail;
14571 }
14572 resultobj = SWIG_Py_Void();
14573 return resultobj;
14574 fail:
14575 return NULL;
14576 }
14577
14578
14579 SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14580 PyObject *resultobj = 0;
14581 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14582 SwigValueWrapper<wxVisualAttributes > result;
14583 int val1 ;
14584 int ecode1 = 0 ;
14585 PyObject * obj0 = 0 ;
14586 char * kwnames[] = {
14587 (char *) "variant", NULL
14588 };
14589
14590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14591 if (obj0) {
14592 ecode1 = SWIG_AsVal_int(obj0, &val1);
14593 if (!SWIG_IsOK(ecode1)) {
14594 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14595 }
14596 arg1 = static_cast< wxWindowVariant >(val1);
14597 }
14598 {
14599 if (!wxPyCheckForApp()) SWIG_fail;
14600 PyThreadState* __tstate = wxPyBeginAllowThreads();
14601 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14602 wxPyEndAllowThreads(__tstate);
14603 if (PyErr_Occurred()) SWIG_fail;
14604 }
14605 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14606 return resultobj;
14607 fail:
14608 return NULL;
14609 }
14610
14611
14612 SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14613 PyObject *obj;
14614 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14615 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14616 return SWIG_Py_Void();
14617 }
14618
14619 SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14620 return SWIG_Python_InitShadowInstance(args);
14621 }
14622
14623 SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14624 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14625 return 1;
14626 }
14627
14628
14629 SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14630 PyObject *pyobj = 0;
14631
14632 {
14633 #if wxUSE_UNICODE
14634 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14635 #else
14636 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14637 #endif
14638 }
14639 return pyobj;
14640 }
14641
14642
14643 SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14644 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14645 return 1;
14646 }
14647
14648
14649 SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14650 PyObject *pyobj = 0;
14651
14652 {
14653 #if wxUSE_UNICODE
14654 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14655 #else
14656 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14657 #endif
14658 }
14659 return pyobj;
14660 }
14661
14662
14663 SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14664 PyObject *resultobj = 0;
14665 wxWindow *arg1 = (wxWindow *) 0 ;
14666 int arg2 = (int) -1 ;
14667 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14668 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14669 wxSize const &arg4_defvalue = wxDefaultSize ;
14670 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14671 long arg5 = (long) wxSP_HORIZONTAL ;
14672 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14673 wxString *arg6 = (wxString *) &arg6_defvalue ;
14674 wxSpinButton *result = 0 ;
14675 void *argp1 = 0 ;
14676 int res1 = 0 ;
14677 int val2 ;
14678 int ecode2 = 0 ;
14679 wxPoint temp3 ;
14680 wxSize temp4 ;
14681 long val5 ;
14682 int ecode5 = 0 ;
14683 bool temp6 = false ;
14684 PyObject * obj0 = 0 ;
14685 PyObject * obj1 = 0 ;
14686 PyObject * obj2 = 0 ;
14687 PyObject * obj3 = 0 ;
14688 PyObject * obj4 = 0 ;
14689 PyObject * obj5 = 0 ;
14690 char * kwnames[] = {
14691 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14692 };
14693
14694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14696 if (!SWIG_IsOK(res1)) {
14697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14698 }
14699 arg1 = reinterpret_cast< wxWindow * >(argp1);
14700 if (obj1) {
14701 ecode2 = SWIG_AsVal_int(obj1, &val2);
14702 if (!SWIG_IsOK(ecode2)) {
14703 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14704 }
14705 arg2 = static_cast< int >(val2);
14706 }
14707 if (obj2) {
14708 {
14709 arg3 = &temp3;
14710 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14711 }
14712 }
14713 if (obj3) {
14714 {
14715 arg4 = &temp4;
14716 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14717 }
14718 }
14719 if (obj4) {
14720 ecode5 = SWIG_AsVal_long(obj4, &val5);
14721 if (!SWIG_IsOK(ecode5)) {
14722 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14723 }
14724 arg5 = static_cast< long >(val5);
14725 }
14726 if (obj5) {
14727 {
14728 arg6 = wxString_in_helper(obj5);
14729 if (arg6 == NULL) SWIG_fail;
14730 temp6 = true;
14731 }
14732 }
14733 {
14734 if (!wxPyCheckForApp()) SWIG_fail;
14735 PyThreadState* __tstate = wxPyBeginAllowThreads();
14736 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14737 wxPyEndAllowThreads(__tstate);
14738 if (PyErr_Occurred()) SWIG_fail;
14739 }
14740 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14741 {
14742 if (temp6)
14743 delete arg6;
14744 }
14745 return resultobj;
14746 fail:
14747 {
14748 if (temp6)
14749 delete arg6;
14750 }
14751 return NULL;
14752 }
14753
14754
14755 SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14756 PyObject *resultobj = 0;
14757 wxSpinButton *result = 0 ;
14758
14759 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14760 {
14761 if (!wxPyCheckForApp()) SWIG_fail;
14762 PyThreadState* __tstate = wxPyBeginAllowThreads();
14763 result = (wxSpinButton *)new wxSpinButton();
14764 wxPyEndAllowThreads(__tstate);
14765 if (PyErr_Occurred()) SWIG_fail;
14766 }
14767 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14768 return resultobj;
14769 fail:
14770 return NULL;
14771 }
14772
14773
14774 SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14775 PyObject *resultobj = 0;
14776 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14777 wxWindow *arg2 = (wxWindow *) 0 ;
14778 int arg3 = (int) -1 ;
14779 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14780 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14781 wxSize const &arg5_defvalue = wxDefaultSize ;
14782 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14783 long arg6 = (long) wxSP_HORIZONTAL ;
14784 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14785 wxString *arg7 = (wxString *) &arg7_defvalue ;
14786 bool result;
14787 void *argp1 = 0 ;
14788 int res1 = 0 ;
14789 void *argp2 = 0 ;
14790 int res2 = 0 ;
14791 int val3 ;
14792 int ecode3 = 0 ;
14793 wxPoint temp4 ;
14794 wxSize temp5 ;
14795 long val6 ;
14796 int ecode6 = 0 ;
14797 bool temp7 = false ;
14798 PyObject * obj0 = 0 ;
14799 PyObject * obj1 = 0 ;
14800 PyObject * obj2 = 0 ;
14801 PyObject * obj3 = 0 ;
14802 PyObject * obj4 = 0 ;
14803 PyObject * obj5 = 0 ;
14804 PyObject * obj6 = 0 ;
14805 char * kwnames[] = {
14806 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14807 };
14808
14809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14811 if (!SWIG_IsOK(res1)) {
14812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14813 }
14814 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14815 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14816 if (!SWIG_IsOK(res2)) {
14817 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14818 }
14819 arg2 = reinterpret_cast< wxWindow * >(argp2);
14820 if (obj2) {
14821 ecode3 = SWIG_AsVal_int(obj2, &val3);
14822 if (!SWIG_IsOK(ecode3)) {
14823 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14824 }
14825 arg3 = static_cast< int >(val3);
14826 }
14827 if (obj3) {
14828 {
14829 arg4 = &temp4;
14830 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14831 }
14832 }
14833 if (obj4) {
14834 {
14835 arg5 = &temp5;
14836 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14837 }
14838 }
14839 if (obj5) {
14840 ecode6 = SWIG_AsVal_long(obj5, &val6);
14841 if (!SWIG_IsOK(ecode6)) {
14842 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14843 }
14844 arg6 = static_cast< long >(val6);
14845 }
14846 if (obj6) {
14847 {
14848 arg7 = wxString_in_helper(obj6);
14849 if (arg7 == NULL) SWIG_fail;
14850 temp7 = true;
14851 }
14852 }
14853 {
14854 PyThreadState* __tstate = wxPyBeginAllowThreads();
14855 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14856 wxPyEndAllowThreads(__tstate);
14857 if (PyErr_Occurred()) SWIG_fail;
14858 }
14859 {
14860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14861 }
14862 {
14863 if (temp7)
14864 delete arg7;
14865 }
14866 return resultobj;
14867 fail:
14868 {
14869 if (temp7)
14870 delete arg7;
14871 }
14872 return NULL;
14873 }
14874
14875
14876 SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14877 PyObject *resultobj = 0;
14878 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14879 int result;
14880 void *argp1 = 0 ;
14881 int res1 = 0 ;
14882 PyObject *swig_obj[1] ;
14883
14884 if (!args) SWIG_fail;
14885 swig_obj[0] = args;
14886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14887 if (!SWIG_IsOK(res1)) {
14888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14889 }
14890 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14891 {
14892 PyThreadState* __tstate = wxPyBeginAllowThreads();
14893 result = (int)((wxSpinButton const *)arg1)->GetValue();
14894 wxPyEndAllowThreads(__tstate);
14895 if (PyErr_Occurred()) SWIG_fail;
14896 }
14897 resultobj = SWIG_From_int(static_cast< int >(result));
14898 return resultobj;
14899 fail:
14900 return NULL;
14901 }
14902
14903
14904 SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14905 PyObject *resultobj = 0;
14906 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14907 int result;
14908 void *argp1 = 0 ;
14909 int res1 = 0 ;
14910 PyObject *swig_obj[1] ;
14911
14912 if (!args) SWIG_fail;
14913 swig_obj[0] = args;
14914 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14915 if (!SWIG_IsOK(res1)) {
14916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14917 }
14918 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14919 {
14920 PyThreadState* __tstate = wxPyBeginAllowThreads();
14921 result = (int)((wxSpinButton const *)arg1)->GetMin();
14922 wxPyEndAllowThreads(__tstate);
14923 if (PyErr_Occurred()) SWIG_fail;
14924 }
14925 resultobj = SWIG_From_int(static_cast< int >(result));
14926 return resultobj;
14927 fail:
14928 return NULL;
14929 }
14930
14931
14932 SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14933 PyObject *resultobj = 0;
14934 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14935 int result;
14936 void *argp1 = 0 ;
14937 int res1 = 0 ;
14938 PyObject *swig_obj[1] ;
14939
14940 if (!args) SWIG_fail;
14941 swig_obj[0] = args;
14942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14943 if (!SWIG_IsOK(res1)) {
14944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14945 }
14946 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14947 {
14948 PyThreadState* __tstate = wxPyBeginAllowThreads();
14949 result = (int)((wxSpinButton const *)arg1)->GetMax();
14950 wxPyEndAllowThreads(__tstate);
14951 if (PyErr_Occurred()) SWIG_fail;
14952 }
14953 resultobj = SWIG_From_int(static_cast< int >(result));
14954 return resultobj;
14955 fail:
14956 return NULL;
14957 }
14958
14959
14960 SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14961 PyObject *resultobj = 0;
14962 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14963 int arg2 ;
14964 void *argp1 = 0 ;
14965 int res1 = 0 ;
14966 int val2 ;
14967 int ecode2 = 0 ;
14968 PyObject * obj0 = 0 ;
14969 PyObject * obj1 = 0 ;
14970 char * kwnames[] = {
14971 (char *) "self",(char *) "val", NULL
14972 };
14973
14974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14976 if (!SWIG_IsOK(res1)) {
14977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14978 }
14979 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14980 ecode2 = SWIG_AsVal_int(obj1, &val2);
14981 if (!SWIG_IsOK(ecode2)) {
14982 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14983 }
14984 arg2 = static_cast< int >(val2);
14985 {
14986 PyThreadState* __tstate = wxPyBeginAllowThreads();
14987 (arg1)->SetValue(arg2);
14988 wxPyEndAllowThreads(__tstate);
14989 if (PyErr_Occurred()) SWIG_fail;
14990 }
14991 resultobj = SWIG_Py_Void();
14992 return resultobj;
14993 fail:
14994 return NULL;
14995 }
14996
14997
14998 SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14999 PyObject *resultobj = 0;
15000 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15001 int arg2 ;
15002 void *argp1 = 0 ;
15003 int res1 = 0 ;
15004 int val2 ;
15005 int ecode2 = 0 ;
15006 PyObject * obj0 = 0 ;
15007 PyObject * obj1 = 0 ;
15008 char * kwnames[] = {
15009 (char *) "self",(char *) "minVal", NULL
15010 };
15011
15012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
15013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15014 if (!SWIG_IsOK(res1)) {
15015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15016 }
15017 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15018 ecode2 = SWIG_AsVal_int(obj1, &val2);
15019 if (!SWIG_IsOK(ecode2)) {
15020 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
15021 }
15022 arg2 = static_cast< int >(val2);
15023 {
15024 PyThreadState* __tstate = wxPyBeginAllowThreads();
15025 (arg1)->SetMin(arg2);
15026 wxPyEndAllowThreads(__tstate);
15027 if (PyErr_Occurred()) SWIG_fail;
15028 }
15029 resultobj = SWIG_Py_Void();
15030 return resultobj;
15031 fail:
15032 return NULL;
15033 }
15034
15035
15036 SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15037 PyObject *resultobj = 0;
15038 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15039 int arg2 ;
15040 void *argp1 = 0 ;
15041 int res1 = 0 ;
15042 int val2 ;
15043 int ecode2 = 0 ;
15044 PyObject * obj0 = 0 ;
15045 PyObject * obj1 = 0 ;
15046 char * kwnames[] = {
15047 (char *) "self",(char *) "maxVal", NULL
15048 };
15049
15050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
15051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15052 if (!SWIG_IsOK(res1)) {
15053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15054 }
15055 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15056 ecode2 = SWIG_AsVal_int(obj1, &val2);
15057 if (!SWIG_IsOK(ecode2)) {
15058 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
15059 }
15060 arg2 = static_cast< int >(val2);
15061 {
15062 PyThreadState* __tstate = wxPyBeginAllowThreads();
15063 (arg1)->SetMax(arg2);
15064 wxPyEndAllowThreads(__tstate);
15065 if (PyErr_Occurred()) SWIG_fail;
15066 }
15067 resultobj = SWIG_Py_Void();
15068 return resultobj;
15069 fail:
15070 return NULL;
15071 }
15072
15073
15074 SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15075 PyObject *resultobj = 0;
15076 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15077 int arg2 ;
15078 int arg3 ;
15079 void *argp1 = 0 ;
15080 int res1 = 0 ;
15081 int val2 ;
15082 int ecode2 = 0 ;
15083 int val3 ;
15084 int ecode3 = 0 ;
15085 PyObject * obj0 = 0 ;
15086 PyObject * obj1 = 0 ;
15087 PyObject * obj2 = 0 ;
15088 char * kwnames[] = {
15089 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15090 };
15091
15092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15094 if (!SWIG_IsOK(res1)) {
15095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15096 }
15097 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15098 ecode2 = SWIG_AsVal_int(obj1, &val2);
15099 if (!SWIG_IsOK(ecode2)) {
15100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15101 }
15102 arg2 = static_cast< int >(val2);
15103 ecode3 = SWIG_AsVal_int(obj2, &val3);
15104 if (!SWIG_IsOK(ecode3)) {
15105 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15106 }
15107 arg3 = static_cast< int >(val3);
15108 {
15109 PyThreadState* __tstate = wxPyBeginAllowThreads();
15110 (arg1)->SetRange(arg2,arg3);
15111 wxPyEndAllowThreads(__tstate);
15112 if (PyErr_Occurred()) SWIG_fail;
15113 }
15114 resultobj = SWIG_Py_Void();
15115 return resultobj;
15116 fail:
15117 return NULL;
15118 }
15119
15120
15121 SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15122 PyObject *resultobj = 0;
15123 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15124 bool result;
15125 void *argp1 = 0 ;
15126 int res1 = 0 ;
15127 PyObject *swig_obj[1] ;
15128
15129 if (!args) SWIG_fail;
15130 swig_obj[0] = args;
15131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15132 if (!SWIG_IsOK(res1)) {
15133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15134 }
15135 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15136 {
15137 PyThreadState* __tstate = wxPyBeginAllowThreads();
15138 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15139 wxPyEndAllowThreads(__tstate);
15140 if (PyErr_Occurred()) SWIG_fail;
15141 }
15142 {
15143 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15144 }
15145 return resultobj;
15146 fail:
15147 return NULL;
15148 }
15149
15150
15151 SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15152 PyObject *resultobj = 0;
15153 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15154 SwigValueWrapper<wxVisualAttributes > result;
15155 int val1 ;
15156 int ecode1 = 0 ;
15157 PyObject * obj0 = 0 ;
15158 char * kwnames[] = {
15159 (char *) "variant", NULL
15160 };
15161
15162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15163 if (obj0) {
15164 ecode1 = SWIG_AsVal_int(obj0, &val1);
15165 if (!SWIG_IsOK(ecode1)) {
15166 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15167 }
15168 arg1 = static_cast< wxWindowVariant >(val1);
15169 }
15170 {
15171 if (!wxPyCheckForApp()) SWIG_fail;
15172 PyThreadState* __tstate = wxPyBeginAllowThreads();
15173 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15174 wxPyEndAllowThreads(__tstate);
15175 if (PyErr_Occurred()) SWIG_fail;
15176 }
15177 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15178 return resultobj;
15179 fail:
15180 return NULL;
15181 }
15182
15183
15184 SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15185 PyObject *obj;
15186 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15187 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15188 return SWIG_Py_Void();
15189 }
15190
15191 SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15192 return SWIG_Python_InitShadowInstance(args);
15193 }
15194
15195 SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15196 PyObject *resultobj = 0;
15197 wxWindow *arg1 = (wxWindow *) 0 ;
15198 int arg2 = (int) -1 ;
15199 wxString const &arg3_defvalue = wxPyEmptyString ;
15200 wxString *arg3 = (wxString *) &arg3_defvalue ;
15201 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15202 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15203 wxSize const &arg5_defvalue = wxDefaultSize ;
15204 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15205 long arg6 = (long) wxSP_ARROW_KEYS ;
15206 int arg7 = (int) 0 ;
15207 int arg8 = (int) 100 ;
15208 int arg9 = (int) 0 ;
15209 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15210 wxString *arg10 = (wxString *) &arg10_defvalue ;
15211 wxSpinCtrl *result = 0 ;
15212 void *argp1 = 0 ;
15213 int res1 = 0 ;
15214 int val2 ;
15215 int ecode2 = 0 ;
15216 bool temp3 = false ;
15217 wxPoint temp4 ;
15218 wxSize temp5 ;
15219 long val6 ;
15220 int ecode6 = 0 ;
15221 int val7 ;
15222 int ecode7 = 0 ;
15223 int val8 ;
15224 int ecode8 = 0 ;
15225 int val9 ;
15226 int ecode9 = 0 ;
15227 bool temp10 = false ;
15228 PyObject * obj0 = 0 ;
15229 PyObject * obj1 = 0 ;
15230 PyObject * obj2 = 0 ;
15231 PyObject * obj3 = 0 ;
15232 PyObject * obj4 = 0 ;
15233 PyObject * obj5 = 0 ;
15234 PyObject * obj6 = 0 ;
15235 PyObject * obj7 = 0 ;
15236 PyObject * obj8 = 0 ;
15237 PyObject * obj9 = 0 ;
15238 char * kwnames[] = {
15239 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15240 };
15241
15242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15244 if (!SWIG_IsOK(res1)) {
15245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15246 }
15247 arg1 = reinterpret_cast< wxWindow * >(argp1);
15248 if (obj1) {
15249 ecode2 = SWIG_AsVal_int(obj1, &val2);
15250 if (!SWIG_IsOK(ecode2)) {
15251 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15252 }
15253 arg2 = static_cast< int >(val2);
15254 }
15255 if (obj2) {
15256 {
15257 arg3 = wxString_in_helper(obj2);
15258 if (arg3 == NULL) SWIG_fail;
15259 temp3 = true;
15260 }
15261 }
15262 if (obj3) {
15263 {
15264 arg4 = &temp4;
15265 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15266 }
15267 }
15268 if (obj4) {
15269 {
15270 arg5 = &temp5;
15271 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15272 }
15273 }
15274 if (obj5) {
15275 ecode6 = SWIG_AsVal_long(obj5, &val6);
15276 if (!SWIG_IsOK(ecode6)) {
15277 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15278 }
15279 arg6 = static_cast< long >(val6);
15280 }
15281 if (obj6) {
15282 ecode7 = SWIG_AsVal_int(obj6, &val7);
15283 if (!SWIG_IsOK(ecode7)) {
15284 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15285 }
15286 arg7 = static_cast< int >(val7);
15287 }
15288 if (obj7) {
15289 ecode8 = SWIG_AsVal_int(obj7, &val8);
15290 if (!SWIG_IsOK(ecode8)) {
15291 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15292 }
15293 arg8 = static_cast< int >(val8);
15294 }
15295 if (obj8) {
15296 ecode9 = SWIG_AsVal_int(obj8, &val9);
15297 if (!SWIG_IsOK(ecode9)) {
15298 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15299 }
15300 arg9 = static_cast< int >(val9);
15301 }
15302 if (obj9) {
15303 {
15304 arg10 = wxString_in_helper(obj9);
15305 if (arg10 == NULL) SWIG_fail;
15306 temp10 = true;
15307 }
15308 }
15309 {
15310 if (!wxPyCheckForApp()) SWIG_fail;
15311 PyThreadState* __tstate = wxPyBeginAllowThreads();
15312 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15313 wxPyEndAllowThreads(__tstate);
15314 if (PyErr_Occurred()) SWIG_fail;
15315 }
15316 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15317 {
15318 if (temp3)
15319 delete arg3;
15320 }
15321 {
15322 if (temp10)
15323 delete arg10;
15324 }
15325 return resultobj;
15326 fail:
15327 {
15328 if (temp3)
15329 delete arg3;
15330 }
15331 {
15332 if (temp10)
15333 delete arg10;
15334 }
15335 return NULL;
15336 }
15337
15338
15339 SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15340 PyObject *resultobj = 0;
15341 wxSpinCtrl *result = 0 ;
15342
15343 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15344 {
15345 if (!wxPyCheckForApp()) SWIG_fail;
15346 PyThreadState* __tstate = wxPyBeginAllowThreads();
15347 result = (wxSpinCtrl *)new wxSpinCtrl();
15348 wxPyEndAllowThreads(__tstate);
15349 if (PyErr_Occurred()) SWIG_fail;
15350 }
15351 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15352 return resultobj;
15353 fail:
15354 return NULL;
15355 }
15356
15357
15358 SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15359 PyObject *resultobj = 0;
15360 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15361 wxWindow *arg2 = (wxWindow *) 0 ;
15362 int arg3 = (int) -1 ;
15363 wxString const &arg4_defvalue = wxPyEmptyString ;
15364 wxString *arg4 = (wxString *) &arg4_defvalue ;
15365 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15366 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15367 wxSize const &arg6_defvalue = wxDefaultSize ;
15368 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15369 long arg7 = (long) wxSP_ARROW_KEYS ;
15370 int arg8 = (int) 0 ;
15371 int arg9 = (int) 100 ;
15372 int arg10 = (int) 0 ;
15373 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15374 wxString *arg11 = (wxString *) &arg11_defvalue ;
15375 bool result;
15376 void *argp1 = 0 ;
15377 int res1 = 0 ;
15378 void *argp2 = 0 ;
15379 int res2 = 0 ;
15380 int val3 ;
15381 int ecode3 = 0 ;
15382 bool temp4 = false ;
15383 wxPoint temp5 ;
15384 wxSize temp6 ;
15385 long val7 ;
15386 int ecode7 = 0 ;
15387 int val8 ;
15388 int ecode8 = 0 ;
15389 int val9 ;
15390 int ecode9 = 0 ;
15391 int val10 ;
15392 int ecode10 = 0 ;
15393 bool temp11 = false ;
15394 PyObject * obj0 = 0 ;
15395 PyObject * obj1 = 0 ;
15396 PyObject * obj2 = 0 ;
15397 PyObject * obj3 = 0 ;
15398 PyObject * obj4 = 0 ;
15399 PyObject * obj5 = 0 ;
15400 PyObject * obj6 = 0 ;
15401 PyObject * obj7 = 0 ;
15402 PyObject * obj8 = 0 ;
15403 PyObject * obj9 = 0 ;
15404 PyObject * obj10 = 0 ;
15405 char * kwnames[] = {
15406 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15407 };
15408
15409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15411 if (!SWIG_IsOK(res1)) {
15412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15413 }
15414 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15415 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15416 if (!SWIG_IsOK(res2)) {
15417 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15418 }
15419 arg2 = reinterpret_cast< wxWindow * >(argp2);
15420 if (obj2) {
15421 ecode3 = SWIG_AsVal_int(obj2, &val3);
15422 if (!SWIG_IsOK(ecode3)) {
15423 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15424 }
15425 arg3 = static_cast< int >(val3);
15426 }
15427 if (obj3) {
15428 {
15429 arg4 = wxString_in_helper(obj3);
15430 if (arg4 == NULL) SWIG_fail;
15431 temp4 = true;
15432 }
15433 }
15434 if (obj4) {
15435 {
15436 arg5 = &temp5;
15437 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15438 }
15439 }
15440 if (obj5) {
15441 {
15442 arg6 = &temp6;
15443 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
15444 }
15445 }
15446 if (obj6) {
15447 ecode7 = SWIG_AsVal_long(obj6, &val7);
15448 if (!SWIG_IsOK(ecode7)) {
15449 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15450 }
15451 arg7 = static_cast< long >(val7);
15452 }
15453 if (obj7) {
15454 ecode8 = SWIG_AsVal_int(obj7, &val8);
15455 if (!SWIG_IsOK(ecode8)) {
15456 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15457 }
15458 arg8 = static_cast< int >(val8);
15459 }
15460 if (obj8) {
15461 ecode9 = SWIG_AsVal_int(obj8, &val9);
15462 if (!SWIG_IsOK(ecode9)) {
15463 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15464 }
15465 arg9 = static_cast< int >(val9);
15466 }
15467 if (obj9) {
15468 ecode10 = SWIG_AsVal_int(obj9, &val10);
15469 if (!SWIG_IsOK(ecode10)) {
15470 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15471 }
15472 arg10 = static_cast< int >(val10);
15473 }
15474 if (obj10) {
15475 {
15476 arg11 = wxString_in_helper(obj10);
15477 if (arg11 == NULL) SWIG_fail;
15478 temp11 = true;
15479 }
15480 }
15481 {
15482 PyThreadState* __tstate = wxPyBeginAllowThreads();
15483 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15484 wxPyEndAllowThreads(__tstate);
15485 if (PyErr_Occurred()) SWIG_fail;
15486 }
15487 {
15488 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15489 }
15490 {
15491 if (temp4)
15492 delete arg4;
15493 }
15494 {
15495 if (temp11)
15496 delete arg11;
15497 }
15498 return resultobj;
15499 fail:
15500 {
15501 if (temp4)
15502 delete arg4;
15503 }
15504 {
15505 if (temp11)
15506 delete arg11;
15507 }
15508 return NULL;
15509 }
15510
15511
15512 SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15513 PyObject *resultobj = 0;
15514 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15515 int result;
15516 void *argp1 = 0 ;
15517 int res1 = 0 ;
15518 PyObject *swig_obj[1] ;
15519
15520 if (!args) SWIG_fail;
15521 swig_obj[0] = args;
15522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15523 if (!SWIG_IsOK(res1)) {
15524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15525 }
15526 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15527 {
15528 PyThreadState* __tstate = wxPyBeginAllowThreads();
15529 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15530 wxPyEndAllowThreads(__tstate);
15531 if (PyErr_Occurred()) SWIG_fail;
15532 }
15533 resultobj = SWIG_From_int(static_cast< int >(result));
15534 return resultobj;
15535 fail:
15536 return NULL;
15537 }
15538
15539
15540 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15541 PyObject *resultobj = 0;
15542 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15543 int arg2 ;
15544 void *argp1 = 0 ;
15545 int res1 = 0 ;
15546 int val2 ;
15547 int ecode2 = 0 ;
15548 PyObject * obj0 = 0 ;
15549 PyObject * obj1 = 0 ;
15550 char * kwnames[] = {
15551 (char *) "self",(char *) "value", NULL
15552 };
15553
15554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15556 if (!SWIG_IsOK(res1)) {
15557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15558 }
15559 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15560 ecode2 = SWIG_AsVal_int(obj1, &val2);
15561 if (!SWIG_IsOK(ecode2)) {
15562 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15563 }
15564 arg2 = static_cast< int >(val2);
15565 {
15566 PyThreadState* __tstate = wxPyBeginAllowThreads();
15567 (arg1)->SetValue(arg2);
15568 wxPyEndAllowThreads(__tstate);
15569 if (PyErr_Occurred()) SWIG_fail;
15570 }
15571 resultobj = SWIG_Py_Void();
15572 return resultobj;
15573 fail:
15574 return NULL;
15575 }
15576
15577
15578 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15579 PyObject *resultobj = 0;
15580 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15581 wxString *arg2 = 0 ;
15582 void *argp1 = 0 ;
15583 int res1 = 0 ;
15584 bool temp2 = false ;
15585 PyObject * obj0 = 0 ;
15586 PyObject * obj1 = 0 ;
15587 char * kwnames[] = {
15588 (char *) "self",(char *) "text", NULL
15589 };
15590
15591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15593 if (!SWIG_IsOK(res1)) {
15594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15595 }
15596 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15597 {
15598 arg2 = wxString_in_helper(obj1);
15599 if (arg2 == NULL) SWIG_fail;
15600 temp2 = true;
15601 }
15602 {
15603 PyThreadState* __tstate = wxPyBeginAllowThreads();
15604 (arg1)->SetValue((wxString const &)*arg2);
15605 wxPyEndAllowThreads(__tstate);
15606 if (PyErr_Occurred()) SWIG_fail;
15607 }
15608 resultobj = SWIG_Py_Void();
15609 {
15610 if (temp2)
15611 delete arg2;
15612 }
15613 return resultobj;
15614 fail:
15615 {
15616 if (temp2)
15617 delete arg2;
15618 }
15619 return NULL;
15620 }
15621
15622
15623 SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15624 PyObject *resultobj = 0;
15625 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15626 int arg2 ;
15627 int arg3 ;
15628 void *argp1 = 0 ;
15629 int res1 = 0 ;
15630 int val2 ;
15631 int ecode2 = 0 ;
15632 int val3 ;
15633 int ecode3 = 0 ;
15634 PyObject * obj0 = 0 ;
15635 PyObject * obj1 = 0 ;
15636 PyObject * obj2 = 0 ;
15637 char * kwnames[] = {
15638 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15639 };
15640
15641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15643 if (!SWIG_IsOK(res1)) {
15644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15645 }
15646 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15647 ecode2 = SWIG_AsVal_int(obj1, &val2);
15648 if (!SWIG_IsOK(ecode2)) {
15649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15650 }
15651 arg2 = static_cast< int >(val2);
15652 ecode3 = SWIG_AsVal_int(obj2, &val3);
15653 if (!SWIG_IsOK(ecode3)) {
15654 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15655 }
15656 arg3 = static_cast< int >(val3);
15657 {
15658 PyThreadState* __tstate = wxPyBeginAllowThreads();
15659 (arg1)->SetRange(arg2,arg3);
15660 wxPyEndAllowThreads(__tstate);
15661 if (PyErr_Occurred()) SWIG_fail;
15662 }
15663 resultobj = SWIG_Py_Void();
15664 return resultobj;
15665 fail:
15666 return NULL;
15667 }
15668
15669
15670 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15671 PyObject *resultobj = 0;
15672 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15673 int result;
15674 void *argp1 = 0 ;
15675 int res1 = 0 ;
15676 PyObject *swig_obj[1] ;
15677
15678 if (!args) SWIG_fail;
15679 swig_obj[0] = args;
15680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15681 if (!SWIG_IsOK(res1)) {
15682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15683 }
15684 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15685 {
15686 PyThreadState* __tstate = wxPyBeginAllowThreads();
15687 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15688 wxPyEndAllowThreads(__tstate);
15689 if (PyErr_Occurred()) SWIG_fail;
15690 }
15691 resultobj = SWIG_From_int(static_cast< int >(result));
15692 return resultobj;
15693 fail:
15694 return NULL;
15695 }
15696
15697
15698 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15699 PyObject *resultobj = 0;
15700 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15701 int result;
15702 void *argp1 = 0 ;
15703 int res1 = 0 ;
15704 PyObject *swig_obj[1] ;
15705
15706 if (!args) SWIG_fail;
15707 swig_obj[0] = args;
15708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15709 if (!SWIG_IsOK(res1)) {
15710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15711 }
15712 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15713 {
15714 PyThreadState* __tstate = wxPyBeginAllowThreads();
15715 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15716 wxPyEndAllowThreads(__tstate);
15717 if (PyErr_Occurred()) SWIG_fail;
15718 }
15719 resultobj = SWIG_From_int(static_cast< int >(result));
15720 return resultobj;
15721 fail:
15722 return NULL;
15723 }
15724
15725
15726 SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15727 PyObject *resultobj = 0;
15728 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15729 long arg2 ;
15730 long arg3 ;
15731 void *argp1 = 0 ;
15732 int res1 = 0 ;
15733 long val2 ;
15734 int ecode2 = 0 ;
15735 long val3 ;
15736 int ecode3 = 0 ;
15737 PyObject * obj0 = 0 ;
15738 PyObject * obj1 = 0 ;
15739 PyObject * obj2 = 0 ;
15740 char * kwnames[] = {
15741 (char *) "self",(char *) "from",(char *) "to", NULL
15742 };
15743
15744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15746 if (!SWIG_IsOK(res1)) {
15747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15748 }
15749 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15750 ecode2 = SWIG_AsVal_long(obj1, &val2);
15751 if (!SWIG_IsOK(ecode2)) {
15752 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15753 }
15754 arg2 = static_cast< long >(val2);
15755 ecode3 = SWIG_AsVal_long(obj2, &val3);
15756 if (!SWIG_IsOK(ecode3)) {
15757 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15758 }
15759 arg3 = static_cast< long >(val3);
15760 {
15761 PyThreadState* __tstate = wxPyBeginAllowThreads();
15762 (arg1)->SetSelection(arg2,arg3);
15763 wxPyEndAllowThreads(__tstate);
15764 if (PyErr_Occurred()) SWIG_fail;
15765 }
15766 resultobj = SWIG_Py_Void();
15767 return resultobj;
15768 fail:
15769 return NULL;
15770 }
15771
15772
15773 SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15774 PyObject *resultobj = 0;
15775 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15776 SwigValueWrapper<wxVisualAttributes > result;
15777 int val1 ;
15778 int ecode1 = 0 ;
15779 PyObject * obj0 = 0 ;
15780 char * kwnames[] = {
15781 (char *) "variant", NULL
15782 };
15783
15784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15785 if (obj0) {
15786 ecode1 = SWIG_AsVal_int(obj0, &val1);
15787 if (!SWIG_IsOK(ecode1)) {
15788 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15789 }
15790 arg1 = static_cast< wxWindowVariant >(val1);
15791 }
15792 {
15793 if (!wxPyCheckForApp()) SWIG_fail;
15794 PyThreadState* __tstate = wxPyBeginAllowThreads();
15795 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15796 wxPyEndAllowThreads(__tstate);
15797 if (PyErr_Occurred()) SWIG_fail;
15798 }
15799 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15800 return resultobj;
15801 fail:
15802 return NULL;
15803 }
15804
15805
15806 SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15807 PyObject *obj;
15808 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15809 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15810 return SWIG_Py_Void();
15811 }
15812
15813 SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15814 return SWIG_Python_InitShadowInstance(args);
15815 }
15816
15817 SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15818 PyObject *resultobj = 0;
15819 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15820 int arg2 = (int) 0 ;
15821 wxSpinEvent *result = 0 ;
15822 int val1 ;
15823 int ecode1 = 0 ;
15824 int val2 ;
15825 int ecode2 = 0 ;
15826 PyObject * obj0 = 0 ;
15827 PyObject * obj1 = 0 ;
15828 char * kwnames[] = {
15829 (char *) "commandType",(char *) "winid", NULL
15830 };
15831
15832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15833 if (obj0) {
15834 ecode1 = SWIG_AsVal_int(obj0, &val1);
15835 if (!SWIG_IsOK(ecode1)) {
15836 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15837 }
15838 arg1 = static_cast< wxEventType >(val1);
15839 }
15840 if (obj1) {
15841 ecode2 = SWIG_AsVal_int(obj1, &val2);
15842 if (!SWIG_IsOK(ecode2)) {
15843 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15844 }
15845 arg2 = static_cast< int >(val2);
15846 }
15847 {
15848 PyThreadState* __tstate = wxPyBeginAllowThreads();
15849 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15850 wxPyEndAllowThreads(__tstate);
15851 if (PyErr_Occurred()) SWIG_fail;
15852 }
15853 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15854 return resultobj;
15855 fail:
15856 return NULL;
15857 }
15858
15859
15860 SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15861 PyObject *resultobj = 0;
15862 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15863 int result;
15864 void *argp1 = 0 ;
15865 int res1 = 0 ;
15866 PyObject *swig_obj[1] ;
15867
15868 if (!args) SWIG_fail;
15869 swig_obj[0] = args;
15870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15871 if (!SWIG_IsOK(res1)) {
15872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15873 }
15874 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15875 {
15876 PyThreadState* __tstate = wxPyBeginAllowThreads();
15877 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15878 wxPyEndAllowThreads(__tstate);
15879 if (PyErr_Occurred()) SWIG_fail;
15880 }
15881 resultobj = SWIG_From_int(static_cast< int >(result));
15882 return resultobj;
15883 fail:
15884 return NULL;
15885 }
15886
15887
15888 SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15889 PyObject *resultobj = 0;
15890 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15891 int arg2 ;
15892 void *argp1 = 0 ;
15893 int res1 = 0 ;
15894 int val2 ;
15895 int ecode2 = 0 ;
15896 PyObject * obj0 = 0 ;
15897 PyObject * obj1 = 0 ;
15898 char * kwnames[] = {
15899 (char *) "self",(char *) "pos", NULL
15900 };
15901
15902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15904 if (!SWIG_IsOK(res1)) {
15905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15906 }
15907 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15908 ecode2 = SWIG_AsVal_int(obj1, &val2);
15909 if (!SWIG_IsOK(ecode2)) {
15910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15911 }
15912 arg2 = static_cast< int >(val2);
15913 {
15914 PyThreadState* __tstate = wxPyBeginAllowThreads();
15915 (arg1)->SetPosition(arg2);
15916 wxPyEndAllowThreads(__tstate);
15917 if (PyErr_Occurred()) SWIG_fail;
15918 }
15919 resultobj = SWIG_Py_Void();
15920 return resultobj;
15921 fail:
15922 return NULL;
15923 }
15924
15925
15926 SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15927 PyObject *obj;
15928 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15929 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15930 return SWIG_Py_Void();
15931 }
15932
15933 SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15934 return SWIG_Python_InitShadowInstance(args);
15935 }
15936
15937 SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15938 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15939 return 1;
15940 }
15941
15942
15943 SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15944 PyObject *pyobj = 0;
15945
15946 {
15947 #if wxUSE_UNICODE
15948 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15949 #else
15950 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15951 #endif
15952 }
15953 return pyobj;
15954 }
15955
15956
15957 SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15958 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15959 return 1;
15960 }
15961
15962
15963 SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15964 PyObject *pyobj = 0;
15965
15966 {
15967 #if wxUSE_UNICODE
15968 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15969 #else
15970 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15971 #endif
15972 }
15973 return pyobj;
15974 }
15975
15976
15977 SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15978 PyObject *resultobj = 0;
15979 wxWindow *arg1 = (wxWindow *) 0 ;
15980 int arg2 = (int) -1 ;
15981 wxString const &arg3_defvalue = wxPyEmptyString ;
15982 wxString *arg3 = (wxString *) &arg3_defvalue ;
15983 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15984 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15985 wxSize const &arg5_defvalue = wxDefaultSize ;
15986 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15987 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
15988 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
15989 int arg7 = (int) 0 ;
15990 long arg8 = (long) wxRA_HORIZONTAL ;
15991 wxValidator const &arg9_defvalue = wxDefaultValidator ;
15992 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
15993 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
15994 wxString *arg10 = (wxString *) &arg10_defvalue ;
15995 wxRadioBox *result = 0 ;
15996 void *argp1 = 0 ;
15997 int res1 = 0 ;
15998 int val2 ;
15999 int ecode2 = 0 ;
16000 bool temp3 = false ;
16001 wxPoint temp4 ;
16002 wxSize temp5 ;
16003 bool temp6 = false ;
16004 int val7 ;
16005 int ecode7 = 0 ;
16006 long val8 ;
16007 int ecode8 = 0 ;
16008 void *argp9 = 0 ;
16009 int res9 = 0 ;
16010 bool temp10 = false ;
16011 PyObject * obj0 = 0 ;
16012 PyObject * obj1 = 0 ;
16013 PyObject * obj2 = 0 ;
16014 PyObject * obj3 = 0 ;
16015 PyObject * obj4 = 0 ;
16016 PyObject * obj5 = 0 ;
16017 PyObject * obj6 = 0 ;
16018 PyObject * obj7 = 0 ;
16019 PyObject * obj8 = 0 ;
16020 PyObject * obj9 = 0 ;
16021 char * kwnames[] = {
16022 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16023 };
16024
16025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
16026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16027 if (!SWIG_IsOK(res1)) {
16028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
16029 }
16030 arg1 = reinterpret_cast< wxWindow * >(argp1);
16031 if (obj1) {
16032 ecode2 = SWIG_AsVal_int(obj1, &val2);
16033 if (!SWIG_IsOK(ecode2)) {
16034 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
16035 }
16036 arg2 = static_cast< int >(val2);
16037 }
16038 if (obj2) {
16039 {
16040 arg3 = wxString_in_helper(obj2);
16041 if (arg3 == NULL) SWIG_fail;
16042 temp3 = true;
16043 }
16044 }
16045 if (obj3) {
16046 {
16047 arg4 = &temp4;
16048 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
16049 }
16050 }
16051 if (obj4) {
16052 {
16053 arg5 = &temp5;
16054 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
16055 }
16056 }
16057 if (obj5) {
16058 {
16059 if (! PySequence_Check(obj5)) {
16060 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16061 SWIG_fail;
16062 }
16063 arg6 = new wxArrayString;
16064 temp6 = true;
16065 int i, len=PySequence_Length(obj5);
16066 for (i=0; i<len; i++) {
16067 PyObject* item = PySequence_GetItem(obj5, i);
16068 wxString* s = wxString_in_helper(item);
16069 if (PyErr_Occurred()) SWIG_fail;
16070 arg6->Add(*s);
16071 delete s;
16072 Py_DECREF(item);
16073 }
16074 }
16075 }
16076 if (obj6) {
16077 ecode7 = SWIG_AsVal_int(obj6, &val7);
16078 if (!SWIG_IsOK(ecode7)) {
16079 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16080 }
16081 arg7 = static_cast< int >(val7);
16082 }
16083 if (obj7) {
16084 ecode8 = SWIG_AsVal_long(obj7, &val8);
16085 if (!SWIG_IsOK(ecode8)) {
16086 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16087 }
16088 arg8 = static_cast< long >(val8);
16089 }
16090 if (obj8) {
16091 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16092 if (!SWIG_IsOK(res9)) {
16093 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16094 }
16095 if (!argp9) {
16096 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
16097 }
16098 arg9 = reinterpret_cast< wxValidator * >(argp9);
16099 }
16100 if (obj9) {
16101 {
16102 arg10 = wxString_in_helper(obj9);
16103 if (arg10 == NULL) SWIG_fail;
16104 temp10 = true;
16105 }
16106 }
16107 {
16108 if (!wxPyCheckForApp()) SWIG_fail;
16109 PyThreadState* __tstate = wxPyBeginAllowThreads();
16110 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);
16111 wxPyEndAllowThreads(__tstate);
16112 if (PyErr_Occurred()) SWIG_fail;
16113 }
16114 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16115 {
16116 if (temp3)
16117 delete arg3;
16118 }
16119 {
16120 if (temp6) delete arg6;
16121 }
16122 {
16123 if (temp10)
16124 delete arg10;
16125 }
16126 return resultobj;
16127 fail:
16128 {
16129 if (temp3)
16130 delete arg3;
16131 }
16132 {
16133 if (temp6) delete arg6;
16134 }
16135 {
16136 if (temp10)
16137 delete arg10;
16138 }
16139 return NULL;
16140 }
16141
16142
16143 SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16144 PyObject *resultobj = 0;
16145 wxRadioBox *result = 0 ;
16146
16147 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16148 {
16149 if (!wxPyCheckForApp()) SWIG_fail;
16150 PyThreadState* __tstate = wxPyBeginAllowThreads();
16151 result = (wxRadioBox *)new wxRadioBox();
16152 wxPyEndAllowThreads(__tstate);
16153 if (PyErr_Occurred()) SWIG_fail;
16154 }
16155 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16156 return resultobj;
16157 fail:
16158 return NULL;
16159 }
16160
16161
16162 SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16163 PyObject *resultobj = 0;
16164 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16165 wxWindow *arg2 = (wxWindow *) 0 ;
16166 int arg3 = (int) -1 ;
16167 wxString const &arg4_defvalue = wxPyEmptyString ;
16168 wxString *arg4 = (wxString *) &arg4_defvalue ;
16169 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16170 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16171 wxSize const &arg6_defvalue = wxDefaultSize ;
16172 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16173 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16174 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16175 int arg8 = (int) 0 ;
16176 long arg9 = (long) wxRA_HORIZONTAL ;
16177 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16178 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16179 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16180 wxString *arg11 = (wxString *) &arg11_defvalue ;
16181 bool result;
16182 void *argp1 = 0 ;
16183 int res1 = 0 ;
16184 void *argp2 = 0 ;
16185 int res2 = 0 ;
16186 int val3 ;
16187 int ecode3 = 0 ;
16188 bool temp4 = false ;
16189 wxPoint temp5 ;
16190 wxSize temp6 ;
16191 bool temp7 = false ;
16192 int val8 ;
16193 int ecode8 = 0 ;
16194 long val9 ;
16195 int ecode9 = 0 ;
16196 void *argp10 = 0 ;
16197 int res10 = 0 ;
16198 bool temp11 = false ;
16199 PyObject * obj0 = 0 ;
16200 PyObject * obj1 = 0 ;
16201 PyObject * obj2 = 0 ;
16202 PyObject * obj3 = 0 ;
16203 PyObject * obj4 = 0 ;
16204 PyObject * obj5 = 0 ;
16205 PyObject * obj6 = 0 ;
16206 PyObject * obj7 = 0 ;
16207 PyObject * obj8 = 0 ;
16208 PyObject * obj9 = 0 ;
16209 PyObject * obj10 = 0 ;
16210 char * kwnames[] = {
16211 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16212 };
16213
16214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16216 if (!SWIG_IsOK(res1)) {
16217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16218 }
16219 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16220 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16221 if (!SWIG_IsOK(res2)) {
16222 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16223 }
16224 arg2 = reinterpret_cast< wxWindow * >(argp2);
16225 if (obj2) {
16226 ecode3 = SWIG_AsVal_int(obj2, &val3);
16227 if (!SWIG_IsOK(ecode3)) {
16228 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16229 }
16230 arg3 = static_cast< int >(val3);
16231 }
16232 if (obj3) {
16233 {
16234 arg4 = wxString_in_helper(obj3);
16235 if (arg4 == NULL) SWIG_fail;
16236 temp4 = true;
16237 }
16238 }
16239 if (obj4) {
16240 {
16241 arg5 = &temp5;
16242 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16243 }
16244 }
16245 if (obj5) {
16246 {
16247 arg6 = &temp6;
16248 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
16249 }
16250 }
16251 if (obj6) {
16252 {
16253 if (! PySequence_Check(obj6)) {
16254 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16255 SWIG_fail;
16256 }
16257 arg7 = new wxArrayString;
16258 temp7 = true;
16259 int i, len=PySequence_Length(obj6);
16260 for (i=0; i<len; i++) {
16261 PyObject* item = PySequence_GetItem(obj6, i);
16262 wxString* s = wxString_in_helper(item);
16263 if (PyErr_Occurred()) SWIG_fail;
16264 arg7->Add(*s);
16265 delete s;
16266 Py_DECREF(item);
16267 }
16268 }
16269 }
16270 if (obj7) {
16271 ecode8 = SWIG_AsVal_int(obj7, &val8);
16272 if (!SWIG_IsOK(ecode8)) {
16273 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16274 }
16275 arg8 = static_cast< int >(val8);
16276 }
16277 if (obj8) {
16278 ecode9 = SWIG_AsVal_long(obj8, &val9);
16279 if (!SWIG_IsOK(ecode9)) {
16280 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16281 }
16282 arg9 = static_cast< long >(val9);
16283 }
16284 if (obj9) {
16285 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16286 if (!SWIG_IsOK(res10)) {
16287 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16288 }
16289 if (!argp10) {
16290 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16291 }
16292 arg10 = reinterpret_cast< wxValidator * >(argp10);
16293 }
16294 if (obj10) {
16295 {
16296 arg11 = wxString_in_helper(obj10);
16297 if (arg11 == NULL) SWIG_fail;
16298 temp11 = true;
16299 }
16300 }
16301 {
16302 PyThreadState* __tstate = wxPyBeginAllowThreads();
16303 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);
16304 wxPyEndAllowThreads(__tstate);
16305 if (PyErr_Occurred()) SWIG_fail;
16306 }
16307 {
16308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16309 }
16310 {
16311 if (temp4)
16312 delete arg4;
16313 }
16314 {
16315 if (temp7) delete arg7;
16316 }
16317 {
16318 if (temp11)
16319 delete arg11;
16320 }
16321 return resultobj;
16322 fail:
16323 {
16324 if (temp4)
16325 delete arg4;
16326 }
16327 {
16328 if (temp7) delete arg7;
16329 }
16330 {
16331 if (temp11)
16332 delete arg11;
16333 }
16334 return NULL;
16335 }
16336
16337
16338 SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16339 PyObject *resultobj = 0;
16340 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16341 int arg2 ;
16342 void *argp1 = 0 ;
16343 int res1 = 0 ;
16344 int val2 ;
16345 int ecode2 = 0 ;
16346 PyObject * obj0 = 0 ;
16347 PyObject * obj1 = 0 ;
16348 char * kwnames[] = {
16349 (char *) "self",(char *) "n", NULL
16350 };
16351
16352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16354 if (!SWIG_IsOK(res1)) {
16355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16356 }
16357 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16358 ecode2 = SWIG_AsVal_int(obj1, &val2);
16359 if (!SWIG_IsOK(ecode2)) {
16360 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16361 }
16362 arg2 = static_cast< int >(val2);
16363 {
16364 PyThreadState* __tstate = wxPyBeginAllowThreads();
16365 (arg1)->SetSelection(arg2);
16366 wxPyEndAllowThreads(__tstate);
16367 if (PyErr_Occurred()) SWIG_fail;
16368 }
16369 resultobj = SWIG_Py_Void();
16370 return resultobj;
16371 fail:
16372 return NULL;
16373 }
16374
16375
16376 SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16377 PyObject *resultobj = 0;
16378 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16379 int result;
16380 void *argp1 = 0 ;
16381 int res1 = 0 ;
16382 PyObject *swig_obj[1] ;
16383
16384 if (!args) SWIG_fail;
16385 swig_obj[0] = args;
16386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16387 if (!SWIG_IsOK(res1)) {
16388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16389 }
16390 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16391 {
16392 PyThreadState* __tstate = wxPyBeginAllowThreads();
16393 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16394 wxPyEndAllowThreads(__tstate);
16395 if (PyErr_Occurred()) SWIG_fail;
16396 }
16397 resultobj = SWIG_From_int(static_cast< int >(result));
16398 return resultobj;
16399 fail:
16400 return NULL;
16401 }
16402
16403
16404 SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16405 PyObject *resultobj = 0;
16406 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16407 wxString result;
16408 void *argp1 = 0 ;
16409 int res1 = 0 ;
16410 PyObject *swig_obj[1] ;
16411
16412 if (!args) SWIG_fail;
16413 swig_obj[0] = args;
16414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16415 if (!SWIG_IsOK(res1)) {
16416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16417 }
16418 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16419 {
16420 PyThreadState* __tstate = wxPyBeginAllowThreads();
16421 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16422 wxPyEndAllowThreads(__tstate);
16423 if (PyErr_Occurred()) SWIG_fail;
16424 }
16425 {
16426 #if wxUSE_UNICODE
16427 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16428 #else
16429 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16430 #endif
16431 }
16432 return resultobj;
16433 fail:
16434 return NULL;
16435 }
16436
16437
16438 SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16439 PyObject *resultobj = 0;
16440 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16441 wxString *arg2 = 0 ;
16442 bool result;
16443 void *argp1 = 0 ;
16444 int res1 = 0 ;
16445 bool temp2 = false ;
16446 PyObject * obj0 = 0 ;
16447 PyObject * obj1 = 0 ;
16448 char * kwnames[] = {
16449 (char *) "self",(char *) "s", NULL
16450 };
16451
16452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16454 if (!SWIG_IsOK(res1)) {
16455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16456 }
16457 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16458 {
16459 arg2 = wxString_in_helper(obj1);
16460 if (arg2 == NULL) SWIG_fail;
16461 temp2 = true;
16462 }
16463 {
16464 PyThreadState* __tstate = wxPyBeginAllowThreads();
16465 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16466 wxPyEndAllowThreads(__tstate);
16467 if (PyErr_Occurred()) SWIG_fail;
16468 }
16469 {
16470 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16471 }
16472 {
16473 if (temp2)
16474 delete arg2;
16475 }
16476 return resultobj;
16477 fail:
16478 {
16479 if (temp2)
16480 delete arg2;
16481 }
16482 return NULL;
16483 }
16484
16485
16486 SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16487 PyObject *resultobj = 0;
16488 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16489 size_t result;
16490 void *argp1 = 0 ;
16491 int res1 = 0 ;
16492 PyObject *swig_obj[1] ;
16493
16494 if (!args) SWIG_fail;
16495 swig_obj[0] = args;
16496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16497 if (!SWIG_IsOK(res1)) {
16498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16499 }
16500 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16501 {
16502 PyThreadState* __tstate = wxPyBeginAllowThreads();
16503 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
16504 wxPyEndAllowThreads(__tstate);
16505 if (PyErr_Occurred()) SWIG_fail;
16506 }
16507 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
16508 return resultobj;
16509 fail:
16510 return NULL;
16511 }
16512
16513
16514 SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16515 PyObject *resultobj = 0;
16516 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16517 wxString *arg2 = 0 ;
16518 int result;
16519 void *argp1 = 0 ;
16520 int res1 = 0 ;
16521 bool temp2 = false ;
16522 PyObject * obj0 = 0 ;
16523 PyObject * obj1 = 0 ;
16524 char * kwnames[] = {
16525 (char *) "self",(char *) "s", NULL
16526 };
16527
16528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16530 if (!SWIG_IsOK(res1)) {
16531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16532 }
16533 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16534 {
16535 arg2 = wxString_in_helper(obj1);
16536 if (arg2 == NULL) SWIG_fail;
16537 temp2 = true;
16538 }
16539 {
16540 PyThreadState* __tstate = wxPyBeginAllowThreads();
16541 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16542 wxPyEndAllowThreads(__tstate);
16543 if (PyErr_Occurred()) SWIG_fail;
16544 }
16545 resultobj = SWIG_From_int(static_cast< int >(result));
16546 {
16547 if (temp2)
16548 delete arg2;
16549 }
16550 return resultobj;
16551 fail:
16552 {
16553 if (temp2)
16554 delete arg2;
16555 }
16556 return NULL;
16557 }
16558
16559
16560 SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16561 PyObject *resultobj = 0;
16562 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16563 int arg2 ;
16564 wxString result;
16565 void *argp1 = 0 ;
16566 int res1 = 0 ;
16567 int val2 ;
16568 int ecode2 = 0 ;
16569 PyObject * obj0 = 0 ;
16570 PyObject * obj1 = 0 ;
16571 char * kwnames[] = {
16572 (char *) "self",(char *) "n", NULL
16573 };
16574
16575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16577 if (!SWIG_IsOK(res1)) {
16578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16579 }
16580 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16581 ecode2 = SWIG_AsVal_int(obj1, &val2);
16582 if (!SWIG_IsOK(ecode2)) {
16583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16584 }
16585 arg2 = static_cast< int >(val2);
16586 {
16587 PyThreadState* __tstate = wxPyBeginAllowThreads();
16588 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16589 wxPyEndAllowThreads(__tstate);
16590 if (PyErr_Occurred()) SWIG_fail;
16591 }
16592 {
16593 #if wxUSE_UNICODE
16594 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16595 #else
16596 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16597 #endif
16598 }
16599 return resultobj;
16600 fail:
16601 return NULL;
16602 }
16603
16604
16605 SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16606 PyObject *resultobj = 0;
16607 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16608 int arg2 ;
16609 wxString *arg3 = 0 ;
16610 void *argp1 = 0 ;
16611 int res1 = 0 ;
16612 int val2 ;
16613 int ecode2 = 0 ;
16614 bool temp3 = false ;
16615 PyObject * obj0 = 0 ;
16616 PyObject * obj1 = 0 ;
16617 PyObject * obj2 = 0 ;
16618 char * kwnames[] = {
16619 (char *) "self",(char *) "n",(char *) "label", NULL
16620 };
16621
16622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16624 if (!SWIG_IsOK(res1)) {
16625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16626 }
16627 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16628 ecode2 = SWIG_AsVal_int(obj1, &val2);
16629 if (!SWIG_IsOK(ecode2)) {
16630 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16631 }
16632 arg2 = static_cast< int >(val2);
16633 {
16634 arg3 = wxString_in_helper(obj2);
16635 if (arg3 == NULL) SWIG_fail;
16636 temp3 = true;
16637 }
16638 {
16639 PyThreadState* __tstate = wxPyBeginAllowThreads();
16640 (arg1)->SetString(arg2,(wxString const &)*arg3);
16641 wxPyEndAllowThreads(__tstate);
16642 if (PyErr_Occurred()) SWIG_fail;
16643 }
16644 resultobj = SWIG_Py_Void();
16645 {
16646 if (temp3)
16647 delete arg3;
16648 }
16649 return resultobj;
16650 fail:
16651 {
16652 if (temp3)
16653 delete arg3;
16654 }
16655 return NULL;
16656 }
16657
16658
16659 SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16660 PyObject *resultobj = 0;
16661 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16662 unsigned int arg2 ;
16663 bool arg3 = (bool) true ;
16664 void *argp1 = 0 ;
16665 int res1 = 0 ;
16666 unsigned int val2 ;
16667 int ecode2 = 0 ;
16668 bool val3 ;
16669 int ecode3 = 0 ;
16670 PyObject * obj0 = 0 ;
16671 PyObject * obj1 = 0 ;
16672 PyObject * obj2 = 0 ;
16673 char * kwnames[] = {
16674 (char *) "self",(char *) "n",(char *) "enable", NULL
16675 };
16676
16677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16679 if (!SWIG_IsOK(res1)) {
16680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16681 }
16682 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16683 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16684 if (!SWIG_IsOK(ecode2)) {
16685 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
16686 }
16687 arg2 = static_cast< unsigned int >(val2);
16688 if (obj2) {
16689 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16690 if (!SWIG_IsOK(ecode3)) {
16691 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16692 }
16693 arg3 = static_cast< bool >(val3);
16694 }
16695 {
16696 PyThreadState* __tstate = wxPyBeginAllowThreads();
16697 (arg1)->Enable(arg2,arg3);
16698 wxPyEndAllowThreads(__tstate);
16699 if (PyErr_Occurred()) SWIG_fail;
16700 }
16701 resultobj = SWIG_Py_Void();
16702 return resultobj;
16703 fail:
16704 return NULL;
16705 }
16706
16707
16708 SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16709 PyObject *resultobj = 0;
16710 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16711 unsigned int arg2 ;
16712 bool arg3 = (bool) true ;
16713 void *argp1 = 0 ;
16714 int res1 = 0 ;
16715 unsigned int val2 ;
16716 int ecode2 = 0 ;
16717 bool val3 ;
16718 int ecode3 = 0 ;
16719 PyObject * obj0 = 0 ;
16720 PyObject * obj1 = 0 ;
16721 PyObject * obj2 = 0 ;
16722 char * kwnames[] = {
16723 (char *) "self",(char *) "n",(char *) "show", NULL
16724 };
16725
16726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16728 if (!SWIG_IsOK(res1)) {
16729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16730 }
16731 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16732 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16733 if (!SWIG_IsOK(ecode2)) {
16734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
16735 }
16736 arg2 = static_cast< unsigned int >(val2);
16737 if (obj2) {
16738 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16739 if (!SWIG_IsOK(ecode3)) {
16740 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16741 }
16742 arg3 = static_cast< bool >(val3);
16743 }
16744 {
16745 PyThreadState* __tstate = wxPyBeginAllowThreads();
16746 (arg1)->Show(arg2,arg3);
16747 wxPyEndAllowThreads(__tstate);
16748 if (PyErr_Occurred()) SWIG_fail;
16749 }
16750 resultobj = SWIG_Py_Void();
16751 return resultobj;
16752 fail:
16753 return NULL;
16754 }
16755
16756
16757 SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16758 PyObject *resultobj = 0;
16759 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16760 unsigned int arg2 ;
16761 bool result;
16762 void *argp1 = 0 ;
16763 int res1 = 0 ;
16764 unsigned int val2 ;
16765 int ecode2 = 0 ;
16766 PyObject * obj0 = 0 ;
16767 PyObject * obj1 = 0 ;
16768 char * kwnames[] = {
16769 (char *) "self",(char *) "n", NULL
16770 };
16771
16772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16774 if (!SWIG_IsOK(res1)) {
16775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16776 }
16777 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16778 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16779 if (!SWIG_IsOK(ecode2)) {
16780 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16781 }
16782 arg2 = static_cast< unsigned int >(val2);
16783 {
16784 PyThreadState* __tstate = wxPyBeginAllowThreads();
16785 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16786 wxPyEndAllowThreads(__tstate);
16787 if (PyErr_Occurred()) SWIG_fail;
16788 }
16789 {
16790 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16791 }
16792 return resultobj;
16793 fail:
16794 return NULL;
16795 }
16796
16797
16798 SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16799 PyObject *resultobj = 0;
16800 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16801 unsigned int arg2 ;
16802 bool result;
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 *) "n", NULL
16811 };
16812
16813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",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_IsItemShown" "', 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_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16822 }
16823 arg2 = static_cast< unsigned int >(val2);
16824 {
16825 PyThreadState* __tstate = wxPyBeginAllowThreads();
16826 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16827 wxPyEndAllowThreads(__tstate);
16828 if (PyErr_Occurred()) SWIG_fail;
16829 }
16830 {
16831 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16832 }
16833 return resultobj;
16834 fail:
16835 return NULL;
16836 }
16837
16838
16839 SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16840 PyObject *resultobj = 0;
16841 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16842 unsigned int result;
16843 void *argp1 = 0 ;
16844 int res1 = 0 ;
16845 PyObject *swig_obj[1] ;
16846
16847 if (!args) SWIG_fail;
16848 swig_obj[0] = args;
16849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16850 if (!SWIG_IsOK(res1)) {
16851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16852 }
16853 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16854 {
16855 PyThreadState* __tstate = wxPyBeginAllowThreads();
16856 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
16857 wxPyEndAllowThreads(__tstate);
16858 if (PyErr_Occurred()) SWIG_fail;
16859 }
16860 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16861 return resultobj;
16862 fail:
16863 return NULL;
16864 }
16865
16866
16867 SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16868 PyObject *resultobj = 0;
16869 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16870 unsigned int result;
16871 void *argp1 = 0 ;
16872 int res1 = 0 ;
16873 PyObject *swig_obj[1] ;
16874
16875 if (!args) SWIG_fail;
16876 swig_obj[0] = args;
16877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16878 if (!SWIG_IsOK(res1)) {
16879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16880 }
16881 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16882 {
16883 PyThreadState* __tstate = wxPyBeginAllowThreads();
16884 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
16885 wxPyEndAllowThreads(__tstate);
16886 if (PyErr_Occurred()) SWIG_fail;
16887 }
16888 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16889 return resultobj;
16890 fail:
16891 return NULL;
16892 }
16893
16894
16895 SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16896 PyObject *resultobj = 0;
16897 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16898 int arg2 ;
16899 wxDirection arg3 ;
16900 long arg4 ;
16901 int result;
16902 void *argp1 = 0 ;
16903 int res1 = 0 ;
16904 int val2 ;
16905 int ecode2 = 0 ;
16906 int val3 ;
16907 int ecode3 = 0 ;
16908 long val4 ;
16909 int ecode4 = 0 ;
16910 PyObject * obj0 = 0 ;
16911 PyObject * obj1 = 0 ;
16912 PyObject * obj2 = 0 ;
16913 PyObject * obj3 = 0 ;
16914 char * kwnames[] = {
16915 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16916 };
16917
16918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16920 if (!SWIG_IsOK(res1)) {
16921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16922 }
16923 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16924 ecode2 = SWIG_AsVal_int(obj1, &val2);
16925 if (!SWIG_IsOK(ecode2)) {
16926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16927 }
16928 arg2 = static_cast< int >(val2);
16929 ecode3 = SWIG_AsVal_int(obj2, &val3);
16930 if (!SWIG_IsOK(ecode3)) {
16931 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16932 }
16933 arg3 = static_cast< wxDirection >(val3);
16934 ecode4 = SWIG_AsVal_long(obj3, &val4);
16935 if (!SWIG_IsOK(ecode4)) {
16936 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16937 }
16938 arg4 = static_cast< long >(val4);
16939 {
16940 PyThreadState* __tstate = wxPyBeginAllowThreads();
16941 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
16942 wxPyEndAllowThreads(__tstate);
16943 if (PyErr_Occurred()) SWIG_fail;
16944 }
16945 resultobj = SWIG_From_int(static_cast< int >(result));
16946 return resultobj;
16947 fail:
16948 return NULL;
16949 }
16950
16951
16952 SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16953 PyObject *resultobj = 0;
16954 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16955 unsigned int arg2 ;
16956 wxString *arg3 = 0 ;
16957 void *argp1 = 0 ;
16958 int res1 = 0 ;
16959 unsigned int val2 ;
16960 int ecode2 = 0 ;
16961 bool temp3 = false ;
16962 PyObject * obj0 = 0 ;
16963 PyObject * obj1 = 0 ;
16964 PyObject * obj2 = 0 ;
16965 char * kwnames[] = {
16966 (char *) "self",(char *) "item",(char *) "text", NULL
16967 };
16968
16969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16971 if (!SWIG_IsOK(res1)) {
16972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16973 }
16974 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16975 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16976 if (!SWIG_IsOK(ecode2)) {
16977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16978 }
16979 arg2 = static_cast< unsigned int >(val2);
16980 {
16981 arg3 = wxString_in_helper(obj2);
16982 if (arg3 == NULL) SWIG_fail;
16983 temp3 = true;
16984 }
16985 {
16986 PyThreadState* __tstate = wxPyBeginAllowThreads();
16987 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
16988 wxPyEndAllowThreads(__tstate);
16989 if (PyErr_Occurred()) SWIG_fail;
16990 }
16991 resultobj = SWIG_Py_Void();
16992 {
16993 if (temp3)
16994 delete arg3;
16995 }
16996 return resultobj;
16997 fail:
16998 {
16999 if (temp3)
17000 delete arg3;
17001 }
17002 return NULL;
17003 }
17004
17005
17006 SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17007 PyObject *resultobj = 0;
17008 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17009 unsigned int arg2 ;
17010 wxToolTip *result = 0 ;
17011 void *argp1 = 0 ;
17012 int res1 = 0 ;
17013 unsigned int val2 ;
17014 int ecode2 = 0 ;
17015 PyObject * obj0 = 0 ;
17016 PyObject * obj1 = 0 ;
17017 char * kwnames[] = {
17018 (char *) "self",(char *) "item", NULL
17019 };
17020
17021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
17022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17023 if (!SWIG_IsOK(res1)) {
17024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17025 }
17026 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17027 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17028 if (!SWIG_IsOK(ecode2)) {
17029 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17030 }
17031 arg2 = static_cast< unsigned int >(val2);
17032 {
17033 PyThreadState* __tstate = wxPyBeginAllowThreads();
17034 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
17035 wxPyEndAllowThreads(__tstate);
17036 if (PyErr_Occurred()) SWIG_fail;
17037 }
17038 {
17039 resultobj = wxPyMake_wxObject(result, (bool)0);
17040 }
17041 return resultobj;
17042 fail:
17043 return NULL;
17044 }
17045
17046
17047 SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17048 PyObject *resultobj = 0;
17049 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17050 unsigned int arg2 ;
17051 wxString *arg3 = 0 ;
17052 void *argp1 = 0 ;
17053 int res1 = 0 ;
17054 unsigned int val2 ;
17055 int ecode2 = 0 ;
17056 bool temp3 = false ;
17057 PyObject * obj0 = 0 ;
17058 PyObject * obj1 = 0 ;
17059 PyObject * obj2 = 0 ;
17060 char * kwnames[] = {
17061 (char *) "self",(char *) "n",(char *) "helpText", NULL
17062 };
17063
17064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17066 if (!SWIG_IsOK(res1)) {
17067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17068 }
17069 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17070 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17071 if (!SWIG_IsOK(ecode2)) {
17072 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17073 }
17074 arg2 = static_cast< unsigned int >(val2);
17075 {
17076 arg3 = wxString_in_helper(obj2);
17077 if (arg3 == NULL) SWIG_fail;
17078 temp3 = true;
17079 }
17080 {
17081 PyThreadState* __tstate = wxPyBeginAllowThreads();
17082 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
17083 wxPyEndAllowThreads(__tstate);
17084 if (PyErr_Occurred()) SWIG_fail;
17085 }
17086 resultobj = SWIG_Py_Void();
17087 {
17088 if (temp3)
17089 delete arg3;
17090 }
17091 return resultobj;
17092 fail:
17093 {
17094 if (temp3)
17095 delete arg3;
17096 }
17097 return NULL;
17098 }
17099
17100
17101 SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17102 PyObject *resultobj = 0;
17103 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17104 unsigned int arg2 ;
17105 wxString result;
17106 void *argp1 = 0 ;
17107 int res1 = 0 ;
17108 unsigned int val2 ;
17109 int ecode2 = 0 ;
17110 PyObject * obj0 = 0 ;
17111 PyObject * obj1 = 0 ;
17112 char * kwnames[] = {
17113 (char *) "self",(char *) "n", NULL
17114 };
17115
17116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
17117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17118 if (!SWIG_IsOK(res1)) {
17119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17120 }
17121 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17122 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17123 if (!SWIG_IsOK(ecode2)) {
17124 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17125 }
17126 arg2 = static_cast< unsigned int >(val2);
17127 {
17128 PyThreadState* __tstate = wxPyBeginAllowThreads();
17129 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
17130 wxPyEndAllowThreads(__tstate);
17131 if (PyErr_Occurred()) SWIG_fail;
17132 }
17133 {
17134 #if wxUSE_UNICODE
17135 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17136 #else
17137 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17138 #endif
17139 }
17140 return resultobj;
17141 fail:
17142 return NULL;
17143 }
17144
17145
17146 SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17147 PyObject *resultobj = 0;
17148 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17149 SwigValueWrapper<wxVisualAttributes > result;
17150 int val1 ;
17151 int ecode1 = 0 ;
17152 PyObject * obj0 = 0 ;
17153 char * kwnames[] = {
17154 (char *) "variant", NULL
17155 };
17156
17157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17158 if (obj0) {
17159 ecode1 = SWIG_AsVal_int(obj0, &val1);
17160 if (!SWIG_IsOK(ecode1)) {
17161 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17162 }
17163 arg1 = static_cast< wxWindowVariant >(val1);
17164 }
17165 {
17166 if (!wxPyCheckForApp()) SWIG_fail;
17167 PyThreadState* __tstate = wxPyBeginAllowThreads();
17168 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17169 wxPyEndAllowThreads(__tstate);
17170 if (PyErr_Occurred()) SWIG_fail;
17171 }
17172 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17173 return resultobj;
17174 fail:
17175 return NULL;
17176 }
17177
17178
17179 SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17180 PyObject *obj;
17181 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17182 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17183 return SWIG_Py_Void();
17184 }
17185
17186 SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17187 return SWIG_Python_InitShadowInstance(args);
17188 }
17189
17190 SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17191 PyObject *resultobj = 0;
17192 wxWindow *arg1 = (wxWindow *) 0 ;
17193 int arg2 = (int) -1 ;
17194 wxString const &arg3_defvalue = wxPyEmptyString ;
17195 wxString *arg3 = (wxString *) &arg3_defvalue ;
17196 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17197 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17198 wxSize const &arg5_defvalue = wxDefaultSize ;
17199 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17200 long arg6 = (long) 0 ;
17201 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17202 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17203 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17204 wxString *arg8 = (wxString *) &arg8_defvalue ;
17205 wxRadioButton *result = 0 ;
17206 void *argp1 = 0 ;
17207 int res1 = 0 ;
17208 int val2 ;
17209 int ecode2 = 0 ;
17210 bool temp3 = false ;
17211 wxPoint temp4 ;
17212 wxSize temp5 ;
17213 long val6 ;
17214 int ecode6 = 0 ;
17215 void *argp7 = 0 ;
17216 int res7 = 0 ;
17217 bool temp8 = false ;
17218 PyObject * obj0 = 0 ;
17219 PyObject * obj1 = 0 ;
17220 PyObject * obj2 = 0 ;
17221 PyObject * obj3 = 0 ;
17222 PyObject * obj4 = 0 ;
17223 PyObject * obj5 = 0 ;
17224 PyObject * obj6 = 0 ;
17225 PyObject * obj7 = 0 ;
17226 char * kwnames[] = {
17227 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17228 };
17229
17230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17232 if (!SWIG_IsOK(res1)) {
17233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17234 }
17235 arg1 = reinterpret_cast< wxWindow * >(argp1);
17236 if (obj1) {
17237 ecode2 = SWIG_AsVal_int(obj1, &val2);
17238 if (!SWIG_IsOK(ecode2)) {
17239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17240 }
17241 arg2 = static_cast< int >(val2);
17242 }
17243 if (obj2) {
17244 {
17245 arg3 = wxString_in_helper(obj2);
17246 if (arg3 == NULL) SWIG_fail;
17247 temp3 = true;
17248 }
17249 }
17250 if (obj3) {
17251 {
17252 arg4 = &temp4;
17253 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17254 }
17255 }
17256 if (obj4) {
17257 {
17258 arg5 = &temp5;
17259 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
17260 }
17261 }
17262 if (obj5) {
17263 ecode6 = SWIG_AsVal_long(obj5, &val6);
17264 if (!SWIG_IsOK(ecode6)) {
17265 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17266 }
17267 arg6 = static_cast< long >(val6);
17268 }
17269 if (obj6) {
17270 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17271 if (!SWIG_IsOK(res7)) {
17272 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17273 }
17274 if (!argp7) {
17275 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17276 }
17277 arg7 = reinterpret_cast< wxValidator * >(argp7);
17278 }
17279 if (obj7) {
17280 {
17281 arg8 = wxString_in_helper(obj7);
17282 if (arg8 == NULL) SWIG_fail;
17283 temp8 = true;
17284 }
17285 }
17286 {
17287 if (!wxPyCheckForApp()) SWIG_fail;
17288 PyThreadState* __tstate = wxPyBeginAllowThreads();
17289 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17290 wxPyEndAllowThreads(__tstate);
17291 if (PyErr_Occurred()) SWIG_fail;
17292 }
17293 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17294 {
17295 if (temp3)
17296 delete arg3;
17297 }
17298 {
17299 if (temp8)
17300 delete arg8;
17301 }
17302 return resultobj;
17303 fail:
17304 {
17305 if (temp3)
17306 delete arg3;
17307 }
17308 {
17309 if (temp8)
17310 delete arg8;
17311 }
17312 return NULL;
17313 }
17314
17315
17316 SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17317 PyObject *resultobj = 0;
17318 wxRadioButton *result = 0 ;
17319
17320 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17321 {
17322 if (!wxPyCheckForApp()) SWIG_fail;
17323 PyThreadState* __tstate = wxPyBeginAllowThreads();
17324 result = (wxRadioButton *)new wxRadioButton();
17325 wxPyEndAllowThreads(__tstate);
17326 if (PyErr_Occurred()) SWIG_fail;
17327 }
17328 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17329 return resultobj;
17330 fail:
17331 return NULL;
17332 }
17333
17334
17335 SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17336 PyObject *resultobj = 0;
17337 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17338 wxWindow *arg2 = (wxWindow *) 0 ;
17339 int arg3 = (int) -1 ;
17340 wxString const &arg4_defvalue = wxPyEmptyString ;
17341 wxString *arg4 = (wxString *) &arg4_defvalue ;
17342 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17343 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17344 wxSize const &arg6_defvalue = wxDefaultSize ;
17345 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17346 long arg7 = (long) 0 ;
17347 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17348 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17349 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17350 wxString *arg9 = (wxString *) &arg9_defvalue ;
17351 bool result;
17352 void *argp1 = 0 ;
17353 int res1 = 0 ;
17354 void *argp2 = 0 ;
17355 int res2 = 0 ;
17356 int val3 ;
17357 int ecode3 = 0 ;
17358 bool temp4 = false ;
17359 wxPoint temp5 ;
17360 wxSize temp6 ;
17361 long val7 ;
17362 int ecode7 = 0 ;
17363 void *argp8 = 0 ;
17364 int res8 = 0 ;
17365 bool temp9 = false ;
17366 PyObject * obj0 = 0 ;
17367 PyObject * obj1 = 0 ;
17368 PyObject * obj2 = 0 ;
17369 PyObject * obj3 = 0 ;
17370 PyObject * obj4 = 0 ;
17371 PyObject * obj5 = 0 ;
17372 PyObject * obj6 = 0 ;
17373 PyObject * obj7 = 0 ;
17374 PyObject * obj8 = 0 ;
17375 char * kwnames[] = {
17376 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17377 };
17378
17379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17381 if (!SWIG_IsOK(res1)) {
17382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17383 }
17384 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17385 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17386 if (!SWIG_IsOK(res2)) {
17387 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17388 }
17389 arg2 = reinterpret_cast< wxWindow * >(argp2);
17390 if (obj2) {
17391 ecode3 = SWIG_AsVal_int(obj2, &val3);
17392 if (!SWIG_IsOK(ecode3)) {
17393 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17394 }
17395 arg3 = static_cast< int >(val3);
17396 }
17397 if (obj3) {
17398 {
17399 arg4 = wxString_in_helper(obj3);
17400 if (arg4 == NULL) SWIG_fail;
17401 temp4 = true;
17402 }
17403 }
17404 if (obj4) {
17405 {
17406 arg5 = &temp5;
17407 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17408 }
17409 }
17410 if (obj5) {
17411 {
17412 arg6 = &temp6;
17413 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17414 }
17415 }
17416 if (obj6) {
17417 ecode7 = SWIG_AsVal_long(obj6, &val7);
17418 if (!SWIG_IsOK(ecode7)) {
17419 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17420 }
17421 arg7 = static_cast< long >(val7);
17422 }
17423 if (obj7) {
17424 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17425 if (!SWIG_IsOK(res8)) {
17426 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17427 }
17428 if (!argp8) {
17429 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17430 }
17431 arg8 = reinterpret_cast< wxValidator * >(argp8);
17432 }
17433 if (obj8) {
17434 {
17435 arg9 = wxString_in_helper(obj8);
17436 if (arg9 == NULL) SWIG_fail;
17437 temp9 = true;
17438 }
17439 }
17440 {
17441 PyThreadState* __tstate = wxPyBeginAllowThreads();
17442 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17443 wxPyEndAllowThreads(__tstate);
17444 if (PyErr_Occurred()) SWIG_fail;
17445 }
17446 {
17447 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17448 }
17449 {
17450 if (temp4)
17451 delete arg4;
17452 }
17453 {
17454 if (temp9)
17455 delete arg9;
17456 }
17457 return resultobj;
17458 fail:
17459 {
17460 if (temp4)
17461 delete arg4;
17462 }
17463 {
17464 if (temp9)
17465 delete arg9;
17466 }
17467 return NULL;
17468 }
17469
17470
17471 SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17472 PyObject *resultobj = 0;
17473 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17474 bool result;
17475 void *argp1 = 0 ;
17476 int res1 = 0 ;
17477 PyObject *swig_obj[1] ;
17478
17479 if (!args) SWIG_fail;
17480 swig_obj[0] = args;
17481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17482 if (!SWIG_IsOK(res1)) {
17483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17484 }
17485 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17486 {
17487 PyThreadState* __tstate = wxPyBeginAllowThreads();
17488 result = (bool)(arg1)->GetValue();
17489 wxPyEndAllowThreads(__tstate);
17490 if (PyErr_Occurred()) SWIG_fail;
17491 }
17492 {
17493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17494 }
17495 return resultobj;
17496 fail:
17497 return NULL;
17498 }
17499
17500
17501 SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17502 PyObject *resultobj = 0;
17503 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17504 bool arg2 ;
17505 void *argp1 = 0 ;
17506 int res1 = 0 ;
17507 bool val2 ;
17508 int ecode2 = 0 ;
17509 PyObject * obj0 = 0 ;
17510 PyObject * obj1 = 0 ;
17511 char * kwnames[] = {
17512 (char *) "self",(char *) "value", NULL
17513 };
17514
17515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17517 if (!SWIG_IsOK(res1)) {
17518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17519 }
17520 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17521 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17522 if (!SWIG_IsOK(ecode2)) {
17523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17524 }
17525 arg2 = static_cast< bool >(val2);
17526 {
17527 PyThreadState* __tstate = wxPyBeginAllowThreads();
17528 (arg1)->SetValue(arg2);
17529 wxPyEndAllowThreads(__tstate);
17530 if (PyErr_Occurred()) SWIG_fail;
17531 }
17532 resultobj = SWIG_Py_Void();
17533 return resultobj;
17534 fail:
17535 return NULL;
17536 }
17537
17538
17539 SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17540 PyObject *resultobj = 0;
17541 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17542 SwigValueWrapper<wxVisualAttributes > result;
17543 int val1 ;
17544 int ecode1 = 0 ;
17545 PyObject * obj0 = 0 ;
17546 char * kwnames[] = {
17547 (char *) "variant", NULL
17548 };
17549
17550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17551 if (obj0) {
17552 ecode1 = SWIG_AsVal_int(obj0, &val1);
17553 if (!SWIG_IsOK(ecode1)) {
17554 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17555 }
17556 arg1 = static_cast< wxWindowVariant >(val1);
17557 }
17558 {
17559 if (!wxPyCheckForApp()) SWIG_fail;
17560 PyThreadState* __tstate = wxPyBeginAllowThreads();
17561 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17562 wxPyEndAllowThreads(__tstate);
17563 if (PyErr_Occurred()) SWIG_fail;
17564 }
17565 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17566 return resultobj;
17567 fail:
17568 return NULL;
17569 }
17570
17571
17572 SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17573 PyObject *obj;
17574 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17575 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17576 return SWIG_Py_Void();
17577 }
17578
17579 SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17580 return SWIG_Python_InitShadowInstance(args);
17581 }
17582
17583 SWIGINTERN int SliderNameStr_set(PyObject *) {
17584 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17585 return 1;
17586 }
17587
17588
17589 SWIGINTERN PyObject *SliderNameStr_get(void) {
17590 PyObject *pyobj = 0;
17591
17592 {
17593 #if wxUSE_UNICODE
17594 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17595 #else
17596 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17597 #endif
17598 }
17599 return pyobj;
17600 }
17601
17602
17603 SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17604 PyObject *resultobj = 0;
17605 wxWindow *arg1 = (wxWindow *) 0 ;
17606 int arg2 = (int) -1 ;
17607 int arg3 = (int) 0 ;
17608 int arg4 = (int) 0 ;
17609 int arg5 = (int) 100 ;
17610 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17611 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17612 wxSize const &arg7_defvalue = wxDefaultSize ;
17613 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17614 long arg8 = (long) wxSL_HORIZONTAL ;
17615 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17616 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17617 wxString const &arg10_defvalue = wxPySliderNameStr ;
17618 wxString *arg10 = (wxString *) &arg10_defvalue ;
17619 wxSlider *result = 0 ;
17620 void *argp1 = 0 ;
17621 int res1 = 0 ;
17622 int val2 ;
17623 int ecode2 = 0 ;
17624 int val3 ;
17625 int ecode3 = 0 ;
17626 int val4 ;
17627 int ecode4 = 0 ;
17628 int val5 ;
17629 int ecode5 = 0 ;
17630 wxPoint temp6 ;
17631 wxSize temp7 ;
17632 long val8 ;
17633 int ecode8 = 0 ;
17634 void *argp9 = 0 ;
17635 int res9 = 0 ;
17636 bool temp10 = false ;
17637 PyObject * obj0 = 0 ;
17638 PyObject * obj1 = 0 ;
17639 PyObject * obj2 = 0 ;
17640 PyObject * obj3 = 0 ;
17641 PyObject * obj4 = 0 ;
17642 PyObject * obj5 = 0 ;
17643 PyObject * obj6 = 0 ;
17644 PyObject * obj7 = 0 ;
17645 PyObject * obj8 = 0 ;
17646 PyObject * obj9 = 0 ;
17647 char * kwnames[] = {
17648 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17649 };
17650
17651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17653 if (!SWIG_IsOK(res1)) {
17654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17655 }
17656 arg1 = reinterpret_cast< wxWindow * >(argp1);
17657 if (obj1) {
17658 ecode2 = SWIG_AsVal_int(obj1, &val2);
17659 if (!SWIG_IsOK(ecode2)) {
17660 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17661 }
17662 arg2 = static_cast< int >(val2);
17663 }
17664 if (obj2) {
17665 ecode3 = SWIG_AsVal_int(obj2, &val3);
17666 if (!SWIG_IsOK(ecode3)) {
17667 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17668 }
17669 arg3 = static_cast< int >(val3);
17670 }
17671 if (obj3) {
17672 ecode4 = SWIG_AsVal_int(obj3, &val4);
17673 if (!SWIG_IsOK(ecode4)) {
17674 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17675 }
17676 arg4 = static_cast< int >(val4);
17677 }
17678 if (obj4) {
17679 ecode5 = SWIG_AsVal_int(obj4, &val5);
17680 if (!SWIG_IsOK(ecode5)) {
17681 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17682 }
17683 arg5 = static_cast< int >(val5);
17684 }
17685 if (obj5) {
17686 {
17687 arg6 = &temp6;
17688 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
17689 }
17690 }
17691 if (obj6) {
17692 {
17693 arg7 = &temp7;
17694 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
17695 }
17696 }
17697 if (obj7) {
17698 ecode8 = SWIG_AsVal_long(obj7, &val8);
17699 if (!SWIG_IsOK(ecode8)) {
17700 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17701 }
17702 arg8 = static_cast< long >(val8);
17703 }
17704 if (obj8) {
17705 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17706 if (!SWIG_IsOK(res9)) {
17707 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17708 }
17709 if (!argp9) {
17710 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17711 }
17712 arg9 = reinterpret_cast< wxValidator * >(argp9);
17713 }
17714 if (obj9) {
17715 {
17716 arg10 = wxString_in_helper(obj9);
17717 if (arg10 == NULL) SWIG_fail;
17718 temp10 = true;
17719 }
17720 }
17721 {
17722 if (!wxPyCheckForApp()) SWIG_fail;
17723 PyThreadState* __tstate = wxPyBeginAllowThreads();
17724 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17725 wxPyEndAllowThreads(__tstate);
17726 if (PyErr_Occurred()) SWIG_fail;
17727 }
17728 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17729 {
17730 if (temp10)
17731 delete arg10;
17732 }
17733 return resultobj;
17734 fail:
17735 {
17736 if (temp10)
17737 delete arg10;
17738 }
17739 return NULL;
17740 }
17741
17742
17743 SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17744 PyObject *resultobj = 0;
17745 wxSlider *result = 0 ;
17746
17747 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17748 {
17749 if (!wxPyCheckForApp()) SWIG_fail;
17750 PyThreadState* __tstate = wxPyBeginAllowThreads();
17751 result = (wxSlider *)new wxSlider();
17752 wxPyEndAllowThreads(__tstate);
17753 if (PyErr_Occurred()) SWIG_fail;
17754 }
17755 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17756 return resultobj;
17757 fail:
17758 return NULL;
17759 }
17760
17761
17762 SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17763 PyObject *resultobj = 0;
17764 wxSlider *arg1 = (wxSlider *) 0 ;
17765 wxWindow *arg2 = (wxWindow *) 0 ;
17766 int arg3 = (int) -1 ;
17767 int arg4 = (int) 0 ;
17768 int arg5 = (int) 0 ;
17769 int arg6 = (int) 100 ;
17770 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17771 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17772 wxSize const &arg8_defvalue = wxDefaultSize ;
17773 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17774 long arg9 = (long) wxSL_HORIZONTAL ;
17775 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17776 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17777 wxString const &arg11_defvalue = wxPySliderNameStr ;
17778 wxString *arg11 = (wxString *) &arg11_defvalue ;
17779 bool result;
17780 void *argp1 = 0 ;
17781 int res1 = 0 ;
17782 void *argp2 = 0 ;
17783 int res2 = 0 ;
17784 int val3 ;
17785 int ecode3 = 0 ;
17786 int val4 ;
17787 int ecode4 = 0 ;
17788 int val5 ;
17789 int ecode5 = 0 ;
17790 int val6 ;
17791 int ecode6 = 0 ;
17792 wxPoint temp7 ;
17793 wxSize temp8 ;
17794 long val9 ;
17795 int ecode9 = 0 ;
17796 void *argp10 = 0 ;
17797 int res10 = 0 ;
17798 bool temp11 = false ;
17799 PyObject * obj0 = 0 ;
17800 PyObject * obj1 = 0 ;
17801 PyObject * obj2 = 0 ;
17802 PyObject * obj3 = 0 ;
17803 PyObject * obj4 = 0 ;
17804 PyObject * obj5 = 0 ;
17805 PyObject * obj6 = 0 ;
17806 PyObject * obj7 = 0 ;
17807 PyObject * obj8 = 0 ;
17808 PyObject * obj9 = 0 ;
17809 PyObject * obj10 = 0 ;
17810 char * kwnames[] = {
17811 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17812 };
17813
17814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17816 if (!SWIG_IsOK(res1)) {
17817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17818 }
17819 arg1 = reinterpret_cast< wxSlider * >(argp1);
17820 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17821 if (!SWIG_IsOK(res2)) {
17822 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17823 }
17824 arg2 = reinterpret_cast< wxWindow * >(argp2);
17825 if (obj2) {
17826 ecode3 = SWIG_AsVal_int(obj2, &val3);
17827 if (!SWIG_IsOK(ecode3)) {
17828 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17829 }
17830 arg3 = static_cast< int >(val3);
17831 }
17832 if (obj3) {
17833 ecode4 = SWIG_AsVal_int(obj3, &val4);
17834 if (!SWIG_IsOK(ecode4)) {
17835 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17836 }
17837 arg4 = static_cast< int >(val4);
17838 }
17839 if (obj4) {
17840 ecode5 = SWIG_AsVal_int(obj4, &val5);
17841 if (!SWIG_IsOK(ecode5)) {
17842 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17843 }
17844 arg5 = static_cast< int >(val5);
17845 }
17846 if (obj5) {
17847 ecode6 = SWIG_AsVal_int(obj5, &val6);
17848 if (!SWIG_IsOK(ecode6)) {
17849 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17850 }
17851 arg6 = static_cast< int >(val6);
17852 }
17853 if (obj6) {
17854 {
17855 arg7 = &temp7;
17856 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
17857 }
17858 }
17859 if (obj7) {
17860 {
17861 arg8 = &temp8;
17862 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
17863 }
17864 }
17865 if (obj8) {
17866 ecode9 = SWIG_AsVal_long(obj8, &val9);
17867 if (!SWIG_IsOK(ecode9)) {
17868 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17869 }
17870 arg9 = static_cast< long >(val9);
17871 }
17872 if (obj9) {
17873 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17874 if (!SWIG_IsOK(res10)) {
17875 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17876 }
17877 if (!argp10) {
17878 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17879 }
17880 arg10 = reinterpret_cast< wxValidator * >(argp10);
17881 }
17882 if (obj10) {
17883 {
17884 arg11 = wxString_in_helper(obj10);
17885 if (arg11 == NULL) SWIG_fail;
17886 temp11 = true;
17887 }
17888 }
17889 {
17890 PyThreadState* __tstate = wxPyBeginAllowThreads();
17891 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17892 wxPyEndAllowThreads(__tstate);
17893 if (PyErr_Occurred()) SWIG_fail;
17894 }
17895 {
17896 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17897 }
17898 {
17899 if (temp11)
17900 delete arg11;
17901 }
17902 return resultobj;
17903 fail:
17904 {
17905 if (temp11)
17906 delete arg11;
17907 }
17908 return NULL;
17909 }
17910
17911
17912 SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17913 PyObject *resultobj = 0;
17914 wxSlider *arg1 = (wxSlider *) 0 ;
17915 int result;
17916 void *argp1 = 0 ;
17917 int res1 = 0 ;
17918 PyObject *swig_obj[1] ;
17919
17920 if (!args) SWIG_fail;
17921 swig_obj[0] = args;
17922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17923 if (!SWIG_IsOK(res1)) {
17924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17925 }
17926 arg1 = reinterpret_cast< wxSlider * >(argp1);
17927 {
17928 PyThreadState* __tstate = wxPyBeginAllowThreads();
17929 result = (int)((wxSlider const *)arg1)->GetValue();
17930 wxPyEndAllowThreads(__tstate);
17931 if (PyErr_Occurred()) SWIG_fail;
17932 }
17933 resultobj = SWIG_From_int(static_cast< int >(result));
17934 return resultobj;
17935 fail:
17936 return NULL;
17937 }
17938
17939
17940 SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17941 PyObject *resultobj = 0;
17942 wxSlider *arg1 = (wxSlider *) 0 ;
17943 int arg2 ;
17944 void *argp1 = 0 ;
17945 int res1 = 0 ;
17946 int val2 ;
17947 int ecode2 = 0 ;
17948 PyObject * obj0 = 0 ;
17949 PyObject * obj1 = 0 ;
17950 char * kwnames[] = {
17951 (char *) "self",(char *) "value", NULL
17952 };
17953
17954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17956 if (!SWIG_IsOK(res1)) {
17957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17958 }
17959 arg1 = reinterpret_cast< wxSlider * >(argp1);
17960 ecode2 = SWIG_AsVal_int(obj1, &val2);
17961 if (!SWIG_IsOK(ecode2)) {
17962 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17963 }
17964 arg2 = static_cast< int >(val2);
17965 {
17966 PyThreadState* __tstate = wxPyBeginAllowThreads();
17967 (arg1)->SetValue(arg2);
17968 wxPyEndAllowThreads(__tstate);
17969 if (PyErr_Occurred()) SWIG_fail;
17970 }
17971 resultobj = SWIG_Py_Void();
17972 return resultobj;
17973 fail:
17974 return NULL;
17975 }
17976
17977
17978 SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17979 PyObject *resultobj = 0;
17980 wxSlider *arg1 = (wxSlider *) 0 ;
17981 int arg2 ;
17982 int arg3 ;
17983 void *argp1 = 0 ;
17984 int res1 = 0 ;
17985 int val2 ;
17986 int ecode2 = 0 ;
17987 int val3 ;
17988 int ecode3 = 0 ;
17989 PyObject * obj0 = 0 ;
17990 PyObject * obj1 = 0 ;
17991 PyObject * obj2 = 0 ;
17992 char * kwnames[] = {
17993 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
17994 };
17995
17996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) 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_SetRange" "', 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_SetRange" "', expected argument " "2"" of type '" "int""'");
18005 }
18006 arg2 = static_cast< int >(val2);
18007 ecode3 = SWIG_AsVal_int(obj2, &val3);
18008 if (!SWIG_IsOK(ecode3)) {
18009 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
18010 }
18011 arg3 = static_cast< int >(val3);
18012 {
18013 PyThreadState* __tstate = wxPyBeginAllowThreads();
18014 (arg1)->SetRange(arg2,arg3);
18015 wxPyEndAllowThreads(__tstate);
18016 if (PyErr_Occurred()) SWIG_fail;
18017 }
18018 resultobj = SWIG_Py_Void();
18019 return resultobj;
18020 fail:
18021 return NULL;
18022 }
18023
18024
18025 SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18026 PyObject *resultobj = 0;
18027 wxSlider *arg1 = (wxSlider *) 0 ;
18028 int result;
18029 void *argp1 = 0 ;
18030 int res1 = 0 ;
18031 PyObject *swig_obj[1] ;
18032
18033 if (!args) SWIG_fail;
18034 swig_obj[0] = args;
18035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18036 if (!SWIG_IsOK(res1)) {
18037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
18038 }
18039 arg1 = reinterpret_cast< wxSlider * >(argp1);
18040 {
18041 PyThreadState* __tstate = wxPyBeginAllowThreads();
18042 result = (int)((wxSlider const *)arg1)->GetMin();
18043 wxPyEndAllowThreads(__tstate);
18044 if (PyErr_Occurred()) SWIG_fail;
18045 }
18046 resultobj = SWIG_From_int(static_cast< int >(result));
18047 return resultobj;
18048 fail:
18049 return NULL;
18050 }
18051
18052
18053 SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18054 PyObject *resultobj = 0;
18055 wxSlider *arg1 = (wxSlider *) 0 ;
18056 int result;
18057 void *argp1 = 0 ;
18058 int res1 = 0 ;
18059 PyObject *swig_obj[1] ;
18060
18061 if (!args) SWIG_fail;
18062 swig_obj[0] = args;
18063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18064 if (!SWIG_IsOK(res1)) {
18065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
18066 }
18067 arg1 = reinterpret_cast< wxSlider * >(argp1);
18068 {
18069 PyThreadState* __tstate = wxPyBeginAllowThreads();
18070 result = (int)((wxSlider const *)arg1)->GetMax();
18071 wxPyEndAllowThreads(__tstate);
18072 if (PyErr_Occurred()) SWIG_fail;
18073 }
18074 resultobj = SWIG_From_int(static_cast< int >(result));
18075 return resultobj;
18076 fail:
18077 return NULL;
18078 }
18079
18080
18081 SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18082 PyObject *resultobj = 0;
18083 wxSlider *arg1 = (wxSlider *) 0 ;
18084 int arg2 ;
18085 void *argp1 = 0 ;
18086 int res1 = 0 ;
18087 int val2 ;
18088 int ecode2 = 0 ;
18089 PyObject * obj0 = 0 ;
18090 PyObject * obj1 = 0 ;
18091 char * kwnames[] = {
18092 (char *) "self",(char *) "minValue", NULL
18093 };
18094
18095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
18096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18097 if (!SWIG_IsOK(res1)) {
18098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
18099 }
18100 arg1 = reinterpret_cast< wxSlider * >(argp1);
18101 ecode2 = SWIG_AsVal_int(obj1, &val2);
18102 if (!SWIG_IsOK(ecode2)) {
18103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
18104 }
18105 arg2 = static_cast< int >(val2);
18106 {
18107 PyThreadState* __tstate = wxPyBeginAllowThreads();
18108 (arg1)->SetMin(arg2);
18109 wxPyEndAllowThreads(__tstate);
18110 if (PyErr_Occurred()) SWIG_fail;
18111 }
18112 resultobj = SWIG_Py_Void();
18113 return resultobj;
18114 fail:
18115 return NULL;
18116 }
18117
18118
18119 SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18120 PyObject *resultobj = 0;
18121 wxSlider *arg1 = (wxSlider *) 0 ;
18122 int arg2 ;
18123 void *argp1 = 0 ;
18124 int res1 = 0 ;
18125 int val2 ;
18126 int ecode2 = 0 ;
18127 PyObject * obj0 = 0 ;
18128 PyObject * obj1 = 0 ;
18129 char * kwnames[] = {
18130 (char *) "self",(char *) "maxValue", NULL
18131 };
18132
18133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
18134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18135 if (!SWIG_IsOK(res1)) {
18136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
18137 }
18138 arg1 = reinterpret_cast< wxSlider * >(argp1);
18139 ecode2 = SWIG_AsVal_int(obj1, &val2);
18140 if (!SWIG_IsOK(ecode2)) {
18141 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
18142 }
18143 arg2 = static_cast< int >(val2);
18144 {
18145 PyThreadState* __tstate = wxPyBeginAllowThreads();
18146 (arg1)->SetMax(arg2);
18147 wxPyEndAllowThreads(__tstate);
18148 if (PyErr_Occurred()) SWIG_fail;
18149 }
18150 resultobj = SWIG_Py_Void();
18151 return resultobj;
18152 fail:
18153 return NULL;
18154 }
18155
18156
18157 SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18158 PyObject *resultobj = 0;
18159 wxSlider *arg1 = (wxSlider *) 0 ;
18160 int arg2 ;
18161 void *argp1 = 0 ;
18162 int res1 = 0 ;
18163 int val2 ;
18164 int ecode2 = 0 ;
18165 PyObject * obj0 = 0 ;
18166 PyObject * obj1 = 0 ;
18167 char * kwnames[] = {
18168 (char *) "self",(char *) "lineSize", NULL
18169 };
18170
18171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18173 if (!SWIG_IsOK(res1)) {
18174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18175 }
18176 arg1 = reinterpret_cast< wxSlider * >(argp1);
18177 ecode2 = SWIG_AsVal_int(obj1, &val2);
18178 if (!SWIG_IsOK(ecode2)) {
18179 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18180 }
18181 arg2 = static_cast< int >(val2);
18182 {
18183 PyThreadState* __tstate = wxPyBeginAllowThreads();
18184 (arg1)->SetLineSize(arg2);
18185 wxPyEndAllowThreads(__tstate);
18186 if (PyErr_Occurred()) SWIG_fail;
18187 }
18188 resultobj = SWIG_Py_Void();
18189 return resultobj;
18190 fail:
18191 return NULL;
18192 }
18193
18194
18195 SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18196 PyObject *resultobj = 0;
18197 wxSlider *arg1 = (wxSlider *) 0 ;
18198 int arg2 ;
18199 void *argp1 = 0 ;
18200 int res1 = 0 ;
18201 int val2 ;
18202 int ecode2 = 0 ;
18203 PyObject * obj0 = 0 ;
18204 PyObject * obj1 = 0 ;
18205 char * kwnames[] = {
18206 (char *) "self",(char *) "pageSize", NULL
18207 };
18208
18209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18211 if (!SWIG_IsOK(res1)) {
18212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18213 }
18214 arg1 = reinterpret_cast< wxSlider * >(argp1);
18215 ecode2 = SWIG_AsVal_int(obj1, &val2);
18216 if (!SWIG_IsOK(ecode2)) {
18217 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18218 }
18219 arg2 = static_cast< int >(val2);
18220 {
18221 PyThreadState* __tstate = wxPyBeginAllowThreads();
18222 (arg1)->SetPageSize(arg2);
18223 wxPyEndAllowThreads(__tstate);
18224 if (PyErr_Occurred()) SWIG_fail;
18225 }
18226 resultobj = SWIG_Py_Void();
18227 return resultobj;
18228 fail:
18229 return NULL;
18230 }
18231
18232
18233 SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18234 PyObject *resultobj = 0;
18235 wxSlider *arg1 = (wxSlider *) 0 ;
18236 int result;
18237 void *argp1 = 0 ;
18238 int res1 = 0 ;
18239 PyObject *swig_obj[1] ;
18240
18241 if (!args) SWIG_fail;
18242 swig_obj[0] = args;
18243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18244 if (!SWIG_IsOK(res1)) {
18245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18246 }
18247 arg1 = reinterpret_cast< wxSlider * >(argp1);
18248 {
18249 PyThreadState* __tstate = wxPyBeginAllowThreads();
18250 result = (int)((wxSlider const *)arg1)->GetLineSize();
18251 wxPyEndAllowThreads(__tstate);
18252 if (PyErr_Occurred()) SWIG_fail;
18253 }
18254 resultobj = SWIG_From_int(static_cast< int >(result));
18255 return resultobj;
18256 fail:
18257 return NULL;
18258 }
18259
18260
18261 SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18262 PyObject *resultobj = 0;
18263 wxSlider *arg1 = (wxSlider *) 0 ;
18264 int result;
18265 void *argp1 = 0 ;
18266 int res1 = 0 ;
18267 PyObject *swig_obj[1] ;
18268
18269 if (!args) SWIG_fail;
18270 swig_obj[0] = args;
18271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18272 if (!SWIG_IsOK(res1)) {
18273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18274 }
18275 arg1 = reinterpret_cast< wxSlider * >(argp1);
18276 {
18277 PyThreadState* __tstate = wxPyBeginAllowThreads();
18278 result = (int)((wxSlider const *)arg1)->GetPageSize();
18279 wxPyEndAllowThreads(__tstate);
18280 if (PyErr_Occurred()) SWIG_fail;
18281 }
18282 resultobj = SWIG_From_int(static_cast< int >(result));
18283 return resultobj;
18284 fail:
18285 return NULL;
18286 }
18287
18288
18289 SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18290 PyObject *resultobj = 0;
18291 wxSlider *arg1 = (wxSlider *) 0 ;
18292 int arg2 ;
18293 void *argp1 = 0 ;
18294 int res1 = 0 ;
18295 int val2 ;
18296 int ecode2 = 0 ;
18297 PyObject * obj0 = 0 ;
18298 PyObject * obj1 = 0 ;
18299 char * kwnames[] = {
18300 (char *) "self",(char *) "lenPixels", NULL
18301 };
18302
18303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18305 if (!SWIG_IsOK(res1)) {
18306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18307 }
18308 arg1 = reinterpret_cast< wxSlider * >(argp1);
18309 ecode2 = SWIG_AsVal_int(obj1, &val2);
18310 if (!SWIG_IsOK(ecode2)) {
18311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18312 }
18313 arg2 = static_cast< int >(val2);
18314 {
18315 PyThreadState* __tstate = wxPyBeginAllowThreads();
18316 (arg1)->SetThumbLength(arg2);
18317 wxPyEndAllowThreads(__tstate);
18318 if (PyErr_Occurred()) SWIG_fail;
18319 }
18320 resultobj = SWIG_Py_Void();
18321 return resultobj;
18322 fail:
18323 return NULL;
18324 }
18325
18326
18327 SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18328 PyObject *resultobj = 0;
18329 wxSlider *arg1 = (wxSlider *) 0 ;
18330 int result;
18331 void *argp1 = 0 ;
18332 int res1 = 0 ;
18333 PyObject *swig_obj[1] ;
18334
18335 if (!args) SWIG_fail;
18336 swig_obj[0] = args;
18337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18338 if (!SWIG_IsOK(res1)) {
18339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18340 }
18341 arg1 = reinterpret_cast< wxSlider * >(argp1);
18342 {
18343 PyThreadState* __tstate = wxPyBeginAllowThreads();
18344 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18345 wxPyEndAllowThreads(__tstate);
18346 if (PyErr_Occurred()) SWIG_fail;
18347 }
18348 resultobj = SWIG_From_int(static_cast< int >(result));
18349 return resultobj;
18350 fail:
18351 return NULL;
18352 }
18353
18354
18355 SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18356 PyObject *resultobj = 0;
18357 wxSlider *arg1 = (wxSlider *) 0 ;
18358 int arg2 ;
18359 int arg3 = (int) 1 ;
18360 void *argp1 = 0 ;
18361 int res1 = 0 ;
18362 int val2 ;
18363 int ecode2 = 0 ;
18364 int val3 ;
18365 int ecode3 = 0 ;
18366 PyObject * obj0 = 0 ;
18367 PyObject * obj1 = 0 ;
18368 PyObject * obj2 = 0 ;
18369 char * kwnames[] = {
18370 (char *) "self",(char *) "n",(char *) "pos", NULL
18371 };
18372
18373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18375 if (!SWIG_IsOK(res1)) {
18376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18377 }
18378 arg1 = reinterpret_cast< wxSlider * >(argp1);
18379 ecode2 = SWIG_AsVal_int(obj1, &val2);
18380 if (!SWIG_IsOK(ecode2)) {
18381 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18382 }
18383 arg2 = static_cast< int >(val2);
18384 if (obj2) {
18385 ecode3 = SWIG_AsVal_int(obj2, &val3);
18386 if (!SWIG_IsOK(ecode3)) {
18387 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18388 }
18389 arg3 = static_cast< int >(val3);
18390 }
18391 {
18392 PyThreadState* __tstate = wxPyBeginAllowThreads();
18393 (arg1)->SetTickFreq(arg2,arg3);
18394 wxPyEndAllowThreads(__tstate);
18395 if (PyErr_Occurred()) SWIG_fail;
18396 }
18397 resultobj = SWIG_Py_Void();
18398 return resultobj;
18399 fail:
18400 return NULL;
18401 }
18402
18403
18404 SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18405 PyObject *resultobj = 0;
18406 wxSlider *arg1 = (wxSlider *) 0 ;
18407 int result;
18408 void *argp1 = 0 ;
18409 int res1 = 0 ;
18410 PyObject *swig_obj[1] ;
18411
18412 if (!args) SWIG_fail;
18413 swig_obj[0] = args;
18414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18415 if (!SWIG_IsOK(res1)) {
18416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18417 }
18418 arg1 = reinterpret_cast< wxSlider * >(argp1);
18419 {
18420 PyThreadState* __tstate = wxPyBeginAllowThreads();
18421 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18422 wxPyEndAllowThreads(__tstate);
18423 if (PyErr_Occurred()) SWIG_fail;
18424 }
18425 resultobj = SWIG_From_int(static_cast< int >(result));
18426 return resultobj;
18427 fail:
18428 return NULL;
18429 }
18430
18431
18432 SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18433 PyObject *resultobj = 0;
18434 wxSlider *arg1 = (wxSlider *) 0 ;
18435 void *argp1 = 0 ;
18436 int res1 = 0 ;
18437 PyObject *swig_obj[1] ;
18438
18439 if (!args) SWIG_fail;
18440 swig_obj[0] = args;
18441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18442 if (!SWIG_IsOK(res1)) {
18443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18444 }
18445 arg1 = reinterpret_cast< wxSlider * >(argp1);
18446 {
18447 PyThreadState* __tstate = wxPyBeginAllowThreads();
18448 (arg1)->ClearTicks();
18449 wxPyEndAllowThreads(__tstate);
18450 if (PyErr_Occurred()) SWIG_fail;
18451 }
18452 resultobj = SWIG_Py_Void();
18453 return resultobj;
18454 fail:
18455 return NULL;
18456 }
18457
18458
18459 SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18460 PyObject *resultobj = 0;
18461 wxSlider *arg1 = (wxSlider *) 0 ;
18462 int arg2 ;
18463 void *argp1 = 0 ;
18464 int res1 = 0 ;
18465 int val2 ;
18466 int ecode2 = 0 ;
18467 PyObject * obj0 = 0 ;
18468 PyObject * obj1 = 0 ;
18469 char * kwnames[] = {
18470 (char *) "self",(char *) "tickPos", NULL
18471 };
18472
18473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18475 if (!SWIG_IsOK(res1)) {
18476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18477 }
18478 arg1 = reinterpret_cast< wxSlider * >(argp1);
18479 ecode2 = SWIG_AsVal_int(obj1, &val2);
18480 if (!SWIG_IsOK(ecode2)) {
18481 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18482 }
18483 arg2 = static_cast< int >(val2);
18484 {
18485 PyThreadState* __tstate = wxPyBeginAllowThreads();
18486 (arg1)->SetTick(arg2);
18487 wxPyEndAllowThreads(__tstate);
18488 if (PyErr_Occurred()) SWIG_fail;
18489 }
18490 resultobj = SWIG_Py_Void();
18491 return resultobj;
18492 fail:
18493 return NULL;
18494 }
18495
18496
18497 SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18498 PyObject *resultobj = 0;
18499 wxSlider *arg1 = (wxSlider *) 0 ;
18500 void *argp1 = 0 ;
18501 int res1 = 0 ;
18502 PyObject *swig_obj[1] ;
18503
18504 if (!args) SWIG_fail;
18505 swig_obj[0] = args;
18506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18507 if (!SWIG_IsOK(res1)) {
18508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18509 }
18510 arg1 = reinterpret_cast< wxSlider * >(argp1);
18511 {
18512 PyThreadState* __tstate = wxPyBeginAllowThreads();
18513 (arg1)->ClearSel();
18514 wxPyEndAllowThreads(__tstate);
18515 if (PyErr_Occurred()) SWIG_fail;
18516 }
18517 resultobj = SWIG_Py_Void();
18518 return resultobj;
18519 fail:
18520 return NULL;
18521 }
18522
18523
18524 SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18525 PyObject *resultobj = 0;
18526 wxSlider *arg1 = (wxSlider *) 0 ;
18527 int result;
18528 void *argp1 = 0 ;
18529 int res1 = 0 ;
18530 PyObject *swig_obj[1] ;
18531
18532 if (!args) SWIG_fail;
18533 swig_obj[0] = args;
18534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18535 if (!SWIG_IsOK(res1)) {
18536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18537 }
18538 arg1 = reinterpret_cast< wxSlider * >(argp1);
18539 {
18540 PyThreadState* __tstate = wxPyBeginAllowThreads();
18541 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18542 wxPyEndAllowThreads(__tstate);
18543 if (PyErr_Occurred()) SWIG_fail;
18544 }
18545 resultobj = SWIG_From_int(static_cast< int >(result));
18546 return resultobj;
18547 fail:
18548 return NULL;
18549 }
18550
18551
18552 SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18553 PyObject *resultobj = 0;
18554 wxSlider *arg1 = (wxSlider *) 0 ;
18555 int result;
18556 void *argp1 = 0 ;
18557 int res1 = 0 ;
18558 PyObject *swig_obj[1] ;
18559
18560 if (!args) SWIG_fail;
18561 swig_obj[0] = args;
18562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18563 if (!SWIG_IsOK(res1)) {
18564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18565 }
18566 arg1 = reinterpret_cast< wxSlider * >(argp1);
18567 {
18568 PyThreadState* __tstate = wxPyBeginAllowThreads();
18569 result = (int)((wxSlider const *)arg1)->GetSelStart();
18570 wxPyEndAllowThreads(__tstate);
18571 if (PyErr_Occurred()) SWIG_fail;
18572 }
18573 resultobj = SWIG_From_int(static_cast< int >(result));
18574 return resultobj;
18575 fail:
18576 return NULL;
18577 }
18578
18579
18580 SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18581 PyObject *resultobj = 0;
18582 wxSlider *arg1 = (wxSlider *) 0 ;
18583 int arg2 ;
18584 int arg3 ;
18585 void *argp1 = 0 ;
18586 int res1 = 0 ;
18587 int val2 ;
18588 int ecode2 = 0 ;
18589 int val3 ;
18590 int ecode3 = 0 ;
18591 PyObject * obj0 = 0 ;
18592 PyObject * obj1 = 0 ;
18593 PyObject * obj2 = 0 ;
18594 char * kwnames[] = {
18595 (char *) "self",(char *) "min",(char *) "max", NULL
18596 };
18597
18598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18600 if (!SWIG_IsOK(res1)) {
18601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18602 }
18603 arg1 = reinterpret_cast< wxSlider * >(argp1);
18604 ecode2 = SWIG_AsVal_int(obj1, &val2);
18605 if (!SWIG_IsOK(ecode2)) {
18606 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18607 }
18608 arg2 = static_cast< int >(val2);
18609 ecode3 = SWIG_AsVal_int(obj2, &val3);
18610 if (!SWIG_IsOK(ecode3)) {
18611 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18612 }
18613 arg3 = static_cast< int >(val3);
18614 {
18615 PyThreadState* __tstate = wxPyBeginAllowThreads();
18616 (arg1)->SetSelection(arg2,arg3);
18617 wxPyEndAllowThreads(__tstate);
18618 if (PyErr_Occurred()) SWIG_fail;
18619 }
18620 resultobj = SWIG_Py_Void();
18621 return resultobj;
18622 fail:
18623 return NULL;
18624 }
18625
18626
18627 SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18628 PyObject *resultobj = 0;
18629 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18630 SwigValueWrapper<wxVisualAttributes > result;
18631 int val1 ;
18632 int ecode1 = 0 ;
18633 PyObject * obj0 = 0 ;
18634 char * kwnames[] = {
18635 (char *) "variant", NULL
18636 };
18637
18638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18639 if (obj0) {
18640 ecode1 = SWIG_AsVal_int(obj0, &val1);
18641 if (!SWIG_IsOK(ecode1)) {
18642 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18643 }
18644 arg1 = static_cast< wxWindowVariant >(val1);
18645 }
18646 {
18647 if (!wxPyCheckForApp()) SWIG_fail;
18648 PyThreadState* __tstate = wxPyBeginAllowThreads();
18649 result = wxSlider::GetClassDefaultAttributes(arg1);
18650 wxPyEndAllowThreads(__tstate);
18651 if (PyErr_Occurred()) SWIG_fail;
18652 }
18653 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18654 return resultobj;
18655 fail:
18656 return NULL;
18657 }
18658
18659
18660 SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18661 PyObject *obj;
18662 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18663 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18664 return SWIG_Py_Void();
18665 }
18666
18667 SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18668 return SWIG_Python_InitShadowInstance(args);
18669 }
18670
18671 SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18672 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18673 return 1;
18674 }
18675
18676
18677 SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18678 PyObject *pyobj = 0;
18679
18680 {
18681 #if wxUSE_UNICODE
18682 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18683 #else
18684 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18685 #endif
18686 }
18687 return pyobj;
18688 }
18689
18690
18691 SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18692 PyObject *resultobj = 0;
18693 wxWindow *arg1 = (wxWindow *) 0 ;
18694 int arg2 = (int) -1 ;
18695 wxString const &arg3_defvalue = wxPyEmptyString ;
18696 wxString *arg3 = (wxString *) &arg3_defvalue ;
18697 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18698 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18699 wxSize const &arg5_defvalue = wxDefaultSize ;
18700 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18701 long arg6 = (long) 0 ;
18702 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18703 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18704 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18705 wxString *arg8 = (wxString *) &arg8_defvalue ;
18706 wxToggleButton *result = 0 ;
18707 void *argp1 = 0 ;
18708 int res1 = 0 ;
18709 int val2 ;
18710 int ecode2 = 0 ;
18711 bool temp3 = false ;
18712 wxPoint temp4 ;
18713 wxSize temp5 ;
18714 long val6 ;
18715 int ecode6 = 0 ;
18716 void *argp7 = 0 ;
18717 int res7 = 0 ;
18718 bool temp8 = false ;
18719 PyObject * obj0 = 0 ;
18720 PyObject * obj1 = 0 ;
18721 PyObject * obj2 = 0 ;
18722 PyObject * obj3 = 0 ;
18723 PyObject * obj4 = 0 ;
18724 PyObject * obj5 = 0 ;
18725 PyObject * obj6 = 0 ;
18726 PyObject * obj7 = 0 ;
18727 char * kwnames[] = {
18728 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18729 };
18730
18731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18733 if (!SWIG_IsOK(res1)) {
18734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18735 }
18736 arg1 = reinterpret_cast< wxWindow * >(argp1);
18737 if (obj1) {
18738 ecode2 = SWIG_AsVal_int(obj1, &val2);
18739 if (!SWIG_IsOK(ecode2)) {
18740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18741 }
18742 arg2 = static_cast< int >(val2);
18743 }
18744 if (obj2) {
18745 {
18746 arg3 = wxString_in_helper(obj2);
18747 if (arg3 == NULL) SWIG_fail;
18748 temp3 = true;
18749 }
18750 }
18751 if (obj3) {
18752 {
18753 arg4 = &temp4;
18754 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18755 }
18756 }
18757 if (obj4) {
18758 {
18759 arg5 = &temp5;
18760 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18761 }
18762 }
18763 if (obj5) {
18764 ecode6 = SWIG_AsVal_long(obj5, &val6);
18765 if (!SWIG_IsOK(ecode6)) {
18766 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18767 }
18768 arg6 = static_cast< long >(val6);
18769 }
18770 if (obj6) {
18771 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18772 if (!SWIG_IsOK(res7)) {
18773 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18774 }
18775 if (!argp7) {
18776 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18777 }
18778 arg7 = reinterpret_cast< wxValidator * >(argp7);
18779 }
18780 if (obj7) {
18781 {
18782 arg8 = wxString_in_helper(obj7);
18783 if (arg8 == NULL) SWIG_fail;
18784 temp8 = true;
18785 }
18786 }
18787 {
18788 if (!wxPyCheckForApp()) SWIG_fail;
18789 PyThreadState* __tstate = wxPyBeginAllowThreads();
18790 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18791 wxPyEndAllowThreads(__tstate);
18792 if (PyErr_Occurred()) SWIG_fail;
18793 }
18794 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18795 {
18796 if (temp3)
18797 delete arg3;
18798 }
18799 {
18800 if (temp8)
18801 delete arg8;
18802 }
18803 return resultobj;
18804 fail:
18805 {
18806 if (temp3)
18807 delete arg3;
18808 }
18809 {
18810 if (temp8)
18811 delete arg8;
18812 }
18813 return NULL;
18814 }
18815
18816
18817 SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18818 PyObject *resultobj = 0;
18819 wxToggleButton *result = 0 ;
18820
18821 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18822 {
18823 if (!wxPyCheckForApp()) SWIG_fail;
18824 PyThreadState* __tstate = wxPyBeginAllowThreads();
18825 result = (wxToggleButton *)new wxToggleButton();
18826 wxPyEndAllowThreads(__tstate);
18827 if (PyErr_Occurred()) SWIG_fail;
18828 }
18829 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18830 return resultobj;
18831 fail:
18832 return NULL;
18833 }
18834
18835
18836 SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18837 PyObject *resultobj = 0;
18838 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18839 wxWindow *arg2 = (wxWindow *) 0 ;
18840 int arg3 = (int) -1 ;
18841 wxString const &arg4_defvalue = wxPyEmptyString ;
18842 wxString *arg4 = (wxString *) &arg4_defvalue ;
18843 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18844 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18845 wxSize const &arg6_defvalue = wxDefaultSize ;
18846 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18847 long arg7 = (long) 0 ;
18848 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18849 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18850 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18851 wxString *arg9 = (wxString *) &arg9_defvalue ;
18852 bool result;
18853 void *argp1 = 0 ;
18854 int res1 = 0 ;
18855 void *argp2 = 0 ;
18856 int res2 = 0 ;
18857 int val3 ;
18858 int ecode3 = 0 ;
18859 bool temp4 = false ;
18860 wxPoint temp5 ;
18861 wxSize temp6 ;
18862 long val7 ;
18863 int ecode7 = 0 ;
18864 void *argp8 = 0 ;
18865 int res8 = 0 ;
18866 bool temp9 = false ;
18867 PyObject * obj0 = 0 ;
18868 PyObject * obj1 = 0 ;
18869 PyObject * obj2 = 0 ;
18870 PyObject * obj3 = 0 ;
18871 PyObject * obj4 = 0 ;
18872 PyObject * obj5 = 0 ;
18873 PyObject * obj6 = 0 ;
18874 PyObject * obj7 = 0 ;
18875 PyObject * obj8 = 0 ;
18876 char * kwnames[] = {
18877 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18878 };
18879
18880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18882 if (!SWIG_IsOK(res1)) {
18883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18884 }
18885 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18886 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18887 if (!SWIG_IsOK(res2)) {
18888 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18889 }
18890 arg2 = reinterpret_cast< wxWindow * >(argp2);
18891 if (obj2) {
18892 ecode3 = SWIG_AsVal_int(obj2, &val3);
18893 if (!SWIG_IsOK(ecode3)) {
18894 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18895 }
18896 arg3 = static_cast< int >(val3);
18897 }
18898 if (obj3) {
18899 {
18900 arg4 = wxString_in_helper(obj3);
18901 if (arg4 == NULL) SWIG_fail;
18902 temp4 = true;
18903 }
18904 }
18905 if (obj4) {
18906 {
18907 arg5 = &temp5;
18908 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18909 }
18910 }
18911 if (obj5) {
18912 {
18913 arg6 = &temp6;
18914 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
18915 }
18916 }
18917 if (obj6) {
18918 ecode7 = SWIG_AsVal_long(obj6, &val7);
18919 if (!SWIG_IsOK(ecode7)) {
18920 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18921 }
18922 arg7 = static_cast< long >(val7);
18923 }
18924 if (obj7) {
18925 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18926 if (!SWIG_IsOK(res8)) {
18927 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18928 }
18929 if (!argp8) {
18930 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18931 }
18932 arg8 = reinterpret_cast< wxValidator * >(argp8);
18933 }
18934 if (obj8) {
18935 {
18936 arg9 = wxString_in_helper(obj8);
18937 if (arg9 == NULL) SWIG_fail;
18938 temp9 = true;
18939 }
18940 }
18941 {
18942 PyThreadState* __tstate = wxPyBeginAllowThreads();
18943 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18944 wxPyEndAllowThreads(__tstate);
18945 if (PyErr_Occurred()) SWIG_fail;
18946 }
18947 {
18948 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18949 }
18950 {
18951 if (temp4)
18952 delete arg4;
18953 }
18954 {
18955 if (temp9)
18956 delete arg9;
18957 }
18958 return resultobj;
18959 fail:
18960 {
18961 if (temp4)
18962 delete arg4;
18963 }
18964 {
18965 if (temp9)
18966 delete arg9;
18967 }
18968 return NULL;
18969 }
18970
18971
18972 SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18973 PyObject *resultobj = 0;
18974 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18975 bool arg2 ;
18976 void *argp1 = 0 ;
18977 int res1 = 0 ;
18978 bool val2 ;
18979 int ecode2 = 0 ;
18980 PyObject * obj0 = 0 ;
18981 PyObject * obj1 = 0 ;
18982 char * kwnames[] = {
18983 (char *) "self",(char *) "value", NULL
18984 };
18985
18986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18988 if (!SWIG_IsOK(res1)) {
18989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18990 }
18991 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18992 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18993 if (!SWIG_IsOK(ecode2)) {
18994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
18995 }
18996 arg2 = static_cast< bool >(val2);
18997 {
18998 PyThreadState* __tstate = wxPyBeginAllowThreads();
18999 (arg1)->SetValue(arg2);
19000 wxPyEndAllowThreads(__tstate);
19001 if (PyErr_Occurred()) SWIG_fail;
19002 }
19003 resultobj = SWIG_Py_Void();
19004 return resultobj;
19005 fail:
19006 return NULL;
19007 }
19008
19009
19010 SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19011 PyObject *resultobj = 0;
19012 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19013 bool result;
19014 void *argp1 = 0 ;
19015 int res1 = 0 ;
19016 PyObject *swig_obj[1] ;
19017
19018 if (!args) SWIG_fail;
19019 swig_obj[0] = args;
19020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19021 if (!SWIG_IsOK(res1)) {
19022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
19023 }
19024 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19025 {
19026 PyThreadState* __tstate = wxPyBeginAllowThreads();
19027 result = (bool)((wxToggleButton const *)arg1)->GetValue();
19028 wxPyEndAllowThreads(__tstate);
19029 if (PyErr_Occurred()) SWIG_fail;
19030 }
19031 {
19032 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19033 }
19034 return resultobj;
19035 fail:
19036 return NULL;
19037 }
19038
19039
19040 SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19041 PyObject *resultobj = 0;
19042 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19043 SwigValueWrapper<wxVisualAttributes > result;
19044 int val1 ;
19045 int ecode1 = 0 ;
19046 PyObject * obj0 = 0 ;
19047 char * kwnames[] = {
19048 (char *) "variant", NULL
19049 };
19050
19051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19052 if (obj0) {
19053 ecode1 = SWIG_AsVal_int(obj0, &val1);
19054 if (!SWIG_IsOK(ecode1)) {
19055 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19056 }
19057 arg1 = static_cast< wxWindowVariant >(val1);
19058 }
19059 {
19060 if (!wxPyCheckForApp()) SWIG_fail;
19061 PyThreadState* __tstate = wxPyBeginAllowThreads();
19062 result = wxToggleButton::GetClassDefaultAttributes(arg1);
19063 wxPyEndAllowThreads(__tstate);
19064 if (PyErr_Occurred()) SWIG_fail;
19065 }
19066 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19067 return resultobj;
19068 fail:
19069 return NULL;
19070 }
19071
19072
19073 SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19074 PyObject *obj;
19075 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19076 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
19077 return SWIG_Py_Void();
19078 }
19079
19080 SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19081 return SWIG_Python_InitShadowInstance(args);
19082 }
19083
19084 SWIGINTERN int NotebookNameStr_set(PyObject *) {
19085 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
19086 return 1;
19087 }
19088
19089
19090 SWIGINTERN PyObject *NotebookNameStr_get(void) {
19091 PyObject *pyobj = 0;
19092
19093 {
19094 #if wxUSE_UNICODE
19095 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19096 #else
19097 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
19098 #endif
19099 }
19100 return pyobj;
19101 }
19102
19103
19104 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19105 PyObject *resultobj = 0;
19106 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19107 size_t result;
19108 void *argp1 = 0 ;
19109 int res1 = 0 ;
19110 PyObject *swig_obj[1] ;
19111
19112 if (!args) SWIG_fail;
19113 swig_obj[0] = args;
19114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19115 if (!SWIG_IsOK(res1)) {
19116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19117 }
19118 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19119 {
19120 PyThreadState* __tstate = wxPyBeginAllowThreads();
19121 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
19122 wxPyEndAllowThreads(__tstate);
19123 if (PyErr_Occurred()) SWIG_fail;
19124 }
19125 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19126 return resultobj;
19127 fail:
19128 return NULL;
19129 }
19130
19131
19132 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19133 PyObject *resultobj = 0;
19134 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19135 size_t arg2 ;
19136 wxWindow *result = 0 ;
19137 void *argp1 = 0 ;
19138 int res1 = 0 ;
19139 size_t val2 ;
19140 int ecode2 = 0 ;
19141 PyObject * obj0 = 0 ;
19142 PyObject * obj1 = 0 ;
19143 char * kwnames[] = {
19144 (char *) "self",(char *) "n", NULL
19145 };
19146
19147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19149 if (!SWIG_IsOK(res1)) {
19150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19151 }
19152 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19153 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19154 if (!SWIG_IsOK(ecode2)) {
19155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19156 }
19157 arg2 = static_cast< size_t >(val2);
19158 {
19159 PyThreadState* __tstate = wxPyBeginAllowThreads();
19160 result = (wxWindow *)(arg1)->GetPage(arg2);
19161 wxPyEndAllowThreads(__tstate);
19162 if (PyErr_Occurred()) SWIG_fail;
19163 }
19164 {
19165 resultobj = wxPyMake_wxObject(result, 0);
19166 }
19167 return resultobj;
19168 fail:
19169 return NULL;
19170 }
19171
19172
19173 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19174 PyObject *resultobj = 0;
19175 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19176 wxWindow *result = 0 ;
19177 void *argp1 = 0 ;
19178 int res1 = 0 ;
19179 PyObject *swig_obj[1] ;
19180
19181 if (!args) SWIG_fail;
19182 swig_obj[0] = args;
19183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19184 if (!SWIG_IsOK(res1)) {
19185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19186 }
19187 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19188 {
19189 PyThreadState* __tstate = wxPyBeginAllowThreads();
19190 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19191 wxPyEndAllowThreads(__tstate);
19192 if (PyErr_Occurred()) SWIG_fail;
19193 }
19194 {
19195 resultobj = wxPyMake_wxObject(result, 0);
19196 }
19197 return resultobj;
19198 fail:
19199 return NULL;
19200 }
19201
19202
19203 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19204 PyObject *resultobj = 0;
19205 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19206 int result;
19207 void *argp1 = 0 ;
19208 int res1 = 0 ;
19209 PyObject *swig_obj[1] ;
19210
19211 if (!args) SWIG_fail;
19212 swig_obj[0] = args;
19213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19214 if (!SWIG_IsOK(res1)) {
19215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19216 }
19217 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19218 {
19219 PyThreadState* __tstate = wxPyBeginAllowThreads();
19220 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19221 wxPyEndAllowThreads(__tstate);
19222 if (PyErr_Occurred()) SWIG_fail;
19223 }
19224 resultobj = SWIG_From_int(static_cast< int >(result));
19225 return resultobj;
19226 fail:
19227 return NULL;
19228 }
19229
19230
19231 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19232 PyObject *resultobj = 0;
19233 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19234 size_t arg2 ;
19235 wxString *arg3 = 0 ;
19236 bool result;
19237 void *argp1 = 0 ;
19238 int res1 = 0 ;
19239 size_t val2 ;
19240 int ecode2 = 0 ;
19241 bool temp3 = false ;
19242 PyObject * obj0 = 0 ;
19243 PyObject * obj1 = 0 ;
19244 PyObject * obj2 = 0 ;
19245 char * kwnames[] = {
19246 (char *) "self",(char *) "n",(char *) "strText", NULL
19247 };
19248
19249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19251 if (!SWIG_IsOK(res1)) {
19252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19253 }
19254 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19255 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19256 if (!SWIG_IsOK(ecode2)) {
19257 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19258 }
19259 arg2 = static_cast< size_t >(val2);
19260 {
19261 arg3 = wxString_in_helper(obj2);
19262 if (arg3 == NULL) SWIG_fail;
19263 temp3 = true;
19264 }
19265 {
19266 PyThreadState* __tstate = wxPyBeginAllowThreads();
19267 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19268 wxPyEndAllowThreads(__tstate);
19269 if (PyErr_Occurred()) SWIG_fail;
19270 }
19271 {
19272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19273 }
19274 {
19275 if (temp3)
19276 delete arg3;
19277 }
19278 return resultobj;
19279 fail:
19280 {
19281 if (temp3)
19282 delete arg3;
19283 }
19284 return NULL;
19285 }
19286
19287
19288 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19289 PyObject *resultobj = 0;
19290 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19291 size_t arg2 ;
19292 wxString result;
19293 void *argp1 = 0 ;
19294 int res1 = 0 ;
19295 size_t val2 ;
19296 int ecode2 = 0 ;
19297 PyObject * obj0 = 0 ;
19298 PyObject * obj1 = 0 ;
19299 char * kwnames[] = {
19300 (char *) "self",(char *) "n", NULL
19301 };
19302
19303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19305 if (!SWIG_IsOK(res1)) {
19306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19307 }
19308 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19309 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19310 if (!SWIG_IsOK(ecode2)) {
19311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19312 }
19313 arg2 = static_cast< size_t >(val2);
19314 {
19315 PyThreadState* __tstate = wxPyBeginAllowThreads();
19316 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19317 wxPyEndAllowThreads(__tstate);
19318 if (PyErr_Occurred()) SWIG_fail;
19319 }
19320 {
19321 #if wxUSE_UNICODE
19322 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19323 #else
19324 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19325 #endif
19326 }
19327 return resultobj;
19328 fail:
19329 return NULL;
19330 }
19331
19332
19333 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19334 PyObject *resultobj = 0;
19335 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19336 wxImageList *arg2 = (wxImageList *) 0 ;
19337 void *argp1 = 0 ;
19338 int res1 = 0 ;
19339 void *argp2 = 0 ;
19340 int res2 = 0 ;
19341 PyObject * obj0 = 0 ;
19342 PyObject * obj1 = 0 ;
19343 char * kwnames[] = {
19344 (char *) "self",(char *) "imageList", NULL
19345 };
19346
19347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19349 if (!SWIG_IsOK(res1)) {
19350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19351 }
19352 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19353 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19354 if (!SWIG_IsOK(res2)) {
19355 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19356 }
19357 arg2 = reinterpret_cast< wxImageList * >(argp2);
19358 {
19359 PyThreadState* __tstate = wxPyBeginAllowThreads();
19360 (arg1)->SetImageList(arg2);
19361 wxPyEndAllowThreads(__tstate);
19362 if (PyErr_Occurred()) SWIG_fail;
19363 }
19364 resultobj = SWIG_Py_Void();
19365 return resultobj;
19366 fail:
19367 return NULL;
19368 }
19369
19370
19371 SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19372 PyObject *resultobj = 0;
19373 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19374 wxImageList *arg2 = (wxImageList *) 0 ;
19375 void *argp1 = 0 ;
19376 int res1 = 0 ;
19377 int res2 = 0 ;
19378 PyObject * obj0 = 0 ;
19379 PyObject * obj1 = 0 ;
19380 char * kwnames[] = {
19381 (char *) "self",(char *) "imageList", NULL
19382 };
19383
19384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19386 if (!SWIG_IsOK(res1)) {
19387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19388 }
19389 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19390 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19391 if (!SWIG_IsOK(res2)) {
19392 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19393 }
19394 {
19395 PyThreadState* __tstate = wxPyBeginAllowThreads();
19396 (arg1)->AssignImageList(arg2);
19397 wxPyEndAllowThreads(__tstate);
19398 if (PyErr_Occurred()) SWIG_fail;
19399 }
19400 resultobj = SWIG_Py_Void();
19401 return resultobj;
19402 fail:
19403 return NULL;
19404 }
19405
19406
19407 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19408 PyObject *resultobj = 0;
19409 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19410 wxImageList *result = 0 ;
19411 void *argp1 = 0 ;
19412 int res1 = 0 ;
19413 PyObject *swig_obj[1] ;
19414
19415 if (!args) SWIG_fail;
19416 swig_obj[0] = args;
19417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19418 if (!SWIG_IsOK(res1)) {
19419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19420 }
19421 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19422 {
19423 PyThreadState* __tstate = wxPyBeginAllowThreads();
19424 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19425 wxPyEndAllowThreads(__tstate);
19426 if (PyErr_Occurred()) SWIG_fail;
19427 }
19428 {
19429 resultobj = wxPyMake_wxObject(result, (bool)0);
19430 }
19431 return resultobj;
19432 fail:
19433 return NULL;
19434 }
19435
19436
19437 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19438 PyObject *resultobj = 0;
19439 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19440 size_t arg2 ;
19441 int result;
19442 void *argp1 = 0 ;
19443 int res1 = 0 ;
19444 size_t val2 ;
19445 int ecode2 = 0 ;
19446 PyObject * obj0 = 0 ;
19447 PyObject * obj1 = 0 ;
19448 char * kwnames[] = {
19449 (char *) "self",(char *) "n", NULL
19450 };
19451
19452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19454 if (!SWIG_IsOK(res1)) {
19455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19456 }
19457 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19458 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19459 if (!SWIG_IsOK(ecode2)) {
19460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19461 }
19462 arg2 = static_cast< size_t >(val2);
19463 {
19464 PyThreadState* __tstate = wxPyBeginAllowThreads();
19465 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19466 wxPyEndAllowThreads(__tstate);
19467 if (PyErr_Occurred()) SWIG_fail;
19468 }
19469 resultobj = SWIG_From_int(static_cast< int >(result));
19470 return resultobj;
19471 fail:
19472 return NULL;
19473 }
19474
19475
19476 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19477 PyObject *resultobj = 0;
19478 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19479 size_t arg2 ;
19480 int arg3 ;
19481 bool result;
19482 void *argp1 = 0 ;
19483 int res1 = 0 ;
19484 size_t val2 ;
19485 int ecode2 = 0 ;
19486 int val3 ;
19487 int ecode3 = 0 ;
19488 PyObject * obj0 = 0 ;
19489 PyObject * obj1 = 0 ;
19490 PyObject * obj2 = 0 ;
19491 char * kwnames[] = {
19492 (char *) "self",(char *) "n",(char *) "imageId", NULL
19493 };
19494
19495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19497 if (!SWIG_IsOK(res1)) {
19498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19499 }
19500 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19501 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19502 if (!SWIG_IsOK(ecode2)) {
19503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19504 }
19505 arg2 = static_cast< size_t >(val2);
19506 ecode3 = SWIG_AsVal_int(obj2, &val3);
19507 if (!SWIG_IsOK(ecode3)) {
19508 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19509 }
19510 arg3 = static_cast< int >(val3);
19511 {
19512 PyThreadState* __tstate = wxPyBeginAllowThreads();
19513 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19514 wxPyEndAllowThreads(__tstate);
19515 if (PyErr_Occurred()) SWIG_fail;
19516 }
19517 {
19518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19519 }
19520 return resultobj;
19521 fail:
19522 return NULL;
19523 }
19524
19525
19526 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19527 PyObject *resultobj = 0;
19528 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19529 wxSize *arg2 = 0 ;
19530 void *argp1 = 0 ;
19531 int res1 = 0 ;
19532 wxSize temp2 ;
19533 PyObject * obj0 = 0 ;
19534 PyObject * obj1 = 0 ;
19535 char * kwnames[] = {
19536 (char *) "self",(char *) "size", NULL
19537 };
19538
19539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19541 if (!SWIG_IsOK(res1)) {
19542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19543 }
19544 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19545 {
19546 arg2 = &temp2;
19547 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19548 }
19549 {
19550 PyThreadState* __tstate = wxPyBeginAllowThreads();
19551 (arg1)->SetPageSize((wxSize const &)*arg2);
19552 wxPyEndAllowThreads(__tstate);
19553 if (PyErr_Occurred()) SWIG_fail;
19554 }
19555 resultobj = SWIG_Py_Void();
19556 return resultobj;
19557 fail:
19558 return NULL;
19559 }
19560
19561
19562 SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19563 PyObject *resultobj = 0;
19564 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19565 wxSize *arg2 = 0 ;
19566 wxSize result;
19567 void *argp1 = 0 ;
19568 int res1 = 0 ;
19569 wxSize temp2 ;
19570 PyObject * obj0 = 0 ;
19571 PyObject * obj1 = 0 ;
19572 char * kwnames[] = {
19573 (char *) "self",(char *) "sizePage", NULL
19574 };
19575
19576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19578 if (!SWIG_IsOK(res1)) {
19579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19580 }
19581 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19582 {
19583 arg2 = &temp2;
19584 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19585 }
19586 {
19587 PyThreadState* __tstate = wxPyBeginAllowThreads();
19588 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19589 wxPyEndAllowThreads(__tstate);
19590 if (PyErr_Occurred()) SWIG_fail;
19591 }
19592 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19593 return resultobj;
19594 fail:
19595 return NULL;
19596 }
19597
19598
19599 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19600 PyObject *resultobj = 0;
19601 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19602 unsigned int result;
19603 void *argp1 = 0 ;
19604 int res1 = 0 ;
19605 PyObject *swig_obj[1] ;
19606
19607 if (!args) SWIG_fail;
19608 swig_obj[0] = args;
19609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19610 if (!SWIG_IsOK(res1)) {
19611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19612 }
19613 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19614 {
19615 PyThreadState* __tstate = wxPyBeginAllowThreads();
19616 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
19617 wxPyEndAllowThreads(__tstate);
19618 if (PyErr_Occurred()) SWIG_fail;
19619 }
19620 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19621 return resultobj;
19622 fail:
19623 return NULL;
19624 }
19625
19626
19627 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19628 PyObject *resultobj = 0;
19629 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19630 unsigned int arg2 ;
19631 void *argp1 = 0 ;
19632 int res1 = 0 ;
19633 unsigned int val2 ;
19634 int ecode2 = 0 ;
19635 PyObject * obj0 = 0 ;
19636 PyObject * obj1 = 0 ;
19637 char * kwnames[] = {
19638 (char *) "self",(char *) "internalBorder", NULL
19639 };
19640
19641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19643 if (!SWIG_IsOK(res1)) {
19644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19645 }
19646 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19647 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
19648 if (!SWIG_IsOK(ecode2)) {
19649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
19650 }
19651 arg2 = static_cast< unsigned int >(val2);
19652 {
19653 PyThreadState* __tstate = wxPyBeginAllowThreads();
19654 (arg1)->SetInternalBorder(arg2);
19655 wxPyEndAllowThreads(__tstate);
19656 if (PyErr_Occurred()) SWIG_fail;
19657 }
19658 resultobj = SWIG_Py_Void();
19659 return resultobj;
19660 fail:
19661 return NULL;
19662 }
19663
19664
19665 SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19666 PyObject *resultobj = 0;
19667 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19668 bool result;
19669 void *argp1 = 0 ;
19670 int res1 = 0 ;
19671 PyObject *swig_obj[1] ;
19672
19673 if (!args) SWIG_fail;
19674 swig_obj[0] = args;
19675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19676 if (!SWIG_IsOK(res1)) {
19677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19678 }
19679 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19680 {
19681 PyThreadState* __tstate = wxPyBeginAllowThreads();
19682 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19683 wxPyEndAllowThreads(__tstate);
19684 if (PyErr_Occurred()) SWIG_fail;
19685 }
19686 {
19687 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19688 }
19689 return resultobj;
19690 fail:
19691 return NULL;
19692 }
19693
19694
19695 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19696 PyObject *resultobj = 0;
19697 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19698 int arg2 ;
19699 void *argp1 = 0 ;
19700 int res1 = 0 ;
19701 int val2 ;
19702 int ecode2 = 0 ;
19703 PyObject * obj0 = 0 ;
19704 PyObject * obj1 = 0 ;
19705 char * kwnames[] = {
19706 (char *) "self",(char *) "margin", NULL
19707 };
19708
19709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19711 if (!SWIG_IsOK(res1)) {
19712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19713 }
19714 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19715 ecode2 = SWIG_AsVal_int(obj1, &val2);
19716 if (!SWIG_IsOK(ecode2)) {
19717 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19718 }
19719 arg2 = static_cast< int >(val2);
19720 {
19721 PyThreadState* __tstate = wxPyBeginAllowThreads();
19722 (arg1)->SetControlMargin(arg2);
19723 wxPyEndAllowThreads(__tstate);
19724 if (PyErr_Occurred()) SWIG_fail;
19725 }
19726 resultobj = SWIG_Py_Void();
19727 return resultobj;
19728 fail:
19729 return NULL;
19730 }
19731
19732
19733 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19734 PyObject *resultobj = 0;
19735 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19736 int result;
19737 void *argp1 = 0 ;
19738 int res1 = 0 ;
19739 PyObject *swig_obj[1] ;
19740
19741 if (!args) SWIG_fail;
19742 swig_obj[0] = args;
19743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19744 if (!SWIG_IsOK(res1)) {
19745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19746 }
19747 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19748 {
19749 PyThreadState* __tstate = wxPyBeginAllowThreads();
19750 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19751 wxPyEndAllowThreads(__tstate);
19752 if (PyErr_Occurred()) SWIG_fail;
19753 }
19754 resultobj = SWIG_From_int(static_cast< int >(result));
19755 return resultobj;
19756 fail:
19757 return NULL;
19758 }
19759
19760
19761 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19762 PyObject *resultobj = 0;
19763 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19764 bool arg2 ;
19765 void *argp1 = 0 ;
19766 int res1 = 0 ;
19767 bool val2 ;
19768 int ecode2 = 0 ;
19769 PyObject * obj0 = 0 ;
19770 PyObject * obj1 = 0 ;
19771 char * kwnames[] = {
19772 (char *) "self",(char *) "fit", NULL
19773 };
19774
19775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19777 if (!SWIG_IsOK(res1)) {
19778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19779 }
19780 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19781 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19782 if (!SWIG_IsOK(ecode2)) {
19783 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19784 }
19785 arg2 = static_cast< bool >(val2);
19786 {
19787 PyThreadState* __tstate = wxPyBeginAllowThreads();
19788 (arg1)->SetFitToCurrentPage(arg2);
19789 wxPyEndAllowThreads(__tstate);
19790 if (PyErr_Occurred()) SWIG_fail;
19791 }
19792 resultobj = SWIG_Py_Void();
19793 return resultobj;
19794 fail:
19795 return NULL;
19796 }
19797
19798
19799 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19800 PyObject *resultobj = 0;
19801 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19802 bool result;
19803 void *argp1 = 0 ;
19804 int res1 = 0 ;
19805 PyObject *swig_obj[1] ;
19806
19807 if (!args) SWIG_fail;
19808 swig_obj[0] = args;
19809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19810 if (!SWIG_IsOK(res1)) {
19811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19812 }
19813 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19814 {
19815 PyThreadState* __tstate = wxPyBeginAllowThreads();
19816 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19817 wxPyEndAllowThreads(__tstate);
19818 if (PyErr_Occurred()) SWIG_fail;
19819 }
19820 {
19821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19822 }
19823 return resultobj;
19824 fail:
19825 return NULL;
19826 }
19827
19828
19829 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19830 PyObject *resultobj = 0;
19831 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19832 wxSizer *result = 0 ;
19833 void *argp1 = 0 ;
19834 int res1 = 0 ;
19835 PyObject *swig_obj[1] ;
19836
19837 if (!args) SWIG_fail;
19838 swig_obj[0] = args;
19839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19840 if (!SWIG_IsOK(res1)) {
19841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19842 }
19843 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19844 {
19845 PyThreadState* __tstate = wxPyBeginAllowThreads();
19846 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19847 wxPyEndAllowThreads(__tstate);
19848 if (PyErr_Occurred()) SWIG_fail;
19849 }
19850 {
19851 resultobj = wxPyMake_wxObject(result, (bool)0);
19852 }
19853 return resultobj;
19854 fail:
19855 return NULL;
19856 }
19857
19858
19859 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19860 PyObject *resultobj = 0;
19861 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19862 size_t arg2 ;
19863 bool result;
19864 void *argp1 = 0 ;
19865 int res1 = 0 ;
19866 size_t val2 ;
19867 int ecode2 = 0 ;
19868 PyObject * obj0 = 0 ;
19869 PyObject * obj1 = 0 ;
19870 char * kwnames[] = {
19871 (char *) "self",(char *) "n", NULL
19872 };
19873
19874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19876 if (!SWIG_IsOK(res1)) {
19877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19878 }
19879 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19880 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19881 if (!SWIG_IsOK(ecode2)) {
19882 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19883 }
19884 arg2 = static_cast< size_t >(val2);
19885 {
19886 PyThreadState* __tstate = wxPyBeginAllowThreads();
19887 result = (bool)(arg1)->DeletePage(arg2);
19888 wxPyEndAllowThreads(__tstate);
19889 if (PyErr_Occurred()) SWIG_fail;
19890 }
19891 {
19892 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19893 }
19894 return resultobj;
19895 fail:
19896 return NULL;
19897 }
19898
19899
19900 SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19901 PyObject *resultobj = 0;
19902 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19903 size_t arg2 ;
19904 bool result;
19905 void *argp1 = 0 ;
19906 int res1 = 0 ;
19907 size_t val2 ;
19908 int ecode2 = 0 ;
19909 PyObject * obj0 = 0 ;
19910 PyObject * obj1 = 0 ;
19911 char * kwnames[] = {
19912 (char *) "self",(char *) "n", NULL
19913 };
19914
19915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19917 if (!SWIG_IsOK(res1)) {
19918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19919 }
19920 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19921 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19922 if (!SWIG_IsOK(ecode2)) {
19923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19924 }
19925 arg2 = static_cast< size_t >(val2);
19926 {
19927 PyThreadState* __tstate = wxPyBeginAllowThreads();
19928 result = (bool)(arg1)->RemovePage(arg2);
19929 wxPyEndAllowThreads(__tstate);
19930 if (PyErr_Occurred()) SWIG_fail;
19931 }
19932 {
19933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19934 }
19935 return resultobj;
19936 fail:
19937 return NULL;
19938 }
19939
19940
19941 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19942 PyObject *resultobj = 0;
19943 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19944 bool result;
19945 void *argp1 = 0 ;
19946 int res1 = 0 ;
19947 PyObject *swig_obj[1] ;
19948
19949 if (!args) SWIG_fail;
19950 swig_obj[0] = args;
19951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19952 if (!SWIG_IsOK(res1)) {
19953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19954 }
19955 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19956 {
19957 PyThreadState* __tstate = wxPyBeginAllowThreads();
19958 result = (bool)(arg1)->DeleteAllPages();
19959 wxPyEndAllowThreads(__tstate);
19960 if (PyErr_Occurred()) SWIG_fail;
19961 }
19962 {
19963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19964 }
19965 return resultobj;
19966 fail:
19967 return NULL;
19968 }
19969
19970
19971 SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19972 PyObject *resultobj = 0;
19973 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19974 wxWindow *arg2 = (wxWindow *) 0 ;
19975 wxString *arg3 = 0 ;
19976 bool arg4 = (bool) false ;
19977 int arg5 = (int) -1 ;
19978 bool result;
19979 void *argp1 = 0 ;
19980 int res1 = 0 ;
19981 void *argp2 = 0 ;
19982 int res2 = 0 ;
19983 bool temp3 = false ;
19984 bool val4 ;
19985 int ecode4 = 0 ;
19986 int val5 ;
19987 int ecode5 = 0 ;
19988 PyObject * obj0 = 0 ;
19989 PyObject * obj1 = 0 ;
19990 PyObject * obj2 = 0 ;
19991 PyObject * obj3 = 0 ;
19992 PyObject * obj4 = 0 ;
19993 char * kwnames[] = {
19994 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19995 };
19996
19997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19999 if (!SWIG_IsOK(res1)) {
20000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20001 }
20002 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20003 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20004 if (!SWIG_IsOK(res2)) {
20005 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
20006 }
20007 arg2 = reinterpret_cast< wxWindow * >(argp2);
20008 {
20009 arg3 = wxString_in_helper(obj2);
20010 if (arg3 == NULL) SWIG_fail;
20011 temp3 = true;
20012 }
20013 if (obj3) {
20014 ecode4 = SWIG_AsVal_bool(obj3, &val4);
20015 if (!SWIG_IsOK(ecode4)) {
20016 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
20017 }
20018 arg4 = static_cast< bool >(val4);
20019 }
20020 if (obj4) {
20021 ecode5 = SWIG_AsVal_int(obj4, &val5);
20022 if (!SWIG_IsOK(ecode5)) {
20023 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
20024 }
20025 arg5 = static_cast< int >(val5);
20026 }
20027 {
20028 PyThreadState* __tstate = wxPyBeginAllowThreads();
20029 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
20030 wxPyEndAllowThreads(__tstate);
20031 if (PyErr_Occurred()) SWIG_fail;
20032 }
20033 {
20034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20035 }
20036 {
20037 if (temp3)
20038 delete arg3;
20039 }
20040 return resultobj;
20041 fail:
20042 {
20043 if (temp3)
20044 delete arg3;
20045 }
20046 return NULL;
20047 }
20048
20049
20050 SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20051 PyObject *resultobj = 0;
20052 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20053 size_t arg2 ;
20054 wxWindow *arg3 = (wxWindow *) 0 ;
20055 wxString *arg4 = 0 ;
20056 bool arg5 = (bool) false ;
20057 int arg6 = (int) -1 ;
20058 bool result;
20059 void *argp1 = 0 ;
20060 int res1 = 0 ;
20061 size_t val2 ;
20062 int ecode2 = 0 ;
20063 void *argp3 = 0 ;
20064 int res3 = 0 ;
20065 bool temp4 = false ;
20066 bool val5 ;
20067 int ecode5 = 0 ;
20068 int val6 ;
20069 int ecode6 = 0 ;
20070 PyObject * obj0 = 0 ;
20071 PyObject * obj1 = 0 ;
20072 PyObject * obj2 = 0 ;
20073 PyObject * obj3 = 0 ;
20074 PyObject * obj4 = 0 ;
20075 PyObject * obj5 = 0 ;
20076 char * kwnames[] = {
20077 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20078 };
20079
20080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20082 if (!SWIG_IsOK(res1)) {
20083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20084 }
20085 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20086 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20087 if (!SWIG_IsOK(ecode2)) {
20088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
20089 }
20090 arg2 = static_cast< size_t >(val2);
20091 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
20092 if (!SWIG_IsOK(res3)) {
20093 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
20094 }
20095 arg3 = reinterpret_cast< wxWindow * >(argp3);
20096 {
20097 arg4 = wxString_in_helper(obj3);
20098 if (arg4 == NULL) SWIG_fail;
20099 temp4 = true;
20100 }
20101 if (obj4) {
20102 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20103 if (!SWIG_IsOK(ecode5)) {
20104 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
20105 }
20106 arg5 = static_cast< bool >(val5);
20107 }
20108 if (obj5) {
20109 ecode6 = SWIG_AsVal_int(obj5, &val6);
20110 if (!SWIG_IsOK(ecode6)) {
20111 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
20112 }
20113 arg6 = static_cast< int >(val6);
20114 }
20115 {
20116 PyThreadState* __tstate = wxPyBeginAllowThreads();
20117 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
20118 wxPyEndAllowThreads(__tstate);
20119 if (PyErr_Occurred()) SWIG_fail;
20120 }
20121 {
20122 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20123 }
20124 {
20125 if (temp4)
20126 delete arg4;
20127 }
20128 return resultobj;
20129 fail:
20130 {
20131 if (temp4)
20132 delete arg4;
20133 }
20134 return NULL;
20135 }
20136
20137
20138 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20139 PyObject *resultobj = 0;
20140 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20141 size_t arg2 ;
20142 int result;
20143 void *argp1 = 0 ;
20144 int res1 = 0 ;
20145 size_t val2 ;
20146 int ecode2 = 0 ;
20147 PyObject * obj0 = 0 ;
20148 PyObject * obj1 = 0 ;
20149 char * kwnames[] = {
20150 (char *) "self",(char *) "n", NULL
20151 };
20152
20153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20155 if (!SWIG_IsOK(res1)) {
20156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20157 }
20158 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20159 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20160 if (!SWIG_IsOK(ecode2)) {
20161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20162 }
20163 arg2 = static_cast< size_t >(val2);
20164 {
20165 PyThreadState* __tstate = wxPyBeginAllowThreads();
20166 result = (int)(arg1)->SetSelection(arg2);
20167 wxPyEndAllowThreads(__tstate);
20168 if (PyErr_Occurred()) SWIG_fail;
20169 }
20170 resultobj = SWIG_From_int(static_cast< int >(result));
20171 return resultobj;
20172 fail:
20173 return NULL;
20174 }
20175
20176
20177 SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20178 PyObject *resultobj = 0;
20179 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20180 bool arg2 = (bool) true ;
20181 void *argp1 = 0 ;
20182 int res1 = 0 ;
20183 bool val2 ;
20184 int ecode2 = 0 ;
20185 PyObject * obj0 = 0 ;
20186 PyObject * obj1 = 0 ;
20187 char * kwnames[] = {
20188 (char *) "self",(char *) "forward", NULL
20189 };
20190
20191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20193 if (!SWIG_IsOK(res1)) {
20194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20195 }
20196 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20197 if (obj1) {
20198 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20199 if (!SWIG_IsOK(ecode2)) {
20200 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20201 }
20202 arg2 = static_cast< bool >(val2);
20203 }
20204 {
20205 PyThreadState* __tstate = wxPyBeginAllowThreads();
20206 (arg1)->AdvanceSelection(arg2);
20207 wxPyEndAllowThreads(__tstate);
20208 if (PyErr_Occurred()) SWIG_fail;
20209 }
20210 resultobj = SWIG_Py_Void();
20211 return resultobj;
20212 fail:
20213 return NULL;
20214 }
20215
20216
20217 SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20218 PyObject *resultobj = 0;
20219 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20220 wxPoint *arg2 = 0 ;
20221 long *arg3 = (long *) 0 ;
20222 int result;
20223 void *argp1 = 0 ;
20224 int res1 = 0 ;
20225 wxPoint temp2 ;
20226 long temp3 ;
20227 int res3 = SWIG_TMPOBJ ;
20228 PyObject * obj0 = 0 ;
20229 PyObject * obj1 = 0 ;
20230 char * kwnames[] = {
20231 (char *) "self",(char *) "pt", NULL
20232 };
20233
20234 arg3 = &temp3;
20235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20237 if (!SWIG_IsOK(res1)) {
20238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20239 }
20240 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20241 {
20242 arg2 = &temp2;
20243 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20244 }
20245 {
20246 PyThreadState* __tstate = wxPyBeginAllowThreads();
20247 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20248 wxPyEndAllowThreads(__tstate);
20249 if (PyErr_Occurred()) SWIG_fail;
20250 }
20251 resultobj = SWIG_From_int(static_cast< int >(result));
20252 if (SWIG_IsTmpObj(res3)) {
20253 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20254 } else {
20255 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20256 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20257 }
20258 return resultobj;
20259 fail:
20260 return NULL;
20261 }
20262
20263
20264 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20265 PyObject *resultobj = 0;
20266 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20267 SwigValueWrapper<wxVisualAttributes > result;
20268 int val1 ;
20269 int ecode1 = 0 ;
20270 PyObject * obj0 = 0 ;
20271 char * kwnames[] = {
20272 (char *) "variant", NULL
20273 };
20274
20275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20276 if (obj0) {
20277 ecode1 = SWIG_AsVal_int(obj0, &val1);
20278 if (!SWIG_IsOK(ecode1)) {
20279 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20280 }
20281 arg1 = static_cast< wxWindowVariant >(val1);
20282 }
20283 {
20284 if (!wxPyCheckForApp()) SWIG_fail;
20285 PyThreadState* __tstate = wxPyBeginAllowThreads();
20286 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20287 wxPyEndAllowThreads(__tstate);
20288 if (PyErr_Occurred()) SWIG_fail;
20289 }
20290 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20291 return resultobj;
20292 fail:
20293 return NULL;
20294 }
20295
20296
20297 SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20298 PyObject *obj;
20299 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20300 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20301 return SWIG_Py_Void();
20302 }
20303
20304 SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20305 PyObject *resultobj = 0;
20306 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20307 int arg2 = (int) 0 ;
20308 int arg3 = (int) -1 ;
20309 int arg4 = (int) -1 ;
20310 wxBookCtrlBaseEvent *result = 0 ;
20311 int val1 ;
20312 int ecode1 = 0 ;
20313 int val2 ;
20314 int ecode2 = 0 ;
20315 int val3 ;
20316 int ecode3 = 0 ;
20317 int val4 ;
20318 int ecode4 = 0 ;
20319 PyObject * obj0 = 0 ;
20320 PyObject * obj1 = 0 ;
20321 PyObject * obj2 = 0 ;
20322 PyObject * obj3 = 0 ;
20323 char * kwnames[] = {
20324 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20325 };
20326
20327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20328 if (obj0) {
20329 ecode1 = SWIG_AsVal_int(obj0, &val1);
20330 if (!SWIG_IsOK(ecode1)) {
20331 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20332 }
20333 arg1 = static_cast< wxEventType >(val1);
20334 }
20335 if (obj1) {
20336 ecode2 = SWIG_AsVal_int(obj1, &val2);
20337 if (!SWIG_IsOK(ecode2)) {
20338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20339 }
20340 arg2 = static_cast< int >(val2);
20341 }
20342 if (obj2) {
20343 ecode3 = SWIG_AsVal_int(obj2, &val3);
20344 if (!SWIG_IsOK(ecode3)) {
20345 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20346 }
20347 arg3 = static_cast< int >(val3);
20348 }
20349 if (obj3) {
20350 ecode4 = SWIG_AsVal_int(obj3, &val4);
20351 if (!SWIG_IsOK(ecode4)) {
20352 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20353 }
20354 arg4 = static_cast< int >(val4);
20355 }
20356 {
20357 PyThreadState* __tstate = wxPyBeginAllowThreads();
20358 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20359 wxPyEndAllowThreads(__tstate);
20360 if (PyErr_Occurred()) SWIG_fail;
20361 }
20362 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20363 return resultobj;
20364 fail:
20365 return NULL;
20366 }
20367
20368
20369 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20370 PyObject *resultobj = 0;
20371 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20372 int result;
20373 void *argp1 = 0 ;
20374 int res1 = 0 ;
20375 PyObject *swig_obj[1] ;
20376
20377 if (!args) SWIG_fail;
20378 swig_obj[0] = args;
20379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20380 if (!SWIG_IsOK(res1)) {
20381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20382 }
20383 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20384 {
20385 PyThreadState* __tstate = wxPyBeginAllowThreads();
20386 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20387 wxPyEndAllowThreads(__tstate);
20388 if (PyErr_Occurred()) SWIG_fail;
20389 }
20390 resultobj = SWIG_From_int(static_cast< int >(result));
20391 return resultobj;
20392 fail:
20393 return NULL;
20394 }
20395
20396
20397 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20398 PyObject *resultobj = 0;
20399 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20400 int arg2 ;
20401 void *argp1 = 0 ;
20402 int res1 = 0 ;
20403 int val2 ;
20404 int ecode2 = 0 ;
20405 PyObject * obj0 = 0 ;
20406 PyObject * obj1 = 0 ;
20407 char * kwnames[] = {
20408 (char *) "self",(char *) "nSel", NULL
20409 };
20410
20411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20413 if (!SWIG_IsOK(res1)) {
20414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20415 }
20416 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20417 ecode2 = SWIG_AsVal_int(obj1, &val2);
20418 if (!SWIG_IsOK(ecode2)) {
20419 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20420 }
20421 arg2 = static_cast< int >(val2);
20422 {
20423 PyThreadState* __tstate = wxPyBeginAllowThreads();
20424 (arg1)->SetSelection(arg2);
20425 wxPyEndAllowThreads(__tstate);
20426 if (PyErr_Occurred()) SWIG_fail;
20427 }
20428 resultobj = SWIG_Py_Void();
20429 return resultobj;
20430 fail:
20431 return NULL;
20432 }
20433
20434
20435 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20436 PyObject *resultobj = 0;
20437 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20438 int result;
20439 void *argp1 = 0 ;
20440 int res1 = 0 ;
20441 PyObject *swig_obj[1] ;
20442
20443 if (!args) SWIG_fail;
20444 swig_obj[0] = args;
20445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20446 if (!SWIG_IsOK(res1)) {
20447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20448 }
20449 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20450 {
20451 PyThreadState* __tstate = wxPyBeginAllowThreads();
20452 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20453 wxPyEndAllowThreads(__tstate);
20454 if (PyErr_Occurred()) SWIG_fail;
20455 }
20456 resultobj = SWIG_From_int(static_cast< int >(result));
20457 return resultobj;
20458 fail:
20459 return NULL;
20460 }
20461
20462
20463 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20464 PyObject *resultobj = 0;
20465 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20466 int arg2 ;
20467 void *argp1 = 0 ;
20468 int res1 = 0 ;
20469 int val2 ;
20470 int ecode2 = 0 ;
20471 PyObject * obj0 = 0 ;
20472 PyObject * obj1 = 0 ;
20473 char * kwnames[] = {
20474 (char *) "self",(char *) "nOldSel", NULL
20475 };
20476
20477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20479 if (!SWIG_IsOK(res1)) {
20480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20481 }
20482 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20483 ecode2 = SWIG_AsVal_int(obj1, &val2);
20484 if (!SWIG_IsOK(ecode2)) {
20485 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20486 }
20487 arg2 = static_cast< int >(val2);
20488 {
20489 PyThreadState* __tstate = wxPyBeginAllowThreads();
20490 (arg1)->SetOldSelection(arg2);
20491 wxPyEndAllowThreads(__tstate);
20492 if (PyErr_Occurred()) SWIG_fail;
20493 }
20494 resultobj = SWIG_Py_Void();
20495 return resultobj;
20496 fail:
20497 return NULL;
20498 }
20499
20500
20501 SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20502 PyObject *obj;
20503 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20504 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20505 return SWIG_Py_Void();
20506 }
20507
20508 SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20509 return SWIG_Python_InitShadowInstance(args);
20510 }
20511
20512 SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20513 PyObject *resultobj = 0;
20514 wxWindow *arg1 = (wxWindow *) 0 ;
20515 int arg2 = (int) -1 ;
20516 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20517 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20518 wxSize const &arg4_defvalue = wxDefaultSize ;
20519 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20520 long arg5 = (long) 0 ;
20521 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20522 wxString *arg6 = (wxString *) &arg6_defvalue ;
20523 wxNotebook *result = 0 ;
20524 void *argp1 = 0 ;
20525 int res1 = 0 ;
20526 int val2 ;
20527 int ecode2 = 0 ;
20528 wxPoint temp3 ;
20529 wxSize temp4 ;
20530 long val5 ;
20531 int ecode5 = 0 ;
20532 bool temp6 = false ;
20533 PyObject * obj0 = 0 ;
20534 PyObject * obj1 = 0 ;
20535 PyObject * obj2 = 0 ;
20536 PyObject * obj3 = 0 ;
20537 PyObject * obj4 = 0 ;
20538 PyObject * obj5 = 0 ;
20539 char * kwnames[] = {
20540 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20541 };
20542
20543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20545 if (!SWIG_IsOK(res1)) {
20546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20547 }
20548 arg1 = reinterpret_cast< wxWindow * >(argp1);
20549 if (obj1) {
20550 ecode2 = SWIG_AsVal_int(obj1, &val2);
20551 if (!SWIG_IsOK(ecode2)) {
20552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20553 }
20554 arg2 = static_cast< int >(val2);
20555 }
20556 if (obj2) {
20557 {
20558 arg3 = &temp3;
20559 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20560 }
20561 }
20562 if (obj3) {
20563 {
20564 arg4 = &temp4;
20565 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20566 }
20567 }
20568 if (obj4) {
20569 ecode5 = SWIG_AsVal_long(obj4, &val5);
20570 if (!SWIG_IsOK(ecode5)) {
20571 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20572 }
20573 arg5 = static_cast< long >(val5);
20574 }
20575 if (obj5) {
20576 {
20577 arg6 = wxString_in_helper(obj5);
20578 if (arg6 == NULL) SWIG_fail;
20579 temp6 = true;
20580 }
20581 }
20582 {
20583 if (!wxPyCheckForApp()) SWIG_fail;
20584 PyThreadState* __tstate = wxPyBeginAllowThreads();
20585 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20586 wxPyEndAllowThreads(__tstate);
20587 if (PyErr_Occurred()) SWIG_fail;
20588 }
20589 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20590 {
20591 if (temp6)
20592 delete arg6;
20593 }
20594 return resultobj;
20595 fail:
20596 {
20597 if (temp6)
20598 delete arg6;
20599 }
20600 return NULL;
20601 }
20602
20603
20604 SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20605 PyObject *resultobj = 0;
20606 wxNotebook *result = 0 ;
20607
20608 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20609 {
20610 if (!wxPyCheckForApp()) SWIG_fail;
20611 PyThreadState* __tstate = wxPyBeginAllowThreads();
20612 result = (wxNotebook *)new wxNotebook();
20613 wxPyEndAllowThreads(__tstate);
20614 if (PyErr_Occurred()) SWIG_fail;
20615 }
20616 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20617 return resultobj;
20618 fail:
20619 return NULL;
20620 }
20621
20622
20623 SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20624 PyObject *resultobj = 0;
20625 wxNotebook *arg1 = (wxNotebook *) 0 ;
20626 wxWindow *arg2 = (wxWindow *) 0 ;
20627 int arg3 = (int) -1 ;
20628 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20629 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20630 wxSize const &arg5_defvalue = wxDefaultSize ;
20631 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20632 long arg6 = (long) 0 ;
20633 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20634 wxString *arg7 = (wxString *) &arg7_defvalue ;
20635 bool result;
20636 void *argp1 = 0 ;
20637 int res1 = 0 ;
20638 void *argp2 = 0 ;
20639 int res2 = 0 ;
20640 int val3 ;
20641 int ecode3 = 0 ;
20642 wxPoint temp4 ;
20643 wxSize temp5 ;
20644 long val6 ;
20645 int ecode6 = 0 ;
20646 bool temp7 = false ;
20647 PyObject * obj0 = 0 ;
20648 PyObject * obj1 = 0 ;
20649 PyObject * obj2 = 0 ;
20650 PyObject * obj3 = 0 ;
20651 PyObject * obj4 = 0 ;
20652 PyObject * obj5 = 0 ;
20653 PyObject * obj6 = 0 ;
20654 char * kwnames[] = {
20655 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20656 };
20657
20658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20660 if (!SWIG_IsOK(res1)) {
20661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20662 }
20663 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20664 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20665 if (!SWIG_IsOK(res2)) {
20666 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20667 }
20668 arg2 = reinterpret_cast< wxWindow * >(argp2);
20669 if (obj2) {
20670 ecode3 = SWIG_AsVal_int(obj2, &val3);
20671 if (!SWIG_IsOK(ecode3)) {
20672 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20673 }
20674 arg3 = static_cast< int >(val3);
20675 }
20676 if (obj3) {
20677 {
20678 arg4 = &temp4;
20679 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20680 }
20681 }
20682 if (obj4) {
20683 {
20684 arg5 = &temp5;
20685 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20686 }
20687 }
20688 if (obj5) {
20689 ecode6 = SWIG_AsVal_long(obj5, &val6);
20690 if (!SWIG_IsOK(ecode6)) {
20691 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20692 }
20693 arg6 = static_cast< long >(val6);
20694 }
20695 if (obj6) {
20696 {
20697 arg7 = wxString_in_helper(obj6);
20698 if (arg7 == NULL) SWIG_fail;
20699 temp7 = true;
20700 }
20701 }
20702 {
20703 PyThreadState* __tstate = wxPyBeginAllowThreads();
20704 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20705 wxPyEndAllowThreads(__tstate);
20706 if (PyErr_Occurred()) SWIG_fail;
20707 }
20708 {
20709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20710 }
20711 {
20712 if (temp7)
20713 delete arg7;
20714 }
20715 return resultobj;
20716 fail:
20717 {
20718 if (temp7)
20719 delete arg7;
20720 }
20721 return NULL;
20722 }
20723
20724
20725 SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20726 PyObject *resultobj = 0;
20727 wxNotebook *arg1 = (wxNotebook *) 0 ;
20728 int result;
20729 void *argp1 = 0 ;
20730 int res1 = 0 ;
20731 PyObject *swig_obj[1] ;
20732
20733 if (!args) SWIG_fail;
20734 swig_obj[0] = args;
20735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20736 if (!SWIG_IsOK(res1)) {
20737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20738 }
20739 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20740 {
20741 PyThreadState* __tstate = wxPyBeginAllowThreads();
20742 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20743 wxPyEndAllowThreads(__tstate);
20744 if (PyErr_Occurred()) SWIG_fail;
20745 }
20746 resultobj = SWIG_From_int(static_cast< int >(result));
20747 return resultobj;
20748 fail:
20749 return NULL;
20750 }
20751
20752
20753 SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20754 PyObject *resultobj = 0;
20755 wxNotebook *arg1 = (wxNotebook *) 0 ;
20756 wxSize *arg2 = 0 ;
20757 void *argp1 = 0 ;
20758 int res1 = 0 ;
20759 wxSize temp2 ;
20760 PyObject * obj0 = 0 ;
20761 PyObject * obj1 = 0 ;
20762 char * kwnames[] = {
20763 (char *) "self",(char *) "padding", NULL
20764 };
20765
20766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20768 if (!SWIG_IsOK(res1)) {
20769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20770 }
20771 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20772 {
20773 arg2 = &temp2;
20774 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20775 }
20776 {
20777 PyThreadState* __tstate = wxPyBeginAllowThreads();
20778 (arg1)->SetPadding((wxSize const &)*arg2);
20779 wxPyEndAllowThreads(__tstate);
20780 if (PyErr_Occurred()) SWIG_fail;
20781 }
20782 resultobj = SWIG_Py_Void();
20783 return resultobj;
20784 fail:
20785 return NULL;
20786 }
20787
20788
20789 SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20790 PyObject *resultobj = 0;
20791 wxNotebook *arg1 = (wxNotebook *) 0 ;
20792 wxSize *arg2 = 0 ;
20793 void *argp1 = 0 ;
20794 int res1 = 0 ;
20795 wxSize temp2 ;
20796 PyObject * obj0 = 0 ;
20797 PyObject * obj1 = 0 ;
20798 char * kwnames[] = {
20799 (char *) "self",(char *) "sz", NULL
20800 };
20801
20802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20804 if (!SWIG_IsOK(res1)) {
20805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20806 }
20807 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20808 {
20809 arg2 = &temp2;
20810 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20811 }
20812 {
20813 PyThreadState* __tstate = wxPyBeginAllowThreads();
20814 (arg1)->SetTabSize((wxSize const &)*arg2);
20815 wxPyEndAllowThreads(__tstate);
20816 if (PyErr_Occurred()) SWIG_fail;
20817 }
20818 resultobj = SWIG_Py_Void();
20819 return resultobj;
20820 fail:
20821 return NULL;
20822 }
20823
20824
20825 SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20826 PyObject *resultobj = 0;
20827 wxNotebook *arg1 = (wxNotebook *) 0 ;
20828 wxColour result;
20829 void *argp1 = 0 ;
20830 int res1 = 0 ;
20831 PyObject *swig_obj[1] ;
20832
20833 if (!args) SWIG_fail;
20834 swig_obj[0] = args;
20835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20836 if (!SWIG_IsOK(res1)) {
20837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20838 }
20839 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20840 {
20841 PyThreadState* __tstate = wxPyBeginAllowThreads();
20842 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20843 wxPyEndAllowThreads(__tstate);
20844 if (PyErr_Occurred()) SWIG_fail;
20845 }
20846 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20847 return resultobj;
20848 fail:
20849 return NULL;
20850 }
20851
20852
20853 SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20854 PyObject *resultobj = 0;
20855 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20856 SwigValueWrapper<wxVisualAttributes > result;
20857 int val1 ;
20858 int ecode1 = 0 ;
20859 PyObject * obj0 = 0 ;
20860 char * kwnames[] = {
20861 (char *) "variant", NULL
20862 };
20863
20864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20865 if (obj0) {
20866 ecode1 = SWIG_AsVal_int(obj0, &val1);
20867 if (!SWIG_IsOK(ecode1)) {
20868 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20869 }
20870 arg1 = static_cast< wxWindowVariant >(val1);
20871 }
20872 {
20873 if (!wxPyCheckForApp()) SWIG_fail;
20874 PyThreadState* __tstate = wxPyBeginAllowThreads();
20875 result = wxNotebook::GetClassDefaultAttributes(arg1);
20876 wxPyEndAllowThreads(__tstate);
20877 if (PyErr_Occurred()) SWIG_fail;
20878 }
20879 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20880 return resultobj;
20881 fail:
20882 return NULL;
20883 }
20884
20885
20886 SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20887 PyObject *obj;
20888 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20889 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
20890 return SWIG_Py_Void();
20891 }
20892
20893 SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20894 return SWIG_Python_InitShadowInstance(args);
20895 }
20896
20897 SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20898 PyObject *resultobj = 0;
20899 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20900 int arg2 = (int) 0 ;
20901 int arg3 = (int) -1 ;
20902 int arg4 = (int) -1 ;
20903 wxNotebookEvent *result = 0 ;
20904 int val1 ;
20905 int ecode1 = 0 ;
20906 int val2 ;
20907 int ecode2 = 0 ;
20908 int val3 ;
20909 int ecode3 = 0 ;
20910 int val4 ;
20911 int ecode4 = 0 ;
20912 PyObject * obj0 = 0 ;
20913 PyObject * obj1 = 0 ;
20914 PyObject * obj2 = 0 ;
20915 PyObject * obj3 = 0 ;
20916 char * kwnames[] = {
20917 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20918 };
20919
20920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20921 if (obj0) {
20922 ecode1 = SWIG_AsVal_int(obj0, &val1);
20923 if (!SWIG_IsOK(ecode1)) {
20924 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20925 }
20926 arg1 = static_cast< wxEventType >(val1);
20927 }
20928 if (obj1) {
20929 ecode2 = SWIG_AsVal_int(obj1, &val2);
20930 if (!SWIG_IsOK(ecode2)) {
20931 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
20932 }
20933 arg2 = static_cast< int >(val2);
20934 }
20935 if (obj2) {
20936 ecode3 = SWIG_AsVal_int(obj2, &val3);
20937 if (!SWIG_IsOK(ecode3)) {
20938 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
20939 }
20940 arg3 = static_cast< int >(val3);
20941 }
20942 if (obj3) {
20943 ecode4 = SWIG_AsVal_int(obj3, &val4);
20944 if (!SWIG_IsOK(ecode4)) {
20945 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
20946 }
20947 arg4 = static_cast< int >(val4);
20948 }
20949 {
20950 PyThreadState* __tstate = wxPyBeginAllowThreads();
20951 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
20952 wxPyEndAllowThreads(__tstate);
20953 if (PyErr_Occurred()) SWIG_fail;
20954 }
20955 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
20956 return resultobj;
20957 fail:
20958 return NULL;
20959 }
20960
20961
20962 SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20963 PyObject *obj;
20964 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20965 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
20966 return SWIG_Py_Void();
20967 }
20968
20969 SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20970 return SWIG_Python_InitShadowInstance(args);
20971 }
20972
20973 SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20974 PyObject *resultobj = 0;
20975 wxWindow *arg1 = (wxWindow *) 0 ;
20976 int arg2 = (int) -1 ;
20977 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20978 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20979 wxSize const &arg4_defvalue = wxDefaultSize ;
20980 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20981 long arg5 = (long) 0 ;
20982 wxString const &arg6_defvalue = wxPyEmptyString ;
20983 wxString *arg6 = (wxString *) &arg6_defvalue ;
20984 wxListbook *result = 0 ;
20985 void *argp1 = 0 ;
20986 int res1 = 0 ;
20987 int val2 ;
20988 int ecode2 = 0 ;
20989 wxPoint temp3 ;
20990 wxSize temp4 ;
20991 long val5 ;
20992 int ecode5 = 0 ;
20993 bool temp6 = false ;
20994 PyObject * obj0 = 0 ;
20995 PyObject * obj1 = 0 ;
20996 PyObject * obj2 = 0 ;
20997 PyObject * obj3 = 0 ;
20998 PyObject * obj4 = 0 ;
20999 PyObject * obj5 = 0 ;
21000 char * kwnames[] = {
21001 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21002 };
21003
21004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21006 if (!SWIG_IsOK(res1)) {
21007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
21008 }
21009 arg1 = reinterpret_cast< wxWindow * >(argp1);
21010 if (obj1) {
21011 ecode2 = SWIG_AsVal_int(obj1, &val2);
21012 if (!SWIG_IsOK(ecode2)) {
21013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
21014 }
21015 arg2 = static_cast< int >(val2);
21016 }
21017 if (obj2) {
21018 {
21019 arg3 = &temp3;
21020 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21021 }
21022 }
21023 if (obj3) {
21024 {
21025 arg4 = &temp4;
21026 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21027 }
21028 }
21029 if (obj4) {
21030 ecode5 = SWIG_AsVal_long(obj4, &val5);
21031 if (!SWIG_IsOK(ecode5)) {
21032 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
21033 }
21034 arg5 = static_cast< long >(val5);
21035 }
21036 if (obj5) {
21037 {
21038 arg6 = wxString_in_helper(obj5);
21039 if (arg6 == NULL) SWIG_fail;
21040 temp6 = true;
21041 }
21042 }
21043 {
21044 if (!wxPyCheckForApp()) SWIG_fail;
21045 PyThreadState* __tstate = wxPyBeginAllowThreads();
21046 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21047 wxPyEndAllowThreads(__tstate);
21048 if (PyErr_Occurred()) SWIG_fail;
21049 }
21050 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
21051 {
21052 if (temp6)
21053 delete arg6;
21054 }
21055 return resultobj;
21056 fail:
21057 {
21058 if (temp6)
21059 delete arg6;
21060 }
21061 return NULL;
21062 }
21063
21064
21065 SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21066 PyObject *resultobj = 0;
21067 wxListbook *result = 0 ;
21068
21069 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
21070 {
21071 if (!wxPyCheckForApp()) SWIG_fail;
21072 PyThreadState* __tstate = wxPyBeginAllowThreads();
21073 result = (wxListbook *)new wxListbook();
21074 wxPyEndAllowThreads(__tstate);
21075 if (PyErr_Occurred()) SWIG_fail;
21076 }
21077 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
21078 return resultobj;
21079 fail:
21080 return NULL;
21081 }
21082
21083
21084 SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21085 PyObject *resultobj = 0;
21086 wxListbook *arg1 = (wxListbook *) 0 ;
21087 wxWindow *arg2 = (wxWindow *) 0 ;
21088 int arg3 = (int) -1 ;
21089 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21090 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21091 wxSize const &arg5_defvalue = wxDefaultSize ;
21092 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21093 long arg6 = (long) 0 ;
21094 wxString const &arg7_defvalue = wxPyEmptyString ;
21095 wxString *arg7 = (wxString *) &arg7_defvalue ;
21096 bool result;
21097 void *argp1 = 0 ;
21098 int res1 = 0 ;
21099 void *argp2 = 0 ;
21100 int res2 = 0 ;
21101 int val3 ;
21102 int ecode3 = 0 ;
21103 wxPoint temp4 ;
21104 wxSize temp5 ;
21105 long val6 ;
21106 int ecode6 = 0 ;
21107 bool temp7 = false ;
21108 PyObject * obj0 = 0 ;
21109 PyObject * obj1 = 0 ;
21110 PyObject * obj2 = 0 ;
21111 PyObject * obj3 = 0 ;
21112 PyObject * obj4 = 0 ;
21113 PyObject * obj5 = 0 ;
21114 PyObject * obj6 = 0 ;
21115 char * kwnames[] = {
21116 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21117 };
21118
21119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21121 if (!SWIG_IsOK(res1)) {
21122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
21123 }
21124 arg1 = reinterpret_cast< wxListbook * >(argp1);
21125 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21126 if (!SWIG_IsOK(res2)) {
21127 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21128 }
21129 arg2 = reinterpret_cast< wxWindow * >(argp2);
21130 if (obj2) {
21131 ecode3 = SWIG_AsVal_int(obj2, &val3);
21132 if (!SWIG_IsOK(ecode3)) {
21133 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
21134 }
21135 arg3 = static_cast< int >(val3);
21136 }
21137 if (obj3) {
21138 {
21139 arg4 = &temp4;
21140 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21141 }
21142 }
21143 if (obj4) {
21144 {
21145 arg5 = &temp5;
21146 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21147 }
21148 }
21149 if (obj5) {
21150 ecode6 = SWIG_AsVal_long(obj5, &val6);
21151 if (!SWIG_IsOK(ecode6)) {
21152 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21153 }
21154 arg6 = static_cast< long >(val6);
21155 }
21156 if (obj6) {
21157 {
21158 arg7 = wxString_in_helper(obj6);
21159 if (arg7 == NULL) SWIG_fail;
21160 temp7 = true;
21161 }
21162 }
21163 {
21164 PyThreadState* __tstate = wxPyBeginAllowThreads();
21165 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21166 wxPyEndAllowThreads(__tstate);
21167 if (PyErr_Occurred()) SWIG_fail;
21168 }
21169 {
21170 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21171 }
21172 {
21173 if (temp7)
21174 delete arg7;
21175 }
21176 return resultobj;
21177 fail:
21178 {
21179 if (temp7)
21180 delete arg7;
21181 }
21182 return NULL;
21183 }
21184
21185
21186 SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21187 PyObject *resultobj = 0;
21188 wxListbook *arg1 = (wxListbook *) 0 ;
21189 wxListView *result = 0 ;
21190 void *argp1 = 0 ;
21191 int res1 = 0 ;
21192 PyObject *swig_obj[1] ;
21193
21194 if (!args) SWIG_fail;
21195 swig_obj[0] = args;
21196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21197 if (!SWIG_IsOK(res1)) {
21198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21199 }
21200 arg1 = reinterpret_cast< wxListbook * >(argp1);
21201 {
21202 PyThreadState* __tstate = wxPyBeginAllowThreads();
21203 result = (wxListView *)(arg1)->GetListView();
21204 wxPyEndAllowThreads(__tstate);
21205 if (PyErr_Occurred()) SWIG_fail;
21206 }
21207 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21208 return resultobj;
21209 fail:
21210 return NULL;
21211 }
21212
21213
21214 SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21215 PyObject *obj;
21216 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21217 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21218 return SWIG_Py_Void();
21219 }
21220
21221 SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21222 return SWIG_Python_InitShadowInstance(args);
21223 }
21224
21225 SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21226 PyObject *resultobj = 0;
21227 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21228 int arg2 = (int) 0 ;
21229 int arg3 = (int) -1 ;
21230 int arg4 = (int) -1 ;
21231 wxListbookEvent *result = 0 ;
21232 int val1 ;
21233 int ecode1 = 0 ;
21234 int val2 ;
21235 int ecode2 = 0 ;
21236 int val3 ;
21237 int ecode3 = 0 ;
21238 int val4 ;
21239 int ecode4 = 0 ;
21240 PyObject * obj0 = 0 ;
21241 PyObject * obj1 = 0 ;
21242 PyObject * obj2 = 0 ;
21243 PyObject * obj3 = 0 ;
21244 char * kwnames[] = {
21245 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21246 };
21247
21248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21249 if (obj0) {
21250 ecode1 = SWIG_AsVal_int(obj0, &val1);
21251 if (!SWIG_IsOK(ecode1)) {
21252 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21253 }
21254 arg1 = static_cast< wxEventType >(val1);
21255 }
21256 if (obj1) {
21257 ecode2 = SWIG_AsVal_int(obj1, &val2);
21258 if (!SWIG_IsOK(ecode2)) {
21259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21260 }
21261 arg2 = static_cast< int >(val2);
21262 }
21263 if (obj2) {
21264 ecode3 = SWIG_AsVal_int(obj2, &val3);
21265 if (!SWIG_IsOK(ecode3)) {
21266 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21267 }
21268 arg3 = static_cast< int >(val3);
21269 }
21270 if (obj3) {
21271 ecode4 = SWIG_AsVal_int(obj3, &val4);
21272 if (!SWIG_IsOK(ecode4)) {
21273 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21274 }
21275 arg4 = static_cast< int >(val4);
21276 }
21277 {
21278 PyThreadState* __tstate = wxPyBeginAllowThreads();
21279 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21280 wxPyEndAllowThreads(__tstate);
21281 if (PyErr_Occurred()) SWIG_fail;
21282 }
21283 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21284 return resultobj;
21285 fail:
21286 return NULL;
21287 }
21288
21289
21290 SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21291 PyObject *obj;
21292 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21293 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21294 return SWIG_Py_Void();
21295 }
21296
21297 SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21298 return SWIG_Python_InitShadowInstance(args);
21299 }
21300
21301 SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21302 PyObject *resultobj = 0;
21303 wxWindow *arg1 = (wxWindow *) 0 ;
21304 int arg2 ;
21305 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21306 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21307 wxSize const &arg4_defvalue = wxDefaultSize ;
21308 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21309 long arg5 = (long) 0 ;
21310 wxString const &arg6_defvalue = wxPyEmptyString ;
21311 wxString *arg6 = (wxString *) &arg6_defvalue ;
21312 wxChoicebook *result = 0 ;
21313 void *argp1 = 0 ;
21314 int res1 = 0 ;
21315 int val2 ;
21316 int ecode2 = 0 ;
21317 wxPoint temp3 ;
21318 wxSize temp4 ;
21319 long val5 ;
21320 int ecode5 = 0 ;
21321 bool temp6 = false ;
21322 PyObject * obj0 = 0 ;
21323 PyObject * obj1 = 0 ;
21324 PyObject * obj2 = 0 ;
21325 PyObject * obj3 = 0 ;
21326 PyObject * obj4 = 0 ;
21327 PyObject * obj5 = 0 ;
21328 char * kwnames[] = {
21329 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21330 };
21331
21332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21334 if (!SWIG_IsOK(res1)) {
21335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21336 }
21337 arg1 = reinterpret_cast< wxWindow * >(argp1);
21338 ecode2 = SWIG_AsVal_int(obj1, &val2);
21339 if (!SWIG_IsOK(ecode2)) {
21340 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21341 }
21342 arg2 = static_cast< int >(val2);
21343 if (obj2) {
21344 {
21345 arg3 = &temp3;
21346 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21347 }
21348 }
21349 if (obj3) {
21350 {
21351 arg4 = &temp4;
21352 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21353 }
21354 }
21355 if (obj4) {
21356 ecode5 = SWIG_AsVal_long(obj4, &val5);
21357 if (!SWIG_IsOK(ecode5)) {
21358 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21359 }
21360 arg5 = static_cast< long >(val5);
21361 }
21362 if (obj5) {
21363 {
21364 arg6 = wxString_in_helper(obj5);
21365 if (arg6 == NULL) SWIG_fail;
21366 temp6 = true;
21367 }
21368 }
21369 {
21370 if (!wxPyCheckForApp()) SWIG_fail;
21371 PyThreadState* __tstate = wxPyBeginAllowThreads();
21372 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21373 wxPyEndAllowThreads(__tstate);
21374 if (PyErr_Occurred()) SWIG_fail;
21375 }
21376 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21377 {
21378 if (temp6)
21379 delete arg6;
21380 }
21381 return resultobj;
21382 fail:
21383 {
21384 if (temp6)
21385 delete arg6;
21386 }
21387 return NULL;
21388 }
21389
21390
21391 SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21392 PyObject *resultobj = 0;
21393 wxChoicebook *result = 0 ;
21394
21395 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21396 {
21397 if (!wxPyCheckForApp()) SWIG_fail;
21398 PyThreadState* __tstate = wxPyBeginAllowThreads();
21399 result = (wxChoicebook *)new wxChoicebook();
21400 wxPyEndAllowThreads(__tstate);
21401 if (PyErr_Occurred()) SWIG_fail;
21402 }
21403 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21404 return resultobj;
21405 fail:
21406 return NULL;
21407 }
21408
21409
21410 SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21411 PyObject *resultobj = 0;
21412 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21413 wxWindow *arg2 = (wxWindow *) 0 ;
21414 int arg3 ;
21415 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21416 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21417 wxSize const &arg5_defvalue = wxDefaultSize ;
21418 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21419 long arg6 = (long) 0 ;
21420 wxString const &arg7_defvalue = wxPyEmptyString ;
21421 wxString *arg7 = (wxString *) &arg7_defvalue ;
21422 bool result;
21423 void *argp1 = 0 ;
21424 int res1 = 0 ;
21425 void *argp2 = 0 ;
21426 int res2 = 0 ;
21427 int val3 ;
21428 int ecode3 = 0 ;
21429 wxPoint temp4 ;
21430 wxSize temp5 ;
21431 long val6 ;
21432 int ecode6 = 0 ;
21433 bool temp7 = false ;
21434 PyObject * obj0 = 0 ;
21435 PyObject * obj1 = 0 ;
21436 PyObject * obj2 = 0 ;
21437 PyObject * obj3 = 0 ;
21438 PyObject * obj4 = 0 ;
21439 PyObject * obj5 = 0 ;
21440 PyObject * obj6 = 0 ;
21441 char * kwnames[] = {
21442 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21443 };
21444
21445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21447 if (!SWIG_IsOK(res1)) {
21448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21449 }
21450 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21451 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21452 if (!SWIG_IsOK(res2)) {
21453 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21454 }
21455 arg2 = reinterpret_cast< wxWindow * >(argp2);
21456 ecode3 = SWIG_AsVal_int(obj2, &val3);
21457 if (!SWIG_IsOK(ecode3)) {
21458 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21459 }
21460 arg3 = static_cast< int >(val3);
21461 if (obj3) {
21462 {
21463 arg4 = &temp4;
21464 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21465 }
21466 }
21467 if (obj4) {
21468 {
21469 arg5 = &temp5;
21470 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21471 }
21472 }
21473 if (obj5) {
21474 ecode6 = SWIG_AsVal_long(obj5, &val6);
21475 if (!SWIG_IsOK(ecode6)) {
21476 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21477 }
21478 arg6 = static_cast< long >(val6);
21479 }
21480 if (obj6) {
21481 {
21482 arg7 = wxString_in_helper(obj6);
21483 if (arg7 == NULL) SWIG_fail;
21484 temp7 = true;
21485 }
21486 }
21487 {
21488 PyThreadState* __tstate = wxPyBeginAllowThreads();
21489 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21490 wxPyEndAllowThreads(__tstate);
21491 if (PyErr_Occurred()) SWIG_fail;
21492 }
21493 {
21494 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21495 }
21496 {
21497 if (temp7)
21498 delete arg7;
21499 }
21500 return resultobj;
21501 fail:
21502 {
21503 if (temp7)
21504 delete arg7;
21505 }
21506 return NULL;
21507 }
21508
21509
21510 SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21511 PyObject *resultobj = 0;
21512 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21513 wxChoice *result = 0 ;
21514 void *argp1 = 0 ;
21515 int res1 = 0 ;
21516 PyObject *swig_obj[1] ;
21517
21518 if (!args) SWIG_fail;
21519 swig_obj[0] = args;
21520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21521 if (!SWIG_IsOK(res1)) {
21522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21523 }
21524 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21525 {
21526 PyThreadState* __tstate = wxPyBeginAllowThreads();
21527 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21528 wxPyEndAllowThreads(__tstate);
21529 if (PyErr_Occurred()) SWIG_fail;
21530 }
21531 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21532 return resultobj;
21533 fail:
21534 return NULL;
21535 }
21536
21537
21538 SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21539 PyObject *obj;
21540 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21541 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21542 return SWIG_Py_Void();
21543 }
21544
21545 SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21546 return SWIG_Python_InitShadowInstance(args);
21547 }
21548
21549 SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21550 PyObject *resultobj = 0;
21551 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21552 int arg2 = (int) 0 ;
21553 int arg3 = (int) -1 ;
21554 int arg4 = (int) -1 ;
21555 wxChoicebookEvent *result = 0 ;
21556 int val1 ;
21557 int ecode1 = 0 ;
21558 int val2 ;
21559 int ecode2 = 0 ;
21560 int val3 ;
21561 int ecode3 = 0 ;
21562 int val4 ;
21563 int ecode4 = 0 ;
21564 PyObject * obj0 = 0 ;
21565 PyObject * obj1 = 0 ;
21566 PyObject * obj2 = 0 ;
21567 PyObject * obj3 = 0 ;
21568 char * kwnames[] = {
21569 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21570 };
21571
21572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21573 if (obj0) {
21574 ecode1 = SWIG_AsVal_int(obj0, &val1);
21575 if (!SWIG_IsOK(ecode1)) {
21576 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21577 }
21578 arg1 = static_cast< wxEventType >(val1);
21579 }
21580 if (obj1) {
21581 ecode2 = SWIG_AsVal_int(obj1, &val2);
21582 if (!SWIG_IsOK(ecode2)) {
21583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21584 }
21585 arg2 = static_cast< int >(val2);
21586 }
21587 if (obj2) {
21588 ecode3 = SWIG_AsVal_int(obj2, &val3);
21589 if (!SWIG_IsOK(ecode3)) {
21590 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21591 }
21592 arg3 = static_cast< int >(val3);
21593 }
21594 if (obj3) {
21595 ecode4 = SWIG_AsVal_int(obj3, &val4);
21596 if (!SWIG_IsOK(ecode4)) {
21597 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21598 }
21599 arg4 = static_cast< int >(val4);
21600 }
21601 {
21602 PyThreadState* __tstate = wxPyBeginAllowThreads();
21603 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21604 wxPyEndAllowThreads(__tstate);
21605 if (PyErr_Occurred()) SWIG_fail;
21606 }
21607 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21608 return resultobj;
21609 fail:
21610 return NULL;
21611 }
21612
21613
21614 SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21615 PyObject *obj;
21616 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21617 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21618 return SWIG_Py_Void();
21619 }
21620
21621 SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21622 return SWIG_Python_InitShadowInstance(args);
21623 }
21624
21625 SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21626 PyObject *resultobj = 0;
21627 wxWindow *arg1 = (wxWindow *) 0 ;
21628 int arg2 ;
21629 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21630 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21631 wxSize const &arg4_defvalue = wxDefaultSize ;
21632 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21633 long arg5 = (long) wxBK_DEFAULT ;
21634 wxString const &arg6_defvalue = wxPyEmptyString ;
21635 wxString *arg6 = (wxString *) &arg6_defvalue ;
21636 wxTreebook *result = 0 ;
21637 void *argp1 = 0 ;
21638 int res1 = 0 ;
21639 int val2 ;
21640 int ecode2 = 0 ;
21641 wxPoint temp3 ;
21642 wxSize temp4 ;
21643 long val5 ;
21644 int ecode5 = 0 ;
21645 bool temp6 = false ;
21646 PyObject * obj0 = 0 ;
21647 PyObject * obj1 = 0 ;
21648 PyObject * obj2 = 0 ;
21649 PyObject * obj3 = 0 ;
21650 PyObject * obj4 = 0 ;
21651 PyObject * obj5 = 0 ;
21652 char * kwnames[] = {
21653 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21654 };
21655
21656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21658 if (!SWIG_IsOK(res1)) {
21659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21660 }
21661 arg1 = reinterpret_cast< wxWindow * >(argp1);
21662 ecode2 = SWIG_AsVal_int(obj1, &val2);
21663 if (!SWIG_IsOK(ecode2)) {
21664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21665 }
21666 arg2 = static_cast< int >(val2);
21667 if (obj2) {
21668 {
21669 arg3 = &temp3;
21670 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21671 }
21672 }
21673 if (obj3) {
21674 {
21675 arg4 = &temp4;
21676 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21677 }
21678 }
21679 if (obj4) {
21680 ecode5 = SWIG_AsVal_long(obj4, &val5);
21681 if (!SWIG_IsOK(ecode5)) {
21682 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21683 }
21684 arg5 = static_cast< long >(val5);
21685 }
21686 if (obj5) {
21687 {
21688 arg6 = wxString_in_helper(obj5);
21689 if (arg6 == NULL) SWIG_fail;
21690 temp6 = true;
21691 }
21692 }
21693 {
21694 if (!wxPyCheckForApp()) SWIG_fail;
21695 PyThreadState* __tstate = wxPyBeginAllowThreads();
21696 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21697 wxPyEndAllowThreads(__tstate);
21698 if (PyErr_Occurred()) SWIG_fail;
21699 }
21700 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21701 {
21702 if (temp6)
21703 delete arg6;
21704 }
21705 return resultobj;
21706 fail:
21707 {
21708 if (temp6)
21709 delete arg6;
21710 }
21711 return NULL;
21712 }
21713
21714
21715 SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21716 PyObject *resultobj = 0;
21717 wxTreebook *result = 0 ;
21718
21719 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21720 {
21721 if (!wxPyCheckForApp()) SWIG_fail;
21722 PyThreadState* __tstate = wxPyBeginAllowThreads();
21723 result = (wxTreebook *)new wxTreebook();
21724 wxPyEndAllowThreads(__tstate);
21725 if (PyErr_Occurred()) SWIG_fail;
21726 }
21727 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21728 return resultobj;
21729 fail:
21730 return NULL;
21731 }
21732
21733
21734 SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21735 PyObject *resultobj = 0;
21736 wxTreebook *arg1 = (wxTreebook *) 0 ;
21737 wxWindow *arg2 = (wxWindow *) 0 ;
21738 int arg3 ;
21739 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21740 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21741 wxSize const &arg5_defvalue = wxDefaultSize ;
21742 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21743 long arg6 = (long) wxBK_DEFAULT ;
21744 wxString const &arg7_defvalue = wxPyEmptyString ;
21745 wxString *arg7 = (wxString *) &arg7_defvalue ;
21746 bool result;
21747 void *argp1 = 0 ;
21748 int res1 = 0 ;
21749 void *argp2 = 0 ;
21750 int res2 = 0 ;
21751 int val3 ;
21752 int ecode3 = 0 ;
21753 wxPoint temp4 ;
21754 wxSize temp5 ;
21755 long val6 ;
21756 int ecode6 = 0 ;
21757 bool temp7 = false ;
21758 PyObject * obj0 = 0 ;
21759 PyObject * obj1 = 0 ;
21760 PyObject * obj2 = 0 ;
21761 PyObject * obj3 = 0 ;
21762 PyObject * obj4 = 0 ;
21763 PyObject * obj5 = 0 ;
21764 PyObject * obj6 = 0 ;
21765 char * kwnames[] = {
21766 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21767 };
21768
21769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21771 if (!SWIG_IsOK(res1)) {
21772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21773 }
21774 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21775 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21776 if (!SWIG_IsOK(res2)) {
21777 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21778 }
21779 arg2 = reinterpret_cast< wxWindow * >(argp2);
21780 ecode3 = SWIG_AsVal_int(obj2, &val3);
21781 if (!SWIG_IsOK(ecode3)) {
21782 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21783 }
21784 arg3 = static_cast< int >(val3);
21785 if (obj3) {
21786 {
21787 arg4 = &temp4;
21788 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21789 }
21790 }
21791 if (obj4) {
21792 {
21793 arg5 = &temp5;
21794 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21795 }
21796 }
21797 if (obj5) {
21798 ecode6 = SWIG_AsVal_long(obj5, &val6);
21799 if (!SWIG_IsOK(ecode6)) {
21800 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21801 }
21802 arg6 = static_cast< long >(val6);
21803 }
21804 if (obj6) {
21805 {
21806 arg7 = wxString_in_helper(obj6);
21807 if (arg7 == NULL) SWIG_fail;
21808 temp7 = true;
21809 }
21810 }
21811 {
21812 PyThreadState* __tstate = wxPyBeginAllowThreads();
21813 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21814 wxPyEndAllowThreads(__tstate);
21815 if (PyErr_Occurred()) SWIG_fail;
21816 }
21817 {
21818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21819 }
21820 {
21821 if (temp7)
21822 delete arg7;
21823 }
21824 return resultobj;
21825 fail:
21826 {
21827 if (temp7)
21828 delete arg7;
21829 }
21830 return NULL;
21831 }
21832
21833
21834 SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21835 PyObject *resultobj = 0;
21836 wxTreebook *arg1 = (wxTreebook *) 0 ;
21837 size_t arg2 ;
21838 wxWindow *arg3 = (wxWindow *) 0 ;
21839 wxString *arg4 = 0 ;
21840 bool arg5 = (bool) false ;
21841 int arg6 = (int) wxNOT_FOUND ;
21842 bool result;
21843 void *argp1 = 0 ;
21844 int res1 = 0 ;
21845 size_t val2 ;
21846 int ecode2 = 0 ;
21847 void *argp3 = 0 ;
21848 int res3 = 0 ;
21849 bool temp4 = false ;
21850 bool val5 ;
21851 int ecode5 = 0 ;
21852 int val6 ;
21853 int ecode6 = 0 ;
21854 PyObject * obj0 = 0 ;
21855 PyObject * obj1 = 0 ;
21856 PyObject * obj2 = 0 ;
21857 PyObject * obj3 = 0 ;
21858 PyObject * obj4 = 0 ;
21859 PyObject * obj5 = 0 ;
21860 char * kwnames[] = {
21861 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21862 };
21863
21864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21866 if (!SWIG_IsOK(res1)) {
21867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21868 }
21869 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21870 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21871 if (!SWIG_IsOK(ecode2)) {
21872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
21873 }
21874 arg2 = static_cast< size_t >(val2);
21875 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
21876 if (!SWIG_IsOK(res3)) {
21877 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
21878 }
21879 arg3 = reinterpret_cast< wxWindow * >(argp3);
21880 {
21881 arg4 = wxString_in_helper(obj3);
21882 if (arg4 == NULL) SWIG_fail;
21883 temp4 = true;
21884 }
21885 if (obj4) {
21886 ecode5 = SWIG_AsVal_bool(obj4, &val5);
21887 if (!SWIG_IsOK(ecode5)) {
21888 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
21889 }
21890 arg5 = static_cast< bool >(val5);
21891 }
21892 if (obj5) {
21893 ecode6 = SWIG_AsVal_int(obj5, &val6);
21894 if (!SWIG_IsOK(ecode6)) {
21895 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
21896 }
21897 arg6 = static_cast< int >(val6);
21898 }
21899 {
21900 PyThreadState* __tstate = wxPyBeginAllowThreads();
21901 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
21902 wxPyEndAllowThreads(__tstate);
21903 if (PyErr_Occurred()) SWIG_fail;
21904 }
21905 {
21906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21907 }
21908 {
21909 if (temp4)
21910 delete arg4;
21911 }
21912 return resultobj;
21913 fail:
21914 {
21915 if (temp4)
21916 delete arg4;
21917 }
21918 return NULL;
21919 }
21920
21921
21922 SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21923 PyObject *resultobj = 0;
21924 wxTreebook *arg1 = (wxTreebook *) 0 ;
21925 wxWindow *arg2 = (wxWindow *) 0 ;
21926 wxString *arg3 = 0 ;
21927 bool arg4 = (bool) false ;
21928 int arg5 = (int) wxNOT_FOUND ;
21929 bool result;
21930 void *argp1 = 0 ;
21931 int res1 = 0 ;
21932 void *argp2 = 0 ;
21933 int res2 = 0 ;
21934 bool temp3 = false ;
21935 bool val4 ;
21936 int ecode4 = 0 ;
21937 int val5 ;
21938 int ecode5 = 0 ;
21939 PyObject * obj0 = 0 ;
21940 PyObject * obj1 = 0 ;
21941 PyObject * obj2 = 0 ;
21942 PyObject * obj3 = 0 ;
21943 PyObject * obj4 = 0 ;
21944 char * kwnames[] = {
21945 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21946 };
21947
21948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21950 if (!SWIG_IsOK(res1)) {
21951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21952 }
21953 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21954 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21955 if (!SWIG_IsOK(res2)) {
21956 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
21957 }
21958 arg2 = reinterpret_cast< wxWindow * >(argp2);
21959 {
21960 arg3 = wxString_in_helper(obj2);
21961 if (arg3 == NULL) SWIG_fail;
21962 temp3 = true;
21963 }
21964 if (obj3) {
21965 ecode4 = SWIG_AsVal_bool(obj3, &val4);
21966 if (!SWIG_IsOK(ecode4)) {
21967 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
21968 }
21969 arg4 = static_cast< bool >(val4);
21970 }
21971 if (obj4) {
21972 ecode5 = SWIG_AsVal_int(obj4, &val5);
21973 if (!SWIG_IsOK(ecode5)) {
21974 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
21975 }
21976 arg5 = static_cast< int >(val5);
21977 }
21978 {
21979 PyThreadState* __tstate = wxPyBeginAllowThreads();
21980 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
21981 wxPyEndAllowThreads(__tstate);
21982 if (PyErr_Occurred()) SWIG_fail;
21983 }
21984 {
21985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21986 }
21987 {
21988 if (temp3)
21989 delete arg3;
21990 }
21991 return resultobj;
21992 fail:
21993 {
21994 if (temp3)
21995 delete arg3;
21996 }
21997 return NULL;
21998 }
21999
22000
22001 SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22002 PyObject *resultobj = 0;
22003 wxTreebook *arg1 = (wxTreebook *) 0 ;
22004 size_t arg2 ;
22005 bool result;
22006 void *argp1 = 0 ;
22007 int res1 = 0 ;
22008 size_t val2 ;
22009 int ecode2 = 0 ;
22010 PyObject * obj0 = 0 ;
22011 PyObject * obj1 = 0 ;
22012 char * kwnames[] = {
22013 (char *) "self",(char *) "pos", NULL
22014 };
22015
22016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
22017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22018 if (!SWIG_IsOK(res1)) {
22019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22020 }
22021 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22022 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22023 if (!SWIG_IsOK(ecode2)) {
22024 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
22025 }
22026 arg2 = static_cast< size_t >(val2);
22027 {
22028 PyThreadState* __tstate = wxPyBeginAllowThreads();
22029 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
22030 wxPyEndAllowThreads(__tstate);
22031 if (PyErr_Occurred()) SWIG_fail;
22032 }
22033 {
22034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22035 }
22036 return resultobj;
22037 fail:
22038 return NULL;
22039 }
22040
22041
22042 SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22043 PyObject *resultobj = 0;
22044 wxTreebook *arg1 = (wxTreebook *) 0 ;
22045 size_t arg2 ;
22046 bool arg3 = (bool) true ;
22047 bool result;
22048 void *argp1 = 0 ;
22049 int res1 = 0 ;
22050 size_t val2 ;
22051 int ecode2 = 0 ;
22052 bool val3 ;
22053 int ecode3 = 0 ;
22054 PyObject * obj0 = 0 ;
22055 PyObject * obj1 = 0 ;
22056 PyObject * obj2 = 0 ;
22057 char * kwnames[] = {
22058 (char *) "self",(char *) "pos",(char *) "expand", NULL
22059 };
22060
22061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22063 if (!SWIG_IsOK(res1)) {
22064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22065 }
22066 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22067 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22068 if (!SWIG_IsOK(ecode2)) {
22069 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
22070 }
22071 arg2 = static_cast< size_t >(val2);
22072 if (obj2) {
22073 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22074 if (!SWIG_IsOK(ecode3)) {
22075 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
22076 }
22077 arg3 = static_cast< bool >(val3);
22078 }
22079 {
22080 PyThreadState* __tstate = wxPyBeginAllowThreads();
22081 result = (bool)(arg1)->ExpandNode(arg2,arg3);
22082 wxPyEndAllowThreads(__tstate);
22083 if (PyErr_Occurred()) SWIG_fail;
22084 }
22085 {
22086 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22087 }
22088 return resultobj;
22089 fail:
22090 return NULL;
22091 }
22092
22093
22094 SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22095 PyObject *resultobj = 0;
22096 wxTreebook *arg1 = (wxTreebook *) 0 ;
22097 size_t arg2 ;
22098 bool result;
22099 void *argp1 = 0 ;
22100 int res1 = 0 ;
22101 size_t val2 ;
22102 int ecode2 = 0 ;
22103 PyObject * obj0 = 0 ;
22104 PyObject * obj1 = 0 ;
22105 char * kwnames[] = {
22106 (char *) "self",(char *) "pos", NULL
22107 };
22108
22109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
22110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22111 if (!SWIG_IsOK(res1)) {
22112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22113 }
22114 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22115 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22116 if (!SWIG_IsOK(ecode2)) {
22117 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
22118 }
22119 arg2 = static_cast< size_t >(val2);
22120 {
22121 PyThreadState* __tstate = wxPyBeginAllowThreads();
22122 result = (bool)(arg1)->CollapseNode(arg2);
22123 wxPyEndAllowThreads(__tstate);
22124 if (PyErr_Occurred()) SWIG_fail;
22125 }
22126 {
22127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22128 }
22129 return resultobj;
22130 fail:
22131 return NULL;
22132 }
22133
22134
22135 SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22136 PyObject *resultobj = 0;
22137 wxTreebook *arg1 = (wxTreebook *) 0 ;
22138 size_t arg2 ;
22139 int result;
22140 void *argp1 = 0 ;
22141 int res1 = 0 ;
22142 size_t val2 ;
22143 int ecode2 = 0 ;
22144 PyObject * obj0 = 0 ;
22145 PyObject * obj1 = 0 ;
22146 char * kwnames[] = {
22147 (char *) "self",(char *) "pos", NULL
22148 };
22149
22150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22152 if (!SWIG_IsOK(res1)) {
22153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22154 }
22155 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22156 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22157 if (!SWIG_IsOK(ecode2)) {
22158 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22159 }
22160 arg2 = static_cast< size_t >(val2);
22161 {
22162 PyThreadState* __tstate = wxPyBeginAllowThreads();
22163 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22164 wxPyEndAllowThreads(__tstate);
22165 if (PyErr_Occurred()) SWIG_fail;
22166 }
22167 resultobj = SWIG_From_int(static_cast< int >(result));
22168 return resultobj;
22169 fail:
22170 return NULL;
22171 }
22172
22173
22174 SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22175 PyObject *resultobj = 0;
22176 wxTreebook *arg1 = (wxTreebook *) 0 ;
22177 wxPyTreeCtrl *result = 0 ;
22178 void *argp1 = 0 ;
22179 int res1 = 0 ;
22180 PyObject *swig_obj[1] ;
22181
22182 if (!args) SWIG_fail;
22183 swig_obj[0] = args;
22184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22185 if (!SWIG_IsOK(res1)) {
22186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22187 }
22188 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22189 {
22190 PyThreadState* __tstate = wxPyBeginAllowThreads();
22191 result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
22192 wxPyEndAllowThreads(__tstate);
22193 if (PyErr_Occurred()) SWIG_fail;
22194 }
22195 {
22196 resultobj = wxPyMake_wxObject(result, (bool)0);
22197 }
22198 return resultobj;
22199 fail:
22200 return NULL;
22201 }
22202
22203
22204 SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22205 PyObject *obj;
22206 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22207 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22208 return SWIG_Py_Void();
22209 }
22210
22211 SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22212 return SWIG_Python_InitShadowInstance(args);
22213 }
22214
22215 SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22216 PyObject *resultobj = 0;
22217 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22218 int arg2 = (int) 0 ;
22219 int arg3 = (int) wxNOT_FOUND ;
22220 int arg4 = (int) wxNOT_FOUND ;
22221 wxTreebookEvent *result = 0 ;
22222 int val1 ;
22223 int ecode1 = 0 ;
22224 int val2 ;
22225 int ecode2 = 0 ;
22226 int val3 ;
22227 int ecode3 = 0 ;
22228 int val4 ;
22229 int ecode4 = 0 ;
22230 PyObject * obj0 = 0 ;
22231 PyObject * obj1 = 0 ;
22232 PyObject * obj2 = 0 ;
22233 PyObject * obj3 = 0 ;
22234 char * kwnames[] = {
22235 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22236 };
22237
22238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22239 if (obj0) {
22240 ecode1 = SWIG_AsVal_int(obj0, &val1);
22241 if (!SWIG_IsOK(ecode1)) {
22242 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22243 }
22244 arg1 = static_cast< wxEventType >(val1);
22245 }
22246 if (obj1) {
22247 ecode2 = SWIG_AsVal_int(obj1, &val2);
22248 if (!SWIG_IsOK(ecode2)) {
22249 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22250 }
22251 arg2 = static_cast< int >(val2);
22252 }
22253 if (obj2) {
22254 ecode3 = SWIG_AsVal_int(obj2, &val3);
22255 if (!SWIG_IsOK(ecode3)) {
22256 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22257 }
22258 arg3 = static_cast< int >(val3);
22259 }
22260 if (obj3) {
22261 ecode4 = SWIG_AsVal_int(obj3, &val4);
22262 if (!SWIG_IsOK(ecode4)) {
22263 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22264 }
22265 arg4 = static_cast< int >(val4);
22266 }
22267 {
22268 PyThreadState* __tstate = wxPyBeginAllowThreads();
22269 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22270 wxPyEndAllowThreads(__tstate);
22271 if (PyErr_Occurred()) SWIG_fail;
22272 }
22273 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22274 return resultobj;
22275 fail:
22276 return NULL;
22277 }
22278
22279
22280 SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22281 PyObject *obj;
22282 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22283 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22284 return SWIG_Py_Void();
22285 }
22286
22287 SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22288 return SWIG_Python_InitShadowInstance(args);
22289 }
22290
22291 SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22292 PyObject *resultobj = 0;
22293 wxWindow *arg1 = (wxWindow *) 0 ;
22294 int arg2 ;
22295 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22296 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22297 wxSize const &arg4_defvalue = wxDefaultSize ;
22298 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22299 long arg5 = (long) wxBK_DEFAULT ;
22300 wxString const &arg6_defvalue = wxPyEmptyString ;
22301 wxString *arg6 = (wxString *) &arg6_defvalue ;
22302 wxToolbook *result = 0 ;
22303 void *argp1 = 0 ;
22304 int res1 = 0 ;
22305 int val2 ;
22306 int ecode2 = 0 ;
22307 wxPoint temp3 ;
22308 wxSize temp4 ;
22309 long val5 ;
22310 int ecode5 = 0 ;
22311 bool temp6 = false ;
22312 PyObject * obj0 = 0 ;
22313 PyObject * obj1 = 0 ;
22314 PyObject * obj2 = 0 ;
22315 PyObject * obj3 = 0 ;
22316 PyObject * obj4 = 0 ;
22317 PyObject * obj5 = 0 ;
22318 char * kwnames[] = {
22319 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22320 };
22321
22322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22324 if (!SWIG_IsOK(res1)) {
22325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22326 }
22327 arg1 = reinterpret_cast< wxWindow * >(argp1);
22328 ecode2 = SWIG_AsVal_int(obj1, &val2);
22329 if (!SWIG_IsOK(ecode2)) {
22330 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22331 }
22332 arg2 = static_cast< int >(val2);
22333 if (obj2) {
22334 {
22335 arg3 = &temp3;
22336 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22337 }
22338 }
22339 if (obj3) {
22340 {
22341 arg4 = &temp4;
22342 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22343 }
22344 }
22345 if (obj4) {
22346 ecode5 = SWIG_AsVal_long(obj4, &val5);
22347 if (!SWIG_IsOK(ecode5)) {
22348 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22349 }
22350 arg5 = static_cast< long >(val5);
22351 }
22352 if (obj5) {
22353 {
22354 arg6 = wxString_in_helper(obj5);
22355 if (arg6 == NULL) SWIG_fail;
22356 temp6 = true;
22357 }
22358 }
22359 {
22360 PyThreadState* __tstate = wxPyBeginAllowThreads();
22361 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22362 wxPyEndAllowThreads(__tstate);
22363 if (PyErr_Occurred()) SWIG_fail;
22364 }
22365 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22366 {
22367 if (temp6)
22368 delete arg6;
22369 }
22370 return resultobj;
22371 fail:
22372 {
22373 if (temp6)
22374 delete arg6;
22375 }
22376 return NULL;
22377 }
22378
22379
22380 SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22381 PyObject *resultobj = 0;
22382 wxToolbook *result = 0 ;
22383
22384 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22385 {
22386 PyThreadState* __tstate = wxPyBeginAllowThreads();
22387 result = (wxToolbook *)new wxToolbook();
22388 wxPyEndAllowThreads(__tstate);
22389 if (PyErr_Occurred()) SWIG_fail;
22390 }
22391 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22392 return resultobj;
22393 fail:
22394 return NULL;
22395 }
22396
22397
22398 SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22399 PyObject *resultobj = 0;
22400 wxToolbook *arg1 = (wxToolbook *) 0 ;
22401 wxWindow *arg2 = (wxWindow *) 0 ;
22402 int arg3 ;
22403 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22404 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22405 wxSize const &arg5_defvalue = wxDefaultSize ;
22406 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22407 long arg6 = (long) 0 ;
22408 wxString const &arg7_defvalue = wxEmptyString ;
22409 wxString *arg7 = (wxString *) &arg7_defvalue ;
22410 bool result;
22411 void *argp1 = 0 ;
22412 int res1 = 0 ;
22413 void *argp2 = 0 ;
22414 int res2 = 0 ;
22415 int val3 ;
22416 int ecode3 = 0 ;
22417 wxPoint temp4 ;
22418 wxSize temp5 ;
22419 long val6 ;
22420 int ecode6 = 0 ;
22421 bool temp7 = false ;
22422 PyObject * obj0 = 0 ;
22423 PyObject * obj1 = 0 ;
22424 PyObject * obj2 = 0 ;
22425 PyObject * obj3 = 0 ;
22426 PyObject * obj4 = 0 ;
22427 PyObject * obj5 = 0 ;
22428 PyObject * obj6 = 0 ;
22429 char * kwnames[] = {
22430 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22431 };
22432
22433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22435 if (!SWIG_IsOK(res1)) {
22436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22437 }
22438 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22439 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22440 if (!SWIG_IsOK(res2)) {
22441 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22442 }
22443 arg2 = reinterpret_cast< wxWindow * >(argp2);
22444 ecode3 = SWIG_AsVal_int(obj2, &val3);
22445 if (!SWIG_IsOK(ecode3)) {
22446 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22447 }
22448 arg3 = static_cast< int >(val3);
22449 if (obj3) {
22450 {
22451 arg4 = &temp4;
22452 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22453 }
22454 }
22455 if (obj4) {
22456 {
22457 arg5 = &temp5;
22458 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22459 }
22460 }
22461 if (obj5) {
22462 ecode6 = SWIG_AsVal_long(obj5, &val6);
22463 if (!SWIG_IsOK(ecode6)) {
22464 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22465 }
22466 arg6 = static_cast< long >(val6);
22467 }
22468 if (obj6) {
22469 {
22470 arg7 = wxString_in_helper(obj6);
22471 if (arg7 == NULL) SWIG_fail;
22472 temp7 = true;
22473 }
22474 }
22475 {
22476 PyThreadState* __tstate = wxPyBeginAllowThreads();
22477 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22478 wxPyEndAllowThreads(__tstate);
22479 if (PyErr_Occurred()) SWIG_fail;
22480 }
22481 {
22482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22483 }
22484 {
22485 if (temp7)
22486 delete arg7;
22487 }
22488 return resultobj;
22489 fail:
22490 {
22491 if (temp7)
22492 delete arg7;
22493 }
22494 return NULL;
22495 }
22496
22497
22498 SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22499 PyObject *resultobj = 0;
22500 wxToolbook *arg1 = (wxToolbook *) 0 ;
22501 wxToolBarBase *result = 0 ;
22502 void *argp1 = 0 ;
22503 int res1 = 0 ;
22504 PyObject *swig_obj[1] ;
22505
22506 if (!args) SWIG_fail;
22507 swig_obj[0] = args;
22508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22509 if (!SWIG_IsOK(res1)) {
22510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22511 }
22512 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22513 {
22514 PyThreadState* __tstate = wxPyBeginAllowThreads();
22515 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22516 wxPyEndAllowThreads(__tstate);
22517 if (PyErr_Occurred()) SWIG_fail;
22518 }
22519 {
22520 resultobj = wxPyMake_wxObject(result, (bool)0);
22521 }
22522 return resultobj;
22523 fail:
22524 return NULL;
22525 }
22526
22527
22528 SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22529 PyObject *resultobj = 0;
22530 wxToolbook *arg1 = (wxToolbook *) 0 ;
22531 void *argp1 = 0 ;
22532 int res1 = 0 ;
22533 PyObject *swig_obj[1] ;
22534
22535 if (!args) SWIG_fail;
22536 swig_obj[0] = args;
22537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22538 if (!SWIG_IsOK(res1)) {
22539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22540 }
22541 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22542 {
22543 PyThreadState* __tstate = wxPyBeginAllowThreads();
22544 (arg1)->Realize();
22545 wxPyEndAllowThreads(__tstate);
22546 if (PyErr_Occurred()) SWIG_fail;
22547 }
22548 resultobj = SWIG_Py_Void();
22549 return resultobj;
22550 fail:
22551 return NULL;
22552 }
22553
22554
22555 SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22556 PyObject *obj;
22557 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22558 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22559 return SWIG_Py_Void();
22560 }
22561
22562 SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22563 return SWIG_Python_InitShadowInstance(args);
22564 }
22565
22566 SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22567 PyObject *resultobj = 0;
22568 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22569 int arg2 = (int) 0 ;
22570 int arg3 = (int) wxNOT_FOUND ;
22571 int arg4 = (int) wxNOT_FOUND ;
22572 wxToolbookEvent *result = 0 ;
22573 int val1 ;
22574 int ecode1 = 0 ;
22575 int val2 ;
22576 int ecode2 = 0 ;
22577 int val3 ;
22578 int ecode3 = 0 ;
22579 int val4 ;
22580 int ecode4 = 0 ;
22581 PyObject * obj0 = 0 ;
22582 PyObject * obj1 = 0 ;
22583 PyObject * obj2 = 0 ;
22584 PyObject * obj3 = 0 ;
22585 char * kwnames[] = {
22586 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22587 };
22588
22589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22590 if (obj0) {
22591 ecode1 = SWIG_AsVal_int(obj0, &val1);
22592 if (!SWIG_IsOK(ecode1)) {
22593 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22594 }
22595 arg1 = static_cast< wxEventType >(val1);
22596 }
22597 if (obj1) {
22598 ecode2 = SWIG_AsVal_int(obj1, &val2);
22599 if (!SWIG_IsOK(ecode2)) {
22600 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22601 }
22602 arg2 = static_cast< int >(val2);
22603 }
22604 if (obj2) {
22605 ecode3 = SWIG_AsVal_int(obj2, &val3);
22606 if (!SWIG_IsOK(ecode3)) {
22607 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22608 }
22609 arg3 = static_cast< int >(val3);
22610 }
22611 if (obj3) {
22612 ecode4 = SWIG_AsVal_int(obj3, &val4);
22613 if (!SWIG_IsOK(ecode4)) {
22614 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22615 }
22616 arg4 = static_cast< int >(val4);
22617 }
22618 {
22619 PyThreadState* __tstate = wxPyBeginAllowThreads();
22620 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22621 wxPyEndAllowThreads(__tstate);
22622 if (PyErr_Occurred()) SWIG_fail;
22623 }
22624 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22625 return resultobj;
22626 fail:
22627 return NULL;
22628 }
22629
22630
22631 SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22632 PyObject *obj;
22633 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22634 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22635 return SWIG_Py_Void();
22636 }
22637
22638 SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22639 return SWIG_Python_InitShadowInstance(args);
22640 }
22641
22642 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22643 PyObject *resultobj = 0;
22644 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22645 int result;
22646 void *argp1 = 0 ;
22647 int res1 = 0 ;
22648 PyObject *swig_obj[1] ;
22649
22650 if (!args) SWIG_fail;
22651 swig_obj[0] = args;
22652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22653 if (!SWIG_IsOK(res1)) {
22654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22655 }
22656 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22657 {
22658 PyThreadState* __tstate = wxPyBeginAllowThreads();
22659 result = (int)(arg1)->GetId();
22660 wxPyEndAllowThreads(__tstate);
22661 if (PyErr_Occurred()) SWIG_fail;
22662 }
22663 resultobj = SWIG_From_int(static_cast< int >(result));
22664 return resultobj;
22665 fail:
22666 return NULL;
22667 }
22668
22669
22670 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22671 PyObject *resultobj = 0;
22672 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22673 wxControl *result = 0 ;
22674 void *argp1 = 0 ;
22675 int res1 = 0 ;
22676 PyObject *swig_obj[1] ;
22677
22678 if (!args) SWIG_fail;
22679 swig_obj[0] = args;
22680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22681 if (!SWIG_IsOK(res1)) {
22682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22683 }
22684 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22685 {
22686 PyThreadState* __tstate = wxPyBeginAllowThreads();
22687 result = (wxControl *)(arg1)->GetControl();
22688 wxPyEndAllowThreads(__tstate);
22689 if (PyErr_Occurred()) SWIG_fail;
22690 }
22691 {
22692 resultobj = wxPyMake_wxObject(result, 0);
22693 }
22694 return resultobj;
22695 fail:
22696 return NULL;
22697 }
22698
22699
22700 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22701 PyObject *resultobj = 0;
22702 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22703 wxToolBarBase *result = 0 ;
22704 void *argp1 = 0 ;
22705 int res1 = 0 ;
22706 PyObject *swig_obj[1] ;
22707
22708 if (!args) SWIG_fail;
22709 swig_obj[0] = args;
22710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22711 if (!SWIG_IsOK(res1)) {
22712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22713 }
22714 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22715 {
22716 PyThreadState* __tstate = wxPyBeginAllowThreads();
22717 result = (wxToolBarBase *)(arg1)->GetToolBar();
22718 wxPyEndAllowThreads(__tstate);
22719 if (PyErr_Occurred()) SWIG_fail;
22720 }
22721 {
22722 resultobj = wxPyMake_wxObject(result, (bool)0);
22723 }
22724 return resultobj;
22725 fail:
22726 return NULL;
22727 }
22728
22729
22730 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22731 PyObject *resultobj = 0;
22732 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22733 int result;
22734 void *argp1 = 0 ;
22735 int res1 = 0 ;
22736 PyObject *swig_obj[1] ;
22737
22738 if (!args) SWIG_fail;
22739 swig_obj[0] = args;
22740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22741 if (!SWIG_IsOK(res1)) {
22742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22743 }
22744 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22745 {
22746 PyThreadState* __tstate = wxPyBeginAllowThreads();
22747 result = (int)(arg1)->IsButton();
22748 wxPyEndAllowThreads(__tstate);
22749 if (PyErr_Occurred()) SWIG_fail;
22750 }
22751 resultobj = SWIG_From_int(static_cast< int >(result));
22752 return resultobj;
22753 fail:
22754 return NULL;
22755 }
22756
22757
22758 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22759 PyObject *resultobj = 0;
22760 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22761 int result;
22762 void *argp1 = 0 ;
22763 int res1 = 0 ;
22764 PyObject *swig_obj[1] ;
22765
22766 if (!args) SWIG_fail;
22767 swig_obj[0] = args;
22768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22769 if (!SWIG_IsOK(res1)) {
22770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22771 }
22772 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22773 {
22774 PyThreadState* __tstate = wxPyBeginAllowThreads();
22775 result = (int)(arg1)->IsControl();
22776 wxPyEndAllowThreads(__tstate);
22777 if (PyErr_Occurred()) SWIG_fail;
22778 }
22779 resultobj = SWIG_From_int(static_cast< int >(result));
22780 return resultobj;
22781 fail:
22782 return NULL;
22783 }
22784
22785
22786 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22787 PyObject *resultobj = 0;
22788 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22789 int result;
22790 void *argp1 = 0 ;
22791 int res1 = 0 ;
22792 PyObject *swig_obj[1] ;
22793
22794 if (!args) SWIG_fail;
22795 swig_obj[0] = args;
22796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22797 if (!SWIG_IsOK(res1)) {
22798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22799 }
22800 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22801 {
22802 PyThreadState* __tstate = wxPyBeginAllowThreads();
22803 result = (int)(arg1)->IsSeparator();
22804 wxPyEndAllowThreads(__tstate);
22805 if (PyErr_Occurred()) SWIG_fail;
22806 }
22807 resultobj = SWIG_From_int(static_cast< int >(result));
22808 return resultobj;
22809 fail:
22810 return NULL;
22811 }
22812
22813
22814 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22815 PyObject *resultobj = 0;
22816 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22817 int result;
22818 void *argp1 = 0 ;
22819 int res1 = 0 ;
22820 PyObject *swig_obj[1] ;
22821
22822 if (!args) SWIG_fail;
22823 swig_obj[0] = args;
22824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22825 if (!SWIG_IsOK(res1)) {
22826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22827 }
22828 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22829 {
22830 PyThreadState* __tstate = wxPyBeginAllowThreads();
22831 result = (int)(arg1)->GetStyle();
22832 wxPyEndAllowThreads(__tstate);
22833 if (PyErr_Occurred()) SWIG_fail;
22834 }
22835 resultobj = SWIG_From_int(static_cast< int >(result));
22836 return resultobj;
22837 fail:
22838 return NULL;
22839 }
22840
22841
22842 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22843 PyObject *resultobj = 0;
22844 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22845 wxItemKind result;
22846 void *argp1 = 0 ;
22847 int res1 = 0 ;
22848 PyObject *swig_obj[1] ;
22849
22850 if (!args) SWIG_fail;
22851 swig_obj[0] = args;
22852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22853 if (!SWIG_IsOK(res1)) {
22854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22855 }
22856 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22857 {
22858 PyThreadState* __tstate = wxPyBeginAllowThreads();
22859 result = (wxItemKind)(arg1)->GetKind();
22860 wxPyEndAllowThreads(__tstate);
22861 if (PyErr_Occurred()) SWIG_fail;
22862 }
22863 resultobj = SWIG_From_int(static_cast< int >(result));
22864 return resultobj;
22865 fail:
22866 return NULL;
22867 }
22868
22869
22870 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22871 PyObject *resultobj = 0;
22872 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22873 bool result;
22874 void *argp1 = 0 ;
22875 int res1 = 0 ;
22876 PyObject *swig_obj[1] ;
22877
22878 if (!args) SWIG_fail;
22879 swig_obj[0] = args;
22880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22881 if (!SWIG_IsOK(res1)) {
22882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22883 }
22884 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22885 {
22886 PyThreadState* __tstate = wxPyBeginAllowThreads();
22887 result = (bool)(arg1)->IsEnabled();
22888 wxPyEndAllowThreads(__tstate);
22889 if (PyErr_Occurred()) SWIG_fail;
22890 }
22891 {
22892 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22893 }
22894 return resultobj;
22895 fail:
22896 return NULL;
22897 }
22898
22899
22900 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22901 PyObject *resultobj = 0;
22902 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22903 bool result;
22904 void *argp1 = 0 ;
22905 int res1 = 0 ;
22906 PyObject *swig_obj[1] ;
22907
22908 if (!args) SWIG_fail;
22909 swig_obj[0] = args;
22910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22911 if (!SWIG_IsOK(res1)) {
22912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22913 }
22914 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22915 {
22916 PyThreadState* __tstate = wxPyBeginAllowThreads();
22917 result = (bool)(arg1)->IsToggled();
22918 wxPyEndAllowThreads(__tstate);
22919 if (PyErr_Occurred()) SWIG_fail;
22920 }
22921 {
22922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22923 }
22924 return resultobj;
22925 fail:
22926 return NULL;
22927 }
22928
22929
22930 SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22931 PyObject *resultobj = 0;
22932 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22933 bool result;
22934 void *argp1 = 0 ;
22935 int res1 = 0 ;
22936 PyObject *swig_obj[1] ;
22937
22938 if (!args) SWIG_fail;
22939 swig_obj[0] = args;
22940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22941 if (!SWIG_IsOK(res1)) {
22942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22943 }
22944 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22945 {
22946 PyThreadState* __tstate = wxPyBeginAllowThreads();
22947 result = (bool)(arg1)->CanBeToggled();
22948 wxPyEndAllowThreads(__tstate);
22949 if (PyErr_Occurred()) SWIG_fail;
22950 }
22951 {
22952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22953 }
22954 return resultobj;
22955 fail:
22956 return NULL;
22957 }
22958
22959
22960 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22961 PyObject *resultobj = 0;
22962 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22963 wxBitmap *result = 0 ;
22964 void *argp1 = 0 ;
22965 int res1 = 0 ;
22966 PyObject *swig_obj[1] ;
22967
22968 if (!args) SWIG_fail;
22969 swig_obj[0] = args;
22970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22971 if (!SWIG_IsOK(res1)) {
22972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22973 }
22974 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22975 {
22976 PyThreadState* __tstate = wxPyBeginAllowThreads();
22977 {
22978 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
22979 result = (wxBitmap *) &_result_ref;
22980 }
22981 wxPyEndAllowThreads(__tstate);
22982 if (PyErr_Occurred()) SWIG_fail;
22983 }
22984 {
22985 wxBitmap* resultptr = new wxBitmap(*result);
22986 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22987 }
22988 return resultobj;
22989 fail:
22990 return NULL;
22991 }
22992
22993
22994 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22995 PyObject *resultobj = 0;
22996 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22997 wxBitmap *result = 0 ;
22998 void *argp1 = 0 ;
22999 int res1 = 0 ;
23000 PyObject *swig_obj[1] ;
23001
23002 if (!args) SWIG_fail;
23003 swig_obj[0] = args;
23004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23005 if (!SWIG_IsOK(res1)) {
23006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23007 }
23008 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23009 {
23010 PyThreadState* __tstate = wxPyBeginAllowThreads();
23011 {
23012 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
23013 result = (wxBitmap *) &_result_ref;
23014 }
23015 wxPyEndAllowThreads(__tstate);
23016 if (PyErr_Occurred()) SWIG_fail;
23017 }
23018 {
23019 wxBitmap* resultptr = new wxBitmap(*result);
23020 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23021 }
23022 return resultobj;
23023 fail:
23024 return NULL;
23025 }
23026
23027
23028 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23029 PyObject *resultobj = 0;
23030 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23031 wxBitmap result;
23032 void *argp1 = 0 ;
23033 int res1 = 0 ;
23034 PyObject *swig_obj[1] ;
23035
23036 if (!args) SWIG_fail;
23037 swig_obj[0] = args;
23038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23039 if (!SWIG_IsOK(res1)) {
23040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23041 }
23042 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23043 {
23044 PyThreadState* __tstate = wxPyBeginAllowThreads();
23045 result = (arg1)->GetBitmap();
23046 wxPyEndAllowThreads(__tstate);
23047 if (PyErr_Occurred()) SWIG_fail;
23048 }
23049 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
23050 return resultobj;
23051 fail:
23052 return NULL;
23053 }
23054
23055
23056 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23057 PyObject *resultobj = 0;
23058 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23059 wxString result;
23060 void *argp1 = 0 ;
23061 int res1 = 0 ;
23062 PyObject *swig_obj[1] ;
23063
23064 if (!args) SWIG_fail;
23065 swig_obj[0] = args;
23066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23067 if (!SWIG_IsOK(res1)) {
23068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23069 }
23070 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23071 {
23072 PyThreadState* __tstate = wxPyBeginAllowThreads();
23073 result = (arg1)->GetLabel();
23074 wxPyEndAllowThreads(__tstate);
23075 if (PyErr_Occurred()) SWIG_fail;
23076 }
23077 {
23078 #if wxUSE_UNICODE
23079 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23080 #else
23081 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23082 #endif
23083 }
23084 return resultobj;
23085 fail:
23086 return NULL;
23087 }
23088
23089
23090 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23091 PyObject *resultobj = 0;
23092 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23093 wxString result;
23094 void *argp1 = 0 ;
23095 int res1 = 0 ;
23096 PyObject *swig_obj[1] ;
23097
23098 if (!args) SWIG_fail;
23099 swig_obj[0] = args;
23100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23101 if (!SWIG_IsOK(res1)) {
23102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23103 }
23104 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23105 {
23106 PyThreadState* __tstate = wxPyBeginAllowThreads();
23107 result = (arg1)->GetShortHelp();
23108 wxPyEndAllowThreads(__tstate);
23109 if (PyErr_Occurred()) SWIG_fail;
23110 }
23111 {
23112 #if wxUSE_UNICODE
23113 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23114 #else
23115 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23116 #endif
23117 }
23118 return resultobj;
23119 fail:
23120 return NULL;
23121 }
23122
23123
23124 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23125 PyObject *resultobj = 0;
23126 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23127 wxString result;
23128 void *argp1 = 0 ;
23129 int res1 = 0 ;
23130 PyObject *swig_obj[1] ;
23131
23132 if (!args) SWIG_fail;
23133 swig_obj[0] = args;
23134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23135 if (!SWIG_IsOK(res1)) {
23136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23137 }
23138 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23139 {
23140 PyThreadState* __tstate = wxPyBeginAllowThreads();
23141 result = (arg1)->GetLongHelp();
23142 wxPyEndAllowThreads(__tstate);
23143 if (PyErr_Occurred()) SWIG_fail;
23144 }
23145 {
23146 #if wxUSE_UNICODE
23147 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23148 #else
23149 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23150 #endif
23151 }
23152 return resultobj;
23153 fail:
23154 return NULL;
23155 }
23156
23157
23158 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23159 PyObject *resultobj = 0;
23160 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23161 bool arg2 ;
23162 bool result;
23163 void *argp1 = 0 ;
23164 int res1 = 0 ;
23165 bool val2 ;
23166 int ecode2 = 0 ;
23167 PyObject * obj0 = 0 ;
23168 PyObject * obj1 = 0 ;
23169 char * kwnames[] = {
23170 (char *) "self",(char *) "enable", NULL
23171 };
23172
23173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23175 if (!SWIG_IsOK(res1)) {
23176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23177 }
23178 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23179 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23180 if (!SWIG_IsOK(ecode2)) {
23181 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23182 }
23183 arg2 = static_cast< bool >(val2);
23184 {
23185 PyThreadState* __tstate = wxPyBeginAllowThreads();
23186 result = (bool)(arg1)->Enable(arg2);
23187 wxPyEndAllowThreads(__tstate);
23188 if (PyErr_Occurred()) SWIG_fail;
23189 }
23190 {
23191 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23192 }
23193 return resultobj;
23194 fail:
23195 return NULL;
23196 }
23197
23198
23199 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23200 PyObject *resultobj = 0;
23201 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23202 void *argp1 = 0 ;
23203 int res1 = 0 ;
23204 PyObject *swig_obj[1] ;
23205
23206 if (!args) SWIG_fail;
23207 swig_obj[0] = args;
23208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23209 if (!SWIG_IsOK(res1)) {
23210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23211 }
23212 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23213 {
23214 PyThreadState* __tstate = wxPyBeginAllowThreads();
23215 (arg1)->Toggle();
23216 wxPyEndAllowThreads(__tstate);
23217 if (PyErr_Occurred()) SWIG_fail;
23218 }
23219 resultobj = SWIG_Py_Void();
23220 return resultobj;
23221 fail:
23222 return NULL;
23223 }
23224
23225
23226 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23227 PyObject *resultobj = 0;
23228 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23229 bool arg2 ;
23230 bool result;
23231 void *argp1 = 0 ;
23232 int res1 = 0 ;
23233 bool val2 ;
23234 int ecode2 = 0 ;
23235 PyObject * obj0 = 0 ;
23236 PyObject * obj1 = 0 ;
23237 char * kwnames[] = {
23238 (char *) "self",(char *) "toggle", NULL
23239 };
23240
23241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23243 if (!SWIG_IsOK(res1)) {
23244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23245 }
23246 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23247 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23248 if (!SWIG_IsOK(ecode2)) {
23249 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23250 }
23251 arg2 = static_cast< bool >(val2);
23252 {
23253 PyThreadState* __tstate = wxPyBeginAllowThreads();
23254 result = (bool)(arg1)->SetToggle(arg2);
23255 wxPyEndAllowThreads(__tstate);
23256 if (PyErr_Occurred()) SWIG_fail;
23257 }
23258 {
23259 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23260 }
23261 return resultobj;
23262 fail:
23263 return NULL;
23264 }
23265
23266
23267 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23268 PyObject *resultobj = 0;
23269 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23270 wxString *arg2 = 0 ;
23271 bool result;
23272 void *argp1 = 0 ;
23273 int res1 = 0 ;
23274 bool temp2 = false ;
23275 PyObject * obj0 = 0 ;
23276 PyObject * obj1 = 0 ;
23277 char * kwnames[] = {
23278 (char *) "self",(char *) "help", NULL
23279 };
23280
23281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23283 if (!SWIG_IsOK(res1)) {
23284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23285 }
23286 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23287 {
23288 arg2 = wxString_in_helper(obj1);
23289 if (arg2 == NULL) SWIG_fail;
23290 temp2 = true;
23291 }
23292 {
23293 PyThreadState* __tstate = wxPyBeginAllowThreads();
23294 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23295 wxPyEndAllowThreads(__tstate);
23296 if (PyErr_Occurred()) SWIG_fail;
23297 }
23298 {
23299 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23300 }
23301 {
23302 if (temp2)
23303 delete arg2;
23304 }
23305 return resultobj;
23306 fail:
23307 {
23308 if (temp2)
23309 delete arg2;
23310 }
23311 return NULL;
23312 }
23313
23314
23315 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23316 PyObject *resultobj = 0;
23317 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23318 wxString *arg2 = 0 ;
23319 bool result;
23320 void *argp1 = 0 ;
23321 int res1 = 0 ;
23322 bool temp2 = false ;
23323 PyObject * obj0 = 0 ;
23324 PyObject * obj1 = 0 ;
23325 char * kwnames[] = {
23326 (char *) "self",(char *) "help", NULL
23327 };
23328
23329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23331 if (!SWIG_IsOK(res1)) {
23332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23333 }
23334 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23335 {
23336 arg2 = wxString_in_helper(obj1);
23337 if (arg2 == NULL) SWIG_fail;
23338 temp2 = true;
23339 }
23340 {
23341 PyThreadState* __tstate = wxPyBeginAllowThreads();
23342 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23343 wxPyEndAllowThreads(__tstate);
23344 if (PyErr_Occurred()) SWIG_fail;
23345 }
23346 {
23347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23348 }
23349 {
23350 if (temp2)
23351 delete arg2;
23352 }
23353 return resultobj;
23354 fail:
23355 {
23356 if (temp2)
23357 delete arg2;
23358 }
23359 return NULL;
23360 }
23361
23362
23363 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23364 PyObject *resultobj = 0;
23365 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23366 wxBitmap *arg2 = 0 ;
23367 void *argp1 = 0 ;
23368 int res1 = 0 ;
23369 void *argp2 = 0 ;
23370 int res2 = 0 ;
23371 PyObject * obj0 = 0 ;
23372 PyObject * obj1 = 0 ;
23373 char * kwnames[] = {
23374 (char *) "self",(char *) "bmp", NULL
23375 };
23376
23377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23379 if (!SWIG_IsOK(res1)) {
23380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23381 }
23382 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23383 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23384 if (!SWIG_IsOK(res2)) {
23385 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23386 }
23387 if (!argp2) {
23388 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23389 }
23390 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23391 {
23392 PyThreadState* __tstate = wxPyBeginAllowThreads();
23393 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23394 wxPyEndAllowThreads(__tstate);
23395 if (PyErr_Occurred()) SWIG_fail;
23396 }
23397 resultobj = SWIG_Py_Void();
23398 return resultobj;
23399 fail:
23400 return NULL;
23401 }
23402
23403
23404 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23405 PyObject *resultobj = 0;
23406 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23407 wxBitmap *arg2 = 0 ;
23408 void *argp1 = 0 ;
23409 int res1 = 0 ;
23410 void *argp2 = 0 ;
23411 int res2 = 0 ;
23412 PyObject * obj0 = 0 ;
23413 PyObject * obj1 = 0 ;
23414 char * kwnames[] = {
23415 (char *) "self",(char *) "bmp", NULL
23416 };
23417
23418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23420 if (!SWIG_IsOK(res1)) {
23421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23422 }
23423 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23424 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23425 if (!SWIG_IsOK(res2)) {
23426 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23427 }
23428 if (!argp2) {
23429 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23430 }
23431 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23432 {
23433 PyThreadState* __tstate = wxPyBeginAllowThreads();
23434 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23435 wxPyEndAllowThreads(__tstate);
23436 if (PyErr_Occurred()) SWIG_fail;
23437 }
23438 resultobj = SWIG_Py_Void();
23439 return resultobj;
23440 fail:
23441 return NULL;
23442 }
23443
23444
23445 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23446 PyObject *resultobj = 0;
23447 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23448 wxString *arg2 = 0 ;
23449 void *argp1 = 0 ;
23450 int res1 = 0 ;
23451 bool temp2 = false ;
23452 PyObject * obj0 = 0 ;
23453 PyObject * obj1 = 0 ;
23454 char * kwnames[] = {
23455 (char *) "self",(char *) "label", NULL
23456 };
23457
23458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23460 if (!SWIG_IsOK(res1)) {
23461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23462 }
23463 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23464 {
23465 arg2 = wxString_in_helper(obj1);
23466 if (arg2 == NULL) SWIG_fail;
23467 temp2 = true;
23468 }
23469 {
23470 PyThreadState* __tstate = wxPyBeginAllowThreads();
23471 (arg1)->SetLabel((wxString const &)*arg2);
23472 wxPyEndAllowThreads(__tstate);
23473 if (PyErr_Occurred()) SWIG_fail;
23474 }
23475 resultobj = SWIG_Py_Void();
23476 {
23477 if (temp2)
23478 delete arg2;
23479 }
23480 return resultobj;
23481 fail:
23482 {
23483 if (temp2)
23484 delete arg2;
23485 }
23486 return NULL;
23487 }
23488
23489
23490 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23491 PyObject *resultobj = 0;
23492 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23493 void *argp1 = 0 ;
23494 int res1 = 0 ;
23495 PyObject *swig_obj[1] ;
23496
23497 if (!args) SWIG_fail;
23498 swig_obj[0] = args;
23499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23500 if (!SWIG_IsOK(res1)) {
23501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23502 }
23503 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23504 {
23505 PyThreadState* __tstate = wxPyBeginAllowThreads();
23506 (arg1)->Detach();
23507 wxPyEndAllowThreads(__tstate);
23508 if (PyErr_Occurred()) SWIG_fail;
23509 }
23510 resultobj = SWIG_Py_Void();
23511 return resultobj;
23512 fail:
23513 return NULL;
23514 }
23515
23516
23517 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23518 PyObject *resultobj = 0;
23519 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23520 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23521 void *argp1 = 0 ;
23522 int res1 = 0 ;
23523 void *argp2 = 0 ;
23524 int res2 = 0 ;
23525 PyObject * obj0 = 0 ;
23526 PyObject * obj1 = 0 ;
23527 char * kwnames[] = {
23528 (char *) "self",(char *) "tbar", NULL
23529 };
23530
23531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23533 if (!SWIG_IsOK(res1)) {
23534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23535 }
23536 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23537 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23538 if (!SWIG_IsOK(res2)) {
23539 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23540 }
23541 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23542 {
23543 PyThreadState* __tstate = wxPyBeginAllowThreads();
23544 (arg1)->Attach(arg2);
23545 wxPyEndAllowThreads(__tstate);
23546 if (PyErr_Occurred()) SWIG_fail;
23547 }
23548 resultobj = SWIG_Py_Void();
23549 return resultobj;
23550 fail:
23551 return NULL;
23552 }
23553
23554
23555 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23556 PyObject *resultobj = 0;
23557 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23558 PyObject *result = 0 ;
23559 void *argp1 = 0 ;
23560 int res1 = 0 ;
23561 PyObject *swig_obj[1] ;
23562
23563 if (!args) SWIG_fail;
23564 swig_obj[0] = args;
23565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23566 if (!SWIG_IsOK(res1)) {
23567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23568 }
23569 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23570 {
23571 PyThreadState* __tstate = wxPyBeginAllowThreads();
23572 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23573 wxPyEndAllowThreads(__tstate);
23574 if (PyErr_Occurred()) SWIG_fail;
23575 }
23576 resultobj = result;
23577 return resultobj;
23578 fail:
23579 return NULL;
23580 }
23581
23582
23583 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23584 PyObject *resultobj = 0;
23585 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23586 PyObject *arg2 = (PyObject *) 0 ;
23587 void *argp1 = 0 ;
23588 int res1 = 0 ;
23589 PyObject * obj0 = 0 ;
23590 PyObject * obj1 = 0 ;
23591 char * kwnames[] = {
23592 (char *) "self",(char *) "clientData", NULL
23593 };
23594
23595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23597 if (!SWIG_IsOK(res1)) {
23598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23599 }
23600 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23601 arg2 = obj1;
23602 {
23603 PyThreadState* __tstate = wxPyBeginAllowThreads();
23604 wxToolBarToolBase_SetClientData(arg1,arg2);
23605 wxPyEndAllowThreads(__tstate);
23606 if (PyErr_Occurred()) SWIG_fail;
23607 }
23608 resultobj = SWIG_Py_Void();
23609 return resultobj;
23610 fail:
23611 return NULL;
23612 }
23613
23614
23615 SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23616 PyObject *obj;
23617 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23618 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23619 return SWIG_Py_Void();
23620 }
23621
23622 SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23623 PyObject *resultobj = 0;
23624 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23625 int arg2 ;
23626 wxString *arg3 = 0 ;
23627 wxBitmap *arg4 = 0 ;
23628 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23629 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23630 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23631 wxString const &arg7_defvalue = wxPyEmptyString ;
23632 wxString *arg7 = (wxString *) &arg7_defvalue ;
23633 wxString const &arg8_defvalue = wxPyEmptyString ;
23634 wxString *arg8 = (wxString *) &arg8_defvalue ;
23635 PyObject *arg9 = (PyObject *) NULL ;
23636 wxToolBarToolBase *result = 0 ;
23637 void *argp1 = 0 ;
23638 int res1 = 0 ;
23639 int val2 ;
23640 int ecode2 = 0 ;
23641 bool temp3 = false ;
23642 void *argp4 = 0 ;
23643 int res4 = 0 ;
23644 void *argp5 = 0 ;
23645 int res5 = 0 ;
23646 int val6 ;
23647 int ecode6 = 0 ;
23648 bool temp7 = false ;
23649 bool temp8 = false ;
23650 PyObject * obj0 = 0 ;
23651 PyObject * obj1 = 0 ;
23652 PyObject * obj2 = 0 ;
23653 PyObject * obj3 = 0 ;
23654 PyObject * obj4 = 0 ;
23655 PyObject * obj5 = 0 ;
23656 PyObject * obj6 = 0 ;
23657 PyObject * obj7 = 0 ;
23658 PyObject * obj8 = 0 ;
23659 char * kwnames[] = {
23660 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23661 };
23662
23663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23665 if (!SWIG_IsOK(res1)) {
23666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23667 }
23668 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23669 ecode2 = SWIG_AsVal_int(obj1, &val2);
23670 if (!SWIG_IsOK(ecode2)) {
23671 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23672 }
23673 arg2 = static_cast< int >(val2);
23674 {
23675 arg3 = wxString_in_helper(obj2);
23676 if (arg3 == NULL) SWIG_fail;
23677 temp3 = true;
23678 }
23679 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23680 if (!SWIG_IsOK(res4)) {
23681 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23682 }
23683 if (!argp4) {
23684 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23685 }
23686 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23687 if (obj4) {
23688 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23689 if (!SWIG_IsOK(res5)) {
23690 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23691 }
23692 if (!argp5) {
23693 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23694 }
23695 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23696 }
23697 if (obj5) {
23698 ecode6 = SWIG_AsVal_int(obj5, &val6);
23699 if (!SWIG_IsOK(ecode6)) {
23700 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23701 }
23702 arg6 = static_cast< wxItemKind >(val6);
23703 }
23704 if (obj6) {
23705 {
23706 arg7 = wxString_in_helper(obj6);
23707 if (arg7 == NULL) SWIG_fail;
23708 temp7 = true;
23709 }
23710 }
23711 if (obj7) {
23712 {
23713 arg8 = wxString_in_helper(obj7);
23714 if (arg8 == NULL) SWIG_fail;
23715 temp8 = true;
23716 }
23717 }
23718 if (obj8) {
23719 arg9 = obj8;
23720 }
23721 {
23722 PyThreadState* __tstate = wxPyBeginAllowThreads();
23723 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23724 wxPyEndAllowThreads(__tstate);
23725 if (PyErr_Occurred()) SWIG_fail;
23726 }
23727 {
23728 resultobj = wxPyMake_wxObject(result, (bool)0);
23729 }
23730 {
23731 if (temp3)
23732 delete arg3;
23733 }
23734 {
23735 if (temp7)
23736 delete arg7;
23737 }
23738 {
23739 if (temp8)
23740 delete arg8;
23741 }
23742 return resultobj;
23743 fail:
23744 {
23745 if (temp3)
23746 delete arg3;
23747 }
23748 {
23749 if (temp7)
23750 delete arg7;
23751 }
23752 {
23753 if (temp8)
23754 delete arg8;
23755 }
23756 return NULL;
23757 }
23758
23759
23760 SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23761 PyObject *resultobj = 0;
23762 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23763 size_t arg2 ;
23764 int arg3 ;
23765 wxString *arg4 = 0 ;
23766 wxBitmap *arg5 = 0 ;
23767 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23768 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23769 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23770 wxString const &arg8_defvalue = wxPyEmptyString ;
23771 wxString *arg8 = (wxString *) &arg8_defvalue ;
23772 wxString const &arg9_defvalue = wxPyEmptyString ;
23773 wxString *arg9 = (wxString *) &arg9_defvalue ;
23774 PyObject *arg10 = (PyObject *) NULL ;
23775 wxToolBarToolBase *result = 0 ;
23776 void *argp1 = 0 ;
23777 int res1 = 0 ;
23778 size_t val2 ;
23779 int ecode2 = 0 ;
23780 int val3 ;
23781 int ecode3 = 0 ;
23782 bool temp4 = false ;
23783 void *argp5 = 0 ;
23784 int res5 = 0 ;
23785 void *argp6 = 0 ;
23786 int res6 = 0 ;
23787 int val7 ;
23788 int ecode7 = 0 ;
23789 bool temp8 = false ;
23790 bool temp9 = false ;
23791 PyObject * obj0 = 0 ;
23792 PyObject * obj1 = 0 ;
23793 PyObject * obj2 = 0 ;
23794 PyObject * obj3 = 0 ;
23795 PyObject * obj4 = 0 ;
23796 PyObject * obj5 = 0 ;
23797 PyObject * obj6 = 0 ;
23798 PyObject * obj7 = 0 ;
23799 PyObject * obj8 = 0 ;
23800 PyObject * obj9 = 0 ;
23801 char * kwnames[] = {
23802 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23803 };
23804
23805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23807 if (!SWIG_IsOK(res1)) {
23808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23809 }
23810 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23811 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23812 if (!SWIG_IsOK(ecode2)) {
23813 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23814 }
23815 arg2 = static_cast< size_t >(val2);
23816 ecode3 = SWIG_AsVal_int(obj2, &val3);
23817 if (!SWIG_IsOK(ecode3)) {
23818 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23819 }
23820 arg3 = static_cast< int >(val3);
23821 {
23822 arg4 = wxString_in_helper(obj3);
23823 if (arg4 == NULL) SWIG_fail;
23824 temp4 = true;
23825 }
23826 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23827 if (!SWIG_IsOK(res5)) {
23828 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23829 }
23830 if (!argp5) {
23831 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23832 }
23833 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23834 if (obj5) {
23835 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23836 if (!SWIG_IsOK(res6)) {
23837 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23838 }
23839 if (!argp6) {
23840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23841 }
23842 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23843 }
23844 if (obj6) {
23845 ecode7 = SWIG_AsVal_int(obj6, &val7);
23846 if (!SWIG_IsOK(ecode7)) {
23847 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23848 }
23849 arg7 = static_cast< wxItemKind >(val7);
23850 }
23851 if (obj7) {
23852 {
23853 arg8 = wxString_in_helper(obj7);
23854 if (arg8 == NULL) SWIG_fail;
23855 temp8 = true;
23856 }
23857 }
23858 if (obj8) {
23859 {
23860 arg9 = wxString_in_helper(obj8);
23861 if (arg9 == NULL) SWIG_fail;
23862 temp9 = true;
23863 }
23864 }
23865 if (obj9) {
23866 arg10 = obj9;
23867 }
23868 {
23869 PyThreadState* __tstate = wxPyBeginAllowThreads();
23870 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
23871 wxPyEndAllowThreads(__tstate);
23872 if (PyErr_Occurred()) SWIG_fail;
23873 }
23874 {
23875 resultobj = wxPyMake_wxObject(result, (bool)0);
23876 }
23877 {
23878 if (temp4)
23879 delete arg4;
23880 }
23881 {
23882 if (temp8)
23883 delete arg8;
23884 }
23885 {
23886 if (temp9)
23887 delete arg9;
23888 }
23889 return resultobj;
23890 fail:
23891 {
23892 if (temp4)
23893 delete arg4;
23894 }
23895 {
23896 if (temp8)
23897 delete arg8;
23898 }
23899 {
23900 if (temp9)
23901 delete arg9;
23902 }
23903 return NULL;
23904 }
23905
23906
23907 SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23908 PyObject *resultobj = 0;
23909 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23910 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
23911 wxToolBarToolBase *result = 0 ;
23912 void *argp1 = 0 ;
23913 int res1 = 0 ;
23914 void *argp2 = 0 ;
23915 int res2 = 0 ;
23916 PyObject * obj0 = 0 ;
23917 PyObject * obj1 = 0 ;
23918 char * kwnames[] = {
23919 (char *) "self",(char *) "tool", NULL
23920 };
23921
23922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
23923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23924 if (!SWIG_IsOK(res1)) {
23925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23926 }
23927 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23928 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23929 if (!SWIG_IsOK(res2)) {
23930 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
23931 }
23932 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
23933 {
23934 PyThreadState* __tstate = wxPyBeginAllowThreads();
23935 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
23936 wxPyEndAllowThreads(__tstate);
23937 if (PyErr_Occurred()) SWIG_fail;
23938 }
23939 {
23940 resultobj = wxPyMake_wxObject(result, (bool)0);
23941 }
23942 return resultobj;
23943 fail:
23944 return NULL;
23945 }
23946
23947
23948 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23949 PyObject *resultobj = 0;
23950 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23951 size_t arg2 ;
23952 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
23953 wxToolBarToolBase *result = 0 ;
23954 void *argp1 = 0 ;
23955 int res1 = 0 ;
23956 size_t val2 ;
23957 int ecode2 = 0 ;
23958 void *argp3 = 0 ;
23959 int res3 = 0 ;
23960 PyObject * obj0 = 0 ;
23961 PyObject * obj1 = 0 ;
23962 PyObject * obj2 = 0 ;
23963 char * kwnames[] = {
23964 (char *) "self",(char *) "pos",(char *) "tool", NULL
23965 };
23966
23967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23969 if (!SWIG_IsOK(res1)) {
23970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23971 }
23972 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23973 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23974 if (!SWIG_IsOK(ecode2)) {
23975 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
23976 }
23977 arg2 = static_cast< size_t >(val2);
23978 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23979 if (!SWIG_IsOK(res3)) {
23980 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
23981 }
23982 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
23983 {
23984 PyThreadState* __tstate = wxPyBeginAllowThreads();
23985 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
23986 wxPyEndAllowThreads(__tstate);
23987 if (PyErr_Occurred()) SWIG_fail;
23988 }
23989 {
23990 resultobj = wxPyMake_wxObject(result, (bool)0);
23991 }
23992 return resultobj;
23993 fail:
23994 return NULL;
23995 }
23996
23997
23998 SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23999 PyObject *resultobj = 0;
24000 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24001 wxControl *arg2 = (wxControl *) 0 ;
24002 wxToolBarToolBase *result = 0 ;
24003 void *argp1 = 0 ;
24004 int res1 = 0 ;
24005 void *argp2 = 0 ;
24006 int res2 = 0 ;
24007 PyObject * obj0 = 0 ;
24008 PyObject * obj1 = 0 ;
24009 char * kwnames[] = {
24010 (char *) "self",(char *) "control", NULL
24011 };
24012
24013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
24014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24015 if (!SWIG_IsOK(res1)) {
24016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24017 }
24018 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24019 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
24020 if (!SWIG_IsOK(res2)) {
24021 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
24022 }
24023 arg2 = reinterpret_cast< wxControl * >(argp2);
24024 {
24025 PyThreadState* __tstate = wxPyBeginAllowThreads();
24026 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
24027 wxPyEndAllowThreads(__tstate);
24028 if (PyErr_Occurred()) SWIG_fail;
24029 }
24030 {
24031 resultobj = wxPyMake_wxObject(result, (bool)0);
24032 }
24033 return resultobj;
24034 fail:
24035 return NULL;
24036 }
24037
24038
24039 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24040 PyObject *resultobj = 0;
24041 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24042 size_t arg2 ;
24043 wxControl *arg3 = (wxControl *) 0 ;
24044 wxToolBarToolBase *result = 0 ;
24045 void *argp1 = 0 ;
24046 int res1 = 0 ;
24047 size_t val2 ;
24048 int ecode2 = 0 ;
24049 void *argp3 = 0 ;
24050 int res3 = 0 ;
24051 PyObject * obj0 = 0 ;
24052 PyObject * obj1 = 0 ;
24053 PyObject * obj2 = 0 ;
24054 char * kwnames[] = {
24055 (char *) "self",(char *) "pos",(char *) "control", NULL
24056 };
24057
24058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24060 if (!SWIG_IsOK(res1)) {
24061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24062 }
24063 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24064 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24065 if (!SWIG_IsOK(ecode2)) {
24066 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
24067 }
24068 arg2 = static_cast< size_t >(val2);
24069 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
24070 if (!SWIG_IsOK(res3)) {
24071 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
24072 }
24073 arg3 = reinterpret_cast< wxControl * >(argp3);
24074 {
24075 PyThreadState* __tstate = wxPyBeginAllowThreads();
24076 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
24077 wxPyEndAllowThreads(__tstate);
24078 if (PyErr_Occurred()) SWIG_fail;
24079 }
24080 {
24081 resultobj = wxPyMake_wxObject(result, (bool)0);
24082 }
24083 return resultobj;
24084 fail:
24085 return NULL;
24086 }
24087
24088
24089 SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24090 PyObject *resultobj = 0;
24091 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24092 int arg2 ;
24093 wxControl *result = 0 ;
24094 void *argp1 = 0 ;
24095 int res1 = 0 ;
24096 int val2 ;
24097 int ecode2 = 0 ;
24098 PyObject * obj0 = 0 ;
24099 PyObject * obj1 = 0 ;
24100 char * kwnames[] = {
24101 (char *) "self",(char *) "id", NULL
24102 };
24103
24104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
24105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24106 if (!SWIG_IsOK(res1)) {
24107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24108 }
24109 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24110 ecode2 = SWIG_AsVal_int(obj1, &val2);
24111 if (!SWIG_IsOK(ecode2)) {
24112 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
24113 }
24114 arg2 = static_cast< int >(val2);
24115 {
24116 PyThreadState* __tstate = wxPyBeginAllowThreads();
24117 result = (wxControl *)(arg1)->FindControl(arg2);
24118 wxPyEndAllowThreads(__tstate);
24119 if (PyErr_Occurred()) SWIG_fail;
24120 }
24121 {
24122 resultobj = wxPyMake_wxObject(result, 0);
24123 }
24124 return resultobj;
24125 fail:
24126 return NULL;
24127 }
24128
24129
24130 SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24131 PyObject *resultobj = 0;
24132 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24133 wxToolBarToolBase *result = 0 ;
24134 void *argp1 = 0 ;
24135 int res1 = 0 ;
24136 PyObject *swig_obj[1] ;
24137
24138 if (!args) SWIG_fail;
24139 swig_obj[0] = args;
24140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24141 if (!SWIG_IsOK(res1)) {
24142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24143 }
24144 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24145 {
24146 PyThreadState* __tstate = wxPyBeginAllowThreads();
24147 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24148 wxPyEndAllowThreads(__tstate);
24149 if (PyErr_Occurred()) SWIG_fail;
24150 }
24151 {
24152 resultobj = wxPyMake_wxObject(result, (bool)0);
24153 }
24154 return resultobj;
24155 fail:
24156 return NULL;
24157 }
24158
24159
24160 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24161 PyObject *resultobj = 0;
24162 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24163 size_t arg2 ;
24164 wxToolBarToolBase *result = 0 ;
24165 void *argp1 = 0 ;
24166 int res1 = 0 ;
24167 size_t val2 ;
24168 int ecode2 = 0 ;
24169 PyObject * obj0 = 0 ;
24170 PyObject * obj1 = 0 ;
24171 char * kwnames[] = {
24172 (char *) "self",(char *) "pos", NULL
24173 };
24174
24175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24177 if (!SWIG_IsOK(res1)) {
24178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24179 }
24180 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24181 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24182 if (!SWIG_IsOK(ecode2)) {
24183 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24184 }
24185 arg2 = static_cast< size_t >(val2);
24186 {
24187 PyThreadState* __tstate = wxPyBeginAllowThreads();
24188 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24189 wxPyEndAllowThreads(__tstate);
24190 if (PyErr_Occurred()) SWIG_fail;
24191 }
24192 {
24193 resultobj = wxPyMake_wxObject(result, (bool)0);
24194 }
24195 return resultobj;
24196 fail:
24197 return NULL;
24198 }
24199
24200
24201 SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24202 PyObject *resultobj = 0;
24203 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24204 int arg2 ;
24205 wxToolBarToolBase *result = 0 ;
24206 void *argp1 = 0 ;
24207 int res1 = 0 ;
24208 int val2 ;
24209 int ecode2 = 0 ;
24210 PyObject * obj0 = 0 ;
24211 PyObject * obj1 = 0 ;
24212 char * kwnames[] = {
24213 (char *) "self",(char *) "id", NULL
24214 };
24215
24216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24218 if (!SWIG_IsOK(res1)) {
24219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24220 }
24221 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24222 ecode2 = SWIG_AsVal_int(obj1, &val2);
24223 if (!SWIG_IsOK(ecode2)) {
24224 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24225 }
24226 arg2 = static_cast< int >(val2);
24227 {
24228 PyThreadState* __tstate = wxPyBeginAllowThreads();
24229 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24230 wxPyEndAllowThreads(__tstate);
24231 if (PyErr_Occurred()) SWIG_fail;
24232 }
24233 {
24234 resultobj = wxPyMake_wxObject(result, (bool)0);
24235 }
24236 return resultobj;
24237 fail:
24238 return NULL;
24239 }
24240
24241
24242 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24243 PyObject *resultobj = 0;
24244 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24245 size_t arg2 ;
24246 bool result;
24247 void *argp1 = 0 ;
24248 int res1 = 0 ;
24249 size_t val2 ;
24250 int ecode2 = 0 ;
24251 PyObject * obj0 = 0 ;
24252 PyObject * obj1 = 0 ;
24253 char * kwnames[] = {
24254 (char *) "self",(char *) "pos", NULL
24255 };
24256
24257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24259 if (!SWIG_IsOK(res1)) {
24260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24261 }
24262 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24263 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24264 if (!SWIG_IsOK(ecode2)) {
24265 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24266 }
24267 arg2 = static_cast< size_t >(val2);
24268 {
24269 PyThreadState* __tstate = wxPyBeginAllowThreads();
24270 result = (bool)(arg1)->DeleteToolByPos(arg2);
24271 wxPyEndAllowThreads(__tstate);
24272 if (PyErr_Occurred()) SWIG_fail;
24273 }
24274 {
24275 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24276 }
24277 return resultobj;
24278 fail:
24279 return NULL;
24280 }
24281
24282
24283 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24284 PyObject *resultobj = 0;
24285 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24286 int arg2 ;
24287 bool result;
24288 void *argp1 = 0 ;
24289 int res1 = 0 ;
24290 int val2 ;
24291 int ecode2 = 0 ;
24292 PyObject * obj0 = 0 ;
24293 PyObject * obj1 = 0 ;
24294 char * kwnames[] = {
24295 (char *) "self",(char *) "id", NULL
24296 };
24297
24298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24300 if (!SWIG_IsOK(res1)) {
24301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24302 }
24303 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24304 ecode2 = SWIG_AsVal_int(obj1, &val2);
24305 if (!SWIG_IsOK(ecode2)) {
24306 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24307 }
24308 arg2 = static_cast< int >(val2);
24309 {
24310 PyThreadState* __tstate = wxPyBeginAllowThreads();
24311 result = (bool)(arg1)->DeleteTool(arg2);
24312 wxPyEndAllowThreads(__tstate);
24313 if (PyErr_Occurred()) SWIG_fail;
24314 }
24315 {
24316 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24317 }
24318 return resultobj;
24319 fail:
24320 return NULL;
24321 }
24322
24323
24324 SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24325 PyObject *resultobj = 0;
24326 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24327 void *argp1 = 0 ;
24328 int res1 = 0 ;
24329 PyObject *swig_obj[1] ;
24330
24331 if (!args) SWIG_fail;
24332 swig_obj[0] = args;
24333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24334 if (!SWIG_IsOK(res1)) {
24335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24336 }
24337 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24338 {
24339 PyThreadState* __tstate = wxPyBeginAllowThreads();
24340 (arg1)->ClearTools();
24341 wxPyEndAllowThreads(__tstate);
24342 if (PyErr_Occurred()) SWIG_fail;
24343 }
24344 resultobj = SWIG_Py_Void();
24345 return resultobj;
24346 fail:
24347 return NULL;
24348 }
24349
24350
24351 SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24352 PyObject *resultobj = 0;
24353 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24354 bool result;
24355 void *argp1 = 0 ;
24356 int res1 = 0 ;
24357 PyObject *swig_obj[1] ;
24358
24359 if (!args) SWIG_fail;
24360 swig_obj[0] = args;
24361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24362 if (!SWIG_IsOK(res1)) {
24363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24364 }
24365 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24366 {
24367 PyThreadState* __tstate = wxPyBeginAllowThreads();
24368 result = (bool)(arg1)->Realize();
24369 wxPyEndAllowThreads(__tstate);
24370 if (PyErr_Occurred()) SWIG_fail;
24371 }
24372 {
24373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24374 }
24375 return resultobj;
24376 fail:
24377 return NULL;
24378 }
24379
24380
24381 SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24382 PyObject *resultobj = 0;
24383 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24384 int arg2 ;
24385 bool arg3 ;
24386 void *argp1 = 0 ;
24387 int res1 = 0 ;
24388 int val2 ;
24389 int ecode2 = 0 ;
24390 bool val3 ;
24391 int ecode3 = 0 ;
24392 PyObject * obj0 = 0 ;
24393 PyObject * obj1 = 0 ;
24394 PyObject * obj2 = 0 ;
24395 char * kwnames[] = {
24396 (char *) "self",(char *) "id",(char *) "enable", NULL
24397 };
24398
24399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24401 if (!SWIG_IsOK(res1)) {
24402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24403 }
24404 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24405 ecode2 = SWIG_AsVal_int(obj1, &val2);
24406 if (!SWIG_IsOK(ecode2)) {
24407 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24408 }
24409 arg2 = static_cast< int >(val2);
24410 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24411 if (!SWIG_IsOK(ecode3)) {
24412 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24413 }
24414 arg3 = static_cast< bool >(val3);
24415 {
24416 PyThreadState* __tstate = wxPyBeginAllowThreads();
24417 (arg1)->EnableTool(arg2,arg3);
24418 wxPyEndAllowThreads(__tstate);
24419 if (PyErr_Occurred()) SWIG_fail;
24420 }
24421 resultobj = SWIG_Py_Void();
24422 return resultobj;
24423 fail:
24424 return NULL;
24425 }
24426
24427
24428 SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24429 PyObject *resultobj = 0;
24430 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24431 int arg2 ;
24432 bool arg3 ;
24433 void *argp1 = 0 ;
24434 int res1 = 0 ;
24435 int val2 ;
24436 int ecode2 = 0 ;
24437 bool val3 ;
24438 int ecode3 = 0 ;
24439 PyObject * obj0 = 0 ;
24440 PyObject * obj1 = 0 ;
24441 PyObject * obj2 = 0 ;
24442 char * kwnames[] = {
24443 (char *) "self",(char *) "id",(char *) "toggle", NULL
24444 };
24445
24446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24448 if (!SWIG_IsOK(res1)) {
24449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24450 }
24451 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24452 ecode2 = SWIG_AsVal_int(obj1, &val2);
24453 if (!SWIG_IsOK(ecode2)) {
24454 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24455 }
24456 arg2 = static_cast< int >(val2);
24457 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24458 if (!SWIG_IsOK(ecode3)) {
24459 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24460 }
24461 arg3 = static_cast< bool >(val3);
24462 {
24463 PyThreadState* __tstate = wxPyBeginAllowThreads();
24464 (arg1)->ToggleTool(arg2,arg3);
24465 wxPyEndAllowThreads(__tstate);
24466 if (PyErr_Occurred()) SWIG_fail;
24467 }
24468 resultobj = SWIG_Py_Void();
24469 return resultobj;
24470 fail:
24471 return NULL;
24472 }
24473
24474
24475 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24476 PyObject *resultobj = 0;
24477 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24478 int arg2 ;
24479 bool arg3 ;
24480 void *argp1 = 0 ;
24481 int res1 = 0 ;
24482 int val2 ;
24483 int ecode2 = 0 ;
24484 bool val3 ;
24485 int ecode3 = 0 ;
24486 PyObject * obj0 = 0 ;
24487 PyObject * obj1 = 0 ;
24488 PyObject * obj2 = 0 ;
24489 char * kwnames[] = {
24490 (char *) "self",(char *) "id",(char *) "toggle", NULL
24491 };
24492
24493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24495 if (!SWIG_IsOK(res1)) {
24496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24497 }
24498 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24499 ecode2 = SWIG_AsVal_int(obj1, &val2);
24500 if (!SWIG_IsOK(ecode2)) {
24501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24502 }
24503 arg2 = static_cast< int >(val2);
24504 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24505 if (!SWIG_IsOK(ecode3)) {
24506 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24507 }
24508 arg3 = static_cast< bool >(val3);
24509 {
24510 PyThreadState* __tstate = wxPyBeginAllowThreads();
24511 (arg1)->SetToggle(arg2,arg3);
24512 wxPyEndAllowThreads(__tstate);
24513 if (PyErr_Occurred()) SWIG_fail;
24514 }
24515 resultobj = SWIG_Py_Void();
24516 return resultobj;
24517 fail:
24518 return NULL;
24519 }
24520
24521
24522 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24523 PyObject *resultobj = 0;
24524 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24525 int arg2 ;
24526 PyObject *result = 0 ;
24527 void *argp1 = 0 ;
24528 int res1 = 0 ;
24529 int val2 ;
24530 int ecode2 = 0 ;
24531 PyObject * obj0 = 0 ;
24532 PyObject * obj1 = 0 ;
24533 char * kwnames[] = {
24534 (char *) "self",(char *) "id", NULL
24535 };
24536
24537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24539 if (!SWIG_IsOK(res1)) {
24540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24541 }
24542 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24543 ecode2 = SWIG_AsVal_int(obj1, &val2);
24544 if (!SWIG_IsOK(ecode2)) {
24545 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24546 }
24547 arg2 = static_cast< int >(val2);
24548 {
24549 PyThreadState* __tstate = wxPyBeginAllowThreads();
24550 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24551 wxPyEndAllowThreads(__tstate);
24552 if (PyErr_Occurred()) SWIG_fail;
24553 }
24554 resultobj = result;
24555 return resultobj;
24556 fail:
24557 return NULL;
24558 }
24559
24560
24561 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24562 PyObject *resultobj = 0;
24563 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24564 int arg2 ;
24565 PyObject *arg3 = (PyObject *) 0 ;
24566 void *argp1 = 0 ;
24567 int res1 = 0 ;
24568 int val2 ;
24569 int ecode2 = 0 ;
24570 PyObject * obj0 = 0 ;
24571 PyObject * obj1 = 0 ;
24572 PyObject * obj2 = 0 ;
24573 char * kwnames[] = {
24574 (char *) "self",(char *) "id",(char *) "clientData", NULL
24575 };
24576
24577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24579 if (!SWIG_IsOK(res1)) {
24580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24581 }
24582 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24583 ecode2 = SWIG_AsVal_int(obj1, &val2);
24584 if (!SWIG_IsOK(ecode2)) {
24585 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24586 }
24587 arg2 = static_cast< int >(val2);
24588 arg3 = obj2;
24589 {
24590 PyThreadState* __tstate = wxPyBeginAllowThreads();
24591 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24592 wxPyEndAllowThreads(__tstate);
24593 if (PyErr_Occurred()) SWIG_fail;
24594 }
24595 resultobj = SWIG_Py_Void();
24596 return resultobj;
24597 fail:
24598 return NULL;
24599 }
24600
24601
24602 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24603 PyObject *resultobj = 0;
24604 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24605 int arg2 ;
24606 int result;
24607 void *argp1 = 0 ;
24608 int res1 = 0 ;
24609 int val2 ;
24610 int ecode2 = 0 ;
24611 PyObject * obj0 = 0 ;
24612 PyObject * obj1 = 0 ;
24613 char * kwnames[] = {
24614 (char *) "self",(char *) "id", NULL
24615 };
24616
24617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24619 if (!SWIG_IsOK(res1)) {
24620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24621 }
24622 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24623 ecode2 = SWIG_AsVal_int(obj1, &val2);
24624 if (!SWIG_IsOK(ecode2)) {
24625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24626 }
24627 arg2 = static_cast< int >(val2);
24628 {
24629 PyThreadState* __tstate = wxPyBeginAllowThreads();
24630 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24631 wxPyEndAllowThreads(__tstate);
24632 if (PyErr_Occurred()) SWIG_fail;
24633 }
24634 resultobj = SWIG_From_int(static_cast< int >(result));
24635 return resultobj;
24636 fail:
24637 return NULL;
24638 }
24639
24640
24641 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24642 PyObject *resultobj = 0;
24643 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24644 int arg2 ;
24645 bool result;
24646 void *argp1 = 0 ;
24647 int res1 = 0 ;
24648 int val2 ;
24649 int ecode2 = 0 ;
24650 PyObject * obj0 = 0 ;
24651 PyObject * obj1 = 0 ;
24652 char * kwnames[] = {
24653 (char *) "self",(char *) "id", NULL
24654 };
24655
24656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24658 if (!SWIG_IsOK(res1)) {
24659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24660 }
24661 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24662 ecode2 = SWIG_AsVal_int(obj1, &val2);
24663 if (!SWIG_IsOK(ecode2)) {
24664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24665 }
24666 arg2 = static_cast< int >(val2);
24667 {
24668 PyThreadState* __tstate = wxPyBeginAllowThreads();
24669 result = (bool)(arg1)->GetToolState(arg2);
24670 wxPyEndAllowThreads(__tstate);
24671 if (PyErr_Occurred()) SWIG_fail;
24672 }
24673 {
24674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24675 }
24676 return resultobj;
24677 fail:
24678 return NULL;
24679 }
24680
24681
24682 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24683 PyObject *resultobj = 0;
24684 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24685 int arg2 ;
24686 bool result;
24687 void *argp1 = 0 ;
24688 int res1 = 0 ;
24689 int val2 ;
24690 int ecode2 = 0 ;
24691 PyObject * obj0 = 0 ;
24692 PyObject * obj1 = 0 ;
24693 char * kwnames[] = {
24694 (char *) "self",(char *) "id", NULL
24695 };
24696
24697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24699 if (!SWIG_IsOK(res1)) {
24700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24701 }
24702 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24703 ecode2 = SWIG_AsVal_int(obj1, &val2);
24704 if (!SWIG_IsOK(ecode2)) {
24705 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24706 }
24707 arg2 = static_cast< int >(val2);
24708 {
24709 PyThreadState* __tstate = wxPyBeginAllowThreads();
24710 result = (bool)(arg1)->GetToolEnabled(arg2);
24711 wxPyEndAllowThreads(__tstate);
24712 if (PyErr_Occurred()) SWIG_fail;
24713 }
24714 {
24715 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24716 }
24717 return resultobj;
24718 fail:
24719 return NULL;
24720 }
24721
24722
24723 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24724 PyObject *resultobj = 0;
24725 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24726 int arg2 ;
24727 wxString *arg3 = 0 ;
24728 void *argp1 = 0 ;
24729 int res1 = 0 ;
24730 int val2 ;
24731 int ecode2 = 0 ;
24732 bool temp3 = false ;
24733 PyObject * obj0 = 0 ;
24734 PyObject * obj1 = 0 ;
24735 PyObject * obj2 = 0 ;
24736 char * kwnames[] = {
24737 (char *) "self",(char *) "id",(char *) "helpString", NULL
24738 };
24739
24740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24742 if (!SWIG_IsOK(res1)) {
24743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24744 }
24745 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24746 ecode2 = SWIG_AsVal_int(obj1, &val2);
24747 if (!SWIG_IsOK(ecode2)) {
24748 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24749 }
24750 arg2 = static_cast< int >(val2);
24751 {
24752 arg3 = wxString_in_helper(obj2);
24753 if (arg3 == NULL) SWIG_fail;
24754 temp3 = true;
24755 }
24756 {
24757 PyThreadState* __tstate = wxPyBeginAllowThreads();
24758 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24759 wxPyEndAllowThreads(__tstate);
24760 if (PyErr_Occurred()) SWIG_fail;
24761 }
24762 resultobj = SWIG_Py_Void();
24763 {
24764 if (temp3)
24765 delete arg3;
24766 }
24767 return resultobj;
24768 fail:
24769 {
24770 if (temp3)
24771 delete arg3;
24772 }
24773 return NULL;
24774 }
24775
24776
24777 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24778 PyObject *resultobj = 0;
24779 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24780 int arg2 ;
24781 wxString result;
24782 void *argp1 = 0 ;
24783 int res1 = 0 ;
24784 int val2 ;
24785 int ecode2 = 0 ;
24786 PyObject * obj0 = 0 ;
24787 PyObject * obj1 = 0 ;
24788 char * kwnames[] = {
24789 (char *) "self",(char *) "id", NULL
24790 };
24791
24792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24794 if (!SWIG_IsOK(res1)) {
24795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24796 }
24797 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24798 ecode2 = SWIG_AsVal_int(obj1, &val2);
24799 if (!SWIG_IsOK(ecode2)) {
24800 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24801 }
24802 arg2 = static_cast< int >(val2);
24803 {
24804 PyThreadState* __tstate = wxPyBeginAllowThreads();
24805 result = (arg1)->GetToolShortHelp(arg2);
24806 wxPyEndAllowThreads(__tstate);
24807 if (PyErr_Occurred()) SWIG_fail;
24808 }
24809 {
24810 #if wxUSE_UNICODE
24811 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24812 #else
24813 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24814 #endif
24815 }
24816 return resultobj;
24817 fail:
24818 return NULL;
24819 }
24820
24821
24822 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24823 PyObject *resultobj = 0;
24824 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24825 int arg2 ;
24826 wxString *arg3 = 0 ;
24827 void *argp1 = 0 ;
24828 int res1 = 0 ;
24829 int val2 ;
24830 int ecode2 = 0 ;
24831 bool temp3 = false ;
24832 PyObject * obj0 = 0 ;
24833 PyObject * obj1 = 0 ;
24834 PyObject * obj2 = 0 ;
24835 char * kwnames[] = {
24836 (char *) "self",(char *) "id",(char *) "helpString", NULL
24837 };
24838
24839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24841 if (!SWIG_IsOK(res1)) {
24842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24843 }
24844 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24845 ecode2 = SWIG_AsVal_int(obj1, &val2);
24846 if (!SWIG_IsOK(ecode2)) {
24847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24848 }
24849 arg2 = static_cast< int >(val2);
24850 {
24851 arg3 = wxString_in_helper(obj2);
24852 if (arg3 == NULL) SWIG_fail;
24853 temp3 = true;
24854 }
24855 {
24856 PyThreadState* __tstate = wxPyBeginAllowThreads();
24857 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24858 wxPyEndAllowThreads(__tstate);
24859 if (PyErr_Occurred()) SWIG_fail;
24860 }
24861 resultobj = SWIG_Py_Void();
24862 {
24863 if (temp3)
24864 delete arg3;
24865 }
24866 return resultobj;
24867 fail:
24868 {
24869 if (temp3)
24870 delete arg3;
24871 }
24872 return NULL;
24873 }
24874
24875
24876 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24877 PyObject *resultobj = 0;
24878 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24879 int arg2 ;
24880 wxString result;
24881 void *argp1 = 0 ;
24882 int res1 = 0 ;
24883 int val2 ;
24884 int ecode2 = 0 ;
24885 PyObject * obj0 = 0 ;
24886 PyObject * obj1 = 0 ;
24887 char * kwnames[] = {
24888 (char *) "self",(char *) "id", NULL
24889 };
24890
24891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24893 if (!SWIG_IsOK(res1)) {
24894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24895 }
24896 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24897 ecode2 = SWIG_AsVal_int(obj1, &val2);
24898 if (!SWIG_IsOK(ecode2)) {
24899 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24900 }
24901 arg2 = static_cast< int >(val2);
24902 {
24903 PyThreadState* __tstate = wxPyBeginAllowThreads();
24904 result = (arg1)->GetToolLongHelp(arg2);
24905 wxPyEndAllowThreads(__tstate);
24906 if (PyErr_Occurred()) SWIG_fail;
24907 }
24908 {
24909 #if wxUSE_UNICODE
24910 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24911 #else
24912 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24913 #endif
24914 }
24915 return resultobj;
24916 fail:
24917 return NULL;
24918 }
24919
24920
24921 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(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 *) "x",(char *) "y", NULL
24937 };
24938
24939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",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_SetMarginsXY" "', 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_SetMarginsXY" "', 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_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
24953 }
24954 arg3 = static_cast< int >(val3);
24955 {
24956 PyThreadState* __tstate = wxPyBeginAllowThreads();
24957 (arg1)->SetMargins(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_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24969 PyObject *resultobj = 0;
24970 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24971 wxSize *arg2 = 0 ;
24972 void *argp1 = 0 ;
24973 int res1 = 0 ;
24974 wxSize temp2 ;
24975 PyObject * obj0 = 0 ;
24976 PyObject * obj1 = 0 ;
24977 char * kwnames[] = {
24978 (char *) "self",(char *) "size", NULL
24979 };
24980
24981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
24982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24983 if (!SWIG_IsOK(res1)) {
24984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24985 }
24986 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24987 {
24988 arg2 = &temp2;
24989 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24990 }
24991 {
24992 PyThreadState* __tstate = wxPyBeginAllowThreads();
24993 (arg1)->SetMargins((wxSize const &)*arg2);
24994 wxPyEndAllowThreads(__tstate);
24995 if (PyErr_Occurred()) SWIG_fail;
24996 }
24997 resultobj = SWIG_Py_Void();
24998 return resultobj;
24999 fail:
25000 return NULL;
25001 }
25002
25003
25004 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25005 PyObject *resultobj = 0;
25006 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25007 int arg2 ;
25008 void *argp1 = 0 ;
25009 int res1 = 0 ;
25010 int val2 ;
25011 int ecode2 = 0 ;
25012 PyObject * obj0 = 0 ;
25013 PyObject * obj1 = 0 ;
25014 char * kwnames[] = {
25015 (char *) "self",(char *) "packing", NULL
25016 };
25017
25018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
25019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25020 if (!SWIG_IsOK(res1)) {
25021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25022 }
25023 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25024 ecode2 = SWIG_AsVal_int(obj1, &val2);
25025 if (!SWIG_IsOK(ecode2)) {
25026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
25027 }
25028 arg2 = static_cast< int >(val2);
25029 {
25030 PyThreadState* __tstate = wxPyBeginAllowThreads();
25031 (arg1)->SetToolPacking(arg2);
25032 wxPyEndAllowThreads(__tstate);
25033 if (PyErr_Occurred()) SWIG_fail;
25034 }
25035 resultobj = SWIG_Py_Void();
25036 return resultobj;
25037 fail:
25038 return NULL;
25039 }
25040
25041
25042 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25043 PyObject *resultobj = 0;
25044 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25045 int arg2 ;
25046 void *argp1 = 0 ;
25047 int res1 = 0 ;
25048 int val2 ;
25049 int ecode2 = 0 ;
25050 PyObject * obj0 = 0 ;
25051 PyObject * obj1 = 0 ;
25052 char * kwnames[] = {
25053 (char *) "self",(char *) "separation", NULL
25054 };
25055
25056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
25057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25058 if (!SWIG_IsOK(res1)) {
25059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25060 }
25061 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25062 ecode2 = SWIG_AsVal_int(obj1, &val2);
25063 if (!SWIG_IsOK(ecode2)) {
25064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
25065 }
25066 arg2 = static_cast< int >(val2);
25067 {
25068 PyThreadState* __tstate = wxPyBeginAllowThreads();
25069 (arg1)->SetToolSeparation(arg2);
25070 wxPyEndAllowThreads(__tstate);
25071 if (PyErr_Occurred()) SWIG_fail;
25072 }
25073 resultobj = SWIG_Py_Void();
25074 return resultobj;
25075 fail:
25076 return NULL;
25077 }
25078
25079
25080 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25081 PyObject *resultobj = 0;
25082 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25083 wxSize result;
25084 void *argp1 = 0 ;
25085 int res1 = 0 ;
25086 PyObject *swig_obj[1] ;
25087
25088 if (!args) SWIG_fail;
25089 swig_obj[0] = args;
25090 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25091 if (!SWIG_IsOK(res1)) {
25092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25093 }
25094 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25095 {
25096 PyThreadState* __tstate = wxPyBeginAllowThreads();
25097 result = (arg1)->GetToolMargins();
25098 wxPyEndAllowThreads(__tstate);
25099 if (PyErr_Occurred()) SWIG_fail;
25100 }
25101 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25102 return resultobj;
25103 fail:
25104 return NULL;
25105 }
25106
25107
25108 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25109 PyObject *resultobj = 0;
25110 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25111 wxSize result;
25112 void *argp1 = 0 ;
25113 int res1 = 0 ;
25114 PyObject *swig_obj[1] ;
25115
25116 if (!args) SWIG_fail;
25117 swig_obj[0] = args;
25118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25119 if (!SWIG_IsOK(res1)) {
25120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25121 }
25122 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25123 {
25124 PyThreadState* __tstate = wxPyBeginAllowThreads();
25125 result = (arg1)->GetMargins();
25126 wxPyEndAllowThreads(__tstate);
25127 if (PyErr_Occurred()) SWIG_fail;
25128 }
25129 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25130 return resultobj;
25131 fail:
25132 return NULL;
25133 }
25134
25135
25136 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25137 PyObject *resultobj = 0;
25138 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25139 int result;
25140 void *argp1 = 0 ;
25141 int res1 = 0 ;
25142 PyObject *swig_obj[1] ;
25143
25144 if (!args) SWIG_fail;
25145 swig_obj[0] = args;
25146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25147 if (!SWIG_IsOK(res1)) {
25148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25149 }
25150 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25151 {
25152 PyThreadState* __tstate = wxPyBeginAllowThreads();
25153 result = (int)(arg1)->GetToolPacking();
25154 wxPyEndAllowThreads(__tstate);
25155 if (PyErr_Occurred()) SWIG_fail;
25156 }
25157 resultobj = SWIG_From_int(static_cast< int >(result));
25158 return resultobj;
25159 fail:
25160 return NULL;
25161 }
25162
25163
25164 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25165 PyObject *resultobj = 0;
25166 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25167 int result;
25168 void *argp1 = 0 ;
25169 int res1 = 0 ;
25170 PyObject *swig_obj[1] ;
25171
25172 if (!args) SWIG_fail;
25173 swig_obj[0] = args;
25174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25175 if (!SWIG_IsOK(res1)) {
25176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25177 }
25178 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25179 {
25180 PyThreadState* __tstate = wxPyBeginAllowThreads();
25181 result = (int)(arg1)->GetToolSeparation();
25182 wxPyEndAllowThreads(__tstate);
25183 if (PyErr_Occurred()) SWIG_fail;
25184 }
25185 resultobj = SWIG_From_int(static_cast< int >(result));
25186 return resultobj;
25187 fail:
25188 return NULL;
25189 }
25190
25191
25192 SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25193 PyObject *resultobj = 0;
25194 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25195 int arg2 ;
25196 void *argp1 = 0 ;
25197 int res1 = 0 ;
25198 int val2 ;
25199 int ecode2 = 0 ;
25200 PyObject * obj0 = 0 ;
25201 PyObject * obj1 = 0 ;
25202 char * kwnames[] = {
25203 (char *) "self",(char *) "nRows", NULL
25204 };
25205
25206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25208 if (!SWIG_IsOK(res1)) {
25209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25210 }
25211 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25212 ecode2 = SWIG_AsVal_int(obj1, &val2);
25213 if (!SWIG_IsOK(ecode2)) {
25214 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25215 }
25216 arg2 = static_cast< int >(val2);
25217 {
25218 PyThreadState* __tstate = wxPyBeginAllowThreads();
25219 (arg1)->SetRows(arg2);
25220 wxPyEndAllowThreads(__tstate);
25221 if (PyErr_Occurred()) SWIG_fail;
25222 }
25223 resultobj = SWIG_Py_Void();
25224 return resultobj;
25225 fail:
25226 return NULL;
25227 }
25228
25229
25230 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25231 PyObject *resultobj = 0;
25232 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25233 int arg2 ;
25234 int arg3 ;
25235 void *argp1 = 0 ;
25236 int res1 = 0 ;
25237 int val2 ;
25238 int ecode2 = 0 ;
25239 int val3 ;
25240 int ecode3 = 0 ;
25241 PyObject * obj0 = 0 ;
25242 PyObject * obj1 = 0 ;
25243 PyObject * obj2 = 0 ;
25244 char * kwnames[] = {
25245 (char *) "self",(char *) "rows",(char *) "cols", NULL
25246 };
25247
25248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25250 if (!SWIG_IsOK(res1)) {
25251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25252 }
25253 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25254 ecode2 = SWIG_AsVal_int(obj1, &val2);
25255 if (!SWIG_IsOK(ecode2)) {
25256 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25257 }
25258 arg2 = static_cast< int >(val2);
25259 ecode3 = SWIG_AsVal_int(obj2, &val3);
25260 if (!SWIG_IsOK(ecode3)) {
25261 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25262 }
25263 arg3 = static_cast< int >(val3);
25264 {
25265 PyThreadState* __tstate = wxPyBeginAllowThreads();
25266 (arg1)->SetMaxRowsCols(arg2,arg3);
25267 wxPyEndAllowThreads(__tstate);
25268 if (PyErr_Occurred()) SWIG_fail;
25269 }
25270 resultobj = SWIG_Py_Void();
25271 return resultobj;
25272 fail:
25273 return NULL;
25274 }
25275
25276
25277 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25278 PyObject *resultobj = 0;
25279 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25280 int result;
25281 void *argp1 = 0 ;
25282 int res1 = 0 ;
25283 PyObject *swig_obj[1] ;
25284
25285 if (!args) SWIG_fail;
25286 swig_obj[0] = args;
25287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25288 if (!SWIG_IsOK(res1)) {
25289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25290 }
25291 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25292 {
25293 PyThreadState* __tstate = wxPyBeginAllowThreads();
25294 result = (int)(arg1)->GetMaxRows();
25295 wxPyEndAllowThreads(__tstate);
25296 if (PyErr_Occurred()) SWIG_fail;
25297 }
25298 resultobj = SWIG_From_int(static_cast< int >(result));
25299 return resultobj;
25300 fail:
25301 return NULL;
25302 }
25303
25304
25305 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25306 PyObject *resultobj = 0;
25307 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25308 int result;
25309 void *argp1 = 0 ;
25310 int res1 = 0 ;
25311 PyObject *swig_obj[1] ;
25312
25313 if (!args) SWIG_fail;
25314 swig_obj[0] = args;
25315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25316 if (!SWIG_IsOK(res1)) {
25317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25318 }
25319 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25320 {
25321 PyThreadState* __tstate = wxPyBeginAllowThreads();
25322 result = (int)(arg1)->GetMaxCols();
25323 wxPyEndAllowThreads(__tstate);
25324 if (PyErr_Occurred()) SWIG_fail;
25325 }
25326 resultobj = SWIG_From_int(static_cast< int >(result));
25327 return resultobj;
25328 fail:
25329 return NULL;
25330 }
25331
25332
25333 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25334 PyObject *resultobj = 0;
25335 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25336 wxSize *arg2 = 0 ;
25337 void *argp1 = 0 ;
25338 int res1 = 0 ;
25339 wxSize temp2 ;
25340 PyObject * obj0 = 0 ;
25341 PyObject * obj1 = 0 ;
25342 char * kwnames[] = {
25343 (char *) "self",(char *) "size", NULL
25344 };
25345
25346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25348 if (!SWIG_IsOK(res1)) {
25349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25350 }
25351 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25352 {
25353 arg2 = &temp2;
25354 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25355 }
25356 {
25357 PyThreadState* __tstate = wxPyBeginAllowThreads();
25358 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25359 wxPyEndAllowThreads(__tstate);
25360 if (PyErr_Occurred()) SWIG_fail;
25361 }
25362 resultobj = SWIG_Py_Void();
25363 return resultobj;
25364 fail:
25365 return NULL;
25366 }
25367
25368
25369 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25370 PyObject *resultobj = 0;
25371 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25372 wxSize result;
25373 void *argp1 = 0 ;
25374 int res1 = 0 ;
25375 PyObject *swig_obj[1] ;
25376
25377 if (!args) SWIG_fail;
25378 swig_obj[0] = args;
25379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25380 if (!SWIG_IsOK(res1)) {
25381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25382 }
25383 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25384 {
25385 PyThreadState* __tstate = wxPyBeginAllowThreads();
25386 result = (arg1)->GetToolBitmapSize();
25387 wxPyEndAllowThreads(__tstate);
25388 if (PyErr_Occurred()) SWIG_fail;
25389 }
25390 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25391 return resultobj;
25392 fail:
25393 return NULL;
25394 }
25395
25396
25397 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25398 PyObject *resultobj = 0;
25399 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25400 wxSize result;
25401 void *argp1 = 0 ;
25402 int res1 = 0 ;
25403 PyObject *swig_obj[1] ;
25404
25405 if (!args) SWIG_fail;
25406 swig_obj[0] = args;
25407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25408 if (!SWIG_IsOK(res1)) {
25409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25410 }
25411 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25412 {
25413 PyThreadState* __tstate = wxPyBeginAllowThreads();
25414 result = (arg1)->GetToolSize();
25415 wxPyEndAllowThreads(__tstate);
25416 if (PyErr_Occurred()) SWIG_fail;
25417 }
25418 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25419 return resultobj;
25420 fail:
25421 return NULL;
25422 }
25423
25424
25425 SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25426 PyObject *resultobj = 0;
25427 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25428 int arg2 ;
25429 int arg3 ;
25430 wxToolBarToolBase *result = 0 ;
25431 void *argp1 = 0 ;
25432 int res1 = 0 ;
25433 int val2 ;
25434 int ecode2 = 0 ;
25435 int val3 ;
25436 int ecode3 = 0 ;
25437 PyObject * obj0 = 0 ;
25438 PyObject * obj1 = 0 ;
25439 PyObject * obj2 = 0 ;
25440 char * kwnames[] = {
25441 (char *) "self",(char *) "x",(char *) "y", NULL
25442 };
25443
25444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25446 if (!SWIG_IsOK(res1)) {
25447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25448 }
25449 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25450 ecode2 = SWIG_AsVal_int(obj1, &val2);
25451 if (!SWIG_IsOK(ecode2)) {
25452 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25453 }
25454 arg2 = static_cast< int >(val2);
25455 ecode3 = SWIG_AsVal_int(obj2, &val3);
25456 if (!SWIG_IsOK(ecode3)) {
25457 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25458 }
25459 arg3 = static_cast< int >(val3);
25460 {
25461 PyThreadState* __tstate = wxPyBeginAllowThreads();
25462 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25463 wxPyEndAllowThreads(__tstate);
25464 if (PyErr_Occurred()) SWIG_fail;
25465 }
25466 {
25467 resultobj = wxPyMake_wxObject(result, (bool)0);
25468 }
25469 return resultobj;
25470 fail:
25471 return NULL;
25472 }
25473
25474
25475 SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25476 PyObject *resultobj = 0;
25477 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25478 int arg2 ;
25479 wxToolBarToolBase *result = 0 ;
25480 void *argp1 = 0 ;
25481 int res1 = 0 ;
25482 int val2 ;
25483 int ecode2 = 0 ;
25484 PyObject * obj0 = 0 ;
25485 PyObject * obj1 = 0 ;
25486 char * kwnames[] = {
25487 (char *) "self",(char *) "toolid", NULL
25488 };
25489
25490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25492 if (!SWIG_IsOK(res1)) {
25493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25494 }
25495 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25496 ecode2 = SWIG_AsVal_int(obj1, &val2);
25497 if (!SWIG_IsOK(ecode2)) {
25498 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25499 }
25500 arg2 = static_cast< int >(val2);
25501 {
25502 PyThreadState* __tstate = wxPyBeginAllowThreads();
25503 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25504 wxPyEndAllowThreads(__tstate);
25505 if (PyErr_Occurred()) SWIG_fail;
25506 }
25507 {
25508 resultobj = wxPyMake_wxObject(result, (bool)0);
25509 }
25510 return resultobj;
25511 fail:
25512 return NULL;
25513 }
25514
25515
25516 SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25517 PyObject *resultobj = 0;
25518 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25519 bool result;
25520 void *argp1 = 0 ;
25521 int res1 = 0 ;
25522 PyObject *swig_obj[1] ;
25523
25524 if (!args) SWIG_fail;
25525 swig_obj[0] = args;
25526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25527 if (!SWIG_IsOK(res1)) {
25528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25529 }
25530 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25531 {
25532 PyThreadState* __tstate = wxPyBeginAllowThreads();
25533 result = (bool)(arg1)->IsVertical();
25534 wxPyEndAllowThreads(__tstate);
25535 if (PyErr_Occurred()) SWIG_fail;
25536 }
25537 {
25538 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25539 }
25540 return resultobj;
25541 fail:
25542 return NULL;
25543 }
25544
25545
25546 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25547 PyObject *resultobj = 0;
25548 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25549 size_t result;
25550 void *argp1 = 0 ;
25551 int res1 = 0 ;
25552 PyObject *swig_obj[1] ;
25553
25554 if (!args) SWIG_fail;
25555 swig_obj[0] = args;
25556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25557 if (!SWIG_IsOK(res1)) {
25558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25559 }
25560 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25561 {
25562 PyThreadState* __tstate = wxPyBeginAllowThreads();
25563 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25564 wxPyEndAllowThreads(__tstate);
25565 if (PyErr_Occurred()) SWIG_fail;
25566 }
25567 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25568 return resultobj;
25569 fail:
25570 return NULL;
25571 }
25572
25573
25574 SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25575 PyObject *obj;
25576 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25577 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25578 return SWIG_Py_Void();
25579 }
25580
25581 SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25582 PyObject *resultobj = 0;
25583 wxWindow *arg1 = (wxWindow *) 0 ;
25584 int arg2 = (int) -1 ;
25585 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25586 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25587 wxSize const &arg4_defvalue = wxDefaultSize ;
25588 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25589 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25590 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25591 wxString *arg6 = (wxString *) &arg6_defvalue ;
25592 wxToolBar *result = 0 ;
25593 void *argp1 = 0 ;
25594 int res1 = 0 ;
25595 int val2 ;
25596 int ecode2 = 0 ;
25597 wxPoint temp3 ;
25598 wxSize temp4 ;
25599 long val5 ;
25600 int ecode5 = 0 ;
25601 bool temp6 = false ;
25602 PyObject * obj0 = 0 ;
25603 PyObject * obj1 = 0 ;
25604 PyObject * obj2 = 0 ;
25605 PyObject * obj3 = 0 ;
25606 PyObject * obj4 = 0 ;
25607 PyObject * obj5 = 0 ;
25608 char * kwnames[] = {
25609 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25610 };
25611
25612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25614 if (!SWIG_IsOK(res1)) {
25615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25616 }
25617 arg1 = reinterpret_cast< wxWindow * >(argp1);
25618 if (obj1) {
25619 ecode2 = SWIG_AsVal_int(obj1, &val2);
25620 if (!SWIG_IsOK(ecode2)) {
25621 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25622 }
25623 arg2 = static_cast< int >(val2);
25624 }
25625 if (obj2) {
25626 {
25627 arg3 = &temp3;
25628 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25629 }
25630 }
25631 if (obj3) {
25632 {
25633 arg4 = &temp4;
25634 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25635 }
25636 }
25637 if (obj4) {
25638 ecode5 = SWIG_AsVal_long(obj4, &val5);
25639 if (!SWIG_IsOK(ecode5)) {
25640 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25641 }
25642 arg5 = static_cast< long >(val5);
25643 }
25644 if (obj5) {
25645 {
25646 arg6 = wxString_in_helper(obj5);
25647 if (arg6 == NULL) SWIG_fail;
25648 temp6 = true;
25649 }
25650 }
25651 {
25652 if (!wxPyCheckForApp()) SWIG_fail;
25653 PyThreadState* __tstate = wxPyBeginAllowThreads();
25654 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25655 wxPyEndAllowThreads(__tstate);
25656 if (PyErr_Occurred()) SWIG_fail;
25657 }
25658 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25659 {
25660 if (temp6)
25661 delete arg6;
25662 }
25663 return resultobj;
25664 fail:
25665 {
25666 if (temp6)
25667 delete arg6;
25668 }
25669 return NULL;
25670 }
25671
25672
25673 SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25674 PyObject *resultobj = 0;
25675 wxToolBar *result = 0 ;
25676
25677 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25678 {
25679 if (!wxPyCheckForApp()) SWIG_fail;
25680 PyThreadState* __tstate = wxPyBeginAllowThreads();
25681 result = (wxToolBar *)new wxToolBar();
25682 wxPyEndAllowThreads(__tstate);
25683 if (PyErr_Occurred()) SWIG_fail;
25684 }
25685 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25686 return resultobj;
25687 fail:
25688 return NULL;
25689 }
25690
25691
25692 SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25693 PyObject *resultobj = 0;
25694 wxToolBar *arg1 = (wxToolBar *) 0 ;
25695 wxWindow *arg2 = (wxWindow *) 0 ;
25696 int arg3 = (int) -1 ;
25697 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25698 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25699 wxSize const &arg5_defvalue = wxDefaultSize ;
25700 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25701 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25702 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25703 wxString *arg7 = (wxString *) &arg7_defvalue ;
25704 bool result;
25705 void *argp1 = 0 ;
25706 int res1 = 0 ;
25707 void *argp2 = 0 ;
25708 int res2 = 0 ;
25709 int val3 ;
25710 int ecode3 = 0 ;
25711 wxPoint temp4 ;
25712 wxSize temp5 ;
25713 long val6 ;
25714 int ecode6 = 0 ;
25715 bool temp7 = false ;
25716 PyObject * obj0 = 0 ;
25717 PyObject * obj1 = 0 ;
25718 PyObject * obj2 = 0 ;
25719 PyObject * obj3 = 0 ;
25720 PyObject * obj4 = 0 ;
25721 PyObject * obj5 = 0 ;
25722 PyObject * obj6 = 0 ;
25723 char * kwnames[] = {
25724 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25725 };
25726
25727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25729 if (!SWIG_IsOK(res1)) {
25730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25731 }
25732 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25733 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25734 if (!SWIG_IsOK(res2)) {
25735 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25736 }
25737 arg2 = reinterpret_cast< wxWindow * >(argp2);
25738 if (obj2) {
25739 ecode3 = SWIG_AsVal_int(obj2, &val3);
25740 if (!SWIG_IsOK(ecode3)) {
25741 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25742 }
25743 arg3 = static_cast< int >(val3);
25744 }
25745 if (obj3) {
25746 {
25747 arg4 = &temp4;
25748 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25749 }
25750 }
25751 if (obj4) {
25752 {
25753 arg5 = &temp5;
25754 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25755 }
25756 }
25757 if (obj5) {
25758 ecode6 = SWIG_AsVal_long(obj5, &val6);
25759 if (!SWIG_IsOK(ecode6)) {
25760 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25761 }
25762 arg6 = static_cast< long >(val6);
25763 }
25764 if (obj6) {
25765 {
25766 arg7 = wxString_in_helper(obj6);
25767 if (arg7 == NULL) SWIG_fail;
25768 temp7 = true;
25769 }
25770 }
25771 {
25772 PyThreadState* __tstate = wxPyBeginAllowThreads();
25773 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25774 wxPyEndAllowThreads(__tstate);
25775 if (PyErr_Occurred()) SWIG_fail;
25776 }
25777 {
25778 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25779 }
25780 {
25781 if (temp7)
25782 delete arg7;
25783 }
25784 return resultobj;
25785 fail:
25786 {
25787 if (temp7)
25788 delete arg7;
25789 }
25790 return NULL;
25791 }
25792
25793
25794 SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25795 PyObject *resultobj = 0;
25796 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25797 SwigValueWrapper<wxVisualAttributes > result;
25798 int val1 ;
25799 int ecode1 = 0 ;
25800 PyObject * obj0 = 0 ;
25801 char * kwnames[] = {
25802 (char *) "variant", NULL
25803 };
25804
25805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25806 if (obj0) {
25807 ecode1 = SWIG_AsVal_int(obj0, &val1);
25808 if (!SWIG_IsOK(ecode1)) {
25809 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25810 }
25811 arg1 = static_cast< wxWindowVariant >(val1);
25812 }
25813 {
25814 if (!wxPyCheckForApp()) SWIG_fail;
25815 PyThreadState* __tstate = wxPyBeginAllowThreads();
25816 result = wxToolBar::GetClassDefaultAttributes(arg1);
25817 wxPyEndAllowThreads(__tstate);
25818 if (PyErr_Occurred()) SWIG_fail;
25819 }
25820 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25821 return resultobj;
25822 fail:
25823 return NULL;
25824 }
25825
25826
25827 SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25828 PyObject *obj;
25829 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25830 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25831 return SWIG_Py_Void();
25832 }
25833
25834 SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25835 return SWIG_Python_InitShadowInstance(args);
25836 }
25837
25838 SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25839 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25840 return 1;
25841 }
25842
25843
25844 SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25845 PyObject *pyobj = 0;
25846
25847 {
25848 #if wxUSE_UNICODE
25849 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25850 #else
25851 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25852 #endif
25853 }
25854 return pyobj;
25855 }
25856
25857
25858 SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25859 PyObject *resultobj = 0;
25860 wxColour const &arg1_defvalue = wxNullColour ;
25861 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25862 wxColour const &arg2_defvalue = wxNullColour ;
25863 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25864 wxFont const &arg3_defvalue = wxNullFont ;
25865 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25866 wxListItemAttr *result = 0 ;
25867 wxColour temp1 ;
25868 wxColour temp2 ;
25869 void *argp3 = 0 ;
25870 int res3 = 0 ;
25871 PyObject * obj0 = 0 ;
25872 PyObject * obj1 = 0 ;
25873 PyObject * obj2 = 0 ;
25874 char * kwnames[] = {
25875 (char *) "colText",(char *) "colBack",(char *) "font", NULL
25876 };
25877
25878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25879 if (obj0) {
25880 {
25881 arg1 = &temp1;
25882 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
25883 }
25884 }
25885 if (obj1) {
25886 {
25887 arg2 = &temp2;
25888 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25889 }
25890 }
25891 if (obj2) {
25892 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
25893 if (!SWIG_IsOK(res3)) {
25894 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25895 }
25896 if (!argp3) {
25897 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25898 }
25899 arg3 = reinterpret_cast< wxFont * >(argp3);
25900 }
25901 {
25902 PyThreadState* __tstate = wxPyBeginAllowThreads();
25903 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
25904 wxPyEndAllowThreads(__tstate);
25905 if (PyErr_Occurred()) SWIG_fail;
25906 }
25907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
25908 return resultobj;
25909 fail:
25910 return NULL;
25911 }
25912
25913
25914 SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25915 PyObject *resultobj = 0;
25916 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25917 void *argp1 = 0 ;
25918 int res1 = 0 ;
25919 PyObject *swig_obj[1] ;
25920
25921 if (!args) SWIG_fail;
25922 swig_obj[0] = args;
25923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
25924 if (!SWIG_IsOK(res1)) {
25925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25926 }
25927 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25928 {
25929 PyThreadState* __tstate = wxPyBeginAllowThreads();
25930 delete arg1;
25931
25932 wxPyEndAllowThreads(__tstate);
25933 if (PyErr_Occurred()) SWIG_fail;
25934 }
25935 resultobj = SWIG_Py_Void();
25936 return resultobj;
25937 fail:
25938 return NULL;
25939 }
25940
25941
25942 SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25943 PyObject *resultobj = 0;
25944 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25945 wxColour *arg2 = 0 ;
25946 void *argp1 = 0 ;
25947 int res1 = 0 ;
25948 wxColour temp2 ;
25949 PyObject * obj0 = 0 ;
25950 PyObject * obj1 = 0 ;
25951 char * kwnames[] = {
25952 (char *) "self",(char *) "colText", NULL
25953 };
25954
25955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
25956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25957 if (!SWIG_IsOK(res1)) {
25958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25959 }
25960 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25961 {
25962 arg2 = &temp2;
25963 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25964 }
25965 {
25966 PyThreadState* __tstate = wxPyBeginAllowThreads();
25967 (arg1)->SetTextColour((wxColour const &)*arg2);
25968 wxPyEndAllowThreads(__tstate);
25969 if (PyErr_Occurred()) SWIG_fail;
25970 }
25971 resultobj = SWIG_Py_Void();
25972 return resultobj;
25973 fail:
25974 return NULL;
25975 }
25976
25977
25978 SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25979 PyObject *resultobj = 0;
25980 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25981 wxColour *arg2 = 0 ;
25982 void *argp1 = 0 ;
25983 int res1 = 0 ;
25984 wxColour temp2 ;
25985 PyObject * obj0 = 0 ;
25986 PyObject * obj1 = 0 ;
25987 char * kwnames[] = {
25988 (char *) "self",(char *) "colBack", NULL
25989 };
25990
25991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
25992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25993 if (!SWIG_IsOK(res1)) {
25994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25995 }
25996 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25997 {
25998 arg2 = &temp2;
25999 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26000 }
26001 {
26002 PyThreadState* __tstate = wxPyBeginAllowThreads();
26003 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26004 wxPyEndAllowThreads(__tstate);
26005 if (PyErr_Occurred()) SWIG_fail;
26006 }
26007 resultobj = SWIG_Py_Void();
26008 return resultobj;
26009 fail:
26010 return NULL;
26011 }
26012
26013
26014 SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26015 PyObject *resultobj = 0;
26016 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26017 wxFont *arg2 = 0 ;
26018 void *argp1 = 0 ;
26019 int res1 = 0 ;
26020 void *argp2 = 0 ;
26021 int res2 = 0 ;
26022 PyObject * obj0 = 0 ;
26023 PyObject * obj1 = 0 ;
26024 char * kwnames[] = {
26025 (char *) "self",(char *) "font", NULL
26026 };
26027
26028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26030 if (!SWIG_IsOK(res1)) {
26031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26032 }
26033 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26034 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26035 if (!SWIG_IsOK(res2)) {
26036 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26037 }
26038 if (!argp2) {
26039 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26040 }
26041 arg2 = reinterpret_cast< wxFont * >(argp2);
26042 {
26043 PyThreadState* __tstate = wxPyBeginAllowThreads();
26044 (arg1)->SetFont((wxFont const &)*arg2);
26045 wxPyEndAllowThreads(__tstate);
26046 if (PyErr_Occurred()) SWIG_fail;
26047 }
26048 resultobj = SWIG_Py_Void();
26049 return resultobj;
26050 fail:
26051 return NULL;
26052 }
26053
26054
26055 SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26056 PyObject *resultobj = 0;
26057 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26058 bool result;
26059 void *argp1 = 0 ;
26060 int res1 = 0 ;
26061 PyObject *swig_obj[1] ;
26062
26063 if (!args) SWIG_fail;
26064 swig_obj[0] = args;
26065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26066 if (!SWIG_IsOK(res1)) {
26067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26068 }
26069 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26070 {
26071 PyThreadState* __tstate = wxPyBeginAllowThreads();
26072 result = (bool)(arg1)->HasTextColour();
26073 wxPyEndAllowThreads(__tstate);
26074 if (PyErr_Occurred()) SWIG_fail;
26075 }
26076 {
26077 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26078 }
26079 return resultobj;
26080 fail:
26081 return NULL;
26082 }
26083
26084
26085 SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26086 PyObject *resultobj = 0;
26087 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26088 bool result;
26089 void *argp1 = 0 ;
26090 int res1 = 0 ;
26091 PyObject *swig_obj[1] ;
26092
26093 if (!args) SWIG_fail;
26094 swig_obj[0] = args;
26095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26096 if (!SWIG_IsOK(res1)) {
26097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26098 }
26099 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26100 {
26101 PyThreadState* __tstate = wxPyBeginAllowThreads();
26102 result = (bool)(arg1)->HasBackgroundColour();
26103 wxPyEndAllowThreads(__tstate);
26104 if (PyErr_Occurred()) SWIG_fail;
26105 }
26106 {
26107 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26108 }
26109 return resultobj;
26110 fail:
26111 return NULL;
26112 }
26113
26114
26115 SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26116 PyObject *resultobj = 0;
26117 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26118 bool result;
26119 void *argp1 = 0 ;
26120 int res1 = 0 ;
26121 PyObject *swig_obj[1] ;
26122
26123 if (!args) SWIG_fail;
26124 swig_obj[0] = args;
26125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26126 if (!SWIG_IsOK(res1)) {
26127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26128 }
26129 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26130 {
26131 PyThreadState* __tstate = wxPyBeginAllowThreads();
26132 result = (bool)(arg1)->HasFont();
26133 wxPyEndAllowThreads(__tstate);
26134 if (PyErr_Occurred()) SWIG_fail;
26135 }
26136 {
26137 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26138 }
26139 return resultobj;
26140 fail:
26141 return NULL;
26142 }
26143
26144
26145 SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26146 PyObject *resultobj = 0;
26147 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26148 wxColour result;
26149 void *argp1 = 0 ;
26150 int res1 = 0 ;
26151 PyObject *swig_obj[1] ;
26152
26153 if (!args) SWIG_fail;
26154 swig_obj[0] = args;
26155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26156 if (!SWIG_IsOK(res1)) {
26157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26158 }
26159 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26160 {
26161 PyThreadState* __tstate = wxPyBeginAllowThreads();
26162 result = (arg1)->GetTextColour();
26163 wxPyEndAllowThreads(__tstate);
26164 if (PyErr_Occurred()) SWIG_fail;
26165 }
26166 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26167 return resultobj;
26168 fail:
26169 return NULL;
26170 }
26171
26172
26173 SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26174 PyObject *resultobj = 0;
26175 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26176 wxColour result;
26177 void *argp1 = 0 ;
26178 int res1 = 0 ;
26179 PyObject *swig_obj[1] ;
26180
26181 if (!args) SWIG_fail;
26182 swig_obj[0] = args;
26183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26184 if (!SWIG_IsOK(res1)) {
26185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26186 }
26187 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26188 {
26189 PyThreadState* __tstate = wxPyBeginAllowThreads();
26190 result = (arg1)->GetBackgroundColour();
26191 wxPyEndAllowThreads(__tstate);
26192 if (PyErr_Occurred()) SWIG_fail;
26193 }
26194 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26195 return resultobj;
26196 fail:
26197 return NULL;
26198 }
26199
26200
26201 SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26202 PyObject *resultobj = 0;
26203 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26204 wxFont result;
26205 void *argp1 = 0 ;
26206 int res1 = 0 ;
26207 PyObject *swig_obj[1] ;
26208
26209 if (!args) SWIG_fail;
26210 swig_obj[0] = args;
26211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26212 if (!SWIG_IsOK(res1)) {
26213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26214 }
26215 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26216 {
26217 PyThreadState* __tstate = wxPyBeginAllowThreads();
26218 result = (arg1)->GetFont();
26219 wxPyEndAllowThreads(__tstate);
26220 if (PyErr_Occurred()) SWIG_fail;
26221 }
26222 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26223 return resultobj;
26224 fail:
26225 return NULL;
26226 }
26227
26228
26229 SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26230 PyObject *resultobj = 0;
26231 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26232 wxListItemAttr *arg2 = 0 ;
26233 void *argp1 = 0 ;
26234 int res1 = 0 ;
26235 void *argp2 = 0 ;
26236 int res2 = 0 ;
26237 PyObject * obj0 = 0 ;
26238 PyObject * obj1 = 0 ;
26239 char * kwnames[] = {
26240 (char *) "self",(char *) "source", NULL
26241 };
26242
26243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26245 if (!SWIG_IsOK(res1)) {
26246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26247 }
26248 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26249 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26250 if (!SWIG_IsOK(res2)) {
26251 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26252 }
26253 if (!argp2) {
26254 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26255 }
26256 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26257 {
26258 PyThreadState* __tstate = wxPyBeginAllowThreads();
26259 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26260 wxPyEndAllowThreads(__tstate);
26261 if (PyErr_Occurred()) SWIG_fail;
26262 }
26263 resultobj = SWIG_Py_Void();
26264 return resultobj;
26265 fail:
26266 return NULL;
26267 }
26268
26269
26270 SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26271 PyObject *resultobj = 0;
26272 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26273 void *argp1 = 0 ;
26274 int res1 = 0 ;
26275 PyObject *swig_obj[1] ;
26276
26277 if (!args) SWIG_fail;
26278 swig_obj[0] = args;
26279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26280 if (!SWIG_IsOK(res1)) {
26281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26282 }
26283 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26284 {
26285 PyThreadState* __tstate = wxPyBeginAllowThreads();
26286 wxListItemAttr_Destroy(arg1);
26287 wxPyEndAllowThreads(__tstate);
26288 if (PyErr_Occurred()) SWIG_fail;
26289 }
26290 resultobj = SWIG_Py_Void();
26291 return resultobj;
26292 fail:
26293 return NULL;
26294 }
26295
26296
26297 SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26298 PyObject *obj;
26299 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26300 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26301 return SWIG_Py_Void();
26302 }
26303
26304 SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26305 return SWIG_Python_InitShadowInstance(args);
26306 }
26307
26308 SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26309 PyObject *resultobj = 0;
26310 wxListItem *result = 0 ;
26311
26312 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26313 {
26314 PyThreadState* __tstate = wxPyBeginAllowThreads();
26315 result = (wxListItem *)new wxListItem();
26316 wxPyEndAllowThreads(__tstate);
26317 if (PyErr_Occurred()) SWIG_fail;
26318 }
26319 {
26320 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
26321 }
26322 return resultobj;
26323 fail:
26324 return NULL;
26325 }
26326
26327
26328 SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26329 PyObject *resultobj = 0;
26330 wxListItem *arg1 = (wxListItem *) 0 ;
26331 void *argp1 = 0 ;
26332 int res1 = 0 ;
26333 PyObject *swig_obj[1] ;
26334
26335 if (!args) SWIG_fail;
26336 swig_obj[0] = args;
26337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26338 if (!SWIG_IsOK(res1)) {
26339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26340 }
26341 arg1 = reinterpret_cast< wxListItem * >(argp1);
26342 {
26343 PyThreadState* __tstate = wxPyBeginAllowThreads();
26344 delete arg1;
26345
26346 wxPyEndAllowThreads(__tstate);
26347 if (PyErr_Occurred()) SWIG_fail;
26348 }
26349 resultobj = SWIG_Py_Void();
26350 return resultobj;
26351 fail:
26352 return NULL;
26353 }
26354
26355
26356 SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26357 PyObject *resultobj = 0;
26358 wxListItem *arg1 = (wxListItem *) 0 ;
26359 void *argp1 = 0 ;
26360 int res1 = 0 ;
26361 PyObject *swig_obj[1] ;
26362
26363 if (!args) SWIG_fail;
26364 swig_obj[0] = args;
26365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26366 if (!SWIG_IsOK(res1)) {
26367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26368 }
26369 arg1 = reinterpret_cast< wxListItem * >(argp1);
26370 {
26371 PyThreadState* __tstate = wxPyBeginAllowThreads();
26372 (arg1)->Clear();
26373 wxPyEndAllowThreads(__tstate);
26374 if (PyErr_Occurred()) SWIG_fail;
26375 }
26376 resultobj = SWIG_Py_Void();
26377 return resultobj;
26378 fail:
26379 return NULL;
26380 }
26381
26382
26383 SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26384 PyObject *resultobj = 0;
26385 wxListItem *arg1 = (wxListItem *) 0 ;
26386 void *argp1 = 0 ;
26387 int res1 = 0 ;
26388 PyObject *swig_obj[1] ;
26389
26390 if (!args) SWIG_fail;
26391 swig_obj[0] = args;
26392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26393 if (!SWIG_IsOK(res1)) {
26394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26395 }
26396 arg1 = reinterpret_cast< wxListItem * >(argp1);
26397 {
26398 PyThreadState* __tstate = wxPyBeginAllowThreads();
26399 (arg1)->ClearAttributes();
26400 wxPyEndAllowThreads(__tstate);
26401 if (PyErr_Occurred()) SWIG_fail;
26402 }
26403 resultobj = SWIG_Py_Void();
26404 return resultobj;
26405 fail:
26406 return NULL;
26407 }
26408
26409
26410 SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26411 PyObject *resultobj = 0;
26412 wxListItem *arg1 = (wxListItem *) 0 ;
26413 long arg2 ;
26414 void *argp1 = 0 ;
26415 int res1 = 0 ;
26416 long val2 ;
26417 int ecode2 = 0 ;
26418 PyObject * obj0 = 0 ;
26419 PyObject * obj1 = 0 ;
26420 char * kwnames[] = {
26421 (char *) "self",(char *) "mask", NULL
26422 };
26423
26424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26426 if (!SWIG_IsOK(res1)) {
26427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26428 }
26429 arg1 = reinterpret_cast< wxListItem * >(argp1);
26430 ecode2 = SWIG_AsVal_long(obj1, &val2);
26431 if (!SWIG_IsOK(ecode2)) {
26432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26433 }
26434 arg2 = static_cast< long >(val2);
26435 {
26436 PyThreadState* __tstate = wxPyBeginAllowThreads();
26437 (arg1)->SetMask(arg2);
26438 wxPyEndAllowThreads(__tstate);
26439 if (PyErr_Occurred()) SWIG_fail;
26440 }
26441 resultobj = SWIG_Py_Void();
26442 return resultobj;
26443 fail:
26444 return NULL;
26445 }
26446
26447
26448 SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26449 PyObject *resultobj = 0;
26450 wxListItem *arg1 = (wxListItem *) 0 ;
26451 long arg2 ;
26452 void *argp1 = 0 ;
26453 int res1 = 0 ;
26454 long val2 ;
26455 int ecode2 = 0 ;
26456 PyObject * obj0 = 0 ;
26457 PyObject * obj1 = 0 ;
26458 char * kwnames[] = {
26459 (char *) "self",(char *) "id", NULL
26460 };
26461
26462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26464 if (!SWIG_IsOK(res1)) {
26465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26466 }
26467 arg1 = reinterpret_cast< wxListItem * >(argp1);
26468 ecode2 = SWIG_AsVal_long(obj1, &val2);
26469 if (!SWIG_IsOK(ecode2)) {
26470 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26471 }
26472 arg2 = static_cast< long >(val2);
26473 {
26474 PyThreadState* __tstate = wxPyBeginAllowThreads();
26475 (arg1)->SetId(arg2);
26476 wxPyEndAllowThreads(__tstate);
26477 if (PyErr_Occurred()) SWIG_fail;
26478 }
26479 resultobj = SWIG_Py_Void();
26480 return resultobj;
26481 fail:
26482 return NULL;
26483 }
26484
26485
26486 SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26487 PyObject *resultobj = 0;
26488 wxListItem *arg1 = (wxListItem *) 0 ;
26489 int arg2 ;
26490 void *argp1 = 0 ;
26491 int res1 = 0 ;
26492 int val2 ;
26493 int ecode2 = 0 ;
26494 PyObject * obj0 = 0 ;
26495 PyObject * obj1 = 0 ;
26496 char * kwnames[] = {
26497 (char *) "self",(char *) "col", NULL
26498 };
26499
26500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26502 if (!SWIG_IsOK(res1)) {
26503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26504 }
26505 arg1 = reinterpret_cast< wxListItem * >(argp1);
26506 ecode2 = SWIG_AsVal_int(obj1, &val2);
26507 if (!SWIG_IsOK(ecode2)) {
26508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26509 }
26510 arg2 = static_cast< int >(val2);
26511 {
26512 PyThreadState* __tstate = wxPyBeginAllowThreads();
26513 (arg1)->SetColumn(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_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26525 PyObject *resultobj = 0;
26526 wxListItem *arg1 = (wxListItem *) 0 ;
26527 long arg2 ;
26528 void *argp1 = 0 ;
26529 int res1 = 0 ;
26530 long val2 ;
26531 int ecode2 = 0 ;
26532 PyObject * obj0 = 0 ;
26533 PyObject * obj1 = 0 ;
26534 char * kwnames[] = {
26535 (char *) "self",(char *) "state", NULL
26536 };
26537
26538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26540 if (!SWIG_IsOK(res1)) {
26541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26542 }
26543 arg1 = reinterpret_cast< wxListItem * >(argp1);
26544 ecode2 = SWIG_AsVal_long(obj1, &val2);
26545 if (!SWIG_IsOK(ecode2)) {
26546 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26547 }
26548 arg2 = static_cast< long >(val2);
26549 {
26550 PyThreadState* __tstate = wxPyBeginAllowThreads();
26551 (arg1)->SetState(arg2);
26552 wxPyEndAllowThreads(__tstate);
26553 if (PyErr_Occurred()) SWIG_fail;
26554 }
26555 resultobj = SWIG_Py_Void();
26556 return resultobj;
26557 fail:
26558 return NULL;
26559 }
26560
26561
26562 SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26563 PyObject *resultobj = 0;
26564 wxListItem *arg1 = (wxListItem *) 0 ;
26565 long arg2 ;
26566 void *argp1 = 0 ;
26567 int res1 = 0 ;
26568 long val2 ;
26569 int ecode2 = 0 ;
26570 PyObject * obj0 = 0 ;
26571 PyObject * obj1 = 0 ;
26572 char * kwnames[] = {
26573 (char *) "self",(char *) "stateMask", NULL
26574 };
26575
26576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26578 if (!SWIG_IsOK(res1)) {
26579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26580 }
26581 arg1 = reinterpret_cast< wxListItem * >(argp1);
26582 ecode2 = SWIG_AsVal_long(obj1, &val2);
26583 if (!SWIG_IsOK(ecode2)) {
26584 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26585 }
26586 arg2 = static_cast< long >(val2);
26587 {
26588 PyThreadState* __tstate = wxPyBeginAllowThreads();
26589 (arg1)->SetStateMask(arg2);
26590 wxPyEndAllowThreads(__tstate);
26591 if (PyErr_Occurred()) SWIG_fail;
26592 }
26593 resultobj = SWIG_Py_Void();
26594 return resultobj;
26595 fail:
26596 return NULL;
26597 }
26598
26599
26600 SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26601 PyObject *resultobj = 0;
26602 wxListItem *arg1 = (wxListItem *) 0 ;
26603 wxString *arg2 = 0 ;
26604 void *argp1 = 0 ;
26605 int res1 = 0 ;
26606 bool temp2 = false ;
26607 PyObject * obj0 = 0 ;
26608 PyObject * obj1 = 0 ;
26609 char * kwnames[] = {
26610 (char *) "self",(char *) "text", NULL
26611 };
26612
26613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26615 if (!SWIG_IsOK(res1)) {
26616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26617 }
26618 arg1 = reinterpret_cast< wxListItem * >(argp1);
26619 {
26620 arg2 = wxString_in_helper(obj1);
26621 if (arg2 == NULL) SWIG_fail;
26622 temp2 = true;
26623 }
26624 {
26625 PyThreadState* __tstate = wxPyBeginAllowThreads();
26626 (arg1)->SetText((wxString const &)*arg2);
26627 wxPyEndAllowThreads(__tstate);
26628 if (PyErr_Occurred()) SWIG_fail;
26629 }
26630 resultobj = SWIG_Py_Void();
26631 {
26632 if (temp2)
26633 delete arg2;
26634 }
26635 return resultobj;
26636 fail:
26637 {
26638 if (temp2)
26639 delete arg2;
26640 }
26641 return NULL;
26642 }
26643
26644
26645 SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26646 PyObject *resultobj = 0;
26647 wxListItem *arg1 = (wxListItem *) 0 ;
26648 int arg2 ;
26649 void *argp1 = 0 ;
26650 int res1 = 0 ;
26651 int val2 ;
26652 int ecode2 = 0 ;
26653 PyObject * obj0 = 0 ;
26654 PyObject * obj1 = 0 ;
26655 char * kwnames[] = {
26656 (char *) "self",(char *) "image", NULL
26657 };
26658
26659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26661 if (!SWIG_IsOK(res1)) {
26662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26663 }
26664 arg1 = reinterpret_cast< wxListItem * >(argp1);
26665 ecode2 = SWIG_AsVal_int(obj1, &val2);
26666 if (!SWIG_IsOK(ecode2)) {
26667 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26668 }
26669 arg2 = static_cast< int >(val2);
26670 {
26671 PyThreadState* __tstate = wxPyBeginAllowThreads();
26672 (arg1)->SetImage(arg2);
26673 wxPyEndAllowThreads(__tstate);
26674 if (PyErr_Occurred()) SWIG_fail;
26675 }
26676 resultobj = SWIG_Py_Void();
26677 return resultobj;
26678 fail:
26679 return NULL;
26680 }
26681
26682
26683 SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26684 PyObject *resultobj = 0;
26685 wxListItem *arg1 = (wxListItem *) 0 ;
26686 long arg2 ;
26687 void *argp1 = 0 ;
26688 int res1 = 0 ;
26689 long val2 ;
26690 int ecode2 = 0 ;
26691 PyObject * obj0 = 0 ;
26692 PyObject * obj1 = 0 ;
26693 char * kwnames[] = {
26694 (char *) "self",(char *) "data", NULL
26695 };
26696
26697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26699 if (!SWIG_IsOK(res1)) {
26700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26701 }
26702 arg1 = reinterpret_cast< wxListItem * >(argp1);
26703 ecode2 = SWIG_AsVal_long(obj1, &val2);
26704 if (!SWIG_IsOK(ecode2)) {
26705 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26706 }
26707 arg2 = static_cast< long >(val2);
26708 {
26709 PyThreadState* __tstate = wxPyBeginAllowThreads();
26710 (arg1)->SetData(arg2);
26711 wxPyEndAllowThreads(__tstate);
26712 if (PyErr_Occurred()) SWIG_fail;
26713 }
26714 resultobj = SWIG_Py_Void();
26715 return resultobj;
26716 fail:
26717 return NULL;
26718 }
26719
26720
26721 SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26722 PyObject *resultobj = 0;
26723 wxListItem *arg1 = (wxListItem *) 0 ;
26724 int arg2 ;
26725 void *argp1 = 0 ;
26726 int res1 = 0 ;
26727 int val2 ;
26728 int ecode2 = 0 ;
26729 PyObject * obj0 = 0 ;
26730 PyObject * obj1 = 0 ;
26731 char * kwnames[] = {
26732 (char *) "self",(char *) "width", NULL
26733 };
26734
26735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26737 if (!SWIG_IsOK(res1)) {
26738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26739 }
26740 arg1 = reinterpret_cast< wxListItem * >(argp1);
26741 ecode2 = SWIG_AsVal_int(obj1, &val2);
26742 if (!SWIG_IsOK(ecode2)) {
26743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26744 }
26745 arg2 = static_cast< int >(val2);
26746 {
26747 PyThreadState* __tstate = wxPyBeginAllowThreads();
26748 (arg1)->SetWidth(arg2);
26749 wxPyEndAllowThreads(__tstate);
26750 if (PyErr_Occurred()) SWIG_fail;
26751 }
26752 resultobj = SWIG_Py_Void();
26753 return resultobj;
26754 fail:
26755 return NULL;
26756 }
26757
26758
26759 SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26760 PyObject *resultobj = 0;
26761 wxListItem *arg1 = (wxListItem *) 0 ;
26762 wxListColumnFormat arg2 ;
26763 void *argp1 = 0 ;
26764 int res1 = 0 ;
26765 int val2 ;
26766 int ecode2 = 0 ;
26767 PyObject * obj0 = 0 ;
26768 PyObject * obj1 = 0 ;
26769 char * kwnames[] = {
26770 (char *) "self",(char *) "align", NULL
26771 };
26772
26773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26775 if (!SWIG_IsOK(res1)) {
26776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26777 }
26778 arg1 = reinterpret_cast< wxListItem * >(argp1);
26779 ecode2 = SWIG_AsVal_int(obj1, &val2);
26780 if (!SWIG_IsOK(ecode2)) {
26781 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26782 }
26783 arg2 = static_cast< wxListColumnFormat >(val2);
26784 {
26785 PyThreadState* __tstate = wxPyBeginAllowThreads();
26786 (arg1)->SetAlign(arg2);
26787 wxPyEndAllowThreads(__tstate);
26788 if (PyErr_Occurred()) SWIG_fail;
26789 }
26790 resultobj = SWIG_Py_Void();
26791 return resultobj;
26792 fail:
26793 return NULL;
26794 }
26795
26796
26797 SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26798 PyObject *resultobj = 0;
26799 wxListItem *arg1 = (wxListItem *) 0 ;
26800 wxColour *arg2 = 0 ;
26801 void *argp1 = 0 ;
26802 int res1 = 0 ;
26803 wxColour temp2 ;
26804 PyObject * obj0 = 0 ;
26805 PyObject * obj1 = 0 ;
26806 char * kwnames[] = {
26807 (char *) "self",(char *) "colText", NULL
26808 };
26809
26810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26812 if (!SWIG_IsOK(res1)) {
26813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26814 }
26815 arg1 = reinterpret_cast< wxListItem * >(argp1);
26816 {
26817 arg2 = &temp2;
26818 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26819 }
26820 {
26821 PyThreadState* __tstate = wxPyBeginAllowThreads();
26822 (arg1)->SetTextColour((wxColour const &)*arg2);
26823 wxPyEndAllowThreads(__tstate);
26824 if (PyErr_Occurred()) SWIG_fail;
26825 }
26826 resultobj = SWIG_Py_Void();
26827 return resultobj;
26828 fail:
26829 return NULL;
26830 }
26831
26832
26833 SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26834 PyObject *resultobj = 0;
26835 wxListItem *arg1 = (wxListItem *) 0 ;
26836 wxColour *arg2 = 0 ;
26837 void *argp1 = 0 ;
26838 int res1 = 0 ;
26839 wxColour temp2 ;
26840 PyObject * obj0 = 0 ;
26841 PyObject * obj1 = 0 ;
26842 char * kwnames[] = {
26843 (char *) "self",(char *) "colBack", NULL
26844 };
26845
26846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26848 if (!SWIG_IsOK(res1)) {
26849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26850 }
26851 arg1 = reinterpret_cast< wxListItem * >(argp1);
26852 {
26853 arg2 = &temp2;
26854 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26855 }
26856 {
26857 PyThreadState* __tstate = wxPyBeginAllowThreads();
26858 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26859 wxPyEndAllowThreads(__tstate);
26860 if (PyErr_Occurred()) SWIG_fail;
26861 }
26862 resultobj = SWIG_Py_Void();
26863 return resultobj;
26864 fail:
26865 return NULL;
26866 }
26867
26868
26869 SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26870 PyObject *resultobj = 0;
26871 wxListItem *arg1 = (wxListItem *) 0 ;
26872 wxFont *arg2 = 0 ;
26873 void *argp1 = 0 ;
26874 int res1 = 0 ;
26875 void *argp2 = 0 ;
26876 int res2 = 0 ;
26877 PyObject * obj0 = 0 ;
26878 PyObject * obj1 = 0 ;
26879 char * kwnames[] = {
26880 (char *) "self",(char *) "font", NULL
26881 };
26882
26883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26885 if (!SWIG_IsOK(res1)) {
26886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
26887 }
26888 arg1 = reinterpret_cast< wxListItem * >(argp1);
26889 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26890 if (!SWIG_IsOK(res2)) {
26891 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26892 }
26893 if (!argp2) {
26894 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26895 }
26896 arg2 = reinterpret_cast< wxFont * >(argp2);
26897 {
26898 PyThreadState* __tstate = wxPyBeginAllowThreads();
26899 (arg1)->SetFont((wxFont const &)*arg2);
26900 wxPyEndAllowThreads(__tstate);
26901 if (PyErr_Occurred()) SWIG_fail;
26902 }
26903 resultobj = SWIG_Py_Void();
26904 return resultobj;
26905 fail:
26906 return NULL;
26907 }
26908
26909
26910 SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26911 PyObject *resultobj = 0;
26912 wxListItem *arg1 = (wxListItem *) 0 ;
26913 long result;
26914 void *argp1 = 0 ;
26915 int res1 = 0 ;
26916 PyObject *swig_obj[1] ;
26917
26918 if (!args) SWIG_fail;
26919 swig_obj[0] = args;
26920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26921 if (!SWIG_IsOK(res1)) {
26922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26923 }
26924 arg1 = reinterpret_cast< wxListItem * >(argp1);
26925 {
26926 PyThreadState* __tstate = wxPyBeginAllowThreads();
26927 result = (long)(arg1)->GetMask();
26928 wxPyEndAllowThreads(__tstate);
26929 if (PyErr_Occurred()) SWIG_fail;
26930 }
26931 resultobj = SWIG_From_long(static_cast< long >(result));
26932 return resultobj;
26933 fail:
26934 return NULL;
26935 }
26936
26937
26938 SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26939 PyObject *resultobj = 0;
26940 wxListItem *arg1 = (wxListItem *) 0 ;
26941 long result;
26942 void *argp1 = 0 ;
26943 int res1 = 0 ;
26944 PyObject *swig_obj[1] ;
26945
26946 if (!args) SWIG_fail;
26947 swig_obj[0] = args;
26948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26949 if (!SWIG_IsOK(res1)) {
26950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26951 }
26952 arg1 = reinterpret_cast< wxListItem * >(argp1);
26953 {
26954 PyThreadState* __tstate = wxPyBeginAllowThreads();
26955 result = (long)(arg1)->GetId();
26956 wxPyEndAllowThreads(__tstate);
26957 if (PyErr_Occurred()) SWIG_fail;
26958 }
26959 resultobj = SWIG_From_long(static_cast< long >(result));
26960 return resultobj;
26961 fail:
26962 return NULL;
26963 }
26964
26965
26966 SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26967 PyObject *resultobj = 0;
26968 wxListItem *arg1 = (wxListItem *) 0 ;
26969 int result;
26970 void *argp1 = 0 ;
26971 int res1 = 0 ;
26972 PyObject *swig_obj[1] ;
26973
26974 if (!args) SWIG_fail;
26975 swig_obj[0] = args;
26976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26977 if (!SWIG_IsOK(res1)) {
26978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26979 }
26980 arg1 = reinterpret_cast< wxListItem * >(argp1);
26981 {
26982 PyThreadState* __tstate = wxPyBeginAllowThreads();
26983 result = (int)(arg1)->GetColumn();
26984 wxPyEndAllowThreads(__tstate);
26985 if (PyErr_Occurred()) SWIG_fail;
26986 }
26987 resultobj = SWIG_From_int(static_cast< int >(result));
26988 return resultobj;
26989 fail:
26990 return NULL;
26991 }
26992
26993
26994 SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26995 PyObject *resultobj = 0;
26996 wxListItem *arg1 = (wxListItem *) 0 ;
26997 long result;
26998 void *argp1 = 0 ;
26999 int res1 = 0 ;
27000 PyObject *swig_obj[1] ;
27001
27002 if (!args) SWIG_fail;
27003 swig_obj[0] = args;
27004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27005 if (!SWIG_IsOK(res1)) {
27006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
27007 }
27008 arg1 = reinterpret_cast< wxListItem * >(argp1);
27009 {
27010 PyThreadState* __tstate = wxPyBeginAllowThreads();
27011 result = (long)(arg1)->GetState();
27012 wxPyEndAllowThreads(__tstate);
27013 if (PyErr_Occurred()) SWIG_fail;
27014 }
27015 resultobj = SWIG_From_long(static_cast< long >(result));
27016 return resultobj;
27017 fail:
27018 return NULL;
27019 }
27020
27021
27022 SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27023 PyObject *resultobj = 0;
27024 wxListItem *arg1 = (wxListItem *) 0 ;
27025 wxString *result = 0 ;
27026 void *argp1 = 0 ;
27027 int res1 = 0 ;
27028 PyObject *swig_obj[1] ;
27029
27030 if (!args) SWIG_fail;
27031 swig_obj[0] = args;
27032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27033 if (!SWIG_IsOK(res1)) {
27034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
27035 }
27036 arg1 = reinterpret_cast< wxListItem * >(argp1);
27037 {
27038 PyThreadState* __tstate = wxPyBeginAllowThreads();
27039 {
27040 wxString const &_result_ref = (arg1)->GetText();
27041 result = (wxString *) &_result_ref;
27042 }
27043 wxPyEndAllowThreads(__tstate);
27044 if (PyErr_Occurred()) SWIG_fail;
27045 }
27046 {
27047 #if wxUSE_UNICODE
27048 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27049 #else
27050 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27051 #endif
27052 }
27053 return resultobj;
27054 fail:
27055 return NULL;
27056 }
27057
27058
27059 SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27060 PyObject *resultobj = 0;
27061 wxListItem *arg1 = (wxListItem *) 0 ;
27062 int result;
27063 void *argp1 = 0 ;
27064 int res1 = 0 ;
27065 PyObject *swig_obj[1] ;
27066
27067 if (!args) SWIG_fail;
27068 swig_obj[0] = args;
27069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27070 if (!SWIG_IsOK(res1)) {
27071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27072 }
27073 arg1 = reinterpret_cast< wxListItem * >(argp1);
27074 {
27075 PyThreadState* __tstate = wxPyBeginAllowThreads();
27076 result = (int)(arg1)->GetImage();
27077 wxPyEndAllowThreads(__tstate);
27078 if (PyErr_Occurred()) SWIG_fail;
27079 }
27080 resultobj = SWIG_From_int(static_cast< int >(result));
27081 return resultobj;
27082 fail:
27083 return NULL;
27084 }
27085
27086
27087 SWIGINTERN PyObject *_wrap_ListItem_GetData(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_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27100 }
27101 arg1 = reinterpret_cast< wxListItem * >(argp1);
27102 {
27103 PyThreadState* __tstate = wxPyBeginAllowThreads();
27104 result = (long)(arg1)->GetData();
27105 wxPyEndAllowThreads(__tstate);
27106 if (PyErr_Occurred()) SWIG_fail;
27107 }
27108 resultobj = SWIG_From_long(static_cast< long >(result));
27109 return resultobj;
27110 fail:
27111 return NULL;
27112 }
27113
27114
27115 SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27116 PyObject *resultobj = 0;
27117 wxListItem *arg1 = (wxListItem *) 0 ;
27118 int result;
27119 void *argp1 = 0 ;
27120 int res1 = 0 ;
27121 PyObject *swig_obj[1] ;
27122
27123 if (!args) SWIG_fail;
27124 swig_obj[0] = args;
27125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27126 if (!SWIG_IsOK(res1)) {
27127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27128 }
27129 arg1 = reinterpret_cast< wxListItem * >(argp1);
27130 {
27131 PyThreadState* __tstate = wxPyBeginAllowThreads();
27132 result = (int)(arg1)->GetWidth();
27133 wxPyEndAllowThreads(__tstate);
27134 if (PyErr_Occurred()) SWIG_fail;
27135 }
27136 resultobj = SWIG_From_int(static_cast< int >(result));
27137 return resultobj;
27138 fail:
27139 return NULL;
27140 }
27141
27142
27143 SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27144 PyObject *resultobj = 0;
27145 wxListItem *arg1 = (wxListItem *) 0 ;
27146 wxListColumnFormat result;
27147 void *argp1 = 0 ;
27148 int res1 = 0 ;
27149 PyObject *swig_obj[1] ;
27150
27151 if (!args) SWIG_fail;
27152 swig_obj[0] = args;
27153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27154 if (!SWIG_IsOK(res1)) {
27155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27156 }
27157 arg1 = reinterpret_cast< wxListItem * >(argp1);
27158 {
27159 PyThreadState* __tstate = wxPyBeginAllowThreads();
27160 result = (wxListColumnFormat)(arg1)->GetAlign();
27161 wxPyEndAllowThreads(__tstate);
27162 if (PyErr_Occurred()) SWIG_fail;
27163 }
27164 resultobj = SWIG_From_int(static_cast< int >(result));
27165 return resultobj;
27166 fail:
27167 return NULL;
27168 }
27169
27170
27171 SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27172 PyObject *resultobj = 0;
27173 wxListItem *arg1 = (wxListItem *) 0 ;
27174 wxListItemAttr *result = 0 ;
27175 void *argp1 = 0 ;
27176 int res1 = 0 ;
27177 PyObject *swig_obj[1] ;
27178
27179 if (!args) SWIG_fail;
27180 swig_obj[0] = args;
27181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27182 if (!SWIG_IsOK(res1)) {
27183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27184 }
27185 arg1 = reinterpret_cast< wxListItem * >(argp1);
27186 {
27187 PyThreadState* __tstate = wxPyBeginAllowThreads();
27188 result = (wxListItemAttr *)(arg1)->GetAttributes();
27189 wxPyEndAllowThreads(__tstate);
27190 if (PyErr_Occurred()) SWIG_fail;
27191 }
27192 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27193 return resultobj;
27194 fail:
27195 return NULL;
27196 }
27197
27198
27199 SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27200 PyObject *resultobj = 0;
27201 wxListItem *arg1 = (wxListItem *) 0 ;
27202 bool result;
27203 void *argp1 = 0 ;
27204 int res1 = 0 ;
27205 PyObject *swig_obj[1] ;
27206
27207 if (!args) SWIG_fail;
27208 swig_obj[0] = args;
27209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27210 if (!SWIG_IsOK(res1)) {
27211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27212 }
27213 arg1 = reinterpret_cast< wxListItem * >(argp1);
27214 {
27215 PyThreadState* __tstate = wxPyBeginAllowThreads();
27216 result = (bool)(arg1)->HasAttributes();
27217 wxPyEndAllowThreads(__tstate);
27218 if (PyErr_Occurred()) SWIG_fail;
27219 }
27220 {
27221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27222 }
27223 return resultobj;
27224 fail:
27225 return NULL;
27226 }
27227
27228
27229 SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27230 PyObject *resultobj = 0;
27231 wxListItem *arg1 = (wxListItem *) 0 ;
27232 wxColour result;
27233 void *argp1 = 0 ;
27234 int res1 = 0 ;
27235 PyObject *swig_obj[1] ;
27236
27237 if (!args) SWIG_fail;
27238 swig_obj[0] = args;
27239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27240 if (!SWIG_IsOK(res1)) {
27241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27242 }
27243 arg1 = reinterpret_cast< wxListItem * >(argp1);
27244 {
27245 PyThreadState* __tstate = wxPyBeginAllowThreads();
27246 result = ((wxListItem const *)arg1)->GetTextColour();
27247 wxPyEndAllowThreads(__tstate);
27248 if (PyErr_Occurred()) SWIG_fail;
27249 }
27250 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27251 return resultobj;
27252 fail:
27253 return NULL;
27254 }
27255
27256
27257 SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27258 PyObject *resultobj = 0;
27259 wxListItem *arg1 = (wxListItem *) 0 ;
27260 wxColour result;
27261 void *argp1 = 0 ;
27262 int res1 = 0 ;
27263 PyObject *swig_obj[1] ;
27264
27265 if (!args) SWIG_fail;
27266 swig_obj[0] = args;
27267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27268 if (!SWIG_IsOK(res1)) {
27269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27270 }
27271 arg1 = reinterpret_cast< wxListItem * >(argp1);
27272 {
27273 PyThreadState* __tstate = wxPyBeginAllowThreads();
27274 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27275 wxPyEndAllowThreads(__tstate);
27276 if (PyErr_Occurred()) SWIG_fail;
27277 }
27278 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27279 return resultobj;
27280 fail:
27281 return NULL;
27282 }
27283
27284
27285 SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27286 PyObject *resultobj = 0;
27287 wxListItem *arg1 = (wxListItem *) 0 ;
27288 wxFont result;
27289 void *argp1 = 0 ;
27290 int res1 = 0 ;
27291 PyObject *swig_obj[1] ;
27292
27293 if (!args) SWIG_fail;
27294 swig_obj[0] = args;
27295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27296 if (!SWIG_IsOK(res1)) {
27297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27298 }
27299 arg1 = reinterpret_cast< wxListItem * >(argp1);
27300 {
27301 PyThreadState* __tstate = wxPyBeginAllowThreads();
27302 result = ((wxListItem const *)arg1)->GetFont();
27303 wxPyEndAllowThreads(__tstate);
27304 if (PyErr_Occurred()) SWIG_fail;
27305 }
27306 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27307 return resultobj;
27308 fail:
27309 return NULL;
27310 }
27311
27312
27313 SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27314 PyObject *resultobj = 0;
27315 wxListItem *arg1 = (wxListItem *) 0 ;
27316 long arg2 ;
27317 void *argp1 = 0 ;
27318 int res1 = 0 ;
27319 long val2 ;
27320 int ecode2 = 0 ;
27321 PyObject *swig_obj[2] ;
27322
27323 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27325 if (!SWIG_IsOK(res1)) {
27326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27327 }
27328 arg1 = reinterpret_cast< wxListItem * >(argp1);
27329 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27330 if (!SWIG_IsOK(ecode2)) {
27331 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27332 }
27333 arg2 = static_cast< long >(val2);
27334 if (arg1) (arg1)->m_mask = arg2;
27335
27336 resultobj = SWIG_Py_Void();
27337 return resultobj;
27338 fail:
27339 return NULL;
27340 }
27341
27342
27343 SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27344 PyObject *resultobj = 0;
27345 wxListItem *arg1 = (wxListItem *) 0 ;
27346 long result;
27347 void *argp1 = 0 ;
27348 int res1 = 0 ;
27349 PyObject *swig_obj[1] ;
27350
27351 if (!args) SWIG_fail;
27352 swig_obj[0] = args;
27353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27354 if (!SWIG_IsOK(res1)) {
27355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27356 }
27357 arg1 = reinterpret_cast< wxListItem * >(argp1);
27358 result = (long) ((arg1)->m_mask);
27359 resultobj = SWIG_From_long(static_cast< long >(result));
27360 return resultobj;
27361 fail:
27362 return NULL;
27363 }
27364
27365
27366 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27367 PyObject *resultobj = 0;
27368 wxListItem *arg1 = (wxListItem *) 0 ;
27369 long arg2 ;
27370 void *argp1 = 0 ;
27371 int res1 = 0 ;
27372 long val2 ;
27373 int ecode2 = 0 ;
27374 PyObject *swig_obj[2] ;
27375
27376 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27378 if (!SWIG_IsOK(res1)) {
27379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27380 }
27381 arg1 = reinterpret_cast< wxListItem * >(argp1);
27382 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27383 if (!SWIG_IsOK(ecode2)) {
27384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27385 }
27386 arg2 = static_cast< long >(val2);
27387 if (arg1) (arg1)->m_itemId = arg2;
27388
27389 resultobj = SWIG_Py_Void();
27390 return resultobj;
27391 fail:
27392 return NULL;
27393 }
27394
27395
27396 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27397 PyObject *resultobj = 0;
27398 wxListItem *arg1 = (wxListItem *) 0 ;
27399 long result;
27400 void *argp1 = 0 ;
27401 int res1 = 0 ;
27402 PyObject *swig_obj[1] ;
27403
27404 if (!args) SWIG_fail;
27405 swig_obj[0] = args;
27406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27407 if (!SWIG_IsOK(res1)) {
27408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27409 }
27410 arg1 = reinterpret_cast< wxListItem * >(argp1);
27411 result = (long) ((arg1)->m_itemId);
27412 resultobj = SWIG_From_long(static_cast< long >(result));
27413 return resultobj;
27414 fail:
27415 return NULL;
27416 }
27417
27418
27419 SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27420 PyObject *resultobj = 0;
27421 wxListItem *arg1 = (wxListItem *) 0 ;
27422 int arg2 ;
27423 void *argp1 = 0 ;
27424 int res1 = 0 ;
27425 int val2 ;
27426 int ecode2 = 0 ;
27427 PyObject *swig_obj[2] ;
27428
27429 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27431 if (!SWIG_IsOK(res1)) {
27432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27433 }
27434 arg1 = reinterpret_cast< wxListItem * >(argp1);
27435 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27436 if (!SWIG_IsOK(ecode2)) {
27437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27438 }
27439 arg2 = static_cast< int >(val2);
27440 if (arg1) (arg1)->m_col = arg2;
27441
27442 resultobj = SWIG_Py_Void();
27443 return resultobj;
27444 fail:
27445 return NULL;
27446 }
27447
27448
27449 SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27450 PyObject *resultobj = 0;
27451 wxListItem *arg1 = (wxListItem *) 0 ;
27452 int result;
27453 void *argp1 = 0 ;
27454 int res1 = 0 ;
27455 PyObject *swig_obj[1] ;
27456
27457 if (!args) SWIG_fail;
27458 swig_obj[0] = args;
27459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27460 if (!SWIG_IsOK(res1)) {
27461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27462 }
27463 arg1 = reinterpret_cast< wxListItem * >(argp1);
27464 result = (int) ((arg1)->m_col);
27465 resultobj = SWIG_From_int(static_cast< int >(result));
27466 return resultobj;
27467 fail:
27468 return NULL;
27469 }
27470
27471
27472 SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27473 PyObject *resultobj = 0;
27474 wxListItem *arg1 = (wxListItem *) 0 ;
27475 long arg2 ;
27476 void *argp1 = 0 ;
27477 int res1 = 0 ;
27478 long val2 ;
27479 int ecode2 = 0 ;
27480 PyObject *swig_obj[2] ;
27481
27482 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27484 if (!SWIG_IsOK(res1)) {
27485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27486 }
27487 arg1 = reinterpret_cast< wxListItem * >(argp1);
27488 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27489 if (!SWIG_IsOK(ecode2)) {
27490 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27491 }
27492 arg2 = static_cast< long >(val2);
27493 if (arg1) (arg1)->m_state = arg2;
27494
27495 resultobj = SWIG_Py_Void();
27496 return resultobj;
27497 fail:
27498 return NULL;
27499 }
27500
27501
27502 SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27503 PyObject *resultobj = 0;
27504 wxListItem *arg1 = (wxListItem *) 0 ;
27505 long result;
27506 void *argp1 = 0 ;
27507 int res1 = 0 ;
27508 PyObject *swig_obj[1] ;
27509
27510 if (!args) SWIG_fail;
27511 swig_obj[0] = args;
27512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27513 if (!SWIG_IsOK(res1)) {
27514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27515 }
27516 arg1 = reinterpret_cast< wxListItem * >(argp1);
27517 result = (long) ((arg1)->m_state);
27518 resultobj = SWIG_From_long(static_cast< long >(result));
27519 return resultobj;
27520 fail:
27521 return NULL;
27522 }
27523
27524
27525 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27526 PyObject *resultobj = 0;
27527 wxListItem *arg1 = (wxListItem *) 0 ;
27528 long arg2 ;
27529 void *argp1 = 0 ;
27530 int res1 = 0 ;
27531 long val2 ;
27532 int ecode2 = 0 ;
27533 PyObject *swig_obj[2] ;
27534
27535 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27537 if (!SWIG_IsOK(res1)) {
27538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27539 }
27540 arg1 = reinterpret_cast< wxListItem * >(argp1);
27541 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27542 if (!SWIG_IsOK(ecode2)) {
27543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27544 }
27545 arg2 = static_cast< long >(val2);
27546 if (arg1) (arg1)->m_stateMask = arg2;
27547
27548 resultobj = SWIG_Py_Void();
27549 return resultobj;
27550 fail:
27551 return NULL;
27552 }
27553
27554
27555 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27556 PyObject *resultobj = 0;
27557 wxListItem *arg1 = (wxListItem *) 0 ;
27558 long result;
27559 void *argp1 = 0 ;
27560 int res1 = 0 ;
27561 PyObject *swig_obj[1] ;
27562
27563 if (!args) SWIG_fail;
27564 swig_obj[0] = args;
27565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27566 if (!SWIG_IsOK(res1)) {
27567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27568 }
27569 arg1 = reinterpret_cast< wxListItem * >(argp1);
27570 result = (long) ((arg1)->m_stateMask);
27571 resultobj = SWIG_From_long(static_cast< long >(result));
27572 return resultobj;
27573 fail:
27574 return NULL;
27575 }
27576
27577
27578 SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27579 PyObject *resultobj = 0;
27580 wxListItem *arg1 = (wxListItem *) 0 ;
27581 wxString *arg2 = (wxString *) 0 ;
27582 void *argp1 = 0 ;
27583 int res1 = 0 ;
27584 bool temp2 = false ;
27585 PyObject *swig_obj[2] ;
27586
27587 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27589 if (!SWIG_IsOK(res1)) {
27590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27591 }
27592 arg1 = reinterpret_cast< wxListItem * >(argp1);
27593 {
27594 arg2 = wxString_in_helper(swig_obj[1]);
27595 if (arg2 == NULL) SWIG_fail;
27596 temp2 = true;
27597 }
27598 if (arg1) (arg1)->m_text = *arg2;
27599
27600 resultobj = SWIG_Py_Void();
27601 {
27602 if (temp2)
27603 delete arg2;
27604 }
27605 return resultobj;
27606 fail:
27607 {
27608 if (temp2)
27609 delete arg2;
27610 }
27611 return NULL;
27612 }
27613
27614
27615 SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27616 PyObject *resultobj = 0;
27617 wxListItem *arg1 = (wxListItem *) 0 ;
27618 wxString *result = 0 ;
27619 void *argp1 = 0 ;
27620 int res1 = 0 ;
27621 PyObject *swig_obj[1] ;
27622
27623 if (!args) SWIG_fail;
27624 swig_obj[0] = args;
27625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27626 if (!SWIG_IsOK(res1)) {
27627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27628 }
27629 arg1 = reinterpret_cast< wxListItem * >(argp1);
27630 result = (wxString *)& ((arg1)->m_text);
27631 {
27632 #if wxUSE_UNICODE
27633 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27634 #else
27635 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27636 #endif
27637 }
27638 return resultobj;
27639 fail:
27640 return NULL;
27641 }
27642
27643
27644 SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27645 PyObject *resultobj = 0;
27646 wxListItem *arg1 = (wxListItem *) 0 ;
27647 int arg2 ;
27648 void *argp1 = 0 ;
27649 int res1 = 0 ;
27650 int val2 ;
27651 int ecode2 = 0 ;
27652 PyObject *swig_obj[2] ;
27653
27654 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27656 if (!SWIG_IsOK(res1)) {
27657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27658 }
27659 arg1 = reinterpret_cast< wxListItem * >(argp1);
27660 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27661 if (!SWIG_IsOK(ecode2)) {
27662 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27663 }
27664 arg2 = static_cast< int >(val2);
27665 if (arg1) (arg1)->m_image = arg2;
27666
27667 resultobj = SWIG_Py_Void();
27668 return resultobj;
27669 fail:
27670 return NULL;
27671 }
27672
27673
27674 SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27675 PyObject *resultobj = 0;
27676 wxListItem *arg1 = (wxListItem *) 0 ;
27677 int result;
27678 void *argp1 = 0 ;
27679 int res1 = 0 ;
27680 PyObject *swig_obj[1] ;
27681
27682 if (!args) SWIG_fail;
27683 swig_obj[0] = args;
27684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27685 if (!SWIG_IsOK(res1)) {
27686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27687 }
27688 arg1 = reinterpret_cast< wxListItem * >(argp1);
27689 result = (int) ((arg1)->m_image);
27690 resultobj = SWIG_From_int(static_cast< int >(result));
27691 return resultobj;
27692 fail:
27693 return NULL;
27694 }
27695
27696
27697 SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27698 PyObject *resultobj = 0;
27699 wxListItem *arg1 = (wxListItem *) 0 ;
27700 long arg2 ;
27701 void *argp1 = 0 ;
27702 int res1 = 0 ;
27703 long val2 ;
27704 int ecode2 = 0 ;
27705 PyObject *swig_obj[2] ;
27706
27707 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27709 if (!SWIG_IsOK(res1)) {
27710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27711 }
27712 arg1 = reinterpret_cast< wxListItem * >(argp1);
27713 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27714 if (!SWIG_IsOK(ecode2)) {
27715 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27716 }
27717 arg2 = static_cast< long >(val2);
27718 if (arg1) (arg1)->m_data = arg2;
27719
27720 resultobj = SWIG_Py_Void();
27721 return resultobj;
27722 fail:
27723 return NULL;
27724 }
27725
27726
27727 SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27728 PyObject *resultobj = 0;
27729 wxListItem *arg1 = (wxListItem *) 0 ;
27730 long result;
27731 void *argp1 = 0 ;
27732 int res1 = 0 ;
27733 PyObject *swig_obj[1] ;
27734
27735 if (!args) SWIG_fail;
27736 swig_obj[0] = args;
27737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27738 if (!SWIG_IsOK(res1)) {
27739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27740 }
27741 arg1 = reinterpret_cast< wxListItem * >(argp1);
27742 result = (long) ((arg1)->m_data);
27743 resultobj = SWIG_From_long(static_cast< long >(result));
27744 return resultobj;
27745 fail:
27746 return NULL;
27747 }
27748
27749
27750 SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27751 PyObject *resultobj = 0;
27752 wxListItem *arg1 = (wxListItem *) 0 ;
27753 int arg2 ;
27754 void *argp1 = 0 ;
27755 int res1 = 0 ;
27756 int val2 ;
27757 int ecode2 = 0 ;
27758 PyObject *swig_obj[2] ;
27759
27760 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27762 if (!SWIG_IsOK(res1)) {
27763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27764 }
27765 arg1 = reinterpret_cast< wxListItem * >(argp1);
27766 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27767 if (!SWIG_IsOK(ecode2)) {
27768 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27769 }
27770 arg2 = static_cast< int >(val2);
27771 if (arg1) (arg1)->m_format = arg2;
27772
27773 resultobj = SWIG_Py_Void();
27774 return resultobj;
27775 fail:
27776 return NULL;
27777 }
27778
27779
27780 SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27781 PyObject *resultobj = 0;
27782 wxListItem *arg1 = (wxListItem *) 0 ;
27783 int result;
27784 void *argp1 = 0 ;
27785 int res1 = 0 ;
27786 PyObject *swig_obj[1] ;
27787
27788 if (!args) SWIG_fail;
27789 swig_obj[0] = args;
27790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27791 if (!SWIG_IsOK(res1)) {
27792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27793 }
27794 arg1 = reinterpret_cast< wxListItem * >(argp1);
27795 result = (int) ((arg1)->m_format);
27796 resultobj = SWIG_From_int(static_cast< int >(result));
27797 return resultobj;
27798 fail:
27799 return NULL;
27800 }
27801
27802
27803 SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27804 PyObject *resultobj = 0;
27805 wxListItem *arg1 = (wxListItem *) 0 ;
27806 int arg2 ;
27807 void *argp1 = 0 ;
27808 int res1 = 0 ;
27809 int val2 ;
27810 int ecode2 = 0 ;
27811 PyObject *swig_obj[2] ;
27812
27813 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27815 if (!SWIG_IsOK(res1)) {
27816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27817 }
27818 arg1 = reinterpret_cast< wxListItem * >(argp1);
27819 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27820 if (!SWIG_IsOK(ecode2)) {
27821 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27822 }
27823 arg2 = static_cast< int >(val2);
27824 if (arg1) (arg1)->m_width = arg2;
27825
27826 resultobj = SWIG_Py_Void();
27827 return resultobj;
27828 fail:
27829 return NULL;
27830 }
27831
27832
27833 SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27834 PyObject *resultobj = 0;
27835 wxListItem *arg1 = (wxListItem *) 0 ;
27836 int result;
27837 void *argp1 = 0 ;
27838 int res1 = 0 ;
27839 PyObject *swig_obj[1] ;
27840
27841 if (!args) SWIG_fail;
27842 swig_obj[0] = args;
27843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27844 if (!SWIG_IsOK(res1)) {
27845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27846 }
27847 arg1 = reinterpret_cast< wxListItem * >(argp1);
27848 result = (int) ((arg1)->m_width);
27849 resultobj = SWIG_From_int(static_cast< int >(result));
27850 return resultobj;
27851 fail:
27852 return NULL;
27853 }
27854
27855
27856 SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27857 PyObject *obj;
27858 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27859 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27860 return SWIG_Py_Void();
27861 }
27862
27863 SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27864 return SWIG_Python_InitShadowInstance(args);
27865 }
27866
27867 SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27868 PyObject *resultobj = 0;
27869 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27870 int arg2 = (int) 0 ;
27871 wxListEvent *result = 0 ;
27872 int val1 ;
27873 int ecode1 = 0 ;
27874 int val2 ;
27875 int ecode2 = 0 ;
27876 PyObject * obj0 = 0 ;
27877 PyObject * obj1 = 0 ;
27878 char * kwnames[] = {
27879 (char *) "commandType",(char *) "id", NULL
27880 };
27881
27882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27883 if (obj0) {
27884 ecode1 = SWIG_AsVal_int(obj0, &val1);
27885 if (!SWIG_IsOK(ecode1)) {
27886 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
27887 }
27888 arg1 = static_cast< wxEventType >(val1);
27889 }
27890 if (obj1) {
27891 ecode2 = SWIG_AsVal_int(obj1, &val2);
27892 if (!SWIG_IsOK(ecode2)) {
27893 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
27894 }
27895 arg2 = static_cast< int >(val2);
27896 }
27897 {
27898 PyThreadState* __tstate = wxPyBeginAllowThreads();
27899 result = (wxListEvent *)new wxListEvent(arg1,arg2);
27900 wxPyEndAllowThreads(__tstate);
27901 if (PyErr_Occurred()) SWIG_fail;
27902 }
27903 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
27904 return resultobj;
27905 fail:
27906 return NULL;
27907 }
27908
27909
27910 SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27911 PyObject *resultobj = 0;
27912 wxListEvent *arg1 = (wxListEvent *) 0 ;
27913 int arg2 ;
27914 void *argp1 = 0 ;
27915 int res1 = 0 ;
27916 int val2 ;
27917 int ecode2 = 0 ;
27918 PyObject *swig_obj[2] ;
27919
27920 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
27921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27922 if (!SWIG_IsOK(res1)) {
27923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27924 }
27925 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27926 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27927 if (!SWIG_IsOK(ecode2)) {
27928 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
27929 }
27930 arg2 = static_cast< int >(val2);
27931 if (arg1) (arg1)->m_code = arg2;
27932
27933 resultobj = SWIG_Py_Void();
27934 return resultobj;
27935 fail:
27936 return NULL;
27937 }
27938
27939
27940 SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27941 PyObject *resultobj = 0;
27942 wxListEvent *arg1 = (wxListEvent *) 0 ;
27943 int result;
27944 void *argp1 = 0 ;
27945 int res1 = 0 ;
27946 PyObject *swig_obj[1] ;
27947
27948 if (!args) SWIG_fail;
27949 swig_obj[0] = args;
27950 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27951 if (!SWIG_IsOK(res1)) {
27952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27953 }
27954 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27955 result = (int) ((arg1)->m_code);
27956 resultobj = SWIG_From_int(static_cast< int >(result));
27957 return resultobj;
27958 fail:
27959 return NULL;
27960 }
27961
27962
27963 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27964 PyObject *resultobj = 0;
27965 wxListEvent *arg1 = (wxListEvent *) 0 ;
27966 long arg2 ;
27967 void *argp1 = 0 ;
27968 int res1 = 0 ;
27969 long val2 ;
27970 int ecode2 = 0 ;
27971 PyObject *swig_obj[2] ;
27972
27973 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
27974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27975 if (!SWIG_IsOK(res1)) {
27976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27977 }
27978 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27979 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27980 if (!SWIG_IsOK(ecode2)) {
27981 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
27982 }
27983 arg2 = static_cast< long >(val2);
27984 if (arg1) (arg1)->m_oldItemIndex = arg2;
27985
27986 resultobj = SWIG_Py_Void();
27987 return resultobj;
27988 fail:
27989 return NULL;
27990 }
27991
27992
27993 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27994 PyObject *resultobj = 0;
27995 wxListEvent *arg1 = (wxListEvent *) 0 ;
27996 long result;
27997 void *argp1 = 0 ;
27998 int res1 = 0 ;
27999 PyObject *swig_obj[1] ;
28000
28001 if (!args) SWIG_fail;
28002 swig_obj[0] = args;
28003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28004 if (!SWIG_IsOK(res1)) {
28005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28006 }
28007 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28008 result = (long) ((arg1)->m_oldItemIndex);
28009 resultobj = SWIG_From_long(static_cast< long >(result));
28010 return resultobj;
28011 fail:
28012 return NULL;
28013 }
28014
28015
28016 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28017 PyObject *resultobj = 0;
28018 wxListEvent *arg1 = (wxListEvent *) 0 ;
28019 long arg2 ;
28020 void *argp1 = 0 ;
28021 int res1 = 0 ;
28022 long val2 ;
28023 int ecode2 = 0 ;
28024 PyObject *swig_obj[2] ;
28025
28026 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
28027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28028 if (!SWIG_IsOK(res1)) {
28029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28030 }
28031 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28032 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28033 if (!SWIG_IsOK(ecode2)) {
28034 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
28035 }
28036 arg2 = static_cast< long >(val2);
28037 if (arg1) (arg1)->m_itemIndex = arg2;
28038
28039 resultobj = SWIG_Py_Void();
28040 return resultobj;
28041 fail:
28042 return NULL;
28043 }
28044
28045
28046 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28047 PyObject *resultobj = 0;
28048 wxListEvent *arg1 = (wxListEvent *) 0 ;
28049 long result;
28050 void *argp1 = 0 ;
28051 int res1 = 0 ;
28052 PyObject *swig_obj[1] ;
28053
28054 if (!args) SWIG_fail;
28055 swig_obj[0] = args;
28056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28057 if (!SWIG_IsOK(res1)) {
28058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28059 }
28060 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28061 result = (long) ((arg1)->m_itemIndex);
28062 resultobj = SWIG_From_long(static_cast< long >(result));
28063 return resultobj;
28064 fail:
28065 return NULL;
28066 }
28067
28068
28069 SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28070 PyObject *resultobj = 0;
28071 wxListEvent *arg1 = (wxListEvent *) 0 ;
28072 int arg2 ;
28073 void *argp1 = 0 ;
28074 int res1 = 0 ;
28075 int val2 ;
28076 int ecode2 = 0 ;
28077 PyObject *swig_obj[2] ;
28078
28079 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
28080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28081 if (!SWIG_IsOK(res1)) {
28082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28083 }
28084 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28085 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28086 if (!SWIG_IsOK(ecode2)) {
28087 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
28088 }
28089 arg2 = static_cast< int >(val2);
28090 if (arg1) (arg1)->m_col = arg2;
28091
28092 resultobj = SWIG_Py_Void();
28093 return resultobj;
28094 fail:
28095 return NULL;
28096 }
28097
28098
28099 SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28100 PyObject *resultobj = 0;
28101 wxListEvent *arg1 = (wxListEvent *) 0 ;
28102 int result;
28103 void *argp1 = 0 ;
28104 int res1 = 0 ;
28105 PyObject *swig_obj[1] ;
28106
28107 if (!args) SWIG_fail;
28108 swig_obj[0] = args;
28109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28110 if (!SWIG_IsOK(res1)) {
28111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28112 }
28113 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28114 result = (int) ((arg1)->m_col);
28115 resultobj = SWIG_From_int(static_cast< int >(result));
28116 return resultobj;
28117 fail:
28118 return NULL;
28119 }
28120
28121
28122 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28123 PyObject *resultobj = 0;
28124 wxListEvent *arg1 = (wxListEvent *) 0 ;
28125 wxPoint *arg2 = (wxPoint *) 0 ;
28126 void *argp1 = 0 ;
28127 int res1 = 0 ;
28128 void *argp2 = 0 ;
28129 int res2 = 0 ;
28130 PyObject *swig_obj[2] ;
28131
28132 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
28133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28134 if (!SWIG_IsOK(res1)) {
28135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28136 }
28137 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28138 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
28139 if (!SWIG_IsOK(res2)) {
28140 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
28141 }
28142 arg2 = reinterpret_cast< wxPoint * >(argp2);
28143 if (arg1) (arg1)->m_pointDrag = *arg2;
28144
28145 resultobj = SWIG_Py_Void();
28146 return resultobj;
28147 fail:
28148 return NULL;
28149 }
28150
28151
28152 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28153 PyObject *resultobj = 0;
28154 wxListEvent *arg1 = (wxListEvent *) 0 ;
28155 wxPoint *result = 0 ;
28156 void *argp1 = 0 ;
28157 int res1 = 0 ;
28158 PyObject *swig_obj[1] ;
28159
28160 if (!args) SWIG_fail;
28161 swig_obj[0] = args;
28162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28163 if (!SWIG_IsOK(res1)) {
28164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28165 }
28166 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28167 result = (wxPoint *)& ((arg1)->m_pointDrag);
28168 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28169 return resultobj;
28170 fail:
28171 return NULL;
28172 }
28173
28174
28175 SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28176 PyObject *resultobj = 0;
28177 wxListEvent *arg1 = (wxListEvent *) 0 ;
28178 wxListItem *result = 0 ;
28179 void *argp1 = 0 ;
28180 int res1 = 0 ;
28181 PyObject *swig_obj[1] ;
28182
28183 if (!args) SWIG_fail;
28184 swig_obj[0] = args;
28185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28186 if (!SWIG_IsOK(res1)) {
28187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28188 }
28189 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28190 result = (wxListItem *)& ((arg1)->m_item);
28191 {
28192 resultobj = wxPyMake_wxObject(result, (bool)0);
28193 }
28194 return resultobj;
28195 fail:
28196 return NULL;
28197 }
28198
28199
28200 SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28201 PyObject *resultobj = 0;
28202 wxListEvent *arg1 = (wxListEvent *) 0 ;
28203 int result;
28204 void *argp1 = 0 ;
28205 int res1 = 0 ;
28206 PyObject *swig_obj[1] ;
28207
28208 if (!args) SWIG_fail;
28209 swig_obj[0] = args;
28210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28211 if (!SWIG_IsOK(res1)) {
28212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28213 }
28214 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28215 {
28216 PyThreadState* __tstate = wxPyBeginAllowThreads();
28217 result = (int)(arg1)->GetKeyCode();
28218 wxPyEndAllowThreads(__tstate);
28219 if (PyErr_Occurred()) SWIG_fail;
28220 }
28221 resultobj = SWIG_From_int(static_cast< int >(result));
28222 return resultobj;
28223 fail:
28224 return NULL;
28225 }
28226
28227
28228 SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28229 PyObject *resultobj = 0;
28230 wxListEvent *arg1 = (wxListEvent *) 0 ;
28231 long result;
28232 void *argp1 = 0 ;
28233 int res1 = 0 ;
28234 PyObject *swig_obj[1] ;
28235
28236 if (!args) SWIG_fail;
28237 swig_obj[0] = args;
28238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28239 if (!SWIG_IsOK(res1)) {
28240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28241 }
28242 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28243 {
28244 PyThreadState* __tstate = wxPyBeginAllowThreads();
28245 result = (long)(arg1)->GetIndex();
28246 wxPyEndAllowThreads(__tstate);
28247 if (PyErr_Occurred()) SWIG_fail;
28248 }
28249 resultobj = SWIG_From_long(static_cast< long >(result));
28250 return resultobj;
28251 fail:
28252 return NULL;
28253 }
28254
28255
28256 SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28257 PyObject *resultobj = 0;
28258 wxListEvent *arg1 = (wxListEvent *) 0 ;
28259 int result;
28260 void *argp1 = 0 ;
28261 int res1 = 0 ;
28262 PyObject *swig_obj[1] ;
28263
28264 if (!args) SWIG_fail;
28265 swig_obj[0] = args;
28266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28267 if (!SWIG_IsOK(res1)) {
28268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28269 }
28270 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28271 {
28272 PyThreadState* __tstate = wxPyBeginAllowThreads();
28273 result = (int)(arg1)->GetColumn();
28274 wxPyEndAllowThreads(__tstate);
28275 if (PyErr_Occurred()) SWIG_fail;
28276 }
28277 resultobj = SWIG_From_int(static_cast< int >(result));
28278 return resultobj;
28279 fail:
28280 return NULL;
28281 }
28282
28283
28284 SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28285 PyObject *resultobj = 0;
28286 wxListEvent *arg1 = (wxListEvent *) 0 ;
28287 wxPoint result;
28288 void *argp1 = 0 ;
28289 int res1 = 0 ;
28290 PyObject *swig_obj[1] ;
28291
28292 if (!args) SWIG_fail;
28293 swig_obj[0] = args;
28294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28295 if (!SWIG_IsOK(res1)) {
28296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28297 }
28298 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28299 {
28300 PyThreadState* __tstate = wxPyBeginAllowThreads();
28301 result = (arg1)->GetPoint();
28302 wxPyEndAllowThreads(__tstate);
28303 if (PyErr_Occurred()) SWIG_fail;
28304 }
28305 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28306 return resultobj;
28307 fail:
28308 return NULL;
28309 }
28310
28311
28312 SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28313 PyObject *resultobj = 0;
28314 wxListEvent *arg1 = (wxListEvent *) 0 ;
28315 wxString *result = 0 ;
28316 void *argp1 = 0 ;
28317 int res1 = 0 ;
28318 PyObject *swig_obj[1] ;
28319
28320 if (!args) SWIG_fail;
28321 swig_obj[0] = args;
28322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28323 if (!SWIG_IsOK(res1)) {
28324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28325 }
28326 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28327 {
28328 PyThreadState* __tstate = wxPyBeginAllowThreads();
28329 {
28330 wxString const &_result_ref = (arg1)->GetLabel();
28331 result = (wxString *) &_result_ref;
28332 }
28333 wxPyEndAllowThreads(__tstate);
28334 if (PyErr_Occurred()) SWIG_fail;
28335 }
28336 {
28337 #if wxUSE_UNICODE
28338 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28339 #else
28340 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28341 #endif
28342 }
28343 return resultobj;
28344 fail:
28345 return NULL;
28346 }
28347
28348
28349 SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28350 PyObject *resultobj = 0;
28351 wxListEvent *arg1 = (wxListEvent *) 0 ;
28352 wxString *result = 0 ;
28353 void *argp1 = 0 ;
28354 int res1 = 0 ;
28355 PyObject *swig_obj[1] ;
28356
28357 if (!args) SWIG_fail;
28358 swig_obj[0] = args;
28359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28360 if (!SWIG_IsOK(res1)) {
28361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28362 }
28363 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28364 {
28365 PyThreadState* __tstate = wxPyBeginAllowThreads();
28366 {
28367 wxString const &_result_ref = (arg1)->GetText();
28368 result = (wxString *) &_result_ref;
28369 }
28370 wxPyEndAllowThreads(__tstate);
28371 if (PyErr_Occurred()) SWIG_fail;
28372 }
28373 {
28374 #if wxUSE_UNICODE
28375 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28376 #else
28377 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28378 #endif
28379 }
28380 return resultobj;
28381 fail:
28382 return NULL;
28383 }
28384
28385
28386 SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28387 PyObject *resultobj = 0;
28388 wxListEvent *arg1 = (wxListEvent *) 0 ;
28389 int result;
28390 void *argp1 = 0 ;
28391 int res1 = 0 ;
28392 PyObject *swig_obj[1] ;
28393
28394 if (!args) SWIG_fail;
28395 swig_obj[0] = args;
28396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28397 if (!SWIG_IsOK(res1)) {
28398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28399 }
28400 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28401 {
28402 PyThreadState* __tstate = wxPyBeginAllowThreads();
28403 result = (int)(arg1)->GetImage();
28404 wxPyEndAllowThreads(__tstate);
28405 if (PyErr_Occurred()) SWIG_fail;
28406 }
28407 resultobj = SWIG_From_int(static_cast< int >(result));
28408 return resultobj;
28409 fail:
28410 return NULL;
28411 }
28412
28413
28414 SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28415 PyObject *resultobj = 0;
28416 wxListEvent *arg1 = (wxListEvent *) 0 ;
28417 long result;
28418 void *argp1 = 0 ;
28419 int res1 = 0 ;
28420 PyObject *swig_obj[1] ;
28421
28422 if (!args) SWIG_fail;
28423 swig_obj[0] = args;
28424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28425 if (!SWIG_IsOK(res1)) {
28426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28427 }
28428 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28429 {
28430 PyThreadState* __tstate = wxPyBeginAllowThreads();
28431 result = (long)(arg1)->GetData();
28432 wxPyEndAllowThreads(__tstate);
28433 if (PyErr_Occurred()) SWIG_fail;
28434 }
28435 resultobj = SWIG_From_long(static_cast< long >(result));
28436 return resultobj;
28437 fail:
28438 return NULL;
28439 }
28440
28441
28442 SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28443 PyObject *resultobj = 0;
28444 wxListEvent *arg1 = (wxListEvent *) 0 ;
28445 long result;
28446 void *argp1 = 0 ;
28447 int res1 = 0 ;
28448 PyObject *swig_obj[1] ;
28449
28450 if (!args) SWIG_fail;
28451 swig_obj[0] = args;
28452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28453 if (!SWIG_IsOK(res1)) {
28454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28455 }
28456 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28457 {
28458 PyThreadState* __tstate = wxPyBeginAllowThreads();
28459 result = (long)(arg1)->GetMask();
28460 wxPyEndAllowThreads(__tstate);
28461 if (PyErr_Occurred()) SWIG_fail;
28462 }
28463 resultobj = SWIG_From_long(static_cast< long >(result));
28464 return resultobj;
28465 fail:
28466 return NULL;
28467 }
28468
28469
28470 SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28471 PyObject *resultobj = 0;
28472 wxListEvent *arg1 = (wxListEvent *) 0 ;
28473 wxListItem *result = 0 ;
28474 void *argp1 = 0 ;
28475 int res1 = 0 ;
28476 PyObject *swig_obj[1] ;
28477
28478 if (!args) SWIG_fail;
28479 swig_obj[0] = args;
28480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28481 if (!SWIG_IsOK(res1)) {
28482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28483 }
28484 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28485 {
28486 PyThreadState* __tstate = wxPyBeginAllowThreads();
28487 {
28488 wxListItem const &_result_ref = (arg1)->GetItem();
28489 result = (wxListItem *) &_result_ref;
28490 }
28491 wxPyEndAllowThreads(__tstate);
28492 if (PyErr_Occurred()) SWIG_fail;
28493 }
28494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28495 return resultobj;
28496 fail:
28497 return NULL;
28498 }
28499
28500
28501 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28502 PyObject *resultobj = 0;
28503 wxListEvent *arg1 = (wxListEvent *) 0 ;
28504 long result;
28505 void *argp1 = 0 ;
28506 int res1 = 0 ;
28507 PyObject *swig_obj[1] ;
28508
28509 if (!args) SWIG_fail;
28510 swig_obj[0] = args;
28511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28512 if (!SWIG_IsOK(res1)) {
28513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28514 }
28515 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28516 {
28517 PyThreadState* __tstate = wxPyBeginAllowThreads();
28518 result = (long)(arg1)->GetCacheFrom();
28519 wxPyEndAllowThreads(__tstate);
28520 if (PyErr_Occurred()) SWIG_fail;
28521 }
28522 resultobj = SWIG_From_long(static_cast< long >(result));
28523 return resultobj;
28524 fail:
28525 return NULL;
28526 }
28527
28528
28529 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28530 PyObject *resultobj = 0;
28531 wxListEvent *arg1 = (wxListEvent *) 0 ;
28532 long result;
28533 void *argp1 = 0 ;
28534 int res1 = 0 ;
28535 PyObject *swig_obj[1] ;
28536
28537 if (!args) SWIG_fail;
28538 swig_obj[0] = args;
28539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28540 if (!SWIG_IsOK(res1)) {
28541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28542 }
28543 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28544 {
28545 PyThreadState* __tstate = wxPyBeginAllowThreads();
28546 result = (long)(arg1)->GetCacheTo();
28547 wxPyEndAllowThreads(__tstate);
28548 if (PyErr_Occurred()) SWIG_fail;
28549 }
28550 resultobj = SWIG_From_long(static_cast< long >(result));
28551 return resultobj;
28552 fail:
28553 return NULL;
28554 }
28555
28556
28557 SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28558 PyObject *resultobj = 0;
28559 wxListEvent *arg1 = (wxListEvent *) 0 ;
28560 bool result;
28561 void *argp1 = 0 ;
28562 int res1 = 0 ;
28563 PyObject *swig_obj[1] ;
28564
28565 if (!args) SWIG_fail;
28566 swig_obj[0] = args;
28567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28568 if (!SWIG_IsOK(res1)) {
28569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28570 }
28571 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28572 {
28573 PyThreadState* __tstate = wxPyBeginAllowThreads();
28574 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28575 wxPyEndAllowThreads(__tstate);
28576 if (PyErr_Occurred()) SWIG_fail;
28577 }
28578 {
28579 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28580 }
28581 return resultobj;
28582 fail:
28583 return NULL;
28584 }
28585
28586
28587 SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28588 PyObject *resultobj = 0;
28589 wxListEvent *arg1 = (wxListEvent *) 0 ;
28590 bool arg2 ;
28591 void *argp1 = 0 ;
28592 int res1 = 0 ;
28593 bool val2 ;
28594 int ecode2 = 0 ;
28595 PyObject * obj0 = 0 ;
28596 PyObject * obj1 = 0 ;
28597 char * kwnames[] = {
28598 (char *) "self",(char *) "editCancelled", NULL
28599 };
28600
28601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28603 if (!SWIG_IsOK(res1)) {
28604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28605 }
28606 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28607 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28608 if (!SWIG_IsOK(ecode2)) {
28609 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28610 }
28611 arg2 = static_cast< bool >(val2);
28612 {
28613 PyThreadState* __tstate = wxPyBeginAllowThreads();
28614 (arg1)->SetEditCanceled(arg2);
28615 wxPyEndAllowThreads(__tstate);
28616 if (PyErr_Occurred()) SWIG_fail;
28617 }
28618 resultobj = SWIG_Py_Void();
28619 return resultobj;
28620 fail:
28621 return NULL;
28622 }
28623
28624
28625 SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28626 PyObject *obj;
28627 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28628 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28629 return SWIG_Py_Void();
28630 }
28631
28632 SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28633 return SWIG_Python_InitShadowInstance(args);
28634 }
28635
28636 SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28637 PyObject *resultobj = 0;
28638 wxWindow *arg1 = (wxWindow *) 0 ;
28639 int arg2 = (int) -1 ;
28640 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28641 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28642 wxSize const &arg4_defvalue = wxDefaultSize ;
28643 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28644 long arg5 = (long) wxLC_ICON ;
28645 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28646 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28647 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28648 wxString *arg7 = (wxString *) &arg7_defvalue ;
28649 wxPyListCtrl *result = 0 ;
28650 void *argp1 = 0 ;
28651 int res1 = 0 ;
28652 int val2 ;
28653 int ecode2 = 0 ;
28654 wxPoint temp3 ;
28655 wxSize temp4 ;
28656 long val5 ;
28657 int ecode5 = 0 ;
28658 void *argp6 = 0 ;
28659 int res6 = 0 ;
28660 bool temp7 = false ;
28661 PyObject * obj0 = 0 ;
28662 PyObject * obj1 = 0 ;
28663 PyObject * obj2 = 0 ;
28664 PyObject * obj3 = 0 ;
28665 PyObject * obj4 = 0 ;
28666 PyObject * obj5 = 0 ;
28667 PyObject * obj6 = 0 ;
28668 char * kwnames[] = {
28669 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28670 };
28671
28672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28674 if (!SWIG_IsOK(res1)) {
28675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28676 }
28677 arg1 = reinterpret_cast< wxWindow * >(argp1);
28678 if (obj1) {
28679 ecode2 = SWIG_AsVal_int(obj1, &val2);
28680 if (!SWIG_IsOK(ecode2)) {
28681 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28682 }
28683 arg2 = static_cast< int >(val2);
28684 }
28685 if (obj2) {
28686 {
28687 arg3 = &temp3;
28688 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28689 }
28690 }
28691 if (obj3) {
28692 {
28693 arg4 = &temp4;
28694 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28695 }
28696 }
28697 if (obj4) {
28698 ecode5 = SWIG_AsVal_long(obj4, &val5);
28699 if (!SWIG_IsOK(ecode5)) {
28700 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28701 }
28702 arg5 = static_cast< long >(val5);
28703 }
28704 if (obj5) {
28705 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28706 if (!SWIG_IsOK(res6)) {
28707 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28708 }
28709 if (!argp6) {
28710 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28711 }
28712 arg6 = reinterpret_cast< wxValidator * >(argp6);
28713 }
28714 if (obj6) {
28715 {
28716 arg7 = wxString_in_helper(obj6);
28717 if (arg7 == NULL) SWIG_fail;
28718 temp7 = true;
28719 }
28720 }
28721 {
28722 if (!wxPyCheckForApp()) SWIG_fail;
28723 PyThreadState* __tstate = wxPyBeginAllowThreads();
28724 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28725 wxPyEndAllowThreads(__tstate);
28726 if (PyErr_Occurred()) SWIG_fail;
28727 }
28728 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28729 {
28730 if (temp7)
28731 delete arg7;
28732 }
28733 return resultobj;
28734 fail:
28735 {
28736 if (temp7)
28737 delete arg7;
28738 }
28739 return NULL;
28740 }
28741
28742
28743 SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28744 PyObject *resultobj = 0;
28745 wxPyListCtrl *result = 0 ;
28746
28747 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28748 {
28749 if (!wxPyCheckForApp()) SWIG_fail;
28750 PyThreadState* __tstate = wxPyBeginAllowThreads();
28751 result = (wxPyListCtrl *)new wxPyListCtrl();
28752 wxPyEndAllowThreads(__tstate);
28753 if (PyErr_Occurred()) SWIG_fail;
28754 }
28755 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28756 return resultobj;
28757 fail:
28758 return NULL;
28759 }
28760
28761
28762 SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28763 PyObject *resultobj = 0;
28764 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28765 wxWindow *arg2 = (wxWindow *) 0 ;
28766 int arg3 = (int) -1 ;
28767 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28768 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28769 wxSize const &arg5_defvalue = wxDefaultSize ;
28770 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28771 long arg6 = (long) wxLC_ICON ;
28772 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28773 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28774 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28775 wxString *arg8 = (wxString *) &arg8_defvalue ;
28776 bool result;
28777 void *argp1 = 0 ;
28778 int res1 = 0 ;
28779 void *argp2 = 0 ;
28780 int res2 = 0 ;
28781 int val3 ;
28782 int ecode3 = 0 ;
28783 wxPoint temp4 ;
28784 wxSize temp5 ;
28785 long val6 ;
28786 int ecode6 = 0 ;
28787 void *argp7 = 0 ;
28788 int res7 = 0 ;
28789 bool temp8 = false ;
28790 PyObject * obj0 = 0 ;
28791 PyObject * obj1 = 0 ;
28792 PyObject * obj2 = 0 ;
28793 PyObject * obj3 = 0 ;
28794 PyObject * obj4 = 0 ;
28795 PyObject * obj5 = 0 ;
28796 PyObject * obj6 = 0 ;
28797 PyObject * obj7 = 0 ;
28798 char * kwnames[] = {
28799 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28800 };
28801
28802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28804 if (!SWIG_IsOK(res1)) {
28805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28806 }
28807 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28808 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28809 if (!SWIG_IsOK(res2)) {
28810 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28811 }
28812 arg2 = reinterpret_cast< wxWindow * >(argp2);
28813 if (obj2) {
28814 ecode3 = SWIG_AsVal_int(obj2, &val3);
28815 if (!SWIG_IsOK(ecode3)) {
28816 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28817 }
28818 arg3 = static_cast< int >(val3);
28819 }
28820 if (obj3) {
28821 {
28822 arg4 = &temp4;
28823 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28824 }
28825 }
28826 if (obj4) {
28827 {
28828 arg5 = &temp5;
28829 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28830 }
28831 }
28832 if (obj5) {
28833 ecode6 = SWIG_AsVal_long(obj5, &val6);
28834 if (!SWIG_IsOK(ecode6)) {
28835 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28836 }
28837 arg6 = static_cast< long >(val6);
28838 }
28839 if (obj6) {
28840 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28841 if (!SWIG_IsOK(res7)) {
28842 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28843 }
28844 if (!argp7) {
28845 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28846 }
28847 arg7 = reinterpret_cast< wxValidator * >(argp7);
28848 }
28849 if (obj7) {
28850 {
28851 arg8 = wxString_in_helper(obj7);
28852 if (arg8 == NULL) SWIG_fail;
28853 temp8 = true;
28854 }
28855 }
28856 {
28857 PyThreadState* __tstate = wxPyBeginAllowThreads();
28858 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28859 wxPyEndAllowThreads(__tstate);
28860 if (PyErr_Occurred()) SWIG_fail;
28861 }
28862 {
28863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28864 }
28865 {
28866 if (temp8)
28867 delete arg8;
28868 }
28869 return resultobj;
28870 fail:
28871 {
28872 if (temp8)
28873 delete arg8;
28874 }
28875 return NULL;
28876 }
28877
28878
28879 SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28880 PyObject *resultobj = 0;
28881 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28882 PyObject *arg2 = (PyObject *) 0 ;
28883 PyObject *arg3 = (PyObject *) 0 ;
28884 void *argp1 = 0 ;
28885 int res1 = 0 ;
28886 PyObject * obj0 = 0 ;
28887 PyObject * obj1 = 0 ;
28888 PyObject * obj2 = 0 ;
28889 char * kwnames[] = {
28890 (char *) "self",(char *) "self",(char *) "_class", NULL
28891 };
28892
28893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",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__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28897 }
28898 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28899 arg2 = obj1;
28900 arg3 = obj2;
28901 {
28902 PyThreadState* __tstate = wxPyBeginAllowThreads();
28903 (arg1)->_setCallbackInfo(arg2,arg3);
28904 wxPyEndAllowThreads(__tstate);
28905 if (PyErr_Occurred()) SWIG_fail;
28906 }
28907 resultobj = SWIG_Py_Void();
28908 return resultobj;
28909 fail:
28910 return NULL;
28911 }
28912
28913
28914 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28915 PyObject *resultobj = 0;
28916 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28917 int arg2 ;
28918 wxListItem *result = 0 ;
28919 void *argp1 = 0 ;
28920 int res1 = 0 ;
28921 int val2 ;
28922 int ecode2 = 0 ;
28923 PyObject * obj0 = 0 ;
28924 PyObject * obj1 = 0 ;
28925 char * kwnames[] = {
28926 (char *) "self",(char *) "col", NULL
28927 };
28928
28929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
28930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28931 if (!SWIG_IsOK(res1)) {
28932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28933 }
28934 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28935 ecode2 = SWIG_AsVal_int(obj1, &val2);
28936 if (!SWIG_IsOK(ecode2)) {
28937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
28938 }
28939 arg2 = static_cast< int >(val2);
28940 {
28941 PyThreadState* __tstate = wxPyBeginAllowThreads();
28942 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
28943 wxPyEndAllowThreads(__tstate);
28944 if (PyErr_Occurred()) SWIG_fail;
28945 }
28946 {
28947 resultobj = wxPyMake_wxObject(result, (bool)0);
28948 }
28949 return resultobj;
28950 fail:
28951 return NULL;
28952 }
28953
28954
28955 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28956 PyObject *resultobj = 0;
28957 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28958 int arg2 ;
28959 wxListItem *arg3 = 0 ;
28960 bool result;
28961 void *argp1 = 0 ;
28962 int res1 = 0 ;
28963 int val2 ;
28964 int ecode2 = 0 ;
28965 void *argp3 = 0 ;
28966 int res3 = 0 ;
28967 PyObject * obj0 = 0 ;
28968 PyObject * obj1 = 0 ;
28969 PyObject * obj2 = 0 ;
28970 char * kwnames[] = {
28971 (char *) "self",(char *) "col",(char *) "item", NULL
28972 };
28973
28974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28976 if (!SWIG_IsOK(res1)) {
28977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28978 }
28979 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28980 ecode2 = SWIG_AsVal_int(obj1, &val2);
28981 if (!SWIG_IsOK(ecode2)) {
28982 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
28983 }
28984 arg2 = static_cast< int >(val2);
28985 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
28986 if (!SWIG_IsOK(res3)) {
28987 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28988 }
28989 if (!argp3) {
28990 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28991 }
28992 arg3 = reinterpret_cast< wxListItem * >(argp3);
28993 {
28994 PyThreadState* __tstate = wxPyBeginAllowThreads();
28995 result = (bool)(arg1)->SetColumn(arg2,*arg3);
28996 wxPyEndAllowThreads(__tstate);
28997 if (PyErr_Occurred()) SWIG_fail;
28998 }
28999 {
29000 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29001 }
29002 return resultobj;
29003 fail:
29004 return NULL;
29005 }
29006
29007
29008 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29009 PyObject *resultobj = 0;
29010 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29011 int arg2 ;
29012 int result;
29013 void *argp1 = 0 ;
29014 int res1 = 0 ;
29015 int val2 ;
29016 int ecode2 = 0 ;
29017 PyObject * obj0 = 0 ;
29018 PyObject * obj1 = 0 ;
29019 char * kwnames[] = {
29020 (char *) "self",(char *) "col", NULL
29021 };
29022
29023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
29024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29025 if (!SWIG_IsOK(res1)) {
29026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29027 }
29028 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29029 ecode2 = SWIG_AsVal_int(obj1, &val2);
29030 if (!SWIG_IsOK(ecode2)) {
29031 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29032 }
29033 arg2 = static_cast< int >(val2);
29034 {
29035 PyThreadState* __tstate = wxPyBeginAllowThreads();
29036 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
29037 wxPyEndAllowThreads(__tstate);
29038 if (PyErr_Occurred()) SWIG_fail;
29039 }
29040 resultobj = SWIG_From_int(static_cast< int >(result));
29041 return resultobj;
29042 fail:
29043 return NULL;
29044 }
29045
29046
29047 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29048 PyObject *resultobj = 0;
29049 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29050 int arg2 ;
29051 int arg3 ;
29052 bool result;
29053 void *argp1 = 0 ;
29054 int res1 = 0 ;
29055 int val2 ;
29056 int ecode2 = 0 ;
29057 int val3 ;
29058 int ecode3 = 0 ;
29059 PyObject * obj0 = 0 ;
29060 PyObject * obj1 = 0 ;
29061 PyObject * obj2 = 0 ;
29062 char * kwnames[] = {
29063 (char *) "self",(char *) "col",(char *) "width", NULL
29064 };
29065
29066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29068 if (!SWIG_IsOK(res1)) {
29069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29070 }
29071 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29072 ecode2 = SWIG_AsVal_int(obj1, &val2);
29073 if (!SWIG_IsOK(ecode2)) {
29074 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29075 }
29076 arg2 = static_cast< int >(val2);
29077 ecode3 = SWIG_AsVal_int(obj2, &val3);
29078 if (!SWIG_IsOK(ecode3)) {
29079 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
29080 }
29081 arg3 = static_cast< int >(val3);
29082 {
29083 PyThreadState* __tstate = wxPyBeginAllowThreads();
29084 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
29085 wxPyEndAllowThreads(__tstate);
29086 if (PyErr_Occurred()) SWIG_fail;
29087 }
29088 {
29089 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29090 }
29091 return resultobj;
29092 fail:
29093 return NULL;
29094 }
29095
29096
29097 SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29098 PyObject *resultobj = 0;
29099 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29100 int result;
29101 void *argp1 = 0 ;
29102 int res1 = 0 ;
29103 PyObject *swig_obj[1] ;
29104
29105 if (!args) SWIG_fail;
29106 swig_obj[0] = args;
29107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29108 if (!SWIG_IsOK(res1)) {
29109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29110 }
29111 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29112 {
29113 PyThreadState* __tstate = wxPyBeginAllowThreads();
29114 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
29115 wxPyEndAllowThreads(__tstate);
29116 if (PyErr_Occurred()) SWIG_fail;
29117 }
29118 resultobj = SWIG_From_int(static_cast< int >(result));
29119 return resultobj;
29120 fail:
29121 return NULL;
29122 }
29123
29124
29125 SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29126 PyObject *resultobj = 0;
29127 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29128 wxRect result;
29129 void *argp1 = 0 ;
29130 int res1 = 0 ;
29131 PyObject *swig_obj[1] ;
29132
29133 if (!args) SWIG_fail;
29134 swig_obj[0] = args;
29135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29136 if (!SWIG_IsOK(res1)) {
29137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29138 }
29139 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29140 {
29141 PyThreadState* __tstate = wxPyBeginAllowThreads();
29142 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
29143 wxPyEndAllowThreads(__tstate);
29144 if (PyErr_Occurred()) SWIG_fail;
29145 }
29146 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29147 return resultobj;
29148 fail:
29149 return NULL;
29150 }
29151
29152
29153 SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29154 PyObject *resultobj = 0;
29155 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29156 wxTextCtrl *result = 0 ;
29157 void *argp1 = 0 ;
29158 int res1 = 0 ;
29159 PyObject *swig_obj[1] ;
29160
29161 if (!args) SWIG_fail;
29162 swig_obj[0] = args;
29163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29164 if (!SWIG_IsOK(res1)) {
29165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29166 }
29167 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29168 {
29169 PyThreadState* __tstate = wxPyBeginAllowThreads();
29170 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29171 wxPyEndAllowThreads(__tstate);
29172 if (PyErr_Occurred()) SWIG_fail;
29173 }
29174 {
29175 resultobj = wxPyMake_wxObject(result, 0);
29176 }
29177 return resultobj;
29178 fail:
29179 return NULL;
29180 }
29181
29182
29183 SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29184 PyObject *resultobj = 0;
29185 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29186 long arg2 ;
29187 int arg3 = (int) 0 ;
29188 wxListItem *result = 0 ;
29189 void *argp1 = 0 ;
29190 int res1 = 0 ;
29191 long val2 ;
29192 int ecode2 = 0 ;
29193 int val3 ;
29194 int ecode3 = 0 ;
29195 PyObject * obj0 = 0 ;
29196 PyObject * obj1 = 0 ;
29197 PyObject * obj2 = 0 ;
29198 char * kwnames[] = {
29199 (char *) "self",(char *) "itemId",(char *) "col", NULL
29200 };
29201
29202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29204 if (!SWIG_IsOK(res1)) {
29205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29206 }
29207 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29208 ecode2 = SWIG_AsVal_long(obj1, &val2);
29209 if (!SWIG_IsOK(ecode2)) {
29210 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29211 }
29212 arg2 = static_cast< long >(val2);
29213 if (obj2) {
29214 ecode3 = SWIG_AsVal_int(obj2, &val3);
29215 if (!SWIG_IsOK(ecode3)) {
29216 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29217 }
29218 arg3 = static_cast< int >(val3);
29219 }
29220 {
29221 PyThreadState* __tstate = wxPyBeginAllowThreads();
29222 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29223 wxPyEndAllowThreads(__tstate);
29224 if (PyErr_Occurred()) SWIG_fail;
29225 }
29226 {
29227 resultobj = wxPyMake_wxObject(result, (bool)0);
29228 }
29229 return resultobj;
29230 fail:
29231 return NULL;
29232 }
29233
29234
29235 SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29236 PyObject *resultobj = 0;
29237 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29238 wxListItem *arg2 = 0 ;
29239 bool result;
29240 void *argp1 = 0 ;
29241 int res1 = 0 ;
29242 void *argp2 = 0 ;
29243 int res2 = 0 ;
29244 PyObject * obj0 = 0 ;
29245 PyObject * obj1 = 0 ;
29246 char * kwnames[] = {
29247 (char *) "self",(char *) "info", NULL
29248 };
29249
29250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29252 if (!SWIG_IsOK(res1)) {
29253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29254 }
29255 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29256 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29257 if (!SWIG_IsOK(res2)) {
29258 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29259 }
29260 if (!argp2) {
29261 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29262 }
29263 arg2 = reinterpret_cast< wxListItem * >(argp2);
29264 {
29265 PyThreadState* __tstate = wxPyBeginAllowThreads();
29266 result = (bool)(arg1)->SetItem(*arg2);
29267 wxPyEndAllowThreads(__tstate);
29268 if (PyErr_Occurred()) SWIG_fail;
29269 }
29270 {
29271 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29272 }
29273 return resultobj;
29274 fail:
29275 return NULL;
29276 }
29277
29278
29279 SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29280 PyObject *resultobj = 0;
29281 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29282 long arg2 ;
29283 int arg3 ;
29284 wxString *arg4 = 0 ;
29285 int arg5 = (int) -1 ;
29286 long result;
29287 void *argp1 = 0 ;
29288 int res1 = 0 ;
29289 long val2 ;
29290 int ecode2 = 0 ;
29291 int val3 ;
29292 int ecode3 = 0 ;
29293 bool temp4 = false ;
29294 int val5 ;
29295 int ecode5 = 0 ;
29296 PyObject * obj0 = 0 ;
29297 PyObject * obj1 = 0 ;
29298 PyObject * obj2 = 0 ;
29299 PyObject * obj3 = 0 ;
29300 PyObject * obj4 = 0 ;
29301 char * kwnames[] = {
29302 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29303 };
29304
29305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29307 if (!SWIG_IsOK(res1)) {
29308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29309 }
29310 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29311 ecode2 = SWIG_AsVal_long(obj1, &val2);
29312 if (!SWIG_IsOK(ecode2)) {
29313 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29314 }
29315 arg2 = static_cast< long >(val2);
29316 ecode3 = SWIG_AsVal_int(obj2, &val3);
29317 if (!SWIG_IsOK(ecode3)) {
29318 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29319 }
29320 arg3 = static_cast< int >(val3);
29321 {
29322 arg4 = wxString_in_helper(obj3);
29323 if (arg4 == NULL) SWIG_fail;
29324 temp4 = true;
29325 }
29326 if (obj4) {
29327 ecode5 = SWIG_AsVal_int(obj4, &val5);
29328 if (!SWIG_IsOK(ecode5)) {
29329 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29330 }
29331 arg5 = static_cast< int >(val5);
29332 }
29333 {
29334 PyThreadState* __tstate = wxPyBeginAllowThreads();
29335 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29336 wxPyEndAllowThreads(__tstate);
29337 if (PyErr_Occurred()) SWIG_fail;
29338 }
29339 resultobj = SWIG_From_long(static_cast< long >(result));
29340 {
29341 if (temp4)
29342 delete arg4;
29343 }
29344 return resultobj;
29345 fail:
29346 {
29347 if (temp4)
29348 delete arg4;
29349 }
29350 return NULL;
29351 }
29352
29353
29354 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29355 PyObject *resultobj = 0;
29356 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29357 long arg2 ;
29358 long arg3 ;
29359 int result;
29360 void *argp1 = 0 ;
29361 int res1 = 0 ;
29362 long val2 ;
29363 int ecode2 = 0 ;
29364 long val3 ;
29365 int ecode3 = 0 ;
29366 PyObject * obj0 = 0 ;
29367 PyObject * obj1 = 0 ;
29368 PyObject * obj2 = 0 ;
29369 char * kwnames[] = {
29370 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29371 };
29372
29373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29375 if (!SWIG_IsOK(res1)) {
29376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29377 }
29378 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29379 ecode2 = SWIG_AsVal_long(obj1, &val2);
29380 if (!SWIG_IsOK(ecode2)) {
29381 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29382 }
29383 arg2 = static_cast< long >(val2);
29384 ecode3 = SWIG_AsVal_long(obj2, &val3);
29385 if (!SWIG_IsOK(ecode3)) {
29386 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29387 }
29388 arg3 = static_cast< long >(val3);
29389 {
29390 PyThreadState* __tstate = wxPyBeginAllowThreads();
29391 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29392 wxPyEndAllowThreads(__tstate);
29393 if (PyErr_Occurred()) SWIG_fail;
29394 }
29395 resultobj = SWIG_From_int(static_cast< int >(result));
29396 return resultobj;
29397 fail:
29398 return NULL;
29399 }
29400
29401
29402 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29403 PyObject *resultobj = 0;
29404 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29405 long arg2 ;
29406 long arg3 ;
29407 long arg4 ;
29408 bool result;
29409 void *argp1 = 0 ;
29410 int res1 = 0 ;
29411 long val2 ;
29412 int ecode2 = 0 ;
29413 long val3 ;
29414 int ecode3 = 0 ;
29415 long val4 ;
29416 int ecode4 = 0 ;
29417 PyObject * obj0 = 0 ;
29418 PyObject * obj1 = 0 ;
29419 PyObject * obj2 = 0 ;
29420 PyObject * obj3 = 0 ;
29421 char * kwnames[] = {
29422 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29423 };
29424
29425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29427 if (!SWIG_IsOK(res1)) {
29428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29429 }
29430 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29431 ecode2 = SWIG_AsVal_long(obj1, &val2);
29432 if (!SWIG_IsOK(ecode2)) {
29433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29434 }
29435 arg2 = static_cast< long >(val2);
29436 ecode3 = SWIG_AsVal_long(obj2, &val3);
29437 if (!SWIG_IsOK(ecode3)) {
29438 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29439 }
29440 arg3 = static_cast< long >(val3);
29441 ecode4 = SWIG_AsVal_long(obj3, &val4);
29442 if (!SWIG_IsOK(ecode4)) {
29443 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29444 }
29445 arg4 = static_cast< long >(val4);
29446 {
29447 PyThreadState* __tstate = wxPyBeginAllowThreads();
29448 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29449 wxPyEndAllowThreads(__tstate);
29450 if (PyErr_Occurred()) SWIG_fail;
29451 }
29452 {
29453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29454 }
29455 return resultobj;
29456 fail:
29457 return NULL;
29458 }
29459
29460
29461 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29462 PyObject *resultobj = 0;
29463 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29464 long arg2 ;
29465 int arg3 ;
29466 int arg4 = (int) -1 ;
29467 bool result;
29468 void *argp1 = 0 ;
29469 int res1 = 0 ;
29470 long val2 ;
29471 int ecode2 = 0 ;
29472 int val3 ;
29473 int ecode3 = 0 ;
29474 int val4 ;
29475 int ecode4 = 0 ;
29476 PyObject * obj0 = 0 ;
29477 PyObject * obj1 = 0 ;
29478 PyObject * obj2 = 0 ;
29479 PyObject * obj3 = 0 ;
29480 char * kwnames[] = {
29481 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29482 };
29483
29484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29486 if (!SWIG_IsOK(res1)) {
29487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29488 }
29489 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29490 ecode2 = SWIG_AsVal_long(obj1, &val2);
29491 if (!SWIG_IsOK(ecode2)) {
29492 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29493 }
29494 arg2 = static_cast< long >(val2);
29495 ecode3 = SWIG_AsVal_int(obj2, &val3);
29496 if (!SWIG_IsOK(ecode3)) {
29497 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29498 }
29499 arg3 = static_cast< int >(val3);
29500 if (obj3) {
29501 ecode4 = SWIG_AsVal_int(obj3, &val4);
29502 if (!SWIG_IsOK(ecode4)) {
29503 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29504 }
29505 arg4 = static_cast< int >(val4);
29506 }
29507 {
29508 PyThreadState* __tstate = wxPyBeginAllowThreads();
29509 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29510 wxPyEndAllowThreads(__tstate);
29511 if (PyErr_Occurred()) SWIG_fail;
29512 }
29513 {
29514 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29515 }
29516 return resultobj;
29517 fail:
29518 return NULL;
29519 }
29520
29521
29522 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29523 PyObject *resultobj = 0;
29524 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29525 long arg2 ;
29526 long arg3 ;
29527 int arg4 ;
29528 bool result;
29529 void *argp1 = 0 ;
29530 int res1 = 0 ;
29531 long val2 ;
29532 int ecode2 = 0 ;
29533 long val3 ;
29534 int ecode3 = 0 ;
29535 int val4 ;
29536 int ecode4 = 0 ;
29537 PyObject * obj0 = 0 ;
29538 PyObject * obj1 = 0 ;
29539 PyObject * obj2 = 0 ;
29540 PyObject * obj3 = 0 ;
29541 char * kwnames[] = {
29542 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29543 };
29544
29545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29547 if (!SWIG_IsOK(res1)) {
29548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29549 }
29550 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29551 ecode2 = SWIG_AsVal_long(obj1, &val2);
29552 if (!SWIG_IsOK(ecode2)) {
29553 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29554 }
29555 arg2 = static_cast< long >(val2);
29556 ecode3 = SWIG_AsVal_long(obj2, &val3);
29557 if (!SWIG_IsOK(ecode3)) {
29558 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29559 }
29560 arg3 = static_cast< long >(val3);
29561 ecode4 = SWIG_AsVal_int(obj3, &val4);
29562 if (!SWIG_IsOK(ecode4)) {
29563 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29564 }
29565 arg4 = static_cast< int >(val4);
29566 {
29567 PyThreadState* __tstate = wxPyBeginAllowThreads();
29568 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29569 wxPyEndAllowThreads(__tstate);
29570 if (PyErr_Occurred()) SWIG_fail;
29571 }
29572 {
29573 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29574 }
29575 return resultobj;
29576 fail:
29577 return NULL;
29578 }
29579
29580
29581 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29582 PyObject *resultobj = 0;
29583 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29584 long arg2 ;
29585 wxString result;
29586 void *argp1 = 0 ;
29587 int res1 = 0 ;
29588 long val2 ;
29589 int ecode2 = 0 ;
29590 PyObject * obj0 = 0 ;
29591 PyObject * obj1 = 0 ;
29592 char * kwnames[] = {
29593 (char *) "self",(char *) "item", NULL
29594 };
29595
29596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29598 if (!SWIG_IsOK(res1)) {
29599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29600 }
29601 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29602 ecode2 = SWIG_AsVal_long(obj1, &val2);
29603 if (!SWIG_IsOK(ecode2)) {
29604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29605 }
29606 arg2 = static_cast< long >(val2);
29607 {
29608 PyThreadState* __tstate = wxPyBeginAllowThreads();
29609 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29610 wxPyEndAllowThreads(__tstate);
29611 if (PyErr_Occurred()) SWIG_fail;
29612 }
29613 {
29614 #if wxUSE_UNICODE
29615 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29616 #else
29617 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29618 #endif
29619 }
29620 return resultobj;
29621 fail:
29622 return NULL;
29623 }
29624
29625
29626 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29627 PyObject *resultobj = 0;
29628 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29629 long arg2 ;
29630 wxString *arg3 = 0 ;
29631 void *argp1 = 0 ;
29632 int res1 = 0 ;
29633 long val2 ;
29634 int ecode2 = 0 ;
29635 bool temp3 = false ;
29636 PyObject * obj0 = 0 ;
29637 PyObject * obj1 = 0 ;
29638 PyObject * obj2 = 0 ;
29639 char * kwnames[] = {
29640 (char *) "self",(char *) "item",(char *) "str", NULL
29641 };
29642
29643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29645 if (!SWIG_IsOK(res1)) {
29646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29647 }
29648 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29649 ecode2 = SWIG_AsVal_long(obj1, &val2);
29650 if (!SWIG_IsOK(ecode2)) {
29651 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29652 }
29653 arg2 = static_cast< long >(val2);
29654 {
29655 arg3 = wxString_in_helper(obj2);
29656 if (arg3 == NULL) SWIG_fail;
29657 temp3 = true;
29658 }
29659 {
29660 PyThreadState* __tstate = wxPyBeginAllowThreads();
29661 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29662 wxPyEndAllowThreads(__tstate);
29663 if (PyErr_Occurred()) SWIG_fail;
29664 }
29665 resultobj = SWIG_Py_Void();
29666 {
29667 if (temp3)
29668 delete arg3;
29669 }
29670 return resultobj;
29671 fail:
29672 {
29673 if (temp3)
29674 delete arg3;
29675 }
29676 return NULL;
29677 }
29678
29679
29680 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29681 PyObject *resultobj = 0;
29682 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29683 long arg2 ;
29684 long result;
29685 void *argp1 = 0 ;
29686 int res1 = 0 ;
29687 long val2 ;
29688 int ecode2 = 0 ;
29689 PyObject * obj0 = 0 ;
29690 PyObject * obj1 = 0 ;
29691 char * kwnames[] = {
29692 (char *) "self",(char *) "item", NULL
29693 };
29694
29695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29697 if (!SWIG_IsOK(res1)) {
29698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29699 }
29700 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29701 ecode2 = SWIG_AsVal_long(obj1, &val2);
29702 if (!SWIG_IsOK(ecode2)) {
29703 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29704 }
29705 arg2 = static_cast< long >(val2);
29706 {
29707 PyThreadState* __tstate = wxPyBeginAllowThreads();
29708 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29709 wxPyEndAllowThreads(__tstate);
29710 if (PyErr_Occurred()) SWIG_fail;
29711 }
29712 resultobj = SWIG_From_long(static_cast< long >(result));
29713 return resultobj;
29714 fail:
29715 return NULL;
29716 }
29717
29718
29719 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29720 PyObject *resultobj = 0;
29721 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29722 long arg2 ;
29723 long arg3 ;
29724 bool result;
29725 void *argp1 = 0 ;
29726 int res1 = 0 ;
29727 long val2 ;
29728 int ecode2 = 0 ;
29729 long val3 ;
29730 int ecode3 = 0 ;
29731 PyObject * obj0 = 0 ;
29732 PyObject * obj1 = 0 ;
29733 PyObject * obj2 = 0 ;
29734 char * kwnames[] = {
29735 (char *) "self",(char *) "item",(char *) "data", NULL
29736 };
29737
29738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29740 if (!SWIG_IsOK(res1)) {
29741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29742 }
29743 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29744 ecode2 = SWIG_AsVal_long(obj1, &val2);
29745 if (!SWIG_IsOK(ecode2)) {
29746 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29747 }
29748 arg2 = static_cast< long >(val2);
29749 ecode3 = SWIG_AsVal_long(obj2, &val3);
29750 if (!SWIG_IsOK(ecode3)) {
29751 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29752 }
29753 arg3 = static_cast< long >(val3);
29754 {
29755 PyThreadState* __tstate = wxPyBeginAllowThreads();
29756 result = (bool)(arg1)->SetItemData(arg2,arg3);
29757 wxPyEndAllowThreads(__tstate);
29758 if (PyErr_Occurred()) SWIG_fail;
29759 }
29760 {
29761 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29762 }
29763 return resultobj;
29764 fail:
29765 return NULL;
29766 }
29767
29768
29769 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29770 PyObject *resultobj = 0;
29771 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29772 long arg2 ;
29773 wxPoint result;
29774 void *argp1 = 0 ;
29775 int res1 = 0 ;
29776 long val2 ;
29777 int ecode2 = 0 ;
29778 PyObject * obj0 = 0 ;
29779 PyObject * obj1 = 0 ;
29780 char * kwnames[] = {
29781 (char *) "self",(char *) "item", NULL
29782 };
29783
29784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29786 if (!SWIG_IsOK(res1)) {
29787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29788 }
29789 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29790 ecode2 = SWIG_AsVal_long(obj1, &val2);
29791 if (!SWIG_IsOK(ecode2)) {
29792 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29793 }
29794 arg2 = static_cast< long >(val2);
29795 {
29796 PyThreadState* __tstate = wxPyBeginAllowThreads();
29797 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29798 wxPyEndAllowThreads(__tstate);
29799 if (PyErr_Occurred()) SWIG_fail;
29800 }
29801 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29802 return resultobj;
29803 fail:
29804 return NULL;
29805 }
29806
29807
29808 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29809 PyObject *resultobj = 0;
29810 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29811 long arg2 ;
29812 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29813 wxRect result;
29814 void *argp1 = 0 ;
29815 int res1 = 0 ;
29816 long val2 ;
29817 int ecode2 = 0 ;
29818 int val3 ;
29819 int ecode3 = 0 ;
29820 PyObject * obj0 = 0 ;
29821 PyObject * obj1 = 0 ;
29822 PyObject * obj2 = 0 ;
29823 char * kwnames[] = {
29824 (char *) "self",(char *) "item",(char *) "code", NULL
29825 };
29826
29827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29829 if (!SWIG_IsOK(res1)) {
29830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29831 }
29832 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29833 ecode2 = SWIG_AsVal_long(obj1, &val2);
29834 if (!SWIG_IsOK(ecode2)) {
29835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29836 }
29837 arg2 = static_cast< long >(val2);
29838 if (obj2) {
29839 ecode3 = SWIG_AsVal_int(obj2, &val3);
29840 if (!SWIG_IsOK(ecode3)) {
29841 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29842 }
29843 arg3 = static_cast< int >(val3);
29844 }
29845 {
29846 PyThreadState* __tstate = wxPyBeginAllowThreads();
29847 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29848 wxPyEndAllowThreads(__tstate);
29849 if (PyErr_Occurred()) SWIG_fail;
29850 }
29851 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29852 return resultobj;
29853 fail:
29854 return NULL;
29855 }
29856
29857
29858 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29859 PyObject *resultobj = 0;
29860 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29861 long arg2 ;
29862 wxPoint *arg3 = 0 ;
29863 bool result;
29864 void *argp1 = 0 ;
29865 int res1 = 0 ;
29866 long val2 ;
29867 int ecode2 = 0 ;
29868 wxPoint temp3 ;
29869 PyObject * obj0 = 0 ;
29870 PyObject * obj1 = 0 ;
29871 PyObject * obj2 = 0 ;
29872 char * kwnames[] = {
29873 (char *) "self",(char *) "item",(char *) "pos", NULL
29874 };
29875
29876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29878 if (!SWIG_IsOK(res1)) {
29879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29880 }
29881 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29882 ecode2 = SWIG_AsVal_long(obj1, &val2);
29883 if (!SWIG_IsOK(ecode2)) {
29884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
29885 }
29886 arg2 = static_cast< long >(val2);
29887 {
29888 arg3 = &temp3;
29889 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29890 }
29891 {
29892 PyThreadState* __tstate = wxPyBeginAllowThreads();
29893 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
29894 wxPyEndAllowThreads(__tstate);
29895 if (PyErr_Occurred()) SWIG_fail;
29896 }
29897 {
29898 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29899 }
29900 return resultobj;
29901 fail:
29902 return NULL;
29903 }
29904
29905
29906 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29907 PyObject *resultobj = 0;
29908 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29909 int result;
29910 void *argp1 = 0 ;
29911 int res1 = 0 ;
29912 PyObject *swig_obj[1] ;
29913
29914 if (!args) SWIG_fail;
29915 swig_obj[0] = args;
29916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29917 if (!SWIG_IsOK(res1)) {
29918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29919 }
29920 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29921 {
29922 PyThreadState* __tstate = wxPyBeginAllowThreads();
29923 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
29924 wxPyEndAllowThreads(__tstate);
29925 if (PyErr_Occurred()) SWIG_fail;
29926 }
29927 resultobj = SWIG_From_int(static_cast< int >(result));
29928 return resultobj;
29929 fail:
29930 return NULL;
29931 }
29932
29933
29934 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29935 PyObject *resultobj = 0;
29936 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29937 int result;
29938 void *argp1 = 0 ;
29939 int res1 = 0 ;
29940 PyObject *swig_obj[1] ;
29941
29942 if (!args) SWIG_fail;
29943 swig_obj[0] = args;
29944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29945 if (!SWIG_IsOK(res1)) {
29946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29947 }
29948 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29949 {
29950 PyThreadState* __tstate = wxPyBeginAllowThreads();
29951 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
29952 wxPyEndAllowThreads(__tstate);
29953 if (PyErr_Occurred()) SWIG_fail;
29954 }
29955 resultobj = SWIG_From_int(static_cast< int >(result));
29956 return resultobj;
29957 fail:
29958 return NULL;
29959 }
29960
29961
29962 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29963 PyObject *resultobj = 0;
29964 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29965 wxSize result;
29966 void *argp1 = 0 ;
29967 int res1 = 0 ;
29968 PyObject *swig_obj[1] ;
29969
29970 if (!args) SWIG_fail;
29971 swig_obj[0] = args;
29972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29973 if (!SWIG_IsOK(res1)) {
29974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29975 }
29976 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29977 {
29978 PyThreadState* __tstate = wxPyBeginAllowThreads();
29979 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
29980 wxPyEndAllowThreads(__tstate);
29981 if (PyErr_Occurred()) SWIG_fail;
29982 }
29983 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
29984 return resultobj;
29985 fail:
29986 return NULL;
29987 }
29988
29989
29990 SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29991 PyObject *resultobj = 0;
29992 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29993 int result;
29994 void *argp1 = 0 ;
29995 int res1 = 0 ;
29996 PyObject *swig_obj[1] ;
29997
29998 if (!args) SWIG_fail;
29999 swig_obj[0] = args;
30000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30001 if (!SWIG_IsOK(res1)) {
30002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30003 }
30004 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30005 {
30006 PyThreadState* __tstate = wxPyBeginAllowThreads();
30007 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
30008 wxPyEndAllowThreads(__tstate);
30009 if (PyErr_Occurred()) SWIG_fail;
30010 }
30011 resultobj = SWIG_From_int(static_cast< int >(result));
30012 return resultobj;
30013 fail:
30014 return NULL;
30015 }
30016
30017
30018 SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30019 PyObject *resultobj = 0;
30020 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30021 wxColour result;
30022 void *argp1 = 0 ;
30023 int res1 = 0 ;
30024 PyObject *swig_obj[1] ;
30025
30026 if (!args) SWIG_fail;
30027 swig_obj[0] = args;
30028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30029 if (!SWIG_IsOK(res1)) {
30030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30031 }
30032 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30033 {
30034 PyThreadState* __tstate = wxPyBeginAllowThreads();
30035 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
30036 wxPyEndAllowThreads(__tstate);
30037 if (PyErr_Occurred()) SWIG_fail;
30038 }
30039 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
30040 return resultobj;
30041 fail:
30042 return NULL;
30043 }
30044
30045
30046 SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30047 PyObject *resultobj = 0;
30048 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30049 wxColour *arg2 = 0 ;
30050 void *argp1 = 0 ;
30051 int res1 = 0 ;
30052 wxColour temp2 ;
30053 PyObject * obj0 = 0 ;
30054 PyObject * obj1 = 0 ;
30055 char * kwnames[] = {
30056 (char *) "self",(char *) "col", NULL
30057 };
30058
30059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
30060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30061 if (!SWIG_IsOK(res1)) {
30062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30063 }
30064 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30065 {
30066 arg2 = &temp2;
30067 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30068 }
30069 {
30070 PyThreadState* __tstate = wxPyBeginAllowThreads();
30071 (arg1)->SetTextColour((wxColour const &)*arg2);
30072 wxPyEndAllowThreads(__tstate);
30073 if (PyErr_Occurred()) SWIG_fail;
30074 }
30075 resultobj = SWIG_Py_Void();
30076 return resultobj;
30077 fail:
30078 return NULL;
30079 }
30080
30081
30082 SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30083 PyObject *resultobj = 0;
30084 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30085 long result;
30086 void *argp1 = 0 ;
30087 int res1 = 0 ;
30088 PyObject *swig_obj[1] ;
30089
30090 if (!args) SWIG_fail;
30091 swig_obj[0] = args;
30092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30093 if (!SWIG_IsOK(res1)) {
30094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30095 }
30096 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30097 {
30098 PyThreadState* __tstate = wxPyBeginAllowThreads();
30099 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30100 wxPyEndAllowThreads(__tstate);
30101 if (PyErr_Occurred()) SWIG_fail;
30102 }
30103 resultobj = SWIG_From_long(static_cast< long >(result));
30104 return resultobj;
30105 fail:
30106 return NULL;
30107 }
30108
30109
30110 SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30111 PyObject *resultobj = 0;
30112 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30113 long arg2 ;
30114 bool arg3 = (bool) true ;
30115 void *argp1 = 0 ;
30116 int res1 = 0 ;
30117 long val2 ;
30118 int ecode2 = 0 ;
30119 bool val3 ;
30120 int ecode3 = 0 ;
30121 PyObject * obj0 = 0 ;
30122 PyObject * obj1 = 0 ;
30123 PyObject * obj2 = 0 ;
30124 char * kwnames[] = {
30125 (char *) "self",(char *) "style",(char *) "add", NULL
30126 };
30127
30128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30130 if (!SWIG_IsOK(res1)) {
30131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30132 }
30133 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30134 ecode2 = SWIG_AsVal_long(obj1, &val2);
30135 if (!SWIG_IsOK(ecode2)) {
30136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30137 }
30138 arg2 = static_cast< long >(val2);
30139 if (obj2) {
30140 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30141 if (!SWIG_IsOK(ecode3)) {
30142 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30143 }
30144 arg3 = static_cast< bool >(val3);
30145 }
30146 {
30147 PyThreadState* __tstate = wxPyBeginAllowThreads();
30148 (arg1)->SetSingleStyle(arg2,arg3);
30149 wxPyEndAllowThreads(__tstate);
30150 if (PyErr_Occurred()) SWIG_fail;
30151 }
30152 resultobj = SWIG_Py_Void();
30153 return resultobj;
30154 fail:
30155 return NULL;
30156 }
30157
30158
30159 SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30160 PyObject *resultobj = 0;
30161 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30162 long arg2 ;
30163 int arg3 = (int) wxLIST_NEXT_ALL ;
30164 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30165 long result;
30166 void *argp1 = 0 ;
30167 int res1 = 0 ;
30168 long val2 ;
30169 int ecode2 = 0 ;
30170 int val3 ;
30171 int ecode3 = 0 ;
30172 int val4 ;
30173 int ecode4 = 0 ;
30174 PyObject * obj0 = 0 ;
30175 PyObject * obj1 = 0 ;
30176 PyObject * obj2 = 0 ;
30177 PyObject * obj3 = 0 ;
30178 char * kwnames[] = {
30179 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30180 };
30181
30182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30184 if (!SWIG_IsOK(res1)) {
30185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30186 }
30187 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30188 ecode2 = SWIG_AsVal_long(obj1, &val2);
30189 if (!SWIG_IsOK(ecode2)) {
30190 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30191 }
30192 arg2 = static_cast< long >(val2);
30193 if (obj2) {
30194 ecode3 = SWIG_AsVal_int(obj2, &val3);
30195 if (!SWIG_IsOK(ecode3)) {
30196 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30197 }
30198 arg3 = static_cast< int >(val3);
30199 }
30200 if (obj3) {
30201 ecode4 = SWIG_AsVal_int(obj3, &val4);
30202 if (!SWIG_IsOK(ecode4)) {
30203 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30204 }
30205 arg4 = static_cast< int >(val4);
30206 }
30207 {
30208 PyThreadState* __tstate = wxPyBeginAllowThreads();
30209 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30210 wxPyEndAllowThreads(__tstate);
30211 if (PyErr_Occurred()) SWIG_fail;
30212 }
30213 resultobj = SWIG_From_long(static_cast< long >(result));
30214 return resultobj;
30215 fail:
30216 return NULL;
30217 }
30218
30219
30220 SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30221 PyObject *resultobj = 0;
30222 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30223 int arg2 ;
30224 wxImageList *result = 0 ;
30225 void *argp1 = 0 ;
30226 int res1 = 0 ;
30227 int val2 ;
30228 int ecode2 = 0 ;
30229 PyObject * obj0 = 0 ;
30230 PyObject * obj1 = 0 ;
30231 char * kwnames[] = {
30232 (char *) "self",(char *) "which", NULL
30233 };
30234
30235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30237 if (!SWIG_IsOK(res1)) {
30238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30239 }
30240 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30241 ecode2 = SWIG_AsVal_int(obj1, &val2);
30242 if (!SWIG_IsOK(ecode2)) {
30243 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30244 }
30245 arg2 = static_cast< int >(val2);
30246 {
30247 PyThreadState* __tstate = wxPyBeginAllowThreads();
30248 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30249 wxPyEndAllowThreads(__tstate);
30250 if (PyErr_Occurred()) SWIG_fail;
30251 }
30252 {
30253 resultobj = wxPyMake_wxObject(result, (bool)0);
30254 }
30255 return resultobj;
30256 fail:
30257 return NULL;
30258 }
30259
30260
30261 SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30262 PyObject *resultobj = 0;
30263 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30264 wxImageList *arg2 = (wxImageList *) 0 ;
30265 int arg3 ;
30266 void *argp1 = 0 ;
30267 int res1 = 0 ;
30268 void *argp2 = 0 ;
30269 int res2 = 0 ;
30270 int val3 ;
30271 int ecode3 = 0 ;
30272 PyObject * obj0 = 0 ;
30273 PyObject * obj1 = 0 ;
30274 PyObject * obj2 = 0 ;
30275 char * kwnames[] = {
30276 (char *) "self",(char *) "imageList",(char *) "which", NULL
30277 };
30278
30279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30281 if (!SWIG_IsOK(res1)) {
30282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30283 }
30284 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30285 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30286 if (!SWIG_IsOK(res2)) {
30287 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30288 }
30289 arg2 = reinterpret_cast< wxImageList * >(argp2);
30290 ecode3 = SWIG_AsVal_int(obj2, &val3);
30291 if (!SWIG_IsOK(ecode3)) {
30292 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30293 }
30294 arg3 = static_cast< int >(val3);
30295 {
30296 PyThreadState* __tstate = wxPyBeginAllowThreads();
30297 (arg1)->SetImageList(arg2,arg3);
30298 wxPyEndAllowThreads(__tstate);
30299 if (PyErr_Occurred()) SWIG_fail;
30300 }
30301 resultobj = SWIG_Py_Void();
30302 return resultobj;
30303 fail:
30304 return NULL;
30305 }
30306
30307
30308 SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30309 PyObject *resultobj = 0;
30310 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30311 wxImageList *arg2 = (wxImageList *) 0 ;
30312 int arg3 ;
30313 void *argp1 = 0 ;
30314 int res1 = 0 ;
30315 int res2 = 0 ;
30316 int val3 ;
30317 int ecode3 = 0 ;
30318 PyObject * obj0 = 0 ;
30319 PyObject * obj1 = 0 ;
30320 PyObject * obj2 = 0 ;
30321 char * kwnames[] = {
30322 (char *) "self",(char *) "imageList",(char *) "which", NULL
30323 };
30324
30325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30327 if (!SWIG_IsOK(res1)) {
30328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30329 }
30330 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30331 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30332 if (!SWIG_IsOK(res2)) {
30333 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30334 }
30335 ecode3 = SWIG_AsVal_int(obj2, &val3);
30336 if (!SWIG_IsOK(ecode3)) {
30337 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30338 }
30339 arg3 = static_cast< int >(val3);
30340 {
30341 PyThreadState* __tstate = wxPyBeginAllowThreads();
30342 (arg1)->AssignImageList(arg2,arg3);
30343 wxPyEndAllowThreads(__tstate);
30344 if (PyErr_Occurred()) SWIG_fail;
30345 }
30346 resultobj = SWIG_Py_Void();
30347 return resultobj;
30348 fail:
30349 return NULL;
30350 }
30351
30352
30353 SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30354 PyObject *resultobj = 0;
30355 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30356 bool result;
30357 void *argp1 = 0 ;
30358 int res1 = 0 ;
30359 PyObject *swig_obj[1] ;
30360
30361 if (!args) SWIG_fail;
30362 swig_obj[0] = args;
30363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30364 if (!SWIG_IsOK(res1)) {
30365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30366 }
30367 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30368 {
30369 PyThreadState* __tstate = wxPyBeginAllowThreads();
30370 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30371 wxPyEndAllowThreads(__tstate);
30372 if (PyErr_Occurred()) SWIG_fail;
30373 }
30374 {
30375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30376 }
30377 return resultobj;
30378 fail:
30379 return NULL;
30380 }
30381
30382
30383 SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30384 PyObject *resultobj = 0;
30385 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30386 bool result;
30387 void *argp1 = 0 ;
30388 int res1 = 0 ;
30389 PyObject *swig_obj[1] ;
30390
30391 if (!args) SWIG_fail;
30392 swig_obj[0] = args;
30393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30394 if (!SWIG_IsOK(res1)) {
30395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30396 }
30397 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30398 {
30399 PyThreadState* __tstate = wxPyBeginAllowThreads();
30400 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30401 wxPyEndAllowThreads(__tstate);
30402 if (PyErr_Occurred()) SWIG_fail;
30403 }
30404 {
30405 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30406 }
30407 return resultobj;
30408 fail:
30409 return NULL;
30410 }
30411
30412
30413 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30414 PyObject *resultobj = 0;
30415 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30416 long arg2 ;
30417 void *argp1 = 0 ;
30418 int res1 = 0 ;
30419 long val2 ;
30420 int ecode2 = 0 ;
30421 PyObject * obj0 = 0 ;
30422 PyObject * obj1 = 0 ;
30423 char * kwnames[] = {
30424 (char *) "self",(char *) "item", NULL
30425 };
30426
30427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30429 if (!SWIG_IsOK(res1)) {
30430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30431 }
30432 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30433 ecode2 = SWIG_AsVal_long(obj1, &val2);
30434 if (!SWIG_IsOK(ecode2)) {
30435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30436 }
30437 arg2 = static_cast< long >(val2);
30438 {
30439 PyThreadState* __tstate = wxPyBeginAllowThreads();
30440 (arg1)->RefreshItem(arg2);
30441 wxPyEndAllowThreads(__tstate);
30442 if (PyErr_Occurred()) SWIG_fail;
30443 }
30444 resultobj = SWIG_Py_Void();
30445 return resultobj;
30446 fail:
30447 return NULL;
30448 }
30449
30450
30451 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30452 PyObject *resultobj = 0;
30453 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30454 long arg2 ;
30455 long arg3 ;
30456 void *argp1 = 0 ;
30457 int res1 = 0 ;
30458 long val2 ;
30459 int ecode2 = 0 ;
30460 long val3 ;
30461 int ecode3 = 0 ;
30462 PyObject * obj0 = 0 ;
30463 PyObject * obj1 = 0 ;
30464 PyObject * obj2 = 0 ;
30465 char * kwnames[] = {
30466 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30467 };
30468
30469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30471 if (!SWIG_IsOK(res1)) {
30472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30473 }
30474 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30475 ecode2 = SWIG_AsVal_long(obj1, &val2);
30476 if (!SWIG_IsOK(ecode2)) {
30477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30478 }
30479 arg2 = static_cast< long >(val2);
30480 ecode3 = SWIG_AsVal_long(obj2, &val3);
30481 if (!SWIG_IsOK(ecode3)) {
30482 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30483 }
30484 arg3 = static_cast< long >(val3);
30485 {
30486 PyThreadState* __tstate = wxPyBeginAllowThreads();
30487 (arg1)->RefreshItems(arg2,arg3);
30488 wxPyEndAllowThreads(__tstate);
30489 if (PyErr_Occurred()) SWIG_fail;
30490 }
30491 resultobj = SWIG_Py_Void();
30492 return resultobj;
30493 fail:
30494 return NULL;
30495 }
30496
30497
30498 SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30499 PyObject *resultobj = 0;
30500 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30501 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30502 bool result;
30503 void *argp1 = 0 ;
30504 int res1 = 0 ;
30505 int val2 ;
30506 int ecode2 = 0 ;
30507 PyObject * obj0 = 0 ;
30508 PyObject * obj1 = 0 ;
30509 char * kwnames[] = {
30510 (char *) "self",(char *) "flag", NULL
30511 };
30512
30513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30515 if (!SWIG_IsOK(res1)) {
30516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30517 }
30518 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30519 if (obj1) {
30520 ecode2 = SWIG_AsVal_int(obj1, &val2);
30521 if (!SWIG_IsOK(ecode2)) {
30522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30523 }
30524 arg2 = static_cast< int >(val2);
30525 }
30526 {
30527 PyThreadState* __tstate = wxPyBeginAllowThreads();
30528 result = (bool)(arg1)->Arrange(arg2);
30529 wxPyEndAllowThreads(__tstate);
30530 if (PyErr_Occurred()) SWIG_fail;
30531 }
30532 {
30533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30534 }
30535 return resultobj;
30536 fail:
30537 return NULL;
30538 }
30539
30540
30541 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30542 PyObject *resultobj = 0;
30543 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30544 long arg2 ;
30545 bool result;
30546 void *argp1 = 0 ;
30547 int res1 = 0 ;
30548 long val2 ;
30549 int ecode2 = 0 ;
30550 PyObject * obj0 = 0 ;
30551 PyObject * obj1 = 0 ;
30552 char * kwnames[] = {
30553 (char *) "self",(char *) "item", NULL
30554 };
30555
30556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30558 if (!SWIG_IsOK(res1)) {
30559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30560 }
30561 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30562 ecode2 = SWIG_AsVal_long(obj1, &val2);
30563 if (!SWIG_IsOK(ecode2)) {
30564 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30565 }
30566 arg2 = static_cast< long >(val2);
30567 {
30568 PyThreadState* __tstate = wxPyBeginAllowThreads();
30569 result = (bool)(arg1)->DeleteItem(arg2);
30570 wxPyEndAllowThreads(__tstate);
30571 if (PyErr_Occurred()) SWIG_fail;
30572 }
30573 {
30574 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30575 }
30576 return resultobj;
30577 fail:
30578 return NULL;
30579 }
30580
30581
30582 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30583 PyObject *resultobj = 0;
30584 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30585 bool result;
30586 void *argp1 = 0 ;
30587 int res1 = 0 ;
30588 PyObject *swig_obj[1] ;
30589
30590 if (!args) SWIG_fail;
30591 swig_obj[0] = args;
30592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30593 if (!SWIG_IsOK(res1)) {
30594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30595 }
30596 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30597 {
30598 PyThreadState* __tstate = wxPyBeginAllowThreads();
30599 result = (bool)(arg1)->DeleteAllItems();
30600 wxPyEndAllowThreads(__tstate);
30601 if (PyErr_Occurred()) SWIG_fail;
30602 }
30603 {
30604 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30605 }
30606 return resultobj;
30607 fail:
30608 return NULL;
30609 }
30610
30611
30612 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30613 PyObject *resultobj = 0;
30614 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30615 int arg2 ;
30616 bool result;
30617 void *argp1 = 0 ;
30618 int res1 = 0 ;
30619 int val2 ;
30620 int ecode2 = 0 ;
30621 PyObject * obj0 = 0 ;
30622 PyObject * obj1 = 0 ;
30623 char * kwnames[] = {
30624 (char *) "self",(char *) "col", NULL
30625 };
30626
30627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30629 if (!SWIG_IsOK(res1)) {
30630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30631 }
30632 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30633 ecode2 = SWIG_AsVal_int(obj1, &val2);
30634 if (!SWIG_IsOK(ecode2)) {
30635 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30636 }
30637 arg2 = static_cast< int >(val2);
30638 {
30639 PyThreadState* __tstate = wxPyBeginAllowThreads();
30640 result = (bool)(arg1)->DeleteColumn(arg2);
30641 wxPyEndAllowThreads(__tstate);
30642 if (PyErr_Occurred()) SWIG_fail;
30643 }
30644 {
30645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30646 }
30647 return resultobj;
30648 fail:
30649 return NULL;
30650 }
30651
30652
30653 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30654 PyObject *resultobj = 0;
30655 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30656 bool result;
30657 void *argp1 = 0 ;
30658 int res1 = 0 ;
30659 PyObject *swig_obj[1] ;
30660
30661 if (!args) SWIG_fail;
30662 swig_obj[0] = args;
30663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30664 if (!SWIG_IsOK(res1)) {
30665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30666 }
30667 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30668 {
30669 PyThreadState* __tstate = wxPyBeginAllowThreads();
30670 result = (bool)(arg1)->DeleteAllColumns();
30671 wxPyEndAllowThreads(__tstate);
30672 if (PyErr_Occurred()) SWIG_fail;
30673 }
30674 {
30675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30676 }
30677 return resultobj;
30678 fail:
30679 return NULL;
30680 }
30681
30682
30683 SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30684 PyObject *resultobj = 0;
30685 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30686 void *argp1 = 0 ;
30687 int res1 = 0 ;
30688 PyObject *swig_obj[1] ;
30689
30690 if (!args) SWIG_fail;
30691 swig_obj[0] = args;
30692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30693 if (!SWIG_IsOK(res1)) {
30694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30695 }
30696 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30697 {
30698 PyThreadState* __tstate = wxPyBeginAllowThreads();
30699 (arg1)->ClearAll();
30700 wxPyEndAllowThreads(__tstate);
30701 if (PyErr_Occurred()) SWIG_fail;
30702 }
30703 resultobj = SWIG_Py_Void();
30704 return resultobj;
30705 fail:
30706 return NULL;
30707 }
30708
30709
30710 SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30711 PyObject *resultobj = 0;
30712 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30713 long arg2 ;
30714 wxTextCtrl *result = 0 ;
30715 void *argp1 = 0 ;
30716 int res1 = 0 ;
30717 long val2 ;
30718 int ecode2 = 0 ;
30719 PyObject * obj0 = 0 ;
30720 PyObject * obj1 = 0 ;
30721 char * kwnames[] = {
30722 (char *) "self",(char *) "item", NULL
30723 };
30724
30725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30727 if (!SWIG_IsOK(res1)) {
30728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30729 }
30730 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30731 ecode2 = SWIG_AsVal_long(obj1, &val2);
30732 if (!SWIG_IsOK(ecode2)) {
30733 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30734 }
30735 arg2 = static_cast< long >(val2);
30736 {
30737 PyThreadState* __tstate = wxPyBeginAllowThreads();
30738 result = (wxTextCtrl *)(arg1)->EditLabel(arg2);
30739 wxPyEndAllowThreads(__tstate);
30740 if (PyErr_Occurred()) SWIG_fail;
30741 }
30742 {
30743 resultobj = wxPyMake_wxObject(result, 0);
30744 }
30745 return resultobj;
30746 fail:
30747 return NULL;
30748 }
30749
30750
30751 SWIGINTERN PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30752 PyObject *resultobj = 0;
30753 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30754 bool arg2 ;
30755 bool result;
30756 void *argp1 = 0 ;
30757 int res1 = 0 ;
30758 bool val2 ;
30759 int ecode2 = 0 ;
30760 PyObject * obj0 = 0 ;
30761 PyObject * obj1 = 0 ;
30762 char * kwnames[] = {
30763 (char *) "self",(char *) "cancel", NULL
30764 };
30765
30766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30768 if (!SWIG_IsOK(res1)) {
30769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30770 }
30771 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30772 ecode2 = SWIG_AsVal_bool(obj1, &val2);
30773 if (!SWIG_IsOK(ecode2)) {
30774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EndEditLabel" "', expected argument " "2"" of type '" "bool""'");
30775 }
30776 arg2 = static_cast< bool >(val2);
30777 {
30778 PyThreadState* __tstate = wxPyBeginAllowThreads();
30779 result = (bool)(arg1)->EndEditLabel(arg2);
30780 wxPyEndAllowThreads(__tstate);
30781 if (PyErr_Occurred()) SWIG_fail;
30782 }
30783 {
30784 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30785 }
30786 return resultobj;
30787 fail:
30788 return NULL;
30789 }
30790
30791
30792 SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30793 PyObject *resultobj = 0;
30794 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30795 long arg2 ;
30796 bool result;
30797 void *argp1 = 0 ;
30798 int res1 = 0 ;
30799 long val2 ;
30800 int ecode2 = 0 ;
30801 PyObject * obj0 = 0 ;
30802 PyObject * obj1 = 0 ;
30803 char * kwnames[] = {
30804 (char *) "self",(char *) "item", NULL
30805 };
30806
30807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30809 if (!SWIG_IsOK(res1)) {
30810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30811 }
30812 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30813 ecode2 = SWIG_AsVal_long(obj1, &val2);
30814 if (!SWIG_IsOK(ecode2)) {
30815 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30816 }
30817 arg2 = static_cast< long >(val2);
30818 {
30819 PyThreadState* __tstate = wxPyBeginAllowThreads();
30820 result = (bool)(arg1)->EnsureVisible(arg2);
30821 wxPyEndAllowThreads(__tstate);
30822 if (PyErr_Occurred()) SWIG_fail;
30823 }
30824 {
30825 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30826 }
30827 return resultobj;
30828 fail:
30829 return NULL;
30830 }
30831
30832
30833 SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30834 PyObject *resultobj = 0;
30835 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30836 long arg2 ;
30837 wxString *arg3 = 0 ;
30838 bool arg4 = (bool) false ;
30839 long result;
30840 void *argp1 = 0 ;
30841 int res1 = 0 ;
30842 long val2 ;
30843 int ecode2 = 0 ;
30844 bool temp3 = false ;
30845 bool val4 ;
30846 int ecode4 = 0 ;
30847 PyObject * obj0 = 0 ;
30848 PyObject * obj1 = 0 ;
30849 PyObject * obj2 = 0 ;
30850 PyObject * obj3 = 0 ;
30851 char * kwnames[] = {
30852 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30853 };
30854
30855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30857 if (!SWIG_IsOK(res1)) {
30858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30859 }
30860 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30861 ecode2 = SWIG_AsVal_long(obj1, &val2);
30862 if (!SWIG_IsOK(ecode2)) {
30863 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30864 }
30865 arg2 = static_cast< long >(val2);
30866 {
30867 arg3 = wxString_in_helper(obj2);
30868 if (arg3 == NULL) SWIG_fail;
30869 temp3 = true;
30870 }
30871 if (obj3) {
30872 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30873 if (!SWIG_IsOK(ecode4)) {
30874 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
30875 }
30876 arg4 = static_cast< bool >(val4);
30877 }
30878 {
30879 PyThreadState* __tstate = wxPyBeginAllowThreads();
30880 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
30881 wxPyEndAllowThreads(__tstate);
30882 if (PyErr_Occurred()) SWIG_fail;
30883 }
30884 resultobj = SWIG_From_long(static_cast< long >(result));
30885 {
30886 if (temp3)
30887 delete arg3;
30888 }
30889 return resultobj;
30890 fail:
30891 {
30892 if (temp3)
30893 delete arg3;
30894 }
30895 return NULL;
30896 }
30897
30898
30899 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30900 PyObject *resultobj = 0;
30901 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30902 long arg2 ;
30903 long arg3 ;
30904 long result;
30905 void *argp1 = 0 ;
30906 int res1 = 0 ;
30907 long val2 ;
30908 int ecode2 = 0 ;
30909 long val3 ;
30910 int ecode3 = 0 ;
30911 PyObject * obj0 = 0 ;
30912 PyObject * obj1 = 0 ;
30913 PyObject * obj2 = 0 ;
30914 char * kwnames[] = {
30915 (char *) "self",(char *) "start",(char *) "data", NULL
30916 };
30917
30918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30920 if (!SWIG_IsOK(res1)) {
30921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30922 }
30923 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30924 ecode2 = SWIG_AsVal_long(obj1, &val2);
30925 if (!SWIG_IsOK(ecode2)) {
30926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
30927 }
30928 arg2 = static_cast< long >(val2);
30929 ecode3 = SWIG_AsVal_long(obj2, &val3);
30930 if (!SWIG_IsOK(ecode3)) {
30931 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
30932 }
30933 arg3 = static_cast< long >(val3);
30934 {
30935 PyThreadState* __tstate = wxPyBeginAllowThreads();
30936 result = (long)(arg1)->FindItem(arg2,arg3);
30937 wxPyEndAllowThreads(__tstate);
30938 if (PyErr_Occurred()) SWIG_fail;
30939 }
30940 resultobj = SWIG_From_long(static_cast< long >(result));
30941 return resultobj;
30942 fail:
30943 return NULL;
30944 }
30945
30946
30947 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30948 PyObject *resultobj = 0;
30949 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30950 long arg2 ;
30951 wxPoint *arg3 = 0 ;
30952 int arg4 ;
30953 long result;
30954 void *argp1 = 0 ;
30955 int res1 = 0 ;
30956 long val2 ;
30957 int ecode2 = 0 ;
30958 wxPoint temp3 ;
30959 int val4 ;
30960 int ecode4 = 0 ;
30961 PyObject * obj0 = 0 ;
30962 PyObject * obj1 = 0 ;
30963 PyObject * obj2 = 0 ;
30964 PyObject * obj3 = 0 ;
30965 char * kwnames[] = {
30966 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
30967 };
30968
30969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30971 if (!SWIG_IsOK(res1)) {
30972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30973 }
30974 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30975 ecode2 = SWIG_AsVal_long(obj1, &val2);
30976 if (!SWIG_IsOK(ecode2)) {
30977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
30978 }
30979 arg2 = static_cast< long >(val2);
30980 {
30981 arg3 = &temp3;
30982 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30983 }
30984 ecode4 = SWIG_AsVal_int(obj3, &val4);
30985 if (!SWIG_IsOK(ecode4)) {
30986 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
30987 }
30988 arg4 = static_cast< int >(val4);
30989 {
30990 PyThreadState* __tstate = wxPyBeginAllowThreads();
30991 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
30992 wxPyEndAllowThreads(__tstate);
30993 if (PyErr_Occurred()) SWIG_fail;
30994 }
30995 resultobj = SWIG_From_long(static_cast< long >(result));
30996 return resultobj;
30997 fail:
30998 return NULL;
30999 }
31000
31001
31002 SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31003 PyObject *resultobj = 0;
31004 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31005 wxPoint *arg2 = 0 ;
31006 int *arg3 = 0 ;
31007 long result;
31008 void *argp1 = 0 ;
31009 int res1 = 0 ;
31010 wxPoint temp2 ;
31011 int temp3 ;
31012 int res3 = SWIG_TMPOBJ ;
31013 PyObject * obj0 = 0 ;
31014 PyObject * obj1 = 0 ;
31015 char * kwnames[] = {
31016 (char *) "self",(char *) "point", NULL
31017 };
31018
31019 arg3 = &temp3;
31020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
31021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31022 if (!SWIG_IsOK(res1)) {
31023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31024 }
31025 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31026 {
31027 arg2 = &temp2;
31028 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31029 }
31030 {
31031 PyThreadState* __tstate = wxPyBeginAllowThreads();
31032 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
31033 wxPyEndAllowThreads(__tstate);
31034 if (PyErr_Occurred()) SWIG_fail;
31035 }
31036 resultobj = SWIG_From_long(static_cast< long >(result));
31037 if (SWIG_IsTmpObj(res3)) {
31038 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31039 } else {
31040 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31041 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31042 }
31043 return resultobj;
31044 fail:
31045 return NULL;
31046 }
31047
31048
31049 SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31050 PyObject *resultobj = 0;
31051 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31052 wxPoint *arg2 = 0 ;
31053 int *arg3 = 0 ;
31054 long *arg4 = (long *) 0 ;
31055 long result;
31056 void *argp1 = 0 ;
31057 int res1 = 0 ;
31058 wxPoint temp2 ;
31059 int temp3 ;
31060 int res3 = SWIG_TMPOBJ ;
31061 long temp4 ;
31062 int res4 = SWIG_TMPOBJ ;
31063 PyObject * obj0 = 0 ;
31064 PyObject * obj1 = 0 ;
31065 char * kwnames[] = {
31066 (char *) "self",(char *) "point", NULL
31067 };
31068
31069 arg3 = &temp3;
31070 arg4 = &temp4;
31071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
31072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31073 if (!SWIG_IsOK(res1)) {
31074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31075 }
31076 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31077 {
31078 arg2 = &temp2;
31079 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31080 }
31081 {
31082 PyThreadState* __tstate = wxPyBeginAllowThreads();
31083 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
31084 wxPyEndAllowThreads(__tstate);
31085 if (PyErr_Occurred()) SWIG_fail;
31086 }
31087 resultobj = SWIG_From_long(static_cast< long >(result));
31088 if (SWIG_IsTmpObj(res3)) {
31089 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31090 } else {
31091 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31092 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31093 }
31094 if (SWIG_IsTmpObj(res4)) {
31095 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
31096 } else {
31097 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31098 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
31099 }
31100 return resultobj;
31101 fail:
31102 return NULL;
31103 }
31104
31105
31106 SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31107 PyObject *resultobj = 0;
31108 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31109 wxListItem *arg2 = 0 ;
31110 long result;
31111 void *argp1 = 0 ;
31112 int res1 = 0 ;
31113 void *argp2 = 0 ;
31114 int res2 = 0 ;
31115 PyObject * obj0 = 0 ;
31116 PyObject * obj1 = 0 ;
31117 char * kwnames[] = {
31118 (char *) "self",(char *) "info", NULL
31119 };
31120
31121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
31122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31123 if (!SWIG_IsOK(res1)) {
31124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31125 }
31126 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31127 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
31128 if (!SWIG_IsOK(res2)) {
31129 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31130 }
31131 if (!argp2) {
31132 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31133 }
31134 arg2 = reinterpret_cast< wxListItem * >(argp2);
31135 {
31136 PyThreadState* __tstate = wxPyBeginAllowThreads();
31137 result = (long)(arg1)->InsertItem(*arg2);
31138 wxPyEndAllowThreads(__tstate);
31139 if (PyErr_Occurred()) SWIG_fail;
31140 }
31141 resultobj = SWIG_From_long(static_cast< long >(result));
31142 return resultobj;
31143 fail:
31144 return NULL;
31145 }
31146
31147
31148 SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31149 PyObject *resultobj = 0;
31150 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31151 long arg2 ;
31152 wxString *arg3 = 0 ;
31153 int arg4 = (int) -1 ;
31154 long result;
31155 void *argp1 = 0 ;
31156 int res1 = 0 ;
31157 long val2 ;
31158 int ecode2 = 0 ;
31159 bool temp3 = false ;
31160 int val4 ;
31161 int ecode4 = 0 ;
31162 PyObject * obj0 = 0 ;
31163 PyObject * obj1 = 0 ;
31164 PyObject * obj2 = 0 ;
31165 PyObject * obj3 = 0 ;
31166 char * kwnames[] = {
31167 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31168 };
31169
31170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31172 if (!SWIG_IsOK(res1)) {
31173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31174 }
31175 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31176 ecode2 = SWIG_AsVal_long(obj1, &val2);
31177 if (!SWIG_IsOK(ecode2)) {
31178 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31179 }
31180 arg2 = static_cast< long >(val2);
31181 {
31182 arg3 = wxString_in_helper(obj2);
31183 if (arg3 == NULL) SWIG_fail;
31184 temp3 = true;
31185 }
31186 if (obj3) {
31187 ecode4 = SWIG_AsVal_int(obj3, &val4);
31188 if (!SWIG_IsOK(ecode4)) {
31189 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31190 }
31191 arg4 = static_cast< int >(val4);
31192 }
31193 {
31194 PyThreadState* __tstate = wxPyBeginAllowThreads();
31195 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31196 wxPyEndAllowThreads(__tstate);
31197 if (PyErr_Occurred()) SWIG_fail;
31198 }
31199 resultobj = SWIG_From_long(static_cast< long >(result));
31200 {
31201 if (temp3)
31202 delete arg3;
31203 }
31204 return resultobj;
31205 fail:
31206 {
31207 if (temp3)
31208 delete arg3;
31209 }
31210 return NULL;
31211 }
31212
31213
31214 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31215 PyObject *resultobj = 0;
31216 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31217 long arg2 ;
31218 int arg3 ;
31219 long result;
31220 void *argp1 = 0 ;
31221 int res1 = 0 ;
31222 long val2 ;
31223 int ecode2 = 0 ;
31224 int val3 ;
31225 int ecode3 = 0 ;
31226 PyObject * obj0 = 0 ;
31227 PyObject * obj1 = 0 ;
31228 PyObject * obj2 = 0 ;
31229 char * kwnames[] = {
31230 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31231 };
31232
31233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31235 if (!SWIG_IsOK(res1)) {
31236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31237 }
31238 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31239 ecode2 = SWIG_AsVal_long(obj1, &val2);
31240 if (!SWIG_IsOK(ecode2)) {
31241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31242 }
31243 arg2 = static_cast< long >(val2);
31244 ecode3 = SWIG_AsVal_int(obj2, &val3);
31245 if (!SWIG_IsOK(ecode3)) {
31246 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31247 }
31248 arg3 = static_cast< int >(val3);
31249 {
31250 PyThreadState* __tstate = wxPyBeginAllowThreads();
31251 result = (long)(arg1)->InsertItem(arg2,arg3);
31252 wxPyEndAllowThreads(__tstate);
31253 if (PyErr_Occurred()) SWIG_fail;
31254 }
31255 resultobj = SWIG_From_long(static_cast< long >(result));
31256 return resultobj;
31257 fail:
31258 return NULL;
31259 }
31260
31261
31262 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31263 PyObject *resultobj = 0;
31264 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31265 long arg2 ;
31266 wxString *arg3 = 0 ;
31267 int arg4 ;
31268 long result;
31269 void *argp1 = 0 ;
31270 int res1 = 0 ;
31271 long val2 ;
31272 int ecode2 = 0 ;
31273 bool temp3 = false ;
31274 int val4 ;
31275 int ecode4 = 0 ;
31276 PyObject * obj0 = 0 ;
31277 PyObject * obj1 = 0 ;
31278 PyObject * obj2 = 0 ;
31279 PyObject * obj3 = 0 ;
31280 char * kwnames[] = {
31281 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31282 };
31283
31284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31286 if (!SWIG_IsOK(res1)) {
31287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31288 }
31289 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31290 ecode2 = SWIG_AsVal_long(obj1, &val2);
31291 if (!SWIG_IsOK(ecode2)) {
31292 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31293 }
31294 arg2 = static_cast< long >(val2);
31295 {
31296 arg3 = wxString_in_helper(obj2);
31297 if (arg3 == NULL) SWIG_fail;
31298 temp3 = true;
31299 }
31300 ecode4 = SWIG_AsVal_int(obj3, &val4);
31301 if (!SWIG_IsOK(ecode4)) {
31302 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31303 }
31304 arg4 = static_cast< int >(val4);
31305 {
31306 PyThreadState* __tstate = wxPyBeginAllowThreads();
31307 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31308 wxPyEndAllowThreads(__tstate);
31309 if (PyErr_Occurred()) SWIG_fail;
31310 }
31311 resultobj = SWIG_From_long(static_cast< long >(result));
31312 {
31313 if (temp3)
31314 delete arg3;
31315 }
31316 return resultobj;
31317 fail:
31318 {
31319 if (temp3)
31320 delete arg3;
31321 }
31322 return NULL;
31323 }
31324
31325
31326 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31327 PyObject *resultobj = 0;
31328 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31329 long arg2 ;
31330 wxListItem *arg3 = 0 ;
31331 long result;
31332 void *argp1 = 0 ;
31333 int res1 = 0 ;
31334 long val2 ;
31335 int ecode2 = 0 ;
31336 void *argp3 = 0 ;
31337 int res3 = 0 ;
31338 PyObject * obj0 = 0 ;
31339 PyObject * obj1 = 0 ;
31340 PyObject * obj2 = 0 ;
31341 char * kwnames[] = {
31342 (char *) "self",(char *) "col",(char *) "info", NULL
31343 };
31344
31345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31347 if (!SWIG_IsOK(res1)) {
31348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31349 }
31350 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31351 ecode2 = SWIG_AsVal_long(obj1, &val2);
31352 if (!SWIG_IsOK(ecode2)) {
31353 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31354 }
31355 arg2 = static_cast< long >(val2);
31356 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31357 if (!SWIG_IsOK(res3)) {
31358 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31359 }
31360 if (!argp3) {
31361 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31362 }
31363 arg3 = reinterpret_cast< wxListItem * >(argp3);
31364 {
31365 PyThreadState* __tstate = wxPyBeginAllowThreads();
31366 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31367 wxPyEndAllowThreads(__tstate);
31368 if (PyErr_Occurred()) SWIG_fail;
31369 }
31370 resultobj = SWIG_From_long(static_cast< long >(result));
31371 return resultobj;
31372 fail:
31373 return NULL;
31374 }
31375
31376
31377 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31378 PyObject *resultobj = 0;
31379 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31380 long arg2 ;
31381 wxString *arg3 = 0 ;
31382 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31383 int arg5 = (int) -1 ;
31384 long result;
31385 void *argp1 = 0 ;
31386 int res1 = 0 ;
31387 long val2 ;
31388 int ecode2 = 0 ;
31389 bool temp3 = false ;
31390 int val4 ;
31391 int ecode4 = 0 ;
31392 int val5 ;
31393 int ecode5 = 0 ;
31394 PyObject * obj0 = 0 ;
31395 PyObject * obj1 = 0 ;
31396 PyObject * obj2 = 0 ;
31397 PyObject * obj3 = 0 ;
31398 PyObject * obj4 = 0 ;
31399 char * kwnames[] = {
31400 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31401 };
31402
31403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31405 if (!SWIG_IsOK(res1)) {
31406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31407 }
31408 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31409 ecode2 = SWIG_AsVal_long(obj1, &val2);
31410 if (!SWIG_IsOK(ecode2)) {
31411 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31412 }
31413 arg2 = static_cast< long >(val2);
31414 {
31415 arg3 = wxString_in_helper(obj2);
31416 if (arg3 == NULL) SWIG_fail;
31417 temp3 = true;
31418 }
31419 if (obj3) {
31420 ecode4 = SWIG_AsVal_int(obj3, &val4);
31421 if (!SWIG_IsOK(ecode4)) {
31422 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31423 }
31424 arg4 = static_cast< int >(val4);
31425 }
31426 if (obj4) {
31427 ecode5 = SWIG_AsVal_int(obj4, &val5);
31428 if (!SWIG_IsOK(ecode5)) {
31429 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31430 }
31431 arg5 = static_cast< int >(val5);
31432 }
31433 {
31434 PyThreadState* __tstate = wxPyBeginAllowThreads();
31435 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31436 wxPyEndAllowThreads(__tstate);
31437 if (PyErr_Occurred()) SWIG_fail;
31438 }
31439 resultobj = SWIG_From_long(static_cast< long >(result));
31440 {
31441 if (temp3)
31442 delete arg3;
31443 }
31444 return resultobj;
31445 fail:
31446 {
31447 if (temp3)
31448 delete arg3;
31449 }
31450 return NULL;
31451 }
31452
31453
31454 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31455 PyObject *resultobj = 0;
31456 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31457 long arg2 ;
31458 void *argp1 = 0 ;
31459 int res1 = 0 ;
31460 long val2 ;
31461 int ecode2 = 0 ;
31462 PyObject * obj0 = 0 ;
31463 PyObject * obj1 = 0 ;
31464 char * kwnames[] = {
31465 (char *) "self",(char *) "count", NULL
31466 };
31467
31468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31470 if (!SWIG_IsOK(res1)) {
31471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31472 }
31473 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31474 ecode2 = SWIG_AsVal_long(obj1, &val2);
31475 if (!SWIG_IsOK(ecode2)) {
31476 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31477 }
31478 arg2 = static_cast< long >(val2);
31479 {
31480 PyThreadState* __tstate = wxPyBeginAllowThreads();
31481 (arg1)->SetItemCount(arg2);
31482 wxPyEndAllowThreads(__tstate);
31483 if (PyErr_Occurred()) SWIG_fail;
31484 }
31485 resultobj = SWIG_Py_Void();
31486 return resultobj;
31487 fail:
31488 return NULL;
31489 }
31490
31491
31492 SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31493 PyObject *resultobj = 0;
31494 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31495 int arg2 ;
31496 int arg3 ;
31497 bool result;
31498 void *argp1 = 0 ;
31499 int res1 = 0 ;
31500 int val2 ;
31501 int ecode2 = 0 ;
31502 int val3 ;
31503 int ecode3 = 0 ;
31504 PyObject * obj0 = 0 ;
31505 PyObject * obj1 = 0 ;
31506 PyObject * obj2 = 0 ;
31507 char * kwnames[] = {
31508 (char *) "self",(char *) "dx",(char *) "dy", NULL
31509 };
31510
31511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31513 if (!SWIG_IsOK(res1)) {
31514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31515 }
31516 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31517 ecode2 = SWIG_AsVal_int(obj1, &val2);
31518 if (!SWIG_IsOK(ecode2)) {
31519 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31520 }
31521 arg2 = static_cast< int >(val2);
31522 ecode3 = SWIG_AsVal_int(obj2, &val3);
31523 if (!SWIG_IsOK(ecode3)) {
31524 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31525 }
31526 arg3 = static_cast< int >(val3);
31527 {
31528 PyThreadState* __tstate = wxPyBeginAllowThreads();
31529 result = (bool)(arg1)->ScrollList(arg2,arg3);
31530 wxPyEndAllowThreads(__tstate);
31531 if (PyErr_Occurred()) SWIG_fail;
31532 }
31533 {
31534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31535 }
31536 return resultobj;
31537 fail:
31538 return NULL;
31539 }
31540
31541
31542 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31543 PyObject *resultobj = 0;
31544 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31545 long arg2 ;
31546 wxColour *arg3 = 0 ;
31547 void *argp1 = 0 ;
31548 int res1 = 0 ;
31549 long val2 ;
31550 int ecode2 = 0 ;
31551 wxColour temp3 ;
31552 PyObject * obj0 = 0 ;
31553 PyObject * obj1 = 0 ;
31554 PyObject * obj2 = 0 ;
31555 char * kwnames[] = {
31556 (char *) "self",(char *) "item",(char *) "col", NULL
31557 };
31558
31559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31561 if (!SWIG_IsOK(res1)) {
31562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31563 }
31564 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31565 ecode2 = SWIG_AsVal_long(obj1, &val2);
31566 if (!SWIG_IsOK(ecode2)) {
31567 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31568 }
31569 arg2 = static_cast< long >(val2);
31570 {
31571 arg3 = &temp3;
31572 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31573 }
31574 {
31575 PyThreadState* __tstate = wxPyBeginAllowThreads();
31576 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31577 wxPyEndAllowThreads(__tstate);
31578 if (PyErr_Occurred()) SWIG_fail;
31579 }
31580 resultobj = SWIG_Py_Void();
31581 return resultobj;
31582 fail:
31583 return NULL;
31584 }
31585
31586
31587 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31588 PyObject *resultobj = 0;
31589 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31590 long arg2 ;
31591 wxColour result;
31592 void *argp1 = 0 ;
31593 int res1 = 0 ;
31594 long val2 ;
31595 int ecode2 = 0 ;
31596 PyObject * obj0 = 0 ;
31597 PyObject * obj1 = 0 ;
31598 char * kwnames[] = {
31599 (char *) "self",(char *) "item", NULL
31600 };
31601
31602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31604 if (!SWIG_IsOK(res1)) {
31605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31606 }
31607 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31608 ecode2 = SWIG_AsVal_long(obj1, &val2);
31609 if (!SWIG_IsOK(ecode2)) {
31610 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31611 }
31612 arg2 = static_cast< long >(val2);
31613 {
31614 PyThreadState* __tstate = wxPyBeginAllowThreads();
31615 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31616 wxPyEndAllowThreads(__tstate);
31617 if (PyErr_Occurred()) SWIG_fail;
31618 }
31619 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31620 return resultobj;
31621 fail:
31622 return NULL;
31623 }
31624
31625
31626 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31627 PyObject *resultobj = 0;
31628 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31629 long arg2 ;
31630 wxColour *arg3 = 0 ;
31631 void *argp1 = 0 ;
31632 int res1 = 0 ;
31633 long val2 ;
31634 int ecode2 = 0 ;
31635 wxColour temp3 ;
31636 PyObject * obj0 = 0 ;
31637 PyObject * obj1 = 0 ;
31638 PyObject * obj2 = 0 ;
31639 char * kwnames[] = {
31640 (char *) "self",(char *) "item",(char *) "col", NULL
31641 };
31642
31643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31645 if (!SWIG_IsOK(res1)) {
31646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31647 }
31648 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31649 ecode2 = SWIG_AsVal_long(obj1, &val2);
31650 if (!SWIG_IsOK(ecode2)) {
31651 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31652 }
31653 arg2 = static_cast< long >(val2);
31654 {
31655 arg3 = &temp3;
31656 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31657 }
31658 {
31659 PyThreadState* __tstate = wxPyBeginAllowThreads();
31660 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31661 wxPyEndAllowThreads(__tstate);
31662 if (PyErr_Occurred()) SWIG_fail;
31663 }
31664 resultobj = SWIG_Py_Void();
31665 return resultobj;
31666 fail:
31667 return NULL;
31668 }
31669
31670
31671 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31672 PyObject *resultobj = 0;
31673 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31674 long arg2 ;
31675 wxColour result;
31676 void *argp1 = 0 ;
31677 int res1 = 0 ;
31678 long val2 ;
31679 int ecode2 = 0 ;
31680 PyObject * obj0 = 0 ;
31681 PyObject * obj1 = 0 ;
31682 char * kwnames[] = {
31683 (char *) "self",(char *) "item", NULL
31684 };
31685
31686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31688 if (!SWIG_IsOK(res1)) {
31689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31690 }
31691 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31692 ecode2 = SWIG_AsVal_long(obj1, &val2);
31693 if (!SWIG_IsOK(ecode2)) {
31694 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31695 }
31696 arg2 = static_cast< long >(val2);
31697 {
31698 PyThreadState* __tstate = wxPyBeginAllowThreads();
31699 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31700 wxPyEndAllowThreads(__tstate);
31701 if (PyErr_Occurred()) SWIG_fail;
31702 }
31703 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31704 return resultobj;
31705 fail:
31706 return NULL;
31707 }
31708
31709
31710 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31711 PyObject *resultobj = 0;
31712 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31713 long arg2 ;
31714 wxFont *arg3 = 0 ;
31715 void *argp1 = 0 ;
31716 int res1 = 0 ;
31717 long val2 ;
31718 int ecode2 = 0 ;
31719 void *argp3 = 0 ;
31720 int res3 = 0 ;
31721 PyObject * obj0 = 0 ;
31722 PyObject * obj1 = 0 ;
31723 PyObject * obj2 = 0 ;
31724 char * kwnames[] = {
31725 (char *) "self",(char *) "item",(char *) "f", NULL
31726 };
31727
31728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31730 if (!SWIG_IsOK(res1)) {
31731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31732 }
31733 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31734 ecode2 = SWIG_AsVal_long(obj1, &val2);
31735 if (!SWIG_IsOK(ecode2)) {
31736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31737 }
31738 arg2 = static_cast< long >(val2);
31739 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31740 if (!SWIG_IsOK(res3)) {
31741 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31742 }
31743 if (!argp3) {
31744 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31745 }
31746 arg3 = reinterpret_cast< wxFont * >(argp3);
31747 {
31748 PyThreadState* __tstate = wxPyBeginAllowThreads();
31749 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31750 wxPyEndAllowThreads(__tstate);
31751 if (PyErr_Occurred()) SWIG_fail;
31752 }
31753 resultobj = SWIG_Py_Void();
31754 return resultobj;
31755 fail:
31756 return NULL;
31757 }
31758
31759
31760 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31761 PyObject *resultobj = 0;
31762 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31763 long arg2 ;
31764 wxFont result;
31765 void *argp1 = 0 ;
31766 int res1 = 0 ;
31767 long val2 ;
31768 int ecode2 = 0 ;
31769 PyObject * obj0 = 0 ;
31770 PyObject * obj1 = 0 ;
31771 char * kwnames[] = {
31772 (char *) "self",(char *) "item", NULL
31773 };
31774
31775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31777 if (!SWIG_IsOK(res1)) {
31778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31779 }
31780 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31781 ecode2 = SWIG_AsVal_long(obj1, &val2);
31782 if (!SWIG_IsOK(ecode2)) {
31783 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31784 }
31785 arg2 = static_cast< long >(val2);
31786 {
31787 PyThreadState* __tstate = wxPyBeginAllowThreads();
31788 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31789 wxPyEndAllowThreads(__tstate);
31790 if (PyErr_Occurred()) SWIG_fail;
31791 }
31792 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31793 return resultobj;
31794 fail:
31795 return NULL;
31796 }
31797
31798
31799 SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31800 PyObject *resultobj = 0;
31801 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31802 PyObject *arg2 = (PyObject *) 0 ;
31803 bool result;
31804 void *argp1 = 0 ;
31805 int res1 = 0 ;
31806 PyObject * obj0 = 0 ;
31807 PyObject * obj1 = 0 ;
31808 char * kwnames[] = {
31809 (char *) "self",(char *) "func", NULL
31810 };
31811
31812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31814 if (!SWIG_IsOK(res1)) {
31815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31816 }
31817 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31818 arg2 = obj1;
31819 {
31820 PyThreadState* __tstate = wxPyBeginAllowThreads();
31821 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31822 wxPyEndAllowThreads(__tstate);
31823 if (PyErr_Occurred()) SWIG_fail;
31824 }
31825 {
31826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31827 }
31828 return resultobj;
31829 fail:
31830 return NULL;
31831 }
31832
31833
31834 SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31835 PyObject *resultobj = 0;
31836 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31837 wxWindow *result = 0 ;
31838 void *argp1 = 0 ;
31839 int res1 = 0 ;
31840 PyObject *swig_obj[1] ;
31841
31842 if (!args) SWIG_fail;
31843 swig_obj[0] = args;
31844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31845 if (!SWIG_IsOK(res1)) {
31846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31847 }
31848 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31849 {
31850 PyThreadState* __tstate = wxPyBeginAllowThreads();
31851 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31852 wxPyEndAllowThreads(__tstate);
31853 if (PyErr_Occurred()) SWIG_fail;
31854 }
31855 {
31856 resultobj = wxPyMake_wxObject(result, 0);
31857 }
31858 return resultobj;
31859 fail:
31860 return NULL;
31861 }
31862
31863
31864 SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31865 PyObject *resultobj = 0;
31866 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
31867 SwigValueWrapper<wxVisualAttributes > result;
31868 int val1 ;
31869 int ecode1 = 0 ;
31870 PyObject * obj0 = 0 ;
31871 char * kwnames[] = {
31872 (char *) "variant", NULL
31873 };
31874
31875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
31876 if (obj0) {
31877 ecode1 = SWIG_AsVal_int(obj0, &val1);
31878 if (!SWIG_IsOK(ecode1)) {
31879 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
31880 }
31881 arg1 = static_cast< wxWindowVariant >(val1);
31882 }
31883 {
31884 if (!wxPyCheckForApp()) SWIG_fail;
31885 PyThreadState* __tstate = wxPyBeginAllowThreads();
31886 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
31887 wxPyEndAllowThreads(__tstate);
31888 if (PyErr_Occurred()) SWIG_fail;
31889 }
31890 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
31891 return resultobj;
31892 fail:
31893 return NULL;
31894 }
31895
31896
31897 SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31898 PyObject *obj;
31899 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31900 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
31901 return SWIG_Py_Void();
31902 }
31903
31904 SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31905 return SWIG_Python_InitShadowInstance(args);
31906 }
31907
31908 SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31909 PyObject *resultobj = 0;
31910 wxWindow *arg1 = (wxWindow *) 0 ;
31911 int arg2 = (int) -1 ;
31912 wxPoint const &arg3_defvalue = wxDefaultPosition ;
31913 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
31914 wxSize const &arg4_defvalue = wxDefaultSize ;
31915 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
31916 long arg5 = (long) wxLC_REPORT ;
31917 wxValidator const &arg6_defvalue = wxDefaultValidator ;
31918 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
31919 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
31920 wxString *arg7 = (wxString *) &arg7_defvalue ;
31921 wxListView *result = 0 ;
31922 void *argp1 = 0 ;
31923 int res1 = 0 ;
31924 int val2 ;
31925 int ecode2 = 0 ;
31926 wxPoint temp3 ;
31927 wxSize temp4 ;
31928 long val5 ;
31929 int ecode5 = 0 ;
31930 void *argp6 = 0 ;
31931 int res6 = 0 ;
31932 bool temp7 = false ;
31933 PyObject * obj0 = 0 ;
31934 PyObject * obj1 = 0 ;
31935 PyObject * obj2 = 0 ;
31936 PyObject * obj3 = 0 ;
31937 PyObject * obj4 = 0 ;
31938 PyObject * obj5 = 0 ;
31939 PyObject * obj6 = 0 ;
31940 char * kwnames[] = {
31941 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31942 };
31943
31944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31946 if (!SWIG_IsOK(res1)) {
31947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
31948 }
31949 arg1 = reinterpret_cast< wxWindow * >(argp1);
31950 if (obj1) {
31951 ecode2 = SWIG_AsVal_int(obj1, &val2);
31952 if (!SWIG_IsOK(ecode2)) {
31953 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
31954 }
31955 arg2 = static_cast< int >(val2);
31956 }
31957 if (obj2) {
31958 {
31959 arg3 = &temp3;
31960 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31961 }
31962 }
31963 if (obj3) {
31964 {
31965 arg4 = &temp4;
31966 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
31967 }
31968 }
31969 if (obj4) {
31970 ecode5 = SWIG_AsVal_long(obj4, &val5);
31971 if (!SWIG_IsOK(ecode5)) {
31972 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
31973 }
31974 arg5 = static_cast< long >(val5);
31975 }
31976 if (obj5) {
31977 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
31978 if (!SWIG_IsOK(res6)) {
31979 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31980 }
31981 if (!argp6) {
31982 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31983 }
31984 arg6 = reinterpret_cast< wxValidator * >(argp6);
31985 }
31986 if (obj6) {
31987 {
31988 arg7 = wxString_in_helper(obj6);
31989 if (arg7 == NULL) SWIG_fail;
31990 temp7 = true;
31991 }
31992 }
31993 {
31994 if (!wxPyCheckForApp()) SWIG_fail;
31995 PyThreadState* __tstate = wxPyBeginAllowThreads();
31996 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
31997 wxPyEndAllowThreads(__tstate);
31998 if (PyErr_Occurred()) SWIG_fail;
31999 }
32000 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
32001 {
32002 if (temp7)
32003 delete arg7;
32004 }
32005 return resultobj;
32006 fail:
32007 {
32008 if (temp7)
32009 delete arg7;
32010 }
32011 return NULL;
32012 }
32013
32014
32015 SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32016 PyObject *resultobj = 0;
32017 wxListView *result = 0 ;
32018
32019 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
32020 {
32021 if (!wxPyCheckForApp()) SWIG_fail;
32022 PyThreadState* __tstate = wxPyBeginAllowThreads();
32023 result = (wxListView *)new wxListView();
32024 wxPyEndAllowThreads(__tstate);
32025 if (PyErr_Occurred()) SWIG_fail;
32026 }
32027 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
32028 return resultobj;
32029 fail:
32030 return NULL;
32031 }
32032
32033
32034 SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32035 PyObject *resultobj = 0;
32036 wxListView *arg1 = (wxListView *) 0 ;
32037 wxWindow *arg2 = (wxWindow *) 0 ;
32038 int arg3 = (int) -1 ;
32039 wxPoint const &arg4_defvalue = wxDefaultPosition ;
32040 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
32041 wxSize const &arg5_defvalue = wxDefaultSize ;
32042 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
32043 long arg6 = (long) wxLC_REPORT ;
32044 wxValidator const &arg7_defvalue = wxDefaultValidator ;
32045 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
32046 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
32047 wxString *arg8 = (wxString *) &arg8_defvalue ;
32048 bool result;
32049 void *argp1 = 0 ;
32050 int res1 = 0 ;
32051 void *argp2 = 0 ;
32052 int res2 = 0 ;
32053 int val3 ;
32054 int ecode3 = 0 ;
32055 wxPoint temp4 ;
32056 wxSize temp5 ;
32057 long val6 ;
32058 int ecode6 = 0 ;
32059 void *argp7 = 0 ;
32060 int res7 = 0 ;
32061 bool temp8 = false ;
32062 PyObject * obj0 = 0 ;
32063 PyObject * obj1 = 0 ;
32064 PyObject * obj2 = 0 ;
32065 PyObject * obj3 = 0 ;
32066 PyObject * obj4 = 0 ;
32067 PyObject * obj5 = 0 ;
32068 PyObject * obj6 = 0 ;
32069 PyObject * obj7 = 0 ;
32070 char * kwnames[] = {
32071 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32072 };
32073
32074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32076 if (!SWIG_IsOK(res1)) {
32077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
32078 }
32079 arg1 = reinterpret_cast< wxListView * >(argp1);
32080 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
32081 if (!SWIG_IsOK(res2)) {
32082 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
32083 }
32084 arg2 = reinterpret_cast< wxWindow * >(argp2);
32085 if (obj2) {
32086 ecode3 = SWIG_AsVal_int(obj2, &val3);
32087 if (!SWIG_IsOK(ecode3)) {
32088 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
32089 }
32090 arg3 = static_cast< int >(val3);
32091 }
32092 if (obj3) {
32093 {
32094 arg4 = &temp4;
32095 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
32096 }
32097 }
32098 if (obj4) {
32099 {
32100 arg5 = &temp5;
32101 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
32102 }
32103 }
32104 if (obj5) {
32105 ecode6 = SWIG_AsVal_long(obj5, &val6);
32106 if (!SWIG_IsOK(ecode6)) {
32107 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
32108 }
32109 arg6 = static_cast< long >(val6);
32110 }
32111 if (obj6) {
32112 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
32113 if (!SWIG_IsOK(res7)) {
32114 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32115 }
32116 if (!argp7) {
32117 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32118 }
32119 arg7 = reinterpret_cast< wxValidator * >(argp7);
32120 }
32121 if (obj7) {
32122 {
32123 arg8 = wxString_in_helper(obj7);
32124 if (arg8 == NULL) SWIG_fail;
32125 temp8 = true;
32126 }
32127 }
32128 {
32129 PyThreadState* __tstate = wxPyBeginAllowThreads();
32130 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32131 wxPyEndAllowThreads(__tstate);
32132 if (PyErr_Occurred()) SWIG_fail;
32133 }
32134 {
32135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32136 }
32137 {
32138 if (temp8)
32139 delete arg8;
32140 }
32141 return resultobj;
32142 fail:
32143 {
32144 if (temp8)
32145 delete arg8;
32146 }
32147 return NULL;
32148 }
32149
32150
32151 SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32152 PyObject *resultobj = 0;
32153 wxListView *arg1 = (wxListView *) 0 ;
32154 long arg2 ;
32155 bool arg3 = (bool) true ;
32156 void *argp1 = 0 ;
32157 int res1 = 0 ;
32158 long val2 ;
32159 int ecode2 = 0 ;
32160 bool val3 ;
32161 int ecode3 = 0 ;
32162 PyObject * obj0 = 0 ;
32163 PyObject * obj1 = 0 ;
32164 PyObject * obj2 = 0 ;
32165 char * kwnames[] = {
32166 (char *) "self",(char *) "n",(char *) "on", NULL
32167 };
32168
32169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32171 if (!SWIG_IsOK(res1)) {
32172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32173 }
32174 arg1 = reinterpret_cast< wxListView * >(argp1);
32175 ecode2 = SWIG_AsVal_long(obj1, &val2);
32176 if (!SWIG_IsOK(ecode2)) {
32177 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32178 }
32179 arg2 = static_cast< long >(val2);
32180 if (obj2) {
32181 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32182 if (!SWIG_IsOK(ecode3)) {
32183 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32184 }
32185 arg3 = static_cast< bool >(val3);
32186 }
32187 {
32188 PyThreadState* __tstate = wxPyBeginAllowThreads();
32189 (arg1)->Select(arg2,arg3);
32190 wxPyEndAllowThreads(__tstate);
32191 if (PyErr_Occurred()) SWIG_fail;
32192 }
32193 resultobj = SWIG_Py_Void();
32194 return resultobj;
32195 fail:
32196 return NULL;
32197 }
32198
32199
32200 SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32201 PyObject *resultobj = 0;
32202 wxListView *arg1 = (wxListView *) 0 ;
32203 long arg2 ;
32204 void *argp1 = 0 ;
32205 int res1 = 0 ;
32206 long val2 ;
32207 int ecode2 = 0 ;
32208 PyObject * obj0 = 0 ;
32209 PyObject * obj1 = 0 ;
32210 char * kwnames[] = {
32211 (char *) "self",(char *) "index", NULL
32212 };
32213
32214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32216 if (!SWIG_IsOK(res1)) {
32217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32218 }
32219 arg1 = reinterpret_cast< wxListView * >(argp1);
32220 ecode2 = SWIG_AsVal_long(obj1, &val2);
32221 if (!SWIG_IsOK(ecode2)) {
32222 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32223 }
32224 arg2 = static_cast< long >(val2);
32225 {
32226 PyThreadState* __tstate = wxPyBeginAllowThreads();
32227 (arg1)->Focus(arg2);
32228 wxPyEndAllowThreads(__tstate);
32229 if (PyErr_Occurred()) SWIG_fail;
32230 }
32231 resultobj = SWIG_Py_Void();
32232 return resultobj;
32233 fail:
32234 return NULL;
32235 }
32236
32237
32238 SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32239 PyObject *resultobj = 0;
32240 wxListView *arg1 = (wxListView *) 0 ;
32241 long result;
32242 void *argp1 = 0 ;
32243 int res1 = 0 ;
32244 PyObject *swig_obj[1] ;
32245
32246 if (!args) SWIG_fail;
32247 swig_obj[0] = args;
32248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32249 if (!SWIG_IsOK(res1)) {
32250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32251 }
32252 arg1 = reinterpret_cast< wxListView * >(argp1);
32253 {
32254 PyThreadState* __tstate = wxPyBeginAllowThreads();
32255 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32256 wxPyEndAllowThreads(__tstate);
32257 if (PyErr_Occurred()) SWIG_fail;
32258 }
32259 resultobj = SWIG_From_long(static_cast< long >(result));
32260 return resultobj;
32261 fail:
32262 return NULL;
32263 }
32264
32265
32266 SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32267 PyObject *resultobj = 0;
32268 wxListView *arg1 = (wxListView *) 0 ;
32269 long arg2 ;
32270 long result;
32271 void *argp1 = 0 ;
32272 int res1 = 0 ;
32273 long val2 ;
32274 int ecode2 = 0 ;
32275 PyObject * obj0 = 0 ;
32276 PyObject * obj1 = 0 ;
32277 char * kwnames[] = {
32278 (char *) "self",(char *) "item", NULL
32279 };
32280
32281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32283 if (!SWIG_IsOK(res1)) {
32284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32285 }
32286 arg1 = reinterpret_cast< wxListView * >(argp1);
32287 ecode2 = SWIG_AsVal_long(obj1, &val2);
32288 if (!SWIG_IsOK(ecode2)) {
32289 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32290 }
32291 arg2 = static_cast< long >(val2);
32292 {
32293 PyThreadState* __tstate = wxPyBeginAllowThreads();
32294 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32295 wxPyEndAllowThreads(__tstate);
32296 if (PyErr_Occurred()) SWIG_fail;
32297 }
32298 resultobj = SWIG_From_long(static_cast< long >(result));
32299 return resultobj;
32300 fail:
32301 return NULL;
32302 }
32303
32304
32305 SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32306 PyObject *resultobj = 0;
32307 wxListView *arg1 = (wxListView *) 0 ;
32308 long result;
32309 void *argp1 = 0 ;
32310 int res1 = 0 ;
32311 PyObject *swig_obj[1] ;
32312
32313 if (!args) SWIG_fail;
32314 swig_obj[0] = args;
32315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32316 if (!SWIG_IsOK(res1)) {
32317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32318 }
32319 arg1 = reinterpret_cast< wxListView * >(argp1);
32320 {
32321 PyThreadState* __tstate = wxPyBeginAllowThreads();
32322 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32323 wxPyEndAllowThreads(__tstate);
32324 if (PyErr_Occurred()) SWIG_fail;
32325 }
32326 resultobj = SWIG_From_long(static_cast< long >(result));
32327 return resultobj;
32328 fail:
32329 return NULL;
32330 }
32331
32332
32333 SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32334 PyObject *resultobj = 0;
32335 wxListView *arg1 = (wxListView *) 0 ;
32336 long arg2 ;
32337 bool result;
32338 void *argp1 = 0 ;
32339 int res1 = 0 ;
32340 long val2 ;
32341 int ecode2 = 0 ;
32342 PyObject * obj0 = 0 ;
32343 PyObject * obj1 = 0 ;
32344 char * kwnames[] = {
32345 (char *) "self",(char *) "index", NULL
32346 };
32347
32348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32350 if (!SWIG_IsOK(res1)) {
32351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32352 }
32353 arg1 = reinterpret_cast< wxListView * >(argp1);
32354 ecode2 = SWIG_AsVal_long(obj1, &val2);
32355 if (!SWIG_IsOK(ecode2)) {
32356 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32357 }
32358 arg2 = static_cast< long >(val2);
32359 {
32360 PyThreadState* __tstate = wxPyBeginAllowThreads();
32361 result = (bool)(arg1)->IsSelected(arg2);
32362 wxPyEndAllowThreads(__tstate);
32363 if (PyErr_Occurred()) SWIG_fail;
32364 }
32365 {
32366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32367 }
32368 return resultobj;
32369 fail:
32370 return NULL;
32371 }
32372
32373
32374 SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32375 PyObject *resultobj = 0;
32376 wxListView *arg1 = (wxListView *) 0 ;
32377 int arg2 ;
32378 int arg3 ;
32379 void *argp1 = 0 ;
32380 int res1 = 0 ;
32381 int val2 ;
32382 int ecode2 = 0 ;
32383 int val3 ;
32384 int ecode3 = 0 ;
32385 PyObject * obj0 = 0 ;
32386 PyObject * obj1 = 0 ;
32387 PyObject * obj2 = 0 ;
32388 char * kwnames[] = {
32389 (char *) "self",(char *) "col",(char *) "image", NULL
32390 };
32391
32392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32394 if (!SWIG_IsOK(res1)) {
32395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32396 }
32397 arg1 = reinterpret_cast< wxListView * >(argp1);
32398 ecode2 = SWIG_AsVal_int(obj1, &val2);
32399 if (!SWIG_IsOK(ecode2)) {
32400 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32401 }
32402 arg2 = static_cast< int >(val2);
32403 ecode3 = SWIG_AsVal_int(obj2, &val3);
32404 if (!SWIG_IsOK(ecode3)) {
32405 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32406 }
32407 arg3 = static_cast< int >(val3);
32408 {
32409 PyThreadState* __tstate = wxPyBeginAllowThreads();
32410 (arg1)->SetColumnImage(arg2,arg3);
32411 wxPyEndAllowThreads(__tstate);
32412 if (PyErr_Occurred()) SWIG_fail;
32413 }
32414 resultobj = SWIG_Py_Void();
32415 return resultobj;
32416 fail:
32417 return NULL;
32418 }
32419
32420
32421 SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32422 PyObject *resultobj = 0;
32423 wxListView *arg1 = (wxListView *) 0 ;
32424 int arg2 ;
32425 void *argp1 = 0 ;
32426 int res1 = 0 ;
32427 int val2 ;
32428 int ecode2 = 0 ;
32429 PyObject * obj0 = 0 ;
32430 PyObject * obj1 = 0 ;
32431 char * kwnames[] = {
32432 (char *) "self",(char *) "col", NULL
32433 };
32434
32435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32437 if (!SWIG_IsOK(res1)) {
32438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32439 }
32440 arg1 = reinterpret_cast< wxListView * >(argp1);
32441 ecode2 = SWIG_AsVal_int(obj1, &val2);
32442 if (!SWIG_IsOK(ecode2)) {
32443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32444 }
32445 arg2 = static_cast< int >(val2);
32446 {
32447 PyThreadState* __tstate = wxPyBeginAllowThreads();
32448 (arg1)->ClearColumnImage(arg2);
32449 wxPyEndAllowThreads(__tstate);
32450 if (PyErr_Occurred()) SWIG_fail;
32451 }
32452 resultobj = SWIG_Py_Void();
32453 return resultobj;
32454 fail:
32455 return NULL;
32456 }
32457
32458
32459 SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32460 PyObject *obj;
32461 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32462 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32463 return SWIG_Py_Void();
32464 }
32465
32466 SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32467 return SWIG_Python_InitShadowInstance(args);
32468 }
32469
32470 SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32471 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32472 return 1;
32473 }
32474
32475
32476 SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32477 PyObject *pyobj = 0;
32478
32479 {
32480 #if wxUSE_UNICODE
32481 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32482 #else
32483 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32484 #endif
32485 }
32486 return pyobj;
32487 }
32488
32489
32490 SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32491 PyObject *resultobj = 0;
32492 wxTreeItemId *result = 0 ;
32493
32494 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32495 {
32496 PyThreadState* __tstate = wxPyBeginAllowThreads();
32497 result = (wxTreeItemId *)new wxTreeItemId();
32498 wxPyEndAllowThreads(__tstate);
32499 if (PyErr_Occurred()) SWIG_fail;
32500 }
32501 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32502 return resultobj;
32503 fail:
32504 return NULL;
32505 }
32506
32507
32508 SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32509 PyObject *resultobj = 0;
32510 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32511 void *argp1 = 0 ;
32512 int res1 = 0 ;
32513 PyObject *swig_obj[1] ;
32514
32515 if (!args) SWIG_fail;
32516 swig_obj[0] = args;
32517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32518 if (!SWIG_IsOK(res1)) {
32519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32520 }
32521 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32522 {
32523 PyThreadState* __tstate = wxPyBeginAllowThreads();
32524 delete arg1;
32525
32526 wxPyEndAllowThreads(__tstate);
32527 if (PyErr_Occurred()) SWIG_fail;
32528 }
32529 resultobj = SWIG_Py_Void();
32530 return resultobj;
32531 fail:
32532 return NULL;
32533 }
32534
32535
32536 SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32537 PyObject *resultobj = 0;
32538 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32539 bool result;
32540 void *argp1 = 0 ;
32541 int res1 = 0 ;
32542 PyObject *swig_obj[1] ;
32543
32544 if (!args) SWIG_fail;
32545 swig_obj[0] = args;
32546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32547 if (!SWIG_IsOK(res1)) {
32548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32549 }
32550 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32551 {
32552 PyThreadState* __tstate = wxPyBeginAllowThreads();
32553 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32554 wxPyEndAllowThreads(__tstate);
32555 if (PyErr_Occurred()) SWIG_fail;
32556 }
32557 {
32558 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32559 }
32560 return resultobj;
32561 fail:
32562 return NULL;
32563 }
32564
32565
32566 SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32567 PyObject *resultobj = 0;
32568 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32569 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32570 bool result;
32571 void *argp1 = 0 ;
32572 int res1 = 0 ;
32573 void *argp2 = 0 ;
32574 int res2 = 0 ;
32575 PyObject * obj0 = 0 ;
32576 PyObject * obj1 = 0 ;
32577 char * kwnames[] = {
32578 (char *) "self",(char *) "other", NULL
32579 };
32580
32581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32583 if (!SWIG_IsOK(res1)) {
32584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32585 }
32586 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32587 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32588 if (!SWIG_IsOK(res2)) {
32589 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32590 }
32591 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32592 {
32593 PyThreadState* __tstate = wxPyBeginAllowThreads();
32594 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32595 wxPyEndAllowThreads(__tstate);
32596 if (PyErr_Occurred()) SWIG_fail;
32597 }
32598 {
32599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32600 }
32601 return resultobj;
32602 fail:
32603 return NULL;
32604 }
32605
32606
32607 SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32608 PyObject *resultobj = 0;
32609 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32610 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32611 bool result;
32612 void *argp1 = 0 ;
32613 int res1 = 0 ;
32614 void *argp2 = 0 ;
32615 int res2 = 0 ;
32616 PyObject * obj0 = 0 ;
32617 PyObject * obj1 = 0 ;
32618 char * kwnames[] = {
32619 (char *) "self",(char *) "other", NULL
32620 };
32621
32622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32624 if (!SWIG_IsOK(res1)) {
32625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32626 }
32627 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32628 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32629 if (!SWIG_IsOK(res2)) {
32630 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32631 }
32632 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32633 {
32634 PyThreadState* __tstate = wxPyBeginAllowThreads();
32635 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32636 wxPyEndAllowThreads(__tstate);
32637 if (PyErr_Occurred()) SWIG_fail;
32638 }
32639 {
32640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32641 }
32642 return resultobj;
32643 fail:
32644 return NULL;
32645 }
32646
32647
32648 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32649 PyObject *resultobj = 0;
32650 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32651 void *arg2 = (void *) 0 ;
32652 void *argp1 = 0 ;
32653 int res1 = 0 ;
32654 int res2 ;
32655 PyObject *swig_obj[2] ;
32656
32657 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32659 if (!SWIG_IsOK(res1)) {
32660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32661 }
32662 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32663 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32664 if (!SWIG_IsOK(res2)) {
32665 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32666 }
32667 if (arg1) (arg1)->m_pItem = arg2;
32668
32669 resultobj = SWIG_Py_Void();
32670 return resultobj;
32671 fail:
32672 return NULL;
32673 }
32674
32675
32676 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32677 PyObject *resultobj = 0;
32678 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32679 void *result = 0 ;
32680 void *argp1 = 0 ;
32681 int res1 = 0 ;
32682 PyObject *swig_obj[1] ;
32683
32684 if (!args) SWIG_fail;
32685 swig_obj[0] = args;
32686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32687 if (!SWIG_IsOK(res1)) {
32688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32689 }
32690 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32691 result = (void *) ((arg1)->m_pItem);
32692 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32693 return resultobj;
32694 fail:
32695 return NULL;
32696 }
32697
32698
32699 SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32700 PyObject *obj;
32701 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32702 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32703 return SWIG_Py_Void();
32704 }
32705
32706 SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32707 return SWIG_Python_InitShadowInstance(args);
32708 }
32709
32710 SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32711 PyObject *resultobj = 0;
32712 PyObject *arg1 = (PyObject *) NULL ;
32713 wxPyTreeItemData *result = 0 ;
32714 PyObject * obj0 = 0 ;
32715 char * kwnames[] = {
32716 (char *) "obj", NULL
32717 };
32718
32719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32720 if (obj0) {
32721 arg1 = obj0;
32722 }
32723 {
32724 PyThreadState* __tstate = wxPyBeginAllowThreads();
32725 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32726 wxPyEndAllowThreads(__tstate);
32727 if (PyErr_Occurred()) SWIG_fail;
32728 }
32729 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32730 return resultobj;
32731 fail:
32732 return NULL;
32733 }
32734
32735
32736 SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32737 PyObject *resultobj = 0;
32738 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32739 void *argp1 = 0 ;
32740 int res1 = 0 ;
32741 PyObject *swig_obj[1] ;
32742
32743 if (!args) SWIG_fail;
32744 swig_obj[0] = args;
32745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32746 if (!SWIG_IsOK(res1)) {
32747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32748 }
32749 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32750 {
32751 PyThreadState* __tstate = wxPyBeginAllowThreads();
32752 delete arg1;
32753
32754 wxPyEndAllowThreads(__tstate);
32755 if (PyErr_Occurred()) SWIG_fail;
32756 }
32757 resultobj = SWIG_Py_Void();
32758 return resultobj;
32759 fail:
32760 return NULL;
32761 }
32762
32763
32764 SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32765 PyObject *resultobj = 0;
32766 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32767 PyObject *result = 0 ;
32768 void *argp1 = 0 ;
32769 int res1 = 0 ;
32770 PyObject *swig_obj[1] ;
32771
32772 if (!args) SWIG_fail;
32773 swig_obj[0] = args;
32774 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32775 if (!SWIG_IsOK(res1)) {
32776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32777 }
32778 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32779 {
32780 PyThreadState* __tstate = wxPyBeginAllowThreads();
32781 result = (PyObject *)(arg1)->GetData();
32782 wxPyEndAllowThreads(__tstate);
32783 if (PyErr_Occurred()) SWIG_fail;
32784 }
32785 resultobj = result;
32786 return resultobj;
32787 fail:
32788 return NULL;
32789 }
32790
32791
32792 SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32793 PyObject *resultobj = 0;
32794 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32795 PyObject *arg2 = (PyObject *) 0 ;
32796 void *argp1 = 0 ;
32797 int res1 = 0 ;
32798 PyObject * obj0 = 0 ;
32799 PyObject * obj1 = 0 ;
32800 char * kwnames[] = {
32801 (char *) "self",(char *) "obj", NULL
32802 };
32803
32804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32806 if (!SWIG_IsOK(res1)) {
32807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32808 }
32809 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32810 arg2 = obj1;
32811 {
32812 PyThreadState* __tstate = wxPyBeginAllowThreads();
32813 (arg1)->SetData(arg2);
32814 wxPyEndAllowThreads(__tstate);
32815 if (PyErr_Occurred()) SWIG_fail;
32816 }
32817 resultobj = SWIG_Py_Void();
32818 return resultobj;
32819 fail:
32820 return NULL;
32821 }
32822
32823
32824 SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32825 PyObject *resultobj = 0;
32826 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32827 wxTreeItemId *result = 0 ;
32828 void *argp1 = 0 ;
32829 int res1 = 0 ;
32830 PyObject *swig_obj[1] ;
32831
32832 if (!args) SWIG_fail;
32833 swig_obj[0] = args;
32834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32835 if (!SWIG_IsOK(res1)) {
32836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32837 }
32838 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32839 {
32840 PyThreadState* __tstate = wxPyBeginAllowThreads();
32841 {
32842 wxTreeItemId const &_result_ref = (arg1)->GetId();
32843 result = (wxTreeItemId *) &_result_ref;
32844 }
32845 wxPyEndAllowThreads(__tstate);
32846 if (PyErr_Occurred()) SWIG_fail;
32847 }
32848 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32849 return resultobj;
32850 fail:
32851 return NULL;
32852 }
32853
32854
32855 SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32856 PyObject *resultobj = 0;
32857 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32858 wxTreeItemId *arg2 = 0 ;
32859 void *argp1 = 0 ;
32860 int res1 = 0 ;
32861 void *argp2 = 0 ;
32862 int res2 = 0 ;
32863 PyObject * obj0 = 0 ;
32864 PyObject * obj1 = 0 ;
32865 char * kwnames[] = {
32866 (char *) "self",(char *) "id", NULL
32867 };
32868
32869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32871 if (!SWIG_IsOK(res1)) {
32872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32873 }
32874 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32875 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32876 if (!SWIG_IsOK(res2)) {
32877 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32878 }
32879 if (!argp2) {
32880 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32881 }
32882 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32883 {
32884 PyThreadState* __tstate = wxPyBeginAllowThreads();
32885 (arg1)->SetId((wxTreeItemId const &)*arg2);
32886 wxPyEndAllowThreads(__tstate);
32887 if (PyErr_Occurred()) SWIG_fail;
32888 }
32889 resultobj = SWIG_Py_Void();
32890 return resultobj;
32891 fail:
32892 return NULL;
32893 }
32894
32895
32896 SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32897 PyObject *resultobj = 0;
32898 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32899 void *argp1 = 0 ;
32900 int res1 = 0 ;
32901 PyObject *swig_obj[1] ;
32902
32903 if (!args) SWIG_fail;
32904 swig_obj[0] = args;
32905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32906 if (!SWIG_IsOK(res1)) {
32907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32908 }
32909 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32910 {
32911 PyThreadState* __tstate = wxPyBeginAllowThreads();
32912 wxPyTreeItemData_Destroy(arg1);
32913 wxPyEndAllowThreads(__tstate);
32914 if (PyErr_Occurred()) SWIG_fail;
32915 }
32916 resultobj = SWIG_Py_Void();
32917 return resultobj;
32918 fail:
32919 return NULL;
32920 }
32921
32922
32923 SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32924 PyObject *obj;
32925 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32926 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
32927 return SWIG_Py_Void();
32928 }
32929
32930 SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32931 return SWIG_Python_InitShadowInstance(args);
32932 }
32933
32934 SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
32935 {
32936 void *argp = 0;
32937 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32938 if (!SWIG_IsOK(res)) {
32939 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
32940 }
32941 if (!argp) {
32942 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
32943 } else {
32944 wxTreeItemId * temp;
32945 temp = reinterpret_cast< wxTreeItemId * >(argp);
32946 wxNullTreeItemId = *temp;
32947 if (SWIG_IsNewObj(res)) delete temp;
32948 }
32949 }
32950 return 0;
32951 fail:
32952 return 1;
32953 }
32954
32955
32956 SWIGINTERN PyObject *NullTreeItemId_get(void) {
32957 PyObject *pyobj = 0;
32958
32959 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
32960 return pyobj;
32961 }
32962
32963
32964 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32965 PyObject *resultobj = 0;
32966 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
32967 int arg2 = (int) 0 ;
32968 wxTreeEvent *result = 0 ;
32969 int val1 ;
32970 int ecode1 = 0 ;
32971 int val2 ;
32972 int ecode2 = 0 ;
32973
32974 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
32975 if (swig_obj[0]) {
32976 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
32977 if (!SWIG_IsOK(ecode1)) {
32978 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32979 }
32980 arg1 = static_cast< wxEventType >(val1);
32981 }
32982 if (swig_obj[1]) {
32983 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
32984 if (!SWIG_IsOK(ecode2)) {
32985 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
32986 }
32987 arg2 = static_cast< int >(val2);
32988 }
32989 {
32990 PyThreadState* __tstate = wxPyBeginAllowThreads();
32991 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
32992 wxPyEndAllowThreads(__tstate);
32993 if (PyErr_Occurred()) SWIG_fail;
32994 }
32995 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32996 return resultobj;
32997 fail:
32998 return NULL;
32999 }
33000
33001
33002 SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33003 PyObject *resultobj = 0;
33004 wxEventType arg1 ;
33005 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
33006 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
33007 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
33008 wxTreeEvent *result = 0 ;
33009 int val1 ;
33010 int ecode1 = 0 ;
33011 void *argp2 = 0 ;
33012 int res2 = 0 ;
33013 void *argp3 = 0 ;
33014 int res3 = 0 ;
33015
33016 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
33017 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33018 if (!SWIG_IsOK(ecode1)) {
33019 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33020 }
33021 arg1 = static_cast< wxEventType >(val1);
33022 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33023 if (!SWIG_IsOK(res2)) {
33024 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
33025 }
33026 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
33027 if (swig_obj[2]) {
33028 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
33029 if (!SWIG_IsOK(res3)) {
33030 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33031 }
33032 if (!argp3) {
33033 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33034 }
33035 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
33036 }
33037 {
33038 PyThreadState* __tstate = wxPyBeginAllowThreads();
33039 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
33040 wxPyEndAllowThreads(__tstate);
33041 if (PyErr_Occurred()) SWIG_fail;
33042 }
33043 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33044 return resultobj;
33045 fail:
33046 return NULL;
33047 }
33048
33049
33050 SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
33051 int argc;
33052 PyObject *argv[4];
33053
33054 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
33055 --argc;
33056 if ((argc >= 0) && (argc <= 2)) {
33057 int _v = 0;
33058 if (argc > 1) {
33059 {
33060 {
33061 int res = SWIG_AsVal_int(argv[1], NULL);
33062 _v = SWIG_CheckState(res);
33063 }
33064 }
33065 if (!_v) goto check_1;
33066 }
33067 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
33068 }
33069 check_1:
33070
33071 if ((argc >= 2) && (argc <= 3)) {
33072 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
33073 }
33074
33075 fail:
33076 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
33077 return NULL;
33078 }
33079
33080
33081 SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33082 PyObject *resultobj = 0;
33083 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33084 wxTreeItemId result;
33085 void *argp1 = 0 ;
33086 int res1 = 0 ;
33087 PyObject *swig_obj[1] ;
33088
33089 if (!args) SWIG_fail;
33090 swig_obj[0] = args;
33091 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33092 if (!SWIG_IsOK(res1)) {
33093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33094 }
33095 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33096 {
33097 PyThreadState* __tstate = wxPyBeginAllowThreads();
33098 result = ((wxTreeEvent const *)arg1)->GetItem();
33099 wxPyEndAllowThreads(__tstate);
33100 if (PyErr_Occurred()) SWIG_fail;
33101 }
33102 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33103 return resultobj;
33104 fail:
33105 return NULL;
33106 }
33107
33108
33109 SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33110 PyObject *resultobj = 0;
33111 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33112 wxTreeItemId *arg2 = 0 ;
33113 void *argp1 = 0 ;
33114 int res1 = 0 ;
33115 void *argp2 = 0 ;
33116 int res2 = 0 ;
33117 PyObject * obj0 = 0 ;
33118 PyObject * obj1 = 0 ;
33119 char * kwnames[] = {
33120 (char *) "self",(char *) "item", NULL
33121 };
33122
33123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
33124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33125 if (!SWIG_IsOK(res1)) {
33126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33127 }
33128 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33129 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33130 if (!SWIG_IsOK(res2)) {
33131 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33132 }
33133 if (!argp2) {
33134 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33135 }
33136 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33137 {
33138 PyThreadState* __tstate = wxPyBeginAllowThreads();
33139 (arg1)->SetItem((wxTreeItemId const &)*arg2);
33140 wxPyEndAllowThreads(__tstate);
33141 if (PyErr_Occurred()) SWIG_fail;
33142 }
33143 resultobj = SWIG_Py_Void();
33144 return resultobj;
33145 fail:
33146 return NULL;
33147 }
33148
33149
33150 SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33151 PyObject *resultobj = 0;
33152 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33153 wxTreeItemId result;
33154 void *argp1 = 0 ;
33155 int res1 = 0 ;
33156 PyObject *swig_obj[1] ;
33157
33158 if (!args) SWIG_fail;
33159 swig_obj[0] = args;
33160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33161 if (!SWIG_IsOK(res1)) {
33162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33163 }
33164 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33165 {
33166 PyThreadState* __tstate = wxPyBeginAllowThreads();
33167 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33168 wxPyEndAllowThreads(__tstate);
33169 if (PyErr_Occurred()) SWIG_fail;
33170 }
33171 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33172 return resultobj;
33173 fail:
33174 return NULL;
33175 }
33176
33177
33178 SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33179 PyObject *resultobj = 0;
33180 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33181 wxTreeItemId *arg2 = 0 ;
33182 void *argp1 = 0 ;
33183 int res1 = 0 ;
33184 void *argp2 = 0 ;
33185 int res2 = 0 ;
33186 PyObject * obj0 = 0 ;
33187 PyObject * obj1 = 0 ;
33188 char * kwnames[] = {
33189 (char *) "self",(char *) "item", NULL
33190 };
33191
33192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33194 if (!SWIG_IsOK(res1)) {
33195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33196 }
33197 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33198 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33199 if (!SWIG_IsOK(res2)) {
33200 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33201 }
33202 if (!argp2) {
33203 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33204 }
33205 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33206 {
33207 PyThreadState* __tstate = wxPyBeginAllowThreads();
33208 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33209 wxPyEndAllowThreads(__tstate);
33210 if (PyErr_Occurred()) SWIG_fail;
33211 }
33212 resultobj = SWIG_Py_Void();
33213 return resultobj;
33214 fail:
33215 return NULL;
33216 }
33217
33218
33219 SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33220 PyObject *resultobj = 0;
33221 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33222 wxPoint result;
33223 void *argp1 = 0 ;
33224 int res1 = 0 ;
33225 PyObject *swig_obj[1] ;
33226
33227 if (!args) SWIG_fail;
33228 swig_obj[0] = args;
33229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33230 if (!SWIG_IsOK(res1)) {
33231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33232 }
33233 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33234 {
33235 PyThreadState* __tstate = wxPyBeginAllowThreads();
33236 result = ((wxTreeEvent const *)arg1)->GetPoint();
33237 wxPyEndAllowThreads(__tstate);
33238 if (PyErr_Occurred()) SWIG_fail;
33239 }
33240 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33241 return resultobj;
33242 fail:
33243 return NULL;
33244 }
33245
33246
33247 SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33248 PyObject *resultobj = 0;
33249 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33250 wxPoint *arg2 = 0 ;
33251 void *argp1 = 0 ;
33252 int res1 = 0 ;
33253 wxPoint temp2 ;
33254 PyObject * obj0 = 0 ;
33255 PyObject * obj1 = 0 ;
33256 char * kwnames[] = {
33257 (char *) "self",(char *) "pt", NULL
33258 };
33259
33260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33262 if (!SWIG_IsOK(res1)) {
33263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33264 }
33265 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33266 {
33267 arg2 = &temp2;
33268 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33269 }
33270 {
33271 PyThreadState* __tstate = wxPyBeginAllowThreads();
33272 (arg1)->SetPoint((wxPoint const &)*arg2);
33273 wxPyEndAllowThreads(__tstate);
33274 if (PyErr_Occurred()) SWIG_fail;
33275 }
33276 resultobj = SWIG_Py_Void();
33277 return resultobj;
33278 fail:
33279 return NULL;
33280 }
33281
33282
33283 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33284 PyObject *resultobj = 0;
33285 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33286 wxKeyEvent *result = 0 ;
33287 void *argp1 = 0 ;
33288 int res1 = 0 ;
33289 PyObject *swig_obj[1] ;
33290
33291 if (!args) SWIG_fail;
33292 swig_obj[0] = args;
33293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33294 if (!SWIG_IsOK(res1)) {
33295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33296 }
33297 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33298 {
33299 PyThreadState* __tstate = wxPyBeginAllowThreads();
33300 {
33301 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33302 result = (wxKeyEvent *) &_result_ref;
33303 }
33304 wxPyEndAllowThreads(__tstate);
33305 if (PyErr_Occurred()) SWIG_fail;
33306 }
33307 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33308 return resultobj;
33309 fail:
33310 return NULL;
33311 }
33312
33313
33314 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33315 PyObject *resultobj = 0;
33316 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33317 int result;
33318 void *argp1 = 0 ;
33319 int res1 = 0 ;
33320 PyObject *swig_obj[1] ;
33321
33322 if (!args) SWIG_fail;
33323 swig_obj[0] = args;
33324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33325 if (!SWIG_IsOK(res1)) {
33326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33327 }
33328 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33329 {
33330 PyThreadState* __tstate = wxPyBeginAllowThreads();
33331 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33332 wxPyEndAllowThreads(__tstate);
33333 if (PyErr_Occurred()) SWIG_fail;
33334 }
33335 resultobj = SWIG_From_int(static_cast< int >(result));
33336 return resultobj;
33337 fail:
33338 return NULL;
33339 }
33340
33341
33342 SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33343 PyObject *resultobj = 0;
33344 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33345 wxKeyEvent *arg2 = 0 ;
33346 void *argp1 = 0 ;
33347 int res1 = 0 ;
33348 void *argp2 = 0 ;
33349 int res2 = 0 ;
33350 PyObject * obj0 = 0 ;
33351 PyObject * obj1 = 0 ;
33352 char * kwnames[] = {
33353 (char *) "self",(char *) "evt", NULL
33354 };
33355
33356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33358 if (!SWIG_IsOK(res1)) {
33359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33360 }
33361 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33362 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33363 if (!SWIG_IsOK(res2)) {
33364 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33365 }
33366 if (!argp2) {
33367 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33368 }
33369 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33370 {
33371 PyThreadState* __tstate = wxPyBeginAllowThreads();
33372 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33373 wxPyEndAllowThreads(__tstate);
33374 if (PyErr_Occurred()) SWIG_fail;
33375 }
33376 resultobj = SWIG_Py_Void();
33377 return resultobj;
33378 fail:
33379 return NULL;
33380 }
33381
33382
33383 SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33384 PyObject *resultobj = 0;
33385 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33386 wxString *result = 0 ;
33387 void *argp1 = 0 ;
33388 int res1 = 0 ;
33389 PyObject *swig_obj[1] ;
33390
33391 if (!args) SWIG_fail;
33392 swig_obj[0] = args;
33393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33394 if (!SWIG_IsOK(res1)) {
33395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33396 }
33397 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33398 {
33399 PyThreadState* __tstate = wxPyBeginAllowThreads();
33400 {
33401 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33402 result = (wxString *) &_result_ref;
33403 }
33404 wxPyEndAllowThreads(__tstate);
33405 if (PyErr_Occurred()) SWIG_fail;
33406 }
33407 {
33408 #if wxUSE_UNICODE
33409 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33410 #else
33411 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33412 #endif
33413 }
33414 return resultobj;
33415 fail:
33416 return NULL;
33417 }
33418
33419
33420 SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33421 PyObject *resultobj = 0;
33422 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33423 wxString *arg2 = 0 ;
33424 void *argp1 = 0 ;
33425 int res1 = 0 ;
33426 bool temp2 = false ;
33427 PyObject * obj0 = 0 ;
33428 PyObject * obj1 = 0 ;
33429 char * kwnames[] = {
33430 (char *) "self",(char *) "label", NULL
33431 };
33432
33433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33435 if (!SWIG_IsOK(res1)) {
33436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33437 }
33438 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33439 {
33440 arg2 = wxString_in_helper(obj1);
33441 if (arg2 == NULL) SWIG_fail;
33442 temp2 = true;
33443 }
33444 {
33445 PyThreadState* __tstate = wxPyBeginAllowThreads();
33446 (arg1)->SetLabel((wxString const &)*arg2);
33447 wxPyEndAllowThreads(__tstate);
33448 if (PyErr_Occurred()) SWIG_fail;
33449 }
33450 resultobj = SWIG_Py_Void();
33451 {
33452 if (temp2)
33453 delete arg2;
33454 }
33455 return resultobj;
33456 fail:
33457 {
33458 if (temp2)
33459 delete arg2;
33460 }
33461 return NULL;
33462 }
33463
33464
33465 SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33466 PyObject *resultobj = 0;
33467 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33468 bool result;
33469 void *argp1 = 0 ;
33470 int res1 = 0 ;
33471 PyObject *swig_obj[1] ;
33472
33473 if (!args) SWIG_fail;
33474 swig_obj[0] = args;
33475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33476 if (!SWIG_IsOK(res1)) {
33477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33478 }
33479 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33480 {
33481 PyThreadState* __tstate = wxPyBeginAllowThreads();
33482 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33483 wxPyEndAllowThreads(__tstate);
33484 if (PyErr_Occurred()) SWIG_fail;
33485 }
33486 {
33487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33488 }
33489 return resultobj;
33490 fail:
33491 return NULL;
33492 }
33493
33494
33495 SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33496 PyObject *resultobj = 0;
33497 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33498 bool arg2 ;
33499 void *argp1 = 0 ;
33500 int res1 = 0 ;
33501 bool val2 ;
33502 int ecode2 = 0 ;
33503 PyObject * obj0 = 0 ;
33504 PyObject * obj1 = 0 ;
33505 char * kwnames[] = {
33506 (char *) "self",(char *) "editCancelled", NULL
33507 };
33508
33509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33511 if (!SWIG_IsOK(res1)) {
33512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33513 }
33514 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33515 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33516 if (!SWIG_IsOK(ecode2)) {
33517 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33518 }
33519 arg2 = static_cast< bool >(val2);
33520 {
33521 PyThreadState* __tstate = wxPyBeginAllowThreads();
33522 (arg1)->SetEditCanceled(arg2);
33523 wxPyEndAllowThreads(__tstate);
33524 if (PyErr_Occurred()) SWIG_fail;
33525 }
33526 resultobj = SWIG_Py_Void();
33527 return resultobj;
33528 fail:
33529 return NULL;
33530 }
33531
33532
33533 SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33534 PyObject *resultobj = 0;
33535 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33536 wxString *arg2 = 0 ;
33537 void *argp1 = 0 ;
33538 int res1 = 0 ;
33539 bool temp2 = false ;
33540 PyObject * obj0 = 0 ;
33541 PyObject * obj1 = 0 ;
33542 char * kwnames[] = {
33543 (char *) "self",(char *) "toolTip", NULL
33544 };
33545
33546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33548 if (!SWIG_IsOK(res1)) {
33549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33550 }
33551 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33552 {
33553 arg2 = wxString_in_helper(obj1);
33554 if (arg2 == NULL) SWIG_fail;
33555 temp2 = true;
33556 }
33557 {
33558 PyThreadState* __tstate = wxPyBeginAllowThreads();
33559 (arg1)->SetToolTip((wxString const &)*arg2);
33560 wxPyEndAllowThreads(__tstate);
33561 if (PyErr_Occurred()) SWIG_fail;
33562 }
33563 resultobj = SWIG_Py_Void();
33564 {
33565 if (temp2)
33566 delete arg2;
33567 }
33568 return resultobj;
33569 fail:
33570 {
33571 if (temp2)
33572 delete arg2;
33573 }
33574 return NULL;
33575 }
33576
33577
33578 SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33579 PyObject *resultobj = 0;
33580 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33581 wxString result;
33582 void *argp1 = 0 ;
33583 int res1 = 0 ;
33584 PyObject *swig_obj[1] ;
33585
33586 if (!args) SWIG_fail;
33587 swig_obj[0] = args;
33588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33589 if (!SWIG_IsOK(res1)) {
33590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33591 }
33592 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33593 {
33594 PyThreadState* __tstate = wxPyBeginAllowThreads();
33595 result = (arg1)->GetToolTip();
33596 wxPyEndAllowThreads(__tstate);
33597 if (PyErr_Occurred()) SWIG_fail;
33598 }
33599 {
33600 #if wxUSE_UNICODE
33601 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33602 #else
33603 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33604 #endif
33605 }
33606 return resultobj;
33607 fail:
33608 return NULL;
33609 }
33610
33611
33612 SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33613 PyObject *obj;
33614 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33615 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33616 return SWIG_Py_Void();
33617 }
33618
33619 SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33620 return SWIG_Python_InitShadowInstance(args);
33621 }
33622
33623 SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33624 PyObject *resultobj = 0;
33625 wxWindow *arg1 = (wxWindow *) 0 ;
33626 int arg2 = (int) -1 ;
33627 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33628 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33629 wxSize const &arg4_defvalue = wxDefaultSize ;
33630 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33631 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33632 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33633 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33634 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33635 wxString *arg7 = (wxString *) &arg7_defvalue ;
33636 wxPyTreeCtrl *result = 0 ;
33637 void *argp1 = 0 ;
33638 int res1 = 0 ;
33639 int val2 ;
33640 int ecode2 = 0 ;
33641 wxPoint temp3 ;
33642 wxSize temp4 ;
33643 long val5 ;
33644 int ecode5 = 0 ;
33645 void *argp6 = 0 ;
33646 int res6 = 0 ;
33647 bool temp7 = false ;
33648 PyObject * obj0 = 0 ;
33649 PyObject * obj1 = 0 ;
33650 PyObject * obj2 = 0 ;
33651 PyObject * obj3 = 0 ;
33652 PyObject * obj4 = 0 ;
33653 PyObject * obj5 = 0 ;
33654 PyObject * obj6 = 0 ;
33655 char * kwnames[] = {
33656 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33657 };
33658
33659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33661 if (!SWIG_IsOK(res1)) {
33662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33663 }
33664 arg1 = reinterpret_cast< wxWindow * >(argp1);
33665 if (obj1) {
33666 ecode2 = SWIG_AsVal_int(obj1, &val2);
33667 if (!SWIG_IsOK(ecode2)) {
33668 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33669 }
33670 arg2 = static_cast< int >(val2);
33671 }
33672 if (obj2) {
33673 {
33674 arg3 = &temp3;
33675 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33676 }
33677 }
33678 if (obj3) {
33679 {
33680 arg4 = &temp4;
33681 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
33682 }
33683 }
33684 if (obj4) {
33685 ecode5 = SWIG_AsVal_long(obj4, &val5);
33686 if (!SWIG_IsOK(ecode5)) {
33687 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33688 }
33689 arg5 = static_cast< long >(val5);
33690 }
33691 if (obj5) {
33692 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33693 if (!SWIG_IsOK(res6)) {
33694 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33695 }
33696 if (!argp6) {
33697 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33698 }
33699 arg6 = reinterpret_cast< wxValidator * >(argp6);
33700 }
33701 if (obj6) {
33702 {
33703 arg7 = wxString_in_helper(obj6);
33704 if (arg7 == NULL) SWIG_fail;
33705 temp7 = true;
33706 }
33707 }
33708 {
33709 if (!wxPyCheckForApp()) SWIG_fail;
33710 PyThreadState* __tstate = wxPyBeginAllowThreads();
33711 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33712 wxPyEndAllowThreads(__tstate);
33713 if (PyErr_Occurred()) SWIG_fail;
33714 }
33715 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33716 {
33717 if (temp7)
33718 delete arg7;
33719 }
33720 return resultobj;
33721 fail:
33722 {
33723 if (temp7)
33724 delete arg7;
33725 }
33726 return NULL;
33727 }
33728
33729
33730 SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33731 PyObject *resultobj = 0;
33732 wxPyTreeCtrl *result = 0 ;
33733
33734 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33735 {
33736 if (!wxPyCheckForApp()) SWIG_fail;
33737 PyThreadState* __tstate = wxPyBeginAllowThreads();
33738 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33739 wxPyEndAllowThreads(__tstate);
33740 if (PyErr_Occurred()) SWIG_fail;
33741 }
33742 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33743 return resultobj;
33744 fail:
33745 return NULL;
33746 }
33747
33748
33749 SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33750 PyObject *resultobj = 0;
33751 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33752 wxWindow *arg2 = (wxWindow *) 0 ;
33753 int arg3 = (int) -1 ;
33754 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33755 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33756 wxSize const &arg5_defvalue = wxDefaultSize ;
33757 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33758 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33759 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33760 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33761 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33762 wxString *arg8 = (wxString *) &arg8_defvalue ;
33763 bool result;
33764 void *argp1 = 0 ;
33765 int res1 = 0 ;
33766 void *argp2 = 0 ;
33767 int res2 = 0 ;
33768 int val3 ;
33769 int ecode3 = 0 ;
33770 wxPoint temp4 ;
33771 wxSize temp5 ;
33772 long val6 ;
33773 int ecode6 = 0 ;
33774 void *argp7 = 0 ;
33775 int res7 = 0 ;
33776 bool temp8 = false ;
33777 PyObject * obj0 = 0 ;
33778 PyObject * obj1 = 0 ;
33779 PyObject * obj2 = 0 ;
33780 PyObject * obj3 = 0 ;
33781 PyObject * obj4 = 0 ;
33782 PyObject * obj5 = 0 ;
33783 PyObject * obj6 = 0 ;
33784 PyObject * obj7 = 0 ;
33785 char * kwnames[] = {
33786 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33787 };
33788
33789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33791 if (!SWIG_IsOK(res1)) {
33792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33793 }
33794 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33795 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33796 if (!SWIG_IsOK(res2)) {
33797 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33798 }
33799 arg2 = reinterpret_cast< wxWindow * >(argp2);
33800 if (obj2) {
33801 ecode3 = SWIG_AsVal_int(obj2, &val3);
33802 if (!SWIG_IsOK(ecode3)) {
33803 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33804 }
33805 arg3 = static_cast< int >(val3);
33806 }
33807 if (obj3) {
33808 {
33809 arg4 = &temp4;
33810 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
33811 }
33812 }
33813 if (obj4) {
33814 {
33815 arg5 = &temp5;
33816 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
33817 }
33818 }
33819 if (obj5) {
33820 ecode6 = SWIG_AsVal_long(obj5, &val6);
33821 if (!SWIG_IsOK(ecode6)) {
33822 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33823 }
33824 arg6 = static_cast< long >(val6);
33825 }
33826 if (obj6) {
33827 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33828 if (!SWIG_IsOK(res7)) {
33829 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33830 }
33831 if (!argp7) {
33832 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33833 }
33834 arg7 = reinterpret_cast< wxValidator * >(argp7);
33835 }
33836 if (obj7) {
33837 {
33838 arg8 = wxString_in_helper(obj7);
33839 if (arg8 == NULL) SWIG_fail;
33840 temp8 = true;
33841 }
33842 }
33843 {
33844 PyThreadState* __tstate = wxPyBeginAllowThreads();
33845 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33846 wxPyEndAllowThreads(__tstate);
33847 if (PyErr_Occurred()) SWIG_fail;
33848 }
33849 {
33850 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33851 }
33852 {
33853 if (temp8)
33854 delete arg8;
33855 }
33856 return resultobj;
33857 fail:
33858 {
33859 if (temp8)
33860 delete arg8;
33861 }
33862 return NULL;
33863 }
33864
33865
33866 SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33867 PyObject *resultobj = 0;
33868 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33869 PyObject *arg2 = (PyObject *) 0 ;
33870 PyObject *arg3 = (PyObject *) 0 ;
33871 void *argp1 = 0 ;
33872 int res1 = 0 ;
33873 PyObject * obj0 = 0 ;
33874 PyObject * obj1 = 0 ;
33875 PyObject * obj2 = 0 ;
33876 char * kwnames[] = {
33877 (char *) "self",(char *) "self",(char *) "_class", NULL
33878 };
33879
33880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33882 if (!SWIG_IsOK(res1)) {
33883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33884 }
33885 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33886 arg2 = obj1;
33887 arg3 = obj2;
33888 {
33889 PyThreadState* __tstate = wxPyBeginAllowThreads();
33890 (arg1)->_setCallbackInfo(arg2,arg3);
33891 wxPyEndAllowThreads(__tstate);
33892 if (PyErr_Occurred()) SWIG_fail;
33893 }
33894 resultobj = SWIG_Py_Void();
33895 return resultobj;
33896 fail:
33897 return NULL;
33898 }
33899
33900
33901 SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33902 PyObject *resultobj = 0;
33903 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33904 unsigned int result;
33905 void *argp1 = 0 ;
33906 int res1 = 0 ;
33907 PyObject *swig_obj[1] ;
33908
33909 if (!args) SWIG_fail;
33910 swig_obj[0] = args;
33911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33912 if (!SWIG_IsOK(res1)) {
33913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33914 }
33915 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33916 {
33917 PyThreadState* __tstate = wxPyBeginAllowThreads();
33918 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
33919 wxPyEndAllowThreads(__tstate);
33920 if (PyErr_Occurred()) SWIG_fail;
33921 }
33922 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33923 return resultobj;
33924 fail:
33925 return NULL;
33926 }
33927
33928
33929 SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33930 PyObject *resultobj = 0;
33931 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33932 unsigned int result;
33933 void *argp1 = 0 ;
33934 int res1 = 0 ;
33935 PyObject *swig_obj[1] ;
33936
33937 if (!args) SWIG_fail;
33938 swig_obj[0] = args;
33939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33940 if (!SWIG_IsOK(res1)) {
33941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33942 }
33943 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33944 {
33945 PyThreadState* __tstate = wxPyBeginAllowThreads();
33946 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
33947 wxPyEndAllowThreads(__tstate);
33948 if (PyErr_Occurred()) SWIG_fail;
33949 }
33950 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33951 return resultobj;
33952 fail:
33953 return NULL;
33954 }
33955
33956
33957 SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33958 PyObject *resultobj = 0;
33959 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33960 unsigned int arg2 ;
33961 void *argp1 = 0 ;
33962 int res1 = 0 ;
33963 unsigned int val2 ;
33964 int ecode2 = 0 ;
33965 PyObject * obj0 = 0 ;
33966 PyObject * obj1 = 0 ;
33967 char * kwnames[] = {
33968 (char *) "self",(char *) "indent", NULL
33969 };
33970
33971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
33972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33973 if (!SWIG_IsOK(res1)) {
33974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33975 }
33976 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33977 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33978 if (!SWIG_IsOK(ecode2)) {
33979 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
33980 }
33981 arg2 = static_cast< unsigned int >(val2);
33982 {
33983 PyThreadState* __tstate = wxPyBeginAllowThreads();
33984 (arg1)->SetIndent(arg2);
33985 wxPyEndAllowThreads(__tstate);
33986 if (PyErr_Occurred()) SWIG_fail;
33987 }
33988 resultobj = SWIG_Py_Void();
33989 return resultobj;
33990 fail:
33991 return NULL;
33992 }
33993
33994
33995 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33996 PyObject *resultobj = 0;
33997 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33998 unsigned int result;
33999 void *argp1 = 0 ;
34000 int res1 = 0 ;
34001 PyObject *swig_obj[1] ;
34002
34003 if (!args) SWIG_fail;
34004 swig_obj[0] = args;
34005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34006 if (!SWIG_IsOK(res1)) {
34007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34008 }
34009 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34010 {
34011 PyThreadState* __tstate = wxPyBeginAllowThreads();
34012 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
34013 wxPyEndAllowThreads(__tstate);
34014 if (PyErr_Occurred()) SWIG_fail;
34015 }
34016 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34017 return resultobj;
34018 fail:
34019 return NULL;
34020 }
34021
34022
34023 SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34024 PyObject *resultobj = 0;
34025 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34026 unsigned int arg2 ;
34027 void *argp1 = 0 ;
34028 int res1 = 0 ;
34029 unsigned int val2 ;
34030 int ecode2 = 0 ;
34031 PyObject * obj0 = 0 ;
34032 PyObject * obj1 = 0 ;
34033 char * kwnames[] = {
34034 (char *) "self",(char *) "spacing", NULL
34035 };
34036
34037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
34038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34039 if (!SWIG_IsOK(res1)) {
34040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34041 }
34042 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34043 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34044 if (!SWIG_IsOK(ecode2)) {
34045 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
34046 }
34047 arg2 = static_cast< unsigned int >(val2);
34048 {
34049 PyThreadState* __tstate = wxPyBeginAllowThreads();
34050 (arg1)->SetSpacing(arg2);
34051 wxPyEndAllowThreads(__tstate);
34052 if (PyErr_Occurred()) SWIG_fail;
34053 }
34054 resultobj = SWIG_Py_Void();
34055 return resultobj;
34056 fail:
34057 return NULL;
34058 }
34059
34060
34061 SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34062 PyObject *resultobj = 0;
34063 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34064 wxImageList *result = 0 ;
34065 void *argp1 = 0 ;
34066 int res1 = 0 ;
34067 PyObject *swig_obj[1] ;
34068
34069 if (!args) SWIG_fail;
34070 swig_obj[0] = args;
34071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34072 if (!SWIG_IsOK(res1)) {
34073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34074 }
34075 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34076 {
34077 PyThreadState* __tstate = wxPyBeginAllowThreads();
34078 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
34079 wxPyEndAllowThreads(__tstate);
34080 if (PyErr_Occurred()) SWIG_fail;
34081 }
34082 {
34083 resultobj = wxPyMake_wxObject(result, (bool)0);
34084 }
34085 return resultobj;
34086 fail:
34087 return NULL;
34088 }
34089
34090
34091 SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34092 PyObject *resultobj = 0;
34093 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34094 wxImageList *result = 0 ;
34095 void *argp1 = 0 ;
34096 int res1 = 0 ;
34097 PyObject *swig_obj[1] ;
34098
34099 if (!args) SWIG_fail;
34100 swig_obj[0] = args;
34101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34102 if (!SWIG_IsOK(res1)) {
34103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34104 }
34105 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34106 {
34107 PyThreadState* __tstate = wxPyBeginAllowThreads();
34108 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
34109 wxPyEndAllowThreads(__tstate);
34110 if (PyErr_Occurred()) SWIG_fail;
34111 }
34112 {
34113 resultobj = wxPyMake_wxObject(result, (bool)0);
34114 }
34115 return resultobj;
34116 fail:
34117 return NULL;
34118 }
34119
34120
34121 SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34122 PyObject *resultobj = 0;
34123 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34124 wxImageList *arg2 = (wxImageList *) 0 ;
34125 void *argp1 = 0 ;
34126 int res1 = 0 ;
34127 void *argp2 = 0 ;
34128 int res2 = 0 ;
34129 PyObject * obj0 = 0 ;
34130 PyObject * obj1 = 0 ;
34131 char * kwnames[] = {
34132 (char *) "self",(char *) "imageList", NULL
34133 };
34134
34135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34137 if (!SWIG_IsOK(res1)) {
34138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34139 }
34140 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34141 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34142 if (!SWIG_IsOK(res2)) {
34143 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34144 }
34145 arg2 = reinterpret_cast< wxImageList * >(argp2);
34146 {
34147 PyThreadState* __tstate = wxPyBeginAllowThreads();
34148 (arg1)->SetImageList(arg2);
34149 wxPyEndAllowThreads(__tstate);
34150 if (PyErr_Occurred()) SWIG_fail;
34151 }
34152 resultobj = SWIG_Py_Void();
34153 return resultobj;
34154 fail:
34155 return NULL;
34156 }
34157
34158
34159 SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34160 PyObject *resultobj = 0;
34161 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34162 wxImageList *arg2 = (wxImageList *) 0 ;
34163 void *argp1 = 0 ;
34164 int res1 = 0 ;
34165 void *argp2 = 0 ;
34166 int res2 = 0 ;
34167 PyObject * obj0 = 0 ;
34168 PyObject * obj1 = 0 ;
34169 char * kwnames[] = {
34170 (char *) "self",(char *) "imageList", NULL
34171 };
34172
34173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34175 if (!SWIG_IsOK(res1)) {
34176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34177 }
34178 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34179 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34180 if (!SWIG_IsOK(res2)) {
34181 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34182 }
34183 arg2 = reinterpret_cast< wxImageList * >(argp2);
34184 {
34185 PyThreadState* __tstate = wxPyBeginAllowThreads();
34186 (arg1)->SetStateImageList(arg2);
34187 wxPyEndAllowThreads(__tstate);
34188 if (PyErr_Occurred()) SWIG_fail;
34189 }
34190 resultobj = SWIG_Py_Void();
34191 return resultobj;
34192 fail:
34193 return NULL;
34194 }
34195
34196
34197 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34198 PyObject *resultobj = 0;
34199 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34200 wxImageList *arg2 = (wxImageList *) 0 ;
34201 void *argp1 = 0 ;
34202 int res1 = 0 ;
34203 int res2 = 0 ;
34204 PyObject * obj0 = 0 ;
34205 PyObject * obj1 = 0 ;
34206 char * kwnames[] = {
34207 (char *) "self",(char *) "imageList", NULL
34208 };
34209
34210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34212 if (!SWIG_IsOK(res1)) {
34213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34214 }
34215 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34216 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34217 if (!SWIG_IsOK(res2)) {
34218 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34219 }
34220 {
34221 PyThreadState* __tstate = wxPyBeginAllowThreads();
34222 (arg1)->AssignImageList(arg2);
34223 wxPyEndAllowThreads(__tstate);
34224 if (PyErr_Occurred()) SWIG_fail;
34225 }
34226 resultobj = SWIG_Py_Void();
34227 return resultobj;
34228 fail:
34229 return NULL;
34230 }
34231
34232
34233 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34234 PyObject *resultobj = 0;
34235 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34236 wxImageList *arg2 = (wxImageList *) 0 ;
34237 void *argp1 = 0 ;
34238 int res1 = 0 ;
34239 int res2 = 0 ;
34240 PyObject * obj0 = 0 ;
34241 PyObject * obj1 = 0 ;
34242 char * kwnames[] = {
34243 (char *) "self",(char *) "imageList", NULL
34244 };
34245
34246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34248 if (!SWIG_IsOK(res1)) {
34249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34250 }
34251 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34252 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34253 if (!SWIG_IsOK(res2)) {
34254 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34255 }
34256 {
34257 PyThreadState* __tstate = wxPyBeginAllowThreads();
34258 (arg1)->AssignStateImageList(arg2);
34259 wxPyEndAllowThreads(__tstate);
34260 if (PyErr_Occurred()) SWIG_fail;
34261 }
34262 resultobj = SWIG_Py_Void();
34263 return resultobj;
34264 fail:
34265 return NULL;
34266 }
34267
34268
34269 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34270 PyObject *resultobj = 0;
34271 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34272 wxTreeItemId *arg2 = 0 ;
34273 wxString result;
34274 void *argp1 = 0 ;
34275 int res1 = 0 ;
34276 void *argp2 = 0 ;
34277 int res2 = 0 ;
34278 PyObject * obj0 = 0 ;
34279 PyObject * obj1 = 0 ;
34280 char * kwnames[] = {
34281 (char *) "self",(char *) "item", NULL
34282 };
34283
34284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34286 if (!SWIG_IsOK(res1)) {
34287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34288 }
34289 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34290 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34291 if (!SWIG_IsOK(res2)) {
34292 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34293 }
34294 if (!argp2) {
34295 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34296 }
34297 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34298 {
34299 PyThreadState* __tstate = wxPyBeginAllowThreads();
34300 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34301 wxPyEndAllowThreads(__tstate);
34302 if (PyErr_Occurred()) SWIG_fail;
34303 }
34304 {
34305 #if wxUSE_UNICODE
34306 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34307 #else
34308 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34309 #endif
34310 }
34311 return resultobj;
34312 fail:
34313 return NULL;
34314 }
34315
34316
34317 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34318 PyObject *resultobj = 0;
34319 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34320 wxTreeItemId *arg2 = 0 ;
34321 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34322 int result;
34323 void *argp1 = 0 ;
34324 int res1 = 0 ;
34325 void *argp2 = 0 ;
34326 int res2 = 0 ;
34327 int val3 ;
34328 int ecode3 = 0 ;
34329 PyObject * obj0 = 0 ;
34330 PyObject * obj1 = 0 ;
34331 PyObject * obj2 = 0 ;
34332 char * kwnames[] = {
34333 (char *) "self",(char *) "item",(char *) "which", NULL
34334 };
34335
34336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34338 if (!SWIG_IsOK(res1)) {
34339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34340 }
34341 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34342 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34343 if (!SWIG_IsOK(res2)) {
34344 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34345 }
34346 if (!argp2) {
34347 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34348 }
34349 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34350 if (obj2) {
34351 ecode3 = SWIG_AsVal_int(obj2, &val3);
34352 if (!SWIG_IsOK(ecode3)) {
34353 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34354 }
34355 arg3 = static_cast< wxTreeItemIcon >(val3);
34356 }
34357 {
34358 PyThreadState* __tstate = wxPyBeginAllowThreads();
34359 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34360 wxPyEndAllowThreads(__tstate);
34361 if (PyErr_Occurred()) SWIG_fail;
34362 }
34363 resultobj = SWIG_From_int(static_cast< int >(result));
34364 return resultobj;
34365 fail:
34366 return NULL;
34367 }
34368
34369
34370 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34371 PyObject *resultobj = 0;
34372 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34373 wxTreeItemId *arg2 = 0 ;
34374 wxPyTreeItemData *result = 0 ;
34375 void *argp1 = 0 ;
34376 int res1 = 0 ;
34377 void *argp2 = 0 ;
34378 int res2 = 0 ;
34379 PyObject * obj0 = 0 ;
34380 PyObject * obj1 = 0 ;
34381 char * kwnames[] = {
34382 (char *) "self",(char *) "item", NULL
34383 };
34384
34385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34387 if (!SWIG_IsOK(res1)) {
34388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34389 }
34390 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34391 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34392 if (!SWIG_IsOK(res2)) {
34393 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34394 }
34395 if (!argp2) {
34396 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34397 }
34398 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34399 {
34400 PyThreadState* __tstate = wxPyBeginAllowThreads();
34401 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34402 wxPyEndAllowThreads(__tstate);
34403 if (PyErr_Occurred()) SWIG_fail;
34404 }
34405 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34406 return resultobj;
34407 fail:
34408 return NULL;
34409 }
34410
34411
34412 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34413 PyObject *resultobj = 0;
34414 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34415 wxTreeItemId *arg2 = 0 ;
34416 PyObject *result = 0 ;
34417 void *argp1 = 0 ;
34418 int res1 = 0 ;
34419 void *argp2 = 0 ;
34420 int res2 = 0 ;
34421 PyObject * obj0 = 0 ;
34422 PyObject * obj1 = 0 ;
34423 char * kwnames[] = {
34424 (char *) "self",(char *) "item", NULL
34425 };
34426
34427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34429 if (!SWIG_IsOK(res1)) {
34430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34431 }
34432 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34433 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34434 if (!SWIG_IsOK(res2)) {
34435 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34436 }
34437 if (!argp2) {
34438 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34439 }
34440 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34441 {
34442 PyThreadState* __tstate = wxPyBeginAllowThreads();
34443 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34444 wxPyEndAllowThreads(__tstate);
34445 if (PyErr_Occurred()) SWIG_fail;
34446 }
34447 resultobj = result;
34448 return resultobj;
34449 fail:
34450 return NULL;
34451 }
34452
34453
34454 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34455 PyObject *resultobj = 0;
34456 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34457 wxTreeItemId *arg2 = 0 ;
34458 wxColour result;
34459 void *argp1 = 0 ;
34460 int res1 = 0 ;
34461 void *argp2 = 0 ;
34462 int res2 = 0 ;
34463 PyObject * obj0 = 0 ;
34464 PyObject * obj1 = 0 ;
34465 char * kwnames[] = {
34466 (char *) "self",(char *) "item", NULL
34467 };
34468
34469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34471 if (!SWIG_IsOK(res1)) {
34472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34473 }
34474 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34475 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34476 if (!SWIG_IsOK(res2)) {
34477 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34478 }
34479 if (!argp2) {
34480 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34481 }
34482 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34483 {
34484 PyThreadState* __tstate = wxPyBeginAllowThreads();
34485 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34486 wxPyEndAllowThreads(__tstate);
34487 if (PyErr_Occurred()) SWIG_fail;
34488 }
34489 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34490 return resultobj;
34491 fail:
34492 return NULL;
34493 }
34494
34495
34496 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34497 PyObject *resultobj = 0;
34498 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34499 wxTreeItemId *arg2 = 0 ;
34500 wxColour result;
34501 void *argp1 = 0 ;
34502 int res1 = 0 ;
34503 void *argp2 = 0 ;
34504 int res2 = 0 ;
34505 PyObject * obj0 = 0 ;
34506 PyObject * obj1 = 0 ;
34507 char * kwnames[] = {
34508 (char *) "self",(char *) "item", NULL
34509 };
34510
34511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34513 if (!SWIG_IsOK(res1)) {
34514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34515 }
34516 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34517 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34518 if (!SWIG_IsOK(res2)) {
34519 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34520 }
34521 if (!argp2) {
34522 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34523 }
34524 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34525 {
34526 PyThreadState* __tstate = wxPyBeginAllowThreads();
34527 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34528 wxPyEndAllowThreads(__tstate);
34529 if (PyErr_Occurred()) SWIG_fail;
34530 }
34531 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34532 return resultobj;
34533 fail:
34534 return NULL;
34535 }
34536
34537
34538 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34539 PyObject *resultobj = 0;
34540 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34541 wxTreeItemId *arg2 = 0 ;
34542 wxFont result;
34543 void *argp1 = 0 ;
34544 int res1 = 0 ;
34545 void *argp2 = 0 ;
34546 int res2 = 0 ;
34547 PyObject * obj0 = 0 ;
34548 PyObject * obj1 = 0 ;
34549 char * kwnames[] = {
34550 (char *) "self",(char *) "item", NULL
34551 };
34552
34553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34555 if (!SWIG_IsOK(res1)) {
34556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34557 }
34558 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34559 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34560 if (!SWIG_IsOK(res2)) {
34561 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34562 }
34563 if (!argp2) {
34564 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34565 }
34566 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34567 {
34568 PyThreadState* __tstate = wxPyBeginAllowThreads();
34569 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34570 wxPyEndAllowThreads(__tstate);
34571 if (PyErr_Occurred()) SWIG_fail;
34572 }
34573 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34574 return resultobj;
34575 fail:
34576 return NULL;
34577 }
34578
34579
34580 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34581 PyObject *resultobj = 0;
34582 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34583 wxTreeItemId *arg2 = 0 ;
34584 wxString *arg3 = 0 ;
34585 void *argp1 = 0 ;
34586 int res1 = 0 ;
34587 void *argp2 = 0 ;
34588 int res2 = 0 ;
34589 bool temp3 = false ;
34590 PyObject * obj0 = 0 ;
34591 PyObject * obj1 = 0 ;
34592 PyObject * obj2 = 0 ;
34593 char * kwnames[] = {
34594 (char *) "self",(char *) "item",(char *) "text", NULL
34595 };
34596
34597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34599 if (!SWIG_IsOK(res1)) {
34600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34601 }
34602 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34603 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34604 if (!SWIG_IsOK(res2)) {
34605 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34606 }
34607 if (!argp2) {
34608 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34609 }
34610 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34611 {
34612 arg3 = wxString_in_helper(obj2);
34613 if (arg3 == NULL) SWIG_fail;
34614 temp3 = true;
34615 }
34616 {
34617 PyThreadState* __tstate = wxPyBeginAllowThreads();
34618 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34619 wxPyEndAllowThreads(__tstate);
34620 if (PyErr_Occurred()) SWIG_fail;
34621 }
34622 resultobj = SWIG_Py_Void();
34623 {
34624 if (temp3)
34625 delete arg3;
34626 }
34627 return resultobj;
34628 fail:
34629 {
34630 if (temp3)
34631 delete arg3;
34632 }
34633 return NULL;
34634 }
34635
34636
34637 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34638 PyObject *resultobj = 0;
34639 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34640 wxTreeItemId *arg2 = 0 ;
34641 int arg3 ;
34642 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34643 void *argp1 = 0 ;
34644 int res1 = 0 ;
34645 void *argp2 = 0 ;
34646 int res2 = 0 ;
34647 int val3 ;
34648 int ecode3 = 0 ;
34649 int val4 ;
34650 int ecode4 = 0 ;
34651 PyObject * obj0 = 0 ;
34652 PyObject * obj1 = 0 ;
34653 PyObject * obj2 = 0 ;
34654 PyObject * obj3 = 0 ;
34655 char * kwnames[] = {
34656 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34657 };
34658
34659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34661 if (!SWIG_IsOK(res1)) {
34662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34663 }
34664 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34665 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34666 if (!SWIG_IsOK(res2)) {
34667 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34668 }
34669 if (!argp2) {
34670 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34671 }
34672 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34673 ecode3 = SWIG_AsVal_int(obj2, &val3);
34674 if (!SWIG_IsOK(ecode3)) {
34675 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34676 }
34677 arg3 = static_cast< int >(val3);
34678 if (obj3) {
34679 ecode4 = SWIG_AsVal_int(obj3, &val4);
34680 if (!SWIG_IsOK(ecode4)) {
34681 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34682 }
34683 arg4 = static_cast< wxTreeItemIcon >(val4);
34684 }
34685 {
34686 PyThreadState* __tstate = wxPyBeginAllowThreads();
34687 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34688 wxPyEndAllowThreads(__tstate);
34689 if (PyErr_Occurred()) SWIG_fail;
34690 }
34691 resultobj = SWIG_Py_Void();
34692 return resultobj;
34693 fail:
34694 return NULL;
34695 }
34696
34697
34698 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34699 PyObject *resultobj = 0;
34700 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34701 wxTreeItemId *arg2 = 0 ;
34702 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34703 void *argp1 = 0 ;
34704 int res1 = 0 ;
34705 void *argp2 = 0 ;
34706 int res2 = 0 ;
34707 int res3 = 0 ;
34708 PyObject * obj0 = 0 ;
34709 PyObject * obj1 = 0 ;
34710 PyObject * obj2 = 0 ;
34711 char * kwnames[] = {
34712 (char *) "self",(char *) "item",(char *) "data", NULL
34713 };
34714
34715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34717 if (!SWIG_IsOK(res1)) {
34718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34719 }
34720 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34721 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34722 if (!SWIG_IsOK(res2)) {
34723 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34724 }
34725 if (!argp2) {
34726 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34727 }
34728 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34729 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34730 if (!SWIG_IsOK(res3)) {
34731 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34732 }
34733 {
34734 PyThreadState* __tstate = wxPyBeginAllowThreads();
34735 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34736 wxPyEndAllowThreads(__tstate);
34737 if (PyErr_Occurred()) SWIG_fail;
34738 }
34739 resultobj = SWIG_Py_Void();
34740 return resultobj;
34741 fail:
34742 return NULL;
34743 }
34744
34745
34746 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34747 PyObject *resultobj = 0;
34748 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34749 wxTreeItemId *arg2 = 0 ;
34750 PyObject *arg3 = (PyObject *) 0 ;
34751 void *argp1 = 0 ;
34752 int res1 = 0 ;
34753 void *argp2 = 0 ;
34754 int res2 = 0 ;
34755 PyObject * obj0 = 0 ;
34756 PyObject * obj1 = 0 ;
34757 PyObject * obj2 = 0 ;
34758 char * kwnames[] = {
34759 (char *) "self",(char *) "item",(char *) "obj", NULL
34760 };
34761
34762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34764 if (!SWIG_IsOK(res1)) {
34765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34766 }
34767 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34768 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34769 if (!SWIG_IsOK(res2)) {
34770 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34771 }
34772 if (!argp2) {
34773 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34774 }
34775 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34776 arg3 = obj2;
34777 {
34778 PyThreadState* __tstate = wxPyBeginAllowThreads();
34779 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34780 wxPyEndAllowThreads(__tstate);
34781 if (PyErr_Occurred()) SWIG_fail;
34782 }
34783 resultobj = SWIG_Py_Void();
34784 return resultobj;
34785 fail:
34786 return NULL;
34787 }
34788
34789
34790 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34791 PyObject *resultobj = 0;
34792 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34793 wxTreeItemId *arg2 = 0 ;
34794 bool arg3 = (bool) true ;
34795 void *argp1 = 0 ;
34796 int res1 = 0 ;
34797 void *argp2 = 0 ;
34798 int res2 = 0 ;
34799 bool val3 ;
34800 int ecode3 = 0 ;
34801 PyObject * obj0 = 0 ;
34802 PyObject * obj1 = 0 ;
34803 PyObject * obj2 = 0 ;
34804 char * kwnames[] = {
34805 (char *) "self",(char *) "item",(char *) "has", NULL
34806 };
34807
34808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34810 if (!SWIG_IsOK(res1)) {
34811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34812 }
34813 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34814 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34815 if (!SWIG_IsOK(res2)) {
34816 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34817 }
34818 if (!argp2) {
34819 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34820 }
34821 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34822 if (obj2) {
34823 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34824 if (!SWIG_IsOK(ecode3)) {
34825 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34826 }
34827 arg3 = static_cast< bool >(val3);
34828 }
34829 {
34830 PyThreadState* __tstate = wxPyBeginAllowThreads();
34831 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34832 wxPyEndAllowThreads(__tstate);
34833 if (PyErr_Occurred()) SWIG_fail;
34834 }
34835 resultobj = SWIG_Py_Void();
34836 return resultobj;
34837 fail:
34838 return NULL;
34839 }
34840
34841
34842 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34843 PyObject *resultobj = 0;
34844 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34845 wxTreeItemId *arg2 = 0 ;
34846 bool arg3 = (bool) true ;
34847 void *argp1 = 0 ;
34848 int res1 = 0 ;
34849 void *argp2 = 0 ;
34850 int res2 = 0 ;
34851 bool val3 ;
34852 int ecode3 = 0 ;
34853 PyObject * obj0 = 0 ;
34854 PyObject * obj1 = 0 ;
34855 PyObject * obj2 = 0 ;
34856 char * kwnames[] = {
34857 (char *) "self",(char *) "item",(char *) "bold", NULL
34858 };
34859
34860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34862 if (!SWIG_IsOK(res1)) {
34863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34864 }
34865 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34866 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34867 if (!SWIG_IsOK(res2)) {
34868 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34869 }
34870 if (!argp2) {
34871 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34872 }
34873 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34874 if (obj2) {
34875 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34876 if (!SWIG_IsOK(ecode3)) {
34877 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
34878 }
34879 arg3 = static_cast< bool >(val3);
34880 }
34881 {
34882 PyThreadState* __tstate = wxPyBeginAllowThreads();
34883 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
34884 wxPyEndAllowThreads(__tstate);
34885 if (PyErr_Occurred()) SWIG_fail;
34886 }
34887 resultobj = SWIG_Py_Void();
34888 return resultobj;
34889 fail:
34890 return NULL;
34891 }
34892
34893
34894 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34895 PyObject *resultobj = 0;
34896 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34897 wxTreeItemId *arg2 = 0 ;
34898 bool arg3 = (bool) true ;
34899 void *argp1 = 0 ;
34900 int res1 = 0 ;
34901 void *argp2 = 0 ;
34902 int res2 = 0 ;
34903 bool val3 ;
34904 int ecode3 = 0 ;
34905 PyObject * obj0 = 0 ;
34906 PyObject * obj1 = 0 ;
34907 PyObject * obj2 = 0 ;
34908 char * kwnames[] = {
34909 (char *) "self",(char *) "item",(char *) "highlight", NULL
34910 };
34911
34912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34914 if (!SWIG_IsOK(res1)) {
34915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34916 }
34917 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34918 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34919 if (!SWIG_IsOK(res2)) {
34920 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34921 }
34922 if (!argp2) {
34923 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34924 }
34925 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34926 if (obj2) {
34927 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34928 if (!SWIG_IsOK(ecode3)) {
34929 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
34930 }
34931 arg3 = static_cast< bool >(val3);
34932 }
34933 {
34934 PyThreadState* __tstate = wxPyBeginAllowThreads();
34935 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
34936 wxPyEndAllowThreads(__tstate);
34937 if (PyErr_Occurred()) SWIG_fail;
34938 }
34939 resultobj = SWIG_Py_Void();
34940 return resultobj;
34941 fail:
34942 return NULL;
34943 }
34944
34945
34946 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34947 PyObject *resultobj = 0;
34948 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34949 wxTreeItemId *arg2 = 0 ;
34950 wxColour *arg3 = 0 ;
34951 void *argp1 = 0 ;
34952 int res1 = 0 ;
34953 void *argp2 = 0 ;
34954 int res2 = 0 ;
34955 wxColour temp3 ;
34956 PyObject * obj0 = 0 ;
34957 PyObject * obj1 = 0 ;
34958 PyObject * obj2 = 0 ;
34959 char * kwnames[] = {
34960 (char *) "self",(char *) "item",(char *) "col", NULL
34961 };
34962
34963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34965 if (!SWIG_IsOK(res1)) {
34966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34967 }
34968 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34969 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34970 if (!SWIG_IsOK(res2)) {
34971 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34972 }
34973 if (!argp2) {
34974 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34975 }
34976 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34977 {
34978 arg3 = &temp3;
34979 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34980 }
34981 {
34982 PyThreadState* __tstate = wxPyBeginAllowThreads();
34983 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34984 wxPyEndAllowThreads(__tstate);
34985 if (PyErr_Occurred()) SWIG_fail;
34986 }
34987 resultobj = SWIG_Py_Void();
34988 return resultobj;
34989 fail:
34990 return NULL;
34991 }
34992
34993
34994 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34995 PyObject *resultobj = 0;
34996 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34997 wxTreeItemId *arg2 = 0 ;
34998 wxColour *arg3 = 0 ;
34999 void *argp1 = 0 ;
35000 int res1 = 0 ;
35001 void *argp2 = 0 ;
35002 int res2 = 0 ;
35003 wxColour temp3 ;
35004 PyObject * obj0 = 0 ;
35005 PyObject * obj1 = 0 ;
35006 PyObject * obj2 = 0 ;
35007 char * kwnames[] = {
35008 (char *) "self",(char *) "item",(char *) "col", NULL
35009 };
35010
35011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35013 if (!SWIG_IsOK(res1)) {
35014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35015 }
35016 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35017 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35018 if (!SWIG_IsOK(res2)) {
35019 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35020 }
35021 if (!argp2) {
35022 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35023 }
35024 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35025 {
35026 arg3 = &temp3;
35027 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35028 }
35029 {
35030 PyThreadState* __tstate = wxPyBeginAllowThreads();
35031 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35032 wxPyEndAllowThreads(__tstate);
35033 if (PyErr_Occurred()) SWIG_fail;
35034 }
35035 resultobj = SWIG_Py_Void();
35036 return resultobj;
35037 fail:
35038 return NULL;
35039 }
35040
35041
35042 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35043 PyObject *resultobj = 0;
35044 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35045 wxTreeItemId *arg2 = 0 ;
35046 wxFont *arg3 = 0 ;
35047 void *argp1 = 0 ;
35048 int res1 = 0 ;
35049 void *argp2 = 0 ;
35050 int res2 = 0 ;
35051 void *argp3 = 0 ;
35052 int res3 = 0 ;
35053 PyObject * obj0 = 0 ;
35054 PyObject * obj1 = 0 ;
35055 PyObject * obj2 = 0 ;
35056 char * kwnames[] = {
35057 (char *) "self",(char *) "item",(char *) "font", NULL
35058 };
35059
35060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35062 if (!SWIG_IsOK(res1)) {
35063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35064 }
35065 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35066 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35067 if (!SWIG_IsOK(res2)) {
35068 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35069 }
35070 if (!argp2) {
35071 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35072 }
35073 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35074 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
35075 if (!SWIG_IsOK(res3)) {
35076 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35077 }
35078 if (!argp3) {
35079 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35080 }
35081 arg3 = reinterpret_cast< wxFont * >(argp3);
35082 {
35083 PyThreadState* __tstate = wxPyBeginAllowThreads();
35084 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
35085 wxPyEndAllowThreads(__tstate);
35086 if (PyErr_Occurred()) SWIG_fail;
35087 }
35088 resultobj = SWIG_Py_Void();
35089 return resultobj;
35090 fail:
35091 return NULL;
35092 }
35093
35094
35095 SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35096 PyObject *resultobj = 0;
35097 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35098 wxTreeItemId *arg2 = 0 ;
35099 bool result;
35100 void *argp1 = 0 ;
35101 int res1 = 0 ;
35102 void *argp2 = 0 ;
35103 int res2 = 0 ;
35104 PyObject * obj0 = 0 ;
35105 PyObject * obj1 = 0 ;
35106 char * kwnames[] = {
35107 (char *) "self",(char *) "item", NULL
35108 };
35109
35110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35112 if (!SWIG_IsOK(res1)) {
35113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35114 }
35115 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35116 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35117 if (!SWIG_IsOK(res2)) {
35118 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35119 }
35120 if (!argp2) {
35121 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35122 }
35123 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35124 {
35125 PyThreadState* __tstate = wxPyBeginAllowThreads();
35126 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
35127 wxPyEndAllowThreads(__tstate);
35128 if (PyErr_Occurred()) SWIG_fail;
35129 }
35130 {
35131 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35132 }
35133 return resultobj;
35134 fail:
35135 return NULL;
35136 }
35137
35138
35139 SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35140 PyObject *resultobj = 0;
35141 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35142 wxTreeItemId *arg2 = 0 ;
35143 bool result;
35144 void *argp1 = 0 ;
35145 int res1 = 0 ;
35146 void *argp2 = 0 ;
35147 int res2 = 0 ;
35148 PyObject * obj0 = 0 ;
35149 PyObject * obj1 = 0 ;
35150 char * kwnames[] = {
35151 (char *) "self",(char *) "item", NULL
35152 };
35153
35154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35156 if (!SWIG_IsOK(res1)) {
35157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35158 }
35159 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35160 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35161 if (!SWIG_IsOK(res2)) {
35162 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35163 }
35164 if (!argp2) {
35165 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35166 }
35167 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35168 {
35169 PyThreadState* __tstate = wxPyBeginAllowThreads();
35170 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35171 wxPyEndAllowThreads(__tstate);
35172 if (PyErr_Occurred()) SWIG_fail;
35173 }
35174 {
35175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35176 }
35177 return resultobj;
35178 fail:
35179 return NULL;
35180 }
35181
35182
35183 SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35184 PyObject *resultobj = 0;
35185 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35186 wxTreeItemId *arg2 = 0 ;
35187 bool result;
35188 void *argp1 = 0 ;
35189 int res1 = 0 ;
35190 void *argp2 = 0 ;
35191 int res2 = 0 ;
35192 PyObject * obj0 = 0 ;
35193 PyObject * obj1 = 0 ;
35194 char * kwnames[] = {
35195 (char *) "self",(char *) "item", NULL
35196 };
35197
35198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35200 if (!SWIG_IsOK(res1)) {
35201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35202 }
35203 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35204 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35205 if (!SWIG_IsOK(res2)) {
35206 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35207 }
35208 if (!argp2) {
35209 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35210 }
35211 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35212 {
35213 PyThreadState* __tstate = wxPyBeginAllowThreads();
35214 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35215 wxPyEndAllowThreads(__tstate);
35216 if (PyErr_Occurred()) SWIG_fail;
35217 }
35218 {
35219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35220 }
35221 return resultobj;
35222 fail:
35223 return NULL;
35224 }
35225
35226
35227 SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35228 PyObject *resultobj = 0;
35229 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35230 wxTreeItemId *arg2 = 0 ;
35231 bool result;
35232 void *argp1 = 0 ;
35233 int res1 = 0 ;
35234 void *argp2 = 0 ;
35235 int res2 = 0 ;
35236 PyObject * obj0 = 0 ;
35237 PyObject * obj1 = 0 ;
35238 char * kwnames[] = {
35239 (char *) "self",(char *) "item", NULL
35240 };
35241
35242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35244 if (!SWIG_IsOK(res1)) {
35245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35246 }
35247 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35248 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35249 if (!SWIG_IsOK(res2)) {
35250 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35251 }
35252 if (!argp2) {
35253 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35254 }
35255 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35256 {
35257 PyThreadState* __tstate = wxPyBeginAllowThreads();
35258 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35259 wxPyEndAllowThreads(__tstate);
35260 if (PyErr_Occurred()) SWIG_fail;
35261 }
35262 {
35263 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35264 }
35265 return resultobj;
35266 fail:
35267 return NULL;
35268 }
35269
35270
35271 SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35272 PyObject *resultobj = 0;
35273 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35274 wxTreeItemId *arg2 = 0 ;
35275 bool result;
35276 void *argp1 = 0 ;
35277 int res1 = 0 ;
35278 void *argp2 = 0 ;
35279 int res2 = 0 ;
35280 PyObject * obj0 = 0 ;
35281 PyObject * obj1 = 0 ;
35282 char * kwnames[] = {
35283 (char *) "self",(char *) "item", NULL
35284 };
35285
35286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35288 if (!SWIG_IsOK(res1)) {
35289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35290 }
35291 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35292 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35293 if (!SWIG_IsOK(res2)) {
35294 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35295 }
35296 if (!argp2) {
35297 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35298 }
35299 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35300 {
35301 PyThreadState* __tstate = wxPyBeginAllowThreads();
35302 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35303 wxPyEndAllowThreads(__tstate);
35304 if (PyErr_Occurred()) SWIG_fail;
35305 }
35306 {
35307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35308 }
35309 return resultobj;
35310 fail:
35311 return NULL;
35312 }
35313
35314
35315 SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35316 PyObject *resultobj = 0;
35317 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35318 wxTreeItemId *arg2 = 0 ;
35319 bool arg3 = (bool) true ;
35320 size_t result;
35321 void *argp1 = 0 ;
35322 int res1 = 0 ;
35323 void *argp2 = 0 ;
35324 int res2 = 0 ;
35325 bool val3 ;
35326 int ecode3 = 0 ;
35327 PyObject * obj0 = 0 ;
35328 PyObject * obj1 = 0 ;
35329 PyObject * obj2 = 0 ;
35330 char * kwnames[] = {
35331 (char *) "self",(char *) "item",(char *) "recursively", NULL
35332 };
35333
35334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35336 if (!SWIG_IsOK(res1)) {
35337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35338 }
35339 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35340 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35341 if (!SWIG_IsOK(res2)) {
35342 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35343 }
35344 if (!argp2) {
35345 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35346 }
35347 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35348 if (obj2) {
35349 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35350 if (!SWIG_IsOK(ecode3)) {
35351 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35352 }
35353 arg3 = static_cast< bool >(val3);
35354 }
35355 {
35356 PyThreadState* __tstate = wxPyBeginAllowThreads();
35357 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35358 wxPyEndAllowThreads(__tstate);
35359 if (PyErr_Occurred()) SWIG_fail;
35360 }
35361 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35362 return resultobj;
35363 fail:
35364 return NULL;
35365 }
35366
35367
35368 SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35369 PyObject *resultobj = 0;
35370 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35371 wxTreeItemId result;
35372 void *argp1 = 0 ;
35373 int res1 = 0 ;
35374 PyObject *swig_obj[1] ;
35375
35376 if (!args) SWIG_fail;
35377 swig_obj[0] = args;
35378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35379 if (!SWIG_IsOK(res1)) {
35380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35381 }
35382 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35383 {
35384 PyThreadState* __tstate = wxPyBeginAllowThreads();
35385 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35386 wxPyEndAllowThreads(__tstate);
35387 if (PyErr_Occurred()) SWIG_fail;
35388 }
35389 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35390 return resultobj;
35391 fail:
35392 return NULL;
35393 }
35394
35395
35396 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35397 PyObject *resultobj = 0;
35398 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35399 wxTreeItemId result;
35400 void *argp1 = 0 ;
35401 int res1 = 0 ;
35402 PyObject *swig_obj[1] ;
35403
35404 if (!args) SWIG_fail;
35405 swig_obj[0] = args;
35406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35407 if (!SWIG_IsOK(res1)) {
35408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35409 }
35410 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35411 {
35412 PyThreadState* __tstate = wxPyBeginAllowThreads();
35413 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35414 wxPyEndAllowThreads(__tstate);
35415 if (PyErr_Occurred()) SWIG_fail;
35416 }
35417 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35418 return resultobj;
35419 fail:
35420 return NULL;
35421 }
35422
35423
35424 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35425 PyObject *resultobj = 0;
35426 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35427 PyObject *result = 0 ;
35428 void *argp1 = 0 ;
35429 int res1 = 0 ;
35430 PyObject *swig_obj[1] ;
35431
35432 if (!args) SWIG_fail;
35433 swig_obj[0] = args;
35434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35435 if (!SWIG_IsOK(res1)) {
35436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35437 }
35438 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35439 {
35440 PyThreadState* __tstate = wxPyBeginAllowThreads();
35441 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35442 wxPyEndAllowThreads(__tstate);
35443 if (PyErr_Occurred()) SWIG_fail;
35444 }
35445 resultobj = result;
35446 return resultobj;
35447 fail:
35448 return NULL;
35449 }
35450
35451
35452 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35453 PyObject *resultobj = 0;
35454 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35455 wxTreeItemId *arg2 = 0 ;
35456 wxTreeItemId result;
35457 void *argp1 = 0 ;
35458 int res1 = 0 ;
35459 void *argp2 = 0 ;
35460 int res2 = 0 ;
35461 PyObject * obj0 = 0 ;
35462 PyObject * obj1 = 0 ;
35463 char * kwnames[] = {
35464 (char *) "self",(char *) "item", NULL
35465 };
35466
35467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35469 if (!SWIG_IsOK(res1)) {
35470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35471 }
35472 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35473 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35474 if (!SWIG_IsOK(res2)) {
35475 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35476 }
35477 if (!argp2) {
35478 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35479 }
35480 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35481 {
35482 PyThreadState* __tstate = wxPyBeginAllowThreads();
35483 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35484 wxPyEndAllowThreads(__tstate);
35485 if (PyErr_Occurred()) SWIG_fail;
35486 }
35487 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35488 return resultobj;
35489 fail:
35490 return NULL;
35491 }
35492
35493
35494 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35495 PyObject *resultobj = 0;
35496 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35497 wxTreeItemId *arg2 = 0 ;
35498 PyObject *result = 0 ;
35499 void *argp1 = 0 ;
35500 int res1 = 0 ;
35501 void *argp2 = 0 ;
35502 int res2 = 0 ;
35503 PyObject * obj0 = 0 ;
35504 PyObject * obj1 = 0 ;
35505 char * kwnames[] = {
35506 (char *) "self",(char *) "item", NULL
35507 };
35508
35509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35511 if (!SWIG_IsOK(res1)) {
35512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35513 }
35514 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35515 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35516 if (!SWIG_IsOK(res2)) {
35517 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35518 }
35519 if (!argp2) {
35520 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35521 }
35522 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35523 {
35524 PyThreadState* __tstate = wxPyBeginAllowThreads();
35525 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35526 wxPyEndAllowThreads(__tstate);
35527 if (PyErr_Occurred()) SWIG_fail;
35528 }
35529 resultobj = result;
35530 return resultobj;
35531 fail:
35532 return NULL;
35533 }
35534
35535
35536 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35537 PyObject *resultobj = 0;
35538 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35539 wxTreeItemId *arg2 = 0 ;
35540 void *arg3 = (void *) 0 ;
35541 PyObject *result = 0 ;
35542 void *argp1 = 0 ;
35543 int res1 = 0 ;
35544 void *argp2 = 0 ;
35545 int res2 = 0 ;
35546 int res3 ;
35547 PyObject * obj0 = 0 ;
35548 PyObject * obj1 = 0 ;
35549 PyObject * obj2 = 0 ;
35550 char * kwnames[] = {
35551 (char *) "self",(char *) "item",(char *) "cookie", NULL
35552 };
35553
35554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35556 if (!SWIG_IsOK(res1)) {
35557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35558 }
35559 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35560 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35561 if (!SWIG_IsOK(res2)) {
35562 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35563 }
35564 if (!argp2) {
35565 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35566 }
35567 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35568 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35569 if (!SWIG_IsOK(res3)) {
35570 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35571 }
35572 {
35573 PyThreadState* __tstate = wxPyBeginAllowThreads();
35574 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35575 wxPyEndAllowThreads(__tstate);
35576 if (PyErr_Occurred()) SWIG_fail;
35577 }
35578 resultobj = result;
35579 return resultobj;
35580 fail:
35581 return NULL;
35582 }
35583
35584
35585 SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35586 PyObject *resultobj = 0;
35587 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35588 wxTreeItemId *arg2 = 0 ;
35589 wxTreeItemId result;
35590 void *argp1 = 0 ;
35591 int res1 = 0 ;
35592 void *argp2 = 0 ;
35593 int res2 = 0 ;
35594 PyObject * obj0 = 0 ;
35595 PyObject * obj1 = 0 ;
35596 char * kwnames[] = {
35597 (char *) "self",(char *) "item", NULL
35598 };
35599
35600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35602 if (!SWIG_IsOK(res1)) {
35603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35604 }
35605 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35606 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35607 if (!SWIG_IsOK(res2)) {
35608 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35609 }
35610 if (!argp2) {
35611 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35612 }
35613 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35614 {
35615 PyThreadState* __tstate = wxPyBeginAllowThreads();
35616 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35617 wxPyEndAllowThreads(__tstate);
35618 if (PyErr_Occurred()) SWIG_fail;
35619 }
35620 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35621 return resultobj;
35622 fail:
35623 return NULL;
35624 }
35625
35626
35627 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35628 PyObject *resultobj = 0;
35629 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35630 wxTreeItemId *arg2 = 0 ;
35631 wxTreeItemId result;
35632 void *argp1 = 0 ;
35633 int res1 = 0 ;
35634 void *argp2 = 0 ;
35635 int res2 = 0 ;
35636 PyObject * obj0 = 0 ;
35637 PyObject * obj1 = 0 ;
35638 char * kwnames[] = {
35639 (char *) "self",(char *) "item", NULL
35640 };
35641
35642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35644 if (!SWIG_IsOK(res1)) {
35645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35646 }
35647 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35648 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35649 if (!SWIG_IsOK(res2)) {
35650 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35651 }
35652 if (!argp2) {
35653 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35654 }
35655 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35656 {
35657 PyThreadState* __tstate = wxPyBeginAllowThreads();
35658 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35659 wxPyEndAllowThreads(__tstate);
35660 if (PyErr_Occurred()) SWIG_fail;
35661 }
35662 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35663 return resultobj;
35664 fail:
35665 return NULL;
35666 }
35667
35668
35669 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35670 PyObject *resultobj = 0;
35671 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35672 wxTreeItemId *arg2 = 0 ;
35673 wxTreeItemId result;
35674 void *argp1 = 0 ;
35675 int res1 = 0 ;
35676 void *argp2 = 0 ;
35677 int res2 = 0 ;
35678 PyObject * obj0 = 0 ;
35679 PyObject * obj1 = 0 ;
35680 char * kwnames[] = {
35681 (char *) "self",(char *) "item", NULL
35682 };
35683
35684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35686 if (!SWIG_IsOK(res1)) {
35687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35688 }
35689 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35690 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35691 if (!SWIG_IsOK(res2)) {
35692 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35693 }
35694 if (!argp2) {
35695 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35696 }
35697 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35698 {
35699 PyThreadState* __tstate = wxPyBeginAllowThreads();
35700 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35701 wxPyEndAllowThreads(__tstate);
35702 if (PyErr_Occurred()) SWIG_fail;
35703 }
35704 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35705 return resultobj;
35706 fail:
35707 return NULL;
35708 }
35709
35710
35711 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35712 PyObject *resultobj = 0;
35713 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35714 wxTreeItemId result;
35715 void *argp1 = 0 ;
35716 int res1 = 0 ;
35717 PyObject *swig_obj[1] ;
35718
35719 if (!args) SWIG_fail;
35720 swig_obj[0] = args;
35721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35722 if (!SWIG_IsOK(res1)) {
35723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35724 }
35725 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35726 {
35727 PyThreadState* __tstate = wxPyBeginAllowThreads();
35728 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35729 wxPyEndAllowThreads(__tstate);
35730 if (PyErr_Occurred()) SWIG_fail;
35731 }
35732 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35733 return resultobj;
35734 fail:
35735 return NULL;
35736 }
35737
35738
35739 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35740 PyObject *resultobj = 0;
35741 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35742 wxTreeItemId *arg2 = 0 ;
35743 wxTreeItemId result;
35744 void *argp1 = 0 ;
35745 int res1 = 0 ;
35746 void *argp2 = 0 ;
35747 int res2 = 0 ;
35748 PyObject * obj0 = 0 ;
35749 PyObject * obj1 = 0 ;
35750 char * kwnames[] = {
35751 (char *) "self",(char *) "item", NULL
35752 };
35753
35754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35756 if (!SWIG_IsOK(res1)) {
35757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35758 }
35759 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35760 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35761 if (!SWIG_IsOK(res2)) {
35762 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35763 }
35764 if (!argp2) {
35765 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35766 }
35767 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35768 {
35769 PyThreadState* __tstate = wxPyBeginAllowThreads();
35770 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35771 wxPyEndAllowThreads(__tstate);
35772 if (PyErr_Occurred()) SWIG_fail;
35773 }
35774 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35775 return resultobj;
35776 fail:
35777 return NULL;
35778 }
35779
35780
35781 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35782 PyObject *resultobj = 0;
35783 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35784 wxTreeItemId *arg2 = 0 ;
35785 wxTreeItemId result;
35786 void *argp1 = 0 ;
35787 int res1 = 0 ;
35788 void *argp2 = 0 ;
35789 int res2 = 0 ;
35790 PyObject * obj0 = 0 ;
35791 PyObject * obj1 = 0 ;
35792 char * kwnames[] = {
35793 (char *) "self",(char *) "item", NULL
35794 };
35795
35796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35798 if (!SWIG_IsOK(res1)) {
35799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35800 }
35801 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35802 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35803 if (!SWIG_IsOK(res2)) {
35804 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35805 }
35806 if (!argp2) {
35807 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35808 }
35809 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35810 {
35811 PyThreadState* __tstate = wxPyBeginAllowThreads();
35812 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35813 wxPyEndAllowThreads(__tstate);
35814 if (PyErr_Occurred()) SWIG_fail;
35815 }
35816 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35817 return resultobj;
35818 fail:
35819 return NULL;
35820 }
35821
35822
35823 SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35824 PyObject *resultobj = 0;
35825 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35826 wxString *arg2 = 0 ;
35827 int arg3 = (int) -1 ;
35828 int arg4 = (int) -1 ;
35829 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35830 wxTreeItemId result;
35831 void *argp1 = 0 ;
35832 int res1 = 0 ;
35833 bool temp2 = false ;
35834 int val3 ;
35835 int ecode3 = 0 ;
35836 int val4 ;
35837 int ecode4 = 0 ;
35838 int res5 = 0 ;
35839 PyObject * obj0 = 0 ;
35840 PyObject * obj1 = 0 ;
35841 PyObject * obj2 = 0 ;
35842 PyObject * obj3 = 0 ;
35843 PyObject * obj4 = 0 ;
35844 char * kwnames[] = {
35845 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35846 };
35847
35848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35850 if (!SWIG_IsOK(res1)) {
35851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35852 }
35853 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35854 {
35855 arg2 = wxString_in_helper(obj1);
35856 if (arg2 == NULL) SWIG_fail;
35857 temp2 = true;
35858 }
35859 if (obj2) {
35860 ecode3 = SWIG_AsVal_int(obj2, &val3);
35861 if (!SWIG_IsOK(ecode3)) {
35862 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35863 }
35864 arg3 = static_cast< int >(val3);
35865 }
35866 if (obj3) {
35867 ecode4 = SWIG_AsVal_int(obj3, &val4);
35868 if (!SWIG_IsOK(ecode4)) {
35869 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
35870 }
35871 arg4 = static_cast< int >(val4);
35872 }
35873 if (obj4) {
35874 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35875 if (!SWIG_IsOK(res5)) {
35876 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
35877 }
35878 }
35879 {
35880 PyThreadState* __tstate = wxPyBeginAllowThreads();
35881 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
35882 wxPyEndAllowThreads(__tstate);
35883 if (PyErr_Occurred()) SWIG_fail;
35884 }
35885 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35886 {
35887 if (temp2)
35888 delete arg2;
35889 }
35890 return resultobj;
35891 fail:
35892 {
35893 if (temp2)
35894 delete arg2;
35895 }
35896 return NULL;
35897 }
35898
35899
35900 SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35901 PyObject *resultobj = 0;
35902 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35903 wxTreeItemId *arg2 = 0 ;
35904 wxString *arg3 = 0 ;
35905 int arg4 = (int) -1 ;
35906 int arg5 = (int) -1 ;
35907 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35908 wxTreeItemId result;
35909 void *argp1 = 0 ;
35910 int res1 = 0 ;
35911 void *argp2 = 0 ;
35912 int res2 = 0 ;
35913 bool temp3 = false ;
35914 int val4 ;
35915 int ecode4 = 0 ;
35916 int val5 ;
35917 int ecode5 = 0 ;
35918 int res6 = 0 ;
35919 PyObject * obj0 = 0 ;
35920 PyObject * obj1 = 0 ;
35921 PyObject * obj2 = 0 ;
35922 PyObject * obj3 = 0 ;
35923 PyObject * obj4 = 0 ;
35924 PyObject * obj5 = 0 ;
35925 char * kwnames[] = {
35926 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35927 };
35928
35929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35931 if (!SWIG_IsOK(res1)) {
35932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35933 }
35934 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35935 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35936 if (!SWIG_IsOK(res2)) {
35937 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35938 }
35939 if (!argp2) {
35940 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35941 }
35942 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35943 {
35944 arg3 = wxString_in_helper(obj2);
35945 if (arg3 == NULL) SWIG_fail;
35946 temp3 = true;
35947 }
35948 if (obj3) {
35949 ecode4 = SWIG_AsVal_int(obj3, &val4);
35950 if (!SWIG_IsOK(ecode4)) {
35951 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
35952 }
35953 arg4 = static_cast< int >(val4);
35954 }
35955 if (obj4) {
35956 ecode5 = SWIG_AsVal_int(obj4, &val5);
35957 if (!SWIG_IsOK(ecode5)) {
35958 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
35959 }
35960 arg5 = static_cast< int >(val5);
35961 }
35962 if (obj5) {
35963 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35964 if (!SWIG_IsOK(res6)) {
35965 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
35966 }
35967 }
35968 {
35969 PyThreadState* __tstate = wxPyBeginAllowThreads();
35970 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35971 wxPyEndAllowThreads(__tstate);
35972 if (PyErr_Occurred()) SWIG_fail;
35973 }
35974 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35975 {
35976 if (temp3)
35977 delete arg3;
35978 }
35979 return resultobj;
35980 fail:
35981 {
35982 if (temp3)
35983 delete arg3;
35984 }
35985 return NULL;
35986 }
35987
35988
35989 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35990 PyObject *resultobj = 0;
35991 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35992 wxTreeItemId *arg2 = 0 ;
35993 wxTreeItemId *arg3 = 0 ;
35994 wxString *arg4 = 0 ;
35995 int arg5 = (int) -1 ;
35996 int arg6 = (int) -1 ;
35997 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35998 wxTreeItemId result;
35999 void *argp1 = 0 ;
36000 int res1 = 0 ;
36001 void *argp2 = 0 ;
36002 int res2 = 0 ;
36003 void *argp3 = 0 ;
36004 int res3 = 0 ;
36005 bool temp4 = false ;
36006 int val5 ;
36007 int ecode5 = 0 ;
36008 int val6 ;
36009 int ecode6 = 0 ;
36010 int res7 = 0 ;
36011 PyObject * obj0 = 0 ;
36012 PyObject * obj1 = 0 ;
36013 PyObject * obj2 = 0 ;
36014 PyObject * obj3 = 0 ;
36015 PyObject * obj4 = 0 ;
36016 PyObject * obj5 = 0 ;
36017 PyObject * obj6 = 0 ;
36018 char * kwnames[] = {
36019 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36020 };
36021
36022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36024 if (!SWIG_IsOK(res1)) {
36025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36026 }
36027 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36028 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36029 if (!SWIG_IsOK(res2)) {
36030 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36031 }
36032 if (!argp2) {
36033 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36034 }
36035 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36036 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36037 if (!SWIG_IsOK(res3)) {
36038 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36039 }
36040 if (!argp3) {
36041 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36042 }
36043 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
36044 {
36045 arg4 = wxString_in_helper(obj3);
36046 if (arg4 == NULL) SWIG_fail;
36047 temp4 = true;
36048 }
36049 if (obj4) {
36050 ecode5 = SWIG_AsVal_int(obj4, &val5);
36051 if (!SWIG_IsOK(ecode5)) {
36052 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
36053 }
36054 arg5 = static_cast< int >(val5);
36055 }
36056 if (obj5) {
36057 ecode6 = SWIG_AsVal_int(obj5, &val6);
36058 if (!SWIG_IsOK(ecode6)) {
36059 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
36060 }
36061 arg6 = static_cast< int >(val6);
36062 }
36063 if (obj6) {
36064 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36065 if (!SWIG_IsOK(res7)) {
36066 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36067 }
36068 }
36069 {
36070 PyThreadState* __tstate = wxPyBeginAllowThreads();
36071 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36072 wxPyEndAllowThreads(__tstate);
36073 if (PyErr_Occurred()) SWIG_fail;
36074 }
36075 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36076 {
36077 if (temp4)
36078 delete arg4;
36079 }
36080 return resultobj;
36081 fail:
36082 {
36083 if (temp4)
36084 delete arg4;
36085 }
36086 return NULL;
36087 }
36088
36089
36090 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36091 PyObject *resultobj = 0;
36092 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36093 wxTreeItemId *arg2 = 0 ;
36094 size_t arg3 ;
36095 wxString *arg4 = 0 ;
36096 int arg5 = (int) -1 ;
36097 int arg6 = (int) -1 ;
36098 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36099 wxTreeItemId result;
36100 void *argp1 = 0 ;
36101 int res1 = 0 ;
36102 void *argp2 = 0 ;
36103 int res2 = 0 ;
36104 size_t val3 ;
36105 int ecode3 = 0 ;
36106 bool temp4 = false ;
36107 int val5 ;
36108 int ecode5 = 0 ;
36109 int val6 ;
36110 int ecode6 = 0 ;
36111 int res7 = 0 ;
36112 PyObject * obj0 = 0 ;
36113 PyObject * obj1 = 0 ;
36114 PyObject * obj2 = 0 ;
36115 PyObject * obj3 = 0 ;
36116 PyObject * obj4 = 0 ;
36117 PyObject * obj5 = 0 ;
36118 PyObject * obj6 = 0 ;
36119 char * kwnames[] = {
36120 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36121 };
36122
36123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36125 if (!SWIG_IsOK(res1)) {
36126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36127 }
36128 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36129 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36130 if (!SWIG_IsOK(res2)) {
36131 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36132 }
36133 if (!argp2) {
36134 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36135 }
36136 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36137 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36138 if (!SWIG_IsOK(ecode3)) {
36139 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
36140 }
36141 arg3 = static_cast< size_t >(val3);
36142 {
36143 arg4 = wxString_in_helper(obj3);
36144 if (arg4 == NULL) SWIG_fail;
36145 temp4 = true;
36146 }
36147 if (obj4) {
36148 ecode5 = SWIG_AsVal_int(obj4, &val5);
36149 if (!SWIG_IsOK(ecode5)) {
36150 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36151 }
36152 arg5 = static_cast< int >(val5);
36153 }
36154 if (obj5) {
36155 ecode6 = SWIG_AsVal_int(obj5, &val6);
36156 if (!SWIG_IsOK(ecode6)) {
36157 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36158 }
36159 arg6 = static_cast< int >(val6);
36160 }
36161 if (obj6) {
36162 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36163 if (!SWIG_IsOK(res7)) {
36164 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
36165 }
36166 }
36167 {
36168 PyThreadState* __tstate = wxPyBeginAllowThreads();
36169 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36170 wxPyEndAllowThreads(__tstate);
36171 if (PyErr_Occurred()) SWIG_fail;
36172 }
36173 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36174 {
36175 if (temp4)
36176 delete arg4;
36177 }
36178 return resultobj;
36179 fail:
36180 {
36181 if (temp4)
36182 delete arg4;
36183 }
36184 return NULL;
36185 }
36186
36187
36188 SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36189 PyObject *resultobj = 0;
36190 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36191 wxTreeItemId *arg2 = 0 ;
36192 wxString *arg3 = 0 ;
36193 int arg4 = (int) -1 ;
36194 int arg5 = (int) -1 ;
36195 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36196 wxTreeItemId result;
36197 void *argp1 = 0 ;
36198 int res1 = 0 ;
36199 void *argp2 = 0 ;
36200 int res2 = 0 ;
36201 bool temp3 = false ;
36202 int val4 ;
36203 int ecode4 = 0 ;
36204 int val5 ;
36205 int ecode5 = 0 ;
36206 int res6 = 0 ;
36207 PyObject * obj0 = 0 ;
36208 PyObject * obj1 = 0 ;
36209 PyObject * obj2 = 0 ;
36210 PyObject * obj3 = 0 ;
36211 PyObject * obj4 = 0 ;
36212 PyObject * obj5 = 0 ;
36213 char * kwnames[] = {
36214 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36215 };
36216
36217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36219 if (!SWIG_IsOK(res1)) {
36220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36221 }
36222 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36223 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36224 if (!SWIG_IsOK(res2)) {
36225 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36226 }
36227 if (!argp2) {
36228 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36229 }
36230 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36231 {
36232 arg3 = wxString_in_helper(obj2);
36233 if (arg3 == NULL) SWIG_fail;
36234 temp3 = true;
36235 }
36236 if (obj3) {
36237 ecode4 = SWIG_AsVal_int(obj3, &val4);
36238 if (!SWIG_IsOK(ecode4)) {
36239 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36240 }
36241 arg4 = static_cast< int >(val4);
36242 }
36243 if (obj4) {
36244 ecode5 = SWIG_AsVal_int(obj4, &val5);
36245 if (!SWIG_IsOK(ecode5)) {
36246 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36247 }
36248 arg5 = static_cast< int >(val5);
36249 }
36250 if (obj5) {
36251 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36252 if (!SWIG_IsOK(res6)) {
36253 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
36254 }
36255 }
36256 {
36257 PyThreadState* __tstate = wxPyBeginAllowThreads();
36258 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36259 wxPyEndAllowThreads(__tstate);
36260 if (PyErr_Occurred()) SWIG_fail;
36261 }
36262 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36263 {
36264 if (temp3)
36265 delete arg3;
36266 }
36267 return resultobj;
36268 fail:
36269 {
36270 if (temp3)
36271 delete arg3;
36272 }
36273 return NULL;
36274 }
36275
36276
36277 SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36278 PyObject *resultobj = 0;
36279 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36280 wxTreeItemId *arg2 = 0 ;
36281 void *argp1 = 0 ;
36282 int res1 = 0 ;
36283 void *argp2 = 0 ;
36284 int res2 = 0 ;
36285 PyObject * obj0 = 0 ;
36286 PyObject * obj1 = 0 ;
36287 char * kwnames[] = {
36288 (char *) "self",(char *) "item", NULL
36289 };
36290
36291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36293 if (!SWIG_IsOK(res1)) {
36294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36295 }
36296 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36297 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36298 if (!SWIG_IsOK(res2)) {
36299 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36300 }
36301 if (!argp2) {
36302 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36303 }
36304 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36305 {
36306 PyThreadState* __tstate = wxPyBeginAllowThreads();
36307 (arg1)->Delete((wxTreeItemId const &)*arg2);
36308 wxPyEndAllowThreads(__tstate);
36309 if (PyErr_Occurred()) SWIG_fail;
36310 }
36311 resultobj = SWIG_Py_Void();
36312 return resultobj;
36313 fail:
36314 return NULL;
36315 }
36316
36317
36318 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36319 PyObject *resultobj = 0;
36320 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36321 wxTreeItemId *arg2 = 0 ;
36322 void *argp1 = 0 ;
36323 int res1 = 0 ;
36324 void *argp2 = 0 ;
36325 int res2 = 0 ;
36326 PyObject * obj0 = 0 ;
36327 PyObject * obj1 = 0 ;
36328 char * kwnames[] = {
36329 (char *) "self",(char *) "item", NULL
36330 };
36331
36332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36334 if (!SWIG_IsOK(res1)) {
36335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36336 }
36337 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36338 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36339 if (!SWIG_IsOK(res2)) {
36340 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36341 }
36342 if (!argp2) {
36343 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36344 }
36345 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36346 {
36347 PyThreadState* __tstate = wxPyBeginAllowThreads();
36348 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36349 wxPyEndAllowThreads(__tstate);
36350 if (PyErr_Occurred()) SWIG_fail;
36351 }
36352 resultobj = SWIG_Py_Void();
36353 return resultobj;
36354 fail:
36355 return NULL;
36356 }
36357
36358
36359 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36360 PyObject *resultobj = 0;
36361 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36362 void *argp1 = 0 ;
36363 int res1 = 0 ;
36364 PyObject *swig_obj[1] ;
36365
36366 if (!args) SWIG_fail;
36367 swig_obj[0] = args;
36368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36369 if (!SWIG_IsOK(res1)) {
36370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36371 }
36372 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36373 {
36374 PyThreadState* __tstate = wxPyBeginAllowThreads();
36375 (arg1)->DeleteAllItems();
36376 wxPyEndAllowThreads(__tstate);
36377 if (PyErr_Occurred()) SWIG_fail;
36378 }
36379 resultobj = SWIG_Py_Void();
36380 return resultobj;
36381 fail:
36382 return NULL;
36383 }
36384
36385
36386 SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36387 PyObject *resultobj = 0;
36388 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36389 wxTreeItemId *arg2 = 0 ;
36390 void *argp1 = 0 ;
36391 int res1 = 0 ;
36392 void *argp2 = 0 ;
36393 int res2 = 0 ;
36394 PyObject * obj0 = 0 ;
36395 PyObject * obj1 = 0 ;
36396 char * kwnames[] = {
36397 (char *) "self",(char *) "item", NULL
36398 };
36399
36400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36402 if (!SWIG_IsOK(res1)) {
36403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36404 }
36405 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36406 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36407 if (!SWIG_IsOK(res2)) {
36408 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36409 }
36410 if (!argp2) {
36411 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36412 }
36413 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36414 {
36415 PyThreadState* __tstate = wxPyBeginAllowThreads();
36416 (arg1)->Expand((wxTreeItemId const &)*arg2);
36417 wxPyEndAllowThreads(__tstate);
36418 if (PyErr_Occurred()) SWIG_fail;
36419 }
36420 resultobj = SWIG_Py_Void();
36421 return resultobj;
36422 fail:
36423 return NULL;
36424 }
36425
36426
36427 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36428 PyObject *resultobj = 0;
36429 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36430 wxTreeItemId *arg2 = 0 ;
36431 void *argp1 = 0 ;
36432 int res1 = 0 ;
36433 void *argp2 = 0 ;
36434 int res2 = 0 ;
36435 PyObject * obj0 = 0 ;
36436 PyObject * obj1 = 0 ;
36437 char * kwnames[] = {
36438 (char *) "self",(char *) "item", NULL
36439 };
36440
36441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36443 if (!SWIG_IsOK(res1)) {
36444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36445 }
36446 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36447 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36448 if (!SWIG_IsOK(res2)) {
36449 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36450 }
36451 if (!argp2) {
36452 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36453 }
36454 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36455 {
36456 PyThreadState* __tstate = wxPyBeginAllowThreads();
36457 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
36458 wxPyEndAllowThreads(__tstate);
36459 if (PyErr_Occurred()) SWIG_fail;
36460 }
36461 resultobj = SWIG_Py_Void();
36462 return resultobj;
36463 fail:
36464 return NULL;
36465 }
36466
36467
36468 SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36469 PyObject *resultobj = 0;
36470 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36471 void *argp1 = 0 ;
36472 int res1 = 0 ;
36473 PyObject *swig_obj[1] ;
36474
36475 if (!args) SWIG_fail;
36476 swig_obj[0] = args;
36477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36478 if (!SWIG_IsOK(res1)) {
36479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36480 }
36481 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36482 {
36483 PyThreadState* __tstate = wxPyBeginAllowThreads();
36484 (arg1)->ExpandAll();
36485 wxPyEndAllowThreads(__tstate);
36486 if (PyErr_Occurred()) SWIG_fail;
36487 }
36488 resultobj = SWIG_Py_Void();
36489 return resultobj;
36490 fail:
36491 return NULL;
36492 }
36493
36494
36495 SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36496 PyObject *resultobj = 0;
36497 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36498 wxTreeItemId *arg2 = 0 ;
36499 void *argp1 = 0 ;
36500 int res1 = 0 ;
36501 void *argp2 = 0 ;
36502 int res2 = 0 ;
36503 PyObject * obj0 = 0 ;
36504 PyObject * obj1 = 0 ;
36505 char * kwnames[] = {
36506 (char *) "self",(char *) "item", NULL
36507 };
36508
36509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36511 if (!SWIG_IsOK(res1)) {
36512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36513 }
36514 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36515 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36516 if (!SWIG_IsOK(res2)) {
36517 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36518 }
36519 if (!argp2) {
36520 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36521 }
36522 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36523 {
36524 PyThreadState* __tstate = wxPyBeginAllowThreads();
36525 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36526 wxPyEndAllowThreads(__tstate);
36527 if (PyErr_Occurred()) SWIG_fail;
36528 }
36529 resultobj = SWIG_Py_Void();
36530 return resultobj;
36531 fail:
36532 return NULL;
36533 }
36534
36535
36536 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36537 PyObject *resultobj = 0;
36538 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36539 wxTreeItemId *arg2 = 0 ;
36540 void *argp1 = 0 ;
36541 int res1 = 0 ;
36542 void *argp2 = 0 ;
36543 int res2 = 0 ;
36544 PyObject * obj0 = 0 ;
36545 PyObject * obj1 = 0 ;
36546 char * kwnames[] = {
36547 (char *) "self",(char *) "item", NULL
36548 };
36549
36550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36552 if (!SWIG_IsOK(res1)) {
36553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36554 }
36555 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36556 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36557 if (!SWIG_IsOK(res2)) {
36558 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36559 }
36560 if (!argp2) {
36561 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36562 }
36563 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36564 {
36565 PyThreadState* __tstate = wxPyBeginAllowThreads();
36566 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36567 wxPyEndAllowThreads(__tstate);
36568 if (PyErr_Occurred()) SWIG_fail;
36569 }
36570 resultobj = SWIG_Py_Void();
36571 return resultobj;
36572 fail:
36573 return NULL;
36574 }
36575
36576
36577 SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36578 PyObject *resultobj = 0;
36579 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36580 wxTreeItemId *arg2 = 0 ;
36581 void *argp1 = 0 ;
36582 int res1 = 0 ;
36583 void *argp2 = 0 ;
36584 int res2 = 0 ;
36585 PyObject * obj0 = 0 ;
36586 PyObject * obj1 = 0 ;
36587 char * kwnames[] = {
36588 (char *) "self",(char *) "item", NULL
36589 };
36590
36591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36593 if (!SWIG_IsOK(res1)) {
36594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36595 }
36596 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36597 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36598 if (!SWIG_IsOK(res2)) {
36599 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36600 }
36601 if (!argp2) {
36602 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36603 }
36604 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36605 {
36606 PyThreadState* __tstate = wxPyBeginAllowThreads();
36607 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36608 wxPyEndAllowThreads(__tstate);
36609 if (PyErr_Occurred()) SWIG_fail;
36610 }
36611 resultobj = SWIG_Py_Void();
36612 return resultobj;
36613 fail:
36614 return NULL;
36615 }
36616
36617
36618 SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36619 PyObject *resultobj = 0;
36620 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36621 void *argp1 = 0 ;
36622 int res1 = 0 ;
36623 PyObject *swig_obj[1] ;
36624
36625 if (!args) SWIG_fail;
36626 swig_obj[0] = args;
36627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36628 if (!SWIG_IsOK(res1)) {
36629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36630 }
36631 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36632 {
36633 PyThreadState* __tstate = wxPyBeginAllowThreads();
36634 (arg1)->Unselect();
36635 wxPyEndAllowThreads(__tstate);
36636 if (PyErr_Occurred()) SWIG_fail;
36637 }
36638 resultobj = SWIG_Py_Void();
36639 return resultobj;
36640 fail:
36641 return NULL;
36642 }
36643
36644
36645 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36646 PyObject *resultobj = 0;
36647 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36648 wxTreeItemId *arg2 = 0 ;
36649 void *argp1 = 0 ;
36650 int res1 = 0 ;
36651 void *argp2 = 0 ;
36652 int res2 = 0 ;
36653 PyObject * obj0 = 0 ;
36654 PyObject * obj1 = 0 ;
36655 char * kwnames[] = {
36656 (char *) "self",(char *) "item", NULL
36657 };
36658
36659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36661 if (!SWIG_IsOK(res1)) {
36662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36663 }
36664 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36665 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36666 if (!SWIG_IsOK(res2)) {
36667 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36668 }
36669 if (!argp2) {
36670 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36671 }
36672 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36673 {
36674 PyThreadState* __tstate = wxPyBeginAllowThreads();
36675 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36676 wxPyEndAllowThreads(__tstate);
36677 if (PyErr_Occurred()) SWIG_fail;
36678 }
36679 resultobj = SWIG_Py_Void();
36680 return resultobj;
36681 fail:
36682 return NULL;
36683 }
36684
36685
36686 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36687 PyObject *resultobj = 0;
36688 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36689 void *argp1 = 0 ;
36690 int res1 = 0 ;
36691 PyObject *swig_obj[1] ;
36692
36693 if (!args) SWIG_fail;
36694 swig_obj[0] = args;
36695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36696 if (!SWIG_IsOK(res1)) {
36697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36698 }
36699 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36700 {
36701 PyThreadState* __tstate = wxPyBeginAllowThreads();
36702 (arg1)->UnselectAll();
36703 wxPyEndAllowThreads(__tstate);
36704 if (PyErr_Occurred()) SWIG_fail;
36705 }
36706 resultobj = SWIG_Py_Void();
36707 return resultobj;
36708 fail:
36709 return NULL;
36710 }
36711
36712
36713 SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36714 PyObject *resultobj = 0;
36715 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36716 wxTreeItemId *arg2 = 0 ;
36717 bool arg3 = (bool) true ;
36718 void *argp1 = 0 ;
36719 int res1 = 0 ;
36720 void *argp2 = 0 ;
36721 int res2 = 0 ;
36722 bool val3 ;
36723 int ecode3 = 0 ;
36724 PyObject * obj0 = 0 ;
36725 PyObject * obj1 = 0 ;
36726 PyObject * obj2 = 0 ;
36727 char * kwnames[] = {
36728 (char *) "self",(char *) "item",(char *) "select", NULL
36729 };
36730
36731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36733 if (!SWIG_IsOK(res1)) {
36734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36735 }
36736 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36737 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36738 if (!SWIG_IsOK(res2)) {
36739 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36740 }
36741 if (!argp2) {
36742 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36743 }
36744 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36745 if (obj2) {
36746 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36747 if (!SWIG_IsOK(ecode3)) {
36748 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36749 }
36750 arg3 = static_cast< bool >(val3);
36751 }
36752 {
36753 PyThreadState* __tstate = wxPyBeginAllowThreads();
36754 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36755 wxPyEndAllowThreads(__tstate);
36756 if (PyErr_Occurred()) SWIG_fail;
36757 }
36758 resultobj = SWIG_Py_Void();
36759 return resultobj;
36760 fail:
36761 return NULL;
36762 }
36763
36764
36765 SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36766 PyObject *resultobj = 0;
36767 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36768 wxTreeItemId *arg2 = 0 ;
36769 void *argp1 = 0 ;
36770 int res1 = 0 ;
36771 void *argp2 = 0 ;
36772 int res2 = 0 ;
36773 PyObject * obj0 = 0 ;
36774 PyObject * obj1 = 0 ;
36775 char * kwnames[] = {
36776 (char *) "self",(char *) "item", NULL
36777 };
36778
36779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36781 if (!SWIG_IsOK(res1)) {
36782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36783 }
36784 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36785 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36786 if (!SWIG_IsOK(res2)) {
36787 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36788 }
36789 if (!argp2) {
36790 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36791 }
36792 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36793 {
36794 PyThreadState* __tstate = wxPyBeginAllowThreads();
36795 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36796 wxPyEndAllowThreads(__tstate);
36797 if (PyErr_Occurred()) SWIG_fail;
36798 }
36799 resultobj = SWIG_Py_Void();
36800 return resultobj;
36801 fail:
36802 return NULL;
36803 }
36804
36805
36806 SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36807 PyObject *resultobj = 0;
36808 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36809 wxTreeItemId *arg2 = 0 ;
36810 void *argp1 = 0 ;
36811 int res1 = 0 ;
36812 void *argp2 = 0 ;
36813 int res2 = 0 ;
36814 PyObject * obj0 = 0 ;
36815 PyObject * obj1 = 0 ;
36816 char * kwnames[] = {
36817 (char *) "self",(char *) "item", NULL
36818 };
36819
36820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36822 if (!SWIG_IsOK(res1)) {
36823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36824 }
36825 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36826 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36827 if (!SWIG_IsOK(res2)) {
36828 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36829 }
36830 if (!argp2) {
36831 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36832 }
36833 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36834 {
36835 PyThreadState* __tstate = wxPyBeginAllowThreads();
36836 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36837 wxPyEndAllowThreads(__tstate);
36838 if (PyErr_Occurred()) SWIG_fail;
36839 }
36840 resultobj = SWIG_Py_Void();
36841 return resultobj;
36842 fail:
36843 return NULL;
36844 }
36845
36846
36847 SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36848 PyObject *resultobj = 0;
36849 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36850 wxTreeItemId *arg2 = 0 ;
36851 void *argp1 = 0 ;
36852 int res1 = 0 ;
36853 void *argp2 = 0 ;
36854 int res2 = 0 ;
36855 PyObject * obj0 = 0 ;
36856 PyObject * obj1 = 0 ;
36857 char * kwnames[] = {
36858 (char *) "self",(char *) "item", NULL
36859 };
36860
36861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
36862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36863 if (!SWIG_IsOK(res1)) {
36864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36865 }
36866 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36867 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36868 if (!SWIG_IsOK(res2)) {
36869 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36870 }
36871 if (!argp2) {
36872 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36873 }
36874 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36875 {
36876 PyThreadState* __tstate = wxPyBeginAllowThreads();
36877 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
36878 wxPyEndAllowThreads(__tstate);
36879 if (PyErr_Occurred()) SWIG_fail;
36880 }
36881 resultobj = SWIG_Py_Void();
36882 return resultobj;
36883 fail:
36884 return NULL;
36885 }
36886
36887
36888 SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36889 PyObject *resultobj = 0;
36890 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36891 wxTreeItemId *arg2 = 0 ;
36892 void *argp1 = 0 ;
36893 int res1 = 0 ;
36894 void *argp2 = 0 ;
36895 int res2 = 0 ;
36896 PyObject * obj0 = 0 ;
36897 PyObject * obj1 = 0 ;
36898 char * kwnames[] = {
36899 (char *) "self",(char *) "item", NULL
36900 };
36901
36902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
36903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36904 if (!SWIG_IsOK(res1)) {
36905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36906 }
36907 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36908 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36909 if (!SWIG_IsOK(res2)) {
36910 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36911 }
36912 if (!argp2) {
36913 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36914 }
36915 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36916 {
36917 PyThreadState* __tstate = wxPyBeginAllowThreads();
36918 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
36919 wxPyEndAllowThreads(__tstate);
36920 if (PyErr_Occurred()) SWIG_fail;
36921 }
36922 resultobj = SWIG_Py_Void();
36923 return resultobj;
36924 fail:
36925 return NULL;
36926 }
36927
36928
36929 SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36930 PyObject *resultobj = 0;
36931 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36932 wxTextCtrl *result = 0 ;
36933 void *argp1 = 0 ;
36934 int res1 = 0 ;
36935 PyObject *swig_obj[1] ;
36936
36937 if (!args) SWIG_fail;
36938 swig_obj[0] = args;
36939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36940 if (!SWIG_IsOK(res1)) {
36941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36942 }
36943 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36944 {
36945 PyThreadState* __tstate = wxPyBeginAllowThreads();
36946 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
36947 wxPyEndAllowThreads(__tstate);
36948 if (PyErr_Occurred()) SWIG_fail;
36949 }
36950 {
36951 resultobj = wxPyMake_wxObject(result, 0);
36952 }
36953 return resultobj;
36954 fail:
36955 return NULL;
36956 }
36957
36958
36959 SWIGINTERN PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36960 PyObject *resultobj = 0;
36961 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36962 wxTreeItemId *arg2 = 0 ;
36963 bool arg3 = (bool) false ;
36964 void *argp1 = 0 ;
36965 int res1 = 0 ;
36966 void *argp2 = 0 ;
36967 int res2 = 0 ;
36968 bool val3 ;
36969 int ecode3 = 0 ;
36970 PyObject * obj0 = 0 ;
36971 PyObject * obj1 = 0 ;
36972 PyObject * obj2 = 0 ;
36973 char * kwnames[] = {
36974 (char *) "self",(char *) "item",(char *) "discardChanges", NULL
36975 };
36976
36977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36979 if (!SWIG_IsOK(res1)) {
36980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36981 }
36982 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36983 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36984 if (!SWIG_IsOK(res2)) {
36985 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36986 }
36987 if (!argp2) {
36988 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36989 }
36990 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36991 if (obj2) {
36992 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36993 if (!SWIG_IsOK(ecode3)) {
36994 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_EndEditLabel" "', expected argument " "3"" of type '" "bool""'");
36995 }
36996 arg3 = static_cast< bool >(val3);
36997 }
36998 {
36999 PyThreadState* __tstate = wxPyBeginAllowThreads();
37000 (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3);
37001 wxPyEndAllowThreads(__tstate);
37002 if (PyErr_Occurred()) SWIG_fail;
37003 }
37004 resultobj = SWIG_Py_Void();
37005 return resultobj;
37006 fail:
37007 return NULL;
37008 }
37009
37010
37011 SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37012 PyObject *resultobj = 0;
37013 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37014 wxTreeItemId *arg2 = 0 ;
37015 void *argp1 = 0 ;
37016 int res1 = 0 ;
37017 void *argp2 = 0 ;
37018 int res2 = 0 ;
37019 PyObject * obj0 = 0 ;
37020 PyObject * obj1 = 0 ;
37021 char * kwnames[] = {
37022 (char *) "self",(char *) "item", NULL
37023 };
37024
37025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
37026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37027 if (!SWIG_IsOK(res1)) {
37028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37029 }
37030 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37031 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37032 if (!SWIG_IsOK(res2)) {
37033 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37034 }
37035 if (!argp2) {
37036 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37037 }
37038 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37039 {
37040 PyThreadState* __tstate = wxPyBeginAllowThreads();
37041 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
37042 wxPyEndAllowThreads(__tstate);
37043 if (PyErr_Occurred()) SWIG_fail;
37044 }
37045 resultobj = SWIG_Py_Void();
37046 return resultobj;
37047 fail:
37048 return NULL;
37049 }
37050
37051
37052 SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37053 PyObject *resultobj = 0;
37054 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37055 wxPoint *arg2 = 0 ;
37056 int *arg3 = 0 ;
37057 wxTreeItemId result;
37058 void *argp1 = 0 ;
37059 int res1 = 0 ;
37060 wxPoint temp2 ;
37061 int temp3 ;
37062 int res3 = SWIG_TMPOBJ ;
37063 PyObject * obj0 = 0 ;
37064 PyObject * obj1 = 0 ;
37065 char * kwnames[] = {
37066 (char *) "self",(char *) "point", NULL
37067 };
37068
37069 arg3 = &temp3;
37070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
37071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37072 if (!SWIG_IsOK(res1)) {
37073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37074 }
37075 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37076 {
37077 arg2 = &temp2;
37078 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37079 }
37080 {
37081 PyThreadState* __tstate = wxPyBeginAllowThreads();
37082 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
37083 wxPyEndAllowThreads(__tstate);
37084 if (PyErr_Occurred()) SWIG_fail;
37085 }
37086 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37087 if (SWIG_IsTmpObj(res3)) {
37088 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
37089 } else {
37090 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37091 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
37092 }
37093 return resultobj;
37094 fail:
37095 return NULL;
37096 }
37097
37098
37099 SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37100 PyObject *resultobj = 0;
37101 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37102 wxTreeItemId *arg2 = 0 ;
37103 bool arg3 = (bool) false ;
37104 PyObject *result = 0 ;
37105 void *argp1 = 0 ;
37106 int res1 = 0 ;
37107 void *argp2 = 0 ;
37108 int res2 = 0 ;
37109 bool val3 ;
37110 int ecode3 = 0 ;
37111 PyObject * obj0 = 0 ;
37112 PyObject * obj1 = 0 ;
37113 PyObject * obj2 = 0 ;
37114 char * kwnames[] = {
37115 (char *) "self",(char *) "item",(char *) "textOnly", NULL
37116 };
37117
37118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37120 if (!SWIG_IsOK(res1)) {
37121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37122 }
37123 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37124 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37125 if (!SWIG_IsOK(res2)) {
37126 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37127 }
37128 if (!argp2) {
37129 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37130 }
37131 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37132 if (obj2) {
37133 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37134 if (!SWIG_IsOK(ecode3)) {
37135 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
37136 }
37137 arg3 = static_cast< bool >(val3);
37138 }
37139 {
37140 PyThreadState* __tstate = wxPyBeginAllowThreads();
37141 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
37142 wxPyEndAllowThreads(__tstate);
37143 if (PyErr_Occurred()) SWIG_fail;
37144 }
37145 resultobj = result;
37146 return resultobj;
37147 fail:
37148 return NULL;
37149 }
37150
37151
37152 SWIGINTERN PyObject *_wrap_TreeCtrl_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37153 PyObject *resultobj = 0;
37154 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37155 wxTreeItemId *arg2 = 0 ;
37156 int arg3 ;
37157 void *argp1 = 0 ;
37158 int res1 = 0 ;
37159 void *argp2 = 0 ;
37160 int res2 = 0 ;
37161 int val3 ;
37162 int ecode3 = 0 ;
37163 PyObject * obj0 = 0 ;
37164 PyObject * obj1 = 0 ;
37165 PyObject * obj2 = 0 ;
37166 char * kwnames[] = {
37167 (char *) "self",(char *) "node",(char *) "state", NULL
37168 };
37169
37170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37172 if (!SWIG_IsOK(res1)) {
37173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37174 }
37175 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37176 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37177 if (!SWIG_IsOK(res2)) {
37178 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37179 }
37180 if (!argp2) {
37181 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37182 }
37183 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37184 ecode3 = SWIG_AsVal_int(obj2, &val3);
37185 if (!SWIG_IsOK(ecode3)) {
37186 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetState" "', expected argument " "3"" of type '" "int""'");
37187 }
37188 arg3 = static_cast< int >(val3);
37189 {
37190 PyThreadState* __tstate = wxPyBeginAllowThreads();
37191 (arg1)->SetState((wxTreeItemId const &)*arg2,arg3);
37192 wxPyEndAllowThreads(__tstate);
37193 if (PyErr_Occurred()) SWIG_fail;
37194 }
37195 resultobj = SWIG_Py_Void();
37196 return resultobj;
37197 fail:
37198 return NULL;
37199 }
37200
37201
37202 SWIGINTERN PyObject *_wrap_TreeCtrl_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37203 PyObject *resultobj = 0;
37204 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37205 wxTreeItemId *arg2 = 0 ;
37206 int result;
37207 void *argp1 = 0 ;
37208 int res1 = 0 ;
37209 void *argp2 = 0 ;
37210 int res2 = 0 ;
37211 PyObject * obj0 = 0 ;
37212 PyObject * obj1 = 0 ;
37213 char * kwnames[] = {
37214 (char *) "self",(char *) "node", NULL
37215 };
37216
37217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetState",kwnames,&obj0,&obj1)) SWIG_fail;
37218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37219 if (!SWIG_IsOK(res1)) {
37220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetState" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37221 }
37222 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37223 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37224 if (!SWIG_IsOK(res2)) {
37225 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37226 }
37227 if (!argp2) {
37228 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetState" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37229 }
37230 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37231 {
37232 PyThreadState* __tstate = wxPyBeginAllowThreads();
37233 result = (int)(arg1)->GetState((wxTreeItemId const &)*arg2);
37234 wxPyEndAllowThreads(__tstate);
37235 if (PyErr_Occurred()) SWIG_fail;
37236 }
37237 resultobj = SWIG_From_int(static_cast< int >(result));
37238 return resultobj;
37239 fail:
37240 return NULL;
37241 }
37242
37243
37244 SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37245 PyObject *resultobj = 0;
37246 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
37247 SwigValueWrapper<wxVisualAttributes > result;
37248 int val1 ;
37249 int ecode1 = 0 ;
37250 PyObject * obj0 = 0 ;
37251 char * kwnames[] = {
37252 (char *) "variant", NULL
37253 };
37254
37255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
37256 if (obj0) {
37257 ecode1 = SWIG_AsVal_int(obj0, &val1);
37258 if (!SWIG_IsOK(ecode1)) {
37259 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
37260 }
37261 arg1 = static_cast< wxWindowVariant >(val1);
37262 }
37263 {
37264 if (!wxPyCheckForApp()) SWIG_fail;
37265 PyThreadState* __tstate = wxPyBeginAllowThreads();
37266 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
37267 wxPyEndAllowThreads(__tstate);
37268 if (PyErr_Occurred()) SWIG_fail;
37269 }
37270 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
37271 return resultobj;
37272 fail:
37273 return NULL;
37274 }
37275
37276
37277 SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37278 PyObject *resultobj = 0;
37279 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37280 bool arg2 ;
37281 void *argp1 = 0 ;
37282 int res1 = 0 ;
37283 bool val2 ;
37284 int ecode2 = 0 ;
37285 PyObject * obj0 = 0 ;
37286 PyObject * obj1 = 0 ;
37287 char * kwnames[] = {
37288 (char *) "self",(char *) "q", NULL
37289 };
37290
37291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37293 if (!SWIG_IsOK(res1)) {
37294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37295 }
37296 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37297 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37298 if (!SWIG_IsOK(ecode2)) {
37299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37300 }
37301 arg2 = static_cast< bool >(val2);
37302 {
37303 PyThreadState* __tstate = wxPyBeginAllowThreads();
37304 (arg1)->SetQuickBestSize(arg2);
37305 wxPyEndAllowThreads(__tstate);
37306 if (PyErr_Occurred()) SWIG_fail;
37307 }
37308 resultobj = SWIG_Py_Void();
37309 return resultobj;
37310 fail:
37311 return NULL;
37312 }
37313
37314
37315 SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37316 PyObject *resultobj = 0;
37317 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37318 bool result;
37319 void *argp1 = 0 ;
37320 int res1 = 0 ;
37321 PyObject *swig_obj[1] ;
37322
37323 if (!args) SWIG_fail;
37324 swig_obj[0] = args;
37325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37326 if (!SWIG_IsOK(res1)) {
37327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37328 }
37329 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37330 {
37331 PyThreadState* __tstate = wxPyBeginAllowThreads();
37332 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37333 wxPyEndAllowThreads(__tstate);
37334 if (PyErr_Occurred()) SWIG_fail;
37335 }
37336 {
37337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37338 }
37339 return resultobj;
37340 fail:
37341 return NULL;
37342 }
37343
37344
37345 SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37346 PyObject *obj;
37347 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37348 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37349 return SWIG_Py_Void();
37350 }
37351
37352 SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37353 return SWIG_Python_InitShadowInstance(args);
37354 }
37355
37356 SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37357 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37358 return 1;
37359 }
37360
37361
37362 SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37363 PyObject *pyobj = 0;
37364
37365 {
37366 #if wxUSE_UNICODE
37367 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37368 #else
37369 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37370 #endif
37371 }
37372 return pyobj;
37373 }
37374
37375
37376 SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37377 PyObject *resultobj = 0;
37378 wxWindow *arg1 = (wxWindow *) 0 ;
37379 int arg2 = (int) (int)-1 ;
37380 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37381 wxString *arg3 = (wxString *) &arg3_defvalue ;
37382 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37383 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37384 wxSize const &arg5_defvalue = wxDefaultSize ;
37385 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37386 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37387 wxString const &arg7_defvalue = wxPyEmptyString ;
37388 wxString *arg7 = (wxString *) &arg7_defvalue ;
37389 int arg8 = (int) 0 ;
37390 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37391 wxString *arg9 = (wxString *) &arg9_defvalue ;
37392 wxGenericDirCtrl *result = 0 ;
37393 void *argp1 = 0 ;
37394 int res1 = 0 ;
37395 int val2 ;
37396 int ecode2 = 0 ;
37397 bool temp3 = false ;
37398 wxPoint temp4 ;
37399 wxSize temp5 ;
37400 long val6 ;
37401 int ecode6 = 0 ;
37402 bool temp7 = false ;
37403 int val8 ;
37404 int ecode8 = 0 ;
37405 bool temp9 = false ;
37406 PyObject * obj0 = 0 ;
37407 PyObject * obj1 = 0 ;
37408 PyObject * obj2 = 0 ;
37409 PyObject * obj3 = 0 ;
37410 PyObject * obj4 = 0 ;
37411 PyObject * obj5 = 0 ;
37412 PyObject * obj6 = 0 ;
37413 PyObject * obj7 = 0 ;
37414 PyObject * obj8 = 0 ;
37415 char * kwnames[] = {
37416 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37417 };
37418
37419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37421 if (!SWIG_IsOK(res1)) {
37422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37423 }
37424 arg1 = reinterpret_cast< wxWindow * >(argp1);
37425 if (obj1) {
37426 ecode2 = SWIG_AsVal_int(obj1, &val2);
37427 if (!SWIG_IsOK(ecode2)) {
37428 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37429 }
37430 arg2 = static_cast< int >(val2);
37431 }
37432 if (obj2) {
37433 {
37434 arg3 = wxString_in_helper(obj2);
37435 if (arg3 == NULL) SWIG_fail;
37436 temp3 = true;
37437 }
37438 }
37439 if (obj3) {
37440 {
37441 arg4 = &temp4;
37442 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37443 }
37444 }
37445 if (obj4) {
37446 {
37447 arg5 = &temp5;
37448 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
37449 }
37450 }
37451 if (obj5) {
37452 ecode6 = SWIG_AsVal_long(obj5, &val6);
37453 if (!SWIG_IsOK(ecode6)) {
37454 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37455 }
37456 arg6 = static_cast< long >(val6);
37457 }
37458 if (obj6) {
37459 {
37460 arg7 = wxString_in_helper(obj6);
37461 if (arg7 == NULL) SWIG_fail;
37462 temp7 = true;
37463 }
37464 }
37465 if (obj7) {
37466 ecode8 = SWIG_AsVal_int(obj7, &val8);
37467 if (!SWIG_IsOK(ecode8)) {
37468 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37469 }
37470 arg8 = static_cast< int >(val8);
37471 }
37472 if (obj8) {
37473 {
37474 arg9 = wxString_in_helper(obj8);
37475 if (arg9 == NULL) SWIG_fail;
37476 temp9 = true;
37477 }
37478 }
37479 {
37480 if (!wxPyCheckForApp()) SWIG_fail;
37481 PyThreadState* __tstate = wxPyBeginAllowThreads();
37482 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37483 wxPyEndAllowThreads(__tstate);
37484 if (PyErr_Occurred()) SWIG_fail;
37485 }
37486 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37487 {
37488 if (temp3)
37489 delete arg3;
37490 }
37491 {
37492 if (temp7)
37493 delete arg7;
37494 }
37495 {
37496 if (temp9)
37497 delete arg9;
37498 }
37499 return resultobj;
37500 fail:
37501 {
37502 if (temp3)
37503 delete arg3;
37504 }
37505 {
37506 if (temp7)
37507 delete arg7;
37508 }
37509 {
37510 if (temp9)
37511 delete arg9;
37512 }
37513 return NULL;
37514 }
37515
37516
37517 SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37518 PyObject *resultobj = 0;
37519 wxGenericDirCtrl *result = 0 ;
37520
37521 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37522 {
37523 if (!wxPyCheckForApp()) SWIG_fail;
37524 PyThreadState* __tstate = wxPyBeginAllowThreads();
37525 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37526 wxPyEndAllowThreads(__tstate);
37527 if (PyErr_Occurred()) SWIG_fail;
37528 }
37529 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37530 return resultobj;
37531 fail:
37532 return NULL;
37533 }
37534
37535
37536 SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37537 PyObject *resultobj = 0;
37538 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37539 wxWindow *arg2 = (wxWindow *) 0 ;
37540 int arg3 = (int) (int)-1 ;
37541 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37542 wxString *arg4 = (wxString *) &arg4_defvalue ;
37543 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37544 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37545 wxSize const &arg6_defvalue = wxDefaultSize ;
37546 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37547 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37548 wxString const &arg8_defvalue = wxPyEmptyString ;
37549 wxString *arg8 = (wxString *) &arg8_defvalue ;
37550 int arg9 = (int) 0 ;
37551 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37552 wxString *arg10 = (wxString *) &arg10_defvalue ;
37553 bool result;
37554 void *argp1 = 0 ;
37555 int res1 = 0 ;
37556 void *argp2 = 0 ;
37557 int res2 = 0 ;
37558 int val3 ;
37559 int ecode3 = 0 ;
37560 bool temp4 = false ;
37561 wxPoint temp5 ;
37562 wxSize temp6 ;
37563 long val7 ;
37564 int ecode7 = 0 ;
37565 bool temp8 = false ;
37566 int val9 ;
37567 int ecode9 = 0 ;
37568 bool temp10 = false ;
37569 PyObject * obj0 = 0 ;
37570 PyObject * obj1 = 0 ;
37571 PyObject * obj2 = 0 ;
37572 PyObject * obj3 = 0 ;
37573 PyObject * obj4 = 0 ;
37574 PyObject * obj5 = 0 ;
37575 PyObject * obj6 = 0 ;
37576 PyObject * obj7 = 0 ;
37577 PyObject * obj8 = 0 ;
37578 PyObject * obj9 = 0 ;
37579 char * kwnames[] = {
37580 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37581 };
37582
37583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37585 if (!SWIG_IsOK(res1)) {
37586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37587 }
37588 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37589 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37590 if (!SWIG_IsOK(res2)) {
37591 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37592 }
37593 arg2 = reinterpret_cast< wxWindow * >(argp2);
37594 if (obj2) {
37595 ecode3 = SWIG_AsVal_int(obj2, &val3);
37596 if (!SWIG_IsOK(ecode3)) {
37597 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37598 }
37599 arg3 = static_cast< int >(val3);
37600 }
37601 if (obj3) {
37602 {
37603 arg4 = wxString_in_helper(obj3);
37604 if (arg4 == NULL) SWIG_fail;
37605 temp4 = true;
37606 }
37607 }
37608 if (obj4) {
37609 {
37610 arg5 = &temp5;
37611 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
37612 }
37613 }
37614 if (obj5) {
37615 {
37616 arg6 = &temp6;
37617 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
37618 }
37619 }
37620 if (obj6) {
37621 ecode7 = SWIG_AsVal_long(obj6, &val7);
37622 if (!SWIG_IsOK(ecode7)) {
37623 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37624 }
37625 arg7 = static_cast< long >(val7);
37626 }
37627 if (obj7) {
37628 {
37629 arg8 = wxString_in_helper(obj7);
37630 if (arg8 == NULL) SWIG_fail;
37631 temp8 = true;
37632 }
37633 }
37634 if (obj8) {
37635 ecode9 = SWIG_AsVal_int(obj8, &val9);
37636 if (!SWIG_IsOK(ecode9)) {
37637 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37638 }
37639 arg9 = static_cast< int >(val9);
37640 }
37641 if (obj9) {
37642 {
37643 arg10 = wxString_in_helper(obj9);
37644 if (arg10 == NULL) SWIG_fail;
37645 temp10 = true;
37646 }
37647 }
37648 {
37649 PyThreadState* __tstate = wxPyBeginAllowThreads();
37650 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37651 wxPyEndAllowThreads(__tstate);
37652 if (PyErr_Occurred()) SWIG_fail;
37653 }
37654 {
37655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37656 }
37657 {
37658 if (temp4)
37659 delete arg4;
37660 }
37661 {
37662 if (temp8)
37663 delete arg8;
37664 }
37665 {
37666 if (temp10)
37667 delete arg10;
37668 }
37669 return resultobj;
37670 fail:
37671 {
37672 if (temp4)
37673 delete arg4;
37674 }
37675 {
37676 if (temp8)
37677 delete arg8;
37678 }
37679 {
37680 if (temp10)
37681 delete arg10;
37682 }
37683 return NULL;
37684 }
37685
37686
37687 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37688 PyObject *resultobj = 0;
37689 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37690 wxString *arg2 = 0 ;
37691 bool result;
37692 void *argp1 = 0 ;
37693 int res1 = 0 ;
37694 bool temp2 = false ;
37695 PyObject * obj0 = 0 ;
37696 PyObject * obj1 = 0 ;
37697 char * kwnames[] = {
37698 (char *) "self",(char *) "path", NULL
37699 };
37700
37701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37703 if (!SWIG_IsOK(res1)) {
37704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37705 }
37706 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37707 {
37708 arg2 = wxString_in_helper(obj1);
37709 if (arg2 == NULL) SWIG_fail;
37710 temp2 = true;
37711 }
37712 {
37713 PyThreadState* __tstate = wxPyBeginAllowThreads();
37714 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37715 wxPyEndAllowThreads(__tstate);
37716 if (PyErr_Occurred()) SWIG_fail;
37717 }
37718 {
37719 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37720 }
37721 {
37722 if (temp2)
37723 delete arg2;
37724 }
37725 return resultobj;
37726 fail:
37727 {
37728 if (temp2)
37729 delete arg2;
37730 }
37731 return NULL;
37732 }
37733
37734
37735 SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37736 PyObject *resultobj = 0;
37737 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37738 wxString *arg2 = 0 ;
37739 bool result;
37740 void *argp1 = 0 ;
37741 int res1 = 0 ;
37742 bool temp2 = false ;
37743 PyObject * obj0 = 0 ;
37744 PyObject * obj1 = 0 ;
37745 char * kwnames[] = {
37746 (char *) "self",(char *) "path", NULL
37747 };
37748
37749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
37750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37751 if (!SWIG_IsOK(res1)) {
37752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37753 }
37754 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37755 {
37756 arg2 = wxString_in_helper(obj1);
37757 if (arg2 == NULL) SWIG_fail;
37758 temp2 = true;
37759 }
37760 {
37761 PyThreadState* __tstate = wxPyBeginAllowThreads();
37762 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
37763 wxPyEndAllowThreads(__tstate);
37764 if (PyErr_Occurred()) SWIG_fail;
37765 }
37766 {
37767 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37768 }
37769 {
37770 if (temp2)
37771 delete arg2;
37772 }
37773 return resultobj;
37774 fail:
37775 {
37776 if (temp2)
37777 delete arg2;
37778 }
37779 return NULL;
37780 }
37781
37782
37783 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37784 PyObject *resultobj = 0;
37785 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37786 wxString result;
37787 void *argp1 = 0 ;
37788 int res1 = 0 ;
37789 PyObject *swig_obj[1] ;
37790
37791 if (!args) SWIG_fail;
37792 swig_obj[0] = args;
37793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37794 if (!SWIG_IsOK(res1)) {
37795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37796 }
37797 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37798 {
37799 PyThreadState* __tstate = wxPyBeginAllowThreads();
37800 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37801 wxPyEndAllowThreads(__tstate);
37802 if (PyErr_Occurred()) SWIG_fail;
37803 }
37804 {
37805 #if wxUSE_UNICODE
37806 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37807 #else
37808 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37809 #endif
37810 }
37811 return resultobj;
37812 fail:
37813 return NULL;
37814 }
37815
37816
37817 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37818 PyObject *resultobj = 0;
37819 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37820 wxString *arg2 = 0 ;
37821 void *argp1 = 0 ;
37822 int res1 = 0 ;
37823 bool temp2 = false ;
37824 PyObject * obj0 = 0 ;
37825 PyObject * obj1 = 0 ;
37826 char * kwnames[] = {
37827 (char *) "self",(char *) "path", NULL
37828 };
37829
37830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37832 if (!SWIG_IsOK(res1)) {
37833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37834 }
37835 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37836 {
37837 arg2 = wxString_in_helper(obj1);
37838 if (arg2 == NULL) SWIG_fail;
37839 temp2 = true;
37840 }
37841 {
37842 PyThreadState* __tstate = wxPyBeginAllowThreads();
37843 (arg1)->SetDefaultPath((wxString const &)*arg2);
37844 wxPyEndAllowThreads(__tstate);
37845 if (PyErr_Occurred()) SWIG_fail;
37846 }
37847 resultobj = SWIG_Py_Void();
37848 {
37849 if (temp2)
37850 delete arg2;
37851 }
37852 return resultobj;
37853 fail:
37854 {
37855 if (temp2)
37856 delete arg2;
37857 }
37858 return NULL;
37859 }
37860
37861
37862 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37863 PyObject *resultobj = 0;
37864 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37865 wxString result;
37866 void *argp1 = 0 ;
37867 int res1 = 0 ;
37868 PyObject *swig_obj[1] ;
37869
37870 if (!args) SWIG_fail;
37871 swig_obj[0] = args;
37872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37873 if (!SWIG_IsOK(res1)) {
37874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37875 }
37876 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37877 {
37878 PyThreadState* __tstate = wxPyBeginAllowThreads();
37879 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37880 wxPyEndAllowThreads(__tstate);
37881 if (PyErr_Occurred()) SWIG_fail;
37882 }
37883 {
37884 #if wxUSE_UNICODE
37885 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37886 #else
37887 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37888 #endif
37889 }
37890 return resultobj;
37891 fail:
37892 return NULL;
37893 }
37894
37895
37896 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37897 PyObject *resultobj = 0;
37898 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37899 wxString result;
37900 void *argp1 = 0 ;
37901 int res1 = 0 ;
37902 PyObject *swig_obj[1] ;
37903
37904 if (!args) SWIG_fail;
37905 swig_obj[0] = args;
37906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37907 if (!SWIG_IsOK(res1)) {
37908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37909 }
37910 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37911 {
37912 PyThreadState* __tstate = wxPyBeginAllowThreads();
37913 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37914 wxPyEndAllowThreads(__tstate);
37915 if (PyErr_Occurred()) SWIG_fail;
37916 }
37917 {
37918 #if wxUSE_UNICODE
37919 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37920 #else
37921 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37922 #endif
37923 }
37924 return resultobj;
37925 fail:
37926 return NULL;
37927 }
37928
37929
37930 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37931 PyObject *resultobj = 0;
37932 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37933 wxString *arg2 = 0 ;
37934 void *argp1 = 0 ;
37935 int res1 = 0 ;
37936 bool temp2 = false ;
37937 PyObject * obj0 = 0 ;
37938 PyObject * obj1 = 0 ;
37939 char * kwnames[] = {
37940 (char *) "self",(char *) "path", NULL
37941 };
37942
37943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37945 if (!SWIG_IsOK(res1)) {
37946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37947 }
37948 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37949 {
37950 arg2 = wxString_in_helper(obj1);
37951 if (arg2 == NULL) SWIG_fail;
37952 temp2 = true;
37953 }
37954 {
37955 PyThreadState* __tstate = wxPyBeginAllowThreads();
37956 (arg1)->SetPath((wxString const &)*arg2);
37957 wxPyEndAllowThreads(__tstate);
37958 if (PyErr_Occurred()) SWIG_fail;
37959 }
37960 resultobj = SWIG_Py_Void();
37961 {
37962 if (temp2)
37963 delete arg2;
37964 }
37965 return resultobj;
37966 fail:
37967 {
37968 if (temp2)
37969 delete arg2;
37970 }
37971 return NULL;
37972 }
37973
37974
37975 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37976 PyObject *resultobj = 0;
37977 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37978 bool arg2 ;
37979 void *argp1 = 0 ;
37980 int res1 = 0 ;
37981 bool val2 ;
37982 int ecode2 = 0 ;
37983 PyObject * obj0 = 0 ;
37984 PyObject * obj1 = 0 ;
37985 char * kwnames[] = {
37986 (char *) "self",(char *) "show", NULL
37987 };
37988
37989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37991 if (!SWIG_IsOK(res1)) {
37992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37993 }
37994 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37995 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37996 if (!SWIG_IsOK(ecode2)) {
37997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
37998 }
37999 arg2 = static_cast< bool >(val2);
38000 {
38001 PyThreadState* __tstate = wxPyBeginAllowThreads();
38002 (arg1)->ShowHidden(arg2);
38003 wxPyEndAllowThreads(__tstate);
38004 if (PyErr_Occurred()) SWIG_fail;
38005 }
38006 resultobj = SWIG_Py_Void();
38007 return resultobj;
38008 fail:
38009 return NULL;
38010 }
38011
38012
38013 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38014 PyObject *resultobj = 0;
38015 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38016 bool result;
38017 void *argp1 = 0 ;
38018 int res1 = 0 ;
38019 PyObject *swig_obj[1] ;
38020
38021 if (!args) SWIG_fail;
38022 swig_obj[0] = args;
38023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38024 if (!SWIG_IsOK(res1)) {
38025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38026 }
38027 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38028 {
38029 PyThreadState* __tstate = wxPyBeginAllowThreads();
38030 result = (bool)(arg1)->GetShowHidden();
38031 wxPyEndAllowThreads(__tstate);
38032 if (PyErr_Occurred()) SWIG_fail;
38033 }
38034 {
38035 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38036 }
38037 return resultobj;
38038 fail:
38039 return NULL;
38040 }
38041
38042
38043 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38044 PyObject *resultobj = 0;
38045 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38046 wxString result;
38047 void *argp1 = 0 ;
38048 int res1 = 0 ;
38049 PyObject *swig_obj[1] ;
38050
38051 if (!args) SWIG_fail;
38052 swig_obj[0] = args;
38053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38054 if (!SWIG_IsOK(res1)) {
38055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38056 }
38057 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38058 {
38059 PyThreadState* __tstate = wxPyBeginAllowThreads();
38060 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
38061 wxPyEndAllowThreads(__tstate);
38062 if (PyErr_Occurred()) SWIG_fail;
38063 }
38064 {
38065 #if wxUSE_UNICODE
38066 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38067 #else
38068 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38069 #endif
38070 }
38071 return resultobj;
38072 fail:
38073 return NULL;
38074 }
38075
38076
38077 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38078 PyObject *resultobj = 0;
38079 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38080 wxString *arg2 = 0 ;
38081 void *argp1 = 0 ;
38082 int res1 = 0 ;
38083 bool temp2 = false ;
38084 PyObject * obj0 = 0 ;
38085 PyObject * obj1 = 0 ;
38086 char * kwnames[] = {
38087 (char *) "self",(char *) "filter", NULL
38088 };
38089
38090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
38091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38092 if (!SWIG_IsOK(res1)) {
38093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38094 }
38095 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38096 {
38097 arg2 = wxString_in_helper(obj1);
38098 if (arg2 == NULL) SWIG_fail;
38099 temp2 = true;
38100 }
38101 {
38102 PyThreadState* __tstate = wxPyBeginAllowThreads();
38103 (arg1)->SetFilter((wxString const &)*arg2);
38104 wxPyEndAllowThreads(__tstate);
38105 if (PyErr_Occurred()) SWIG_fail;
38106 }
38107 resultobj = SWIG_Py_Void();
38108 {
38109 if (temp2)
38110 delete arg2;
38111 }
38112 return resultobj;
38113 fail:
38114 {
38115 if (temp2)
38116 delete arg2;
38117 }
38118 return NULL;
38119 }
38120
38121
38122 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38123 PyObject *resultobj = 0;
38124 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38125 int result;
38126 void *argp1 = 0 ;
38127 int res1 = 0 ;
38128 PyObject *swig_obj[1] ;
38129
38130 if (!args) SWIG_fail;
38131 swig_obj[0] = args;
38132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38133 if (!SWIG_IsOK(res1)) {
38134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38135 }
38136 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38137 {
38138 PyThreadState* __tstate = wxPyBeginAllowThreads();
38139 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
38140 wxPyEndAllowThreads(__tstate);
38141 if (PyErr_Occurred()) SWIG_fail;
38142 }
38143 resultobj = SWIG_From_int(static_cast< int >(result));
38144 return resultobj;
38145 fail:
38146 return NULL;
38147 }
38148
38149
38150 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38151 PyObject *resultobj = 0;
38152 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38153 int arg2 ;
38154 void *argp1 = 0 ;
38155 int res1 = 0 ;
38156 int val2 ;
38157 int ecode2 = 0 ;
38158 PyObject * obj0 = 0 ;
38159 PyObject * obj1 = 0 ;
38160 char * kwnames[] = {
38161 (char *) "self",(char *) "n", NULL
38162 };
38163
38164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
38165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38166 if (!SWIG_IsOK(res1)) {
38167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38168 }
38169 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38170 ecode2 = SWIG_AsVal_int(obj1, &val2);
38171 if (!SWIG_IsOK(ecode2)) {
38172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
38173 }
38174 arg2 = static_cast< int >(val2);
38175 {
38176 PyThreadState* __tstate = wxPyBeginAllowThreads();
38177 (arg1)->SetFilterIndex(arg2);
38178 wxPyEndAllowThreads(__tstate);
38179 if (PyErr_Occurred()) SWIG_fail;
38180 }
38181 resultobj = SWIG_Py_Void();
38182 return resultobj;
38183 fail:
38184 return NULL;
38185 }
38186
38187
38188 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38189 PyObject *resultobj = 0;
38190 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38191 wxTreeItemId result;
38192 void *argp1 = 0 ;
38193 int res1 = 0 ;
38194 PyObject *swig_obj[1] ;
38195
38196 if (!args) SWIG_fail;
38197 swig_obj[0] = args;
38198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38199 if (!SWIG_IsOK(res1)) {
38200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38201 }
38202 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38203 {
38204 PyThreadState* __tstate = wxPyBeginAllowThreads();
38205 result = (arg1)->GetRootId();
38206 wxPyEndAllowThreads(__tstate);
38207 if (PyErr_Occurred()) SWIG_fail;
38208 }
38209 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38210 return resultobj;
38211 fail:
38212 return NULL;
38213 }
38214
38215
38216 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38217 PyObject *resultobj = 0;
38218 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38219 wxPyTreeCtrl *result = 0 ;
38220 void *argp1 = 0 ;
38221 int res1 = 0 ;
38222 PyObject *swig_obj[1] ;
38223
38224 if (!args) SWIG_fail;
38225 swig_obj[0] = args;
38226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38227 if (!SWIG_IsOK(res1)) {
38228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38229 }
38230 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38231 {
38232 PyThreadState* __tstate = wxPyBeginAllowThreads();
38233 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
38234 wxPyEndAllowThreads(__tstate);
38235 if (PyErr_Occurred()) SWIG_fail;
38236 }
38237 {
38238 resultobj = wxPyMake_wxObject(result, 0);
38239 }
38240 return resultobj;
38241 fail:
38242 return NULL;
38243 }
38244
38245
38246 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38247 PyObject *resultobj = 0;
38248 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38249 wxDirFilterListCtrl *result = 0 ;
38250 void *argp1 = 0 ;
38251 int res1 = 0 ;
38252 PyObject *swig_obj[1] ;
38253
38254 if (!args) SWIG_fail;
38255 swig_obj[0] = args;
38256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38257 if (!SWIG_IsOK(res1)) {
38258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38259 }
38260 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38261 {
38262 PyThreadState* __tstate = wxPyBeginAllowThreads();
38263 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
38264 wxPyEndAllowThreads(__tstate);
38265 if (PyErr_Occurred()) SWIG_fail;
38266 }
38267 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38268 return resultobj;
38269 fail:
38270 return NULL;
38271 }
38272
38273
38274 SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38275 PyObject *resultobj = 0;
38276 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38277 wxTreeItemId arg2 ;
38278 wxString *arg3 = 0 ;
38279 bool *arg4 = 0 ;
38280 wxTreeItemId result;
38281 void *argp1 = 0 ;
38282 int res1 = 0 ;
38283 void *argp2 ;
38284 int res2 = 0 ;
38285 bool temp3 = false ;
38286 bool temp4 ;
38287 int res4 = SWIG_TMPOBJ ;
38288 PyObject * obj0 = 0 ;
38289 PyObject * obj1 = 0 ;
38290 PyObject * obj2 = 0 ;
38291 char * kwnames[] = {
38292 (char *) "self",(char *) "parentId",(char *) "path", NULL
38293 };
38294
38295 arg4 = &temp4;
38296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38298 if (!SWIG_IsOK(res1)) {
38299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38300 }
38301 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38302 {
38303 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38304 if (!SWIG_IsOK(res2)) {
38305 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38306 }
38307 if (!argp2) {
38308 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38309 } else {
38310 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38311 arg2 = *temp;
38312 if (SWIG_IsNewObj(res2)) delete temp;
38313 }
38314 }
38315 {
38316 arg3 = wxString_in_helper(obj2);
38317 if (arg3 == NULL) SWIG_fail;
38318 temp3 = true;
38319 }
38320 {
38321 PyThreadState* __tstate = wxPyBeginAllowThreads();
38322 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38323 wxPyEndAllowThreads(__tstate);
38324 if (PyErr_Occurred()) SWIG_fail;
38325 }
38326 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38327 if (SWIG_IsTmpObj(res4)) {
38328 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38329 } else {
38330 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38331 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38332 }
38333 {
38334 if (temp3)
38335 delete arg3;
38336 }
38337 return resultobj;
38338 fail:
38339 {
38340 if (temp3)
38341 delete arg3;
38342 }
38343 return NULL;
38344 }
38345
38346
38347 SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38348 PyObject *resultobj = 0;
38349 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38350 void *argp1 = 0 ;
38351 int res1 = 0 ;
38352 PyObject *swig_obj[1] ;
38353
38354 if (!args) SWIG_fail;
38355 swig_obj[0] = args;
38356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38357 if (!SWIG_IsOK(res1)) {
38358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38359 }
38360 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38361 {
38362 PyThreadState* __tstate = wxPyBeginAllowThreads();
38363 (arg1)->DoResize();
38364 wxPyEndAllowThreads(__tstate);
38365 if (PyErr_Occurred()) SWIG_fail;
38366 }
38367 resultobj = SWIG_Py_Void();
38368 return resultobj;
38369 fail:
38370 return NULL;
38371 }
38372
38373
38374 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38375 PyObject *resultobj = 0;
38376 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38377 void *argp1 = 0 ;
38378 int res1 = 0 ;
38379 PyObject *swig_obj[1] ;
38380
38381 if (!args) SWIG_fail;
38382 swig_obj[0] = args;
38383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38384 if (!SWIG_IsOK(res1)) {
38385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38386 }
38387 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38388 {
38389 PyThreadState* __tstate = wxPyBeginAllowThreads();
38390 (arg1)->ReCreateTree();
38391 wxPyEndAllowThreads(__tstate);
38392 if (PyErr_Occurred()) SWIG_fail;
38393 }
38394 resultobj = SWIG_Py_Void();
38395 return resultobj;
38396 fail:
38397 return NULL;
38398 }
38399
38400
38401 SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38402 PyObject *obj;
38403 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38404 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38405 return SWIG_Py_Void();
38406 }
38407
38408 SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38409 return SWIG_Python_InitShadowInstance(args);
38410 }
38411
38412 SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38413 PyObject *resultobj = 0;
38414 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38415 int arg2 = (int) (int)-1 ;
38416 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38417 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38418 wxSize const &arg4_defvalue = wxDefaultSize ;
38419 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38420 long arg5 = (long) 0 ;
38421 wxDirFilterListCtrl *result = 0 ;
38422 void *argp1 = 0 ;
38423 int res1 = 0 ;
38424 int val2 ;
38425 int ecode2 = 0 ;
38426 wxPoint temp3 ;
38427 wxSize temp4 ;
38428 long val5 ;
38429 int ecode5 = 0 ;
38430 PyObject * obj0 = 0 ;
38431 PyObject * obj1 = 0 ;
38432 PyObject * obj2 = 0 ;
38433 PyObject * obj3 = 0 ;
38434 PyObject * obj4 = 0 ;
38435 char * kwnames[] = {
38436 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38437 };
38438
38439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38441 if (!SWIG_IsOK(res1)) {
38442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38443 }
38444 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38445 if (obj1) {
38446 ecode2 = SWIG_AsVal_int(obj1, &val2);
38447 if (!SWIG_IsOK(ecode2)) {
38448 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38449 }
38450 arg2 = static_cast< int >(val2);
38451 }
38452 if (obj2) {
38453 {
38454 arg3 = &temp3;
38455 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38456 }
38457 }
38458 if (obj3) {
38459 {
38460 arg4 = &temp4;
38461 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38462 }
38463 }
38464 if (obj4) {
38465 ecode5 = SWIG_AsVal_long(obj4, &val5);
38466 if (!SWIG_IsOK(ecode5)) {
38467 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38468 }
38469 arg5 = static_cast< long >(val5);
38470 }
38471 {
38472 if (!wxPyCheckForApp()) SWIG_fail;
38473 PyThreadState* __tstate = wxPyBeginAllowThreads();
38474 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38475 wxPyEndAllowThreads(__tstate);
38476 if (PyErr_Occurred()) SWIG_fail;
38477 }
38478 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38479 return resultobj;
38480 fail:
38481 return NULL;
38482 }
38483
38484
38485 SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38486 PyObject *resultobj = 0;
38487 wxDirFilterListCtrl *result = 0 ;
38488
38489 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38490 {
38491 if (!wxPyCheckForApp()) SWIG_fail;
38492 PyThreadState* __tstate = wxPyBeginAllowThreads();
38493 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38494 wxPyEndAllowThreads(__tstate);
38495 if (PyErr_Occurred()) SWIG_fail;
38496 }
38497 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38498 return resultobj;
38499 fail:
38500 return NULL;
38501 }
38502
38503
38504 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38505 PyObject *resultobj = 0;
38506 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38507 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38508 int arg3 = (int) (int)-1 ;
38509 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38510 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38511 wxSize const &arg5_defvalue = wxDefaultSize ;
38512 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38513 long arg6 = (long) 0 ;
38514 bool result;
38515 void *argp1 = 0 ;
38516 int res1 = 0 ;
38517 void *argp2 = 0 ;
38518 int res2 = 0 ;
38519 int val3 ;
38520 int ecode3 = 0 ;
38521 wxPoint temp4 ;
38522 wxSize temp5 ;
38523 long val6 ;
38524 int ecode6 = 0 ;
38525 PyObject * obj0 = 0 ;
38526 PyObject * obj1 = 0 ;
38527 PyObject * obj2 = 0 ;
38528 PyObject * obj3 = 0 ;
38529 PyObject * obj4 = 0 ;
38530 PyObject * obj5 = 0 ;
38531 char * kwnames[] = {
38532 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38533 };
38534
38535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38537 if (!SWIG_IsOK(res1)) {
38538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38539 }
38540 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38541 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38542 if (!SWIG_IsOK(res2)) {
38543 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38544 }
38545 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38546 if (obj2) {
38547 ecode3 = SWIG_AsVal_int(obj2, &val3);
38548 if (!SWIG_IsOK(ecode3)) {
38549 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38550 }
38551 arg3 = static_cast< int >(val3);
38552 }
38553 if (obj3) {
38554 {
38555 arg4 = &temp4;
38556 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
38557 }
38558 }
38559 if (obj4) {
38560 {
38561 arg5 = &temp5;
38562 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
38563 }
38564 }
38565 if (obj5) {
38566 ecode6 = SWIG_AsVal_long(obj5, &val6);
38567 if (!SWIG_IsOK(ecode6)) {
38568 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38569 }
38570 arg6 = static_cast< long >(val6);
38571 }
38572 {
38573 PyThreadState* __tstate = wxPyBeginAllowThreads();
38574 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38575 wxPyEndAllowThreads(__tstate);
38576 if (PyErr_Occurred()) SWIG_fail;
38577 }
38578 {
38579 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38580 }
38581 return resultobj;
38582 fail:
38583 return NULL;
38584 }
38585
38586
38587 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38588 PyObject *resultobj = 0;
38589 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38590 wxString *arg2 = 0 ;
38591 int arg3 ;
38592 void *argp1 = 0 ;
38593 int res1 = 0 ;
38594 bool temp2 = false ;
38595 int val3 ;
38596 int ecode3 = 0 ;
38597 PyObject * obj0 = 0 ;
38598 PyObject * obj1 = 0 ;
38599 PyObject * obj2 = 0 ;
38600 char * kwnames[] = {
38601 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38602 };
38603
38604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38606 if (!SWIG_IsOK(res1)) {
38607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38608 }
38609 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38610 {
38611 arg2 = wxString_in_helper(obj1);
38612 if (arg2 == NULL) SWIG_fail;
38613 temp2 = true;
38614 }
38615 ecode3 = SWIG_AsVal_int(obj2, &val3);
38616 if (!SWIG_IsOK(ecode3)) {
38617 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38618 }
38619 arg3 = static_cast< int >(val3);
38620 {
38621 PyThreadState* __tstate = wxPyBeginAllowThreads();
38622 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38623 wxPyEndAllowThreads(__tstate);
38624 if (PyErr_Occurred()) SWIG_fail;
38625 }
38626 resultobj = SWIG_Py_Void();
38627 {
38628 if (temp2)
38629 delete arg2;
38630 }
38631 return resultobj;
38632 fail:
38633 {
38634 if (temp2)
38635 delete arg2;
38636 }
38637 return NULL;
38638 }
38639
38640
38641 SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38642 PyObject *obj;
38643 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38644 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38645 return SWIG_Py_Void();
38646 }
38647
38648 SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38649 return SWIG_Python_InitShadowInstance(args);
38650 }
38651
38652 SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38653 PyObject *resultobj = 0;
38654 wxWindow *arg1 = (wxWindow *) 0 ;
38655 int arg2 = (int) (int)-1 ;
38656 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38657 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38658 wxSize const &arg4_defvalue = wxDefaultSize ;
38659 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38660 long arg5 = (long) 0 ;
38661 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38662 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38663 wxString const &arg7_defvalue = wxPyControlNameStr ;
38664 wxString *arg7 = (wxString *) &arg7_defvalue ;
38665 wxPyControl *result = 0 ;
38666 void *argp1 = 0 ;
38667 int res1 = 0 ;
38668 int val2 ;
38669 int ecode2 = 0 ;
38670 wxPoint temp3 ;
38671 wxSize temp4 ;
38672 long val5 ;
38673 int ecode5 = 0 ;
38674 void *argp6 = 0 ;
38675 int res6 = 0 ;
38676 bool temp7 = false ;
38677 PyObject * obj0 = 0 ;
38678 PyObject * obj1 = 0 ;
38679 PyObject * obj2 = 0 ;
38680 PyObject * obj3 = 0 ;
38681 PyObject * obj4 = 0 ;
38682 PyObject * obj5 = 0 ;
38683 PyObject * obj6 = 0 ;
38684 char * kwnames[] = {
38685 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38686 };
38687
38688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38690 if (!SWIG_IsOK(res1)) {
38691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38692 }
38693 arg1 = reinterpret_cast< wxWindow * >(argp1);
38694 if (obj1) {
38695 ecode2 = SWIG_AsVal_int(obj1, &val2);
38696 if (!SWIG_IsOK(ecode2)) {
38697 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38698 }
38699 arg2 = static_cast< int >(val2);
38700 }
38701 if (obj2) {
38702 {
38703 arg3 = &temp3;
38704 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38705 }
38706 }
38707 if (obj3) {
38708 {
38709 arg4 = &temp4;
38710 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38711 }
38712 }
38713 if (obj4) {
38714 ecode5 = SWIG_AsVal_long(obj4, &val5);
38715 if (!SWIG_IsOK(ecode5)) {
38716 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38717 }
38718 arg5 = static_cast< long >(val5);
38719 }
38720 if (obj5) {
38721 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38722 if (!SWIG_IsOK(res6)) {
38723 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38724 }
38725 if (!argp6) {
38726 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38727 }
38728 arg6 = reinterpret_cast< wxValidator * >(argp6);
38729 }
38730 if (obj6) {
38731 {
38732 arg7 = wxString_in_helper(obj6);
38733 if (arg7 == NULL) SWIG_fail;
38734 temp7 = true;
38735 }
38736 }
38737 {
38738 if (!wxPyCheckForApp()) SWIG_fail;
38739 PyThreadState* __tstate = wxPyBeginAllowThreads();
38740 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38741 wxPyEndAllowThreads(__tstate);
38742 if (PyErr_Occurred()) SWIG_fail;
38743 }
38744 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38745 {
38746 if (temp7)
38747 delete arg7;
38748 }
38749 return resultobj;
38750 fail:
38751 {
38752 if (temp7)
38753 delete arg7;
38754 }
38755 return NULL;
38756 }
38757
38758
38759 SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38760 PyObject *resultobj = 0;
38761 wxPyControl *result = 0 ;
38762
38763 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38764 {
38765 if (!wxPyCheckForApp()) SWIG_fail;
38766 PyThreadState* __tstate = wxPyBeginAllowThreads();
38767 result = (wxPyControl *)new wxPyControl();
38768 wxPyEndAllowThreads(__tstate);
38769 if (PyErr_Occurred()) SWIG_fail;
38770 }
38771 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38772 return resultobj;
38773 fail:
38774 return NULL;
38775 }
38776
38777
38778 SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38779 PyObject *resultobj = 0;
38780 wxPyControl *arg1 = (wxPyControl *) 0 ;
38781 PyObject *arg2 = (PyObject *) 0 ;
38782 PyObject *arg3 = (PyObject *) 0 ;
38783 void *argp1 = 0 ;
38784 int res1 = 0 ;
38785 PyObject * obj0 = 0 ;
38786 PyObject * obj1 = 0 ;
38787 PyObject * obj2 = 0 ;
38788 char * kwnames[] = {
38789 (char *) "self",(char *) "self",(char *) "_class", NULL
38790 };
38791
38792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38794 if (!SWIG_IsOK(res1)) {
38795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38796 }
38797 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38798 arg2 = obj1;
38799 arg3 = obj2;
38800 {
38801 PyThreadState* __tstate = wxPyBeginAllowThreads();
38802 (arg1)->_setCallbackInfo(arg2,arg3);
38803 wxPyEndAllowThreads(__tstate);
38804 if (PyErr_Occurred()) SWIG_fail;
38805 }
38806 resultobj = SWIG_Py_Void();
38807 return resultobj;
38808 fail:
38809 return NULL;
38810 }
38811
38812
38813 SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38814 PyObject *resultobj = 0;
38815 wxPyControl *arg1 = (wxPyControl *) 0 ;
38816 wxSize *arg2 = 0 ;
38817 void *argp1 = 0 ;
38818 int res1 = 0 ;
38819 wxSize temp2 ;
38820 PyObject * obj0 = 0 ;
38821 PyObject * obj1 = 0 ;
38822 char * kwnames[] = {
38823 (char *) "self",(char *) "size", NULL
38824 };
38825
38826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
38827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38828 if (!SWIG_IsOK(res1)) {
38829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38830 }
38831 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38832 {
38833 arg2 = &temp2;
38834 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
38835 }
38836 {
38837 PyThreadState* __tstate = wxPyBeginAllowThreads();
38838 (arg1)->SetBestSize((wxSize const &)*arg2);
38839 wxPyEndAllowThreads(__tstate);
38840 if (PyErr_Occurred()) SWIG_fail;
38841 }
38842 resultobj = SWIG_Py_Void();
38843 return resultobj;
38844 fail:
38845 return NULL;
38846 }
38847
38848
38849 SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38850 PyObject *resultobj = 0;
38851 wxPyControl *arg1 = (wxPyControl *) 0 ;
38852 wxDC *arg2 = (wxDC *) 0 ;
38853 bool result;
38854 void *argp1 = 0 ;
38855 int res1 = 0 ;
38856 void *argp2 = 0 ;
38857 int res2 = 0 ;
38858 PyObject * obj0 = 0 ;
38859 PyObject * obj1 = 0 ;
38860 char * kwnames[] = {
38861 (char *) "self",(char *) "dc", NULL
38862 };
38863
38864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38866 if (!SWIG_IsOK(res1)) {
38867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38868 }
38869 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38870 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38871 if (!SWIG_IsOK(res2)) {
38872 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38873 }
38874 arg2 = reinterpret_cast< wxDC * >(argp2);
38875 {
38876 PyThreadState* __tstate = wxPyBeginAllowThreads();
38877 result = (bool)(arg1)->DoEraseBackground(arg2);
38878 wxPyEndAllowThreads(__tstate);
38879 if (PyErr_Occurred()) SWIG_fail;
38880 }
38881 {
38882 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38883 }
38884 return resultobj;
38885 fail:
38886 return NULL;
38887 }
38888
38889
38890 SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38891 PyObject *resultobj = 0;
38892 wxPyControl *arg1 = (wxPyControl *) 0 ;
38893 int arg2 ;
38894 int arg3 ;
38895 int arg4 ;
38896 int arg5 ;
38897 void *argp1 = 0 ;
38898 int res1 = 0 ;
38899 int val2 ;
38900 int ecode2 = 0 ;
38901 int val3 ;
38902 int ecode3 = 0 ;
38903 int val4 ;
38904 int ecode4 = 0 ;
38905 int val5 ;
38906 int ecode5 = 0 ;
38907 PyObject * obj0 = 0 ;
38908 PyObject * obj1 = 0 ;
38909 PyObject * obj2 = 0 ;
38910 PyObject * obj3 = 0 ;
38911 PyObject * obj4 = 0 ;
38912 char * kwnames[] = {
38913 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38914 };
38915
38916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38918 if (!SWIG_IsOK(res1)) {
38919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38920 }
38921 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38922 ecode2 = SWIG_AsVal_int(obj1, &val2);
38923 if (!SWIG_IsOK(ecode2)) {
38924 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38925 }
38926 arg2 = static_cast< int >(val2);
38927 ecode3 = SWIG_AsVal_int(obj2, &val3);
38928 if (!SWIG_IsOK(ecode3)) {
38929 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38930 }
38931 arg3 = static_cast< int >(val3);
38932 ecode4 = SWIG_AsVal_int(obj3, &val4);
38933 if (!SWIG_IsOK(ecode4)) {
38934 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38935 }
38936 arg4 = static_cast< int >(val4);
38937 ecode5 = SWIG_AsVal_int(obj4, &val5);
38938 if (!SWIG_IsOK(ecode5)) {
38939 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38940 }
38941 arg5 = static_cast< int >(val5);
38942 {
38943 PyThreadState* __tstate = wxPyBeginAllowThreads();
38944 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38945 wxPyEndAllowThreads(__tstate);
38946 if (PyErr_Occurred()) SWIG_fail;
38947 }
38948 resultobj = SWIG_Py_Void();
38949 return resultobj;
38950 fail:
38951 return NULL;
38952 }
38953
38954
38955 SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38956 PyObject *resultobj = 0;
38957 wxPyControl *arg1 = (wxPyControl *) 0 ;
38958 int arg2 ;
38959 int arg3 ;
38960 int arg4 ;
38961 int arg5 ;
38962 int arg6 = (int) wxSIZE_AUTO ;
38963 void *argp1 = 0 ;
38964 int res1 = 0 ;
38965 int val2 ;
38966 int ecode2 = 0 ;
38967 int val3 ;
38968 int ecode3 = 0 ;
38969 int val4 ;
38970 int ecode4 = 0 ;
38971 int val5 ;
38972 int ecode5 = 0 ;
38973 int val6 ;
38974 int ecode6 = 0 ;
38975 PyObject * obj0 = 0 ;
38976 PyObject * obj1 = 0 ;
38977 PyObject * obj2 = 0 ;
38978 PyObject * obj3 = 0 ;
38979 PyObject * obj4 = 0 ;
38980 PyObject * obj5 = 0 ;
38981 char * kwnames[] = {
38982 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38983 };
38984
38985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38987 if (!SWIG_IsOK(res1)) {
38988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38989 }
38990 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38991 ecode2 = SWIG_AsVal_int(obj1, &val2);
38992 if (!SWIG_IsOK(ecode2)) {
38993 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38994 }
38995 arg2 = static_cast< int >(val2);
38996 ecode3 = SWIG_AsVal_int(obj2, &val3);
38997 if (!SWIG_IsOK(ecode3)) {
38998 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38999 }
39000 arg3 = static_cast< int >(val3);
39001 ecode4 = SWIG_AsVal_int(obj3, &val4);
39002 if (!SWIG_IsOK(ecode4)) {
39003 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
39004 }
39005 arg4 = static_cast< int >(val4);
39006 ecode5 = SWIG_AsVal_int(obj4, &val5);
39007 if (!SWIG_IsOK(ecode5)) {
39008 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
39009 }
39010 arg5 = static_cast< int >(val5);
39011 if (obj5) {
39012 ecode6 = SWIG_AsVal_int(obj5, &val6);
39013 if (!SWIG_IsOK(ecode6)) {
39014 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
39015 }
39016 arg6 = static_cast< int >(val6);
39017 }
39018 {
39019 PyThreadState* __tstate = wxPyBeginAllowThreads();
39020 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
39021 wxPyEndAllowThreads(__tstate);
39022 if (PyErr_Occurred()) SWIG_fail;
39023 }
39024 resultobj = SWIG_Py_Void();
39025 return resultobj;
39026 fail:
39027 return NULL;
39028 }
39029
39030
39031 SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39032 PyObject *resultobj = 0;
39033 wxPyControl *arg1 = (wxPyControl *) 0 ;
39034 int arg2 ;
39035 int arg3 ;
39036 void *argp1 = 0 ;
39037 int res1 = 0 ;
39038 int val2 ;
39039 int ecode2 = 0 ;
39040 int val3 ;
39041 int ecode3 = 0 ;
39042 PyObject * obj0 = 0 ;
39043 PyObject * obj1 = 0 ;
39044 PyObject * obj2 = 0 ;
39045 char * kwnames[] = {
39046 (char *) "self",(char *) "width",(char *) "height", NULL
39047 };
39048
39049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39051 if (!SWIG_IsOK(res1)) {
39052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39053 }
39054 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39055 ecode2 = SWIG_AsVal_int(obj1, &val2);
39056 if (!SWIG_IsOK(ecode2)) {
39057 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
39058 }
39059 arg2 = static_cast< int >(val2);
39060 ecode3 = SWIG_AsVal_int(obj2, &val3);
39061 if (!SWIG_IsOK(ecode3)) {
39062 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
39063 }
39064 arg3 = static_cast< int >(val3);
39065 {
39066 PyThreadState* __tstate = wxPyBeginAllowThreads();
39067 (arg1)->DoSetClientSize(arg2,arg3);
39068 wxPyEndAllowThreads(__tstate);
39069 if (PyErr_Occurred()) SWIG_fail;
39070 }
39071 resultobj = SWIG_Py_Void();
39072 return resultobj;
39073 fail:
39074 return NULL;
39075 }
39076
39077
39078 SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39079 PyObject *resultobj = 0;
39080 wxPyControl *arg1 = (wxPyControl *) 0 ;
39081 int arg2 ;
39082 int arg3 ;
39083 void *argp1 = 0 ;
39084 int res1 = 0 ;
39085 int val2 ;
39086 int ecode2 = 0 ;
39087 int val3 ;
39088 int ecode3 = 0 ;
39089 PyObject * obj0 = 0 ;
39090 PyObject * obj1 = 0 ;
39091 PyObject * obj2 = 0 ;
39092 char * kwnames[] = {
39093 (char *) "self",(char *) "x",(char *) "y", NULL
39094 };
39095
39096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39098 if (!SWIG_IsOK(res1)) {
39099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39100 }
39101 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39102 ecode2 = SWIG_AsVal_int(obj1, &val2);
39103 if (!SWIG_IsOK(ecode2)) {
39104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
39105 }
39106 arg2 = static_cast< int >(val2);
39107 ecode3 = SWIG_AsVal_int(obj2, &val3);
39108 if (!SWIG_IsOK(ecode3)) {
39109 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
39110 }
39111 arg3 = static_cast< int >(val3);
39112 {
39113 PyThreadState* __tstate = wxPyBeginAllowThreads();
39114 (arg1)->DoSetVirtualSize(arg2,arg3);
39115 wxPyEndAllowThreads(__tstate);
39116 if (PyErr_Occurred()) SWIG_fail;
39117 }
39118 resultobj = SWIG_Py_Void();
39119 return resultobj;
39120 fail:
39121 return NULL;
39122 }
39123
39124
39125 SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39126 PyObject *resultobj = 0;
39127 wxPyControl *arg1 = (wxPyControl *) 0 ;
39128 int *arg2 = (int *) 0 ;
39129 int *arg3 = (int *) 0 ;
39130 void *argp1 = 0 ;
39131 int res1 = 0 ;
39132 int temp2 ;
39133 int res2 = SWIG_TMPOBJ ;
39134 int temp3 ;
39135 int res3 = SWIG_TMPOBJ ;
39136 PyObject *swig_obj[1] ;
39137
39138 arg2 = &temp2;
39139 arg3 = &temp3;
39140 if (!args) SWIG_fail;
39141 swig_obj[0] = args;
39142 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39143 if (!SWIG_IsOK(res1)) {
39144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39145 }
39146 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39147 {
39148 PyThreadState* __tstate = wxPyBeginAllowThreads();
39149 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
39150 wxPyEndAllowThreads(__tstate);
39151 if (PyErr_Occurred()) SWIG_fail;
39152 }
39153 resultobj = SWIG_Py_Void();
39154 if (SWIG_IsTmpObj(res2)) {
39155 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39156 } else {
39157 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39158 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39159 }
39160 if (SWIG_IsTmpObj(res3)) {
39161 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39162 } else {
39163 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39164 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39165 }
39166 return resultobj;
39167 fail:
39168 return NULL;
39169 }
39170
39171
39172 SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39173 PyObject *resultobj = 0;
39174 wxPyControl *arg1 = (wxPyControl *) 0 ;
39175 int *arg2 = (int *) 0 ;
39176 int *arg3 = (int *) 0 ;
39177 void *argp1 = 0 ;
39178 int res1 = 0 ;
39179 int temp2 ;
39180 int res2 = SWIG_TMPOBJ ;
39181 int temp3 ;
39182 int res3 = SWIG_TMPOBJ ;
39183 PyObject *swig_obj[1] ;
39184
39185 arg2 = &temp2;
39186 arg3 = &temp3;
39187 if (!args) SWIG_fail;
39188 swig_obj[0] = args;
39189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39190 if (!SWIG_IsOK(res1)) {
39191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39192 }
39193 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39194 {
39195 PyThreadState* __tstate = wxPyBeginAllowThreads();
39196 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
39197 wxPyEndAllowThreads(__tstate);
39198 if (PyErr_Occurred()) SWIG_fail;
39199 }
39200 resultobj = SWIG_Py_Void();
39201 if (SWIG_IsTmpObj(res2)) {
39202 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39203 } else {
39204 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39205 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39206 }
39207 if (SWIG_IsTmpObj(res3)) {
39208 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39209 } else {
39210 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39211 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39212 }
39213 return resultobj;
39214 fail:
39215 return NULL;
39216 }
39217
39218
39219 SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39220 PyObject *resultobj = 0;
39221 wxPyControl *arg1 = (wxPyControl *) 0 ;
39222 int *arg2 = (int *) 0 ;
39223 int *arg3 = (int *) 0 ;
39224 void *argp1 = 0 ;
39225 int res1 = 0 ;
39226 int temp2 ;
39227 int res2 = SWIG_TMPOBJ ;
39228 int temp3 ;
39229 int res3 = SWIG_TMPOBJ ;
39230 PyObject *swig_obj[1] ;
39231
39232 arg2 = &temp2;
39233 arg3 = &temp3;
39234 if (!args) SWIG_fail;
39235 swig_obj[0] = args;
39236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39237 if (!SWIG_IsOK(res1)) {
39238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39239 }
39240 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39241 {
39242 PyThreadState* __tstate = wxPyBeginAllowThreads();
39243 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
39244 wxPyEndAllowThreads(__tstate);
39245 if (PyErr_Occurred()) SWIG_fail;
39246 }
39247 resultobj = SWIG_Py_Void();
39248 if (SWIG_IsTmpObj(res2)) {
39249 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39250 } else {
39251 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39252 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39253 }
39254 if (SWIG_IsTmpObj(res3)) {
39255 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39256 } else {
39257 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39258 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39259 }
39260 return resultobj;
39261 fail:
39262 return NULL;
39263 }
39264
39265
39266 SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39267 PyObject *resultobj = 0;
39268 wxPyControl *arg1 = (wxPyControl *) 0 ;
39269 wxSize result;
39270 void *argp1 = 0 ;
39271 int res1 = 0 ;
39272 PyObject *swig_obj[1] ;
39273
39274 if (!args) SWIG_fail;
39275 swig_obj[0] = args;
39276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39277 if (!SWIG_IsOK(res1)) {
39278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39279 }
39280 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39281 {
39282 PyThreadState* __tstate = wxPyBeginAllowThreads();
39283 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
39284 wxPyEndAllowThreads(__tstate);
39285 if (PyErr_Occurred()) SWIG_fail;
39286 }
39287 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39288 return resultobj;
39289 fail:
39290 return NULL;
39291 }
39292
39293
39294 SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39295 PyObject *resultobj = 0;
39296 wxPyControl *arg1 = (wxPyControl *) 0 ;
39297 wxSize result;
39298 void *argp1 = 0 ;
39299 int res1 = 0 ;
39300 PyObject *swig_obj[1] ;
39301
39302 if (!args) SWIG_fail;
39303 swig_obj[0] = args;
39304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39305 if (!SWIG_IsOK(res1)) {
39306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39307 }
39308 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39309 {
39310 PyThreadState* __tstate = wxPyBeginAllowThreads();
39311 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39312 wxPyEndAllowThreads(__tstate);
39313 if (PyErr_Occurred()) SWIG_fail;
39314 }
39315 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39316 return resultobj;
39317 fail:
39318 return NULL;
39319 }
39320
39321
39322 SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39323 PyObject *resultobj = 0;
39324 wxPyControl *arg1 = (wxPyControl *) 0 ;
39325 SwigValueWrapper<wxVisualAttributes > result;
39326 void *argp1 = 0 ;
39327 int res1 = 0 ;
39328 PyObject *swig_obj[1] ;
39329
39330 if (!args) SWIG_fail;
39331 swig_obj[0] = args;
39332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39333 if (!SWIG_IsOK(res1)) {
39334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39335 }
39336 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39337 {
39338 PyThreadState* __tstate = wxPyBeginAllowThreads();
39339 result = (arg1)->GetDefaultAttributes();
39340 wxPyEndAllowThreads(__tstate);
39341 if (PyErr_Occurred()) SWIG_fail;
39342 }
39343 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39344 return resultobj;
39345 fail:
39346 return NULL;
39347 }
39348
39349
39350 SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39351 PyObject *resultobj = 0;
39352 wxPyControl *arg1 = (wxPyControl *) 0 ;
39353 void *argp1 = 0 ;
39354 int res1 = 0 ;
39355 PyObject *swig_obj[1] ;
39356
39357 if (!args) SWIG_fail;
39358 swig_obj[0] = args;
39359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39360 if (!SWIG_IsOK(res1)) {
39361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39362 }
39363 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39364 {
39365 PyThreadState* __tstate = wxPyBeginAllowThreads();
39366 (arg1)->OnInternalIdle();
39367 wxPyEndAllowThreads(__tstate);
39368 if (PyErr_Occurred()) SWIG_fail;
39369 }
39370 resultobj = SWIG_Py_Void();
39371 return resultobj;
39372 fail:
39373 return NULL;
39374 }
39375
39376
39377 SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39378 PyObject *obj;
39379 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39380 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39381 return SWIG_Py_Void();
39382 }
39383
39384 SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39385 return SWIG_Python_InitShadowInstance(args);
39386 }
39387
39388 SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39389 PyObject *resultobj = 0;
39390 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39391 int arg2 = (int) 0 ;
39392 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39393 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39394 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
39395 wxHelpEvent *result = 0 ;
39396 int val1 ;
39397 int ecode1 = 0 ;
39398 int val2 ;
39399 int ecode2 = 0 ;
39400 wxPoint temp3 ;
39401 int val4 ;
39402 int ecode4 = 0 ;
39403 PyObject * obj0 = 0 ;
39404 PyObject * obj1 = 0 ;
39405 PyObject * obj2 = 0 ;
39406 PyObject * obj3 = 0 ;
39407 char * kwnames[] = {
39408 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
39409 };
39410
39411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39412 if (obj0) {
39413 ecode1 = SWIG_AsVal_int(obj0, &val1);
39414 if (!SWIG_IsOK(ecode1)) {
39415 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39416 }
39417 arg1 = static_cast< wxEventType >(val1);
39418 }
39419 if (obj1) {
39420 ecode2 = SWIG_AsVal_int(obj1, &val2);
39421 if (!SWIG_IsOK(ecode2)) {
39422 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39423 }
39424 arg2 = static_cast< int >(val2);
39425 }
39426 if (obj2) {
39427 {
39428 arg3 = &temp3;
39429 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39430 }
39431 }
39432 if (obj3) {
39433 ecode4 = SWIG_AsVal_int(obj3, &val4);
39434 if (!SWIG_IsOK(ecode4)) {
39435 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39436 }
39437 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39438 }
39439 {
39440 PyThreadState* __tstate = wxPyBeginAllowThreads();
39441 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
39442 wxPyEndAllowThreads(__tstate);
39443 if (PyErr_Occurred()) SWIG_fail;
39444 }
39445 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39446 return resultobj;
39447 fail:
39448 return NULL;
39449 }
39450
39451
39452 SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39453 PyObject *resultobj = 0;
39454 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39455 wxPoint result;
39456 void *argp1 = 0 ;
39457 int res1 = 0 ;
39458 PyObject *swig_obj[1] ;
39459
39460 if (!args) SWIG_fail;
39461 swig_obj[0] = args;
39462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39463 if (!SWIG_IsOK(res1)) {
39464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39465 }
39466 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39467 {
39468 PyThreadState* __tstate = wxPyBeginAllowThreads();
39469 result = ((wxHelpEvent const *)arg1)->GetPosition();
39470 wxPyEndAllowThreads(__tstate);
39471 if (PyErr_Occurred()) SWIG_fail;
39472 }
39473 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39474 return resultobj;
39475 fail:
39476 return NULL;
39477 }
39478
39479
39480 SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39481 PyObject *resultobj = 0;
39482 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39483 wxPoint *arg2 = 0 ;
39484 void *argp1 = 0 ;
39485 int res1 = 0 ;
39486 wxPoint temp2 ;
39487 PyObject * obj0 = 0 ;
39488 PyObject * obj1 = 0 ;
39489 char * kwnames[] = {
39490 (char *) "self",(char *) "pos", NULL
39491 };
39492
39493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39495 if (!SWIG_IsOK(res1)) {
39496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39497 }
39498 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39499 {
39500 arg2 = &temp2;
39501 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39502 }
39503 {
39504 PyThreadState* __tstate = wxPyBeginAllowThreads();
39505 (arg1)->SetPosition((wxPoint const &)*arg2);
39506 wxPyEndAllowThreads(__tstate);
39507 if (PyErr_Occurred()) SWIG_fail;
39508 }
39509 resultobj = SWIG_Py_Void();
39510 return resultobj;
39511 fail:
39512 return NULL;
39513 }
39514
39515
39516 SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39517 PyObject *resultobj = 0;
39518 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39519 wxString *result = 0 ;
39520 void *argp1 = 0 ;
39521 int res1 = 0 ;
39522 PyObject *swig_obj[1] ;
39523
39524 if (!args) SWIG_fail;
39525 swig_obj[0] = args;
39526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39527 if (!SWIG_IsOK(res1)) {
39528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39529 }
39530 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39531 {
39532 PyThreadState* __tstate = wxPyBeginAllowThreads();
39533 {
39534 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39535 result = (wxString *) &_result_ref;
39536 }
39537 wxPyEndAllowThreads(__tstate);
39538 if (PyErr_Occurred()) SWIG_fail;
39539 }
39540 {
39541 #if wxUSE_UNICODE
39542 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39543 #else
39544 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39545 #endif
39546 }
39547 return resultobj;
39548 fail:
39549 return NULL;
39550 }
39551
39552
39553 SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39554 PyObject *resultobj = 0;
39555 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39556 wxString *arg2 = 0 ;
39557 void *argp1 = 0 ;
39558 int res1 = 0 ;
39559 bool temp2 = false ;
39560 PyObject * obj0 = 0 ;
39561 PyObject * obj1 = 0 ;
39562 char * kwnames[] = {
39563 (char *) "self",(char *) "link", NULL
39564 };
39565
39566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39568 if (!SWIG_IsOK(res1)) {
39569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39570 }
39571 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39572 {
39573 arg2 = wxString_in_helper(obj1);
39574 if (arg2 == NULL) SWIG_fail;
39575 temp2 = true;
39576 }
39577 {
39578 PyThreadState* __tstate = wxPyBeginAllowThreads();
39579 (arg1)->SetLink((wxString const &)*arg2);
39580 wxPyEndAllowThreads(__tstate);
39581 if (PyErr_Occurred()) SWIG_fail;
39582 }
39583 resultobj = SWIG_Py_Void();
39584 {
39585 if (temp2)
39586 delete arg2;
39587 }
39588 return resultobj;
39589 fail:
39590 {
39591 if (temp2)
39592 delete arg2;
39593 }
39594 return NULL;
39595 }
39596
39597
39598 SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39599 PyObject *resultobj = 0;
39600 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39601 wxString *result = 0 ;
39602 void *argp1 = 0 ;
39603 int res1 = 0 ;
39604 PyObject *swig_obj[1] ;
39605
39606 if (!args) SWIG_fail;
39607 swig_obj[0] = args;
39608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39609 if (!SWIG_IsOK(res1)) {
39610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39611 }
39612 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39613 {
39614 PyThreadState* __tstate = wxPyBeginAllowThreads();
39615 {
39616 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39617 result = (wxString *) &_result_ref;
39618 }
39619 wxPyEndAllowThreads(__tstate);
39620 if (PyErr_Occurred()) SWIG_fail;
39621 }
39622 {
39623 #if wxUSE_UNICODE
39624 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39625 #else
39626 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39627 #endif
39628 }
39629 return resultobj;
39630 fail:
39631 return NULL;
39632 }
39633
39634
39635 SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39636 PyObject *resultobj = 0;
39637 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39638 wxString *arg2 = 0 ;
39639 void *argp1 = 0 ;
39640 int res1 = 0 ;
39641 bool temp2 = false ;
39642 PyObject * obj0 = 0 ;
39643 PyObject * obj1 = 0 ;
39644 char * kwnames[] = {
39645 (char *) "self",(char *) "target", NULL
39646 };
39647
39648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39650 if (!SWIG_IsOK(res1)) {
39651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39652 }
39653 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39654 {
39655 arg2 = wxString_in_helper(obj1);
39656 if (arg2 == NULL) SWIG_fail;
39657 temp2 = true;
39658 }
39659 {
39660 PyThreadState* __tstate = wxPyBeginAllowThreads();
39661 (arg1)->SetTarget((wxString const &)*arg2);
39662 wxPyEndAllowThreads(__tstate);
39663 if (PyErr_Occurred()) SWIG_fail;
39664 }
39665 resultobj = SWIG_Py_Void();
39666 {
39667 if (temp2)
39668 delete arg2;
39669 }
39670 return resultobj;
39671 fail:
39672 {
39673 if (temp2)
39674 delete arg2;
39675 }
39676 return NULL;
39677 }
39678
39679
39680 SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39681 PyObject *resultobj = 0;
39682 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39683 wxHelpEvent::Origin result;
39684 void *argp1 = 0 ;
39685 int res1 = 0 ;
39686 PyObject *swig_obj[1] ;
39687
39688 if (!args) SWIG_fail;
39689 swig_obj[0] = args;
39690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39691 if (!SWIG_IsOK(res1)) {
39692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39693 }
39694 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39695 {
39696 PyThreadState* __tstate = wxPyBeginAllowThreads();
39697 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39698 wxPyEndAllowThreads(__tstate);
39699 if (PyErr_Occurred()) SWIG_fail;
39700 }
39701 resultobj = SWIG_From_int(static_cast< int >(result));
39702 return resultobj;
39703 fail:
39704 return NULL;
39705 }
39706
39707
39708 SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39709 PyObject *resultobj = 0;
39710 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39711 wxHelpEvent::Origin arg2 ;
39712 void *argp1 = 0 ;
39713 int res1 = 0 ;
39714 int val2 ;
39715 int ecode2 = 0 ;
39716 PyObject * obj0 = 0 ;
39717 PyObject * obj1 = 0 ;
39718 char * kwnames[] = {
39719 (char *) "self",(char *) "origin", NULL
39720 };
39721
39722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39724 if (!SWIG_IsOK(res1)) {
39725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39726 }
39727 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39728 ecode2 = SWIG_AsVal_int(obj1, &val2);
39729 if (!SWIG_IsOK(ecode2)) {
39730 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39731 }
39732 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39733 {
39734 PyThreadState* __tstate = wxPyBeginAllowThreads();
39735 (arg1)->SetOrigin(arg2);
39736 wxPyEndAllowThreads(__tstate);
39737 if (PyErr_Occurred()) SWIG_fail;
39738 }
39739 resultobj = SWIG_Py_Void();
39740 return resultobj;
39741 fail:
39742 return NULL;
39743 }
39744
39745
39746 SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39747 PyObject *obj;
39748 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39749 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39750 return SWIG_Py_Void();
39751 }
39752
39753 SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39754 return SWIG_Python_InitShadowInstance(args);
39755 }
39756
39757 SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39758 PyObject *resultobj = 0;
39759 wxWindow *arg1 = (wxWindow *) NULL ;
39760 bool arg2 = (bool) true ;
39761 wxContextHelp *result = 0 ;
39762 void *argp1 = 0 ;
39763 int res1 = 0 ;
39764 bool val2 ;
39765 int ecode2 = 0 ;
39766 PyObject * obj0 = 0 ;
39767 PyObject * obj1 = 0 ;
39768 char * kwnames[] = {
39769 (char *) "window",(char *) "doNow", NULL
39770 };
39771
39772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39773 if (obj0) {
39774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39775 if (!SWIG_IsOK(res1)) {
39776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
39777 }
39778 arg1 = reinterpret_cast< wxWindow * >(argp1);
39779 }
39780 if (obj1) {
39781 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39782 if (!SWIG_IsOK(ecode2)) {
39783 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39784 }
39785 arg2 = static_cast< bool >(val2);
39786 }
39787 {
39788 if (!wxPyCheckForApp()) SWIG_fail;
39789 PyThreadState* __tstate = wxPyBeginAllowThreads();
39790 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39791 wxPyEndAllowThreads(__tstate);
39792 if (PyErr_Occurred()) SWIG_fail;
39793 }
39794 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39795 return resultobj;
39796 fail:
39797 return NULL;
39798 }
39799
39800
39801 SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39802 PyObject *resultobj = 0;
39803 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39804 void *argp1 = 0 ;
39805 int res1 = 0 ;
39806 PyObject *swig_obj[1] ;
39807
39808 if (!args) SWIG_fail;
39809 swig_obj[0] = args;
39810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39811 if (!SWIG_IsOK(res1)) {
39812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39813 }
39814 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39815 {
39816 PyThreadState* __tstate = wxPyBeginAllowThreads();
39817 delete arg1;
39818
39819 wxPyEndAllowThreads(__tstate);
39820 if (PyErr_Occurred()) SWIG_fail;
39821 }
39822 resultobj = SWIG_Py_Void();
39823 return resultobj;
39824 fail:
39825 return NULL;
39826 }
39827
39828
39829 SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39830 PyObject *resultobj = 0;
39831 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39832 wxWindow *arg2 = (wxWindow *) NULL ;
39833 bool result;
39834 void *argp1 = 0 ;
39835 int res1 = 0 ;
39836 void *argp2 = 0 ;
39837 int res2 = 0 ;
39838 PyObject * obj0 = 0 ;
39839 PyObject * obj1 = 0 ;
39840 char * kwnames[] = {
39841 (char *) "self",(char *) "window", NULL
39842 };
39843
39844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39846 if (!SWIG_IsOK(res1)) {
39847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39848 }
39849 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39850 if (obj1) {
39851 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39852 if (!SWIG_IsOK(res2)) {
39853 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39854 }
39855 arg2 = reinterpret_cast< wxWindow * >(argp2);
39856 }
39857 {
39858 PyThreadState* __tstate = wxPyBeginAllowThreads();
39859 result = (bool)(arg1)->BeginContextHelp(arg2);
39860 wxPyEndAllowThreads(__tstate);
39861 if (PyErr_Occurred()) SWIG_fail;
39862 }
39863 {
39864 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39865 }
39866 return resultobj;
39867 fail:
39868 return NULL;
39869 }
39870
39871
39872 SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39873 PyObject *resultobj = 0;
39874 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39875 bool result;
39876 void *argp1 = 0 ;
39877 int res1 = 0 ;
39878 PyObject *swig_obj[1] ;
39879
39880 if (!args) SWIG_fail;
39881 swig_obj[0] = args;
39882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39883 if (!SWIG_IsOK(res1)) {
39884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39885 }
39886 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39887 {
39888 PyThreadState* __tstate = wxPyBeginAllowThreads();
39889 result = (bool)(arg1)->EndContextHelp();
39890 wxPyEndAllowThreads(__tstate);
39891 if (PyErr_Occurred()) SWIG_fail;
39892 }
39893 {
39894 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39895 }
39896 return resultobj;
39897 fail:
39898 return NULL;
39899 }
39900
39901
39902 SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39903 PyObject *obj;
39904 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39905 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39906 return SWIG_Py_Void();
39907 }
39908
39909 SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39910 return SWIG_Python_InitShadowInstance(args);
39911 }
39912
39913 SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39914 PyObject *resultobj = 0;
39915 wxWindow *arg1 = (wxWindow *) 0 ;
39916 int arg2 = (int) wxID_CONTEXT_HELP ;
39917 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39918 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39919 wxSize const &arg4_defvalue = wxDefaultSize ;
39920 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39921 long arg5 = (long) wxBU_AUTODRAW ;
39922 wxContextHelpButton *result = 0 ;
39923 void *argp1 = 0 ;
39924 int res1 = 0 ;
39925 int val2 ;
39926 int ecode2 = 0 ;
39927 wxPoint temp3 ;
39928 wxSize temp4 ;
39929 long val5 ;
39930 int ecode5 = 0 ;
39931 PyObject * obj0 = 0 ;
39932 PyObject * obj1 = 0 ;
39933 PyObject * obj2 = 0 ;
39934 PyObject * obj3 = 0 ;
39935 PyObject * obj4 = 0 ;
39936 char * kwnames[] = {
39937 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39938 };
39939
39940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39942 if (!SWIG_IsOK(res1)) {
39943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39944 }
39945 arg1 = reinterpret_cast< wxWindow * >(argp1);
39946 if (obj1) {
39947 ecode2 = SWIG_AsVal_int(obj1, &val2);
39948 if (!SWIG_IsOK(ecode2)) {
39949 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39950 }
39951 arg2 = static_cast< int >(val2);
39952 }
39953 if (obj2) {
39954 {
39955 arg3 = &temp3;
39956 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39957 }
39958 }
39959 if (obj3) {
39960 {
39961 arg4 = &temp4;
39962 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
39963 }
39964 }
39965 if (obj4) {
39966 ecode5 = SWIG_AsVal_long(obj4, &val5);
39967 if (!SWIG_IsOK(ecode5)) {
39968 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39969 }
39970 arg5 = static_cast< long >(val5);
39971 }
39972 {
39973 if (!wxPyCheckForApp()) SWIG_fail;
39974 PyThreadState* __tstate = wxPyBeginAllowThreads();
39975 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39976 wxPyEndAllowThreads(__tstate);
39977 if (PyErr_Occurred()) SWIG_fail;
39978 }
39979 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39980 return resultobj;
39981 fail:
39982 return NULL;
39983 }
39984
39985
39986 SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39987 PyObject *obj;
39988 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39989 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39990 return SWIG_Py_Void();
39991 }
39992
39993 SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39994 return SWIG_Python_InitShadowInstance(args);
39995 }
39996
39997 SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39998 PyObject *resultobj = 0;
39999 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40000 void *argp1 = 0 ;
40001 int res1 = 0 ;
40002 PyObject *swig_obj[1] ;
40003
40004 if (!args) SWIG_fail;
40005 swig_obj[0] = args;
40006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40007 if (!SWIG_IsOK(res1)) {
40008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40009 }
40010 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40011 {
40012 PyThreadState* __tstate = wxPyBeginAllowThreads();
40013 delete arg1;
40014
40015 wxPyEndAllowThreads(__tstate);
40016 if (PyErr_Occurred()) SWIG_fail;
40017 }
40018 resultobj = SWIG_Py_Void();
40019 return resultobj;
40020 fail:
40021 return NULL;
40022 }
40023
40024
40025 SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40026 PyObject *resultobj = 0;
40027 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40028 wxHelpProvider *result = 0 ;
40029 int res1 = 0 ;
40030 PyObject * obj0 = 0 ;
40031 char * kwnames[] = {
40032 (char *) "helpProvider", NULL
40033 };
40034
40035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
40036 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
40037 if (!SWIG_IsOK(res1)) {
40038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40039 }
40040 {
40041 PyThreadState* __tstate = wxPyBeginAllowThreads();
40042 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
40043 wxPyEndAllowThreads(__tstate);
40044 if (PyErr_Occurred()) SWIG_fail;
40045 }
40046 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
40047 return resultobj;
40048 fail:
40049 return NULL;
40050 }
40051
40052
40053 SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40054 PyObject *resultobj = 0;
40055 wxHelpProvider *result = 0 ;
40056
40057 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
40058 {
40059 PyThreadState* __tstate = wxPyBeginAllowThreads();
40060 result = (wxHelpProvider *)wxHelpProvider::Get();
40061 wxPyEndAllowThreads(__tstate);
40062 if (PyErr_Occurred()) SWIG_fail;
40063 }
40064 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40065 return resultobj;
40066 fail:
40067 return NULL;
40068 }
40069
40070
40071 SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40072 PyObject *resultobj = 0;
40073 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40074 wxWindow *arg2 = (wxWindow *) 0 ;
40075 wxString result;
40076 void *argp1 = 0 ;
40077 int res1 = 0 ;
40078 void *argp2 = 0 ;
40079 int res2 = 0 ;
40080 PyObject * obj0 = 0 ;
40081 PyObject * obj1 = 0 ;
40082 char * kwnames[] = {
40083 (char *) "self",(char *) "window", NULL
40084 };
40085
40086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40088 if (!SWIG_IsOK(res1)) {
40089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40090 }
40091 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40092 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40093 if (!SWIG_IsOK(res2)) {
40094 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
40095 }
40096 arg2 = reinterpret_cast< wxWindow * >(argp2);
40097 {
40098 PyThreadState* __tstate = wxPyBeginAllowThreads();
40099 result = (arg1)->GetHelp((wxWindow const *)arg2);
40100 wxPyEndAllowThreads(__tstate);
40101 if (PyErr_Occurred()) SWIG_fail;
40102 }
40103 {
40104 #if wxUSE_UNICODE
40105 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
40106 #else
40107 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
40108 #endif
40109 }
40110 return resultobj;
40111 fail:
40112 return NULL;
40113 }
40114
40115
40116 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40117 PyObject *resultobj = 0;
40118 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40119 wxWindow *arg2 = (wxWindow *) 0 ;
40120 bool result;
40121 void *argp1 = 0 ;
40122 int res1 = 0 ;
40123 void *argp2 = 0 ;
40124 int res2 = 0 ;
40125 PyObject * obj0 = 0 ;
40126 PyObject * obj1 = 0 ;
40127 char * kwnames[] = {
40128 (char *) "self",(char *) "window", NULL
40129 };
40130
40131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40133 if (!SWIG_IsOK(res1)) {
40134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40135 }
40136 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40137 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40138 if (!SWIG_IsOK(res2)) {
40139 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40140 }
40141 arg2 = reinterpret_cast< wxWindow * >(argp2);
40142 {
40143 PyThreadState* __tstate = wxPyBeginAllowThreads();
40144 result = (bool)(arg1)->ShowHelp(arg2);
40145 wxPyEndAllowThreads(__tstate);
40146 if (PyErr_Occurred()) SWIG_fail;
40147 }
40148 {
40149 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40150 }
40151 return resultobj;
40152 fail:
40153 return NULL;
40154 }
40155
40156
40157 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40158 PyObject *resultobj = 0;
40159 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40160 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
40161 wxPoint *arg3 = 0 ;
40162 wxHelpEvent::Origin arg4 ;
40163 bool result;
40164 void *argp1 = 0 ;
40165 int res1 = 0 ;
40166 void *argp2 = 0 ;
40167 int res2 = 0 ;
40168 wxPoint temp3 ;
40169 int val4 ;
40170 int ecode4 = 0 ;
40171 PyObject * obj0 = 0 ;
40172 PyObject * obj1 = 0 ;
40173 PyObject * obj2 = 0 ;
40174 PyObject * obj3 = 0 ;
40175 char * kwnames[] = {
40176 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
40177 };
40178
40179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40181 if (!SWIG_IsOK(res1)) {
40182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40183 }
40184 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40185 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
40186 if (!SWIG_IsOK(res2)) {
40187 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
40188 }
40189 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
40190 {
40191 arg3 = &temp3;
40192 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40193 }
40194 ecode4 = SWIG_AsVal_int(obj3, &val4);
40195 if (!SWIG_IsOK(ecode4)) {
40196 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
40197 }
40198 arg4 = static_cast< wxHelpEvent::Origin >(val4);
40199 {
40200 PyThreadState* __tstate = wxPyBeginAllowThreads();
40201 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
40202 wxPyEndAllowThreads(__tstate);
40203 if (PyErr_Occurred()) SWIG_fail;
40204 }
40205 {
40206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40207 }
40208 return resultobj;
40209 fail:
40210 return NULL;
40211 }
40212
40213
40214 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40215 PyObject *resultobj = 0;
40216 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40217 wxWindow *arg2 = (wxWindow *) 0 ;
40218 wxString *arg3 = 0 ;
40219 void *argp1 = 0 ;
40220 int res1 = 0 ;
40221 void *argp2 = 0 ;
40222 int res2 = 0 ;
40223 bool temp3 = false ;
40224 PyObject * obj0 = 0 ;
40225 PyObject * obj1 = 0 ;
40226 PyObject * obj2 = 0 ;
40227 char * kwnames[] = {
40228 (char *) "self",(char *) "window",(char *) "text", NULL
40229 };
40230
40231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40233 if (!SWIG_IsOK(res1)) {
40234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40235 }
40236 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40237 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40238 if (!SWIG_IsOK(res2)) {
40239 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40240 }
40241 arg2 = reinterpret_cast< wxWindow * >(argp2);
40242 {
40243 arg3 = wxString_in_helper(obj2);
40244 if (arg3 == NULL) SWIG_fail;
40245 temp3 = true;
40246 }
40247 {
40248 PyThreadState* __tstate = wxPyBeginAllowThreads();
40249 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40250 wxPyEndAllowThreads(__tstate);
40251 if (PyErr_Occurred()) SWIG_fail;
40252 }
40253 resultobj = SWIG_Py_Void();
40254 {
40255 if (temp3)
40256 delete arg3;
40257 }
40258 return resultobj;
40259 fail:
40260 {
40261 if (temp3)
40262 delete arg3;
40263 }
40264 return NULL;
40265 }
40266
40267
40268 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40269 PyObject *resultobj = 0;
40270 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40271 int arg2 ;
40272 wxString *arg3 = 0 ;
40273 void *argp1 = 0 ;
40274 int res1 = 0 ;
40275 int val2 ;
40276 int ecode2 = 0 ;
40277 bool temp3 = false ;
40278 PyObject * obj0 = 0 ;
40279 PyObject * obj1 = 0 ;
40280 PyObject * obj2 = 0 ;
40281 char * kwnames[] = {
40282 (char *) "self",(char *) "id",(char *) "text", NULL
40283 };
40284
40285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40287 if (!SWIG_IsOK(res1)) {
40288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40289 }
40290 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40291 ecode2 = SWIG_AsVal_int(obj1, &val2);
40292 if (!SWIG_IsOK(ecode2)) {
40293 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40294 }
40295 arg2 = static_cast< int >(val2);
40296 {
40297 arg3 = wxString_in_helper(obj2);
40298 if (arg3 == NULL) SWIG_fail;
40299 temp3 = true;
40300 }
40301 {
40302 PyThreadState* __tstate = wxPyBeginAllowThreads();
40303 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40304 wxPyEndAllowThreads(__tstate);
40305 if (PyErr_Occurred()) SWIG_fail;
40306 }
40307 resultobj = SWIG_Py_Void();
40308 {
40309 if (temp3)
40310 delete arg3;
40311 }
40312 return resultobj;
40313 fail:
40314 {
40315 if (temp3)
40316 delete arg3;
40317 }
40318 return NULL;
40319 }
40320
40321
40322 SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40323 PyObject *resultobj = 0;
40324 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40325 wxWindow *arg2 = (wxWindow *) 0 ;
40326 void *argp1 = 0 ;
40327 int res1 = 0 ;
40328 void *argp2 = 0 ;
40329 int res2 = 0 ;
40330 PyObject * obj0 = 0 ;
40331 PyObject * obj1 = 0 ;
40332 char * kwnames[] = {
40333 (char *) "self",(char *) "window", NULL
40334 };
40335
40336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40338 if (!SWIG_IsOK(res1)) {
40339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40340 }
40341 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40342 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40343 if (!SWIG_IsOK(res2)) {
40344 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40345 }
40346 arg2 = reinterpret_cast< wxWindow * >(argp2);
40347 {
40348 PyThreadState* __tstate = wxPyBeginAllowThreads();
40349 (arg1)->RemoveHelp(arg2);
40350 wxPyEndAllowThreads(__tstate);
40351 if (PyErr_Occurred()) SWIG_fail;
40352 }
40353 resultobj = SWIG_Py_Void();
40354 return resultobj;
40355 fail:
40356 return NULL;
40357 }
40358
40359
40360 SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40361 PyObject *resultobj = 0;
40362 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40363 void *argp1 = 0 ;
40364 int res1 = 0 ;
40365 PyObject *swig_obj[1] ;
40366
40367 if (!args) SWIG_fail;
40368 swig_obj[0] = args;
40369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40370 if (!SWIG_IsOK(res1)) {
40371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40372 }
40373 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40374 {
40375 PyThreadState* __tstate = wxPyBeginAllowThreads();
40376 wxHelpProvider_Destroy(arg1);
40377 wxPyEndAllowThreads(__tstate);
40378 if (PyErr_Occurred()) SWIG_fail;
40379 }
40380 resultobj = SWIG_Py_Void();
40381 return resultobj;
40382 fail:
40383 return NULL;
40384 }
40385
40386
40387 SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40388 PyObject *obj;
40389 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40390 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40391 return SWIG_Py_Void();
40392 }
40393
40394 SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40395 PyObject *resultobj = 0;
40396 wxSimpleHelpProvider *result = 0 ;
40397
40398 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40399 {
40400 PyThreadState* __tstate = wxPyBeginAllowThreads();
40401 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40402 wxPyEndAllowThreads(__tstate);
40403 if (PyErr_Occurred()) SWIG_fail;
40404 }
40405 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40406 return resultobj;
40407 fail:
40408 return NULL;
40409 }
40410
40411
40412 SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40413 PyObject *obj;
40414 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40415 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40416 return SWIG_Py_Void();
40417 }
40418
40419 SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40420 return SWIG_Python_InitShadowInstance(args);
40421 }
40422
40423 SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40424 PyObject *resultobj = 0;
40425 wxBitmap *arg1 = 0 ;
40426 wxCursor const &arg2_defvalue = wxNullCursor ;
40427 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40428 wxGenericDragImage *result = 0 ;
40429 void *argp1 = 0 ;
40430 int res1 = 0 ;
40431 void *argp2 = 0 ;
40432 int res2 = 0 ;
40433 PyObject * obj0 = 0 ;
40434 PyObject * obj1 = 0 ;
40435 char * kwnames[] = {
40436 (char *) "image",(char *) "cursor", NULL
40437 };
40438
40439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40440 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40441 if (!SWIG_IsOK(res1)) {
40442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40443 }
40444 if (!argp1) {
40445 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40446 }
40447 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40448 if (obj1) {
40449 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40450 if (!SWIG_IsOK(res2)) {
40451 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40452 }
40453 if (!argp2) {
40454 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
40455 }
40456 arg2 = reinterpret_cast< wxCursor * >(argp2);
40457 }
40458 {
40459 if (!wxPyCheckForApp()) SWIG_fail;
40460 PyThreadState* __tstate = wxPyBeginAllowThreads();
40461 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40462 wxPyEndAllowThreads(__tstate);
40463 if (PyErr_Occurred()) SWIG_fail;
40464 }
40465 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40466 return resultobj;
40467 fail:
40468 return NULL;
40469 }
40470
40471
40472 SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40473 PyObject *resultobj = 0;
40474 wxIcon *arg1 = 0 ;
40475 wxCursor const &arg2_defvalue = wxNullCursor ;
40476 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40477 wxGenericDragImage *result = 0 ;
40478 void *argp1 = 0 ;
40479 int res1 = 0 ;
40480 void *argp2 = 0 ;
40481 int res2 = 0 ;
40482 PyObject * obj0 = 0 ;
40483 PyObject * obj1 = 0 ;
40484 char * kwnames[] = {
40485 (char *) "image",(char *) "cursor", NULL
40486 };
40487
40488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40489 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40490 if (!SWIG_IsOK(res1)) {
40491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40492 }
40493 if (!argp1) {
40494 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40495 }
40496 arg1 = reinterpret_cast< wxIcon * >(argp1);
40497 if (obj1) {
40498 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40499 if (!SWIG_IsOK(res2)) {
40500 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40501 }
40502 if (!argp2) {
40503 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
40504 }
40505 arg2 = reinterpret_cast< wxCursor * >(argp2);
40506 }
40507 {
40508 if (!wxPyCheckForApp()) SWIG_fail;
40509 PyThreadState* __tstate = wxPyBeginAllowThreads();
40510 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40511 wxPyEndAllowThreads(__tstate);
40512 if (PyErr_Occurred()) SWIG_fail;
40513 }
40514 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40515 return resultobj;
40516 fail:
40517 return NULL;
40518 }
40519
40520
40521 SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40522 PyObject *resultobj = 0;
40523 wxString *arg1 = 0 ;
40524 wxCursor const &arg2_defvalue = wxNullCursor ;
40525 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40526 wxGenericDragImage *result = 0 ;
40527 bool temp1 = false ;
40528 void *argp2 = 0 ;
40529 int res2 = 0 ;
40530 PyObject * obj0 = 0 ;
40531 PyObject * obj1 = 0 ;
40532 char * kwnames[] = {
40533 (char *) "str",(char *) "cursor", NULL
40534 };
40535
40536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40537 {
40538 arg1 = wxString_in_helper(obj0);
40539 if (arg1 == NULL) SWIG_fail;
40540 temp1 = true;
40541 }
40542 if (obj1) {
40543 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40544 if (!SWIG_IsOK(res2)) {
40545 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40546 }
40547 if (!argp2) {
40548 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
40549 }
40550 arg2 = reinterpret_cast< wxCursor * >(argp2);
40551 }
40552 {
40553 if (!wxPyCheckForApp()) SWIG_fail;
40554 PyThreadState* __tstate = wxPyBeginAllowThreads();
40555 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40556 wxPyEndAllowThreads(__tstate);
40557 if (PyErr_Occurred()) SWIG_fail;
40558 }
40559 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40560 {
40561 if (temp1)
40562 delete arg1;
40563 }
40564 return resultobj;
40565 fail:
40566 {
40567 if (temp1)
40568 delete arg1;
40569 }
40570 return NULL;
40571 }
40572
40573
40574 SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40575 PyObject *resultobj = 0;
40576 wxPyTreeCtrl *arg1 = 0 ;
40577 wxTreeItemId *arg2 = 0 ;
40578 wxGenericDragImage *result = 0 ;
40579 void *argp1 = 0 ;
40580 int res1 = 0 ;
40581 void *argp2 = 0 ;
40582 int res2 = 0 ;
40583 PyObject * obj0 = 0 ;
40584 PyObject * obj1 = 0 ;
40585 char * kwnames[] = {
40586 (char *) "treeCtrl",(char *) "id", NULL
40587 };
40588
40589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40590 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40591 if (!SWIG_IsOK(res1)) {
40592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40593 }
40594 if (!argp1) {
40595 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40596 }
40597 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40598 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40599 if (!SWIG_IsOK(res2)) {
40600 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40601 }
40602 if (!argp2) {
40603 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40604 }
40605 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40606 {
40607 if (!wxPyCheckForApp()) SWIG_fail;
40608 PyThreadState* __tstate = wxPyBeginAllowThreads();
40609 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40610 wxPyEndAllowThreads(__tstate);
40611 if (PyErr_Occurred()) SWIG_fail;
40612 }
40613 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40614 return resultobj;
40615 fail:
40616 return NULL;
40617 }
40618
40619
40620 SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40621 PyObject *resultobj = 0;
40622 wxPyListCtrl *arg1 = 0 ;
40623 long arg2 ;
40624 wxGenericDragImage *result = 0 ;
40625 void *argp1 = 0 ;
40626 int res1 = 0 ;
40627 long val2 ;
40628 int ecode2 = 0 ;
40629 PyObject * obj0 = 0 ;
40630 PyObject * obj1 = 0 ;
40631 char * kwnames[] = {
40632 (char *) "listCtrl",(char *) "id", NULL
40633 };
40634
40635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40636 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40637 if (!SWIG_IsOK(res1)) {
40638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40639 }
40640 if (!argp1) {
40641 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40642 }
40643 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40644 ecode2 = SWIG_AsVal_long(obj1, &val2);
40645 if (!SWIG_IsOK(ecode2)) {
40646 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40647 }
40648 arg2 = static_cast< long >(val2);
40649 {
40650 if (!wxPyCheckForApp()) SWIG_fail;
40651 PyThreadState* __tstate = wxPyBeginAllowThreads();
40652 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40653 wxPyEndAllowThreads(__tstate);
40654 if (PyErr_Occurred()) SWIG_fail;
40655 }
40656 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40657 return resultobj;
40658 fail:
40659 return NULL;
40660 }
40661
40662
40663 SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40664 PyObject *resultobj = 0;
40665 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40666 void *argp1 = 0 ;
40667 int res1 = 0 ;
40668 PyObject *swig_obj[1] ;
40669
40670 if (!args) SWIG_fail;
40671 swig_obj[0] = args;
40672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40673 if (!SWIG_IsOK(res1)) {
40674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40675 }
40676 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40677 {
40678 PyThreadState* __tstate = wxPyBeginAllowThreads();
40679 delete arg1;
40680
40681 wxPyEndAllowThreads(__tstate);
40682 if (PyErr_Occurred()) SWIG_fail;
40683 }
40684 resultobj = SWIG_Py_Void();
40685 return resultobj;
40686 fail:
40687 return NULL;
40688 }
40689
40690
40691 SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40692 PyObject *resultobj = 0;
40693 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40694 wxBitmap *arg2 = (wxBitmap *) 0 ;
40695 void *argp1 = 0 ;
40696 int res1 = 0 ;
40697 void *argp2 = 0 ;
40698 int res2 = 0 ;
40699 PyObject * obj0 = 0 ;
40700 PyObject * obj1 = 0 ;
40701 char * kwnames[] = {
40702 (char *) "self",(char *) "bitmap", NULL
40703 };
40704
40705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40707 if (!SWIG_IsOK(res1)) {
40708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40709 }
40710 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40711 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40712 if (!SWIG_IsOK(res2)) {
40713 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40714 }
40715 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40716 {
40717 PyThreadState* __tstate = wxPyBeginAllowThreads();
40718 (arg1)->SetBackingBitmap(arg2);
40719 wxPyEndAllowThreads(__tstate);
40720 if (PyErr_Occurred()) SWIG_fail;
40721 }
40722 resultobj = SWIG_Py_Void();
40723 return resultobj;
40724 fail:
40725 return NULL;
40726 }
40727
40728
40729 SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40730 PyObject *resultobj = 0;
40731 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40732 wxPoint *arg2 = 0 ;
40733 wxWindow *arg3 = (wxWindow *) 0 ;
40734 bool arg4 = (bool) false ;
40735 wxRect *arg5 = (wxRect *) NULL ;
40736 bool result;
40737 void *argp1 = 0 ;
40738 int res1 = 0 ;
40739 wxPoint temp2 ;
40740 void *argp3 = 0 ;
40741 int res3 = 0 ;
40742 bool val4 ;
40743 int ecode4 = 0 ;
40744 void *argp5 = 0 ;
40745 int res5 = 0 ;
40746 PyObject * obj0 = 0 ;
40747 PyObject * obj1 = 0 ;
40748 PyObject * obj2 = 0 ;
40749 PyObject * obj3 = 0 ;
40750 PyObject * obj4 = 0 ;
40751 char * kwnames[] = {
40752 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40753 };
40754
40755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40757 if (!SWIG_IsOK(res1)) {
40758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40759 }
40760 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40761 {
40762 arg2 = &temp2;
40763 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40764 }
40765 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40766 if (!SWIG_IsOK(res3)) {
40767 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40768 }
40769 arg3 = reinterpret_cast< wxWindow * >(argp3);
40770 if (obj3) {
40771 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40772 if (!SWIG_IsOK(ecode4)) {
40773 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40774 }
40775 arg4 = static_cast< bool >(val4);
40776 }
40777 if (obj4) {
40778 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40779 if (!SWIG_IsOK(res5)) {
40780 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
40781 }
40782 arg5 = reinterpret_cast< wxRect * >(argp5);
40783 }
40784 {
40785 PyThreadState* __tstate = wxPyBeginAllowThreads();
40786 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40787 wxPyEndAllowThreads(__tstate);
40788 if (PyErr_Occurred()) SWIG_fail;
40789 }
40790 {
40791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40792 }
40793 return resultobj;
40794 fail:
40795 return NULL;
40796 }
40797
40798
40799 SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40800 PyObject *resultobj = 0;
40801 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40802 wxPoint *arg2 = 0 ;
40803 wxWindow *arg3 = (wxWindow *) 0 ;
40804 wxWindow *arg4 = (wxWindow *) 0 ;
40805 bool result;
40806 void *argp1 = 0 ;
40807 int res1 = 0 ;
40808 wxPoint temp2 ;
40809 void *argp3 = 0 ;
40810 int res3 = 0 ;
40811 void *argp4 = 0 ;
40812 int res4 = 0 ;
40813 PyObject * obj0 = 0 ;
40814 PyObject * obj1 = 0 ;
40815 PyObject * obj2 = 0 ;
40816 PyObject * obj3 = 0 ;
40817 char * kwnames[] = {
40818 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40819 };
40820
40821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40823 if (!SWIG_IsOK(res1)) {
40824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40825 }
40826 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40827 {
40828 arg2 = &temp2;
40829 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40830 }
40831 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40832 if (!SWIG_IsOK(res3)) {
40833 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40834 }
40835 arg3 = reinterpret_cast< wxWindow * >(argp3);
40836 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40837 if (!SWIG_IsOK(res4)) {
40838 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40839 }
40840 arg4 = reinterpret_cast< wxWindow * >(argp4);
40841 {
40842 PyThreadState* __tstate = wxPyBeginAllowThreads();
40843 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40844 wxPyEndAllowThreads(__tstate);
40845 if (PyErr_Occurred()) SWIG_fail;
40846 }
40847 {
40848 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40849 }
40850 return resultobj;
40851 fail:
40852 return NULL;
40853 }
40854
40855
40856 SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40857 PyObject *resultobj = 0;
40858 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40859 bool result;
40860 void *argp1 = 0 ;
40861 int res1 = 0 ;
40862 PyObject *swig_obj[1] ;
40863
40864 if (!args) SWIG_fail;
40865 swig_obj[0] = args;
40866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40867 if (!SWIG_IsOK(res1)) {
40868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40869 }
40870 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40871 {
40872 PyThreadState* __tstate = wxPyBeginAllowThreads();
40873 result = (bool)(arg1)->EndDrag();
40874 wxPyEndAllowThreads(__tstate);
40875 if (PyErr_Occurred()) SWIG_fail;
40876 }
40877 {
40878 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40879 }
40880 return resultobj;
40881 fail:
40882 return NULL;
40883 }
40884
40885
40886 SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40887 PyObject *resultobj = 0;
40888 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40889 wxPoint *arg2 = 0 ;
40890 bool result;
40891 void *argp1 = 0 ;
40892 int res1 = 0 ;
40893 wxPoint temp2 ;
40894 PyObject * obj0 = 0 ;
40895 PyObject * obj1 = 0 ;
40896 char * kwnames[] = {
40897 (char *) "self",(char *) "pt", NULL
40898 };
40899
40900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40902 if (!SWIG_IsOK(res1)) {
40903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40904 }
40905 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40906 {
40907 arg2 = &temp2;
40908 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40909 }
40910 {
40911 PyThreadState* __tstate = wxPyBeginAllowThreads();
40912 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40913 wxPyEndAllowThreads(__tstate);
40914 if (PyErr_Occurred()) SWIG_fail;
40915 }
40916 {
40917 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40918 }
40919 return resultobj;
40920 fail:
40921 return NULL;
40922 }
40923
40924
40925 SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40926 PyObject *resultobj = 0;
40927 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40928 bool result;
40929 void *argp1 = 0 ;
40930 int res1 = 0 ;
40931 PyObject *swig_obj[1] ;
40932
40933 if (!args) SWIG_fail;
40934 swig_obj[0] = args;
40935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40936 if (!SWIG_IsOK(res1)) {
40937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40938 }
40939 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40940 {
40941 PyThreadState* __tstate = wxPyBeginAllowThreads();
40942 result = (bool)(arg1)->Show();
40943 wxPyEndAllowThreads(__tstate);
40944 if (PyErr_Occurred()) SWIG_fail;
40945 }
40946 {
40947 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40948 }
40949 return resultobj;
40950 fail:
40951 return NULL;
40952 }
40953
40954
40955 SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40956 PyObject *resultobj = 0;
40957 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40958 bool result;
40959 void *argp1 = 0 ;
40960 int res1 = 0 ;
40961 PyObject *swig_obj[1] ;
40962
40963 if (!args) SWIG_fail;
40964 swig_obj[0] = args;
40965 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40966 if (!SWIG_IsOK(res1)) {
40967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40968 }
40969 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40970 {
40971 PyThreadState* __tstate = wxPyBeginAllowThreads();
40972 result = (bool)(arg1)->Hide();
40973 wxPyEndAllowThreads(__tstate);
40974 if (PyErr_Occurred()) SWIG_fail;
40975 }
40976 {
40977 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40978 }
40979 return resultobj;
40980 fail:
40981 return NULL;
40982 }
40983
40984
40985 SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40986 PyObject *resultobj = 0;
40987 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40988 wxPoint *arg2 = 0 ;
40989 wxRect result;
40990 void *argp1 = 0 ;
40991 int res1 = 0 ;
40992 wxPoint temp2 ;
40993 PyObject * obj0 = 0 ;
40994 PyObject * obj1 = 0 ;
40995 char * kwnames[] = {
40996 (char *) "self",(char *) "pos", NULL
40997 };
40998
40999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
41000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41001 if (!SWIG_IsOK(res1)) {
41002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41003 }
41004 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41005 {
41006 arg2 = &temp2;
41007 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41008 }
41009 {
41010 PyThreadState* __tstate = wxPyBeginAllowThreads();
41011 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
41012 wxPyEndAllowThreads(__tstate);
41013 if (PyErr_Occurred()) SWIG_fail;
41014 }
41015 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
41016 return resultobj;
41017 fail:
41018 return NULL;
41019 }
41020
41021
41022 SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41023 PyObject *resultobj = 0;
41024 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41025 wxDC *arg2 = 0 ;
41026 wxPoint *arg3 = 0 ;
41027 bool result;
41028 void *argp1 = 0 ;
41029 int res1 = 0 ;
41030 void *argp2 = 0 ;
41031 int res2 = 0 ;
41032 wxPoint temp3 ;
41033 PyObject * obj0 = 0 ;
41034 PyObject * obj1 = 0 ;
41035 PyObject * obj2 = 0 ;
41036 char * kwnames[] = {
41037 (char *) "self",(char *) "dc",(char *) "pos", NULL
41038 };
41039
41040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41042 if (!SWIG_IsOK(res1)) {
41043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41044 }
41045 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41046 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41047 if (!SWIG_IsOK(res2)) {
41048 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41049 }
41050 if (!argp2) {
41051 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
41052 }
41053 arg2 = reinterpret_cast< wxDC * >(argp2);
41054 {
41055 arg3 = &temp3;
41056 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41057 }
41058 {
41059 PyThreadState* __tstate = wxPyBeginAllowThreads();
41060 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
41061 wxPyEndAllowThreads(__tstate);
41062 if (PyErr_Occurred()) SWIG_fail;
41063 }
41064 {
41065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41066 }
41067 return resultobj;
41068 fail:
41069 return NULL;
41070 }
41071
41072
41073 SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41074 PyObject *resultobj = 0;
41075 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41076 wxDC *arg2 = 0 ;
41077 wxMemoryDC *arg3 = 0 ;
41078 wxRect *arg4 = 0 ;
41079 wxRect *arg5 = 0 ;
41080 bool result;
41081 void *argp1 = 0 ;
41082 int res1 = 0 ;
41083 void *argp2 = 0 ;
41084 int res2 = 0 ;
41085 void *argp3 = 0 ;
41086 int res3 = 0 ;
41087 wxRect temp4 ;
41088 wxRect temp5 ;
41089 PyObject * obj0 = 0 ;
41090 PyObject * obj1 = 0 ;
41091 PyObject * obj2 = 0 ;
41092 PyObject * obj3 = 0 ;
41093 PyObject * obj4 = 0 ;
41094 char * kwnames[] = {
41095 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
41096 };
41097
41098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41100 if (!SWIG_IsOK(res1)) {
41101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41102 }
41103 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41104 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41105 if (!SWIG_IsOK(res2)) {
41106 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41107 }
41108 if (!argp2) {
41109 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41110 }
41111 arg2 = reinterpret_cast< wxDC * >(argp2);
41112 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
41113 if (!SWIG_IsOK(res3)) {
41114 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41115 }
41116 if (!argp3) {
41117 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41118 }
41119 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
41120 {
41121 arg4 = &temp4;
41122 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
41123 }
41124 {
41125 arg5 = &temp5;
41126 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
41127 }
41128 {
41129 PyThreadState* __tstate = wxPyBeginAllowThreads();
41130 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
41131 wxPyEndAllowThreads(__tstate);
41132 if (PyErr_Occurred()) SWIG_fail;
41133 }
41134 {
41135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41136 }
41137 return resultobj;
41138 fail:
41139 return NULL;
41140 }
41141
41142
41143 SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41144 PyObject *resultobj = 0;
41145 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41146 wxPoint *arg2 = 0 ;
41147 wxPoint *arg3 = 0 ;
41148 bool arg4 ;
41149 bool arg5 ;
41150 bool result;
41151 void *argp1 = 0 ;
41152 int res1 = 0 ;
41153 wxPoint temp2 ;
41154 wxPoint temp3 ;
41155 bool val4 ;
41156 int ecode4 = 0 ;
41157 bool val5 ;
41158 int ecode5 = 0 ;
41159 PyObject * obj0 = 0 ;
41160 PyObject * obj1 = 0 ;
41161 PyObject * obj2 = 0 ;
41162 PyObject * obj3 = 0 ;
41163 PyObject * obj4 = 0 ;
41164 char * kwnames[] = {
41165 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
41166 };
41167
41168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41170 if (!SWIG_IsOK(res1)) {
41171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41172 }
41173 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41174 {
41175 arg2 = &temp2;
41176 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41177 }
41178 {
41179 arg3 = &temp3;
41180 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41181 }
41182 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41183 if (!SWIG_IsOK(ecode4)) {
41184 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
41185 }
41186 arg4 = static_cast< bool >(val4);
41187 ecode5 = SWIG_AsVal_bool(obj4, &val5);
41188 if (!SWIG_IsOK(ecode5)) {
41189 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
41190 }
41191 arg5 = static_cast< bool >(val5);
41192 {
41193 PyThreadState* __tstate = wxPyBeginAllowThreads();
41194 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
41195 wxPyEndAllowThreads(__tstate);
41196 if (PyErr_Occurred()) SWIG_fail;
41197 }
41198 {
41199 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41200 }
41201 return resultobj;
41202 fail:
41203 return NULL;
41204 }
41205
41206
41207 SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41208 PyObject *obj;
41209 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41210 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
41211 return SWIG_Py_Void();
41212 }
41213
41214 SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41215 return SWIG_Python_InitShadowInstance(args);
41216 }
41217
41218 SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
41219 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
41220 return 1;
41221 }
41222
41223
41224 SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
41225 PyObject *pyobj = 0;
41226
41227 {
41228 #if wxUSE_UNICODE
41229 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41230 #else
41231 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41232 #endif
41233 }
41234 return pyobj;
41235 }
41236
41237
41238 SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41239 PyObject *resultobj = 0;
41240 wxWindow *arg1 = (wxWindow *) 0 ;
41241 int arg2 = (int) -1 ;
41242 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
41243 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
41244 wxPoint const &arg4_defvalue = wxDefaultPosition ;
41245 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
41246 wxSize const &arg5_defvalue = wxDefaultSize ;
41247 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
41248 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41249 wxValidator const &arg7_defvalue = wxDefaultValidator ;
41250 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
41251 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
41252 wxString *arg8 = (wxString *) &arg8_defvalue ;
41253 wxDatePickerCtrl *result = 0 ;
41254 void *argp1 = 0 ;
41255 int res1 = 0 ;
41256 int val2 ;
41257 int ecode2 = 0 ;
41258 void *argp3 = 0 ;
41259 int res3 = 0 ;
41260 wxPoint temp4 ;
41261 wxSize temp5 ;
41262 long val6 ;
41263 int ecode6 = 0 ;
41264 void *argp7 = 0 ;
41265 int res7 = 0 ;
41266 bool temp8 = false ;
41267 PyObject * obj0 = 0 ;
41268 PyObject * obj1 = 0 ;
41269 PyObject * obj2 = 0 ;
41270 PyObject * obj3 = 0 ;
41271 PyObject * obj4 = 0 ;
41272 PyObject * obj5 = 0 ;
41273 PyObject * obj6 = 0 ;
41274 PyObject * obj7 = 0 ;
41275 char * kwnames[] = {
41276 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41277 };
41278
41279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41281 if (!SWIG_IsOK(res1)) {
41282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41283 }
41284 arg1 = reinterpret_cast< wxWindow * >(argp1);
41285 if (obj1) {
41286 ecode2 = SWIG_AsVal_int(obj1, &val2);
41287 if (!SWIG_IsOK(ecode2)) {
41288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41289 }
41290 arg2 = static_cast< int >(val2);
41291 }
41292 if (obj2) {
41293 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41294 if (!SWIG_IsOK(res3)) {
41295 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41296 }
41297 if (!argp3) {
41298 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41299 }
41300 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41301 }
41302 if (obj3) {
41303 {
41304 arg4 = &temp4;
41305 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
41306 }
41307 }
41308 if (obj4) {
41309 {
41310 arg5 = &temp5;
41311 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
41312 }
41313 }
41314 if (obj5) {
41315 ecode6 = SWIG_AsVal_long(obj5, &val6);
41316 if (!SWIG_IsOK(ecode6)) {
41317 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41318 }
41319 arg6 = static_cast< long >(val6);
41320 }
41321 if (obj6) {
41322 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41323 if (!SWIG_IsOK(res7)) {
41324 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41325 }
41326 if (!argp7) {
41327 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
41328 }
41329 arg7 = reinterpret_cast< wxValidator * >(argp7);
41330 }
41331 if (obj7) {
41332 {
41333 arg8 = wxString_in_helper(obj7);
41334 if (arg8 == NULL) SWIG_fail;
41335 temp8 = true;
41336 }
41337 }
41338 {
41339 if (!wxPyCheckForApp()) SWIG_fail;
41340 PyThreadState* __tstate = wxPyBeginAllowThreads();
41341 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41342 wxPyEndAllowThreads(__tstate);
41343 if (PyErr_Occurred()) SWIG_fail;
41344 }
41345 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41346 {
41347 if (temp8)
41348 delete arg8;
41349 }
41350 return resultobj;
41351 fail:
41352 {
41353 if (temp8)
41354 delete arg8;
41355 }
41356 return NULL;
41357 }
41358
41359
41360 SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41361 PyObject *resultobj = 0;
41362 wxDatePickerCtrl *result = 0 ;
41363
41364 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41365 {
41366 if (!wxPyCheckForApp()) SWIG_fail;
41367 PyThreadState* __tstate = wxPyBeginAllowThreads();
41368 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41369 wxPyEndAllowThreads(__tstate);
41370 if (PyErr_Occurred()) SWIG_fail;
41371 }
41372 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41373 return resultobj;
41374 fail:
41375 return NULL;
41376 }
41377
41378
41379 SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41380 PyObject *resultobj = 0;
41381 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41382 wxWindow *arg2 = (wxWindow *) 0 ;
41383 int arg3 = (int) -1 ;
41384 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41385 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41386 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41387 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41388 wxSize const &arg6_defvalue = wxDefaultSize ;
41389 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41390 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41391 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41392 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41393 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41394 wxString *arg9 = (wxString *) &arg9_defvalue ;
41395 bool result;
41396 void *argp1 = 0 ;
41397 int res1 = 0 ;
41398 void *argp2 = 0 ;
41399 int res2 = 0 ;
41400 int val3 ;
41401 int ecode3 = 0 ;
41402 void *argp4 = 0 ;
41403 int res4 = 0 ;
41404 wxPoint temp5 ;
41405 wxSize temp6 ;
41406 long val7 ;
41407 int ecode7 = 0 ;
41408 void *argp8 = 0 ;
41409 int res8 = 0 ;
41410 bool temp9 = false ;
41411 PyObject * obj0 = 0 ;
41412 PyObject * obj1 = 0 ;
41413 PyObject * obj2 = 0 ;
41414 PyObject * obj3 = 0 ;
41415 PyObject * obj4 = 0 ;
41416 PyObject * obj5 = 0 ;
41417 PyObject * obj6 = 0 ;
41418 PyObject * obj7 = 0 ;
41419 PyObject * obj8 = 0 ;
41420 char * kwnames[] = {
41421 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41422 };
41423
41424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41426 if (!SWIG_IsOK(res1)) {
41427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41428 }
41429 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41430 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41431 if (!SWIG_IsOK(res2)) {
41432 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41433 }
41434 arg2 = reinterpret_cast< wxWindow * >(argp2);
41435 if (obj2) {
41436 ecode3 = SWIG_AsVal_int(obj2, &val3);
41437 if (!SWIG_IsOK(ecode3)) {
41438 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41439 }
41440 arg3 = static_cast< int >(val3);
41441 }
41442 if (obj3) {
41443 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41444 if (!SWIG_IsOK(res4)) {
41445 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41446 }
41447 if (!argp4) {
41448 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
41449 }
41450 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41451 }
41452 if (obj4) {
41453 {
41454 arg5 = &temp5;
41455 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41456 }
41457 }
41458 if (obj5) {
41459 {
41460 arg6 = &temp6;
41461 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41462 }
41463 }
41464 if (obj6) {
41465 ecode7 = SWIG_AsVal_long(obj6, &val7);
41466 if (!SWIG_IsOK(ecode7)) {
41467 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41468 }
41469 arg7 = static_cast< long >(val7);
41470 }
41471 if (obj7) {
41472 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41473 if (!SWIG_IsOK(res8)) {
41474 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41475 }
41476 if (!argp8) {
41477 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
41478 }
41479 arg8 = reinterpret_cast< wxValidator * >(argp8);
41480 }
41481 if (obj8) {
41482 {
41483 arg9 = wxString_in_helper(obj8);
41484 if (arg9 == NULL) SWIG_fail;
41485 temp9 = true;
41486 }
41487 }
41488 {
41489 PyThreadState* __tstate = wxPyBeginAllowThreads();
41490 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41491 wxPyEndAllowThreads(__tstate);
41492 if (PyErr_Occurred()) SWIG_fail;
41493 }
41494 {
41495 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41496 }
41497 {
41498 if (temp9)
41499 delete arg9;
41500 }
41501 return resultobj;
41502 fail:
41503 {
41504 if (temp9)
41505 delete arg9;
41506 }
41507 return NULL;
41508 }
41509
41510
41511 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41512 PyObject *resultobj = 0;
41513 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41514 wxDateTime *arg2 = 0 ;
41515 void *argp1 = 0 ;
41516 int res1 = 0 ;
41517 void *argp2 = 0 ;
41518 int res2 = 0 ;
41519 PyObject * obj0 = 0 ;
41520 PyObject * obj1 = 0 ;
41521 char * kwnames[] = {
41522 (char *) "self",(char *) "dt", NULL
41523 };
41524
41525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41527 if (!SWIG_IsOK(res1)) {
41528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41529 }
41530 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41531 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41532 if (!SWIG_IsOK(res2)) {
41533 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41534 }
41535 if (!argp2) {
41536 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41537 }
41538 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41539 {
41540 PyThreadState* __tstate = wxPyBeginAllowThreads();
41541 (arg1)->SetValue((wxDateTime const &)*arg2);
41542 wxPyEndAllowThreads(__tstate);
41543 if (PyErr_Occurred()) SWIG_fail;
41544 }
41545 resultobj = SWIG_Py_Void();
41546 return resultobj;
41547 fail:
41548 return NULL;
41549 }
41550
41551
41552 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41553 PyObject *resultobj = 0;
41554 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41555 wxDateTime result;
41556 void *argp1 = 0 ;
41557 int res1 = 0 ;
41558 PyObject *swig_obj[1] ;
41559
41560 if (!args) SWIG_fail;
41561 swig_obj[0] = args;
41562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41563 if (!SWIG_IsOK(res1)) {
41564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41565 }
41566 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41567 {
41568 PyThreadState* __tstate = wxPyBeginAllowThreads();
41569 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41570 wxPyEndAllowThreads(__tstate);
41571 if (PyErr_Occurred()) SWIG_fail;
41572 }
41573 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41574 return resultobj;
41575 fail:
41576 return NULL;
41577 }
41578
41579
41580 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41581 PyObject *resultobj = 0;
41582 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41583 wxDateTime *arg2 = 0 ;
41584 wxDateTime *arg3 = 0 ;
41585 void *argp1 = 0 ;
41586 int res1 = 0 ;
41587 void *argp2 = 0 ;
41588 int res2 = 0 ;
41589 void *argp3 = 0 ;
41590 int res3 = 0 ;
41591 PyObject * obj0 = 0 ;
41592 PyObject * obj1 = 0 ;
41593 PyObject * obj2 = 0 ;
41594 char * kwnames[] = {
41595 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41596 };
41597
41598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41600 if (!SWIG_IsOK(res1)) {
41601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41602 }
41603 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41604 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41605 if (!SWIG_IsOK(res2)) {
41606 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41607 }
41608 if (!argp2) {
41609 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41610 }
41611 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41612 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41613 if (!SWIG_IsOK(res3)) {
41614 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41615 }
41616 if (!argp3) {
41617 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41618 }
41619 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41620 {
41621 PyThreadState* __tstate = wxPyBeginAllowThreads();
41622 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41623 wxPyEndAllowThreads(__tstate);
41624 if (PyErr_Occurred()) SWIG_fail;
41625 }
41626 resultobj = SWIG_Py_Void();
41627 return resultobj;
41628 fail:
41629 return NULL;
41630 }
41631
41632
41633 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41634 PyObject *resultobj = 0;
41635 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41636 wxDateTime result;
41637 void *argp1 = 0 ;
41638 int res1 = 0 ;
41639 PyObject *swig_obj[1] ;
41640
41641 if (!args) SWIG_fail;
41642 swig_obj[0] = args;
41643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41644 if (!SWIG_IsOK(res1)) {
41645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41646 }
41647 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41648 {
41649 PyThreadState* __tstate = wxPyBeginAllowThreads();
41650 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41651 wxPyEndAllowThreads(__tstate);
41652 if (PyErr_Occurred()) SWIG_fail;
41653 }
41654 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41655 return resultobj;
41656 fail:
41657 return NULL;
41658 }
41659
41660
41661 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41662 PyObject *resultobj = 0;
41663 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41664 wxDateTime result;
41665 void *argp1 = 0 ;
41666 int res1 = 0 ;
41667 PyObject *swig_obj[1] ;
41668
41669 if (!args) SWIG_fail;
41670 swig_obj[0] = args;
41671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41672 if (!SWIG_IsOK(res1)) {
41673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41674 }
41675 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41676 {
41677 PyThreadState* __tstate = wxPyBeginAllowThreads();
41678 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41679 wxPyEndAllowThreads(__tstate);
41680 if (PyErr_Occurred()) SWIG_fail;
41681 }
41682 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41683 return resultobj;
41684 fail:
41685 return NULL;
41686 }
41687
41688
41689 SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41690 PyObject *obj;
41691 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41692 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41693 return SWIG_Py_Void();
41694 }
41695
41696 SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41697 return SWIG_Python_InitShadowInstance(args);
41698 }
41699
41700 SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41701 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41702 return 1;
41703 }
41704
41705
41706 SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41707 PyObject *pyobj = 0;
41708
41709 {
41710 #if wxUSE_UNICODE
41711 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41712 #else
41713 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41714 #endif
41715 }
41716 return pyobj;
41717 }
41718
41719
41720 SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41721 PyObject *resultobj = 0;
41722 wxWindow *arg1 = (wxWindow *) 0 ;
41723 int arg2 ;
41724 wxString *arg3 = 0 ;
41725 wxString *arg4 = 0 ;
41726 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41727 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41728 wxSize const &arg6_defvalue = wxDefaultSize ;
41729 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41730 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41731 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41732 wxString *arg8 = (wxString *) &arg8_defvalue ;
41733 wxHyperlinkCtrl *result = 0 ;
41734 void *argp1 = 0 ;
41735 int res1 = 0 ;
41736 int val2 ;
41737 int ecode2 = 0 ;
41738 bool temp3 = false ;
41739 bool temp4 = false ;
41740 wxPoint temp5 ;
41741 wxSize temp6 ;
41742 long val7 ;
41743 int ecode7 = 0 ;
41744 bool temp8 = false ;
41745 PyObject * obj0 = 0 ;
41746 PyObject * obj1 = 0 ;
41747 PyObject * obj2 = 0 ;
41748 PyObject * obj3 = 0 ;
41749 PyObject * obj4 = 0 ;
41750 PyObject * obj5 = 0 ;
41751 PyObject * obj6 = 0 ;
41752 PyObject * obj7 = 0 ;
41753 char * kwnames[] = {
41754 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41755 };
41756
41757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41759 if (!SWIG_IsOK(res1)) {
41760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41761 }
41762 arg1 = reinterpret_cast< wxWindow * >(argp1);
41763 ecode2 = SWIG_AsVal_int(obj1, &val2);
41764 if (!SWIG_IsOK(ecode2)) {
41765 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
41766 }
41767 arg2 = static_cast< int >(val2);
41768 {
41769 arg3 = wxString_in_helper(obj2);
41770 if (arg3 == NULL) SWIG_fail;
41771 temp3 = true;
41772 }
41773 {
41774 arg4 = wxString_in_helper(obj3);
41775 if (arg4 == NULL) SWIG_fail;
41776 temp4 = true;
41777 }
41778 if (obj4) {
41779 {
41780 arg5 = &temp5;
41781 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41782 }
41783 }
41784 if (obj5) {
41785 {
41786 arg6 = &temp6;
41787 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41788 }
41789 }
41790 if (obj6) {
41791 ecode7 = SWIG_AsVal_long(obj6, &val7);
41792 if (!SWIG_IsOK(ecode7)) {
41793 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
41794 }
41795 arg7 = static_cast< long >(val7);
41796 }
41797 if (obj7) {
41798 {
41799 arg8 = wxString_in_helper(obj7);
41800 if (arg8 == NULL) SWIG_fail;
41801 temp8 = true;
41802 }
41803 }
41804 {
41805 if (!wxPyCheckForApp()) SWIG_fail;
41806 PyThreadState* __tstate = wxPyBeginAllowThreads();
41807 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
41808 wxPyEndAllowThreads(__tstate);
41809 if (PyErr_Occurred()) SWIG_fail;
41810 }
41811 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
41812 {
41813 if (temp3)
41814 delete arg3;
41815 }
41816 {
41817 if (temp4)
41818 delete arg4;
41819 }
41820 {
41821 if (temp8)
41822 delete arg8;
41823 }
41824 return resultobj;
41825 fail:
41826 {
41827 if (temp3)
41828 delete arg3;
41829 }
41830 {
41831 if (temp4)
41832 delete arg4;
41833 }
41834 {
41835 if (temp8)
41836 delete arg8;
41837 }
41838 return NULL;
41839 }
41840
41841
41842 SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41843 PyObject *resultobj = 0;
41844 wxHyperlinkCtrl *result = 0 ;
41845
41846 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
41847 {
41848 if (!wxPyCheckForApp()) SWIG_fail;
41849 PyThreadState* __tstate = wxPyBeginAllowThreads();
41850 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
41851 wxPyEndAllowThreads(__tstate);
41852 if (PyErr_Occurred()) SWIG_fail;
41853 }
41854 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
41855 return resultobj;
41856 fail:
41857 return NULL;
41858 }
41859
41860
41861 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41862 PyObject *resultobj = 0;
41863 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41864 wxWindow *arg2 = (wxWindow *) 0 ;
41865 int arg3 ;
41866 wxString *arg4 = 0 ;
41867 wxString *arg5 = 0 ;
41868 wxPoint const &arg6_defvalue = wxDefaultPosition ;
41869 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
41870 wxSize const &arg7_defvalue = wxDefaultSize ;
41871 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
41872 long arg8 = (long) wxHL_DEFAULT_STYLE ;
41873 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
41874 wxString *arg9 = (wxString *) &arg9_defvalue ;
41875 bool result;
41876 void *argp1 = 0 ;
41877 int res1 = 0 ;
41878 void *argp2 = 0 ;
41879 int res2 = 0 ;
41880 int val3 ;
41881 int ecode3 = 0 ;
41882 bool temp4 = false ;
41883 bool temp5 = false ;
41884 wxPoint temp6 ;
41885 wxSize temp7 ;
41886 long val8 ;
41887 int ecode8 = 0 ;
41888 bool temp9 = false ;
41889 PyObject * obj0 = 0 ;
41890 PyObject * obj1 = 0 ;
41891 PyObject * obj2 = 0 ;
41892 PyObject * obj3 = 0 ;
41893 PyObject * obj4 = 0 ;
41894 PyObject * obj5 = 0 ;
41895 PyObject * obj6 = 0 ;
41896 PyObject * obj7 = 0 ;
41897 PyObject * obj8 = 0 ;
41898 char * kwnames[] = {
41899 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41900 };
41901
41902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41904 if (!SWIG_IsOK(res1)) {
41905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41906 }
41907 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41908 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41909 if (!SWIG_IsOK(res2)) {
41910 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41911 }
41912 arg2 = reinterpret_cast< wxWindow * >(argp2);
41913 ecode3 = SWIG_AsVal_int(obj2, &val3);
41914 if (!SWIG_IsOK(ecode3)) {
41915 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41916 }
41917 arg3 = static_cast< int >(val3);
41918 {
41919 arg4 = wxString_in_helper(obj3);
41920 if (arg4 == NULL) SWIG_fail;
41921 temp4 = true;
41922 }
41923 {
41924 arg5 = wxString_in_helper(obj4);
41925 if (arg5 == NULL) SWIG_fail;
41926 temp5 = true;
41927 }
41928 if (obj5) {
41929 {
41930 arg6 = &temp6;
41931 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
41932 }
41933 }
41934 if (obj6) {
41935 {
41936 arg7 = &temp7;
41937 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
41938 }
41939 }
41940 if (obj7) {
41941 ecode8 = SWIG_AsVal_long(obj7, &val8);
41942 if (!SWIG_IsOK(ecode8)) {
41943 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
41944 }
41945 arg8 = static_cast< long >(val8);
41946 }
41947 if (obj8) {
41948 {
41949 arg9 = wxString_in_helper(obj8);
41950 if (arg9 == NULL) SWIG_fail;
41951 temp9 = true;
41952 }
41953 }
41954 {
41955 PyThreadState* __tstate = wxPyBeginAllowThreads();
41956 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
41957 wxPyEndAllowThreads(__tstate);
41958 if (PyErr_Occurred()) SWIG_fail;
41959 }
41960 {
41961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41962 }
41963 {
41964 if (temp4)
41965 delete arg4;
41966 }
41967 {
41968 if (temp5)
41969 delete arg5;
41970 }
41971 {
41972 if (temp9)
41973 delete arg9;
41974 }
41975 return resultobj;
41976 fail:
41977 {
41978 if (temp4)
41979 delete arg4;
41980 }
41981 {
41982 if (temp5)
41983 delete arg5;
41984 }
41985 {
41986 if (temp9)
41987 delete arg9;
41988 }
41989 return NULL;
41990 }
41991
41992
41993 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41994 PyObject *resultobj = 0;
41995 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41996 wxColour result;
41997 void *argp1 = 0 ;
41998 int res1 = 0 ;
41999 PyObject *swig_obj[1] ;
42000
42001 if (!args) SWIG_fail;
42002 swig_obj[0] = args;
42003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42004 if (!SWIG_IsOK(res1)) {
42005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42006 }
42007 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42008 {
42009 PyThreadState* __tstate = wxPyBeginAllowThreads();
42010 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
42011 wxPyEndAllowThreads(__tstate);
42012 if (PyErr_Occurred()) SWIG_fail;
42013 }
42014 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42015 return resultobj;
42016 fail:
42017 return NULL;
42018 }
42019
42020
42021 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42022 PyObject *resultobj = 0;
42023 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42024 wxColour *arg2 = 0 ;
42025 void *argp1 = 0 ;
42026 int res1 = 0 ;
42027 wxColour temp2 ;
42028 PyObject * obj0 = 0 ;
42029 PyObject * obj1 = 0 ;
42030 char * kwnames[] = {
42031 (char *) "self",(char *) "colour", NULL
42032 };
42033
42034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
42035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42036 if (!SWIG_IsOK(res1)) {
42037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42038 }
42039 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42040 {
42041 arg2 = &temp2;
42042 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42043 }
42044 {
42045 PyThreadState* __tstate = wxPyBeginAllowThreads();
42046 (arg1)->SetHoverColour((wxColour const &)*arg2);
42047 wxPyEndAllowThreads(__tstate);
42048 if (PyErr_Occurred()) SWIG_fail;
42049 }
42050 resultobj = SWIG_Py_Void();
42051 return resultobj;
42052 fail:
42053 return NULL;
42054 }
42055
42056
42057 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42058 PyObject *resultobj = 0;
42059 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42060 wxColour result;
42061 void *argp1 = 0 ;
42062 int res1 = 0 ;
42063 PyObject *swig_obj[1] ;
42064
42065 if (!args) SWIG_fail;
42066 swig_obj[0] = args;
42067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42068 if (!SWIG_IsOK(res1)) {
42069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42070 }
42071 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42072 {
42073 PyThreadState* __tstate = wxPyBeginAllowThreads();
42074 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
42075 wxPyEndAllowThreads(__tstate);
42076 if (PyErr_Occurred()) SWIG_fail;
42077 }
42078 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42079 return resultobj;
42080 fail:
42081 return NULL;
42082 }
42083
42084
42085 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42086 PyObject *resultobj = 0;
42087 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42088 wxColour *arg2 = 0 ;
42089 void *argp1 = 0 ;
42090 int res1 = 0 ;
42091 wxColour temp2 ;
42092 PyObject * obj0 = 0 ;
42093 PyObject * obj1 = 0 ;
42094 char * kwnames[] = {
42095 (char *) "self",(char *) "colour", NULL
42096 };
42097
42098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
42099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42100 if (!SWIG_IsOK(res1)) {
42101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42102 }
42103 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42104 {
42105 arg2 = &temp2;
42106 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42107 }
42108 {
42109 PyThreadState* __tstate = wxPyBeginAllowThreads();
42110 (arg1)->SetNormalColour((wxColour const &)*arg2);
42111 wxPyEndAllowThreads(__tstate);
42112 if (PyErr_Occurred()) SWIG_fail;
42113 }
42114 resultobj = SWIG_Py_Void();
42115 return resultobj;
42116 fail:
42117 return NULL;
42118 }
42119
42120
42121 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42122 PyObject *resultobj = 0;
42123 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42124 wxColour result;
42125 void *argp1 = 0 ;
42126 int res1 = 0 ;
42127 PyObject *swig_obj[1] ;
42128
42129 if (!args) SWIG_fail;
42130 swig_obj[0] = args;
42131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42132 if (!SWIG_IsOK(res1)) {
42133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42134 }
42135 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42136 {
42137 PyThreadState* __tstate = wxPyBeginAllowThreads();
42138 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
42139 wxPyEndAllowThreads(__tstate);
42140 if (PyErr_Occurred()) SWIG_fail;
42141 }
42142 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42143 return resultobj;
42144 fail:
42145 return NULL;
42146 }
42147
42148
42149 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42150 PyObject *resultobj = 0;
42151 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42152 wxColour *arg2 = 0 ;
42153 void *argp1 = 0 ;
42154 int res1 = 0 ;
42155 wxColour temp2 ;
42156 PyObject * obj0 = 0 ;
42157 PyObject * obj1 = 0 ;
42158 char * kwnames[] = {
42159 (char *) "self",(char *) "colour", NULL
42160 };
42161
42162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
42163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42164 if (!SWIG_IsOK(res1)) {
42165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42166 }
42167 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42168 {
42169 arg2 = &temp2;
42170 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42171 }
42172 {
42173 PyThreadState* __tstate = wxPyBeginAllowThreads();
42174 (arg1)->SetVisitedColour((wxColour const &)*arg2);
42175 wxPyEndAllowThreads(__tstate);
42176 if (PyErr_Occurred()) SWIG_fail;
42177 }
42178 resultobj = SWIG_Py_Void();
42179 return resultobj;
42180 fail:
42181 return NULL;
42182 }
42183
42184
42185 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42186 PyObject *resultobj = 0;
42187 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42188 wxString result;
42189 void *argp1 = 0 ;
42190 int res1 = 0 ;
42191 PyObject *swig_obj[1] ;
42192
42193 if (!args) SWIG_fail;
42194 swig_obj[0] = args;
42195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42196 if (!SWIG_IsOK(res1)) {
42197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42198 }
42199 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42200 {
42201 PyThreadState* __tstate = wxPyBeginAllowThreads();
42202 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
42203 wxPyEndAllowThreads(__tstate);
42204 if (PyErr_Occurred()) SWIG_fail;
42205 }
42206 {
42207 #if wxUSE_UNICODE
42208 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42209 #else
42210 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42211 #endif
42212 }
42213 return resultobj;
42214 fail:
42215 return NULL;
42216 }
42217
42218
42219 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42220 PyObject *resultobj = 0;
42221 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42222 wxString *arg2 = 0 ;
42223 void *argp1 = 0 ;
42224 int res1 = 0 ;
42225 bool temp2 = false ;
42226 PyObject * obj0 = 0 ;
42227 PyObject * obj1 = 0 ;
42228 char * kwnames[] = {
42229 (char *) "self",(char *) "url", NULL
42230 };
42231
42232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42234 if (!SWIG_IsOK(res1)) {
42235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42236 }
42237 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42238 {
42239 arg2 = wxString_in_helper(obj1);
42240 if (arg2 == NULL) SWIG_fail;
42241 temp2 = true;
42242 }
42243 {
42244 PyThreadState* __tstate = wxPyBeginAllowThreads();
42245 (arg1)->SetURL((wxString const &)*arg2);
42246 wxPyEndAllowThreads(__tstate);
42247 if (PyErr_Occurred()) SWIG_fail;
42248 }
42249 resultobj = SWIG_Py_Void();
42250 {
42251 if (temp2)
42252 delete arg2;
42253 }
42254 return resultobj;
42255 fail:
42256 {
42257 if (temp2)
42258 delete arg2;
42259 }
42260 return NULL;
42261 }
42262
42263
42264 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42265 PyObject *resultobj = 0;
42266 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42267 bool arg2 = (bool) true ;
42268 void *argp1 = 0 ;
42269 int res1 = 0 ;
42270 bool val2 ;
42271 int ecode2 = 0 ;
42272 PyObject * obj0 = 0 ;
42273 PyObject * obj1 = 0 ;
42274 char * kwnames[] = {
42275 (char *) "self",(char *) "visited", NULL
42276 };
42277
42278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
42279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42280 if (!SWIG_IsOK(res1)) {
42281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42282 }
42283 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42284 if (obj1) {
42285 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42286 if (!SWIG_IsOK(ecode2)) {
42287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42288 }
42289 arg2 = static_cast< bool >(val2);
42290 }
42291 {
42292 PyThreadState* __tstate = wxPyBeginAllowThreads();
42293 (arg1)->SetVisited(arg2);
42294 wxPyEndAllowThreads(__tstate);
42295 if (PyErr_Occurred()) SWIG_fail;
42296 }
42297 resultobj = SWIG_Py_Void();
42298 return resultobj;
42299 fail:
42300 return NULL;
42301 }
42302
42303
42304 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42305 PyObject *resultobj = 0;
42306 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42307 bool result;
42308 void *argp1 = 0 ;
42309 int res1 = 0 ;
42310 PyObject *swig_obj[1] ;
42311
42312 if (!args) SWIG_fail;
42313 swig_obj[0] = args;
42314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42315 if (!SWIG_IsOK(res1)) {
42316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42317 }
42318 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42319 {
42320 PyThreadState* __tstate = wxPyBeginAllowThreads();
42321 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42322 wxPyEndAllowThreads(__tstate);
42323 if (PyErr_Occurred()) SWIG_fail;
42324 }
42325 {
42326 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42327 }
42328 return resultobj;
42329 fail:
42330 return NULL;
42331 }
42332
42333
42334 SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42335 PyObject *obj;
42336 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42337 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42338 return SWIG_Py_Void();
42339 }
42340
42341 SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42342 return SWIG_Python_InitShadowInstance(args);
42343 }
42344
42345 SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42346 PyObject *resultobj = 0;
42347 wxObject *arg1 = (wxObject *) 0 ;
42348 int arg2 ;
42349 wxString *arg3 = 0 ;
42350 wxHyperlinkEvent *result = 0 ;
42351 void *argp1 = 0 ;
42352 int res1 = 0 ;
42353 int val2 ;
42354 int ecode2 = 0 ;
42355 bool temp3 = false ;
42356 PyObject * obj0 = 0 ;
42357 PyObject * obj1 = 0 ;
42358 PyObject * obj2 = 0 ;
42359 char * kwnames[] = {
42360 (char *) "generator",(char *) "id",(char *) "url", NULL
42361 };
42362
42363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42365 if (!SWIG_IsOK(res1)) {
42366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42367 }
42368 arg1 = reinterpret_cast< wxObject * >(argp1);
42369 ecode2 = SWIG_AsVal_int(obj1, &val2);
42370 if (!SWIG_IsOK(ecode2)) {
42371 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42372 }
42373 arg2 = static_cast< int >(val2);
42374 {
42375 arg3 = wxString_in_helper(obj2);
42376 if (arg3 == NULL) SWIG_fail;
42377 temp3 = true;
42378 }
42379 {
42380 PyThreadState* __tstate = wxPyBeginAllowThreads();
42381 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42382 wxPyEndAllowThreads(__tstate);
42383 if (PyErr_Occurred()) SWIG_fail;
42384 }
42385 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42386 {
42387 if (temp3)
42388 delete arg3;
42389 }
42390 return resultobj;
42391 fail:
42392 {
42393 if (temp3)
42394 delete arg3;
42395 }
42396 return NULL;
42397 }
42398
42399
42400 SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42401 PyObject *resultobj = 0;
42402 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42403 wxString result;
42404 void *argp1 = 0 ;
42405 int res1 = 0 ;
42406 PyObject *swig_obj[1] ;
42407
42408 if (!args) SWIG_fail;
42409 swig_obj[0] = args;
42410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42411 if (!SWIG_IsOK(res1)) {
42412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42413 }
42414 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42415 {
42416 PyThreadState* __tstate = wxPyBeginAllowThreads();
42417 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42418 wxPyEndAllowThreads(__tstate);
42419 if (PyErr_Occurred()) SWIG_fail;
42420 }
42421 {
42422 #if wxUSE_UNICODE
42423 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42424 #else
42425 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42426 #endif
42427 }
42428 return resultobj;
42429 fail:
42430 return NULL;
42431 }
42432
42433
42434 SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42435 PyObject *resultobj = 0;
42436 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42437 wxString *arg2 = 0 ;
42438 void *argp1 = 0 ;
42439 int res1 = 0 ;
42440 bool temp2 = false ;
42441 PyObject * obj0 = 0 ;
42442 PyObject * obj1 = 0 ;
42443 char * kwnames[] = {
42444 (char *) "self",(char *) "url", NULL
42445 };
42446
42447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42449 if (!SWIG_IsOK(res1)) {
42450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42451 }
42452 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42453 {
42454 arg2 = wxString_in_helper(obj1);
42455 if (arg2 == NULL) SWIG_fail;
42456 temp2 = true;
42457 }
42458 {
42459 PyThreadState* __tstate = wxPyBeginAllowThreads();
42460 (arg1)->SetURL((wxString const &)*arg2);
42461 wxPyEndAllowThreads(__tstate);
42462 if (PyErr_Occurred()) SWIG_fail;
42463 }
42464 resultobj = SWIG_Py_Void();
42465 {
42466 if (temp2)
42467 delete arg2;
42468 }
42469 return resultobj;
42470 fail:
42471 {
42472 if (temp2)
42473 delete arg2;
42474 }
42475 return NULL;
42476 }
42477
42478
42479 SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42480 PyObject *obj;
42481 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42482 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42483 return SWIG_Py_Void();
42484 }
42485
42486 SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42487 return SWIG_Python_InitShadowInstance(args);
42488 }
42489
42490 SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42491 PyObject *resultobj = 0;
42492 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42493 wxWindow *arg2 = (wxWindow *) 0 ;
42494 int arg3 ;
42495 wxString const &arg4_defvalue = wxEmptyString ;
42496 wxString *arg4 = (wxString *) &arg4_defvalue ;
42497 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42498 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42499 wxSize const &arg6_defvalue = wxDefaultSize ;
42500 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42501 long arg7 = (long) 0 ;
42502 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42503 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42504 wxString const &arg9_defvalue = wxButtonNameStr ;
42505 wxString *arg9 = (wxString *) &arg9_defvalue ;
42506 bool result;
42507 void *argp1 = 0 ;
42508 int res1 = 0 ;
42509 void *argp2 = 0 ;
42510 int res2 = 0 ;
42511 int val3 ;
42512 int ecode3 = 0 ;
42513 bool temp4 = false ;
42514 wxPoint temp5 ;
42515 wxSize temp6 ;
42516 long val7 ;
42517 int ecode7 = 0 ;
42518 void *argp8 = 0 ;
42519 int res8 = 0 ;
42520 bool temp9 = false ;
42521 PyObject * obj0 = 0 ;
42522 PyObject * obj1 = 0 ;
42523 PyObject * obj2 = 0 ;
42524 PyObject * obj3 = 0 ;
42525 PyObject * obj4 = 0 ;
42526 PyObject * obj5 = 0 ;
42527 PyObject * obj6 = 0 ;
42528 PyObject * obj7 = 0 ;
42529 PyObject * obj8 = 0 ;
42530 char * kwnames[] = {
42531 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42532 };
42533
42534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42536 if (!SWIG_IsOK(res1)) {
42537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42538 }
42539 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42540 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42541 if (!SWIG_IsOK(res2)) {
42542 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42543 }
42544 arg2 = reinterpret_cast< wxWindow * >(argp2);
42545 ecode3 = SWIG_AsVal_int(obj2, &val3);
42546 if (!SWIG_IsOK(ecode3)) {
42547 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42548 }
42549 arg3 = static_cast< int >(val3);
42550 if (obj3) {
42551 {
42552 arg4 = wxString_in_helper(obj3);
42553 if (arg4 == NULL) SWIG_fail;
42554 temp4 = true;
42555 }
42556 }
42557 if (obj4) {
42558 {
42559 arg5 = &temp5;
42560 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42561 }
42562 }
42563 if (obj5) {
42564 {
42565 arg6 = &temp6;
42566 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42567 }
42568 }
42569 if (obj6) {
42570 ecode7 = SWIG_AsVal_long(obj6, &val7);
42571 if (!SWIG_IsOK(ecode7)) {
42572 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
42573 }
42574 arg7 = static_cast< long >(val7);
42575 }
42576 if (obj7) {
42577 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42578 if (!SWIG_IsOK(res8)) {
42579 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42580 }
42581 if (!argp8) {
42582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42583 }
42584 arg8 = reinterpret_cast< wxValidator * >(argp8);
42585 }
42586 if (obj8) {
42587 {
42588 arg9 = wxString_in_helper(obj8);
42589 if (arg9 == NULL) SWIG_fail;
42590 temp9 = true;
42591 }
42592 }
42593 {
42594 PyThreadState* __tstate = wxPyBeginAllowThreads();
42595 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42596 wxPyEndAllowThreads(__tstate);
42597 if (PyErr_Occurred()) SWIG_fail;
42598 }
42599 {
42600 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42601 }
42602 {
42603 if (temp4)
42604 delete arg4;
42605 }
42606 {
42607 if (temp9)
42608 delete arg9;
42609 }
42610 return resultobj;
42611 fail:
42612 {
42613 if (temp4)
42614 delete arg4;
42615 }
42616 {
42617 if (temp9)
42618 delete arg9;
42619 }
42620 return NULL;
42621 }
42622
42623
42624 SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42625 PyObject *resultobj = 0;
42626 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42627 int arg2 ;
42628 void *argp1 = 0 ;
42629 int res1 = 0 ;
42630 int val2 ;
42631 int ecode2 = 0 ;
42632 PyObject * obj0 = 0 ;
42633 PyObject * obj1 = 0 ;
42634 char * kwnames[] = {
42635 (char *) "self",(char *) "newmargin", NULL
42636 };
42637
42638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
42639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42640 if (!SWIG_IsOK(res1)) {
42641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42642 }
42643 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42644 ecode2 = SWIG_AsVal_int(obj1, &val2);
42645 if (!SWIG_IsOK(ecode2)) {
42646 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
42647 }
42648 arg2 = static_cast< int >(val2);
42649 {
42650 PyThreadState* __tstate = wxPyBeginAllowThreads();
42651 (arg1)->SetInternalMargin(arg2);
42652 wxPyEndAllowThreads(__tstate);
42653 if (PyErr_Occurred()) SWIG_fail;
42654 }
42655 resultobj = SWIG_Py_Void();
42656 return resultobj;
42657 fail:
42658 return NULL;
42659 }
42660
42661
42662 SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42663 PyObject *resultobj = 0;
42664 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42665 int result;
42666 void *argp1 = 0 ;
42667 int res1 = 0 ;
42668 PyObject *swig_obj[1] ;
42669
42670 if (!args) SWIG_fail;
42671 swig_obj[0] = args;
42672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42673 if (!SWIG_IsOK(res1)) {
42674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42675 }
42676 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42677 {
42678 PyThreadState* __tstate = wxPyBeginAllowThreads();
42679 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
42680 wxPyEndAllowThreads(__tstate);
42681 if (PyErr_Occurred()) SWIG_fail;
42682 }
42683 resultobj = SWIG_From_int(static_cast< int >(result));
42684 return resultobj;
42685 fail:
42686 return NULL;
42687 }
42688
42689
42690 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42691 PyObject *resultobj = 0;
42692 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42693 int arg2 ;
42694 void *argp1 = 0 ;
42695 int res1 = 0 ;
42696 int val2 ;
42697 int ecode2 = 0 ;
42698 PyObject * obj0 = 0 ;
42699 PyObject * obj1 = 0 ;
42700 char * kwnames[] = {
42701 (char *) "self",(char *) "prop", NULL
42702 };
42703
42704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42706 if (!SWIG_IsOK(res1)) {
42707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42708 }
42709 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42710 ecode2 = SWIG_AsVal_int(obj1, &val2);
42711 if (!SWIG_IsOK(ecode2)) {
42712 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42713 }
42714 arg2 = static_cast< int >(val2);
42715 {
42716 PyThreadState* __tstate = wxPyBeginAllowThreads();
42717 (arg1)->SetTextCtrlProportion(arg2);
42718 wxPyEndAllowThreads(__tstate);
42719 if (PyErr_Occurred()) SWIG_fail;
42720 }
42721 resultobj = SWIG_Py_Void();
42722 return resultobj;
42723 fail:
42724 return NULL;
42725 }
42726
42727
42728 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42729 PyObject *resultobj = 0;
42730 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42731 int result;
42732 void *argp1 = 0 ;
42733 int res1 = 0 ;
42734 PyObject *swig_obj[1] ;
42735
42736 if (!args) SWIG_fail;
42737 swig_obj[0] = args;
42738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42739 if (!SWIG_IsOK(res1)) {
42740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42741 }
42742 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42743 {
42744 PyThreadState* __tstate = wxPyBeginAllowThreads();
42745 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
42746 wxPyEndAllowThreads(__tstate);
42747 if (PyErr_Occurred()) SWIG_fail;
42748 }
42749 resultobj = SWIG_From_int(static_cast< int >(result));
42750 return resultobj;
42751 fail:
42752 return NULL;
42753 }
42754
42755
42756 SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42757 PyObject *resultobj = 0;
42758 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42759 bool result;
42760 void *argp1 = 0 ;
42761 int res1 = 0 ;
42762 PyObject *swig_obj[1] ;
42763
42764 if (!args) SWIG_fail;
42765 swig_obj[0] = args;
42766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42767 if (!SWIG_IsOK(res1)) {
42768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42769 }
42770 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42771 {
42772 PyThreadState* __tstate = wxPyBeginAllowThreads();
42773 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
42774 wxPyEndAllowThreads(__tstate);
42775 if (PyErr_Occurred()) SWIG_fail;
42776 }
42777 {
42778 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42779 }
42780 return resultobj;
42781 fail:
42782 return NULL;
42783 }
42784
42785
42786 SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42787 PyObject *resultobj = 0;
42788 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42789 bool arg2 = (bool) true ;
42790 void *argp1 = 0 ;
42791 int res1 = 0 ;
42792 bool val2 ;
42793 int ecode2 = 0 ;
42794 PyObject * obj0 = 0 ;
42795 PyObject * obj1 = 0 ;
42796 char * kwnames[] = {
42797 (char *) "self",(char *) "grow", NULL
42798 };
42799
42800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42802 if (!SWIG_IsOK(res1)) {
42803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42804 }
42805 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42806 if (obj1) {
42807 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42808 if (!SWIG_IsOK(ecode2)) {
42809 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42810 }
42811 arg2 = static_cast< bool >(val2);
42812 }
42813 {
42814 PyThreadState* __tstate = wxPyBeginAllowThreads();
42815 (arg1)->SetTextCtrlGrowable(arg2);
42816 wxPyEndAllowThreads(__tstate);
42817 if (PyErr_Occurred()) SWIG_fail;
42818 }
42819 resultobj = SWIG_Py_Void();
42820 return resultobj;
42821 fail:
42822 return NULL;
42823 }
42824
42825
42826 SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42827 PyObject *resultobj = 0;
42828 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42829 bool result;
42830 void *argp1 = 0 ;
42831 int res1 = 0 ;
42832 PyObject *swig_obj[1] ;
42833
42834 if (!args) SWIG_fail;
42835 swig_obj[0] = args;
42836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42837 if (!SWIG_IsOK(res1)) {
42838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42839 }
42840 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42841 {
42842 PyThreadState* __tstate = wxPyBeginAllowThreads();
42843 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
42844 wxPyEndAllowThreads(__tstate);
42845 if (PyErr_Occurred()) SWIG_fail;
42846 }
42847 {
42848 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42849 }
42850 return resultobj;
42851 fail:
42852 return NULL;
42853 }
42854
42855
42856 SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42857 PyObject *resultobj = 0;
42858 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42859 bool arg2 = (bool) true ;
42860 void *argp1 = 0 ;
42861 int res1 = 0 ;
42862 bool val2 ;
42863 int ecode2 = 0 ;
42864 PyObject * obj0 = 0 ;
42865 PyObject * obj1 = 0 ;
42866 char * kwnames[] = {
42867 (char *) "self",(char *) "grow", NULL
42868 };
42869
42870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42872 if (!SWIG_IsOK(res1)) {
42873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42874 }
42875 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42876 if (obj1) {
42877 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42878 if (!SWIG_IsOK(ecode2)) {
42879 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42880 }
42881 arg2 = static_cast< bool >(val2);
42882 }
42883 {
42884 PyThreadState* __tstate = wxPyBeginAllowThreads();
42885 (arg1)->SetPickerCtrlGrowable(arg2);
42886 wxPyEndAllowThreads(__tstate);
42887 if (PyErr_Occurred()) SWIG_fail;
42888 }
42889 resultobj = SWIG_Py_Void();
42890 return resultobj;
42891 fail:
42892 return NULL;
42893 }
42894
42895
42896 SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42897 PyObject *resultobj = 0;
42898 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42899 bool result;
42900 void *argp1 = 0 ;
42901 int res1 = 0 ;
42902 PyObject *swig_obj[1] ;
42903
42904 if (!args) SWIG_fail;
42905 swig_obj[0] = args;
42906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42907 if (!SWIG_IsOK(res1)) {
42908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42909 }
42910 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42911 {
42912 PyThreadState* __tstate = wxPyBeginAllowThreads();
42913 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
42914 wxPyEndAllowThreads(__tstate);
42915 if (PyErr_Occurred()) SWIG_fail;
42916 }
42917 {
42918 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42919 }
42920 return resultobj;
42921 fail:
42922 return NULL;
42923 }
42924
42925
42926 SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42927 PyObject *resultobj = 0;
42928 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42929 wxTextCtrl *result = 0 ;
42930 void *argp1 = 0 ;
42931 int res1 = 0 ;
42932 PyObject *swig_obj[1] ;
42933
42934 if (!args) SWIG_fail;
42935 swig_obj[0] = args;
42936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42937 if (!SWIG_IsOK(res1)) {
42938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42939 }
42940 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42941 {
42942 PyThreadState* __tstate = wxPyBeginAllowThreads();
42943 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
42944 wxPyEndAllowThreads(__tstate);
42945 if (PyErr_Occurred()) SWIG_fail;
42946 }
42947 {
42948 resultobj = wxPyMake_wxObject(result, 0);
42949 }
42950 return resultobj;
42951 fail:
42952 return NULL;
42953 }
42954
42955
42956 SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42957 PyObject *resultobj = 0;
42958 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42959 wxControl *result = 0 ;
42960 void *argp1 = 0 ;
42961 int res1 = 0 ;
42962 PyObject *swig_obj[1] ;
42963
42964 if (!args) SWIG_fail;
42965 swig_obj[0] = args;
42966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42967 if (!SWIG_IsOK(res1)) {
42968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42969 }
42970 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42971 {
42972 PyThreadState* __tstate = wxPyBeginAllowThreads();
42973 result = (wxControl *)(arg1)->GetPickerCtrl();
42974 wxPyEndAllowThreads(__tstate);
42975 if (PyErr_Occurred()) SWIG_fail;
42976 }
42977 {
42978 resultobj = wxPyMake_wxObject(result, 0);
42979 }
42980 return resultobj;
42981 fail:
42982 return NULL;
42983 }
42984
42985
42986 SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42987 PyObject *obj;
42988 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42989 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
42990 return SWIG_Py_Void();
42991 }
42992
42993 SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
42994 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
42995 return 1;
42996 }
42997
42998
42999 SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
43000 PyObject *pyobj = 0;
43001
43002 {
43003 #if wxUSE_UNICODE
43004 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43005 #else
43006 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43007 #endif
43008 }
43009 return pyobj;
43010 }
43011
43012
43013 SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43014 PyObject *resultobj = 0;
43015 wxWindow *arg1 = (wxWindow *) 0 ;
43016 int arg2 = (int) -1 ;
43017 wxColour const &arg3_defvalue = *wxBLACK ;
43018 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
43019 wxPoint const &arg4_defvalue = wxDefaultPosition ;
43020 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
43021 wxSize const &arg5_defvalue = wxDefaultSize ;
43022 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
43023 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
43024 wxValidator const &arg7_defvalue = wxDefaultValidator ;
43025 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
43026 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
43027 wxString *arg8 = (wxString *) &arg8_defvalue ;
43028 wxColourPickerCtrl *result = 0 ;
43029 void *argp1 = 0 ;
43030 int res1 = 0 ;
43031 int val2 ;
43032 int ecode2 = 0 ;
43033 wxColour temp3 ;
43034 wxPoint temp4 ;
43035 wxSize temp5 ;
43036 long val6 ;
43037 int ecode6 = 0 ;
43038 void *argp7 = 0 ;
43039 int res7 = 0 ;
43040 bool temp8 = false ;
43041 PyObject * obj0 = 0 ;
43042 PyObject * obj1 = 0 ;
43043 PyObject * obj2 = 0 ;
43044 PyObject * obj3 = 0 ;
43045 PyObject * obj4 = 0 ;
43046 PyObject * obj5 = 0 ;
43047 PyObject * obj6 = 0 ;
43048 PyObject * obj7 = 0 ;
43049 char * kwnames[] = {
43050 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43051 };
43052
43053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
43054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43055 if (!SWIG_IsOK(res1)) {
43056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43057 }
43058 arg1 = reinterpret_cast< wxWindow * >(argp1);
43059 if (obj1) {
43060 ecode2 = SWIG_AsVal_int(obj1, &val2);
43061 if (!SWIG_IsOK(ecode2)) {
43062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
43063 }
43064 arg2 = static_cast< int >(val2);
43065 }
43066 if (obj2) {
43067 {
43068 arg3 = &temp3;
43069 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43070 }
43071 }
43072 if (obj3) {
43073 {
43074 arg4 = &temp4;
43075 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
43076 }
43077 }
43078 if (obj4) {
43079 {
43080 arg5 = &temp5;
43081 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
43082 }
43083 }
43084 if (obj5) {
43085 ecode6 = SWIG_AsVal_long(obj5, &val6);
43086 if (!SWIG_IsOK(ecode6)) {
43087 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
43088 }
43089 arg6 = static_cast< long >(val6);
43090 }
43091 if (obj6) {
43092 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
43093 if (!SWIG_IsOK(res7)) {
43094 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43095 }
43096 if (!argp7) {
43097 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43098 }
43099 arg7 = reinterpret_cast< wxValidator * >(argp7);
43100 }
43101 if (obj7) {
43102 {
43103 arg8 = wxString_in_helper(obj7);
43104 if (arg8 == NULL) SWIG_fail;
43105 temp8 = true;
43106 }
43107 }
43108 {
43109 if (!wxPyCheckForApp()) SWIG_fail;
43110 PyThreadState* __tstate = wxPyBeginAllowThreads();
43111 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
43112 wxPyEndAllowThreads(__tstate);
43113 if (PyErr_Occurred()) SWIG_fail;
43114 }
43115 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
43116 {
43117 if (temp8)
43118 delete arg8;
43119 }
43120 return resultobj;
43121 fail:
43122 {
43123 if (temp8)
43124 delete arg8;
43125 }
43126 return NULL;
43127 }
43128
43129
43130 SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43131 PyObject *resultobj = 0;
43132 wxColourPickerCtrl *result = 0 ;
43133
43134 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
43135 {
43136 if (!wxPyCheckForApp()) SWIG_fail;
43137 PyThreadState* __tstate = wxPyBeginAllowThreads();
43138 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
43139 wxPyEndAllowThreads(__tstate);
43140 if (PyErr_Occurred()) SWIG_fail;
43141 }
43142 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
43143 return resultobj;
43144 fail:
43145 return NULL;
43146 }
43147
43148
43149 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43150 PyObject *resultobj = 0;
43151 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43152 wxWindow *arg2 = (wxWindow *) 0 ;
43153 int arg3 ;
43154 wxColour const &arg4_defvalue = *wxBLACK ;
43155 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
43156 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43157 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43158 wxSize const &arg6_defvalue = wxDefaultSize ;
43159 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43160 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
43161 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43162 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43163 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
43164 wxString *arg9 = (wxString *) &arg9_defvalue ;
43165 bool result;
43166 void *argp1 = 0 ;
43167 int res1 = 0 ;
43168 void *argp2 = 0 ;
43169 int res2 = 0 ;
43170 int val3 ;
43171 int ecode3 = 0 ;
43172 wxColour temp4 ;
43173 wxPoint temp5 ;
43174 wxSize temp6 ;
43175 long val7 ;
43176 int ecode7 = 0 ;
43177 void *argp8 = 0 ;
43178 int res8 = 0 ;
43179 bool temp9 = false ;
43180 PyObject * obj0 = 0 ;
43181 PyObject * obj1 = 0 ;
43182 PyObject * obj2 = 0 ;
43183 PyObject * obj3 = 0 ;
43184 PyObject * obj4 = 0 ;
43185 PyObject * obj5 = 0 ;
43186 PyObject * obj6 = 0 ;
43187 PyObject * obj7 = 0 ;
43188 PyObject * obj8 = 0 ;
43189 char * kwnames[] = {
43190 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43191 };
43192
43193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43195 if (!SWIG_IsOK(res1)) {
43196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43197 }
43198 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43199 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43200 if (!SWIG_IsOK(res2)) {
43201 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43202 }
43203 arg2 = reinterpret_cast< wxWindow * >(argp2);
43204 ecode3 = SWIG_AsVal_int(obj2, &val3);
43205 if (!SWIG_IsOK(ecode3)) {
43206 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43207 }
43208 arg3 = static_cast< int >(val3);
43209 if (obj3) {
43210 {
43211 arg4 = &temp4;
43212 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
43213 }
43214 }
43215 if (obj4) {
43216 {
43217 arg5 = &temp5;
43218 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43219 }
43220 }
43221 if (obj5) {
43222 {
43223 arg6 = &temp6;
43224 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43225 }
43226 }
43227 if (obj6) {
43228 ecode7 = SWIG_AsVal_long(obj6, &val7);
43229 if (!SWIG_IsOK(ecode7)) {
43230 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43231 }
43232 arg7 = static_cast< long >(val7);
43233 }
43234 if (obj7) {
43235 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43236 if (!SWIG_IsOK(res8)) {
43237 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43238 }
43239 if (!argp8) {
43240 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43241 }
43242 arg8 = reinterpret_cast< wxValidator * >(argp8);
43243 }
43244 if (obj8) {
43245 {
43246 arg9 = wxString_in_helper(obj8);
43247 if (arg9 == NULL) SWIG_fail;
43248 temp9 = true;
43249 }
43250 }
43251 {
43252 PyThreadState* __tstate = wxPyBeginAllowThreads();
43253 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43254 wxPyEndAllowThreads(__tstate);
43255 if (PyErr_Occurred()) SWIG_fail;
43256 }
43257 {
43258 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43259 }
43260 {
43261 if (temp9)
43262 delete arg9;
43263 }
43264 return resultobj;
43265 fail:
43266 {
43267 if (temp9)
43268 delete arg9;
43269 }
43270 return NULL;
43271 }
43272
43273
43274 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43275 PyObject *resultobj = 0;
43276 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43277 wxColour result;
43278 void *argp1 = 0 ;
43279 int res1 = 0 ;
43280 PyObject *swig_obj[1] ;
43281
43282 if (!args) SWIG_fail;
43283 swig_obj[0] = args;
43284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43285 if (!SWIG_IsOK(res1)) {
43286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43287 }
43288 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43289 {
43290 PyThreadState* __tstate = wxPyBeginAllowThreads();
43291 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43292 wxPyEndAllowThreads(__tstate);
43293 if (PyErr_Occurred()) SWIG_fail;
43294 }
43295 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43296 return resultobj;
43297 fail:
43298 return NULL;
43299 }
43300
43301
43302 SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43303 PyObject *resultobj = 0;
43304 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43305 wxColour *arg2 = 0 ;
43306 void *argp1 = 0 ;
43307 int res1 = 0 ;
43308 wxColour temp2 ;
43309 PyObject * obj0 = 0 ;
43310 PyObject * obj1 = 0 ;
43311 char * kwnames[] = {
43312 (char *) "self",(char *) "col", NULL
43313 };
43314
43315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43317 if (!SWIG_IsOK(res1)) {
43318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43319 }
43320 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43321 {
43322 arg2 = &temp2;
43323 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43324 }
43325 {
43326 PyThreadState* __tstate = wxPyBeginAllowThreads();
43327 (arg1)->SetColour((wxColour const &)*arg2);
43328 wxPyEndAllowThreads(__tstate);
43329 if (PyErr_Occurred()) SWIG_fail;
43330 }
43331 resultobj = SWIG_Py_Void();
43332 return resultobj;
43333 fail:
43334 return NULL;
43335 }
43336
43337
43338 SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43339 PyObject *obj;
43340 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43341 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43342 return SWIG_Py_Void();
43343 }
43344
43345 SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43346 return SWIG_Python_InitShadowInstance(args);
43347 }
43348
43349 SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43350 PyObject *resultobj = 0;
43351 wxObject *arg1 = (wxObject *) 0 ;
43352 int arg2 ;
43353 wxColour *arg3 = 0 ;
43354 wxColourPickerEvent *result = 0 ;
43355 void *argp1 = 0 ;
43356 int res1 = 0 ;
43357 int val2 ;
43358 int ecode2 = 0 ;
43359 wxColour temp3 ;
43360 PyObject * obj0 = 0 ;
43361 PyObject * obj1 = 0 ;
43362 PyObject * obj2 = 0 ;
43363 char * kwnames[] = {
43364 (char *) "generator",(char *) "id",(char *) "col", NULL
43365 };
43366
43367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43369 if (!SWIG_IsOK(res1)) {
43370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43371 }
43372 arg1 = reinterpret_cast< wxObject * >(argp1);
43373 ecode2 = SWIG_AsVal_int(obj1, &val2);
43374 if (!SWIG_IsOK(ecode2)) {
43375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43376 }
43377 arg2 = static_cast< int >(val2);
43378 {
43379 arg3 = &temp3;
43380 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43381 }
43382 {
43383 PyThreadState* __tstate = wxPyBeginAllowThreads();
43384 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43385 wxPyEndAllowThreads(__tstate);
43386 if (PyErr_Occurred()) SWIG_fail;
43387 }
43388 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43389 return resultobj;
43390 fail:
43391 return NULL;
43392 }
43393
43394
43395 SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43396 PyObject *resultobj = 0;
43397 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43398 wxColour result;
43399 void *argp1 = 0 ;
43400 int res1 = 0 ;
43401 PyObject *swig_obj[1] ;
43402
43403 if (!args) SWIG_fail;
43404 swig_obj[0] = args;
43405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43406 if (!SWIG_IsOK(res1)) {
43407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43408 }
43409 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43410 {
43411 PyThreadState* __tstate = wxPyBeginAllowThreads();
43412 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43413 wxPyEndAllowThreads(__tstate);
43414 if (PyErr_Occurred()) SWIG_fail;
43415 }
43416 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43417 return resultobj;
43418 fail:
43419 return NULL;
43420 }
43421
43422
43423 SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43424 PyObject *resultobj = 0;
43425 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43426 wxColour *arg2 = 0 ;
43427 void *argp1 = 0 ;
43428 int res1 = 0 ;
43429 wxColour temp2 ;
43430 PyObject * obj0 = 0 ;
43431 PyObject * obj1 = 0 ;
43432 char * kwnames[] = {
43433 (char *) "self",(char *) "c", NULL
43434 };
43435
43436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43438 if (!SWIG_IsOK(res1)) {
43439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43440 }
43441 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43442 {
43443 arg2 = &temp2;
43444 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43445 }
43446 {
43447 PyThreadState* __tstate = wxPyBeginAllowThreads();
43448 (arg1)->SetColour((wxColour const &)*arg2);
43449 wxPyEndAllowThreads(__tstate);
43450 if (PyErr_Occurred()) SWIG_fail;
43451 }
43452 resultobj = SWIG_Py_Void();
43453 return resultobj;
43454 fail:
43455 return NULL;
43456 }
43457
43458
43459 SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43460 PyObject *obj;
43461 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43462 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43463 return SWIG_Py_Void();
43464 }
43465
43466 SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43467 return SWIG_Python_InitShadowInstance(args);
43468 }
43469
43470 SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43471 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43472 return 1;
43473 }
43474
43475
43476 SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43477 PyObject *pyobj = 0;
43478
43479 {
43480 #if wxUSE_UNICODE
43481 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43482 #else
43483 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43484 #endif
43485 }
43486 return pyobj;
43487 }
43488
43489
43490 SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43491 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43492 return 1;
43493 }
43494
43495
43496 SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
43497 PyObject *pyobj = 0;
43498
43499 {
43500 #if wxUSE_UNICODE
43501 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43502 #else
43503 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43504 #endif
43505 }
43506 return pyobj;
43507 }
43508
43509
43510 SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
43511 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
43512 return 1;
43513 }
43514
43515
43516 SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
43517 PyObject *pyobj = 0;
43518
43519 {
43520 #if wxUSE_UNICODE
43521 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43522 #else
43523 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43524 #endif
43525 }
43526 return pyobj;
43527 }
43528
43529
43530 SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
43531 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
43532 return 1;
43533 }
43534
43535
43536 SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
43537 PyObject *pyobj = 0;
43538
43539 {
43540 #if wxUSE_UNICODE
43541 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43542 #else
43543 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43544 #endif
43545 }
43546 return pyobj;
43547 }
43548
43549
43550 SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
43551 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
43552 return 1;
43553 }
43554
43555
43556 SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
43557 PyObject *pyobj = 0;
43558
43559 {
43560 #if wxUSE_UNICODE
43561 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43562 #else
43563 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43564 #endif
43565 }
43566 return pyobj;
43567 }
43568
43569
43570 SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43571 PyObject *resultobj = 0;
43572 wxWindow *arg1 = (wxWindow *) 0 ;
43573 int arg2 = (int) -1 ;
43574 wxString const &arg3_defvalue = wxPyEmptyString ;
43575 wxString *arg3 = (wxString *) &arg3_defvalue ;
43576 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
43577 wxString *arg4 = (wxString *) &arg4_defvalue ;
43578 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43579 wxString *arg5 = (wxString *) &arg5_defvalue ;
43580 wxPoint const &arg6_defvalue = wxDefaultPosition ;
43581 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
43582 wxSize const &arg7_defvalue = wxDefaultSize ;
43583 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
43584 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
43585 wxValidator const &arg9_defvalue = wxDefaultValidator ;
43586 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
43587 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
43588 wxString *arg10 = (wxString *) &arg10_defvalue ;
43589 wxFilePickerCtrl *result = 0 ;
43590 void *argp1 = 0 ;
43591 int res1 = 0 ;
43592 int val2 ;
43593 int ecode2 = 0 ;
43594 bool temp3 = false ;
43595 bool temp4 = false ;
43596 bool temp5 = false ;
43597 wxPoint temp6 ;
43598 wxSize temp7 ;
43599 long val8 ;
43600 int ecode8 = 0 ;
43601 void *argp9 = 0 ;
43602 int res9 = 0 ;
43603 bool temp10 = false ;
43604 PyObject * obj0 = 0 ;
43605 PyObject * obj1 = 0 ;
43606 PyObject * obj2 = 0 ;
43607 PyObject * obj3 = 0 ;
43608 PyObject * obj4 = 0 ;
43609 PyObject * obj5 = 0 ;
43610 PyObject * obj6 = 0 ;
43611 PyObject * obj7 = 0 ;
43612 PyObject * obj8 = 0 ;
43613 PyObject * obj9 = 0 ;
43614 char * kwnames[] = {
43615 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43616 };
43617
43618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
43619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43620 if (!SWIG_IsOK(res1)) {
43621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43622 }
43623 arg1 = reinterpret_cast< wxWindow * >(argp1);
43624 if (obj1) {
43625 ecode2 = SWIG_AsVal_int(obj1, &val2);
43626 if (!SWIG_IsOK(ecode2)) {
43627 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
43628 }
43629 arg2 = static_cast< int >(val2);
43630 }
43631 if (obj2) {
43632 {
43633 arg3 = wxString_in_helper(obj2);
43634 if (arg3 == NULL) SWIG_fail;
43635 temp3 = true;
43636 }
43637 }
43638 if (obj3) {
43639 {
43640 arg4 = wxString_in_helper(obj3);
43641 if (arg4 == NULL) SWIG_fail;
43642 temp4 = true;
43643 }
43644 }
43645 if (obj4) {
43646 {
43647 arg5 = wxString_in_helper(obj4);
43648 if (arg5 == NULL) SWIG_fail;
43649 temp5 = true;
43650 }
43651 }
43652 if (obj5) {
43653 {
43654 arg6 = &temp6;
43655 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
43656 }
43657 }
43658 if (obj6) {
43659 {
43660 arg7 = &temp7;
43661 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
43662 }
43663 }
43664 if (obj7) {
43665 ecode8 = SWIG_AsVal_long(obj7, &val8);
43666 if (!SWIG_IsOK(ecode8)) {
43667 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
43668 }
43669 arg8 = static_cast< long >(val8);
43670 }
43671 if (obj8) {
43672 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
43673 if (!SWIG_IsOK(res9)) {
43674 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43675 }
43676 if (!argp9) {
43677 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43678 }
43679 arg9 = reinterpret_cast< wxValidator * >(argp9);
43680 }
43681 if (obj9) {
43682 {
43683 arg10 = wxString_in_helper(obj9);
43684 if (arg10 == NULL) SWIG_fail;
43685 temp10 = true;
43686 }
43687 }
43688 {
43689 if (!wxPyCheckForApp()) SWIG_fail;
43690 PyThreadState* __tstate = wxPyBeginAllowThreads();
43691 result = (wxFilePickerCtrl *)new wxFilePickerCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
43692 wxPyEndAllowThreads(__tstate);
43693 if (PyErr_Occurred()) SWIG_fail;
43694 }
43695 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
43696 {
43697 if (temp3)
43698 delete arg3;
43699 }
43700 {
43701 if (temp4)
43702 delete arg4;
43703 }
43704 {
43705 if (temp5)
43706 delete arg5;
43707 }
43708 {
43709 if (temp10)
43710 delete arg10;
43711 }
43712 return resultobj;
43713 fail:
43714 {
43715 if (temp3)
43716 delete arg3;
43717 }
43718 {
43719 if (temp4)
43720 delete arg4;
43721 }
43722 {
43723 if (temp5)
43724 delete arg5;
43725 }
43726 {
43727 if (temp10)
43728 delete arg10;
43729 }
43730 return NULL;
43731 }
43732
43733
43734 SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43735 PyObject *resultobj = 0;
43736 wxFilePickerCtrl *result = 0 ;
43737
43738 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
43739 {
43740 if (!wxPyCheckForApp()) SWIG_fail;
43741 PyThreadState* __tstate = wxPyBeginAllowThreads();
43742 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
43743 wxPyEndAllowThreads(__tstate);
43744 if (PyErr_Occurred()) SWIG_fail;
43745 }
43746 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
43747 return resultobj;
43748 fail:
43749 return NULL;
43750 }
43751
43752
43753 SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43754 PyObject *resultobj = 0;
43755 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43756 wxWindow *arg2 = (wxWindow *) 0 ;
43757 int arg3 = (int) -1 ;
43758 wxString const &arg4_defvalue = wxPyEmptyString ;
43759 wxString *arg4 = (wxString *) &arg4_defvalue ;
43760 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
43761 wxString *arg5 = (wxString *) &arg5_defvalue ;
43762 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43763 wxString *arg6 = (wxString *) &arg6_defvalue ;
43764 wxPoint const &arg7_defvalue = wxDefaultPosition ;
43765 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
43766 wxSize const &arg8_defvalue = wxDefaultSize ;
43767 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
43768 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
43769 wxValidator const &arg10_defvalue = wxDefaultValidator ;
43770 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
43771 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
43772 wxString *arg11 = (wxString *) &arg11_defvalue ;
43773 bool result;
43774 void *argp1 = 0 ;
43775 int res1 = 0 ;
43776 void *argp2 = 0 ;
43777 int res2 = 0 ;
43778 int val3 ;
43779 int ecode3 = 0 ;
43780 bool temp4 = false ;
43781 bool temp5 = false ;
43782 bool temp6 = false ;
43783 wxPoint temp7 ;
43784 wxSize temp8 ;
43785 long val9 ;
43786 int ecode9 = 0 ;
43787 void *argp10 = 0 ;
43788 int res10 = 0 ;
43789 bool temp11 = false ;
43790 PyObject * obj0 = 0 ;
43791 PyObject * obj1 = 0 ;
43792 PyObject * obj2 = 0 ;
43793 PyObject * obj3 = 0 ;
43794 PyObject * obj4 = 0 ;
43795 PyObject * obj5 = 0 ;
43796 PyObject * obj6 = 0 ;
43797 PyObject * obj7 = 0 ;
43798 PyObject * obj8 = 0 ;
43799 PyObject * obj9 = 0 ;
43800 PyObject * obj10 = 0 ;
43801 char * kwnames[] = {
43802 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43803 };
43804
43805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
43806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43807 if (!SWIG_IsOK(res1)) {
43808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43809 }
43810 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43811 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43812 if (!SWIG_IsOK(res2)) {
43813 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43814 }
43815 arg2 = reinterpret_cast< wxWindow * >(argp2);
43816 if (obj2) {
43817 ecode3 = SWIG_AsVal_int(obj2, &val3);
43818 if (!SWIG_IsOK(ecode3)) {
43819 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43820 }
43821 arg3 = static_cast< int >(val3);
43822 }
43823 if (obj3) {
43824 {
43825 arg4 = wxString_in_helper(obj3);
43826 if (arg4 == NULL) SWIG_fail;
43827 temp4 = true;
43828 }
43829 }
43830 if (obj4) {
43831 {
43832 arg5 = wxString_in_helper(obj4);
43833 if (arg5 == NULL) SWIG_fail;
43834 temp5 = true;
43835 }
43836 }
43837 if (obj5) {
43838 {
43839 arg6 = wxString_in_helper(obj5);
43840 if (arg6 == NULL) SWIG_fail;
43841 temp6 = true;
43842 }
43843 }
43844 if (obj6) {
43845 {
43846 arg7 = &temp7;
43847 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
43848 }
43849 }
43850 if (obj7) {
43851 {
43852 arg8 = &temp8;
43853 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
43854 }
43855 }
43856 if (obj8) {
43857 ecode9 = SWIG_AsVal_long(obj8, &val9);
43858 if (!SWIG_IsOK(ecode9)) {
43859 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
43860 }
43861 arg9 = static_cast< long >(val9);
43862 }
43863 if (obj9) {
43864 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
43865 if (!SWIG_IsOK(res10)) {
43866 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43867 }
43868 if (!argp10) {
43869 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43870 }
43871 arg10 = reinterpret_cast< wxValidator * >(argp10);
43872 }
43873 if (obj10) {
43874 {
43875 arg11 = wxString_in_helper(obj10);
43876 if (arg11 == NULL) SWIG_fail;
43877 temp11 = true;
43878 }
43879 }
43880 {
43881 PyThreadState* __tstate = wxPyBeginAllowThreads();
43882 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxString const &)*arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
43883 wxPyEndAllowThreads(__tstate);
43884 if (PyErr_Occurred()) SWIG_fail;
43885 }
43886 {
43887 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43888 }
43889 {
43890 if (temp4)
43891 delete arg4;
43892 }
43893 {
43894 if (temp5)
43895 delete arg5;
43896 }
43897 {
43898 if (temp6)
43899 delete arg6;
43900 }
43901 {
43902 if (temp11)
43903 delete arg11;
43904 }
43905 return resultobj;
43906 fail:
43907 {
43908 if (temp4)
43909 delete arg4;
43910 }
43911 {
43912 if (temp5)
43913 delete arg5;
43914 }
43915 {
43916 if (temp6)
43917 delete arg6;
43918 }
43919 {
43920 if (temp11)
43921 delete arg11;
43922 }
43923 return NULL;
43924 }
43925
43926
43927 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43928 PyObject *resultobj = 0;
43929 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43930 wxString result;
43931 void *argp1 = 0 ;
43932 int res1 = 0 ;
43933 PyObject *swig_obj[1] ;
43934
43935 if (!args) SWIG_fail;
43936 swig_obj[0] = args;
43937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43938 if (!SWIG_IsOK(res1)) {
43939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43940 }
43941 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43942 {
43943 PyThreadState* __tstate = wxPyBeginAllowThreads();
43944 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
43945 wxPyEndAllowThreads(__tstate);
43946 if (PyErr_Occurred()) SWIG_fail;
43947 }
43948 {
43949 #if wxUSE_UNICODE
43950 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43951 #else
43952 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43953 #endif
43954 }
43955 return resultobj;
43956 fail:
43957 return NULL;
43958 }
43959
43960
43961 SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43962 PyObject *resultobj = 0;
43963 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43964 wxString *arg2 = 0 ;
43965 void *argp1 = 0 ;
43966 int res1 = 0 ;
43967 bool temp2 = false ;
43968 PyObject * obj0 = 0 ;
43969 PyObject * obj1 = 0 ;
43970 char * kwnames[] = {
43971 (char *) "self",(char *) "str", NULL
43972 };
43973
43974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
43975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43976 if (!SWIG_IsOK(res1)) {
43977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43978 }
43979 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43980 {
43981 arg2 = wxString_in_helper(obj1);
43982 if (arg2 == NULL) SWIG_fail;
43983 temp2 = true;
43984 }
43985 {
43986 PyThreadState* __tstate = wxPyBeginAllowThreads();
43987 (arg1)->SetPath((wxString const &)*arg2);
43988 wxPyEndAllowThreads(__tstate);
43989 if (PyErr_Occurred()) SWIG_fail;
43990 }
43991 resultobj = SWIG_Py_Void();
43992 {
43993 if (temp2)
43994 delete arg2;
43995 }
43996 return resultobj;
43997 fail:
43998 {
43999 if (temp2)
44000 delete arg2;
44001 }
44002 return NULL;
44003 }
44004
44005
44006 SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44007 PyObject *resultobj = 0;
44008 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44009 wxString *arg2 = 0 ;
44010 bool result;
44011 void *argp1 = 0 ;
44012 int res1 = 0 ;
44013 bool temp2 = false ;
44014 PyObject * obj0 = 0 ;
44015 PyObject * obj1 = 0 ;
44016 char * kwnames[] = {
44017 (char *) "self",(char *) "path", NULL
44018 };
44019
44020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44022 if (!SWIG_IsOK(res1)) {
44023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44024 }
44025 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44026 {
44027 arg2 = wxString_in_helper(obj1);
44028 if (arg2 == NULL) SWIG_fail;
44029 temp2 = true;
44030 }
44031 {
44032 PyThreadState* __tstate = wxPyBeginAllowThreads();
44033 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44034 wxPyEndAllowThreads(__tstate);
44035 if (PyErr_Occurred()) SWIG_fail;
44036 }
44037 {
44038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44039 }
44040 {
44041 if (temp2)
44042 delete arg2;
44043 }
44044 return resultobj;
44045 fail:
44046 {
44047 if (temp2)
44048 delete arg2;
44049 }
44050 return NULL;
44051 }
44052
44053
44054 SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44055 PyObject *resultobj = 0;
44056 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44057 wxString result;
44058 void *argp1 = 0 ;
44059 int res1 = 0 ;
44060 PyObject *swig_obj[1] ;
44061
44062 if (!args) SWIG_fail;
44063 swig_obj[0] = args;
44064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44065 if (!SWIG_IsOK(res1)) {
44066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44067 }
44068 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44069 {
44070 PyThreadState* __tstate = wxPyBeginAllowThreads();
44071 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
44072 wxPyEndAllowThreads(__tstate);
44073 if (PyErr_Occurred()) SWIG_fail;
44074 }
44075 {
44076 #if wxUSE_UNICODE
44077 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44078 #else
44079 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44080 #endif
44081 }
44082 return resultobj;
44083 fail:
44084 return NULL;
44085 }
44086
44087
44088 SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44089 PyObject *obj;
44090 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44091 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
44092 return SWIG_Py_Void();
44093 }
44094
44095 SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44096 return SWIG_Python_InitShadowInstance(args);
44097 }
44098
44099 SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44100 PyObject *resultobj = 0;
44101 wxWindow *arg1 = (wxWindow *) 0 ;
44102 int arg2 = (int) -1 ;
44103 wxString const &arg3_defvalue = wxPyEmptyString ;
44104 wxString *arg3 = (wxString *) &arg3_defvalue ;
44105 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
44106 wxString *arg4 = (wxString *) &arg4_defvalue ;
44107 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44108 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44109 wxSize const &arg6_defvalue = wxDefaultSize ;
44110 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44111 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
44112 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44113 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44114 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
44115 wxString *arg9 = (wxString *) &arg9_defvalue ;
44116 wxDirPickerCtrl *result = 0 ;
44117 void *argp1 = 0 ;
44118 int res1 = 0 ;
44119 int val2 ;
44120 int ecode2 = 0 ;
44121 bool temp3 = false ;
44122 bool temp4 = false ;
44123 wxPoint temp5 ;
44124 wxSize temp6 ;
44125 long val7 ;
44126 int ecode7 = 0 ;
44127 void *argp8 = 0 ;
44128 int res8 = 0 ;
44129 bool temp9 = false ;
44130 PyObject * obj0 = 0 ;
44131 PyObject * obj1 = 0 ;
44132 PyObject * obj2 = 0 ;
44133 PyObject * obj3 = 0 ;
44134 PyObject * obj4 = 0 ;
44135 PyObject * obj5 = 0 ;
44136 PyObject * obj6 = 0 ;
44137 PyObject * obj7 = 0 ;
44138 PyObject * obj8 = 0 ;
44139 char * kwnames[] = {
44140 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44141 };
44142
44143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44145 if (!SWIG_IsOK(res1)) {
44146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44147 }
44148 arg1 = reinterpret_cast< wxWindow * >(argp1);
44149 if (obj1) {
44150 ecode2 = SWIG_AsVal_int(obj1, &val2);
44151 if (!SWIG_IsOK(ecode2)) {
44152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44153 }
44154 arg2 = static_cast< int >(val2);
44155 }
44156 if (obj2) {
44157 {
44158 arg3 = wxString_in_helper(obj2);
44159 if (arg3 == NULL) SWIG_fail;
44160 temp3 = true;
44161 }
44162 }
44163 if (obj3) {
44164 {
44165 arg4 = wxString_in_helper(obj3);
44166 if (arg4 == NULL) SWIG_fail;
44167 temp4 = true;
44168 }
44169 }
44170 if (obj4) {
44171 {
44172 arg5 = &temp5;
44173 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44174 }
44175 }
44176 if (obj5) {
44177 {
44178 arg6 = &temp6;
44179 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44180 }
44181 }
44182 if (obj6) {
44183 ecode7 = SWIG_AsVal_long(obj6, &val7);
44184 if (!SWIG_IsOK(ecode7)) {
44185 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
44186 }
44187 arg7 = static_cast< long >(val7);
44188 }
44189 if (obj7) {
44190 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44191 if (!SWIG_IsOK(res8)) {
44192 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44193 }
44194 if (!argp8) {
44195 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44196 }
44197 arg8 = reinterpret_cast< wxValidator * >(argp8);
44198 }
44199 if (obj8) {
44200 {
44201 arg9 = wxString_in_helper(obj8);
44202 if (arg9 == NULL) SWIG_fail;
44203 temp9 = true;
44204 }
44205 }
44206 {
44207 if (!wxPyCheckForApp()) SWIG_fail;
44208 PyThreadState* __tstate = wxPyBeginAllowThreads();
44209 result = (wxDirPickerCtrl *)new wxDirPickerCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
44210 wxPyEndAllowThreads(__tstate);
44211 if (PyErr_Occurred()) SWIG_fail;
44212 }
44213 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
44214 {
44215 if (temp3)
44216 delete arg3;
44217 }
44218 {
44219 if (temp4)
44220 delete arg4;
44221 }
44222 {
44223 if (temp9)
44224 delete arg9;
44225 }
44226 return resultobj;
44227 fail:
44228 {
44229 if (temp3)
44230 delete arg3;
44231 }
44232 {
44233 if (temp4)
44234 delete arg4;
44235 }
44236 {
44237 if (temp9)
44238 delete arg9;
44239 }
44240 return NULL;
44241 }
44242
44243
44244 SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44245 PyObject *resultobj = 0;
44246 wxDirPickerCtrl *result = 0 ;
44247
44248 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44249 {
44250 if (!wxPyCheckForApp()) SWIG_fail;
44251 PyThreadState* __tstate = wxPyBeginAllowThreads();
44252 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44253 wxPyEndAllowThreads(__tstate);
44254 if (PyErr_Occurred()) SWIG_fail;
44255 }
44256 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44257 return resultobj;
44258 fail:
44259 return NULL;
44260 }
44261
44262
44263 SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44264 PyObject *resultobj = 0;
44265 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44266 wxWindow *arg2 = (wxWindow *) 0 ;
44267 int arg3 = (int) -1 ;
44268 wxString const &arg4_defvalue = wxPyEmptyString ;
44269 wxString *arg4 = (wxString *) &arg4_defvalue ;
44270 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44271 wxString *arg5 = (wxString *) &arg5_defvalue ;
44272 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44273 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44274 wxSize const &arg7_defvalue = wxDefaultSize ;
44275 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44276 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44277 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44278 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44279 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44280 wxString *arg10 = (wxString *) &arg10_defvalue ;
44281 bool result;
44282 void *argp1 = 0 ;
44283 int res1 = 0 ;
44284 void *argp2 = 0 ;
44285 int res2 = 0 ;
44286 int val3 ;
44287 int ecode3 = 0 ;
44288 bool temp4 = false ;
44289 bool temp5 = false ;
44290 wxPoint temp6 ;
44291 wxSize temp7 ;
44292 long val8 ;
44293 int ecode8 = 0 ;
44294 void *argp9 = 0 ;
44295 int res9 = 0 ;
44296 bool temp10 = false ;
44297 PyObject * obj0 = 0 ;
44298 PyObject * obj1 = 0 ;
44299 PyObject * obj2 = 0 ;
44300 PyObject * obj3 = 0 ;
44301 PyObject * obj4 = 0 ;
44302 PyObject * obj5 = 0 ;
44303 PyObject * obj6 = 0 ;
44304 PyObject * obj7 = 0 ;
44305 PyObject * obj8 = 0 ;
44306 PyObject * obj9 = 0 ;
44307 char * kwnames[] = {
44308 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44309 };
44310
44311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44313 if (!SWIG_IsOK(res1)) {
44314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44315 }
44316 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44317 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44318 if (!SWIG_IsOK(res2)) {
44319 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44320 }
44321 arg2 = reinterpret_cast< wxWindow * >(argp2);
44322 if (obj2) {
44323 ecode3 = SWIG_AsVal_int(obj2, &val3);
44324 if (!SWIG_IsOK(ecode3)) {
44325 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44326 }
44327 arg3 = static_cast< int >(val3);
44328 }
44329 if (obj3) {
44330 {
44331 arg4 = wxString_in_helper(obj3);
44332 if (arg4 == NULL) SWIG_fail;
44333 temp4 = true;
44334 }
44335 }
44336 if (obj4) {
44337 {
44338 arg5 = wxString_in_helper(obj4);
44339 if (arg5 == NULL) SWIG_fail;
44340 temp5 = true;
44341 }
44342 }
44343 if (obj5) {
44344 {
44345 arg6 = &temp6;
44346 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44347 }
44348 }
44349 if (obj6) {
44350 {
44351 arg7 = &temp7;
44352 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44353 }
44354 }
44355 if (obj7) {
44356 ecode8 = SWIG_AsVal_long(obj7, &val8);
44357 if (!SWIG_IsOK(ecode8)) {
44358 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44359 }
44360 arg8 = static_cast< long >(val8);
44361 }
44362 if (obj8) {
44363 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44364 if (!SWIG_IsOK(res9)) {
44365 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44366 }
44367 if (!argp9) {
44368 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44369 }
44370 arg9 = reinterpret_cast< wxValidator * >(argp9);
44371 }
44372 if (obj9) {
44373 {
44374 arg10 = wxString_in_helper(obj9);
44375 if (arg10 == NULL) SWIG_fail;
44376 temp10 = true;
44377 }
44378 }
44379 {
44380 PyThreadState* __tstate = wxPyBeginAllowThreads();
44381 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
44382 wxPyEndAllowThreads(__tstate);
44383 if (PyErr_Occurred()) SWIG_fail;
44384 }
44385 {
44386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44387 }
44388 {
44389 if (temp4)
44390 delete arg4;
44391 }
44392 {
44393 if (temp5)
44394 delete arg5;
44395 }
44396 {
44397 if (temp10)
44398 delete arg10;
44399 }
44400 return resultobj;
44401 fail:
44402 {
44403 if (temp4)
44404 delete arg4;
44405 }
44406 {
44407 if (temp5)
44408 delete arg5;
44409 }
44410 {
44411 if (temp10)
44412 delete arg10;
44413 }
44414 return NULL;
44415 }
44416
44417
44418 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44419 PyObject *resultobj = 0;
44420 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44421 wxString result;
44422 void *argp1 = 0 ;
44423 int res1 = 0 ;
44424 PyObject *swig_obj[1] ;
44425
44426 if (!args) SWIG_fail;
44427 swig_obj[0] = args;
44428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44429 if (!SWIG_IsOK(res1)) {
44430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44431 }
44432 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44433 {
44434 PyThreadState* __tstate = wxPyBeginAllowThreads();
44435 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44436 wxPyEndAllowThreads(__tstate);
44437 if (PyErr_Occurred()) SWIG_fail;
44438 }
44439 {
44440 #if wxUSE_UNICODE
44441 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44442 #else
44443 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44444 #endif
44445 }
44446 return resultobj;
44447 fail:
44448 return NULL;
44449 }
44450
44451
44452 SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44453 PyObject *resultobj = 0;
44454 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44455 wxString *arg2 = 0 ;
44456 void *argp1 = 0 ;
44457 int res1 = 0 ;
44458 bool temp2 = false ;
44459 PyObject * obj0 = 0 ;
44460 PyObject * obj1 = 0 ;
44461 char * kwnames[] = {
44462 (char *) "self",(char *) "str", NULL
44463 };
44464
44465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44467 if (!SWIG_IsOK(res1)) {
44468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44469 }
44470 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44471 {
44472 arg2 = wxString_in_helper(obj1);
44473 if (arg2 == NULL) SWIG_fail;
44474 temp2 = true;
44475 }
44476 {
44477 PyThreadState* __tstate = wxPyBeginAllowThreads();
44478 (arg1)->SetPath((wxString const &)*arg2);
44479 wxPyEndAllowThreads(__tstate);
44480 if (PyErr_Occurred()) SWIG_fail;
44481 }
44482 resultobj = SWIG_Py_Void();
44483 {
44484 if (temp2)
44485 delete arg2;
44486 }
44487 return resultobj;
44488 fail:
44489 {
44490 if (temp2)
44491 delete arg2;
44492 }
44493 return NULL;
44494 }
44495
44496
44497 SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44498 PyObject *resultobj = 0;
44499 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44500 wxString *arg2 = 0 ;
44501 bool result;
44502 void *argp1 = 0 ;
44503 int res1 = 0 ;
44504 bool temp2 = false ;
44505 PyObject * obj0 = 0 ;
44506 PyObject * obj1 = 0 ;
44507 char * kwnames[] = {
44508 (char *) "self",(char *) "path", NULL
44509 };
44510
44511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44513 if (!SWIG_IsOK(res1)) {
44514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44515 }
44516 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44517 {
44518 arg2 = wxString_in_helper(obj1);
44519 if (arg2 == NULL) SWIG_fail;
44520 temp2 = true;
44521 }
44522 {
44523 PyThreadState* __tstate = wxPyBeginAllowThreads();
44524 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44525 wxPyEndAllowThreads(__tstate);
44526 if (PyErr_Occurred()) SWIG_fail;
44527 }
44528 {
44529 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44530 }
44531 {
44532 if (temp2)
44533 delete arg2;
44534 }
44535 return resultobj;
44536 fail:
44537 {
44538 if (temp2)
44539 delete arg2;
44540 }
44541 return NULL;
44542 }
44543
44544
44545 SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44546 PyObject *resultobj = 0;
44547 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44548 wxString result;
44549 void *argp1 = 0 ;
44550 int res1 = 0 ;
44551 PyObject *swig_obj[1] ;
44552
44553 if (!args) SWIG_fail;
44554 swig_obj[0] = args;
44555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44556 if (!SWIG_IsOK(res1)) {
44557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44558 }
44559 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44560 {
44561 PyThreadState* __tstate = wxPyBeginAllowThreads();
44562 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
44563 wxPyEndAllowThreads(__tstate);
44564 if (PyErr_Occurred()) SWIG_fail;
44565 }
44566 {
44567 #if wxUSE_UNICODE
44568 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44569 #else
44570 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44571 #endif
44572 }
44573 return resultobj;
44574 fail:
44575 return NULL;
44576 }
44577
44578
44579 SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44580 PyObject *obj;
44581 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44582 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
44583 return SWIG_Py_Void();
44584 }
44585
44586 SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44587 return SWIG_Python_InitShadowInstance(args);
44588 }
44589
44590 SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44591 PyObject *resultobj = 0;
44592 wxEventType arg1 ;
44593 wxObject *arg2 = (wxObject *) 0 ;
44594 int arg3 ;
44595 wxString *arg4 = 0 ;
44596 wxFileDirPickerEvent *result = 0 ;
44597 int val1 ;
44598 int ecode1 = 0 ;
44599 void *argp2 = 0 ;
44600 int res2 = 0 ;
44601 int val3 ;
44602 int ecode3 = 0 ;
44603 bool temp4 = false ;
44604 PyObject * obj0 = 0 ;
44605 PyObject * obj1 = 0 ;
44606 PyObject * obj2 = 0 ;
44607 PyObject * obj3 = 0 ;
44608 char * kwnames[] = {
44609 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
44610 };
44611
44612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44613 ecode1 = SWIG_AsVal_int(obj0, &val1);
44614 if (!SWIG_IsOK(ecode1)) {
44615 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
44616 }
44617 arg1 = static_cast< wxEventType >(val1);
44618 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
44619 if (!SWIG_IsOK(res2)) {
44620 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
44621 }
44622 arg2 = reinterpret_cast< wxObject * >(argp2);
44623 ecode3 = SWIG_AsVal_int(obj2, &val3);
44624 if (!SWIG_IsOK(ecode3)) {
44625 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
44626 }
44627 arg3 = static_cast< int >(val3);
44628 {
44629 arg4 = wxString_in_helper(obj3);
44630 if (arg4 == NULL) SWIG_fail;
44631 temp4 = true;
44632 }
44633 {
44634 PyThreadState* __tstate = wxPyBeginAllowThreads();
44635 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
44636 wxPyEndAllowThreads(__tstate);
44637 if (PyErr_Occurred()) SWIG_fail;
44638 }
44639 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
44640 {
44641 if (temp4)
44642 delete arg4;
44643 }
44644 return resultobj;
44645 fail:
44646 {
44647 if (temp4)
44648 delete arg4;
44649 }
44650 return NULL;
44651 }
44652
44653
44654 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44655 PyObject *resultobj = 0;
44656 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44657 wxString result;
44658 void *argp1 = 0 ;
44659 int res1 = 0 ;
44660 PyObject *swig_obj[1] ;
44661
44662 if (!args) SWIG_fail;
44663 swig_obj[0] = args;
44664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44665 if (!SWIG_IsOK(res1)) {
44666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
44667 }
44668 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44669 {
44670 PyThreadState* __tstate = wxPyBeginAllowThreads();
44671 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
44672 wxPyEndAllowThreads(__tstate);
44673 if (PyErr_Occurred()) SWIG_fail;
44674 }
44675 {
44676 #if wxUSE_UNICODE
44677 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44678 #else
44679 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44680 #endif
44681 }
44682 return resultobj;
44683 fail:
44684 return NULL;
44685 }
44686
44687
44688 SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44689 PyObject *resultobj = 0;
44690 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44691 wxString *arg2 = 0 ;
44692 void *argp1 = 0 ;
44693 int res1 = 0 ;
44694 bool temp2 = false ;
44695 PyObject * obj0 = 0 ;
44696 PyObject * obj1 = 0 ;
44697 char * kwnames[] = {
44698 (char *) "self",(char *) "p", NULL
44699 };
44700
44701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44703 if (!SWIG_IsOK(res1)) {
44704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
44705 }
44706 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44707 {
44708 arg2 = wxString_in_helper(obj1);
44709 if (arg2 == NULL) SWIG_fail;
44710 temp2 = true;
44711 }
44712 {
44713 PyThreadState* __tstate = wxPyBeginAllowThreads();
44714 (arg1)->SetPath((wxString const &)*arg2);
44715 wxPyEndAllowThreads(__tstate);
44716 if (PyErr_Occurred()) SWIG_fail;
44717 }
44718 resultobj = SWIG_Py_Void();
44719 {
44720 if (temp2)
44721 delete arg2;
44722 }
44723 return resultobj;
44724 fail:
44725 {
44726 if (temp2)
44727 delete arg2;
44728 }
44729 return NULL;
44730 }
44731
44732
44733 SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44734 PyObject *obj;
44735 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44736 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
44737 return SWIG_Py_Void();
44738 }
44739
44740 SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44741 return SWIG_Python_InitShadowInstance(args);
44742 }
44743
44744 SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
44745 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
44746 return 1;
44747 }
44748
44749
44750 SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
44751 PyObject *pyobj = 0;
44752
44753 {
44754 #if wxUSE_UNICODE
44755 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44756 #else
44757 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44758 #endif
44759 }
44760 return pyobj;
44761 }
44762
44763
44764 SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44765 PyObject *resultobj = 0;
44766 wxWindow *arg1 = (wxWindow *) 0 ;
44767 int arg2 = (int) -1 ;
44768 wxFont const &arg3_defvalue = *wxNORMAL_FONT ;
44769 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
44770 wxPoint const &arg4_defvalue = wxDefaultPosition ;
44771 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
44772 wxSize const &arg5_defvalue = wxDefaultSize ;
44773 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
44774 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
44775 wxValidator const &arg7_defvalue = wxDefaultValidator ;
44776 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
44777 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
44778 wxString *arg8 = (wxString *) &arg8_defvalue ;
44779 wxFontPickerCtrl *result = 0 ;
44780 void *argp1 = 0 ;
44781 int res1 = 0 ;
44782 int val2 ;
44783 int ecode2 = 0 ;
44784 void *argp3 = 0 ;
44785 int res3 = 0 ;
44786 wxPoint temp4 ;
44787 wxSize temp5 ;
44788 long val6 ;
44789 int ecode6 = 0 ;
44790 void *argp7 = 0 ;
44791 int res7 = 0 ;
44792 bool temp8 = false ;
44793 PyObject * obj0 = 0 ;
44794 PyObject * obj1 = 0 ;
44795 PyObject * obj2 = 0 ;
44796 PyObject * obj3 = 0 ;
44797 PyObject * obj4 = 0 ;
44798 PyObject * obj5 = 0 ;
44799 PyObject * obj6 = 0 ;
44800 PyObject * obj7 = 0 ;
44801 char * kwnames[] = {
44802 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44803 };
44804
44805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
44806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44807 if (!SWIG_IsOK(res1)) {
44808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44809 }
44810 arg1 = reinterpret_cast< wxWindow * >(argp1);
44811 if (obj1) {
44812 ecode2 = SWIG_AsVal_int(obj1, &val2);
44813 if (!SWIG_IsOK(ecode2)) {
44814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44815 }
44816 arg2 = static_cast< int >(val2);
44817 }
44818 if (obj2) {
44819 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
44820 if (!SWIG_IsOK(res3)) {
44821 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44822 }
44823 if (!argp3) {
44824 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44825 }
44826 arg3 = reinterpret_cast< wxFont * >(argp3);
44827 }
44828 if (obj3) {
44829 {
44830 arg4 = &temp4;
44831 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
44832 }
44833 }
44834 if (obj4) {
44835 {
44836 arg5 = &temp5;
44837 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
44838 }
44839 }
44840 if (obj5) {
44841 ecode6 = SWIG_AsVal_long(obj5, &val6);
44842 if (!SWIG_IsOK(ecode6)) {
44843 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
44844 }
44845 arg6 = static_cast< long >(val6);
44846 }
44847 if (obj6) {
44848 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
44849 if (!SWIG_IsOK(res7)) {
44850 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44851 }
44852 if (!argp7) {
44853 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44854 }
44855 arg7 = reinterpret_cast< wxValidator * >(argp7);
44856 }
44857 if (obj7) {
44858 {
44859 arg8 = wxString_in_helper(obj7);
44860 if (arg8 == NULL) SWIG_fail;
44861 temp8 = true;
44862 }
44863 }
44864 {
44865 if (!wxPyCheckForApp()) SWIG_fail;
44866 PyThreadState* __tstate = wxPyBeginAllowThreads();
44867 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
44868 wxPyEndAllowThreads(__tstate);
44869 if (PyErr_Occurred()) SWIG_fail;
44870 }
44871 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
44872 {
44873 if (temp8)
44874 delete arg8;
44875 }
44876 return resultobj;
44877 fail:
44878 {
44879 if (temp8)
44880 delete arg8;
44881 }
44882 return NULL;
44883 }
44884
44885
44886 SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44887 PyObject *resultobj = 0;
44888 wxFontPickerCtrl *result = 0 ;
44889
44890 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
44891 {
44892 if (!wxPyCheckForApp()) SWIG_fail;
44893 PyThreadState* __tstate = wxPyBeginAllowThreads();
44894 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
44895 wxPyEndAllowThreads(__tstate);
44896 if (PyErr_Occurred()) SWIG_fail;
44897 }
44898 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
44899 return resultobj;
44900 fail:
44901 return NULL;
44902 }
44903
44904
44905 SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44906 PyObject *resultobj = 0;
44907 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44908 wxWindow *arg2 = (wxWindow *) 0 ;
44909 int arg3 = (int) -1 ;
44910 wxFont const &arg4_defvalue = *wxNORMAL_FONT ;
44911 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
44912 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44913 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44914 wxSize const &arg6_defvalue = wxDefaultSize ;
44915 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44916 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
44917 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44918 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44919 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
44920 wxString *arg9 = (wxString *) &arg9_defvalue ;
44921 bool result;
44922 void *argp1 = 0 ;
44923 int res1 = 0 ;
44924 void *argp2 = 0 ;
44925 int res2 = 0 ;
44926 int val3 ;
44927 int ecode3 = 0 ;
44928 void *argp4 = 0 ;
44929 int res4 = 0 ;
44930 wxPoint temp5 ;
44931 wxSize temp6 ;
44932 long val7 ;
44933 int ecode7 = 0 ;
44934 void *argp8 = 0 ;
44935 int res8 = 0 ;
44936 bool temp9 = false ;
44937 PyObject * obj0 = 0 ;
44938 PyObject * obj1 = 0 ;
44939 PyObject * obj2 = 0 ;
44940 PyObject * obj3 = 0 ;
44941 PyObject * obj4 = 0 ;
44942 PyObject * obj5 = 0 ;
44943 PyObject * obj6 = 0 ;
44944 PyObject * obj7 = 0 ;
44945 PyObject * obj8 = 0 ;
44946 char * kwnames[] = {
44947 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44948 };
44949
44950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44952 if (!SWIG_IsOK(res1)) {
44953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44954 }
44955 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44956 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44957 if (!SWIG_IsOK(res2)) {
44958 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44959 }
44960 arg2 = reinterpret_cast< wxWindow * >(argp2);
44961 if (obj2) {
44962 ecode3 = SWIG_AsVal_int(obj2, &val3);
44963 if (!SWIG_IsOK(ecode3)) {
44964 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44965 }
44966 arg3 = static_cast< int >(val3);
44967 }
44968 if (obj3) {
44969 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
44970 if (!SWIG_IsOK(res4)) {
44971 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
44972 }
44973 if (!argp4) {
44974 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
44975 }
44976 arg4 = reinterpret_cast< wxFont * >(argp4);
44977 }
44978 if (obj4) {
44979 {
44980 arg5 = &temp5;
44981 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44982 }
44983 }
44984 if (obj5) {
44985 {
44986 arg6 = &temp6;
44987 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44988 }
44989 }
44990 if (obj6) {
44991 ecode7 = SWIG_AsVal_long(obj6, &val7);
44992 if (!SWIG_IsOK(ecode7)) {
44993 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
44994 }
44995 arg7 = static_cast< long >(val7);
44996 }
44997 if (obj7) {
44998 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44999 if (!SWIG_IsOK(res8)) {
45000 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45001 }
45002 if (!argp8) {
45003 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45004 }
45005 arg8 = reinterpret_cast< wxValidator * >(argp8);
45006 }
45007 if (obj8) {
45008 {
45009 arg9 = wxString_in_helper(obj8);
45010 if (arg9 == NULL) SWIG_fail;
45011 temp9 = true;
45012 }
45013 }
45014 {
45015 PyThreadState* __tstate = wxPyBeginAllowThreads();
45016 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45017 wxPyEndAllowThreads(__tstate);
45018 if (PyErr_Occurred()) SWIG_fail;
45019 }
45020 {
45021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45022 }
45023 {
45024 if (temp9)
45025 delete arg9;
45026 }
45027 return resultobj;
45028 fail:
45029 {
45030 if (temp9)
45031 delete arg9;
45032 }
45033 return NULL;
45034 }
45035
45036
45037 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45038 PyObject *resultobj = 0;
45039 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45040 wxFont result;
45041 void *argp1 = 0 ;
45042 int res1 = 0 ;
45043 PyObject *swig_obj[1] ;
45044
45045 if (!args) SWIG_fail;
45046 swig_obj[0] = args;
45047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45048 if (!SWIG_IsOK(res1)) {
45049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45050 }
45051 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45052 {
45053 PyThreadState* __tstate = wxPyBeginAllowThreads();
45054 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
45055 wxPyEndAllowThreads(__tstate);
45056 if (PyErr_Occurred()) SWIG_fail;
45057 }
45058 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45059 return resultobj;
45060 fail:
45061 return NULL;
45062 }
45063
45064
45065 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45066 PyObject *resultobj = 0;
45067 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45068 wxFont *arg2 = 0 ;
45069 void *argp1 = 0 ;
45070 int res1 = 0 ;
45071 void *argp2 = 0 ;
45072 int res2 = 0 ;
45073 PyObject * obj0 = 0 ;
45074 PyObject * obj1 = 0 ;
45075 char * kwnames[] = {
45076 (char *) "self",(char *) "f", NULL
45077 };
45078
45079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
45080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45081 if (!SWIG_IsOK(res1)) {
45082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45083 }
45084 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45085 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45086 if (!SWIG_IsOK(res2)) {
45087 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45088 }
45089 if (!argp2) {
45090 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45091 }
45092 arg2 = reinterpret_cast< wxFont * >(argp2);
45093 {
45094 PyThreadState* __tstate = wxPyBeginAllowThreads();
45095 (arg1)->SetSelectedFont((wxFont const &)*arg2);
45096 wxPyEndAllowThreads(__tstate);
45097 if (PyErr_Occurred()) SWIG_fail;
45098 }
45099 resultobj = SWIG_Py_Void();
45100 return resultobj;
45101 fail:
45102 return NULL;
45103 }
45104
45105
45106 SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45107 PyObject *resultobj = 0;
45108 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45109 unsigned int arg2 ;
45110 void *argp1 = 0 ;
45111 int res1 = 0 ;
45112 unsigned int val2 ;
45113 int ecode2 = 0 ;
45114 PyObject * obj0 = 0 ;
45115 PyObject * obj1 = 0 ;
45116 char * kwnames[] = {
45117 (char *) "self",(char *) "max", NULL
45118 };
45119
45120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
45121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45122 if (!SWIG_IsOK(res1)) {
45123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45124 }
45125 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45126 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
45127 if (!SWIG_IsOK(ecode2)) {
45128 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
45129 }
45130 arg2 = static_cast< unsigned int >(val2);
45131 {
45132 PyThreadState* __tstate = wxPyBeginAllowThreads();
45133 (arg1)->SetMaxPointSize(arg2);
45134 wxPyEndAllowThreads(__tstate);
45135 if (PyErr_Occurred()) SWIG_fail;
45136 }
45137 resultobj = SWIG_Py_Void();
45138 return resultobj;
45139 fail:
45140 return NULL;
45141 }
45142
45143
45144 SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45145 PyObject *resultobj = 0;
45146 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45147 unsigned int result;
45148 void *argp1 = 0 ;
45149 int res1 = 0 ;
45150 PyObject *swig_obj[1] ;
45151
45152 if (!args) SWIG_fail;
45153 swig_obj[0] = args;
45154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45155 if (!SWIG_IsOK(res1)) {
45156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45157 }
45158 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45159 {
45160 PyThreadState* __tstate = wxPyBeginAllowThreads();
45161 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
45162 wxPyEndAllowThreads(__tstate);
45163 if (PyErr_Occurred()) SWIG_fail;
45164 }
45165 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45166 return resultobj;
45167 fail:
45168 return NULL;
45169 }
45170
45171
45172 SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45173 PyObject *obj;
45174 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45175 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
45176 return SWIG_Py_Void();
45177 }
45178
45179 SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45180 return SWIG_Python_InitShadowInstance(args);
45181 }
45182
45183 SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45184 PyObject *resultobj = 0;
45185 wxObject *arg1 = (wxObject *) 0 ;
45186 int arg2 ;
45187 wxFont *arg3 = 0 ;
45188 wxFontPickerEvent *result = 0 ;
45189 void *argp1 = 0 ;
45190 int res1 = 0 ;
45191 int val2 ;
45192 int ecode2 = 0 ;
45193 void *argp3 = 0 ;
45194 int res3 = 0 ;
45195 PyObject * obj0 = 0 ;
45196 PyObject * obj1 = 0 ;
45197 PyObject * obj2 = 0 ;
45198 char * kwnames[] = {
45199 (char *) "generator",(char *) "id",(char *) "f", NULL
45200 };
45201
45202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45204 if (!SWIG_IsOK(res1)) {
45205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45206 }
45207 arg1 = reinterpret_cast< wxObject * >(argp1);
45208 ecode2 = SWIG_AsVal_int(obj1, &val2);
45209 if (!SWIG_IsOK(ecode2)) {
45210 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
45211 }
45212 arg2 = static_cast< int >(val2);
45213 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45214 if (!SWIG_IsOK(res3)) {
45215 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45216 }
45217 if (!argp3) {
45218 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45219 }
45220 arg3 = reinterpret_cast< wxFont * >(argp3);
45221 {
45222 PyThreadState* __tstate = wxPyBeginAllowThreads();
45223 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45224 wxPyEndAllowThreads(__tstate);
45225 if (PyErr_Occurred()) SWIG_fail;
45226 }
45227 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45228 return resultobj;
45229 fail:
45230 return NULL;
45231 }
45232
45233
45234 SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45235 PyObject *resultobj = 0;
45236 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45237 wxFont result;
45238 void *argp1 = 0 ;
45239 int res1 = 0 ;
45240 PyObject *swig_obj[1] ;
45241
45242 if (!args) SWIG_fail;
45243 swig_obj[0] = args;
45244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45245 if (!SWIG_IsOK(res1)) {
45246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45247 }
45248 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45249 {
45250 PyThreadState* __tstate = wxPyBeginAllowThreads();
45251 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45252 wxPyEndAllowThreads(__tstate);
45253 if (PyErr_Occurred()) SWIG_fail;
45254 }
45255 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45256 return resultobj;
45257 fail:
45258 return NULL;
45259 }
45260
45261
45262 SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45263 PyObject *resultobj = 0;
45264 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45265 wxFont *arg2 = 0 ;
45266 void *argp1 = 0 ;
45267 int res1 = 0 ;
45268 void *argp2 = 0 ;
45269 int res2 = 0 ;
45270 PyObject * obj0 = 0 ;
45271 PyObject * obj1 = 0 ;
45272 char * kwnames[] = {
45273 (char *) "self",(char *) "c", NULL
45274 };
45275
45276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45278 if (!SWIG_IsOK(res1)) {
45279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45280 }
45281 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45282 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45283 if (!SWIG_IsOK(res2)) {
45284 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45285 }
45286 if (!argp2) {
45287 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45288 }
45289 arg2 = reinterpret_cast< wxFont * >(argp2);
45290 {
45291 PyThreadState* __tstate = wxPyBeginAllowThreads();
45292 (arg1)->SetFont((wxFont const &)*arg2);
45293 wxPyEndAllowThreads(__tstate);
45294 if (PyErr_Occurred()) SWIG_fail;
45295 }
45296 resultobj = SWIG_Py_Void();
45297 return resultobj;
45298 fail:
45299 return NULL;
45300 }
45301
45302
45303 SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45304 PyObject *obj;
45305 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45306 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45307 return SWIG_Py_Void();
45308 }
45309
45310 SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45311 return SWIG_Python_InitShadowInstance(args);
45312 }
45313
45314 static PyMethodDef SwigMethods[] = {
45315 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
45316 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
45317 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45318 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
45319 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
45320 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45321 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
45322 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
45323 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
45324 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
45325 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45326 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
45327 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
45328 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
45329 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
45330 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
45331 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
45332 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
45333 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45334 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45335 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
45336 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45337 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
45338 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
45339 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
45340 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
45341 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
45342 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
45343 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45344 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
45345 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
45346 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45347 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
45348 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
45349 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
45350 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
45351 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45352 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
45353 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
45354 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
45355 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
45356 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45357 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
45358 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45359 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
45360 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
45361 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
45362 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
45363 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45364 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
45365 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45366 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
45367 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
45368 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
45369 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45370 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
45371 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
45372 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45373 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
45374 { (char *)"ComboBox_GetMark", (PyCFunction)_wrap_ComboBox_GetMark, METH_O, NULL},
45375 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
45376 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45377 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45378 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45379 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
45380 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45381 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
45382 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
45383 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
45384 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
45385 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
45386 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
45387 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
45388 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
45389 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
45390 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45391 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
45392 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
45393 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
45394 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
45395 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45396 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45397 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
45398 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45399 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
45400 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
45401 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45402 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
45403 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
45404 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
45405 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45406 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
45407 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
45408 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
45409 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
45410 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45411 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45412 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
45413 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
45414 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
45415 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
45416 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45417 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
45418 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
45419 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45420 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
45421 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
45422 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
45423 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
45424 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45425 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
45426 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45427 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
45428 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
45429 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45430 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
45431 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45432 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
45433 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45434 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
45435 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45436 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
45437 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
45438 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45439 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
45440 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45441 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
45442 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
45443 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
45444 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45445 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45446 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
45447 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
45448 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
45449 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45450 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
45451 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
45452 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
45453 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45454 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45455 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
45456 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45457 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45458 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45459 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45460 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45461 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
45462 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
45463 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45464 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
45465 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45466 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
45467 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
45468 { (char *)"CheckListBox_GetItemHeight", (PyCFunction)_wrap_CheckListBox_GetItemHeight, METH_O, NULL},
45469 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
45470 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
45471 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45472 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
45473 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
45474 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
45475 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45476 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45477 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45478 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
45479 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
45480 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45481 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45482 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
45483 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
45484 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
45485 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
45486 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
45487 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
45488 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
45489 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
45490 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
45491 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
45492 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
45493 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
45494 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
45495 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
45496 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
45497 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
45498 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
45499 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
45500 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
45501 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
45502 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
45503 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
45504 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45505 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
45506 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45507 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
45508 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45509 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45510 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
45511 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
45512 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
45513 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
45514 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
45515 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
45516 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
45517 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
45518 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
45519 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
45520 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45521 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45522 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
45523 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
45524 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
45525 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
45526 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
45527 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
45528 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
45529 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
45530 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
45531 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45532 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45533 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45534 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
45535 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45536 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
45537 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45538 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45539 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
45540 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
45541 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
45542 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
45543 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
45544 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
45545 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
45546 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
45547 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
45548 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
45549 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
45550 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45551 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
45552 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
45553 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
45554 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45555 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
45556 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45557 { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS, NULL},
45558 { (char *)"TextCtrl_HideNativeCaret", (PyCFunction)_wrap_TextCtrl_HideNativeCaret, METH_O, NULL},
45559 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
45560 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45561 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45562 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
45563 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
45564 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45565 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
45566 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
45567 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
45568 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
45569 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
45570 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
45571 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
45572 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45573 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
45574 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
45575 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
45576 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
45577 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
45578 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45579 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45580 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
45581 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
45582 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
45583 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
45584 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45585 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
45586 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
45587 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
45588 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45589 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45590 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45591 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45592 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
45593 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45594 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
45595 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
45596 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45597 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
45598 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45599 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
45600 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45601 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
45602 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45603 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
45604 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
45605 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45606 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45607 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
45608 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
45609 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45610 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
45611 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45612 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
45613 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
45614 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
45615 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
45616 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45617 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45618 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
45619 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
45620 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45621 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
45622 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
45623 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45624 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45625 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
45626 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
45627 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45628 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
45629 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
45630 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
45631 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
45632 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45633 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45634 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45635 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45636 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45637 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
45638 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
45639 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
45640 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
45641 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45642 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
45643 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45644 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45645 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
45646 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
45647 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
45648 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
45649 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45650 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
45651 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45652 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45653 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
45654 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
45655 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45656 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45657 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
45658 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45659 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
45660 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
45661 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
45662 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
45663 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
45664 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
45665 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
45666 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
45667 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
45668 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
45669 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
45670 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45671 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45672 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
45673 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
45674 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
45675 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
45676 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45677 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45678 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
45679 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45680 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
45681 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
45682 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
45683 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
45684 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
45685 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
45686 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45687 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45688 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45689 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45690 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
45691 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45692 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45693 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45694 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
45695 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
45696 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
45697 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
45698 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
45699 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
45700 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
45701 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
45702 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
45703 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
45704 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
45705 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
45706 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
45707 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
45708 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45709 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45710 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45711 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45712 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
45713 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45714 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
45715 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45716 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
45717 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45718 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
45719 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
45720 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
45721 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
45722 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45723 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
45724 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
45725 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
45726 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
45727 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45728 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
45729 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
45730 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45731 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
45732 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
45733 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
45734 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
45735 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45736 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
45737 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
45738 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
45739 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45740 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
45741 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
45742 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
45743 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
45744 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45745 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
45746 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
45747 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
45748 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45749 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
45750 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
45751 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
45752 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
45753 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45754 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45755 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45756 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
45757 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
45758 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
45759 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
45760 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
45761 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
45762 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
45763 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45764 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
45765 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
45766 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
45767 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
45768 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45769 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
45770 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
45771 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
45772 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
45773 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45774 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
45775 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
45776 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
45777 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
45778 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
45779 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
45780 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
45781 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
45782 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
45783 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
45784 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
45785 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
45786 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
45787 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
45788 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
45789 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
45790 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
45791 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
45792 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
45793 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
45794 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
45795 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45796 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45797 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45798 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45799 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45800 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45801 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
45802 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
45803 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
45804 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45805 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
45806 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
45807 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
45808 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45809 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45810 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
45811 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
45812 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
45813 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
45814 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
45815 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
45816 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
45817 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
45818 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
45819 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
45820 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
45821 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
45822 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45823 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45824 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45825 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
45826 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
45827 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45828 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45829 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45830 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45831 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45832 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
45833 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45834 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
45835 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
45836 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
45837 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
45838 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
45839 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
45840 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
45841 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
45842 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
45843 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
45844 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
45845 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
45846 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
45847 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45848 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
45849 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
45850 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
45851 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
45852 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
45853 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
45854 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45855 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45856 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
45857 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
45858 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45859 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
45860 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45861 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45862 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45863 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
45864 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
45865 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
45866 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
45867 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
45868 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
45869 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
45870 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
45871 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
45872 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
45873 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
45874 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
45875 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
45876 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
45877 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
45878 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
45879 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45880 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
45881 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
45882 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
45883 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
45884 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
45885 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45886 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
45887 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45888 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45889 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45890 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
45891 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
45892 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
45893 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
45894 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
45895 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
45896 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
45897 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
45898 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
45899 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
45900 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
45901 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
45902 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
45903 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
45904 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
45905 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
45906 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
45907 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
45908 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
45909 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
45910 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
45911 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
45912 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
45913 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
45914 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
45915 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
45916 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
45917 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
45918 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
45919 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
45920 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
45921 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
45922 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
45923 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
45924 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
45925 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
45926 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45927 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
45928 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
45929 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
45930 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
45931 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
45932 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
45933 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
45934 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
45935 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
45936 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
45937 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
45938 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
45939 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
45940 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
45941 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
45942 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
45943 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
45944 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
45945 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
45946 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
45947 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
45948 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
45949 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
45950 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
45951 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
45952 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
45953 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
45954 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45955 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
45956 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45957 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45958 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45959 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45960 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45961 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45962 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
45963 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
45964 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
45965 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45966 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45967 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45968 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
45969 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
45970 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45971 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45972 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45973 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45974 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45975 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45976 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45977 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
45978 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45979 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
45980 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
45981 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
45982 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
45983 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
45984 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45985 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
45986 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45987 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
45988 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45989 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45990 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45991 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
45992 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
45993 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
45994 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
45995 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
45996 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
45997 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
45998 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45999 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
46000 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
46001 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46002 { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46003 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46004 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
46005 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46006 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
46007 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46008 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
46009 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
46010 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46011 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
46012 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46013 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
46014 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46015 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
46016 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
46017 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46018 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46019 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46020 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46021 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46022 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46023 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
46024 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
46025 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46026 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
46027 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
46028 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
46029 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
46030 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46031 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
46032 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
46033 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
46034 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46035 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
46036 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46037 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46038 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46039 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
46040 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
46041 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
46042 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
46043 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
46044 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
46045 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
46046 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
46047 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
46048 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
46049 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
46050 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46051 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
46052 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
46053 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
46054 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
46055 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
46056 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
46057 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
46058 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
46059 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
46060 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
46061 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
46062 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
46063 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
46064 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
46065 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46066 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
46067 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
46068 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46069 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
46070 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46071 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
46072 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
46073 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46074 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
46075 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
46076 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
46077 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46078 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
46079 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46080 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46081 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
46082 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
46083 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46084 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
46085 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
46086 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
46087 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
46088 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46089 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46090 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46091 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46092 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46093 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
46094 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46095 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
46096 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46097 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46098 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46099 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46100 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
46101 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46102 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
46103 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46104 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
46105 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
46106 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46107 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46108 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46109 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46110 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46111 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
46112 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46113 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
46114 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
46115 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
46116 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
46117 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
46118 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
46119 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
46120 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
46121 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
46122 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
46123 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
46124 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
46125 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46126 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46127 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
46128 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
46129 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
46130 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
46131 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
46132 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
46133 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46134 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
46135 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
46136 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46137 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
46138 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
46139 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
46140 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
46141 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
46142 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
46143 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
46144 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
46145 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46146 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46147 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
46148 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46149 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
46150 { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46151 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46152 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46153 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
46154 { (char *)"TreeCtrl_SetState", (PyCFunction) _wrap_TreeCtrl_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
46155 { (char *)"TreeCtrl_GetState", (PyCFunction) _wrap_TreeCtrl_GetState, METH_VARARGS | METH_KEYWORDS, NULL},
46156 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46157 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
46158 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
46159 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
46160 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
46161 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46162 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
46163 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46164 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
46165 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
46166 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
46167 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
46168 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
46169 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
46170 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46171 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
46172 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
46173 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
46174 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
46175 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
46176 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
46177 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
46178 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
46179 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
46180 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
46181 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
46182 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
46183 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
46184 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
46185 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46186 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
46187 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46188 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
46189 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
46190 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
46191 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
46192 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
46193 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46194 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
46195 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
46196 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46197 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
46198 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
46199 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
46200 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
46201 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
46202 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
46203 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
46204 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
46205 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
46206 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
46207 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
46208 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
46209 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46210 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
46211 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46212 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
46213 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
46214 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
46215 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
46216 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
46217 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
46218 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
46219 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
46220 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46221 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
46222 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46223 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
46224 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
46225 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
46226 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
46227 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
46228 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
46229 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
46230 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46231 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
46232 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46233 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46234 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46235 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46236 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
46237 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46238 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
46239 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
46240 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
46241 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
46242 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
46243 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
46244 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
46245 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
46246 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
46247 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
46248 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
46249 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46250 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
46251 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
46252 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
46253 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
46254 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
46255 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
46256 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
46257 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46258 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46259 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46260 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
46261 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
46262 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46263 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
46264 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46265 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46266 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
46267 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46268 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
46269 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
46270 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
46271 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
46272 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46273 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
46274 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46275 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
46276 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
46277 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
46278 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
46279 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
46280 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
46281 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
46282 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46283 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
46284 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
46285 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
46286 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
46287 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46288 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
46289 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46290 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
46291 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
46292 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
46293 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
46294 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
46295 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46296 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
46297 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
46298 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
46299 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
46300 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
46301 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
46302 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
46303 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
46304 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
46305 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46306 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
46307 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46308 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
46309 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46310 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
46311 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
46312 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46313 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
46314 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46315 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
46316 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
46317 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46318 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
46319 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46320 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
46321 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46322 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46323 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
46324 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
46325 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
46326 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46327 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
46328 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46329 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
46330 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46331 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46332 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
46333 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
46334 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
46335 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46336 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
46337 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46338 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
46339 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
46340 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46341 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
46342 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46343 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
46344 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
46345 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
46346 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
46347 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
46348 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
46349 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46350 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
46351 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46352 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
46353 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
46354 { NULL, NULL, 0, NULL }
46355 };
46356
46357
46358 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
46359
46360 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
46361 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
46362 }
46363 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
46364 return (void *)((wxEvent *) ((wxMenuEvent *) x));
46365 }
46366 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
46367 return (void *)((wxEvent *) ((wxCloseEvent *) x));
46368 }
46369 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
46370 return (void *)((wxEvent *) ((wxMouseEvent *) x));
46371 }
46372 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
46373 return (void *)((wxEvent *) ((wxEraseEvent *) x));
46374 }
46375 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
46376 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46377 }
46378 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
46379 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
46380 }
46381 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
46382 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
46383 }
46384 static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
46385 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
46386 }
46387 static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
46388 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
46389 }
46390 static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
46391 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
46392 }
46393 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
46394 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
46395 }
46396 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
46397 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
46398 }
46399 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
46400 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
46401 }
46402 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
46403 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
46404 }
46405 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
46406 return (void *)((wxEvent *) ((wxPyEvent *) x));
46407 }
46408 static void *_p_wxListEventTo_p_wxEvent(void *x) {
46409 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
46410 }
46411 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
46412 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46413 }
46414 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
46415 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46416 }
46417 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
46418 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46419 }
46420 static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
46421 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46422 }
46423 static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
46424 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46425 }
46426 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
46427 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
46428 }
46429 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
46430 return (void *)((wxEvent *) ((wxIdleEvent *) x));
46431 }
46432 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
46433 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
46434 }
46435 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
46436 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
46437 }
46438 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
46439 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
46440 }
46441 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
46442 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
46443 }
46444 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
46445 return (void *)((wxEvent *) ((wxActivateEvent *) x));
46446 }
46447 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
46448 return (void *)((wxEvent *) ((wxSizeEvent *) x));
46449 }
46450 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
46451 return (void *)((wxEvent *) ((wxMoveEvent *) x));
46452 }
46453 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
46454 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
46455 }
46456 static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
46457 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
46458 }
46459 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
46460 return (void *)((wxEvent *) ((wxPaintEvent *) x));
46461 }
46462 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
46463 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
46464 }
46465 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
46466 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
46467 }
46468 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
46469 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
46470 }
46471 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
46472 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
46473 }
46474 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
46475 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46476 }
46477 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
46478 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
46479 }
46480 static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
46481 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
46482 }
46483 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
46484 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
46485 }
46486 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
46487 return (void *)((wxEvent *) ((wxFocusEvent *) x));
46488 }
46489 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
46490 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
46491 }
46492 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
46493 return (void *)((wxEvent *) ((wxShowEvent *) x));
46494 }
46495 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
46496 return (void *)((wxEvent *) ((wxCommandEvent *) x));
46497 }
46498 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
46499 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
46500 }
46501 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
46502 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
46503 }
46504 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
46505 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
46506 }
46507 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
46508 return (void *)((wxEvent *) ((wxKeyEvent *) x));
46509 }
46510 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
46511 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
46512 }
46513 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
46514 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
46515 }
46516 static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
46517 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
46518 }
46519 static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
46520 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
46521 }
46522 static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
46523 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
46524 }
46525 static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
46526 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
46527 }
46528 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
46529 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
46530 }
46531 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
46532 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46533 }
46534 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
46535 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
46536 }
46537 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
46538 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
46539 }
46540 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
46541 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
46542 }
46543 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
46544 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46545 }
46546 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
46547 return (void *)((wxPyListCtrl *) ((wxListView *) x));
46548 }
46549 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
46550 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
46551 }
46552 static void *_p_wxToolBarTo_p_wxControl(void *x) {
46553 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
46554 }
46555 static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
46556 return (void *)((wxControl *) ((wxPickerBase *) x));
46557 }
46558 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
46559 return (void *)((wxControl *) ((wxToggleButton *) x));
46560 }
46561 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
46562 return (void *)((wxControl *) ((wxRadioButton *) x));
46563 }
46564 static void *_p_wxToolbookTo_p_wxControl(void *x) {
46565 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
46566 }
46567 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
46568 return (void *)((wxControl *) ((wxToolBarBase *) x));
46569 }
46570 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
46571 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46572 }
46573 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
46574 return (void *)((wxControl *) ((wxPyListCtrl *) x));
46575 }
46576 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
46577 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
46578 }
46579 static void *_p_wxPyControlTo_p_wxControl(void *x) {
46580 return (void *)((wxControl *) ((wxPyControl *) x));
46581 }
46582 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
46583 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
46584 }
46585 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
46586 return (void *)((wxControl *) ((wxScrollBar *) x));
46587 }
46588 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
46589 return (void *)((wxControl *) ((wxControlWithItems *) x));
46590 }
46591 static void *_p_wxGaugeTo_p_wxControl(void *x) {
46592 return (void *)((wxControl *) ((wxGauge *) x));
46593 }
46594 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
46595 return (void *)((wxControl *) ((wxStaticLine *) x));
46596 }
46597 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
46598 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
46599 }
46600 static void *_p_wxListbookTo_p_wxControl(void *x) {
46601 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
46602 }
46603 static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
46604 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
46605 }
46606 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
46607 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
46608 }
46609 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
46610 return (void *)((wxControl *) ((wxCheckBox *) x));
46611 }
46612 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
46613 return (void *)((wxControl *) ((wxRadioBox *) x));
46614 }
46615 static void *_p_wxChoiceTo_p_wxControl(void *x) {
46616 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
46617 }
46618 static void *_p_wxListBoxTo_p_wxControl(void *x) {
46619 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
46620 }
46621 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
46622 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46623 }
46624 static void *_p_wxListViewTo_p_wxControl(void *x) {
46625 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
46626 }
46627 static void *_p_wxNotebookTo_p_wxControl(void *x) {
46628 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
46629 }
46630 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
46631 return (void *)((wxControl *) ((wxStaticBitmap *) x));
46632 }
46633 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
46634 return (void *)((wxControl *) ((wxSpinCtrl *) x));
46635 }
46636 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
46637 return (void *)((wxControl *) ((wxStaticText *) x));
46638 }
46639 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
46640 return (void *)((wxControl *) ((wxStaticBox *) x));
46641 }
46642 static void *_p_wxSliderTo_p_wxControl(void *x) {
46643 return (void *)((wxControl *) ((wxSlider *) x));
46644 }
46645 static void *_p_wxTreebookTo_p_wxControl(void *x) {
46646 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
46647 }
46648 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
46649 return (void *)((wxControl *) ((wxSpinButton *) x));
46650 }
46651 static void *_p_wxButtonTo_p_wxControl(void *x) {
46652 return (void *)((wxControl *) ((wxButton *) x));
46653 }
46654 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
46655 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
46656 }
46657 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
46658 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46659 }
46660 static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
46661 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
46662 }
46663 static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
46664 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
46665 }
46666 static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
46667 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
46668 }
46669 static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
46670 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
46671 }
46672 static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
46673 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
46674 }
46675 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
46676 return (void *)((wxControl *) ((wxTextCtrl *) x));
46677 }
46678 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
46679 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
46680 }
46681 static void *_p_wxComboBoxTo_p_wxChoice(void *x) {
46682 return (void *)((wxChoice *) ((wxComboBox *) x));
46683 }
46684 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
46685 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
46686 }
46687 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
46688 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46689 }
46690 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
46691 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
46692 }
46693 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
46694 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
46695 }
46696 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
46697 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
46698 }
46699 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
46700 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46701 }
46702 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
46703 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46704 }
46705 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
46706 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46707 }
46708 static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
46709 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46710 }
46711 static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
46712 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46713 }
46714 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
46715 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
46716 }
46717 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
46718 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
46719 }
46720 static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
46721 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
46722 }
46723 static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
46724 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
46725 }
46726 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
46727 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
46728 }
46729 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
46730 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
46731 }
46732 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
46733 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
46734 }
46735 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
46736 return (void *)((wxEvtHandler *) ((wxValidator *) x));
46737 }
46738 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
46739 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
46740 }
46741 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
46742 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
46743 }
46744 static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
46745 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
46746 }
46747 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
46748 return (void *)((wxEvtHandler *) ((wxMenu *) x));
46749 }
46750 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
46751 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
46752 }
46753 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
46754 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
46755 }
46756 static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
46757 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46758 }
46759 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
46760 return (void *)((wxEvtHandler *) ((wxWindow *) x));
46761 }
46762 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
46763 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
46764 }
46765 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
46766 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
46767 }
46768 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
46769 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
46770 }
46771 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
46772 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
46773 }
46774 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
46775 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46776 }
46777 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
46778 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
46779 }
46780 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
46781 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
46782 }
46783 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
46784 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
46785 }
46786 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
46787 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
46788 }
46789 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
46790 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
46791 }
46792 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
46793 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
46794 }
46795 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
46796 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
46797 }
46798 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
46799 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
46800 }
46801 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
46802 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
46803 }
46804 static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
46805 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
46806 }
46807 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
46808 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
46809 }
46810 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
46811 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
46812 }
46813 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
46814 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
46815 }
46816 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
46817 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46818 }
46819 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
46820 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
46821 }
46822 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
46823 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
46824 }
46825 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
46826 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
46827 }
46828 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
46829 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
46830 }
46831 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
46832 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
46833 }
46834 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
46835 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
46836 }
46837 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
46838 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
46839 }
46840 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
46841 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
46842 }
46843 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
46844 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
46845 }
46846 static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
46847 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
46848 }
46849 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
46850 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
46851 }
46852 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
46853 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
46854 }
46855 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
46856 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
46857 }
46858 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
46859 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46860 }
46861 static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
46862 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
46863 }
46864 static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
46865 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
46866 }
46867 static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
46868 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
46869 }
46870 static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
46871 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
46872 }
46873 static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
46874 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
46875 }
46876 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
46877 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
46878 }
46879 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
46880 return (void *)((wxListBox *) ((wxCheckListBox *) x));
46881 }
46882 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
46883 return (void *)((wxButton *) ((wxBitmapButton *) x));
46884 }
46885 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
46886 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
46887 }
46888 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
46889 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
46890 }
46891 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
46892 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
46893 }
46894 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
46895 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
46896 }
46897 static void *_p_wxToolbookTo_p_wxObject(void *x) {
46898 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46899 }
46900 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
46901 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
46902 }
46903 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
46904 return (void *)((wxObject *) ((wxSizerItem *) x));
46905 }
46906 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
46907 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
46908 }
46909 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
46910 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
46911 }
46912 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
46913 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
46914 }
46915 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
46916 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
46917 }
46918 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
46919 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
46920 }
46921 static void *_p_wxSizerTo_p_wxObject(void *x) {
46922 return (void *)((wxObject *) ((wxSizer *) x));
46923 }
46924 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
46925 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
46926 }
46927 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
46928 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
46929 }
46930 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
46931 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
46932 }
46933 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
46934 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
46935 }
46936 static void *_p_wxEventTo_p_wxObject(void *x) {
46937 return (void *)((wxObject *) ((wxEvent *) x));
46938 }
46939 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
46940 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
46941 }
46942 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
46943 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
46944 }
46945 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
46946 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
46947 }
46948 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
46949 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
46950 }
46951 static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
46952 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
46953 }
46954 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
46955 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
46956 }
46957 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
46958 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46959 }
46960 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
46961 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
46962 }
46963 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
46964 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
46965 }
46966 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
46967 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
46968 }
46969 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
46970 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
46971 }
46972 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
46973 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
46974 }
46975 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
46976 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46977 }
46978 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
46979 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
46980 }
46981 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
46982 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
46983 }
46984 static void *_p_wxControlTo_p_wxObject(void *x) {
46985 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
46986 }
46987 static void *_p_wxPyControlTo_p_wxObject(void *x) {
46988 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
46989 }
46990 static void *_p_wxGaugeTo_p_wxObject(void *x) {
46991 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
46992 }
46993 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
46994 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
46995 }
46996 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
46997 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
46998 }
46999 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
47000 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
47001 }
47002 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
47003 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
47004 }
47005 static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
47006 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
47007 }
47008 static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
47009 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47010 }
47011 static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
47012 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
47013 }
47014 static void *_p_wxChoiceTo_p_wxObject(void *x) {
47015 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47016 }
47017 static void *_p_wxFSFileTo_p_wxObject(void *x) {
47018 return (void *)((wxObject *) ((wxFSFile *) x));
47019 }
47020 static void *_p_wxPySizerTo_p_wxObject(void *x) {
47021 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
47022 }
47023 static void *_p_wxTreebookTo_p_wxObject(void *x) {
47024 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47025 }
47026 static void *_p_wxListViewTo_p_wxObject(void *x) {
47027 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47028 }
47029 static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
47030 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
47031 }
47032 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
47033 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
47034 }
47035 static void *_p_wxNotebookTo_p_wxObject(void *x) {
47036 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47037 }
47038 static void *_p_wxPyEventTo_p_wxObject(void *x) {
47039 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
47040 }
47041 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
47042 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
47043 }
47044 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
47045 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47046 }
47047 static void *_p_wxListbookTo_p_wxObject(void *x) {
47048 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47049 }
47050 static void *_p_wxShowEventTo_p_wxObject(void *x) {
47051 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
47052 }
47053 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
47054 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
47055 }
47056 static void *_p_wxSliderTo_p_wxObject(void *x) {
47057 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
47058 }
47059 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
47060 return (void *)((wxObject *) ((wxMenuItem *) x));
47061 }
47062 static void *_p_wxDateEventTo_p_wxObject(void *x) {
47063 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
47064 }
47065 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
47066 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
47067 }
47068 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
47069 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
47070 }
47071 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
47072 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
47073 }
47074 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
47075 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
47076 }
47077 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
47078 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
47079 }
47080 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
47081 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
47082 }
47083 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
47084 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
47085 }
47086 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
47087 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
47088 }
47089 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
47090 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
47091 }
47092 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
47093 return (void *)((wxObject *) ((wxContextHelp *) x));
47094 }
47095 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
47096 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
47097 }
47098 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
47099 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
47100 }
47101 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
47102 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
47103 }
47104 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
47105 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
47106 }
47107 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
47108 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
47109 }
47110 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
47111 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
47112 }
47113 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
47114 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
47115 }
47116 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
47117 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
47118 }
47119 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
47120 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
47121 }
47122 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
47123 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
47124 }
47125 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
47126 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
47127 }
47128 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
47129 return (void *)((wxObject *) ((wxImageHandler *) x));
47130 }
47131 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
47132 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
47133 }
47134 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
47135 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
47136 }
47137 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
47138 return (void *)((wxObject *) ((wxEvtHandler *) x));
47139 }
47140 static void *_p_wxListEventTo_p_wxObject(void *x) {
47141 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
47142 }
47143 static void *_p_wxListBoxTo_p_wxObject(void *x) {
47144 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47145 }
47146 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
47147 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47148 }
47149 static void *_p_wxButtonTo_p_wxObject(void *x) {
47150 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
47151 }
47152 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
47153 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
47154 }
47155 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
47156 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
47157 }
47158 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
47159 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47160 }
47161 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
47162 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
47163 }
47164 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
47165 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
47166 }
47167 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
47168 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
47169 }
47170 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
47171 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
47172 }
47173 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
47174 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
47175 }
47176 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
47177 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
47178 }
47179 static void *_p_wxListItemTo_p_wxObject(void *x) {
47180 return (void *)((wxObject *) ((wxListItem *) x));
47181 }
47182 static void *_p_wxImageTo_p_wxObject(void *x) {
47183 return (void *)((wxObject *) ((wxImage *) x));
47184 }
47185 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
47186 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
47187 }
47188 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
47189 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
47190 }
47191 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
47192 return (void *)((wxObject *) ((wxGenericDragImage *) x));
47193 }
47194 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
47195 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
47196 }
47197 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
47198 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47199 }
47200 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
47201 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47202 }
47203 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
47204 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47205 }
47206 static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
47207 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47208 }
47209 static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
47210 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47211 }
47212 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
47213 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47214 }
47215 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
47216 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
47217 }
47218 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
47219 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
47220 }
47221 static void *_p_wxWindowTo_p_wxObject(void *x) {
47222 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
47223 }
47224 static void *_p_wxMenuTo_p_wxObject(void *x) {
47225 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
47226 }
47227 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
47228 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
47229 }
47230 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
47231 return (void *)((wxObject *) ((wxFileSystem *) x));
47232 }
47233 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
47234 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
47235 }
47236 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
47237 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
47238 }
47239 static void *_p_wxPyAppTo_p_wxObject(void *x) {
47240 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
47241 }
47242 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
47243 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
47244 }
47245 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
47246 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
47247 }
47248 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
47249 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
47250 }
47251 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
47252 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47253 }
47254 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
47255 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
47256 }
47257 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
47258 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
47259 }
47260 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
47261 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
47262 }
47263 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
47264 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
47265 }
47266 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
47267 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
47268 }
47269 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
47270 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
47271 }
47272 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
47273 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
47274 }
47275 static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
47276 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
47277 }
47278 static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
47279 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47280 }
47281 static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
47282 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47283 }
47284 static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
47285 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47286 }
47287 static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
47288 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47289 }
47290 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
47291 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
47292 }
47293 static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
47294 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
47295 }
47296 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
47297 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
47298 }
47299 static void *_p_wxToolBarTo_p_wxObject(void *x) {
47300 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47301 }
47302 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
47303 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
47304 }
47305 static void *_p_wxValidatorTo_p_wxObject(void *x) {
47306 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
47307 }
47308 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
47309 return (void *)((wxWindow *) ((wxMenuBar *) x));
47310 }
47311 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
47312 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
47313 }
47314 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
47315 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47316 }
47317 static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
47318 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
47319 }
47320 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
47321 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
47322 }
47323 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
47324 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
47325 }
47326 static void *_p_wxToolbookTo_p_wxWindow(void *x) {
47327 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
47328 }
47329 static void *_p_wxControlTo_p_wxWindow(void *x) {
47330 return (void *)((wxWindow *) ((wxControl *) x));
47331 }
47332 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
47333 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
47334 }
47335 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
47336 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
47337 }
47338 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
47339 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
47340 }
47341 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
47342 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47343 }
47344 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
47345 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
47346 }
47347 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
47348 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
47349 }
47350 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
47351 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
47352 }
47353 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
47354 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
47355 }
47356 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
47357 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
47358 }
47359 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
47360 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
47361 }
47362 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
47363 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47364 }
47365 static void *_p_wxListbookTo_p_wxWindow(void *x) {
47366 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47367 }
47368 static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
47369 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
47370 }
47371 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
47372 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
47373 }
47374 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
47375 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
47376 }
47377 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
47378 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
47379 }
47380 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
47381 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47382 }
47383 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
47384 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47385 }
47386 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
47387 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47388 }
47389 static void *_p_wxListViewTo_p_wxWindow(void *x) {
47390 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47391 }
47392 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
47393 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47394 }
47395 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
47396 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
47397 }
47398 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
47399 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
47400 }
47401 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
47402 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
47403 }
47404 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
47405 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
47406 }
47407 static void *_p_wxSliderTo_p_wxWindow(void *x) {
47408 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
47409 }
47410 static void *_p_wxTreebookTo_p_wxWindow(void *x) {
47411 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47412 }
47413 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
47414 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
47415 }
47416 static void *_p_wxButtonTo_p_wxWindow(void *x) {
47417 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
47418 }
47419 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
47420 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
47421 }
47422 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
47423 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47424 }
47425 static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
47426 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
47427 }
47428 static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
47429 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47430 }
47431 static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
47432 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47433 }
47434 static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
47435 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47436 }
47437 static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
47438 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47439 }
47440 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
47441 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
47442 }
47443 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47444 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47445 }
47446 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47447 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47448 }
47449 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47450 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47451 }
47452 static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47453 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47454 }
47455 static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47456 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47457 }
47458 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
47459 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47460 }
47461 static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
47462 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
47463 }
47464 static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
47465 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
47466 }
47467 static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
47468 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
47469 }
47470 static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
47471 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47472 }
47473 static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
47474 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
47475 }
47476 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
47477 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
47478 }
47479 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
47480 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
47481 }
47482 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
47483 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
47484 }
47485 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
47486 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
47487 }
47488 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
47489 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
47490 }
47491 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
47492 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47493 }
47494 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
47495 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47496 }
47497 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
47498 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47499 }
47500 static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
47501 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47502 }
47503 static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
47504 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47505 }
47506 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
47507 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
47508 }
47509 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
47510 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
47511 }
47512 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
47513 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
47514 }
47515 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
47516 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47517 }
47518 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
47519 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
47520 }
47521 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
47522 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
47523 }
47524 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
47525 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
47526 }
47527 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
47528 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
47529 }
47530 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
47531 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
47532 }
47533 static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) {
47534 return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x));
47535 }
47536 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
47537 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
47538 }
47539 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
47540 return (void *)((wxControlWithItems *) ((wxChoice *) x));
47541 }
47542 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
47543 return (void *)((wxControlWithItems *) ((wxListBox *) x));
47544 }
47545 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
47546 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
47547 }
47548 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
47549 return (void *)((wxValidator *) ((wxPyValidator *) x));
47550 }
47551 static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
47552 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
47553 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};
47554 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
47555 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
47556 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
47557 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
47558 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
47559 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
47560 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
47561 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
47562 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
47563 static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
47564 static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
47565 static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
47566 static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
47567 static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
47568 static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
47569 static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
47570 static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
47571 static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
47572 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
47573 static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
47574 static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
47575 static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
47576 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
47577 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
47578 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
47579 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
47580 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
47581 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
47582 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
47583 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
47584 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
47585 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
47586 static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
47587 static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
47588 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
47589 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
47590 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
47591 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
47592 static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
47593 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
47594 static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
47595 static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
47596 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
47597 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
47598 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
47599 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
47600 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
47601 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
47602 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
47603 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
47604 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
47605 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
47606 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
47607 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
47608 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
47609 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
47610 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
47611 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
47612 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
47613 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
47614 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
47615 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
47616 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
47617 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
47618 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
47619 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
47620 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
47621 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
47622 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
47623 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
47624 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
47625 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
47626 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
47627 static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
47628 static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
47629 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
47630 static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
47631 static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
47632 static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
47633 static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
47634 static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
47635 static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
47636 static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
47637 static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
47638 static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
47639 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
47640 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
47641 static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
47642 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
47643 static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
47644 static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
47645 static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
47646 static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
47647 static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
47648 static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
47649 static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
47650 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
47651 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
47652 static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
47653 static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
47654 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
47655 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
47656 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
47657 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
47658 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
47659 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
47660 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
47661 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
47662 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
47663 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
47664 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
47665 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
47666 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
47667 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
47668 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
47669 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
47670 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
47671 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
47672 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
47673 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
47674 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
47675 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
47676 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
47677 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
47678 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
47679 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
47680 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
47681 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
47682 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
47683 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
47684 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
47685 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
47686 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
47687 static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
47688 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
47689 static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
47690 static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
47691 static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
47692 static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
47693 static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
47694 static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
47695 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
47696 static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
47697 static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
47698 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
47699 static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
47700 static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
47701 static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
47702 static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
47703 static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
47704 static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
47705 static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
47706 static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
47707 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
47708 static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
47709 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
47710 static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
47711 static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
47712 static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
47713 static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
47714 static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
47715 static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
47716 static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
47717 static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
47718 static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
47719 static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
47720 static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
47721 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
47722 static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
47723 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
47724 static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
47725
47726 static swig_type_info *swig_type_initial[] = {
47727 &_swigt__p_bool,
47728 &_swigt__p_char,
47729 &_swigt__p_form_ops_t,
47730 &_swigt__p_int,
47731 &_swigt__p_long,
47732 &_swigt__p_unsigned_char,
47733 &_swigt__p_unsigned_int,
47734 &_swigt__p_unsigned_long,
47735 &_swigt__p_void,
47736 &_swigt__p_wxANIHandler,
47737 &_swigt__p_wxAcceleratorTable,
47738 &_swigt__p_wxActivateEvent,
47739 &_swigt__p_wxArrayInt,
47740 &_swigt__p_wxArrayString,
47741 &_swigt__p_wxBMPHandler,
47742 &_swigt__p_wxBitmap,
47743 &_swigt__p_wxBitmapButton,
47744 &_swigt__p_wxBookCtrlBase,
47745 &_swigt__p_wxBookCtrlBaseEvent,
47746 &_swigt__p_wxBoxSizer,
47747 &_swigt__p_wxButton,
47748 &_swigt__p_wxCURHandler,
47749 &_swigt__p_wxCheckBox,
47750 &_swigt__p_wxCheckListBox,
47751 &_swigt__p_wxChildFocusEvent,
47752 &_swigt__p_wxChoice,
47753 &_swigt__p_wxChoicebook,
47754 &_swigt__p_wxChoicebookEvent,
47755 &_swigt__p_wxClipboardTextEvent,
47756 &_swigt__p_wxCloseEvent,
47757 &_swigt__p_wxColour,
47758 &_swigt__p_wxColourPickerCtrl,
47759 &_swigt__p_wxColourPickerEvent,
47760 &_swigt__p_wxComboBox,
47761 &_swigt__p_wxCommandEvent,
47762 &_swigt__p_wxContextHelp,
47763 &_swigt__p_wxContextHelpButton,
47764 &_swigt__p_wxContextMenuEvent,
47765 &_swigt__p_wxControl,
47766 &_swigt__p_wxControlWithItems,
47767 &_swigt__p_wxCursor,
47768 &_swigt__p_wxDC,
47769 &_swigt__p_wxDateEvent,
47770 &_swigt__p_wxDatePickerCtrl,
47771 &_swigt__p_wxDateTime,
47772 &_swigt__p_wxDirFilterListCtrl,
47773 &_swigt__p_wxDirPickerCtrl,
47774 &_swigt__p_wxDisplayChangedEvent,
47775 &_swigt__p_wxDropFilesEvent,
47776 &_swigt__p_wxDuplexMode,
47777 &_swigt__p_wxEraseEvent,
47778 &_swigt__p_wxEvent,
47779 &_swigt__p_wxEvtHandler,
47780 &_swigt__p_wxFSFile,
47781 &_swigt__p_wxFileDirPickerEvent,
47782 &_swigt__p_wxFilePickerCtrl,
47783 &_swigt__p_wxFileSystem,
47784 &_swigt__p_wxFlexGridSizer,
47785 &_swigt__p_wxFocusEvent,
47786 &_swigt__p_wxFont,
47787 &_swigt__p_wxFontPickerCtrl,
47788 &_swigt__p_wxFontPickerEvent,
47789 &_swigt__p_wxGBSizerItem,
47790 &_swigt__p_wxGIFHandler,
47791 &_swigt__p_wxGauge,
47792 &_swigt__p_wxGenericDirCtrl,
47793 &_swigt__p_wxGenericDragImage,
47794 &_swigt__p_wxGridBagSizer,
47795 &_swigt__p_wxGridSizer,
47796 &_swigt__p_wxHelpEvent,
47797 &_swigt__p_wxHelpProvider,
47798 &_swigt__p_wxHyperlinkCtrl,
47799 &_swigt__p_wxHyperlinkEvent,
47800 &_swigt__p_wxICOHandler,
47801 &_swigt__p_wxIcon,
47802 &_swigt__p_wxIconizeEvent,
47803 &_swigt__p_wxIdleEvent,
47804 &_swigt__p_wxImage,
47805 &_swigt__p_wxImageHandler,
47806 &_swigt__p_wxImageList,
47807 &_swigt__p_wxIndividualLayoutConstraint,
47808 &_swigt__p_wxInitDialogEvent,
47809 &_swigt__p_wxItemContainer,
47810 &_swigt__p_wxJPEGHandler,
47811 &_swigt__p_wxKeyEvent,
47812 &_swigt__p_wxLayoutConstraints,
47813 &_swigt__p_wxListBox,
47814 &_swigt__p_wxListEvent,
47815 &_swigt__p_wxListItem,
47816 &_swigt__p_wxListItemAttr,
47817 &_swigt__p_wxListView,
47818 &_swigt__p_wxListbook,
47819 &_swigt__p_wxListbookEvent,
47820 &_swigt__p_wxMaximizeEvent,
47821 &_swigt__p_wxMemoryDC,
47822 &_swigt__p_wxMenu,
47823 &_swigt__p_wxMenuBar,
47824 &_swigt__p_wxMenuEvent,
47825 &_swigt__p_wxMenuItem,
47826 &_swigt__p_wxMouseCaptureChangedEvent,
47827 &_swigt__p_wxMouseEvent,
47828 &_swigt__p_wxMoveEvent,
47829 &_swigt__p_wxNavigationKeyEvent,
47830 &_swigt__p_wxNcPaintEvent,
47831 &_swigt__p_wxNotebook,
47832 &_swigt__p_wxNotebookEvent,
47833 &_swigt__p_wxNotifyEvent,
47834 &_swigt__p_wxObject,
47835 &_swigt__p_wxPCXHandler,
47836 &_swigt__p_wxPNGHandler,
47837 &_swigt__p_wxPNMHandler,
47838 &_swigt__p_wxPaintEvent,
47839 &_swigt__p_wxPaletteChangedEvent,
47840 &_swigt__p_wxPaperSize,
47841 &_swigt__p_wxPickerBase,
47842 &_swigt__p_wxPoint,
47843 &_swigt__p_wxPyApp,
47844 &_swigt__p_wxPyCommandEvent,
47845 &_swigt__p_wxPyControl,
47846 &_swigt__p_wxPyEvent,
47847 &_swigt__p_wxPyImageHandler,
47848 &_swigt__p_wxPyListCtrl,
47849 &_swigt__p_wxPySizer,
47850 &_swigt__p_wxPyTreeCtrl,
47851 &_swigt__p_wxPyTreeItemData,
47852 &_swigt__p_wxPyValidator,
47853 &_swigt__p_wxQueryNewPaletteEvent,
47854 &_swigt__p_wxRadioBox,
47855 &_swigt__p_wxRadioButton,
47856 &_swigt__p_wxRect,
47857 &_swigt__p_wxScrollBar,
47858 &_swigt__p_wxScrollEvent,
47859 &_swigt__p_wxScrollWinEvent,
47860 &_swigt__p_wxSetCursorEvent,
47861 &_swigt__p_wxShowEvent,
47862 &_swigt__p_wxSimpleHelpProvider,
47863 &_swigt__p_wxSize,
47864 &_swigt__p_wxSizeEvent,
47865 &_swigt__p_wxSizer,
47866 &_swigt__p_wxSizerItem,
47867 &_swigt__p_wxSlider,
47868 &_swigt__p_wxSpinButton,
47869 &_swigt__p_wxSpinCtrl,
47870 &_swigt__p_wxSpinEvent,
47871 &_swigt__p_wxStaticBitmap,
47872 &_swigt__p_wxStaticBox,
47873 &_swigt__p_wxStaticBoxSizer,
47874 &_swigt__p_wxStaticLine,
47875 &_swigt__p_wxStaticText,
47876 &_swigt__p_wxStdDialogButtonSizer,
47877 &_swigt__p_wxString,
47878 &_swigt__p_wxSysColourChangedEvent,
47879 &_swigt__p_wxTIFFHandler,
47880 &_swigt__p_wxTextAttr,
47881 &_swigt__p_wxTextCtrl,
47882 &_swigt__p_wxTextUrlEvent,
47883 &_swigt__p_wxToggleButton,
47884 &_swigt__p_wxToolBar,
47885 &_swigt__p_wxToolBarBase,
47886 &_swigt__p_wxToolBarToolBase,
47887 &_swigt__p_wxToolbook,
47888 &_swigt__p_wxToolbookEvent,
47889 &_swigt__p_wxTreeEvent,
47890 &_swigt__p_wxTreeItemId,
47891 &_swigt__p_wxTreebook,
47892 &_swigt__p_wxTreebookEvent,
47893 &_swigt__p_wxUpdateUIEvent,
47894 &_swigt__p_wxValidator,
47895 &_swigt__p_wxVisualAttributes,
47896 &_swigt__p_wxWindow,
47897 &_swigt__p_wxWindowBase,
47898 &_swigt__p_wxWindowCreateEvent,
47899 &_swigt__p_wxWindowDestroyEvent,
47900 &_swigt__p_wxXPMHandler,
47901 };
47902
47903 static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
47904 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
47905 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
47906 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
47907 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
47908 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
47909 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
47910 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
47911 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
47912 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
47913 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
47914 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
47915 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}};
47916 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}};
47917 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}};
47918 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}};
47919 static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
47920 static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
47921 static swig_cast_info _swigc__p_wxChoice[] = { {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxChoice, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0}, {&_swigt__p_wxChoice, 0, 0, 0},{0, 0, 0, 0}};
47922 static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
47923 static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47924 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
47925 static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47926 static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
47927 static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
47928 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
47929 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
47930 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
47931 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
47932 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
47933 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
47934 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
47935 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
47936 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
47937 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_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_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}};
47938 static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
47939 static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
47940 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_wxPickerBase, _p_wxPickerBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxControl, 0, 0}, {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_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_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_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}};
47941 static swig_cast_info _swigc__p_wxControlWithItems[] = { {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxControlWithItems, 0, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0},{0, 0, 0, 0}};
47942 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
47943 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
47944 static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47945 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
47946 static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
47947 static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47948 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
47949 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
47950 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
47951 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
47952 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
47953 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
47954 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
47955 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
47956 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
47957 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47958 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47959 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
47960 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47961 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
47962 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
47963 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
47964 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47965 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47966 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47967 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47968 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
47969 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
47970 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
47971 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
47972 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
47973 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_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_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}};
47974 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
47975 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
47976 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
47977 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
47978 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_wxPickerBase, _p_wxPickerBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_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_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_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}};
47979 static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
47980 static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47981 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
47982 static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47983 static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
47984 static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
47985 static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
47986 static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
47987 static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
47988 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}};
47989 static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
47990 static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
47991 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
47992 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
47993 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}};
47994 static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
47995 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}};
47996 static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
47997 static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
47998 static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
47999 static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
48000 static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
48001 static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
48002 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
48003 static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
48004 static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
48005 static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
48006 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}};
48007 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
48008 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
48009 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
48010 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
48011 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
48012 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
48013 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
48014 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
48015 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
48016 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
48017 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
48018 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
48019 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
48020 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
48021 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
48022 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
48023 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
48024 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
48025 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
48026 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
48027 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
48028 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
48029 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
48030 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
48031 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
48032 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
48033 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
48034 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
48035 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
48036 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
48037 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_wxPickerBase, _p_wxPickerBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_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_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_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_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_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_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_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_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_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_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}};
48038 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
48039 static swig_cast_info _swigc__p_wxPickerBase[] = { {&_swigt__p_wxPickerBase, 0, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxPickerBase, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxPickerBase, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxPickerBase, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxPickerBase, 0, 0},{0, 0, 0, 0}};
48040 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
48041 static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
48042 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}};
48043 static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
48044 static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
48045 static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
48046 static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
48047 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
48048 static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
48049 static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
48050 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
48051 static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
48052 static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
48053 static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
48054 static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
48055 static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
48056 static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
48057 static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
48058 static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
48059 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
48060 static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
48061 static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
48062 static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
48063 static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
48064 static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
48065 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}};
48066 static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
48067 static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
48068 static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
48069 static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
48070 static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
48071 static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
48072 static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
48073 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}};
48074 static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
48075 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_wxPickerBase, _p_wxPickerBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_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_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_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}};
48076 static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
48077
48078 static swig_cast_info *swig_cast_initial[] = {
48079 _swigc__p_bool,
48080 _swigc__p_char,
48081 _swigc__p_form_ops_t,
48082 _swigc__p_int,
48083 _swigc__p_long,
48084 _swigc__p_unsigned_char,
48085 _swigc__p_unsigned_int,
48086 _swigc__p_unsigned_long,
48087 _swigc__p_void,
48088 _swigc__p_wxANIHandler,
48089 _swigc__p_wxAcceleratorTable,
48090 _swigc__p_wxActivateEvent,
48091 _swigc__p_wxArrayInt,
48092 _swigc__p_wxArrayString,
48093 _swigc__p_wxBMPHandler,
48094 _swigc__p_wxBitmap,
48095 _swigc__p_wxBitmapButton,
48096 _swigc__p_wxBookCtrlBase,
48097 _swigc__p_wxBookCtrlBaseEvent,
48098 _swigc__p_wxBoxSizer,
48099 _swigc__p_wxButton,
48100 _swigc__p_wxCURHandler,
48101 _swigc__p_wxCheckBox,
48102 _swigc__p_wxCheckListBox,
48103 _swigc__p_wxChildFocusEvent,
48104 _swigc__p_wxChoice,
48105 _swigc__p_wxChoicebook,
48106 _swigc__p_wxChoicebookEvent,
48107 _swigc__p_wxClipboardTextEvent,
48108 _swigc__p_wxCloseEvent,
48109 _swigc__p_wxColour,
48110 _swigc__p_wxColourPickerCtrl,
48111 _swigc__p_wxColourPickerEvent,
48112 _swigc__p_wxComboBox,
48113 _swigc__p_wxCommandEvent,
48114 _swigc__p_wxContextHelp,
48115 _swigc__p_wxContextHelpButton,
48116 _swigc__p_wxContextMenuEvent,
48117 _swigc__p_wxControl,
48118 _swigc__p_wxControlWithItems,
48119 _swigc__p_wxCursor,
48120 _swigc__p_wxDC,
48121 _swigc__p_wxDateEvent,
48122 _swigc__p_wxDatePickerCtrl,
48123 _swigc__p_wxDateTime,
48124 _swigc__p_wxDirFilterListCtrl,
48125 _swigc__p_wxDirPickerCtrl,
48126 _swigc__p_wxDisplayChangedEvent,
48127 _swigc__p_wxDropFilesEvent,
48128 _swigc__p_wxDuplexMode,
48129 _swigc__p_wxEraseEvent,
48130 _swigc__p_wxEvent,
48131 _swigc__p_wxEvtHandler,
48132 _swigc__p_wxFSFile,
48133 _swigc__p_wxFileDirPickerEvent,
48134 _swigc__p_wxFilePickerCtrl,
48135 _swigc__p_wxFileSystem,
48136 _swigc__p_wxFlexGridSizer,
48137 _swigc__p_wxFocusEvent,
48138 _swigc__p_wxFont,
48139 _swigc__p_wxFontPickerCtrl,
48140 _swigc__p_wxFontPickerEvent,
48141 _swigc__p_wxGBSizerItem,
48142 _swigc__p_wxGIFHandler,
48143 _swigc__p_wxGauge,
48144 _swigc__p_wxGenericDirCtrl,
48145 _swigc__p_wxGenericDragImage,
48146 _swigc__p_wxGridBagSizer,
48147 _swigc__p_wxGridSizer,
48148 _swigc__p_wxHelpEvent,
48149 _swigc__p_wxHelpProvider,
48150 _swigc__p_wxHyperlinkCtrl,
48151 _swigc__p_wxHyperlinkEvent,
48152 _swigc__p_wxICOHandler,
48153 _swigc__p_wxIcon,
48154 _swigc__p_wxIconizeEvent,
48155 _swigc__p_wxIdleEvent,
48156 _swigc__p_wxImage,
48157 _swigc__p_wxImageHandler,
48158 _swigc__p_wxImageList,
48159 _swigc__p_wxIndividualLayoutConstraint,
48160 _swigc__p_wxInitDialogEvent,
48161 _swigc__p_wxItemContainer,
48162 _swigc__p_wxJPEGHandler,
48163 _swigc__p_wxKeyEvent,
48164 _swigc__p_wxLayoutConstraints,
48165 _swigc__p_wxListBox,
48166 _swigc__p_wxListEvent,
48167 _swigc__p_wxListItem,
48168 _swigc__p_wxListItemAttr,
48169 _swigc__p_wxListView,
48170 _swigc__p_wxListbook,
48171 _swigc__p_wxListbookEvent,
48172 _swigc__p_wxMaximizeEvent,
48173 _swigc__p_wxMemoryDC,
48174 _swigc__p_wxMenu,
48175 _swigc__p_wxMenuBar,
48176 _swigc__p_wxMenuEvent,
48177 _swigc__p_wxMenuItem,
48178 _swigc__p_wxMouseCaptureChangedEvent,
48179 _swigc__p_wxMouseEvent,
48180 _swigc__p_wxMoveEvent,
48181 _swigc__p_wxNavigationKeyEvent,
48182 _swigc__p_wxNcPaintEvent,
48183 _swigc__p_wxNotebook,
48184 _swigc__p_wxNotebookEvent,
48185 _swigc__p_wxNotifyEvent,
48186 _swigc__p_wxObject,
48187 _swigc__p_wxPCXHandler,
48188 _swigc__p_wxPNGHandler,
48189 _swigc__p_wxPNMHandler,
48190 _swigc__p_wxPaintEvent,
48191 _swigc__p_wxPaletteChangedEvent,
48192 _swigc__p_wxPaperSize,
48193 _swigc__p_wxPickerBase,
48194 _swigc__p_wxPoint,
48195 _swigc__p_wxPyApp,
48196 _swigc__p_wxPyCommandEvent,
48197 _swigc__p_wxPyControl,
48198 _swigc__p_wxPyEvent,
48199 _swigc__p_wxPyImageHandler,
48200 _swigc__p_wxPyListCtrl,
48201 _swigc__p_wxPySizer,
48202 _swigc__p_wxPyTreeCtrl,
48203 _swigc__p_wxPyTreeItemData,
48204 _swigc__p_wxPyValidator,
48205 _swigc__p_wxQueryNewPaletteEvent,
48206 _swigc__p_wxRadioBox,
48207 _swigc__p_wxRadioButton,
48208 _swigc__p_wxRect,
48209 _swigc__p_wxScrollBar,
48210 _swigc__p_wxScrollEvent,
48211 _swigc__p_wxScrollWinEvent,
48212 _swigc__p_wxSetCursorEvent,
48213 _swigc__p_wxShowEvent,
48214 _swigc__p_wxSimpleHelpProvider,
48215 _swigc__p_wxSize,
48216 _swigc__p_wxSizeEvent,
48217 _swigc__p_wxSizer,
48218 _swigc__p_wxSizerItem,
48219 _swigc__p_wxSlider,
48220 _swigc__p_wxSpinButton,
48221 _swigc__p_wxSpinCtrl,
48222 _swigc__p_wxSpinEvent,
48223 _swigc__p_wxStaticBitmap,
48224 _swigc__p_wxStaticBox,
48225 _swigc__p_wxStaticBoxSizer,
48226 _swigc__p_wxStaticLine,
48227 _swigc__p_wxStaticText,
48228 _swigc__p_wxStdDialogButtonSizer,
48229 _swigc__p_wxString,
48230 _swigc__p_wxSysColourChangedEvent,
48231 _swigc__p_wxTIFFHandler,
48232 _swigc__p_wxTextAttr,
48233 _swigc__p_wxTextCtrl,
48234 _swigc__p_wxTextUrlEvent,
48235 _swigc__p_wxToggleButton,
48236 _swigc__p_wxToolBar,
48237 _swigc__p_wxToolBarBase,
48238 _swigc__p_wxToolBarToolBase,
48239 _swigc__p_wxToolbook,
48240 _swigc__p_wxToolbookEvent,
48241 _swigc__p_wxTreeEvent,
48242 _swigc__p_wxTreeItemId,
48243 _swigc__p_wxTreebook,
48244 _swigc__p_wxTreebookEvent,
48245 _swigc__p_wxUpdateUIEvent,
48246 _swigc__p_wxValidator,
48247 _swigc__p_wxVisualAttributes,
48248 _swigc__p_wxWindow,
48249 _swigc__p_wxWindowBase,
48250 _swigc__p_wxWindowCreateEvent,
48251 _swigc__p_wxWindowDestroyEvent,
48252 _swigc__p_wxXPMHandler,
48253 };
48254
48255
48256 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
48257
48258 static swig_const_info swig_const_table[] = {
48259 {0, 0, 0, 0.0, 0, 0}};
48260
48261 #ifdef __cplusplus
48262 }
48263 #endif
48264 /* -----------------------------------------------------------------------------
48265 * Type initialization:
48266 * This problem is tough by the requirement that no dynamic
48267 * memory is used. Also, since swig_type_info structures store pointers to
48268 * swig_cast_info structures and swig_cast_info structures store pointers back
48269 * to swig_type_info structures, we need some lookup code at initialization.
48270 * The idea is that swig generates all the structures that are needed.
48271 * The runtime then collects these partially filled structures.
48272 * The SWIG_InitializeModule function takes these initial arrays out of
48273 * swig_module, and does all the lookup, filling in the swig_module.types
48274 * array with the correct data and linking the correct swig_cast_info
48275 * structures together.
48276 *
48277 * The generated swig_type_info structures are assigned staticly to an initial
48278 * array. We just loop though that array, and handle each type individually.
48279 * First we lookup if this type has been already loaded, and if so, use the
48280 * loaded structure instead of the generated one. Then we have to fill in the
48281 * cast linked list. The cast data is initially stored in something like a
48282 * two-dimensional array. Each row corresponds to a type (there are the same
48283 * number of rows as there are in the swig_type_initial array). Each entry in
48284 * a column is one of the swig_cast_info structures for that type.
48285 * The cast_initial array is actually an array of arrays, because each row has
48286 * a variable number of columns. So to actually build the cast linked list,
48287 * we find the array of casts associated with the type, and loop through it
48288 * adding the casts to the list. The one last trick we need to do is making
48289 * sure the type pointer in the swig_cast_info struct is correct.
48290 *
48291 * First off, we lookup the cast->type name to see if it is already loaded.
48292 * There are three cases to handle:
48293 * 1) If the cast->type has already been loaded AND the type we are adding
48294 * casting info to has not been loaded (it is in this module), THEN we
48295 * replace the cast->type pointer with the type pointer that has already
48296 * been loaded.
48297 * 2) If BOTH types (the one we are adding casting info to, and the
48298 * cast->type) are loaded, THEN the cast info has already been loaded by
48299 * the previous module so we just ignore it.
48300 * 3) Finally, if cast->type has not already been loaded, then we add that
48301 * swig_cast_info to the linked list (because the cast->type) pointer will
48302 * be correct.
48303 * ----------------------------------------------------------------------------- */
48304
48305 #ifdef __cplusplus
48306 extern "C" {
48307 #if 0
48308 } /* c-mode */
48309 #endif
48310 #endif
48311
48312 #if 0
48313 #define SWIGRUNTIME_DEBUG
48314 #endif
48315
48316 SWIGRUNTIME void
48317 SWIG_InitializeModule(void *clientdata) {
48318 size_t i;
48319 swig_module_info *module_head;
48320 static int init_run = 0;
48321
48322 clientdata = clientdata;
48323
48324 if (init_run) return;
48325 init_run = 1;
48326
48327 /* Initialize the swig_module */
48328 swig_module.type_initial = swig_type_initial;
48329 swig_module.cast_initial = swig_cast_initial;
48330
48331 /* Try and load any already created modules */
48332 module_head = SWIG_GetModule(clientdata);
48333 if (module_head) {
48334 swig_module.next = module_head->next;
48335 module_head->next = &swig_module;
48336 } else {
48337 /* This is the first module loaded */
48338 swig_module.next = &swig_module;
48339 SWIG_SetModule(clientdata, &swig_module);
48340 }
48341
48342 /* Now work on filling in swig_module.types */
48343 #ifdef SWIGRUNTIME_DEBUG
48344 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
48345 #endif
48346 for (i = 0; i < swig_module.size; ++i) {
48347 swig_type_info *type = 0;
48348 swig_type_info *ret;
48349 swig_cast_info *cast;
48350
48351 #ifdef SWIGRUNTIME_DEBUG
48352 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48353 #endif
48354
48355 /* if there is another module already loaded */
48356 if (swig_module.next != &swig_module) {
48357 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
48358 }
48359 if (type) {
48360 /* Overwrite clientdata field */
48361 #ifdef SWIGRUNTIME_DEBUG
48362 printf("SWIG_InitializeModule: found type %s\n", type->name);
48363 #endif
48364 if (swig_module.type_initial[i]->clientdata) {
48365 type->clientdata = swig_module.type_initial[i]->clientdata;
48366 #ifdef SWIGRUNTIME_DEBUG
48367 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
48368 #endif
48369 }
48370 } else {
48371 type = swig_module.type_initial[i];
48372 }
48373
48374 /* Insert casting types */
48375 cast = swig_module.cast_initial[i];
48376 while (cast->type) {
48377 /* Don't need to add information already in the list */
48378 ret = 0;
48379 #ifdef SWIGRUNTIME_DEBUG
48380 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
48381 #endif
48382 if (swig_module.next != &swig_module) {
48383 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
48384 #ifdef SWIGRUNTIME_DEBUG
48385 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
48386 #endif
48387 }
48388 if (ret) {
48389 if (type == swig_module.type_initial[i]) {
48390 #ifdef SWIGRUNTIME_DEBUG
48391 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
48392 #endif
48393 cast->type = ret;
48394 ret = 0;
48395 } else {
48396 /* Check for casting already in the list */
48397 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
48398 #ifdef SWIGRUNTIME_DEBUG
48399 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
48400 #endif
48401 if (!ocast) ret = 0;
48402 }
48403 }
48404
48405 if (!ret) {
48406 #ifdef SWIGRUNTIME_DEBUG
48407 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
48408 #endif
48409 if (type->cast) {
48410 type->cast->prev = cast;
48411 cast->next = type->cast;
48412 }
48413 type->cast = cast;
48414 }
48415 cast++;
48416 }
48417 /* Set entry in modules->types array equal to the type */
48418 swig_module.types[i] = type;
48419 }
48420 swig_module.types[i] = 0;
48421
48422 #ifdef SWIGRUNTIME_DEBUG
48423 printf("**** SWIG_InitializeModule: Cast List ******\n");
48424 for (i = 0; i < swig_module.size; ++i) {
48425 int j = 0;
48426 swig_cast_info *cast = swig_module.cast_initial[i];
48427 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48428 while (cast->type) {
48429 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
48430 cast++;
48431 ++j;
48432 }
48433 printf("---- Total casts: %d\n",j);
48434 }
48435 printf("**** SWIG_InitializeModule: Cast List ******\n");
48436 #endif
48437 }
48438
48439 /* This function will propagate the clientdata field of type to
48440 * any new swig_type_info structures that have been added into the list
48441 * of equivalent types. It is like calling
48442 * SWIG_TypeClientData(type, clientdata) a second time.
48443 */
48444 SWIGRUNTIME void
48445 SWIG_PropagateClientData(void) {
48446 size_t i;
48447 swig_cast_info *equiv;
48448 static int init_run = 0;
48449
48450 if (init_run) return;
48451 init_run = 1;
48452
48453 for (i = 0; i < swig_module.size; i++) {
48454 if (swig_module.types[i]->clientdata) {
48455 equiv = swig_module.types[i]->cast;
48456 while (equiv) {
48457 if (!equiv->converter) {
48458 if (equiv->type && !equiv->type->clientdata)
48459 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
48460 }
48461 equiv = equiv->next;
48462 }
48463 }
48464 }
48465 }
48466
48467 #ifdef __cplusplus
48468 #if 0
48469 {
48470 /* c-mode */
48471 #endif
48472 }
48473 #endif
48474
48475
48476
48477 #ifdef __cplusplus
48478 extern "C" {
48479 #endif
48480
48481 /* Python-specific SWIG API */
48482 #define SWIG_newvarlink() SWIG_Python_newvarlink()
48483 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
48484 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
48485
48486 /* -----------------------------------------------------------------------------
48487 * global variable support code.
48488 * ----------------------------------------------------------------------------- */
48489
48490 typedef struct swig_globalvar {
48491 char *name; /* Name of global variable */
48492 PyObject *(*get_attr)(void); /* Return the current value */
48493 int (*set_attr)(PyObject *); /* Set the value */
48494 struct swig_globalvar *next;
48495 } swig_globalvar;
48496
48497 typedef struct swig_varlinkobject {
48498 PyObject_HEAD
48499 swig_globalvar *vars;
48500 } swig_varlinkobject;
48501
48502 SWIGINTERN PyObject *
48503 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
48504 return PyString_FromString("<Swig global variables>");
48505 }
48506
48507 SWIGINTERN PyObject *
48508 swig_varlink_str(swig_varlinkobject *v) {
48509 PyObject *str = PyString_FromString("(");
48510 swig_globalvar *var;
48511 for (var = v->vars; var; var=var->next) {
48512 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
48513 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
48514 }
48515 PyString_ConcatAndDel(&str,PyString_FromString(")"));
48516 return str;
48517 }
48518
48519 SWIGINTERN int
48520 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
48521 PyObject *str = swig_varlink_str(v);
48522 fprintf(fp,"Swig global variables ");
48523 fprintf(fp,"%s\n", PyString_AsString(str));
48524 Py_DECREF(str);
48525 return 0;
48526 }
48527
48528 SWIGINTERN void
48529 swig_varlink_dealloc(swig_varlinkobject *v) {
48530 swig_globalvar *var = v->vars;
48531 while (var) {
48532 swig_globalvar *n = var->next;
48533 free(var->name);
48534 free(var);
48535 var = n;
48536 }
48537 }
48538
48539 SWIGINTERN PyObject *
48540 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
48541 PyObject *res = NULL;
48542 swig_globalvar *var = v->vars;
48543 while (var) {
48544 if (strcmp(var->name,n) == 0) {
48545 res = (*var->get_attr)();
48546 break;
48547 }
48548 var = var->next;
48549 }
48550 if (res == NULL && !PyErr_Occurred()) {
48551 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
48552 }
48553 return res;
48554 }
48555
48556 SWIGINTERN int
48557 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
48558 int res = 1;
48559 swig_globalvar *var = v->vars;
48560 while (var) {
48561 if (strcmp(var->name,n) == 0) {
48562 res = (*var->set_attr)(p);
48563 break;
48564 }
48565 var = var->next;
48566 }
48567 if (res == 1 && !PyErr_Occurred()) {
48568 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
48569 }
48570 return res;
48571 }
48572
48573 SWIGINTERN PyTypeObject*
48574 swig_varlink_type(void) {
48575 static char varlink__doc__[] = "Swig var link object";
48576 static PyTypeObject varlink_type;
48577 static int type_init = 0;
48578 if (!type_init) {
48579 const PyTypeObject tmp
48580 = {
48581 PyObject_HEAD_INIT(NULL)
48582 0, /* Number of items in variable part (ob_size) */
48583 (char *)"swigvarlink", /* Type name (tp_name) */
48584 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
48585 0, /* Itemsize (tp_itemsize) */
48586 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
48587 (printfunc) swig_varlink_print, /* Print (tp_print) */
48588 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
48589 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
48590 0, /* tp_compare */
48591 (reprfunc) swig_varlink_repr, /* tp_repr */
48592 0, /* tp_as_number */
48593 0, /* tp_as_sequence */
48594 0, /* tp_as_mapping */
48595 0, /* tp_hash */
48596 0, /* tp_call */
48597 (reprfunc)swig_varlink_str, /* tp_str */
48598 0, /* tp_getattro */
48599 0, /* tp_setattro */
48600 0, /* tp_as_buffer */
48601 0, /* tp_flags */
48602 varlink__doc__, /* tp_doc */
48603 0, /* tp_traverse */
48604 0, /* tp_clear */
48605 0, /* tp_richcompare */
48606 0, /* tp_weaklistoffset */
48607 #if PY_VERSION_HEX >= 0x02020000
48608 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
48609 #endif
48610 #if PY_VERSION_HEX >= 0x02030000
48611 0, /* tp_del */
48612 #endif
48613 #ifdef COUNT_ALLOCS
48614 0,0,0,0 /* tp_alloc -> tp_next */
48615 #endif
48616 };
48617 varlink_type = tmp;
48618 varlink_type.ob_type = &PyType_Type;
48619 type_init = 1;
48620 }
48621 return &varlink_type;
48622 }
48623
48624 /* Create a variable linking object for use later */
48625 SWIGINTERN PyObject *
48626 SWIG_Python_newvarlink(void) {
48627 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
48628 if (result) {
48629 result->vars = 0;
48630 }
48631 return ((PyObject*) result);
48632 }
48633
48634 SWIGINTERN void
48635 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
48636 swig_varlinkobject *v = (swig_varlinkobject *) p;
48637 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
48638 if (gv) {
48639 size_t size = strlen(name)+1;
48640 gv->name = (char *)malloc(size);
48641 if (gv->name) {
48642 strncpy(gv->name,name,size);
48643 gv->get_attr = get_attr;
48644 gv->set_attr = set_attr;
48645 gv->next = v->vars;
48646 }
48647 }
48648 v->vars = gv;
48649 }
48650
48651 SWIGINTERN PyObject *
48652 SWIG_globals() {
48653 static PyObject *_SWIG_globals = 0;
48654 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
48655 return _SWIG_globals;
48656 }
48657
48658 /* -----------------------------------------------------------------------------
48659 * constants/methods manipulation
48660 * ----------------------------------------------------------------------------- */
48661
48662 /* Install Constants */
48663 SWIGINTERN void
48664 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
48665 PyObject *obj = 0;
48666 size_t i;
48667 for (i = 0; constants[i].type; ++i) {
48668 switch(constants[i].type) {
48669 case SWIG_PY_POINTER:
48670 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
48671 break;
48672 case SWIG_PY_BINARY:
48673 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
48674 break;
48675 default:
48676 obj = 0;
48677 break;
48678 }
48679 if (obj) {
48680 PyDict_SetItemString(d, constants[i].name, obj);
48681 Py_DECREF(obj);
48682 }
48683 }
48684 }
48685
48686 /* -----------------------------------------------------------------------------*/
48687 /* Fix SwigMethods to carry the callback ptrs when needed */
48688 /* -----------------------------------------------------------------------------*/
48689
48690 SWIGINTERN void
48691 SWIG_Python_FixMethods(PyMethodDef *methods,
48692 swig_const_info *const_table,
48693 swig_type_info **types,
48694 swig_type_info **types_initial) {
48695 size_t i;
48696 for (i = 0; methods[i].ml_name; ++i) {
48697 const char *c = methods[i].ml_doc;
48698 if (c && (c = strstr(c, "swig_ptr: "))) {
48699 int j;
48700 swig_const_info *ci = 0;
48701 const char *name = c + 10;
48702 for (j = 0; const_table[j].type; ++j) {
48703 if (strncmp(const_table[j].name, name,
48704 strlen(const_table[j].name)) == 0) {
48705 ci = &(const_table[j]);
48706 break;
48707 }
48708 }
48709 if (ci) {
48710 size_t shift = (ci->ptype) - types;
48711 swig_type_info *ty = types_initial[shift];
48712 size_t ldoc = (c - methods[i].ml_doc);
48713 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
48714 char *ndoc = (char*)malloc(ldoc + lptr + 10);
48715 if (ndoc) {
48716 char *buff = ndoc;
48717 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
48718 if (ptr) {
48719 strncpy(buff, methods[i].ml_doc, ldoc);
48720 buff += ldoc;
48721 strncpy(buff, "swig_ptr: ", 10);
48722 buff += 10;
48723 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
48724 methods[i].ml_doc = ndoc;
48725 }
48726 }
48727 }
48728 }
48729 }
48730 }
48731
48732 #ifdef __cplusplus
48733 }
48734 #endif
48735
48736 /* -----------------------------------------------------------------------------*
48737 * Partial Init method
48738 * -----------------------------------------------------------------------------*/
48739
48740 #ifdef __cplusplus
48741 extern "C"
48742 #endif
48743 SWIGEXPORT void SWIG_init(void) {
48744 PyObject *m, *d;
48745
48746 /* Fix SwigMethods to carry the callback ptrs when needed */
48747 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
48748
48749 m = Py_InitModule((char *) SWIG_name, SwigMethods);
48750 d = PyModule_GetDict(m);
48751
48752 SWIG_InitializeModule(0);
48753 SWIG_InstallConstants(d,swig_const_table);
48754
48755
48756 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
48757 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
48758 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
48759 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
48760 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
48761 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
48762 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
48763 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
48764 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
48765 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
48766 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
48767 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
48768 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
48769 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
48770 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
48771 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
48772 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
48773 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
48774 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
48775 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
48776 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
48777 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
48778 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
48779 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
48780 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
48781 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
48782 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
48783 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
48784 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
48785 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
48786 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
48787 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
48788 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
48789 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
48790 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
48791 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
48792 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
48793 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
48794 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
48795 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
48796 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
48797 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
48798 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
48799 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
48800 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
48801 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
48802 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
48803 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
48804 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
48805 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
48806 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
48807 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
48808 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
48809 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
48810 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
48811 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
48812 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
48813 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
48814 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
48815 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
48816 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
48817 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
48818 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
48819 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
48820 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
48821 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
48822 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
48823 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
48824 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
48825 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
48826 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
48827 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
48828 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
48829 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
48830 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
48831 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
48832 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
48833 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
48834 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
48835 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
48836 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
48837 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
48838 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
48839 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
48840 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
48841 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
48842 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
48843 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
48844 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
48845 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
48846 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
48847 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
48848 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
48849 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
48850 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
48851 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
48852 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
48853 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
48854 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
48855 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
48856 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
48857 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
48858 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
48859 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
48860 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
48861 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
48862 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
48863 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
48864 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
48865 SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE)));
48866 SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON)));
48867 SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL)));
48868 SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM)));
48869 SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE)));
48870 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
48871 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
48872 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
48873 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
48874 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
48875 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
48876 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
48877 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
48878 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
48879 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
48880 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
48881 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
48882 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
48883 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
48884 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
48885 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
48886 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
48887 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
48888 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
48889 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
48890 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
48891 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
48892 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
48893 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
48894 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
48895 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
48896 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
48897 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
48898 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
48899 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
48900 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
48901 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
48902 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
48903 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
48904 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
48905 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
48906 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
48907 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
48908 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
48909 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
48910 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
48911 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
48912 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
48913 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
48914 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
48915 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
48916 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
48917 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
48918 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
48919 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
48920 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
48921 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
48922 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
48923 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
48924 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
48925 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
48926 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
48927 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
48928 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
48929 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
48930 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
48931 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
48932 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
48933 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
48934 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
48935 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
48936 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
48937 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
48938 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
48939 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
48940 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
48941 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
48942 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
48943 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
48944 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
48945 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
48946 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
48947 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
48948 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
48949 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
48950 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
48951 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
48952 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
48953 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
48954 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
48955 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
48956 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
48957 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
48958 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
48959 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
48960 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
48961 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
48962 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
48963 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
48964 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
48965 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
48966 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
48967 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
48968 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
48969 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
48970 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
48971 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
48972 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
48973 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
48974 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
48975 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
48976 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
48977 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
48978 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
48979 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
48980 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
48981 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
48982 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
48983 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
48984 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
48985 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
48986 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
48987 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
48988 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
48989 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
48990 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
48991 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
48992 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
48993 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
48994 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
48995 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
48996 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
48997 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
48998 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
48999 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
49000 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
49001 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
49002 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
49003 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
49004 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
49005 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
49006 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
49007 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
49008 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
49009 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
49010 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
49011
49012 // Map renamed classes back to their common name for OOR
49013 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
49014
49015 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
49016 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
49017 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
49018 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
49019 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
49020 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
49021 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
49022 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
49023 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
49024 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
49025 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
49026 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
49027 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
49028 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
49029 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
49030 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
49031 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
49032 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
49033 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
49034 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
49035 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
49036 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
49037 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
49038 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
49039 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
49040 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
49041 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
49042 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
49043 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
49044 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
49045 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
49046 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
49047 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
49048 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
49049 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
49050 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
49051 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
49052 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
49053 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
49054 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
49055 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
49056 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
49057 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
49058 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
49059 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
49060 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
49061 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
49062 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
49063 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
49064 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
49065 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
49066 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
49067 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
49068 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
49069 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
49070 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
49071
49072 // Map renamed classes back to their common name for OOR
49073 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
49074 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
49075
49076 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
49077 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
49078 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
49079 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
49080 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
49081 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
49082 SWIG_Python_SetConstant(d, "FRAME_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxFRAME_EX_CONTEXTHELP)));
49083 SWIG_Python_SetConstant(d, "DIALOG_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxDIALOG_EX_CONTEXTHELP)));
49084 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
49085 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
49086 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
49087 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
49088 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
49089
49090 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
49091
49092 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
49093 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
49094 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
49095 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
49096 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
49097 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
49098 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
49099 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
49100 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
49101 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
49102 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
49103 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
49104 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
49105 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
49106 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
49107 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
49108 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
49109 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
49110 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
49111 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
49112 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
49113 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
49114 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
49115 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
49116 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
49117 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
49118 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
49119 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
49120 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
49121 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
49122 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
49123 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
49124 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
49125 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
49126 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
49127 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
49128 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
49129 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
49130 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
49131 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
49132 }
49133